(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[325],{70992:function(e,t,r){Promise.resolve().then(r.t.bind(r,38173,23)),Promise.resolve().then(r.bind(r,4977)),Promise.resolve().then(r.bind(r,5441))},47471:function(e,t,r){"use strict";r.d(t,{CreateOrganization:function(){return h},GoogleOneTap:function(){return n.Kb},OrganizationList:function(){return n.Bg},OrganizationProfile:function(){return g},OrganizationSwitcher:function(){return n.Li},SignIn:function(){return p},SignInButton:function(){return n.$d},SignInWithMetamaskButton:function(){return n.qu},SignOutButton:function(){return n.AM},SignUp:function(){return m},SignUpButton:function(){return n.gX},UserButton:function(){return n.l8},UserProfile:function(){return d}});var n=r(93073),o=r(2265),i=r(52063),u=r(69569),a=r(877);let c=()=>({pagesRouter:(0,a.useRouter)()}),l=(e,t,r,i=!0)=>{let a=o.useRef(0),{pagesRouter:l}=c(),{session:s,isLoaded:f}=(0,n.kP)();(0,u.rx)()||o.useEffect(()=>{if(!f||r&&"path"!==r||i&&!s)return;let n=new AbortController,o=()=>{let r=l?`${t}/[[...index]].tsx`:`${t}/[[...rest]]/page.tsx`;throw Error(`
Clerk: The <${e}/> component is not configured correctly. The most likely reasons for this error are:

1. The "${t}" route is not a catch-all route.
It is recommended to convert this route to a catch-all route, eg: "${r}". Alternatively, you can update the <${e}/> component to use hash-based routing by setting the "routing" prop to "hash".

2. The <${e}/> component is mounted in a catch-all route, but all routes under "${t}" are protected by the middleware.
To resolve this, ensure that the middleware does not protect the catch-all route or any of its children. If you are using the "createRouteMatcher" helper, consider adding "(.*)" to the end of the route pattern, eg: "${t}(.*)". For more information, see: https://clerk.com/docs/references/nextjs/clerk-middleware#create-route-matcher
`)};return l?l.pathname.match(/\[\[\.\.\..+]]/)||o():(async()=>{let t;if(a.current++,!(a.current>1)){try{let r=`${window.location.origin}${window.location.pathname}/${e}_clerk_catchall_check_${Date.now()}`;t=await fetch(r,{signal:n.signal})}catch(e){}(null==t?void 0:t.status)===404&&o()}})(),()=>{a.current>1&&n.abort()}},[f])},s=()=>{let e=o.useRef(),{pagesRouter:t}=c();if(t)return e.current||(e.current=t.pathname.replace(/\/\[\[\.\.\..*/,"")),e.current;let n=r(16463).usePathname,i=r(16463).useParams,u=(n()||"").split("/").filter(Boolean),a=Object.values(i()||{}).filter(e=>Array.isArray(e)).flat(1/0);return e.current||(e.current=`/${u.slice(0,u.length-a.length).join("/")}`),e.current};function f(e,t,r=!0){let n=s(),o=(0,i.EJ)(e,t,{path:n});return l(e,n,o.routing,r),o}let d=Object.assign(e=>o.createElement(n.Iw,{...f("UserProfile",e)}),{...n.Iw}),h=e=>o.createElement(n.Gp,{...f("CreateOrganization",e)}),g=Object.assign(e=>o.createElement(n.A,{...f("OrganizationProfile",e)}),{...n.A}),p=e=>o.createElement(n.cL,{...f("SignIn",e,!1)}),m=e=>o.createElement(n.Mo,{...f("SignUp",e,!1)})},877:function(e,t,r){e.exports=r(99063)},99063:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRouter",{enumerable:!0,get:function(){return i}});let n=r(2265),o=r(60291);function i(){return(0,n.useContext)(o.RouterContext)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(99920)._(r(2265)).default.createContext(null)},4977:function(e,t,r){"use strict";var n=r(57437),o=r(79488),i=r(93073),u=r(47471);r(2265),t.default=()=>(0,n.jsxs)("div",{children:[(0,n.jsx)(i.qI,{children:(0,n.jsx)(o.Z,{})}),(0,n.jsx)(u.SignIn,{signUpUrl:"/auth/signup",appearance:{elements:{formFieldInput:"bg-gray-50 border border-gray-400 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 \n                        focus:border-primary-600 block p-2.5 dark:bg-gray-700 dark:border-gray-600 \n                        dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",formButtonPrimary:"bg-primary-600 hover:bg-primary-400 text-sm normal-case",footerActionLink:"text-primary-600 hover:text-primary-800",identityPreviewEditButtonIcon:"text-primary-600",formFieldAction:"text-primary-600"}}})]})},79488:function(e,t,r){"use strict";var n=r(57437);r(2265),r(32737);var o=r(44839);t.Z=e=>{let t,{color:r="primary"}=e;switch(r){case"primary":t="bg-primary-300";break;case"secondary":t="bg-secondary-300"}return(0,n.jsx)("div",{className:"w-full h-full inline-flex flex-1 items-center",children:(0,n.jsxs)("div",{className:"spinner",children:[(0,n.jsx)("div",{className:(0,o.Z)("double-bounce1",t)}),(0,n.jsx)("div",{className:(0,o.Z)("double-bounce2",t)})]})})}},32737:function(){},5441:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/background_login.ebee9cef.svg",height:346,width:332,blurWidth:0,blurHeight:0}},52063:function(e,t,r){"use strict";r.d(t,{Aw:function(){return o.Aw},EJ:function(){return i},JM:function(){return n.JM},iv:function(){return o.iv},wE:function(){return o.wE}});var n=r(36470),o=r(57723);function i(e,t,r){let o=t.path||(null==r?void 0:r.path);return"path"===(t.routing||(null==r?void 0:r.routing)||"path")?o?{...r,...t,routing:"path"}:n.RM.throw((0,n.Gv)(e)):t.path?n.RM.throw((0,n.RE)(e)):{...r,...t,path:void 0}}},44839:function(e,t,r){"use strict";function n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{W:function(){return n}}),t.Z=n}},function(e){e.O(0,[7107,8173,9627,2971,7023,1744],function(){return e(e.s=70992)}),_N_E=e.O()}]);