(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3523],{33523:function(e,n,t){"use strict";t.d(n,{Z:function(){return Layout}});var o=t(85893),r=t(38030),a=t(5152),l=t.n(a),s=t(45697),i=t.n(s),c=t(24043),u=t(93967),d=t.n(u),f=t(67294),v=t(72253),h=t(14932),x=t(248),m=t(11163),p=t(30587),g=t(83580),C=t(21440),b=t(84224),j=t(65970);t(4090);var N=t(18613),k=t(92673),w=f.forwardRef(function(e,n){var t,r,a=e.className,l=e.link,s=e.role,i=e.tabIndex;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(j.Z,{className:d()(a,"w-full"),href:l.link,ref:n,rel:l.newTab?"noopener":void 0,role:s,tabIndex:i,target:l.newTab?"_blank":void 0,children:[!l.navigationIcon&&l.copy,l.navigationIcon&&(0,o.jsxs)("span",{className:"ml-4 flex items-center relative text-15",children:[(0,o.jsx)("span",{className:"mr-14 [&_svg]:max-w-[24px] [&_svg]:max-h-[24px]",children:(0,o.jsx)(b.Z,{color:(0,k.b)((null==l?void 0:l.color)+"-light").navIcon,icon:(0,N.q)(null==l?void 0:null===(t=l.navigationIcon)||void 0===t?void 0:t.icon)})}),l.copy]})]})})});function NewMobileAccountNav(e){var n=e.avatarSrc,t=e.accountNavData,r=e.user;return(0,o.jsxs)("details",{className:"p-24 md:p-36 bg-thd-color-violet-10",children:[(0,o.jsx)("summary",{className:"thd-toggle h-48 items-center space-x-16",children:(0,o.jsxs)("div",{className:"flex items-center rounded-full",children:[(0,o.jsx)(C.Z,{imageSrc:n,size:"6"}),(0,o.jsxs)("p",{className:"ml-16 lm-body-sm font-bold",children:[r.first_name," ",r.last_name]})]})}),(0,o.jsx)("ul",{className:"space-y-8 mt-24",children:null==t?void 0:t.group[0].linkBlock.map(function(e){return(0,o.jsx)("li",{className:"flex items-center",children:(0,o.jsx)(w,{className:"rounded-full",link:e})},e._id)})})]})}var L=t(30830),y=t(1840),_=t(55733);function NewMobileCTAs(){var e=(0,_.SV)();return(0,o.jsxs)("div",{className:"w-full px-fluid-base grid grid-cols-2 gap-x-fixed-md",children:[(0,o.jsx)(L.Z,{align:"stretch",buttonOverride:"nav",buttonType:"secondary",color:"violet-light",cta:{link:e+_.ym,copy:"Sign In"},size:"sm"}),(0,o.jsx)(L.Z,{align:"stretch",buttonOverride:"nav",buttonType:"secondary",color:"violet-dark",cta:{link:e+_.kp,copy:"Try Loom For Free",trackEventName:y.xe,trackEventSource:"Header CTA"},size:"sm"})]})}var M=t(63182);function NewMobileSubnavAccordion(e){var n=e.storeRefs,t=e.block,r=e.index;return(0,o.jsxs)("details",{className:"thd-details px-12",children:[(0,o.jsx)("summary",{className:"thd-summary-accordion w-full py-18",id:"summary-".concat(r),ref:n,children:(0,o.jsxs)("div",{className:"flex justify-between items-center w-full thd-button-square",children:[(0,o.jsx)("span",{className:"flex items-center",children:null==t?void 0:t.heading}),(0,o.jsx)(M.Z,{className:"chevron w-20"})]})}),(0,o.jsx)("ul",{className:"space-y-6 mb-24",children:null==t?void 0:t.linkBlock.map(function(e){var n,t,r;return(0,o.jsx)("li",{children:(0,o.jsx)("a",{className:"thd-focus-thick thd-focus-bg block lm-body-sm font-normal thd-button-sm rounded-lg thd-focus-icon",href:null==e?void 0:e.link,style:{"--focus-color-bg":"var(--thd-color-violet-10)","--focus-color-fg":"var(--thd-color-violet-70)"},children:(0,o.jsxs)("span",{className:"flex items-center relative",children:[(0,o.jsx)("span",{className:"w-30 [&_svg]:max-w-[18px] [&_svg]:max-h-[18px]",children:(null==e?void 0:null===(n=e.navigationIcon)||void 0===n?void 0:n.icon)?(0,o.jsx)(b.Z,{color:(0,k.b)((null==e?void 0:e.color)+"-light").navIcon,icon:(0,N.q)(null==e?void 0:null===(t=e.navigationIcon)||void 0===t?void 0:t.icon),loading:"lazy"}):void 0}),null==e?void 0:e.copy]})})},e._id)})})]})}var S=t(36992),Z=t(46631);function NewMobileToggle(e){var n=e.onClick,t=e.mobileNavOpen;return(0,o.jsxs)("button",{"aria-label":"Toggle navigation menu",className:"thd-toggle h-full ml-12",onClick:n,type:"button",children:[(0,o.jsxs)("span",{className:"sr-only",children:["Toggle menu ",t?"open":"close"]}),(0,o.jsx)("div",{className:d()(t?"bg-thd-color-violet-60":"bg-thd-color-violet-10","w-48 h-48 rounded-full flex items-center justify-center"),children:t?(0,o.jsx)(b.Z,{color:"white",icon:(0,o.jsx)(S.Z,{}),size:3}):(0,o.jsx)(b.Z,{color:"blurple",icon:(0,o.jsx)(Z.Z,{}),size:3})})]})}var H=t(76815),A=t(76265),T=t(41654),D=t.n(T);function NewMobileNav(e){var n,t=e.navData,r=e.accountNavData,a=e.user,l=(0,c._)((0,f.useState)(!1),2),s=l[0],i=l[1],u=(0,c._)((0,f.useState)(!1),2),x=u[0],m=u[1],C=(0,f.useRef)([]),b=(0,f.useRef)(),j=(null==a?void 0:a.id)!==void 0,N="/next-images/default-avatar.svg";if(H.cZ&&(null==a?void 0:a.avatars)&&(null==a?void 0:a.avatars[0])){var k,w,L=null==a?void 0:null===(w=a.avatars[0])||void 0===w?void 0:w.thumb;try{new URL(L),N=L}catch(e){N="https://cdn.loom.com/".concat(L)}}var y=(0,p.ZP)("(min-width: 768px)"),_=(0,p.ZP)("(min-width: 900px)"),storeRefs=function(e){e&&!C.current.includes(e)&&C.current.push(e)};n=(0,f.useRef)(!1),(0,f.useEffect)(function(){var e=b.current;if(e)return x&&!n.current&&((0,A.disablePageScroll)(e),n.current=!0),function(){n.current&&((0,A.enablePageScroll)(e),n.current=!1)}},[x,b,n]);var openMenuAndScrollLock=function(){i(!s),m(!x)};return(0,o.jsxs)("div",{className:"h-full",id:"modal-dialog",children:[(0,o.jsx)(NewMobileToggle,{mobileNavOpen:s,onClick:function(){return openMenuAndScrollLock()}}),s&&(0,o.jsx)("div",{"aria-label":"Loom main navigation menu","aria-modal":"true",className:"thd-modal-outer",role:"dialog",children:(0,o.jsxs)("div",{className:"thd-modal-inner",ref:b,children:[(0,o.jsxs)("ul",{className:"text-thd-color-black thd-body-lg font-bold",children:[null==t?void 0:null===(k=t.group)||void 0===k?void 0:k.map(function(e,n){return(null==e?void 0:e._type)=="linkBlock"?(0,o.jsx)("li",{className:"border-b border-thd-color-grey-20",id:null==e?void 0:e._id,children:(0,o.jsx)(NewMobileSubnavAccordion,{block:(0,h._)((0,v._)({},e),{heading:null==e?void 0:e.heading}),index:n,storeRefs:storeRefs})},null==e?void 0:e._id):(0,o.jsx)("li",{className:"last:border-none border-b border-thd-color-grey-20 px-12 py-18",children:(0,o.jsxs)("a",{className:"w-full flex items-center justify-between thd-focus-thick thd-focus-bg thd-button-square",href:null==e?void 0:e.link,style:{"--focus-color-bg":"var(--thd-color-violet-10)"},children:[e.copy,(0,o.jsx)(g.Z,{className:"h-20 w-20"})]})},null==e?void 0:e._id)}),!_&&(0,o.jsx)("li",{className:"px-10 py-18",children:(0,o.jsxs)("a",{className:"w-full flex items-center justify-between thd-focus-thick thd-focus-bg thd-button-square",href:"/connect/enterprise?campaign=7013i000000QYMqAAO",style:{"--focus-color-bg":"var(--thd-color-violet-10)"},children:["Contact Sales",(0,o.jsx)(g.Z,{className:"h-20 w-20"})]})})]}),(0,o.jsx)("footer",{className:d()(D().footer,j?D().footerLoggedIn:D().footerLoggedOut),children:j?(0,o.jsx)(NewMobileAccountNav,{accountNavData:r,avatarSrc:N,user:a}):(0,o.jsx)(o.Fragment,{children:!y&&(0,o.jsx)(NewMobileCTAs,{})})})]})})]})}var F=t(47702),I=t(98216),V=t.n(I);function NewSubnav(e){var n=e.menuId,t=e.menuPosition,r=e.menuDirection,a=e.linkBlock,l=e.onClose,s=e.onFocusNext,i=e.onFocusPrev,u=e.firstChildFocused,m=e.userMenu,p=(0,F._)(e,["menuId","menuPosition","menuDirection","linkBlock","onClose","onFocusNext","onFocusPrev","firstChildFocused","userMenu"]),g=(0,c._)((0,f.useState)(0),2),C=g[0],b=g[1],j=(0,c._)((0,f.useState)(!0),2),N=j[0],k=j[1],L=(0,f.useRef)([]),storeRef=function(e){if(null!==e){var n=L.current;n.push(e),L.current=(0,x._)(new Set(n))}};(0,f.useEffect)(function(){var e=L.current[C];(0!==C||u)&&e&&e.focus()},[C,u]),(0,f.useEffect)(function(){},[C,u]);var y=[];null==a||a.forEach(function(e){y.push(e.copy)});var getMatchForCharSearch=function(e){var n,t=y.slice(C+1,y.length),o=y.slice(0,C+1);if(t.forEach(function(t){var o=t.charAt(0).toLowerCase();n||o!==e||(n=t)}),n||o.forEach(function(t){var o=t.charAt(0).toLowerCase();n||o!==e||(n=t)}),n)return y.indexOf(n)};p._updatedAt,p._createdAt,p._originalId;var _=(0,F._)(p,["_updatedAt","_createdAt","_originalId"]);return(0,o.jsx)("div",(0,h._)((0,v._)({},_),{className:d()(_.className,"relative"),title:"",children:(0,o.jsx)("div",{className:V().menu,id:n,onKeyDown:function(e){switch(e.key){case"ArrowLeft":e.preventDefault(),i();break;case"ArrowRight":e.preventDefault(),s();break;case"ArrowUp":e.preventDefault(),b(0===C?L.current.length-1:C-1);break;case"ArrowDown":e.preventDefault(),b(C===L.current.length-1?0:C+1);break;case"Escape":e.preventDefault(),l();break;case"Home":e.preventDefault(),b(0);break;case"End":e.preventDefault(),b(L.current.length-1);break;default:var n=getMatchForCharSearch(e.key);void 0!==n&&(e.preventDefault(),b(n))}},style:{"--caretPosition":t.caret+"px","--menuPosition":m?t.right+"px":t.left+"px","--menuDirection":"start"===r?"10%":"-10%"},children:(0,o.jsx)("ul",{className:"rounded-lg p-24 space-y-8",onMouseEnter:function(){return k(!1)},children:null==a?void 0:a.map(function(e){return(0,o.jsx)("li",{className:"flex items-center",children:(0,o.jsx)(w,{className:d()(N?"thd-focus-thick":"outline-none","rounded-full thd-button-xs"),link:e,ref:storeRef,role:"menuitem",tabIndex:-1})},e._id)})})})}))}function AtlassianLoomLogoSvg(){return(0,o.jsxs)("svg",{width:"150",viewBox:"0 0 135 44",fill:"none",className:"h-full",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M45.4999 19.6967H31.6393L43.6428 12.9942L41.261 9.00451L29.2575 15.707L36.1871 4.09924L32.0614 1.79595L25.1318 13.4024V0H20.3682V13.4037L13.4372 1.79595L9.31147 4.09924L16.2411 15.7057L4.23898 9.00451L1.85717 12.9942L13.8607 19.6967H0V24.3033H13.8593L1.85717 31.0045L4.23898 34.9942L16.2425 28.293L9.31147 39.9008L13.4372 42.2041L20.3682 30.5963V44H25.1318V30.3093L32.1896 42.1323L36.0577 39.9725L28.9985 28.1482L41.2596 34.9942L43.6414 31.0045L31.6393 24.3033H45.4986V19.6967H45.4999ZM22.75 28.263C19.1732 28.263 16.2735 25.4589 16.2735 22C16.2735 18.5411 19.1732 15.737 22.75 15.737C26.3267 15.737 29.2265 18.5411 29.2265 22C29.2265 25.4589 26.3267 28.263 22.75 28.263Z",fill:"#565ADD"}),(0,o.jsx)("path",{d:"M59.2168 41.4252V15.5754H64.1234V41.4252H59.2168Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M106.282 23.2324H110.967V25.4511C111.963 23.677 114.289 22.7151 116.281 22.7151C118.753 22.7151 120.745 23.7876 121.667 25.7461C123.105 23.5274 125.025 22.7151 127.424 22.7151C130.78 22.7151 133.99 24.7485 133.99 29.6274V41.4198H129.231V30.6262C129.231 28.6666 128.27 27.1884 126.02 27.1884C123.917 27.1884 122.662 28.8151 122.662 30.7748V41.421H117.793V30.6262C117.793 28.6666 116.797 27.1884 114.582 27.1884C112.442 27.1884 111.187 28.7783 111.187 30.7748V41.421H106.282V23.2324Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M75.2159 41.9494C69.6884 41.9494 65.6855 37.8437 65.6855 32.3293C65.6855 26.9026 69.6754 22.6992 75.2159 22.6992C80.7835 22.6992 84.7462 26.9416 84.7462 32.3293C84.7462 37.8036 80.7412 41.9494 75.2159 41.9494ZM75.2159 27.1509C72.3649 27.1509 70.046 29.4738 70.046 32.3303C70.046 35.1868 72.3649 37.5097 75.2159 37.5097C78.0669 37.5097 80.3847 35.1868 80.3847 32.3303C80.3847 29.4738 78.0669 27.1509 75.2159 27.1509Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M95.2222 41.9497C89.6943 41.9497 85.6914 37.8439 85.6914 32.3295C85.6914 26.9028 89.6812 22.6995 95.2222 22.6995C100.789 22.6995 104.752 26.9419 104.752 32.3295C104.752 37.8038 100.745 41.9497 95.2222 41.9497ZM95.2222 27.0893C92.3383 27.0893 89.9922 29.4405 89.9922 32.3284C89.9922 35.2163 92.3383 37.5674 95.2222 37.5674C98.1055 37.5674 100.451 35.2163 100.451 32.3284C100.45 29.4405 98.1038 27.0893 95.2222 27.0893Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M100.189 8.6874C100.189 6.98599 99.1145 6.33779 97.1304 5.85168C95.8909 5.52758 95.5599 5.28457 95.5599 4.87947C95.5599 4.39336 95.9728 4.15027 96.8002 4.15027C97.7923 4.15027 98.7844 4.47437 99.7765 4.87947V2.77295C99.1145 2.44885 98.0397 2.12476 96.883 2.12476C94.6506 2.12476 93.4102 3.17805 93.4102 4.87947C93.4102 6.49988 94.485 7.31008 96.3865 7.71519C97.6268 7.9582 98.0397 8.20129 98.0397 8.7684C98.0397 9.17351 97.7096 9.4976 96.8002 9.4976C95.6426 9.4976 94.3197 9.0925 93.4102 8.52539V10.7129C94.1543 11.118 95.3117 11.4421 96.8002 11.4421C99.1145 11.5231 100.189 10.3888 100.189 8.6874Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M125.898 2.4126V11.6515H127.904V4.6398L128.74 6.53711L131.582 11.734H134.09V2.4126H132.084V8.35186L131.332 6.61958L129.075 2.4126H125.898Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M113.468 2.41284H111.208V11.7343H113.468V2.41284Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M76.4668 2.4126V11.734H80.8844L81.5512 9.73664H78.5505V2.4126H76.4668Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M67.7158 2.4126V4.41007H70.1923V11.734H72.4126V4.41007H75.06V2.4126H67.7158Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M64.3576 2.4126H61.5775L58.3887 11.734H60.8417L61.3323 10.1528C61.9046 10.3192 62.477 10.4024 63.0494 10.4024C63.6217 10.4024 64.1941 10.3192 64.7665 10.1528L65.2571 11.734H67.7101L64.3576 2.4126ZM62.9676 8.48823C62.5588 8.48823 62.15 8.40494 61.8229 8.32172L62.9676 4.24357L64.1124 8.32172C63.7036 8.40494 63.3765 8.48823 62.9676 8.48823Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M88.5463 2.4126H85.682L82.3965 11.734H84.9238L85.4293 10.1528C86.0189 10.3192 86.6087 10.4024 87.1984 10.4024C87.7881 10.4024 88.3778 10.3192 88.9675 10.1528L89.473 11.734H92.0004L88.5463 2.4126ZM87.1142 8.48823C86.6929 8.48823 86.2717 8.40494 85.9347 8.32172L87.1142 4.24357L88.2936 8.32172C87.9566 8.40494 87.5354 8.48823 87.1142 8.48823Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M121.028 2.41284H118.163L114.878 11.7343H117.405L117.911 10.153C118.5 10.3194 119.09 10.4027 119.68 10.4027C120.269 10.4027 120.859 10.3194 121.449 10.153L121.955 11.7343H124.482L121.028 2.41284ZM119.596 8.48847C119.174 8.48847 118.753 8.40518 118.416 8.32197L119.596 4.24381L120.775 8.32197C120.438 8.40518 120.017 8.48847 119.596 8.48847Z",fill:"#252434"}),(0,o.jsx)("path",{d:"M108.956 8.6874C108.956 6.98599 107.881 6.33779 105.897 5.85168C104.657 5.52758 104.326 5.28457 104.326 4.87947C104.326 4.39336 104.739 4.15027 105.567 4.15027C106.559 4.15027 107.551 4.47437 108.543 4.87947V2.77295C107.881 2.44885 106.806 2.12476 105.65 2.12476C103.417 2.12476 102.177 3.17805 102.177 4.87947C102.177 6.49988 103.252 7.31008 105.153 7.71519C106.393 7.9582 106.806 8.20129 106.806 8.7684C106.806 9.17351 106.476 9.4976 105.567 9.4976C104.409 9.4976 103.086 9.0925 102.177 8.52539V10.7129C102.921 11.118 104.078 11.4421 105.567 11.4421C107.798 11.5231 108.956 10.3888 108.956 8.6874Z",fill:"#252434"})]})}var E=t(83694),R=t(22410),O=t(98719);function NewNav(e){var n=e.navData,t=e.accountNavData,r=e.hideNavItems,a=(0,_.SV)(),l=(0,m.useRouter)(),s=(0,E.Z)(R.b),i=(0,c._)((0,f.useState)(!1),2),u=i[0],g=i[1],b=(0,c._)((0,f.useState)(!1),2),N=b[0],k=b[1],w=(0,f.useRef)(null),M=(0,c._)((0,f.useState)(0),2),S=M[0],Z=M[1],A=(0,f.useRef)([]),T=(0,f.useRef)(null),D=(0,c._)((0,f.useState)("end"),2),F=D[0],I=D[1],V=(0,c._)((0,f.useState)({left:-30,caret:70}),2),B=V[0],P=V[1],z=(0,f.useMemo)(function(){return null==n?void 0:n.group[S]},[S,null==n?void 0:n.group]),q=(0,c._)((0,f.useState)(!1),2),K=q[0],U=q[1],G=null==t?void 0:t.group[0];(0,f.useEffect)(function(){var e=A.current[S],n=T.current;if(e&&n){var t=e.getBoundingClientRect(),o=t.left,r=t.width;P({left:Math.round(o-n.getBoundingClientRect().left-30),caret:Math.round(r/2+15)})}},[S]);var storeRef=function(e){return function(n){if(null!==n){var t=A.current;t[e]=n,A.current=(0,x._)(t)}}},setFocus=function(e){A.current[e].focus()},getMatchForCharSearch=function(e){var t;return null==n||n.group.forEach(function(n,o){var r;(null!==(r=n.heading)&&void 0!==r?r:n.copy).substring(0,1).toLowerCase()===e&&(t=o)}),t},Y=null==l?void 0:l.pathname,setTabIndexAndTrackOpen=function(e,n,t){var o=t.action,r={click:y.EK,focus:y.e$,hover:y.g8}[o];I(S>e?"start":"end"),U(!1),Z(e),k(!1),g(!0),(0,O.L9)("".concat(r," ").concat(n),{source:"Header Menu ".concat(Y)})},setTrackKeyboardFocus=function(e){(0,O.L9)("".concat(y.e$," ").concat(e),{source:"Header Menu ".concat(Y)})},setTabIndexAndOpenUserMenu=function(e){U(!1),Z(e),g(!1),k(!0)},setCloseMenuAndTrackSignUp=function(){g(!1),(0,O.L9)(y.xe,{source:"Header CTA"})},setCloseMenuAndTrackContact=function(){g(!1),(0,O.L9)(y.Fv,{source:"Header CTA"})},setTabIndexAndFocus=function(e){Z(e),setFocus(e)},Q="/next-images/default-avatar.svg";if(H.cZ&&(null==s?void 0:s.avatars)&&(null==s?void 0:s.avatars[0])){var $,W,J=null==s?void 0:null===(W=s.avatars[0])||void 0===W?void 0:W.thumb;try{new URL(J),Q=J}catch(e){Q="https://cdn.loom.com/".concat(J)}}var X=(null==s?void 0:s.id)!==void 0,ee=(0,p.ZP)("(min-width: 400px"),en=(0,p.ZP)("(min-width: 768px)"),et=(0,p.ZP)("(min-width: 900px)"),eo=(0,p.ZP)("(min-width: 1440px)"),er=n&&(0,o.jsxs)("div",{children:[(0,o.jsx)("ul",{className:"flex items-center",ref:T,role:"menubar",children:null==n?void 0:null===($=n.group)||void 0===$?void 0:$.map(function(e,t){if("linkBlock"==e._type){var r=null==e?void 0:e.heading;return(0,o.jsx)("li",{onClick:function(){return g(!u)},onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)},role:"none",children:(0,o.jsx)("button",{"aria-expanded":S===t,"aria-haspopup":!0,className:"thd-button-xs xl:thd-button-sm thd-focus-thick thd-focus-bg after:content-['▼'] after:text-[8px] after:pl-6",onClick:function(){return setTabIndexAndTrackOpen(t,r,{action:"click"})},onFocus:function(){return setTrackKeyboardFocus(r)},onKeyDown:function(e){switch(e.key){case"ArrowDown":case"Enter":case" ":e.preventDefault(),g(!0),U(!0);break;case"ArrowRight":e.preventDefault(),setTabIndexAndFocus(t===(null==n?void 0:n.group.length)-1?0:t+1);break;case"ArrowLeft":e.preventDefault(),setTabIndexAndFocus(0===t?(null==n?void 0:n.group.length)-1:t-1);break;case"Tab":g(!1);break;case"Escape":e.preventDefault(),g(!1);break;default:var o=getMatchForCharSearch(e.key);void 0!==o&&(e.preventDefault(),setTabIndexAndFocus(o))}},onMouseEnter:function(){return setTabIndexAndTrackOpen(t,r,{action:"hover"})},ref:storeRef(t),role:"menuitem",style:{"--focus-color-bg":"var(--thd-color-violet-10)"},tabIndex:0===t?0:-1,type:"button",children:e.heading})},e._id)}return(0,o.jsx)("li",{role:"none",children:(0,o.jsx)(j.Z,{"aria-haspopup":"false",className:"thd-button-xs xl:thd-button-sm thd-focus-thick thd-focus-bg",href:e.link,onBlur:function(){return g(!1)},onKeyDown:function(e){switch(e.key){case"ArrowRight":setTabIndexAndFocus(t===(null==n?void 0:n.group.length)-1?0:t+1);break;case"ArrowLeft":setTabIndexAndFocus(0===t?(null==n?void 0:n.group.length)-1:t-1);break;case"Tab":g(!1);break;default:var o=getMatchForCharSearch(e.key);void 0!==o&&(e.preventDefault(),setTabIndexAndFocus(o))}},ref:storeRef(t),role:"menuitem",style:{"--focus-color-bg":"var(--thd-color-violet-10)"},tabIndex:0===t?0:-1,children:e.copy})},e._id)})}),u&&(0,f.createElement)(NewSubnav,(0,h._)((0,v._)({menuDirection:F,menuPosition:B,onBlur:function(){return g(!1)},onClose:function(){g(!1),setFocus(S)},onFocus:function(){return g(!0)},onFocusNext:function(){var e=S===n.group.length-1?0:S+1;Z(e),"linkBlock"==n.group[e]._type?(U(!0),g(!0)):(U(!1),g(!1),setFocus(e))},onFocusPrev:function(){U(!0);var e=0===S?n.group.length-1:S-1;Z(e),"linkBlock"==n.group[e]._type?(U(!0),g(!0)):(U(!1),g(!1),setFocus(e))},onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)}},z),{firstChildFocused:K,key:S}))]}),ea=(0,o.jsxs)("div",{onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},ref:w,children:[(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(L.Z,{"aria-expanded":S===(null==n?void 0:n.group.length)+1,"aria-haspopup":!0,buttonOverride:"nav",buttonType:"secondary",className:"after:content-['▼'] after:text-[8px] after:pl-6 ml-12",color:"violet-light",onClick:function(){return setTabIndexAndOpenUserMenu((null==n?void 0:n.group.length)+1)},onKeyDown:function(e){switch(e.key){case"ArrowDown":case"Enter":case" ":e.preventDefault(),k(!0),U(!0);break;case"Tab":k(!1);break;case"Escape":e.preventDefault(),k(!1)}},onMouseEnter:function(){return setTabIndexAndOpenUserMenu((null==n?void 0:n.group.length)+1)},role:"menuitem",size:"avi",children:[(0,o.jsx)(C.Z,{imageSrc:Q,size:4.5}),(0,o.jsx)("span",{className:"ml-16",children:null==s?void 0:s.first_name})]})}),N&&(0,o.jsx)(NewSubnav,(0,h._)((0,v._)({menuPosition:{right:-140,caret:210},onBlur:function(){return k(!1)},onClose:function(){k(!1)},onFocus:function(){return k(!0)},userMenu:!0},G),{firstChildFocused:K}))]}),el=(0,o.jsxs)(o.Fragment,{children:[!X&&(0,o.jsx)(j.Z,{className:"thd-button-xs xl:thd-button-sm thd-focus-thick thd-focus-bg",href:a+_.ym,onClick:function(){return g(!1)},style:{"--focus-color-bg":"var(--thd-color-violet-10)"},children:"Sign In"}),!X&&(0,o.jsx)(L.Z,{buttonOverride:"nav",buttonType:"secondary",className:d()("ml-16"),color:"violet-dark",cta:{link:a+_.kp,copy:"Get Loom For Free"},onClick:function(){return setCloseMenuAndTrackSignUp()},size:"md"}),et&&(0,o.jsx)(L.Z,{buttonOverride:"nav",buttonType:"secondary",className:d()("ml-16 block flex-shrink-0"),color:"violet-light",cta:{link:"/connect/enterprise?campaign=7013i000000QYMqAAO",copy:"Contact Sales"},onClick:function(){return setCloseMenuAndTrackContact(!1)},size:"md"}),eo&&X&&ea]});return(0,o.jsx)("nav",{"aria-label":"primary",className:"px-fluid-base 4xl:px-0 my-auto relative z-10 h-[var(--thd-nav-h)]",children:(0,o.jsxs)("div",{className:"flex items-center justify-between max-w-screen-3xl mx-auto h-full",children:[(0,o.jsx)("div",{className:"h-[48px]",children:(0,o.jsx)(j.Z,{ariaLabel:"Atlassian Loom Logo",href:"/",children:(0,o.jsx)(AtlassianLoomLogoSvg,{})})}),(0,o.jsx)("div",{className:"w-full flex items-center justify-end",children:r&&!X?(0,o.jsx)(L.Z,{buttonOverride:"nav",buttonType:"secondary",className:d()("ml-16"),color:"violet-dark",cta:{link:a+_.kp,copy:"Get Loom ".concat(ee?"For":""," Free")},onClick:function(){return setCloseMenuAndTrackSignUp()},size:"md"}):(0,o.jsxs)(o.Fragment,{children:[eo&&er,en&&el,!eo&&(0,o.jsx)(NewMobileNav,{accountNavData:t,navData:n,onFocusNext:function(){U(!1),setTabIndexAndFocus(S===n.length-1?0:S+1)},onFocusPrev:function(){U(!1),setTabIndexAndFocus(0===S?n.length-1:S-1)},user:s})]})})]})})}var B=t(81937);function Banner(e){var n,t=e.bannerContent,r=(0,c._)((0,f.useState)(!1),2),a=r[0],l=r[1],s=null==t?void 0:null===(n=t.filter(function(e){return e.isActive}))||void 0===n?void 0:n[0],updateLocalStorage=function(){window.localStorage.setItem(s.identifier,"true")};return(0,f.useEffect)(function(){l(s&&!window.localStorage.getItem(s.identifier))},[s]),(0,o.jsx)(o.Fragment,{children:a&&(0,o.jsx)("div",{className:"bg-thd-color-violet-90",children:(0,o.jsxs)("div",{className:"thd-container-max relative",children:[(0,o.jsx)("a",{target:s.newTab?"_blank":null,href:s.linkTo,onClick:function(){(0,O.L9)(y.Zd,{banner:s.identifier}),updateLocalStorage()},children:(0,o.jsxs)("div",{className:"text-thd-color-grey-10 relative w-full h-full align-center justify-start lg:px-12 lg:flex lg:flex-row lg:w-full lg:text-center lg:justify-center py-18 text-12 md:text-16 lg:text-12 xl:text-16",children:[(0,o.jsx)("strong",{className:"mr-6",children:s.boldText}),(0,o.jsx)("p",{children:s.text})]})}),(0,o.jsx)("div",{className:"absolute top-10 md:top-16 right-10 md:right-12",children:(0,o.jsx)(B.Z,{onClick:function(e){e.preventDefault(),e.stopPropagation(),updateLocalStorage(),l(!1)},icon:(0,o.jsx)(S.Z,{}),size:"small",iconColor:"white"})})]})})})}function NewHeader(e){var n=e.bannerContent,t=e.navData,r=e.accountNavData,a=e.hideNavItems,l=(0,c._)((0,f.useState)(!0),2),s=l[0],i=l[1];return(0,f.useEffect)(function(){var handleScroll=function(){document.documentElement.scrollTop>0?i(!1):i(!0)};return window.addEventListener("scroll",handleScroll),function(){window.removeEventListener("scroll",handleScroll)}},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("a",{className:D().skipLink,href:"#skip-to-content",children:["Skip to\xa0",(0,o.jsx)("span",{className:"text-thd-color-violet-90 underline",children:"content"})]}),(0,o.jsxs)("header",{className:d()(D().header),children:[n&&(0,o.jsx)("div",{className:"hidden xl:block relative z-20",children:(0,o.jsx)(Banner,{bannerContent:n})}),(0,o.jsx)(NewNav,{accountNavData:r,navData:t,hideNavItems:a}),n&&(0,o.jsx)("div",{className:"xl:hidden",children:(0,o.jsx)(Banner,{bannerContent:n})})]}),(0,o.jsx)("div",{className:d()(!s&&D().shadowIsShowing,"thd-shadow-nav")})]})}var P=t(92651);function Layout(e){var n=e.accountNavData,a=e.children,s=e.className,i=e.color,c=e.deiNav,u=e.enterpriseTemplate,d=e.footerOff,f=e.headerOff,v=e.hideNavItems,h=e.noEop,x=e.name,m=e.navData,p=e.footerNavData,g=e.preview,C=e.style,b=e.bannerContent;(0,O.ST)(x);var j=l()(function(){return t.e(3940).then(t.bind(t,63940))},{loadableGenerated:{webpack:function(){return[63940]}},loading:function(){return(0,o.jsx)("div",{className:"flex items-center justify-center",children:(0,o.jsx)(r.Z,{size:"large"})})}});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{style:C,children:[!f&&(0,o.jsx)(NewHeader,{accountNavData:n,deiNav:c,navData:m,hideNavItems:v,bannerContent:b}),(0,o.jsxs)("main",{className:s,id:"skip-to-content",children:[a,!d&&(0,o.jsx)(j,{color:i,enterpriseTemplate:u,footerNavData:p,noEop:h})]})]}),g&&(0,o.jsx)(P.Z,{})]})}Layout.propTypes={accountNavData:i().object,children:i().node.isRequired,className:i().string,color:i().string,deiNav:i().array,enterpriseTemplate:i().bool,footerOff:i().bool,headerOff:i().bool,hideNavItems:i().bool,noEop:i().bool,name:i().string.isRequired,navData:i().object,footerNavData:i().object,preview:i().bool,style:i().object,bannerContent:i().array}},4090:function(e,n,t){"use strict";t.d(n,{Z:function(){return SvgMobileDevices}});var o=t(72253),r=t(14932),a=t(85893);function SvgMobileDevices(e){return(0,a.jsx)("svg",(0,r._)((0,o._)({fill:"none",viewBox:"0 0 24 24"},e),{children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M6.48561 2H12.9689C13.7748 1.99997 14.4692 1.99991 15.0253 2.07467C15.6212 2.15479 16.1924 2.33549 16.6558 2.79882C17.1191 3.26212 17.2998 3.83336 17.3799 4.42927C17.4546 4.98533 17.4546 5.67973 17.4545 6.48564V6.54545H17.5144C18.3203 6.54542 19.0147 6.54536 19.5707 6.62012C20.1666 6.70024 20.7379 6.88094 21.2012 7.34427C21.6645 7.80758 21.8452 8.37882 21.9253 8.97473C22.0001 9.53079 22.0001 10.2252 22 11.0311V17.5144C22.0001 18.3203 22.0001 19.0147 21.9253 19.5707C21.8452 20.1666 21.6645 20.7379 21.2012 21.2012C20.7379 21.6645 20.1666 21.8452 19.5707 21.9253C19.0147 22.0001 18.3203 22.0001 17.5144 22H6.48564C5.67973 22.0001 4.98533 22.0001 4.42927 21.9253C3.83336 21.8452 3.26212 21.6645 2.79882 21.2012C2.33549 20.7379 2.15479 20.1666 2.07467 19.5707C1.99991 19.0147 1.99997 18.3203 2 17.5144V6.48561C1.99997 5.67973 1.99991 4.98533 2.07467 4.42927C2.15479 3.83336 2.33549 3.26212 2.79882 2.79882C3.26212 2.33549 3.83336 2.15479 4.42927 2.07467C4.98533 1.99991 5.67973 1.99997 6.48561 2ZM15.5779 4.67155C15.6344 5.092 15.6364 5.66267 15.6364 6.54545H15.5765C14.7706 6.54542 14.0762 6.54536 13.5202 6.62012C12.9243 6.70024 12.353 6.88094 11.8897 7.34427C11.4264 7.80758 11.2457 8.37882 11.1656 8.97473C11.0908 9.53079 11.0909 10.2252 11.0909 11.0311V17.5144C11.0909 18.3203 11.0908 19.0147 11.1656 19.5707C11.1935 19.7786 11.2337 19.9835 11.2939 20.1818H6.54545C5.66267 20.1818 5.092 20.1799 4.67155 20.1234C4.27724 20.0703 4.15367 19.9848 4.08446 19.9155C4.01524 19.8464 3.92967 19.7228 3.87664 19.3285C3.82012 18.908 3.81818 18.3373 3.81818 17.4545V6.54545C3.81818 5.66267 3.82012 5.092 3.87664 4.67155C3.92967 4.27724 4.01524 4.15367 4.08446 4.08446C4.15367 4.01524 4.27724 3.92967 4.67155 3.87664C5.092 3.82012 5.66267 3.81818 6.54545 3.81818H7.45455L7.65782 4.22476C7.78009 4.46924 7.84121 4.59152 7.95106 4.65939C8.06088 4.72727 8.19758 4.72727 8.47094 4.72727H10.9836C11.257 4.72727 11.3937 4.72727 11.5035 4.65939C11.6133 4.59152 11.6745 4.46924 11.7967 4.22476L12 3.81818H12.9091C13.7919 3.81818 14.3625 3.82012 14.783 3.87664C15.1773 3.92967 15.3009 4.01524 15.3701 4.08446C15.4393 4.15367 15.5249 4.27724 15.5779 4.67155ZM15.6364 20.1818C14.7536 20.1818 14.1829 20.1799 13.7625 20.1234C13.3682 20.0703 13.2446 19.9848 13.1754 19.9155C13.1062 19.8464 13.0206 19.7228 12.9675 19.3285C12.911 18.908 12.9091 18.3373 12.9091 17.4545V11.0909C12.9091 10.2081 12.911 9.63745 12.9675 9.217C13.0206 8.8227 13.1062 8.69912 13.1754 8.62991C13.2446 8.5607 13.3682 8.47512 13.7625 8.42209C13.9134 8.40182 14.0837 8.38855 14.2808 8.37988L14.476 8.77021C14.5983 9.0147 14.6594 9.13697 14.7692 9.20485C14.8791 9.27273 15.0158 9.27273 15.2891 9.27273H17.8018C18.0751 9.27273 18.2118 9.27273 18.3217 9.20485C18.4315 9.13697 18.4927 9.0147 18.6149 8.77021L18.8101 8.37988C19.0072 8.38855 19.1775 8.40182 19.3285 8.42209C19.7228 8.47512 19.8464 8.5607 19.9155 8.62991C19.9848 8.69912 20.0704 8.8227 20.1234 9.217C20.1799 9.63745 20.1818 10.2081 20.1818 11.0909V17.4545C20.1818 18.3373 20.1799 18.908 20.1234 19.3285C20.0704 19.7228 19.9848 19.8464 19.9155 19.9155C19.8464 19.9848 19.7228 20.0703 19.3285 20.1234C18.908 20.1799 18.3374 20.1818 17.4545 20.1818H15.6364Z",fill:"currentColor",fillRule:"evenodd"})}))}t(67294)},83694:function(e,n,t){"use strict";t.d(n,{Z:function(){return useStore}});var o=t(24043),r=t(67294),a=t(20530);function useStore(e){var n=(0,o._)((0,r.useState)(function(){return(0,a.NA)(e)}),2),t=n[0],l=n[1];return(0,r.useEffect)(function(){return e.subscribe(function(e){return l(e)})},[e]),t}},41654:function(e){e.exports={header:"NewHeader_header__F2I_f",skipLink:"NewHeader_skipLink___68Ws",shadowIsShowing:"NewHeader_shadowIsShowing__pY1uw",footer:"NewHeader_footer__ocrFc",footerLoggedIn:"NewHeader_footerLoggedIn__5PCEi",footerLoggedOut:"NewHeader_footerLoggedOut__KrKs0",footerButton:"NewHeader_footerButton__MzCqf"}},98216:function(e){e.exports={menu:"NewSubnav_menu__NOzBt"}}}]);