(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,117032,e=>{"use strict";var t=e.i(271645);let s=(0,t.createContext)(null);function r(){let e=(0,t.useContext)(s);if(null===e)throw Error("Error: useFlagMap was used outside of FeatureProvider.");return e}function n(e){return(0,t.createElement)(s.Provider,{value:e.value},e.children)}e.s(["FeatureProvider",()=>n,"useFlagMap",()=>r])},784150,924540,e=>{"use strict";e.i(247167);var t=e.i(271645);let s=function(){try{let e="nuqs-localStorage-test";if("u"{let s=t.shift();return"%O"===e&&s?JSON.stringify(s).replace(/"([^"]+)":/g,"$1:"):String(s)})}(e,...t);performance.mark(n);try{console.log(e,...t)}catch{console.log(n)}}function n(e,...t){s&&console.warn(e,...t)}let i={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function a(e){return`[nuqs] ${i[e]} See https://nuqs.dev/NUQS-${e}`}function o(e){if(0===e.size)return"";let t=[];for(let[s,r]of e.entries()){let e=s.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${r.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(//g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+t.join("&")}let l=(0,t.createContext)({useAdapter(){throw Error(a(404))}});function u(e){return({children:s,defaultOptions:r,processUrlSearchParams:n,...i})=>(0,t.createElement)(l.Provider,{...i,value:{useAdapter:e,defaultOptions:r,processUrlSearchParams:n}},s)}function c(e){let s=(0,t.useContext)(l);if(!("useAdapter"in s))throw Error(a(404));return s.useAdapter(e)}l.displayName="NuqsAdapterContext",s&&"u">typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==l&&console.error(a(303)),window.__NuqsAdapterContext=l);let d=()=>(0,t.useContext)(l).defaultOptions,h=()=>(0,t.useContext)(l).processUrlSearchParams;function m(e){return{method:"throttle",timeMs:e}}function p(e){return{method:"debounce",timeMs:e}}e.s(["a",()=>h,"c",()=>r,"i",()=>d,"l",()=>n,"n",()=>u,"o",()=>o,"r",()=>c,"s",()=>a],924540);let f=m(function(){if("u"=17?120:320}catch{return 320}}());function g(e){return null===e||Array.isArray(e)&&0===e.length}function v(e,t,s){if("string"==typeof e)s.set(t,e);else{for(let r of(s.delete(t),e))s.append(t,r);s.has(t)||s.set(t,"")}return s}function x(){let e=new Map;return{on(t,s){let r=e.get(t)||[];return r.push(s),e.set(t,r),()=>this.off(t,s)},off(t,s){let r=e.get(t);r&&e.set(t,r.filter(e=>e!==s))},emit(t,s){e.get(t)?.forEach(e=>e(s))}}}function y(e,t,s){let r=setTimeout(function(){e(),s.removeEventListener("abort",n)},t);function n(){clearTimeout(r),s.removeEventListener("abort",n)}s.addEventListener("abort",n)}function b(){let e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},s=()=>{};return{promise:new e((e,r)=>{t=e,s=r}),resolve:t,reject:s}}function _(){return new URLSearchParams(location.search)}var S=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=f.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:s},n=f.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),r("[nuqs gtq] Enqueueing %s=%s %O",e,t,s),this.updateMap.set(e,t),"push"===s.history&&(this.options.history="push"),s.scroll&&(this.options.scroll=!0),!1===s.shallow&&(this.options.shallow=!1),s.startTransition&&this.transitions.add(s.startTransition),(!Number.isFinite(this.timeMs)||n>this.timeMs)&&(this.timeMs=n)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=_}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=_,rateLimitFactor:t=1,...s},n){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return r("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=b();let i=()=>{this.lastFlushedAt=performance.now();let[t,r]=this.applyPendingUpdates({...s,autoResetQueueOnUpdate:s.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},n);null===r?(this.resolvers.resolve(t),this.resetQueueOnNextPush=!0):this.resolvers.reject(t),this.resolvers=null},a=()=>{let e=performance.now()-this.lastFlushedAt,s=this.timeMs,n=t*Math.max(0,s-e);r("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",n,s,t),0===n?i():y(i,n,this.controller.signal)};return y(a,0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){let e=Array.from(this.updateMap.keys());return r("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=f.timeMs,e}applyPendingUpdates(e,t){let{updateUrl:s,getSearchParamsSnapshot:n}=e,i=n();if(r("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,i.toString()),0===this.updateMap.size)return[i,null];let o=Array.from(this.updateMap.entries()),l={...this.options},u=Array.from(this.transitions);for(let[t,s]of(e.autoResetQueueOnUpdate&&this.reset(),r("[nuqs gtq] Flushing queue %O with options %O",o,l),o))null===s?i.delete(t):i=v(s,t,i);t&&(i=t(i));try{return!function(e,t){let s=t;for(let t=e.length-1;t>=0;t--){let r=e[t];if(!r)continue;let n=s;s=()=>r(n)}s()}(u,()=>{s(i,l)}),[i,null]}catch(e){return console.error(a(429),o.map(([e])=>e).join(),e),[i,e]}}};let w=new S;var j=class{callback;resolvers=b();controller=new AbortController;queuedValue=void 0;constructor(e){this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,y(()=>{let t=this.resolvers;try{r("[nuqs dq] Flushing debounce queue",e);let s=this.callback(e);r("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=b(),s.then(e=>t.resolve(e)).catch(e=>t.reject(e))}catch(e){this.queuedValue=void 0,t.reject(e)}},t,this.controller.signal),this.resolvers.promise}};let k=new class{throttleQueue;queues=new Map;queuedQuerySync=x();constructor(e=new S){this.throttleQueue=e}useQueuedQueries(e){var s,r;let n,i;return s=(e,t)=>this.queuedQuerySync.on(e,t),r=e=>this.getQueuedQuery(e),n=(0,t.useCallback)(()=>{let t=Object.fromEntries(e.map(e=>[e,r(e)]));return[JSON.stringify(t),t]},[e.join(","),r]),null===(i=(0,t.useRef)(null)).current&&(i.current=n()),(0,t.useSyncExternalStore)((0,t.useCallback)(t=>{let r=e.map(e=>s(e,t));return()=>r.forEach(e=>e())},[e.join(","),s]),()=>{let[e,t]=n();return i.current[0]===e?i.current[1]:(i.current=[e,t],t)},()=>i.current[1])}push(e,t,s){if(!Number.isFinite(t))return Promise.resolve((s.getSearchParamsSnapshot??_)());let n=e.key;if(!this.queues.has(n)){r("[nuqs dqc] Creating debounce queue for `%s`",n);let e=new j(e=>(this.throttleQueue.push(e),this.throttleQueue.flush(s).finally(()=>{this.queues.get(e.key)?.queuedValue===void 0&&(r("[nuqs dqc] Cleaning up empty queue for `%s`",e.key),this.queues.delete(e.key)),this.queuedQuerySync.emit(e.key)})));this.queues.set(n,e)}r("[nuqs dqc] Enqueueing debounce update %O",e);let i=this.queues.get(n).push(e,t);return this.queuedQuerySync.emit(n),i}abort(e){let t=this.queues.get(e);return t?(r("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),e=>(e.then(t.resolvers.resolve,t.resolvers.reject),e)):e=>e}abortAll(){for(let[e,t]of this.queues.entries())r("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){let t=this.queues.get(e)?.queuedValue?.query;return void 0!==t?t:this.throttleQueue.getQueuedQuery(e)}}(w);e.s(["a",()=>v,"c",()=>m,"i",()=>g,"n",()=>w,"o",()=>p,"r",()=>x,"s",()=>f,"t",()=>k],784150)},270236,e=>{"use strict";var t=e.i(271645);let s=(0,t.createContext)(null);function r(){let e=(0,t.useContext)(s);if(!e)throw Error("Error: useOrgBranding was used outside of OrgBrandingProvider.");return e.orgBrand}function n(e){return(0,t.createElement)(s.Provider,{value:e.value},e.children)}e.s(["OrgBrandingProvider",()=>n,"useOrgBranding",()=>r])},651855,e=>{"use strict";var t=e.i(843476),s=e.i(335590),r=e.i(857739),n=e.i(941739);function i({Icon:e,customIcon:i,avatar:a,headline:o,description:l,buttonText:u,buttonOnClick:c,buttonRaw:d,border:h=!0,dashedBorder:m=!0,className:p,iconClassName:f,iconWrapperClassName:g,limitWidth:v=!0}){return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{"data-testid":"empty-screen",className:(0,s.default)("flex w-full select-none flex-col items-center justify-center rounded-lg p-7 lg:p-20",h&&"border-subtle border",m&&"border-dashed",p),children:[a?(0,t.jsx)("div",{className:"flex h-[72px] w-[72px] items-center justify-center rounded-full",children:a}):null,e?(0,t.jsx)("div",{className:(0,s.default)("bg-emphasis flex h-[72px] w-[72px] items-center justify-center rounded-full ",g),children:(0,t.jsx)(n.Icon,{name:e,className:(0,s.default)("text-default inline-block h-10 w-10 stroke-[1.3px]",f)})}):null,i?(0,t.jsx)(t.Fragment,{children:i}):null,(0,t.jsxs)("div",{className:`flex ${v?"max-w-[420px]":""} flex-col items-center`,children:[(0,t.jsx)("h2",{className:(0,s.default)("text-semibold font-cal text-emphasis text-center text-xl normal-nums",e&&"mt-6",!l&&"mb-8"),children:o}),l&&(0,t.jsx)("div",{className:"text-default mb-8 mt-3 text-center text-sm font-normal leading-6",children:l}),c&&u&&(0,t.jsx)(r.Button,{onClick:e=>c(e),children:u}),d]})]})})}e.s(["EmptyScreen",()=>i])},621918,e=>{"use strict";var t=e.i(843476),s=e.i(217255),r=e.i(271645),n=e.i(12346),i=e.i(857739),a=e.i(651855);let o=({children:e,as:o="",...l})=>{let u=(0,s.useSession)(),{t:c}=(0,n.useLocale)(),d=o||r.Fragment,h=u.data?u.data.hasValidLicense:null;return(0,r.useEffect)(()=>{},[]),(0,t.jsx)(d,{...l,children:null===h||h?e:(0,t.jsx)(a.EmptyScreen,{Icon:"triangle-alert",headline:c("enterprise_license"),buttonRaw:(0,t.jsx)(i.Button,{color:"secondary",href:"https://go.cal.com/get-license",children:c("contact_sales")}),description:c("enterprise_license_sales")})})};e.s(["default",0,o,"withLicenseRequired",0,e=>s=>(0,t.jsx)("div",{children:(0,t.jsx)(o,{children:(0,t.jsx)(e,{...s})})})])},516015,(e,t,s)=>{},898547,(e,t,s)=>{var r=e.i(247167);e.r(516015);var n=e.r(271645),i=n&&"object"==typeof n&&"default"in n?n:{default:n},a=void 0!==r.default&&r.default.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,s=t.name,r=void 0===s?"stylesheet":s,n=t.optimizeForSpeed,i=void 0===n?a:n;u(o(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",u("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,s=e.prototype;return s.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},s.isOptimizeForSpeed=function(){return this._optimizeForSpeed},s.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,s){return"number"==typeof s?e._serverSheet.cssRules[s]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),s},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},s.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;ttypeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!s.cssRules[e])return e;s.deleteRule(e);try{s.insertRule(t,e)}catch(r){a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),s.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];u(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},s.deleteRule=function(e){if("u"typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},s.cssRules=function(){var e=this;return"u">>0},d={};function h(e,t){if(!t)return"jsx-"+e;var s=String(t),r=e+s;return d[r]||(d[r]="jsx-"+c(e+"-"+s)),d[r]}function m(e,t){"u"typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var s=this.getIdAndRules(e),r=s.styleId,n=s.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var i=n.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=i,this._instancesCounts[r]=1},t.remove=function(e){var t=this,s=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(s in this._instancesCounts,"styleId: `"+s+"` not found"),this._instancesCounts[s]-=1,this._instancesCounts[s]<1){var r=this._fromServer&&this._fromServer[s];r?(r.parentNode.removeChild(r),delete this._fromServer[s]):(this._indices[s].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[s]),delete this._instancesCounts[s]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],s=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return s[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,s;return t=this.cssRules(),void 0===(s=e)&&(s={}),t.map(function(e){var t=e[0],r=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:s.nonce?s.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,s=e.dynamic,r=e.id;if(s){var n=h(r,s);return{styleId:n,rules:Array.isArray(t)?t.map(function(e){return m(n,e)}):[m(n,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=n.createContext(null);function g(){return new p}function v(){return n.useContext(f)}f.displayName="StyleSheetContext";var x=i.default.useInsertionEffect||i.default.useLayoutEffect,y="u">typeof window?g():void 0;function b(e){var t=y||v();return t&&("u"{t.exports=e.r(898547).style},528773,e=>{"use strict";var t,s=e.i(24509);let r=s.EMBED_LIB_URL,n=`${s.WEBAPP_URL}/embed/preview.html`;var i=((t={}).auto="auto",t.light="light",t.dark="dark",t);e.s(["EMBED_PREVIEW_HTML_URL",0,n,"EmbedTheme",()=>i,"embedLibUrl",0,r])},478052,e=>{"use strict";var t=e.i(247167),s=e.i(273446);let r={organizations:!1,teams:!1,"calendar-cache":!1,"calendar-cache-serve":!1,emails:!1,insights:!1,webhooks:!1,workflows:!1,"email-verification":!1,"google-workspace-directory":!1,"disable-signup":!1,attributes:!1,"organizer-request-email-v2":!1,"delegation-credential":!1,"salesforce-crm-tasker":!1,"workflow-smtp-emails":!1,"cal-video-log-in-overlay":!1,"use-api-v2-for-team-slots":!1,pbac:!1,"restriction-schedule":!1,"team-booking-page-cache":!1,"cal-ai-voice-agents":!1,"tiered-support-chat":!1,"calendar-subscription-cache":!1,"calendar-subscription-sync":!1,"onboarding-v3":!1,"booker-botid":!1,"booking-calendar-view":!1,"booking-email-sms-tasker":!1,"bookings-v3":!1,"booking-audit":!1,"monthly-proration":!1,"hwm-seating":!1,"sidebar-tips":!1};function n(){return s.trpc.viewer.features.map.useQuery().data??r}t.default.env.NEXT_PUBLIC_IS_E2E&&(r.organizations=!0,r.teams=!0),e.s(["useFlags",()=>n])},842589,e=>{"use strict";var t=e.i(843476);e.i(436864);var s=e.i(621918),r=e.i(437902),n=e.i(186336),i=e.i(217255),a=e.i(278587),o=e.i(618566),l=e.i(924540),u=e.i(784150);function c(){(0,l.c)("[nuqs] Aborting queues"),u.t.abortAll(),u.n.abort().forEach(e=>u.t.queuedQuerySync.emit(e))}var d=e.i(271645);let h=0;function m(){h=0,c()}function p(){--h<=0&&(h=0,queueMicrotask(c))}function f(){return(0,d.useEffect)(()=>(!function(){var e;if(e="next/app","u"window.removeEventListener("popstate",m)),[]),null}let g=(0,l.n)(function(){let e=(0,o.useRouter)(),[t,s]=(0,d.useOptimistic)((0,o.useSearchParams)());return{searchParams:t,updateUrl:(0,d.useCallback)((t,r)=>{(0,d.startTransition)(()=>{r.shallow||s(t);let n=function(e){let{origin:t,pathname:s,hash:r}=location;return t+s+(0,l.o)(e)+r}(t);(0,l.c)("[nuqs next/app] Updating url: %s",n);let i="push"===r.history?history.pushState:history.replaceState;h=3,i.call(history,null,"",n),r.scroll&&window.scrollTo(0,0),r.shallow||e.replace(n,{scroll:!1})})},[]),rateLimitFactor:3,autoResetQueueOnUpdate:!1}});function v({children:e,...t}){return(0,d.createElement)(g,{...t,children:[(0,d.createElement)(d.Suspense,{key:"nuqs-adapter-suspense-navspy",children:(0,d.createElement)(f)}),e]})}var x=e.i(247167),y=e.i(770703);let b=x.default.env.NEXT_PUBLIC_POSTHOG_KEY?(0,y.default)(()=>e.A(321994),{loadableGenerated:{modules:[17567]}}):d.Fragment,_=(0,y.default)(()=>e.A(667579),{loadableGenerated:{modules:[132693]},ssr:!1});var S=e.i(270236),w=e.i(117032),j=e.i(478052);let k=x.default.env.NEXT_PUBLIC_HELPSCOUT_KEY?(0,y.default)(()=>e.A(14723),{loadableGenerated:{modules:[131452]}}):d.Fragment,q=x.default.env.NEXT_PUBLIC_INTERCOM_APP_ID?(0,y.default)(()=>e.A(771570),{loadableGenerated:{modules:[453618]},ssr:!1}):d.Fragment;var E=e.i(173233);let R=["/auth/setup"];function N(e){let t=new URLSearchParams(e),s=Array.from(t.entries());return s.forEach(([e])=>t.delete(e)),s.sort(([e],[t])=>"uid"===e?-1:"uid"===t?1:e.localeCompare(t)).forEach(([e,s])=>t.append(e,s)),t}var C=e.i(50270),F=e.i(528773);let P=e=>{let s=(0,o.useSearchParams)(),n=s?window.getEmbedNamespace():null,i="string"==typeof n,{key:l,...u}=function({props:e,isEmbedMode:t,embedNamespace:s,pathname:r,searchParams:n}){let i=e.isBookingPage?"bookingConfigured":!1===e.isThemeSupported?"none":"appConfigured",a=n?.get("theme")??"",o=C.z.enum(["light","dark","system","auto"]).safeParse(a),l=a.length>0&&!o.success,u="none"===i||l?"light":void 0;if(u)return{key:"forcedThemeKey",storageKey:"forcedThemeKey",forcedTheme:u,attribute:"class",nonce:e.nonce,enableColorScheme:!1,enableSystem:"none"!==i};let c="bookingConfigured"===i,d=r?function({pathname:e}){if("/"===e)return"/";let t=e.split("/").slice(1),s="team"===t[0],r="forms"===t[0],n="d"===t[0],i=t[0].toLowerCase().split(/\+|%2B/).length>1;return r||n?t[1]:i?t[0]:s?t[1]:t[0]}({pathname:r}):null;(c||t)&&!d&&console.error("`themeBasis` is nullish. This should not happen.",{pathname:r});let h=d?`:${d}`:"",m=t&&a&&a!==F.EmbedTheme.auto?`:${a}`:"",p=t?`embed-theme-${s}${h}${m}`:"appConfigured"===i?"app-theme":c?`booking-theme${h}`:void 0;return{storageKey:p,nonce:e.nonce,enableColorScheme:!1,enableSystem:"none"!==i,key:p,attribute:"class"}}({props:e,isEmbedMode:i,embedNamespace:n,pathname:(0,o.usePathname)(),searchParams:s});return(0,t.jsxs)(a.ThemeProvider,{...u,children:[!i&&(0,t.jsx)(r.default,{id:"437a69cba65ccf50",children:".dark{--lightningcss-light: ;--lightningcss-dark:initial;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}"}),e.children]},l)};function T({children:e}){let s=(0,j.useFlags)();return(0,t.jsx)(w.FeatureProvider,{value:s,children:e})}function A({children:e}){let s,r=(s=(0,i.useSession)(),s?.data?.user.org);return(0,t.jsx)(S.OrgBrandingProvider,{value:{orgBrand:r},children:e})}let O=e=>{let s,r,i,a=(0,E.default)(),l=(s=(0,o.usePathname)(),!R.some(e=>s?.startsWith(e))),u=(r=(0,o.usePathname)(),i=r?.startsWith("/bookings/"),(0,d.useMemo)(()=>i?{processUrlSearchParams:N}:{},[i])),c=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(n.TooltipProvider,{children:(0,t.jsx)(P,{nonce:e.nonce,isThemeSupported:l,isBookingPage:e.isBookingPage||a,children:(0,t.jsx)(v,{...u,children:(0,t.jsx)(T,{children:e.isBookingPage||a?(0,t.jsx)(A,{children:e.children}):(0,t.jsx)(q,{children:(0,t.jsx)(A,{children:e.children})})})})})})});return e.isBookingPage||a?c:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(k,{children:(0,t.jsxs)(b,{children:[(0,t.jsx)(_,{}),c]})})})};e.s(["default",0,function(e){let r=e.nonce?"":void 0,n={...e,nonce:r};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(O,{...n,children:(0,t.jsx)(t.Fragment,{children:e.requiresLicense?(0,t.jsx)(s.default,{children:e.children}):(0,t.jsx)(t.Fragment,{children:e.children})})})})}],842589)},503033,e=>{"use strict";var t,s=e.i(843476),r=e.i(522016),n=e.i(618566),i=e.i(271645),a=e.i(551623),o=e.i(24509),l=e.i(12346),u=e.i(941739),c=((t=c||{}).ORG="ORG",t.TEAM="TEAM",t.USER="USER",t.OTHER="OTHER",t);function d({host:e}){let{t}=(0,l.useLocale)(),c=(0,n.usePathname)()??"",{username:d,pageType:h,url:m}=function(e,t){let{isValidOrgDomain:s,currentOrgDomain:r}=(0,a.getOrgDomainConfigFromHostname)({hostname:t}),[n]=e?.replace("%20","-").split(/[?#]/)??[];if(!n||s&&r)return{username:r??"",pageType:"ORG",url:`${o.WEBSITE_URL}/signup?callbackUrl=settings/organizations/new%3Fslug%3D${r?.replace("/","")??""}`};{let e=n.split("/");return"team"===e[1]&&3===e.length?{username:e[2],pageType:"TEAM",url:`${o.WEBSITE_URL}/signup?callbackUrl=settings/teams/new%3Fslug%3D${e[2].replace("/","")}`}:{username:n,pageType:"USER",url:`${o.WEBSITE_URL}/signup?username=${n.replace("/","")}`}}}(c,e),p=c?.startsWith("/booking"),f=c?.includes("/",2)||p,g=c?.startsWith("/insights");(0,i.useLayoutEffect)(()=>{window.CalComPageStatus="404"},[]);let v=[{title:t("enterprise"),description:"Learn more about organizations and subdomains in our enterprise plan.",icon:"shield",href:`${o.WEBSITE_URL}/enterprise`},{title:t("documentation"),description:t("documentation_description"),icon:"file-text",href:o.DOCS_URL},{title:t("blog"),description:t("blog_description"),icon:"book-open",href:`${o.WEBSITE_URL}/blog`}];return g?(0,s.jsx)("div",{className:"min-h-screen bg-white px-4","data-testid":"404-page",children:(0,s.jsxs)("main",{className:"mx-auto max-w-xl pb-6 pt-16 sm:pt-24",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("p",{className:"text-sm font-semibold uppercase tracking-wide text-black",children:t("error_404")}),(0,s.jsx)("h1",{className:"font-cal mt-2 text-4xl font-extrabold text-gray-900 sm:text-5xl",children:t("feature_currently_disabled")??"Feature is currently disabled"})]}),(0,s.jsx)("div",{className:"mt-12",children:(0,s.jsx)("div",{className:"mt-8",children:(0,s.jsxs)(r.default,{href:o.WEBSITE_URL,className:"text-base font-medium text-black hover:text-gray-500",children:[t("or_go_back_home"),(0,s.jsx)("span",{"aria-hidden":"true",children:" →"})]})})})]})}):(0,s.jsx)("div",{className:"bg-default min-h-screen px-4","data-testid":"404-page",children:(0,s.jsxs)("main",{className:"mx-auto max-w-xl pb-6 pt-16 sm:pt-24",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("p",{className:"text-emphasis text-sm font-semibold uppercase tracking-wide",children:t("error_404")}),(0,s.jsx)("h1",{className:"font-cal text-emphasis mt-2 text-4xl font-extrabold sm:text-5xl",children:p?"Booking not found":t("page_doesnt_exist")}),f&&"TEAM"!==h?(0,s.jsx)("span",{className:"mt-2 inline-block text-lg",children:t("check_spelling_mistakes_or_go_back")}):o.IS_CALCOM?(0,s.jsxs)("a",{target:"_blank",href:m,className:"mt-2 inline-block text-lg",rel:"noreferrer",children:[t(`404_the_${h.toLowerCase()}`)," ",d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("strong",{className:"text-blue-500",children:d}),` ${t("is_still_available")} `,(0,s.jsx)("span",{className:"text-blue-500",children:t("register_now")}),"."]}):null]}):(0,s.jsxs)("span",{className:"mt-2 inline-block text-lg",children:[t(`404_the_${h.toLowerCase()}`)," ",d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("strong",{className:"mt-2 inline-block text-lg text-green-500",children:d})," ",t("is_still_available")]}):null]})]}),(0,s.jsxs)("div",{className:"mt-12",children:[(!f&&o.IS_CALCOM||"ORG"===h||"TEAM"===h)&&(0,s.jsx)("ul",{role:"list",className:"my-4",children:(0,s.jsx)("li",{className:"border-2 border-green-500 px-4 py-2",children:(0,s.jsxs)("a",{href:m,target:"_blank",className:"relative flex items-start space-x-4 py-6 rtl:space-x-reverse",rel:"noreferrer",children:[(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-lg bg-green-50",children:(0,s.jsx)(u.Icon,{name:"check",className:"h-6 w-6 text-green-500","aria-hidden":"true"})})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("h3",{className:"text-emphasis text-base font-medium",children:(0,s.jsx)("span",{className:"focus-within:ring-empthasis rounded-sm focus-within:ring-2 focus-within:ring-offset-2",children:(0,s.jsxs)("span",{className:"focus:outline-none",children:[(0,s.jsx)("span",{className:"absolute inset-0","aria-hidden":"true"}),t("register")," ",(0,s.jsx)("strong",{className:"text-green-500",children:`${"TEAM"===h?`${new URL(o.WEBSITE_URL).host}/team/`:""}${d}${"ORG"===h?`.${(0,a.subdomainSuffix)()}`:""}`})]})})}),(0,s.jsx)("p",{className:"text-subtle text-base",children:t(`404_claim_entity_${h.toLowerCase()}`)})]}),(0,s.jsx)("div",{className:"shrink-0 self-center",children:(0,s.jsx)(u.Icon,{name:"chevron-right",className:"text-muted h-5 w-5","aria-hidden":"true"})})]})})}),(0,s.jsx)("h2",{className:"text-subtle text-sm font-semibold uppercase tracking-wide",children:t("popular_pages")}),(0,s.jsx)("ul",{role:"list",className:"border-subtle divide-subtle divide-y",children:v.filter((e,t)=>"ORG"===h||0!==t).map((e,t)=>(0,s.jsx)("li",{className:"px-4 py-2",children:(0,s.jsxs)("a",{href:e.href,className:"relative flex items-start space-x-4 py-6 rtl:space-x-reverse",children:[(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)("span",{className:"bg-cal-muted flex h-12 w-12 items-center justify-center rounded-lg",children:(0,s.jsx)(u.Icon,{name:e.icon,className:"text-default h-6 w-6","aria-hidden":"true"})})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("h3",{className:"text-emphasis text-base font-medium",children:(0,s.jsxs)("span",{className:"focus-within:ring-empthasis rounded-sm focus-within:ring-2 focus-within:ring-offset-2",children:[(0,s.jsx)("span",{className:"absolute inset-0","aria-hidden":"true"}),e.title]})}),(0,s.jsx)("p",{className:"text-subtle text-base",children:e.description})]}),(0,s.jsx)("div",{className:"shrink-0 self-center",children:(0,s.jsx)(u.Icon,{name:"chevron-right",className:"text-muted h-5 w-5","aria-hidden":"true"})})]})},t))}),(0,s.jsx)("div",{className:"mt-8",children:(0,s.jsxs)(r.default,{href:o.WEBSITE_URL,className:"hover:text-subtle text-emphasis text-base font-medium",children:[t("or_go_back_home"),(0,s.jsx)("span",{"aria-hidden":"true",children:" →"})]})})]})]})})}e.s(["NotFound",()=>d])},321994,e=>{e.v(t=>Promise.all(["static/chunks/b8b68c1d6af9c3c5.js","static/chunks/84afc424568c66e2.js"].map(t=>e.l(t))).then(()=>t(17567)))},667579,e=>{e.v(t=>Promise.all(["static/chunks/a4c4a11395aba6ea.js","static/chunks/84afc424568c66e2.js"].map(t=>e.l(t))).then(()=>t(132693)))},14723,e=>{e.v(t=>Promise.all(["static/chunks/b8ff476a2500d927.js"].map(t=>e.l(t))).then(()=>t(131452)))},771570,e=>{e.v(t=>Promise.all(["static/chunks/c1498d5c8203dd1d.js","static/chunks/459770adf2c357c4.js","static/chunks/c9c8f84e1e8889d0.js"].map(t=>e.l(t))).then(()=>t(453618)))}]); //# sourceMappingURL=42fa13449d3b3b14.js.map