1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tlZWS2dM.js","./CRcD7-OL.js","./entry.B3OpC3pH.css","./CJqKfvUf.js","./AXXv7PeY.js","./CQnfphs_.js","./EditableBlockLine.C_DkxADs.css"])))=>i.map(i=>d[i]); 2import{_ as U}from"./BgPzu36z.js";import{d as B,k as r,a4 as D,h as G,g as M,j as N,Q as P,a3 as R,a5 as F,a6 as $,S as W,o as i,c as u,u as a,s as h,e as _,M as K,a as v,t as C,b as V,G as T,X as j,a0 as q,a1 as J,C as Q,a7 as X,_ as O,n as H,a8 as Y}from"./CRcD7-OL.js";import"./AXXv7PeY.js";const Z=["aria-label"],ee={key:2,class:"text-center"},oe=["id"],te=B({__name:"BookingToolBlockComp",props:{block:{}},setup(m){const n=q(()=>J(()=>import("./tlZWS2dM.js").then(e=>e.a),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),c=Q(),t=m,l=r(),b=r(`bt-${D()}`),d=G(),p=r(!0),A=M(),L=N(()=>{let e={width:"auto",height:t.block.data.height??550,theme:{border:{visible:!1,color:"#dddddd",width:1}},showAppStoreBadgesOnDesktop:!1};const o=c.public.BOOKING_TOOL_ASSET_URL;return o&&o.endsWith("public/webapp/")&&(e.apiBaseUrl=o.substring(0,o.length-8)),d.settings.links.apps.android&&(e.googlePlayURL=d.settings.links.apps.android||void 0),d.settings.links.apps.ios&&(e.appStoreURL=d.settings.links.apps.ios||void 0),t.block.data.forceFullScreen&&(e.height="100%"),t.block.data.useOptions?e={...e,...JSON.parse(t.block.data.options||"{}")}:(e.enableAppStoreBadges=t.block.data.enableAppStoreBadges,e.showAppStoreBadgesOnDesktop=t.block.data.showAppStoreBadgesOnDesktop,e.showGetAppPromoCard=t.block.data.showGetAppPromoCard,t.block.data.allowFullScreen&&s.value&&(e.height="100%",e.border=void 0)),e});P(()=>{if(window.CleanCloudWebApp===void 0){const e=document.createElement("script");e.src=c.public.BOOKING_TOOL_ASSET_URL+"cleancloud.js",e.onload=f,document.body.appendChild(e);const o=document.createElement("link");o.type="text/css",o.rel="stylesheet",o.href=c.public.BOOKING_TOOL_ASSET_URL+"cleancloud.css",document.head.appendChild(o)}});let k;function f(){if(!window.CleanCloudWebApp||k)return;const e=()=>document.querySelector(`#${l.value?.getAttribute("id")}`),o=e()?0:300;setTimeout(()=>{if(!e())return f();p.value=!1,k=window.CleanCloudWebApp(`#${l.value?.getAttribute("id")}`,t.block.data.type==="multi"?t.block.data.stores:t.block.data.storeId,L.value)},o)}function g(e){e.key==="Escape"&&(s.value=!1)}const s=r(!1),y=r(!1),w=r();function E(e,o){e&&e.parentElement&&e.parentElement.style&&(e.parentElement.dataset.oldTransform=o?e.parentElement.style.transform:void 0,e.parentElement.dataset.oldTransition=o?e.parentElement.style.transition:void 0,e.parentElement.style.transform=o?"unset":e.parentElement.dataset.oldTransform||"unset",e.parentElement.style.transition=o?"none":e.parentElement.dataset.oldTransition||"none",E(e.parentElement,o))}function x(){s.value=!s.value,E(w.value,s.value),s.value?window.addEventListener("keydown",g):window.removeEventListener("keydown",g),X(()=>{window.dispatchEvent(new Event("resize"))})}R(l,e=>{e&&f()});function S(){y.value=!0}return F(()=>{window.addEventListener("CleanCloud.LOGIN",S)}),$(()=>{k?.destroy(),window.removeEventListener("CleanCloud.LOGIN",S)}),(e,o)=>{const z=j,I=W("tippy");return i(),u("div",{ref_key:"wrapperEl",ref:w,style:{position:"relative","--cc-theme-primary-color":"var(--color-primary)","--cc-theme-order-selection":"var(--color-primary)","--cc-theme-order-selection-text":"var(--color-primary-contrast)","--cc-theme-button-color":"var(--color-primary)","--cc-theme-button-color-text":"var(--color-primary-contrast)","--cc-theme-button-color-darker":"var(--color-primary-400)","--cc-theme-button-color-disabled":"var(--color-primary-100)"},class:C({"__cc_bookingTool--fullScreen":e.block.data.forceFullScreen,maximized:a(s),bookingToolIsLogged:a(y)})},[e.block.data.forceFullScreen&&a(A).editing?(i(),h(a(n),{key:0,index:0,"always-visible":!0,"show-add-button":!1,"show-remove-button":!1,block:e.block},null,8,["block"])):_("",!0),e.block.data.allowFullScreen&&!e.block.data.forceFullScreen?K((i(),u("button",{key:1,"aria-label":a(s)?"Minimize":"Maximize",onClick:x,style:{position:"absolute",right:"0",top:"0","z-index":"50","background-color":"transparent",border:"0"}},[v("i",{class:C(["ti",a(s)?"ti-maximize-off":"ti-maximize"])}
2,null,2)],8,Z)),[[I,a(s)?"Minimize":"Maximize"]]):_("",!0),a(p)?(i(),u("div",ee,o[0]||(o[0]=[v("span",{class:"badge bg-light",style:{color:"#222"}},"Loading...",-1)]))):_("",!0),V(z,null,{default:T(()=>[(i(),u("div",{ref_key:"toolContainer",ref:l,key:a(b),id:a(b)},null,8,oe))]),_:1})],2)}}}),ae=O(te,[["__scopeId","data-v-2dc99e86"]]),ne=B({__name:"BookingToolBlock",props:{block:{}},setup(m){const n=m,c=r(""),t=r();return H(()=>{n.block.data.options,n.block.data.storeId,n.block.data.type,n.block.data.stores,n.block.data.showAppStoreBadgesOnDesktop,n.block.data.showGetAppPromoCard,n.block.data.enableAppStoreBadges,n.block.data.height,c.value=String(Math.floor(Math.random()*1e4))}),(l,b)=>{const d=U;return i(),h(d,{block:l.block,element:a(t)},{default:T(p=>[v("div",Y(l.$attrs,{ref_key:"element",ref:t,class:["wb-block-BookingTool",p.classes],style:p.styles}),[(i(),h(ae,{block:l.block,key:a(c)},null,8,["block"]))],16)]),_:1},8,["block","element"])}}}),ie=O(ne,[["__scopeId","data-v-6c4da2c0"]]);export{ie as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.