"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14074],{75535:function(e,t,r){let n=(0,r(7653).createContext)();t.Z=n},91296:function(e,t,r){r.d(t,{QG:function(){return a},oj:function(){return s}});var n=r(27573),o=r(63074),l=r.n(o),i=r(65999),u=r(84076);let s=30,a=22,c={Component:l().elementType,className:l().string,color:l().string,href:l().string,isDisabled:l().bool,isLoading:l().bool,renderIcon:l().func,size:l().number,style:l().object,stylePadding:l().number,onPress:l().func},d=e=>{let{Component:t,className:r,color:o="var(--suite-color-label)",href:l,isDisabled:s,isLoading:c,renderIcon:d,size:g=a,style:f,stylePadding:h=8,onPress:v,...p}=e,b=c?(0,n.jsx)(u.Z,{color:"var(--suite-color-gray-1)",size:g}):d?d({color:s?"var(--suite-color-gray-3)":o,size:g}):(0,n.jsx)(t,{fill:s?"var(--suite-color-gray-3)":o,style:{width:g}}),m={...f,padding:h,...s?{cursor:"default",pointerEvents:"none",userSelect:"none"}:{}};return l?(0,n.jsx)(i.default,{...p,className:["cursor-pointer flex grow-0 items-center justify-center shrink-0 transition-opacity active:opacity-50",r].filter(Boolean).join(" "),href:l,style:m,onClick:v,children:b}):(0,n.jsx)("div",{...p,className:["cursor-pointer flex grow-0 items-center justify-center shrink-0 transition-opacity active:opacity-50",r].filter(Boolean).join(" "),role:"button",style:m,onClick:v,children:b})};d.propTypes=c,t.ZP=d},65999:function(e,t,r){r.r(t);var n=r(27573),o=r(88146),l=r(7653),i=r(84365);t.default=e=>(0,l.useContext)(i.Z)?(0,n.jsx)("a",{...e}):(0,n.jsx)(o.default,{...e})},46277:function(e,t,r){r.d(t,{Ii:function(){return a},TJ:function(){return d},jE:function(){return c},k1:function(){return g},oi:function(){return f}});var n=r(27573),o=r(81695),l=r(84568),i=r(88801),u=r(77387),s=r(91871);let a=e=>(0,n.jsx)(l.v2,{...e,className:"backdrop-blur-lg backdrop-saturate-100 bg-background-context-menu min-w-[180px] overflow-x-hidden overflow-y-auto rounded-lg shadow shadow-shadow",style:{maxHeight:323}}),c=e=>{let{className:t,href:r,isDestructive:i,isDisabled:u,onAction:s,...a}=e,c=(0,o.useRouter)();return(0,n.jsx)(l.sN,{...a,className:["border-b-[0.5px] border-separator cursor-pointer flex flex-row gap-2 items-center px-4 py-1 text-sans-subhead active:bg-button-active hover:bg-button-active last:border-b-0",i?"text-red":"text-label",t].filter(Boolean).join(" "),isDisabled:u,style:{minHeight:38},onAction:()=>{r&&c.push(r),null==s||s()}})},d=e=>(0,n.jsx)(i.wb,{...e,className:"backdrop-blur-lg backdrop-saturate-100 bg-background-context-menu min-w-[180px] overflow-x-hidden overflow-y-auto rounded-lg shadow shadow-shadow",style:{maxHeight:323}}),g=e=>{let{item:t,renderItem:r,withPhoto:o}=e;return o?(0,n.jsxs)("div",{className:"gap-2 flex flex-row items-center",children:[t.renderIconLeft?t.renderIconLeft({size:28}):t.photoUrl?(0,n.jsx)(s.Z,{className:"grow-0 shrink-0",style:{borderRadius:14},styleAspectRatio:1,styleWidth:28,url:t.photoUrl}):(0,n.jsx)(u.Z,{label:t.label,size:28}),(0,n.jsx)("div",{children:t.label})]}):r?r(t):t.label},f=e=>{let{className:t,...r}=e;return(0,n.jsx)(i.m9,{...r,className:["border-b-[0.5px] border-separator cursor-pointer flex flex-row gap-2 items-center px-4 py-1 text-sans-subhead text-label active:bg-button-active hover:bg-button-active last:border-b-0",t].filter(Boolean).join(" "),style:{minHeight:38}})}},70696:function(e,t,r){let n=(0,r(7653).createContext)();t.Z=n},77387:function(e,t,r){r.d(t,{Z:function(){return f}});var n=r(27573),o=r(63074),l=r.n(o),i=r(95492),u=r.n(i),s=r(45452),a=r.n(s);let c=()=>[{styleBackgroundColor:"var(--suite-color-blue)",styleBackgroundColorLight:"var(--suite-color-blue-light-15)"},{styleBackgroundColor:"var(--suite-color-green)",styleBackgroundColorLight:"var(--suite-color-green-light-15)"},{styleBackgroundColor:"var(--suite-color-indigo)",styleBackgroundColorLight:"var(--suite-color-indigo-light-15)"},{styleBackgroundColor:"var(--suite-color-orange)",styleBackgroundColorLight:"var(--suite-color-orange-light-15)"},{styleBackgroundColor:"var(--suite-color-pink)",styleBackgroundColorLight:"var(--suite-color-pink-light-15)"},{styleBackgroundColor:"var(--suite-color-purple)",styleBackgroundColorLight:"var(--suite-color-purple-light-15)"},{styleBackgroundColor:"var(--suite-color-red)",styleBackgroundColorLight:"var(--suite-color-red-light-15)"},{styleBackgroundColor:"var(--suite-color-teal)",styleBackgroundColorLight:"var(--suite-color-teal-light-15)"},{styleBackgroundColor:"var(--suite-color-yellow)",styleBackgroundColorLight:"var(--suite-color-yellow-light-15)"}],d={children:l().oneOfType([l().node,l().string]),label:l().string,size:l().number.isRequired,style:l().object,styleBorderRadius:l().number},g=e=>{let{children:t,label:r="",size:o,style:l={},styleBorderRadius:i,...s}=e,{styleBackgroundColor:d,styleBackgroundColorLight:g}=function(e){let{colors:t,label:r}=e,n=(r?r.charCodeAt(0):0)%t.length;return t[n]||u()(t)}({colors:c(),label:r});return(0,n.jsx)("div",{...s,className:"flex flex-row items-center justify-center overflow-hidden select-none shrink-0",style:{...l,background:"linear-gradient(\n          ".concat(g,",\n          ").concat(d,"\n        )"),borderRadius:null!=i?i:o/2,height:o,width:o},children:null!=t?t:(0,n.jsx)("div",{className:"font-medium text-white",style:{fontSize:o/2},children:function(e){let t=RegExp("[!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}]","g");return a()(e.replace(t,"").charAt(0))}(r)})})};g.propTypes=d;var f=g},91871:function(e,t,r){r.d(t,{Z:function(){return m}});var n=r(7653),o=r(63074),l=r.n(o),i=r(27573),u=r(62762),s=r.n(u),a=r(24558),c=r.n(a),d=r(94702),g=r.n(d),f=r(49147);let h={alt:l().string,className:l().string,placeholder:l().string,resizeMode:l().string,style:l().object,styleAspectRatio:l().number,styleHeight:l().number,styleMaxWidth:l().number,styleWidth:l().oneOfType([l().number,l().string]),url:l().string,onLoad:l().func},v=e=>{let{alt:t,className:r,placeholder:o=f.default.src,resizeMode:l,style:u,styleAspectRatio:a,styleHeight:d,styleMaxWidth:h,styleWidth:v="100%",url:p,onLoad:b,...m}=e,y=p&&c()(p)&&g()(p),[x,A]=(0,n.useState)(y?0:1),[k,w]=(0,n.useState)();return((0,n.useEffect)(()=>{y&&setTimeout(()=>{w("opacity 1s cubic-bezier(0.190, 1.000, 0.220, 1.000)")},100)},[]),p||o)?(0,i.jsx)("img",{...m,alt:t,className:["object-cover w-full",r].filter(Boolean).join(" "),src:null!=p?p:o,style:{...u,...s()(a)?{}:{aspectRatio:a},...s()(d)?{}:{height:d},...s()(h)?{}:{maxWidth:h},objectFit:l,opacity:x,transition:k,width:v},onError:()=>{A(1)},onLoad:e=>{A(1),b&&b(e)}}):(0,i.jsx)("div",{className:r,style:{...u,...s()(a)?{}:{aspectRatio:a},...s()(d)?{}:{height:d},...s()(h)?{}:{maxWidth:h},width:v}})};v.propTypes=h;let p={className:l().string,url:l().string,onPress:l().func},b=e=>{let{className:t,url:r,onPress:o,...l}=e;return o?(0,n.createElement)(v,{...l,className:["cursor-pointer",t].filter(Boolean).join(" "),key:r,url:r,onClick:o}):(0,n.createElement)(v,{...l,className:t,key:r,url:r})};b.propTypes=p;var m=b},84076:function(e,t,r){var n=r(27573),o=r(63074),l=r.n(o),i=r(91296);let u={color:l().string,size:l().number},s=e=>{let{color:t="var(--suite-color-label)",size:r=i.QG,...o}=e;return(0,n.jsx)("svg",{...o,height:r,width:r,children:(0,n.jsxs)("g",{transform:"scale(".concat(r/512,")"),children:[(0,n.jsx)("path",{d:"M254,65.51c0.666,-0.007 1.333,-0.01 2,-0.01c105.14,0 190.5,85.36 190.5,190.5c0,105.14 -85.36,190.5 -190.5,190.5c-105.14,0 -190.5,-85.36 -190.5,-190.5c0,-104.138 84.741,-188.884 188.5,-190.49l0,25.002c-89.96,1.602 -163.5,75.148 -163.5,165.488c0,91.342 74.158,165.5 165.5,165.5c91.342,0 165.5,-74.158 165.5,-165.5c0,-91.342 -74.158,-165.5 -165.5,-165.5c-0.668,0 -1.334,0.004 -2,0.012l0,-25.002Z",fill:t,opacity:.2}),(0,n.jsx)("g",{className:"animate-spin-fast origin-[256px_256px]",children:(0,n.jsx)("path",{d:"M256,65.5c105.14,0 190.5,85.36 190.5,190.5l0,0c0,6.901 -5.603,12.504 -12.504,12.504c-6.901,0 -12.504,-5.603 -12.504,-12.504l0,0c0,-0.141 0.003,-0.282 0.007,-0.422c-0.227,-91.003 -74.062,-164.843 -165.064,-165.077c-0.144,0.005 -0.289,0.007 -0.435,0.007c-6.901,0 -12.504,-5.603 -12.504,-12.504l0,0c0,-6.901 5.603,-12.504 12.504,-12.504l0,0Z",fill:t})})]})})};s.propTypes=u,t.Z=s},84365:function(e,t,r){let n=(0,r(7653).createContext)();t.Z=n},91265:function(e,t,r){r.d(t,{A4:function(){return a},AL:function(){return h},BS:function(){return c},N3:function(){return f},Vf:function(){return g},iS:function(){return p},mA:function(){return s},um:function(){return v},wy:function(){return d}});var n=r(1020),o=r.n(n),l=r(7653),i=r(75535),u=r(11385);let s=()=>(0,l.useContext)(i.Z),a=()=>{let{data:e}=s();return!!(null==e?void 0:e.privacyConsentDate)&&!!(null==e?void 0:e.termsConsentDate)},c=()=>{var e;return null===(e=s().data)||void 0===e?void 0:e.hasProductSettingsEditPermission},d=()=>{var e;return null===(e=s().data)||void 0===e?void 0:e.user},g=()=>{let{data:e}=s();return(null==e?void 0:e.user)?o()(e.user.name,e.user.surname):void 0},f=()=>{var e,t;return null===(t=s().data)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.email},h=()=>{var e,t;return null===(t=s().data)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.id},v=()=>{var e,t;return null===(t=s().data)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.locale},p=()=>{var e;let{data:t}=s(),r=(0,u.LN)();return(null==t?void 0:null===(e=t.user)||void 0===e?void 0:e.id)&&t.user.id===r.userRef}},13910:function(e,t,r){r.d(t,{N:function(){return u}});var n=r(10729),o=r(29860),l=r.n(o),i=r(7653);let u=(e,t)=>{let r=(0,n.Z)(e);return(0,i.useMemo)(()=>(function(e,t){let r=l()((t,r,n)=>{e(...n).then(t).catch(r)},t);return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((e,n)=>{r(e,n,t)})}})(function(){for(var e,t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return Promise.resolve(null===(e=r.current)||void 0===e?void 0:e.call(r,...n))},t),[])}},11385:function(e,t,r){r.d(t,{LN:function(){return l},N5:function(){return a},WE:function(){return c},h9:function(){return s},q7:function(){return u},rH:function(){return i},sN:function(){return d}});var n=r(7653),o=r(70696);let l=()=>(0,n.useContext)(o.Z),i=()=>l().customDomain,u=()=>l().domain,s=()=>l().id,a=()=>l().title,c=()=>{let e=l().subdomain;return"https://".concat(e,".spacebring.com")},d=()=>{let e=l().subdomain;return"".concat(e,".spacebring.com")}},31649:function(e,t,r){r.d(t,{Db:function(){return o},EG:function(){return i},G7:function(){return s},QU:function(){return n},t4:function(){return u},tF:function(){return l}});let n=e=>e.src,o={get:()=>({height:void 0,width:void 0})},l={easeInEaseOut:()=>{}},i={openURL:()=>{}},u={OS:"web",select:e=>"web"in e?e.web:e.default},s="div"},74276:function(e,t,r){r.d(t,{AQ:function(){return l},XT:function(){return i},zL:function(){return o}});var n=r(31649);let o=()=>n.t4.select({default:735,ios:768}),l=()=>440,i=()=>285},49147:function(e,t,r){r.r(t),t.default={src:"/_next/static/media/placeholder-1600x800.94690b68.png",height:800,width:1600,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAABlBMVEWfn5+UlJTnd1QFAAAAAnRSTlMCBEPIa6MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAZSURBVHicY2BgYGBgBBEMjIxgBGFAxcAAAADpAAsMcASqAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}}}]);