1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0e72d70f-4b30-43aa-9044-c7ee4cd0f300",e._sentryDebugIdIdentifier="sentry-dbid-0e72d70f-4b30-43aa-9044-c7ee4cd0f300")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3332],{33655:(e,t,n)=>{"use strict";n.d(t,{CE:()=>u,VE:()=>l,hh:()=>s});let r="nanco:pending-share-target",i=/^\/([A-Za-z0-9]{4,16})\/search$/,o=/^[A-Za-z0-9-]+$/;function a(e){let t;if("string"!=typeof e||!e.startsWith("/")||e.startsWith("//"))return null;try{t=new URL(e,"http://local.invalid")}catch(e){return null}let n=t.pathname.match(i);if(!n)return null;let r=t.searchParams.get("share");return r&&o.test(r)?"/".concat(n[1],"/search?share=").concat(encodeURIComponent(r)):null}function s(e){let t=a(e);if(t)try{window.sessionStorage.setItem(r,t)}catch(e){}}function u(){try{let e=window.sessionStorage.getItem(r);return e?a(e):null}catch(e){return null}}function l(){try{window.sessionStorage.removeItem(r)}catch(e){}}},35451:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(89304),i=n(99536),o=n(93479),a=n(94124);let s=()=>{var e,t;let{user:n}=(0,i.Z2)(),{data:s,isLoading:u,error:l}=(0,r.I)({queryKey:[o.Ju,{uid:null!=(e=null==n?void 0:n.uid)?e:""}],queryFn:()=>(0,a.DZ)(),enabled:!!n}),c=s&&s.length>1,d=s&&1===s.length,f=s&&0===s.length;return{companies:null!=s?s:[],isLoading:u,error:l,hasMultipleWorkspaces:c,hasSingleWorkspace:d,hasNoWorkspaces:f,companiesCount:null!=(t=null==s?void 0:s.length)?t:0}}},53687:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(91018),i=n(50148),o=n(40423),a=n(35451),s=n(75338),u=n(33655);let l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{redirectToLoginIfNotAuth:t=!1}=e,{user:n,isLoading:l}=(0,o.t)(),c=(0,r.useRouter)(),[d,f]=(0,i.useState)(!1),{companies:h,isLoading:g,hasSingleWorkspace:w,hasMultipleWorkspaces:y,hasNoWorkspaces:p}=(0,a.A)();return(0,i.useEffect)(()=>{if(l)return;if(null===n){t&&c.push("/auth/login");return}let e=async e=>{if(c.asPath!==e){f(!0);try{await c.replace(e)}finally{f(!1)}}},r=(0,s.nq)();if(r)return void e("/join?code=".concat(encodeURIComponent(r)));if(g)return;let i=(0,u.CE)();if(i&&h&&h.length>0){(0,u.VE)(),e(i);return}if(w&&1===h.length){let t=h[0],n="/".concat(t.shortId,"/folder/home");if(c.asPath.split(/[?#]/)[0]===n)return;e(n);return}if(y)return void e("/workspace/select");if(p){(0,u.VE)(),e("/onboarding");return}},[n,l,g,w,y,p,h,c,t]),{user:n,isLoadingAuth:l,isLoadingCompanies:g,companies:h,hasSingleWorkspace:w,hasMultipleWorkspaces:y,isRedirecting:d,isCreatingWorkspace:!1,isLoading:l||g||d}}},67747:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(74348),i=n(45421),o=n(53687);let a=()=>((0,o.A)({redirectToLoginIfNotAuth:!0}),(0,r.Y)(i.a,{}))},75338:(e,t,n)=>{"use strict";n.d(t,{K$:()=>i,nq:()=>o,qi:()=>a});let r="nanco:pending-join-code";function i(e){try{window.sessionStorage.setItem(r,e)}catch(e){}}function o(){try{return window.sessionStorage.getItem(r)}catch(e){return null}}function a(){try{window.sessionStorage.removeItem(r)}catch(e){}}},87819:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(67747)}])}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(87819)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.