import q from"./Error404.BG5l0JD-.js";import{e as F,u as Q,n as Y,r as z,f as G,g as J,Y as K,h as X,c as Z,b as x,w as tt,i as et,j as nt,k as ot,l as at,o as R,m as U}from"./entry.C_TzNBLu.js";import{u as it}from"./headerStore.DWFsDqpc.js";import"./listbox.BKjGZsMS.js";import"./popover.FmTQj2SJ.js";import{s as st}from"./keyboard.CNIqfQA1.js";import{r as rt,g as ct,p as ut}from"./languages.CupF76nm.js";import{u as lt}from"./asyncData.BuuvPXLH.js";import{r as dt,a as mt,R as V}from"./route.C5fpOT5n.js";import{g as ht}from"./storyblok.DdGxMF7B.js";import{c as N,g as wt}from"./_commonjsHelpers.Cpj98o6Y.js";import"./Spacer.vue.wsUD7Bqz.js";import"./Text.vue.Di7LV81m.js";import"./text.RihSGhto.js";import"./index.BtlK6OwU.js";import"./BaseLink.vue.tpopFNI8.js";import"./Icon.vue.Bj82vuyD.js";import"./HorizontalStack.Bj2mQ0Ys.js";import"./Container.vue.BydkwFZ7.js";import"./Section.vue.BCw68aRj.js";import"./site.Ckydeo3Q.js";var D={},T={};Object.defineProperty(T,"__esModule",{value:!0});T.regionAPIs=void 0;T.regionAPIs=new Map([["us","https://api-iam.intercom.io"],["eu","https://api-iam.eu.intercom.io"],["ap","https://api-iam.au.intercom.io"]]);var v={},ft=N&&N.__awaiter||function(t,a,s,o){function n(u){return u instanceof s?u:new s(function(l){l(u)})}return new(s||(s=Promise))(function(u,l){function i(r){try{d(o.next(r))}catch(m){l(m)}}function _(r){try{d(o.throw(r))}catch(m){l(m)}}function d(r){r.done?u(r.value):n(r.value).then(i,_)}d((o=o.apply(t,a||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0});v.ref=v.init=void 0;const B="_intercom_npm_loader",C=function(){C.loaderQueue(arguments)};C.q=[];C.loaderQueue=function(t){C.q.push(t)};const M=function(){var t,a,s=document;if(!s.getElementById(B)){var o=s.createElement("script");o.type="text/javascript",o.async=!0,o.id=B,o.src="https://widget.intercom.io/widget/"+((t=window.intercomSettings)===null||t===void 0?void 0:t.app_id);var n=s.getElementsByTagName("script")[0];(a=n.parentNode)===null||a===void 0||a.insertBefore(o,n)}},H=()=>document.readyState==="complete"||document.readyState==="interactive",pt=()=>ft(void 0,void 0,void 0,function*(){var t=window,a=t.Intercom;t.intercomSettings&&(t.intercomSettings.installation_type="npm-package"),typeof a=="function"?(a("reattach_activator"),a("update",t.intercomSettings)):(t.Intercom=C,H()?M():(document.addEventListener("readystatechange",function(){H()&&M()}),t.attachEvent?t.attachEvent("onload",M):t.addEventListener("load",M,!1)))});v.init=pt;v.ref=void 0;(function(t){var a=N&&N.__rest||function(e,p){var I={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&p.indexOf(c)<0&&(I[c]=e[c]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,c=Object.getOwnPropertySymbols(e);g<c.length;g++)p.indexOf(c[g])<0&&Object.prototype.propertyIsEnumerable.call(e,c[g])&&(I[c[g]]=e[c[g]]);return I};Object.defineProperty(t,"__esModule",{value:!0}),t.onUserEmailSupplied=t.showConversation=t.showTicket=t.startChecklist=t.startSurvey=t.showNews=t.showArticle=t.startTour=t.getVisitorId=t.trackEvent=t.onUnreadCountChange=t.onShow=t.onHide=t.showNewMessage=t.showMessages=t.showSpace=t.show=t.hide=t.update=t.shutdown=t.boot=t.Intercom=void 0;const s=T,o=v,n=(e,...p)=>{typeof window!==void 0&&window.Intercom?window.Intercom(e,...p):console.warn("Please ensure Intercom is setup and running on client-side!")},u=e=>{if(typeof e!="object"){console.warn("Intercom initialiser called with invalid parameters.");return}const{region:p="us"}=e,I=a(e,["region"]);typeof window<"u"&&!o.ref&&(window.intercomSettings=Object.assign(Object.assign({},I),{api_base:s.regionAPIs.get(p)}),(0,o.init)())};t.Intercom=u,t.default=t.Intercom;const l=e=>n("boot",e);t.boot=l;const i=()=>n("shutdown");t.shutdown=i;const _=e=>n("update",e);t.update=_;const d=()=>n("hide");t.hide=d;const r=()=>n("show");t.show=r;const m=e=>n("showSpace",e);t.showSpace=m;const j=()=>n("showMessages");t.showMessages=j;const k=e=>n("showNewMessage",e);t.showNewMessage=k;const E=e=>n("onHide",e);t.onHide=E;const O=e=>n("onShow",e);t.onShow=O;const h=e=>n("onUnreadCountChange",e);t.onUnreadCountChange=h;const P=(...e)=>n("trackEvent",...e);t.trackEvent=P;const y=()=>n("getVisitorId");t.getVisitorId=y;const b=e=>n("startTour",e);t.startTour=b;const S=e=>n("showArticle",e);t.showArticle=S;const w=e=>n("showNews",e);t.showNews=w;const f=e=>n("startSurvey",e);t.startSurvey=f;const A=e=>n("startChecklist",e);t.startChecklist=A;const L=e=>n("showTicket",e);t.showTicket=L;const W=e=>n("showConversation",e);t.showConversation=W;const $=e=>n("onUserEmailSupplied",e);t.onUserEmailSupplied=$})(D);const gt=wt(D),Ht=F({__name:"[...slug]",async setup(t){var k,E,O;let a,s;const o=nt(),n=Q(),u=Y(),l=it();st(()=>ot());const i=z(null),_=rt(n.path),d=dt(mt(_)),r=ct(d),{data:m}=([a,s]=G(async()=>lt(`${r}/${d}`,async()=>await u.get(`cdn/stories/${ut(d)}`,{version:ht(o.public.PUBLIC_ENV),resolve_links:"url",resolve_relations:V,language:r}),{transform:h=>{const{content:P,full_slug:y,id:b,name:S,path:w,published_at:f,uuid:A,translated_slugs:L}=h.data.story;return{content:P,full_slug:y,id:b,name:S,path:w,published_at:f,uuid:A,translated_slugs:L}}})),a=await a,s(),a);i.value=m.value,l.setHeaderTheme(((k=i.value)==null?void 0:k.content.headerColor)||"transparent"),l.setLanguageSwitchOptions(((E=i.value)==null?void 0:E.translated_slugs)||[]);const j=((O=i.value)==null?void 0:O.content.component)!=="page-settings"?"default":!1;return J(()=>{i.value&&o.public.PUBLIC_ENV!=="production"&&K(i.value.id,h=>i.value=h,{resolveRelations:V.split(",")}),o.public.INTERCOM_APP_ID&&gt({app_id:o.public.INTERCOM_APP_ID})}),(h,P)=>{const y=X("StoryblokComponent"),b=q,S=at;return R(),Z("div",null,[x(S,{blok:i.value,name:et(j)},{default:tt(()=>{var w,f;return[i.value?(R(),U(y,{key:(w=i.value)==null?void 0:w.uuid,blok:i.value.content,"published-date":(f=i.value)==null?void 0:f.published_at},null,8,["blok","published-date"])):(R(),U(b,{key:1}))]}),_:1},8,["blok","name"])])}}});export{Ht as default};
