@timum/booking 1.14.2 → 1.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/booking.js CHANGED
@@ -69086,18 +69086,25 @@ const GN = (e, t, n, r, i, o, s) => {
69086
69086
  ]
69087
69087
  );
69088
69088
  return R.useEffect(() => {
69089
- const y = (S) => {
69090
- var C, T, E, A, _;
69091
- QZe.test(S.origin) && ((C = S.data) == null ? void 0 : C.type) === "rerender" ? b(
69092
- { ...(T = S.data) == null ? void 0 : T.appConfig },
69093
- { ...(E = S.data) == null ? void 0 : E.muiTheme },
69094
- { ...(A = S.data) == null ? void 0 : A.fcConfig }
69095
- ) : ((_ = S.data) == null ? void 0 : _.type) === "rerender" && console.error(
69089
+ var S;
69090
+ const y = (C) => {
69091
+ var T, E, A, _, O;
69092
+ QZe.test(C.origin) && ((T = C.data) == null ? void 0 : T.type) === "rerender" ? b(
69093
+ { ...(E = C.data) == null ? void 0 : E.appConfig },
69094
+ { ...(A = C.data) == null ? void 0 : A.muiTheme },
69095
+ { ...(_ = C.data) == null ? void 0 : _.fcConfig }
69096
+ ) : ((O = C.data) == null ? void 0 : O.type) === "rerender" && console.error(
69096
69097
  "ConfigHandler received a message from an unexpected origin:",
69097
- S.origin
69098
+ C.origin
69098
69099
  );
69099
69100
  };
69100
- return window.addEventListener("message", y), () => {
69101
+ return window.addEventListener("message", y), (S = window == null ? void 0 : window.parent) == null || S.postMessage(
69102
+ {
69103
+ origin: "bookingjs",
69104
+ type: "ready"
69105
+ },
69106
+ n.postMessageTarget || "*"
69107
+ ), () => {
69101
69108
  window.removeEventListener("message", y);
69102
69109
  };
69103
69110
  }, [b, n]), R.useEffect(() => {
@@ -1342,7 +1342,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1342
1342
  .fc .fc-v-event .fc-event-title {
1343
1343
  display: none !important;
1344
1344
  }
1345
- `;function rBe(){const e=Se(t=>Jne(t,"useCustomTimumCss"));return $.jsxs($.Fragment,{children:[e&&$.jsx(F4,{styles:nBe}),$.jsx(F4,{styles:tBe})]})}function iBe({children:e}){const[t,n]=re.useState(null);if(R.useEffect(()=>{setTimeout(()=>{n(!0)},500)},[]),t)return e}function oBe(e){const t=Se($d),n=Se(Zne),r=Se(s=>Fe(s,"calendarFrontend")),i=Se(s=>Fe(s,"calendarFrontendOptions"));let o=cS(n??{});return o=Qae(o,{factor:2.5}),$.jsxs(Xae,{theme:o,children:[$.jsx(Xhe,{}),$.jsx(rBe,{}),r==="fullCalendar"&&$.jsx(df,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(EG,{})}),r==="detailsFullCalendar"&&$.jsx(df,{...e,...i.detailsFullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(B$,{CalendarView:EG})}),(r==="pureListView"||r==="listView")&&$.jsx(df,{...e,...i.pureListView,...i.listView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(V$,{})}),r==="detailsListView"&&$.jsx(df,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(B$,{CalendarView:V$})}),r==="condensedView"&&$.jsx(df,{...e,...i.condensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(RG,{})}),r==="detailsCondensedView"&&$.jsx(df,{...e,...i.detailsCondensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(B$,{CalendarView:RG})}),t&&r!=="fullCalendar"&&r!=="detailsFullCalendar"&&r!=="condensedView"&&r!=="detailsCondensedView"&&r!=="detailsListView"&&r!=="listView"&&r!=="pureListView"&&$.jsx(iBe,{children:$.jsxs($.Fragment,{children:["You must set calendarFrontend either to ",$.jsx("code",{children:"fullCalendar"}),","," ",$.jsx("code",{children:"detailsFullCalendar"}),",",$.jsx("code",{children:"listView"}),","," ",$.jsx("code",{children:"detailsListView"}),", ",$.jsx("code",{children:"condensedView"})," or"," ",$.jsx("code",{children:"detailsCondensedView"})," in your config."]})})]})}new TextEncoder;const _G=new TextDecoder,sBe=e=>{const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},aBe=e=>{let t=e;t instanceof Uint8Array&&(t=_G.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return sBe(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class Ur extends Error{constructor(t,n){var r;super(t,n),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(r=Error.captureStackTrace)==null||r.call(Error,this,this.constructor)}}Ur.code="ERR_JOSE_GENERIC";class lBe extends Ur{constructor(t,n,r="unspecified",i="unspecified"){super(t,{cause:{claim:r,reason:i,payload:n}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=n}}lBe.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class uBe extends Ur{constructor(t,n,r="unspecified",i="unspecified"){super(t,{cause:{claim:r,reason:i,payload:n}}),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=n}}uBe.code="ERR_JWT_EXPIRED";class cBe extends Ur{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}cBe.code="ERR_JOSE_ALG_NOT_ALLOWED";class dBe extends Ur{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}dBe.code="ERR_JOSE_NOT_SUPPORTED";class fBe extends Ur{constructor(t="decryption operation failed",n){super(t,n),this.code="ERR_JWE_DECRYPTION_FAILED"}}fBe.code="ERR_JWE_DECRYPTION_FAILED";class pBe extends Ur{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}pBe.code="ERR_JWE_INVALID";class hBe extends Ur{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}hBe.code="ERR_JWS_INVALID";class Wl extends Ur{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}Wl.code="ERR_JWT_INVALID";class mBe extends Ur{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}mBe.code="ERR_JWK_INVALID";class gBe extends Ur{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}gBe.code="ERR_JWKS_INVALID";class vBe extends Ur{constructor(t="no applicable key found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_NO_MATCHING_KEY"}}vBe.code="ERR_JWKS_NO_MATCHING_KEY";class yBe extends Ur{constructor(t="multiple matching keys found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}yBe.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class bBe extends Ur{constructor(t="request timed out",n){super(t,n),this.code="ERR_JWKS_TIMEOUT"}}bBe.code="ERR_JWKS_TIMEOUT";class xBe extends Ur{constructor(t="signature verification failed",n){super(t,n),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}xBe.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";function wBe(e){return typeof e=="object"&&e!==null}function SBe(e){if(!wBe(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const CBe=aBe;function $Be(e){if(typeof e!="string")throw new Wl("JWTs must use Compact JWS serialization, JWT must be a string");const{1:t,length:n}=e.split(".");if(n===5)throw new Wl("Only JWTs using Compact JWS serialization can be decoded");if(n!==3)throw new Wl("Invalid JWT");if(!t)throw new Wl("JWTs must contain a payload");let r;try{r=CBe(t)}catch{throw new Wl("Failed to base64url decode the payload")}let i;try{i=JSON.parse(_G.decode(r))}catch{throw new Wl("Failed to parse the decoded payload as JSON")}if(!SBe(i))throw new Wl("Invalid JWT Claims Set");return i}var X6={},TBe=An;Object.defineProperty(X6,"__esModule",{value:!0});var OG=X6.default=void 0,EBe=TBe(Bn()),kBe=$;OG=X6.default=(0,EBe.default)((0,kBe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function _m(e){const{children:t,onClose:n,...r}=e;return $.jsxs(UI,{sx:{m:0,p:2},...r,children:[t,n?$.jsx(x0,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:$.jsx(OG,{})}):null]})}_m.propTypes={children:Ee.node,onClose:Ee.func.isRequired};const ql=14,wc='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',Qf=Math.floor(ql*1.428571429),ABe=If(Math.floor(ql*2.6)),RBe=If(Math.floor(ql*2.3)),_Be=If(Math.floor(ql*1.9)),OBe=If(Math.floor(ql*1.5)),PBe=If(Math.floor(ql*1.15)),MBe=If(Math.floor(ql)),eT=/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,Sc={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{condensedView:{forceResourceSelectorDialog:!1}},allResourcesOption:!1,allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,gatherAddressData:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:Il().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:Il().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:Il().email("validation.email_field_must_be_valid").required("validation.field_required")},mobile:{index:3,title:"fields.mobile",type:"phoneNumber",isRequired:!1,defaultCountry:"DE",preferredCountries:["DE","CH","AT"]},message:{index:4,title:"fields.message",type:"textarea",validation:Il().max(1024).test("no-emojis","validation.no_emojis",e=>!eT.test(e)),limit:1024,onChange:e=>e.replace(eT,"")},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:Z2().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)},locale:{index:6,preventRendering:!0}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=os(),i=Eo(r.breakpoints.down("sm"));return $.jsxs(wl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(_m,{onClose:t}),$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=os(),i=Eo(r.breakpoints.down("sm"));return $.jsxs(wl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(_m,{onClose:t}),$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=os(),s=Eo(o.breakpoints.down("sm"));return $.jsxs(wl,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&$.jsx(_m,{onClose:n}),$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>$.jsx(wl,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:$.jsx(Sl,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=os(),i=Eo(r.breakpoints.down("sm"));return $.jsxs(wl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(_m,{onClose:t}),$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=os(),s=Eo(o.breakpoints.down("sm"));return $.jsxs($.Fragment,{children:[$.jsx(wl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&$.jsxs(ue,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[$.jsx(ue,{item:!0,xs:"auto",children:i}),$.jsx(ue,{item:!0,xs:"1",children:$.jsx(WI,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=os(),i=Eo(r.breakpoints.down("sm"));return $.jsx(wl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=Cn();return $.jsxs(wl,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[$.jsx(UI,{id:"alert-dialog-title",children:n("reservation_failed.title")}),$.jsx(Sl,{children:$.jsx(k0e,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),$.jsx(g0e,{children:$.jsx(Po,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},shape:{borderRadius:4},typography:{fontFamily:wc,fontSize:ql,h1:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${ABe}rem`},h2:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${RBe}rem`},h3:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${_Be}rem`},h4:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${OBe}rem`},h5:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${PBe}rem`},h6:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${MBe}rem`}},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarColor:"#bfbfbf #ffffff","&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:"#ffffff"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:"#bfbfbf",minHeight:8,width:3,border:"5px solid #ffffff"},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:"#ffffff"}}}},MuiButton:{styleOverrides:{root:{borderRadius:4}}},MuiTextField:{defaultProps:{variant:"outlined"}},MuiListItem:{styleOverrides:{root:{borderRadius:4}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:4}}},MuiListItemText:{styleOverrides:{borderRadius:4}},MuiTypography:{styleOverrides:{h1:{marginBottom:Qf/2},h2:{marginBottom:Qf/2},h3:{marginBottom:Qf/2},h4:{marginBottom:Qf/2},h5:{marginBottom:Qf/2},h6:{marginBottom:Qf/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,scrollTimeReset:!1,scrollTime:"09:00:00",views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}},DBe="(timum\\.de|timum\\.at|timum\\.com|timum\\.fr|timum\\.io|timum\\.es|timum\\.it|timum\\.co.uktimum\\.nl|timum\\.eu|timum\\.info|timum\\.org|timum\\.me|localhost(:[0-9]+)?|127\\.0\\.0\\.1(:[0-9]+)?)",IBe=new RegExp(`^https?://([a-zA-Z0-9-]+\\.)*${DBe}$`);function NBe(e){if(typeof e=="string"){const t=e.match(/^(\d+)/);return t&&t[1]?Number(t[1]):500}else if(typeof e=="number")return e;return 500}function LBe(e,t){e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName}function PG(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i&&i.index===t&&(n[r]=i);return t++,PG(e,t,n)}function jBe(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function tT(e,t,n){if(!e.includes("@")&&!e.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i))if(!t)console.warn("One or more ref parameters aren't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.");else return`${e}${n?"@"+n:""}@${t}`;return e}function FBe(e){e.callbacks={createBookingStarted:({timeslot:t,data:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"createBookingStarted",timeslot:t,data:n},e.postMessageTarget)},createBookingSuccessful:({timeslot:t,response:n,data:r})=>{var i;(i=window==null?void 0:window.parent)==null||i.postMessage({origin:"bookingjs",type:"createBookingSuccessful",timeslot:t,response:n,data:r},e.postMessageTarget)},createBookingFailed:({timeslot:t,response:n,data:r})=>{var i;(i=window==null?void 0:window.parent)==null||i.postMessage({origin:"bookingjs",type:"createBookingFailed",timeslot:t,response:n,data:r},e.postMessageTarget)},cancelationgStarted:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationStarted",timeslot:t,response:n},e.postMessageTarget)},cancelationSuccessful:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationSuccessful",timeslot:t,response:n},e.postMessageTarget)},cancelationFailed:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationFailed",timeslot:t,response:n},e.postMessageTarget)},fetchingPublicDataSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingPublicDataSucceeded",data:t},e.postMessageTarget)},fetchingProductsSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingProductsSucceeded",data:t},e.postMessageTarget)},fetchingBookablesSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingBookablesSucceeded",data:t},e.postMessageTarget)},fetchingPublicDataFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingPublicDataFailed",error:t},e.postMessageTarget)},fetchingProductsFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingProductsFailed",error:t},e.postMessageTarget)},fetchingBookablesFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingBookablesFailed",error:t},e.postMessageTarget)},openedProductSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedProductSelection"},e.postMessageTarget)},openedResourceSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedResourceSelection"},e.postMessageTarget)},openedBookingPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"openedBookingPage",timeslot:t},e.postMessageTarget)},openedCancelPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"openedCancelPage",timeslot:t},e.postMessageTarget)},openedConfirmationPage:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedConfirmationPage"},e.postMessageTarget)},closedProductSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedProductSelection"},e.postMessageTarget)},closedResourceSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedResourceSelection"},e.postMessageTarget)},closedBookingPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"closedBookingPage",timeslot:t},e.postMessageTarget)},closedCancelPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"closedCancelPage",timeslot:t},e.postMessageTarget)},closedConfirmationPage:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedConfirmationPage"},e.postMessageTarget)}}}const MG=(e,t)=>{e&&!t.includes(e)&&t.push(e)},DG=(e,t)=>{e&&(e.forEach?e.forEach(n=>{t[n.resource.uuid]={...n}}):t[e.resource.uuid]={...e})},IG=(e,t)=>{e&&e.forEach(n=>{t[n.resource.uuid]?(t[n.resource.uuid].bookables=n.bookables,t[n.resource.uuid].products=n.products):t[n.resource.uuid]={...n}})};async function NG(e,t,n,r,i,o){var w,b,y,S;let s={};const a=t==null?void 0:t.ref,l=t==null?void 0:t.tslRefs,u=t==null?void 0:t.virtualTslRefs,c=t==null?void 0:t.prdRefs,f=t==null?void 0:t.additionalData,m=t==null?void 0:t.allResourcesOption,p=t==null?void 0:t.publicData,g=t==null?void 0:t.tsls,v=t==null?void 0:t.channelKey;if((a==null?void 0:a.length)>0&&!(p!=null&&p.length)>0){const C=await r({channelOrResourceId:a[0],params:{channelKey:v,ref:a,...f}});DG(C==null?void 0:C.data,s)}if((p==null?void 0:p.length)>0&&DG(p,s),m&&(!l||l.length===0)&&(!u||u.length===0)&&(s={"all-option":{resource:{uuid:"all-option",name:e("common.All")},provider:(b=(w=Object.values(s))==null?void 0:w[0])==null?void 0:b.provider},...s}),((l==null?void 0:l.length)>0||(u==null?void 0:u.length)>0)&&!(g!=null&&g.length)>0){const C=await i({params:{channelKey:v,tslIds:l,...f},body:u});IG(C==null?void 0:C.data,s)}if((g==null?void 0:g.length)>0&&IG(g,s),(c==null?void 0:c.length)>0){Object.values(s).forEach(E=>{var A;E!=null&&E.bookables&&((A=Object.values(E==null?void 0:E.bookables))==null||A.forEach(_=>{_.forEach(O=>{var D;MG(O==null?void 0:O.product_uuid,c),(D=O.products)==null||D.forEach(I=>{MG(I.uuid,c)})})}))});const C=await o({params:{prdRefs:c,additionalData:f}}),T=Object.entries(s).filter(([,E])=>{var _,O;if(((O=(_=E==null?void 0:E.resource)==null?void 0:_.supportedProducts)==null?void 0:O.length)===0)return!1;const A=C.data.filter(D=>{var j;const I=(j=E==null?void 0:E.resource)==null?void 0:j.supportedProducts;return I&&I.some(z=>z===D.uuid)});return A.length===0?!1:(E.products=A,!0)});s=Object.fromEntries(T)}if(n(Wne(s)),Object.values(s).length>1)if(t.cancelableAppointment){let C=!1;for(const T of Object.values(s))((y=T==null?void 0:T.resource)==null?void 0:y.uuid)===((S=t.cancelableAppointment)==null?void 0:S.resId)&&(n(Cd(T)),C=!0);C||n(Cd(Object.values(s)[0]))}else n(Cd(Object.values(s)[0]));else Object.values(s).length===1?n(Cd(Object.values(s)[0])):console.warn("Given reference(s) seems to be invalid.")}function zBe(e){try{return $Be(e)}catch(t){console.error("Error decrypting JWT:",t)}}function nT(e){var T,E,A;const t={...e},n=window.location.search,r=new URLSearchParams(t.queryString||n);let i=r.get("pData")??r.get("pdata"),o=r.get("pDataPlatform")?{platform:r.get("pDataPlatform"),id:r.get("pDataId"),idPropName:r.get("pDataIdPropName")}:void 0;const s=jBe("PLAY_SESSION");let a=r.get("channelKey")??r.get("channelkey");const l=r.get("X-SIGNED-APP-CUSTOMER");let u=r.get("resId"),c=r.getAll("ref"),f=r.getAll("tslRefs"),m=r.getAll("virtualTslRefs"),p=r.getAll("prdRefs"),g=r.get("culture"),v=r.get("postMessageTarget"),w=r.get("allResourcesOption"),b=r.get("calendarFrontend"),y=r.get("conf");y&&(y=zBe(y),c=y.ref||[],a=y.channelKey,i=y.pData,f=y.tslRefs||[],p=y.prdRefs||[],g=y.urlCulture,m=y.virtualTslRefs||[],v=y.postMessageTarget,w=y.allResourcesOption,b=y.calendarFrontend);const S=t.queryHash||window.location.hash,[,,C]=(S==null?void 0:S.split("/"))??[];if((i||o)&&(t.pData=i??o),a&&(t.channelKey=a),c&&c.length>0&&(t.ref=c),f&&f.length>0&&(t.tslRefs=f),m&&m.length>0&&(t.virtualTslRefs=m),p&&p.length>0&&(t.prdRefs=p),g&&(t.culture=g),v&&(t.postMessageTarget=v),w&&(t.allResourcesOption=w),b&&(t.calendarFrontend=b),ln.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],ln.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],ln.isArray(t.prdRefs)?t.prdRefs=[...t.prdRefs]:t.prdRefs?t.prdRefs=[t.prdRefs]:t.prdRefs=[],!t.alwaysRender&&(!t.ref||t.ref.length===0)&&(!t.tslRefs||t.tslRefs.length===0)&&(!t.virtualTslRefs||t.virtualTslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let _=0;_<((T=t==null?void 0:t.ref)==null?void 0:T.length);_++)t.ref[_]=tT(t.ref[_],t.platform,t.prvUuid);for(let _=0;_<((E=t==null?void 0:t.tslRefs)==null?void 0:E.length);_++)t.tslRefs[_]=tT(t.tslRefs[_],t.platform,t.prvUuid);for(let _=0;_<((A=t==null?void 0:t.prdRefs)==null?void 0:A.length);_++)t.prdRefs[_]=tT(t.prdRefs[_],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:C,customerUuid:o.id,resourceUuid:u}),t.host&&kte(t.host),t.height&&(t.height=NBe(t.height)),t}const LG=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=ln.merge({},Sc.appConfig,e),c=ln.merge({},Sc.muiTheme,t),f=ln.merge({},Sc.fcConfig,n);u.fields=PG(u.fields),LBe(e.fields,u.fields),l&&!o&&(u.localization=Sc.appConfig.localization),l&&!i&&(u.fields=Sc.appConfig.fields),l&&!r&&(u.hideTimumFooter=Sc.appConfig.hideTimumFooter),a&&!r&&(c=Sc.muiTheme),u.postMessageTarget&&FBe(u),s(Hne(f)),s(Une(u)),s(Vne(c))},jG=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const{t:i}=Cn(),o=Nh(),s=Se(ire),a=Se(ore),l=Se(sre),u=re.useMemo(()=>{var y;return(y=n==null?void 0:n.callbacks)==null?void 0:y.fetchingPublicDataFailed},[n]),[c,{isFetching:f,error:m}]=Dte(),[p,{isFetching:g}]=_te(),[v,{isFetching:w}]=Pte(),b=R.useCallback((y=n,S=e,C=t)=>{const T=nT(y);T&&(LG(T,S,C,s,a,l,o),NG(i,T,o,c,p,v))},[n,e,t,s,a,l,o,i,c,p,v]);return R.useEffect(()=>{const y=S=>{var C,T,E,A,_;IBe.test(S.origin)&&((C=S.data)==null?void 0:C.type)==="rerender"?b({...(T=S.data)==null?void 0:T.appConfig},{...(E=S.data)==null?void 0:E.muiTheme},{...(A=S.data)==null?void 0:A.fcConfig}):((_=S.data)==null?void 0:_.type)==="rerender"&&console.error("ConfigHandler received a message from an unexpected origin:",S.origin)};return window.addEventListener("message",y),()=>{window.removeEventListener("message",y)}},[b,n]),R.useEffect(()=>{const y=nT(n);y&&LG(y,e,t,s,a,l,o)},[n,e,t,o,s,a,l,c,p,v]),R.useEffect(()=>{const y=nT(n);y&&NG(i,y,o,c,p,v)},[n,o,c,p,v,i]),R.useEffect(()=>{o(Kne(g||f||w))},[o,f,g,w]),m&&u&&u(m),r};jG.displayName="ConfigHandler";const BBe=bne({reducer:{[bv.reducerPath]:bv.reducer,appState:are},middleware:e=>e().concat(bv.middleware),devTools:{trace:!0}});var FG=[],UBe=FG.forEach,HBe=FG.slice;function VBe(e){return UBe.call(HBe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var zG=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,WBe=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var a=i.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(a))}if(i.domain){if(!zG.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!zG.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},BG={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=WBe(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},qBe={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=BG.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&BG.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},GBe={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),s=0;s<o.length;s++){var a=o[s].indexOf("=");if(a>0){var l=o[s].substring(0,a);l===t.lookupQuerystring&&(n=o[s].substring(a+1))}}}return n}},Om=null,UG=function(){if(Om!==null)return Om;try{Om=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Om=!1}return Om},YBe={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&UG()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&UG()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Pm=null,HG=function(){if(Pm!==null)return Pm;try{Pm=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Pm=!1}return Pm},KBe={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&HG()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&HG()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},ZBe={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},QBe={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},JBe={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},XBe={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function eUe(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var VG=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fo(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return zo(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=VBe(r,this.options||{},eUe()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(qBe),this.addDetector(GBe),this.addDetector(YBe),this.addDetector(KBe),this.addDetector(ZBe),this.addDetector(QBe),this.addDetector(JBe),this.addDetector(XBe)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();VG.type="languageDetector";var rT=["​","‌"],iT=RegExp("([".concat(rT.join(""),"]{9})+"),"gu"),tUe=9,nUe="subliminal:start",rUe=function(t){return Array.from(new TextEncoder().encode(t))},iUe=function(t){return new TextDecoder().decode(new Uint8Array(t))},oUe=function(t){var n=8-t.length;return"0".repeat(n)+t},WG=function(t){var n=rUe(t).map(Number),r=n.map(function(o){return oUe(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return rT[Number(o)]}).join("");return i},qG=WG(nUe),GG=function(t){var n=Array.from(t).map(function(o){return rT.indexOf(o)}).map(String).join(""),r=n.match(/(.{9})/g),i=Uint8Array.from((r==null?void 0:r.map(function(o){return parseInt(o.slice(0,8),2)}))||[]);return iUe(i)},sUe=function(t){var n,r=(n=t.match(iT))===null||n===void 0?void 0:n.filter(function(i){return i.length>tUe-1});if(!(!r||r.length===0))return GG(r[r.length-1])},aUe=function(t){return t.replace(iT,"")},lUe=function(t){if(Object.keys(t).length===0)return t;var n={k:t.key,n:t.ns,l:t.lng,s:t.source};return JSON.stringify(n)},uUe=function(t){if(!(!t||typeof t!="string"||t.indexOf("{")!==0))try{var n=JSON.parse(t||"{}");return{key:n.k,ns:n.n,lng:n.l,source:n.s}}catch{return}};function YG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=lUe(t),r=WG(n);return typeof e=="string"&&e?qG+e+r:e}function Jb(e){var t=sUe(e),n=uUe(t),r=aUe(e);return{text:r,invisibleMeta:n}}function oT(e){if(!e||e.length<27||!iT.test(e))return!1;var t=e.substring(e.length-9),n=GG(t);return n==="}"}function cUe(e){return e.startsWith(qG)}function KG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ZG="subliminal",dUe={name:ZG,type:"postProcessor",options:{},setOptions:function(t){this.options=Xb(Xb({},t),this.options)},process:function(t,n,r,i){var o=this.options=Xb(Xb({},r),this.options),s,a,l,u;if(r.i18nResolved)s=r.i18nResolved.exactUsedKey,a=r.i18nResolved.usedNS,l=r.i18nResolved.usedLng,r.i18nResolved.res===void 0?s!==t?u="default":u="key":u="translation";else{var c,f,m,p,g,v,w=(c=(f=o.keySeparator)!==null&&f!==void 0?f:i==null||(m=i.options)===null||m===void 0?void 0:m.keySeparator)!==null&&c!==void 0?c:".",b=i.extractFromKey(n.join(w),r),y=b.key,S=b.namespaces;s=y,a=(p=(g=S==null?void 0:S[0])!==null&&g!==void 0?g:o.ns)!==null&&p!==void 0?p:i==null||(v=i.options)===null||v===void 0?void 0:v.defaultNS,l=r.lng||this.language,s===t?u="key":u="translation"}return YG(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:ZG,postProcessPassResolved:!0}}},QG=["placeholder","title","alt"],Uo={highlight:"#26a69a",warning:"#e67a00"},JG=function(){var t,n;typeof process<"u"&&(n=process),!n&&typeof window<"u"&&(n=window.process);var r=n||{},i=((t=r.env)===null||t===void 0?void 0:t.locizeIncontext)||"production";return i==="development"?"http://localhost:3003/":i==="staging"?"https://incontext-dev.locize.app":"https://incontext.locize.app"},wa=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function XG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fUe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var eY={committed:"commitKeys"};function pUe(e){return eY[e]?eY[e]:e}var sT=[];function Er(e,t){if(!Pe.source){var n;Pe.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(Pe.origin||(Pe.origin=JG()),!Pe.source||!Pe.source.postMessage){sT.push({action:e,payload:t});return}Pe.legacy?Pe.source.postMessage(fUe({message:e},t),Pe.origin):Pe.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},Pe.origin);var r=sT;sT=[],r.forEach(function(i){var o=i.action,s=i.payload;Er(o,s)})}var Cc={},aT=5,Pe={init:function(t,n){Pe.i18n=t,Pe.clickHandler=n},requestInitialize:function(t){Er("requestInitialize",t),!Pe.initInterval&&(Pe.initInterval=setInterval(function(){aT=aT-1,Pe.requestInitialize(t),aT<0&&Pe.initInterval&&(clearInterval(Pe.initInterval),delete Pe.initInterval)},1e3))},selectKey:function(t){Er("selectKey",t)},confirmResourceBundle:function(t){Er("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Er("sendCurrentParsedContent",{content:Object.values(bs.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Er("sendCurrentTargetLanguage",{targetLng:t||Pe.i18n.getLng()})},addHandler:function(t,n){Cc[t]||(Cc[t]=[]),Cc[t].push(n)},sendLocizeIsEnabled:function(){Er("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(Pe.scriptTurnedOff)return Er("forcedOff");Pe.clickInterceptionEnabled||window.document.body.addEventListener("click",Pe.clickHandler,!0),Pe.clickInterceptionEnabled=!0,Er("turnedOn")},turnOff:function(){if(Pe.scriptTurnedOff)return Er("forcedOff");Pe.clickInterceptionEnabled&&window.document.body.removeEventListener("click",Pe.clickHandler,!0),Pe.clickInterceptionEnabled=!1,Er("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Er("added",o)}};typeof window<"u"&&window.addEventListener("message",function(e){var t=e.data,n=t.sender,r=t.action,i=t.message,o=t.payload;if(i){var s=pUe(i);Cc[s]&&Cc[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&Cc[r]&&Cc[r].forEach(function(a){a(o)})});function e3(e,t){var n=bs.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=YG(t,n.subliminal);if(e.textType==="text")n.node.textContent=r;else if(e.textType.indexOf("attr:")===0){var i=e.textType.replace("attr:","");n.node.setAttribute(i,r)}else if(e.textType==="html"){var o="".concat(e.textType,"-").concat(e.children);if(!n.originalChildNodes){var s=[];n.node.childNodes.forEach(function(f){s.push(f)}),n.originalChildNodes=s}if(n.children[o].length===n.node.childNodes.length)n.node.innerHTML=r;else{var a=n.children[o],l=a[0].child,u=document.createElement("div");u.innerHTML=r;var c=[];u.childNodes.forEach(function(f){c.push(f)}),c.forEach(function(f){try{n.node.insertBefore(f,l)}catch{n.node.appendChild(f)}}),a.forEach(function(f){n.node.contains(f.child)&&n.node.removeChild(f.child)})}}}}function hUe(e){var t=e.meta,n=e.value;t&&n!==void 0&&e3(t,n)}Pe.addHandler("editKey",hUe);function mUe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){e3(t,n);var i=r||Pe.i18n.getLng();Pe.i18n.setResource(i,t.ns,t.key,n),Pe.i18n.triggerRerender()}}Pe.addHandler("commitKey",mUe);function gUe(e){if(Array.isArray(e))return Y6(e)}function vUe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1345
+ `;function rBe(){const e=Se(t=>Jne(t,"useCustomTimumCss"));return $.jsxs($.Fragment,{children:[e&&$.jsx(F4,{styles:nBe}),$.jsx(F4,{styles:tBe})]})}function iBe({children:e}){const[t,n]=re.useState(null);if(R.useEffect(()=>{setTimeout(()=>{n(!0)},500)},[]),t)return e}function oBe(e){const t=Se($d),n=Se(Zne),r=Se(s=>Fe(s,"calendarFrontend")),i=Se(s=>Fe(s,"calendarFrontendOptions"));let o=cS(n??{});return o=Qae(o,{factor:2.5}),$.jsxs(Xae,{theme:o,children:[$.jsx(Xhe,{}),$.jsx(rBe,{}),r==="fullCalendar"&&$.jsx(df,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(EG,{})}),r==="detailsFullCalendar"&&$.jsx(df,{...e,...i.detailsFullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(B$,{CalendarView:EG})}),(r==="pureListView"||r==="listView")&&$.jsx(df,{...e,...i.pureListView,...i.listView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(V$,{})}),r==="detailsListView"&&$.jsx(df,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(B$,{CalendarView:V$})}),r==="condensedView"&&$.jsx(df,{...e,...i.condensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(RG,{})}),r==="detailsCondensedView"&&$.jsx(df,{...e,...i.detailsCondensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(B$,{CalendarView:RG})}),t&&r!=="fullCalendar"&&r!=="detailsFullCalendar"&&r!=="condensedView"&&r!=="detailsCondensedView"&&r!=="detailsListView"&&r!=="listView"&&r!=="pureListView"&&$.jsx(iBe,{children:$.jsxs($.Fragment,{children:["You must set calendarFrontend either to ",$.jsx("code",{children:"fullCalendar"}),","," ",$.jsx("code",{children:"detailsFullCalendar"}),",",$.jsx("code",{children:"listView"}),","," ",$.jsx("code",{children:"detailsListView"}),", ",$.jsx("code",{children:"condensedView"})," or"," ",$.jsx("code",{children:"detailsCondensedView"})," in your config."]})})]})}new TextEncoder;const _G=new TextDecoder,sBe=e=>{const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},aBe=e=>{let t=e;t instanceof Uint8Array&&(t=_G.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return sBe(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class Ur extends Error{constructor(t,n){var r;super(t,n),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(r=Error.captureStackTrace)==null||r.call(Error,this,this.constructor)}}Ur.code="ERR_JOSE_GENERIC";class lBe extends Ur{constructor(t,n,r="unspecified",i="unspecified"){super(t,{cause:{claim:r,reason:i,payload:n}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=n}}lBe.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class uBe extends Ur{constructor(t,n,r="unspecified",i="unspecified"){super(t,{cause:{claim:r,reason:i,payload:n}}),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=n}}uBe.code="ERR_JWT_EXPIRED";class cBe extends Ur{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}cBe.code="ERR_JOSE_ALG_NOT_ALLOWED";class dBe extends Ur{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}dBe.code="ERR_JOSE_NOT_SUPPORTED";class fBe extends Ur{constructor(t="decryption operation failed",n){super(t,n),this.code="ERR_JWE_DECRYPTION_FAILED"}}fBe.code="ERR_JWE_DECRYPTION_FAILED";class pBe extends Ur{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}pBe.code="ERR_JWE_INVALID";class hBe extends Ur{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}hBe.code="ERR_JWS_INVALID";class Wl extends Ur{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}Wl.code="ERR_JWT_INVALID";class mBe extends Ur{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}mBe.code="ERR_JWK_INVALID";class gBe extends Ur{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}gBe.code="ERR_JWKS_INVALID";class vBe extends Ur{constructor(t="no applicable key found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_NO_MATCHING_KEY"}}vBe.code="ERR_JWKS_NO_MATCHING_KEY";class yBe extends Ur{constructor(t="multiple matching keys found in the JSON Web Key Set",n){super(t,n),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}yBe.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class bBe extends Ur{constructor(t="request timed out",n){super(t,n),this.code="ERR_JWKS_TIMEOUT"}}bBe.code="ERR_JWKS_TIMEOUT";class xBe extends Ur{constructor(t="signature verification failed",n){super(t,n),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}xBe.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";function wBe(e){return typeof e=="object"&&e!==null}function SBe(e){if(!wBe(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const CBe=aBe;function $Be(e){if(typeof e!="string")throw new Wl("JWTs must use Compact JWS serialization, JWT must be a string");const{1:t,length:n}=e.split(".");if(n===5)throw new Wl("Only JWTs using Compact JWS serialization can be decoded");if(n!==3)throw new Wl("Invalid JWT");if(!t)throw new Wl("JWTs must contain a payload");let r;try{r=CBe(t)}catch{throw new Wl("Failed to base64url decode the payload")}let i;try{i=JSON.parse(_G.decode(r))}catch{throw new Wl("Failed to parse the decoded payload as JSON")}if(!SBe(i))throw new Wl("Invalid JWT Claims Set");return i}var X6={},TBe=An;Object.defineProperty(X6,"__esModule",{value:!0});var OG=X6.default=void 0,EBe=TBe(Bn()),kBe=$;OG=X6.default=(0,EBe.default)((0,kBe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function _m(e){const{children:t,onClose:n,...r}=e;return $.jsxs(UI,{sx:{m:0,p:2},...r,children:[t,n?$.jsx(x0,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:$.jsx(OG,{})}):null]})}_m.propTypes={children:Ee.node,onClose:Ee.func.isRequired};const ql=14,wc='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',Qf=Math.floor(ql*1.428571429),ABe=If(Math.floor(ql*2.6)),RBe=If(Math.floor(ql*2.3)),_Be=If(Math.floor(ql*1.9)),OBe=If(Math.floor(ql*1.5)),PBe=If(Math.floor(ql*1.15)),MBe=If(Math.floor(ql)),eT=/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,Sc={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{condensedView:{forceResourceSelectorDialog:!1}},allResourcesOption:!1,allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,gatherAddressData:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:Il().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:Il().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:Il().email("validation.email_field_must_be_valid").required("validation.field_required")},mobile:{index:3,title:"fields.mobile",type:"phoneNumber",isRequired:!1,defaultCountry:"DE",preferredCountries:["DE","CH","AT"]},message:{index:4,title:"fields.message",type:"textarea",validation:Il().max(1024).test("no-emojis","validation.no_emojis",e=>!eT.test(e)),limit:1024,onChange:e=>e.replace(eT,"")},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:Z2().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)},locale:{index:6,preventRendering:!0}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=os(),i=Eo(r.breakpoints.down("sm"));return $.jsxs(wl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(_m,{onClose:t}),$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=os(),i=Eo(r.breakpoints.down("sm"));return $.jsxs(wl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(_m,{onClose:t}),$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=os(),s=Eo(o.breakpoints.down("sm"));return $.jsxs(wl,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&$.jsx(_m,{onClose:n}),$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>$.jsx(wl,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:$.jsx(Sl,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=os(),i=Eo(r.breakpoints.down("sm"));return $.jsxs(wl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(_m,{onClose:t}),$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=os(),s=Eo(o.breakpoints.down("sm"));return $.jsxs($.Fragment,{children:[$.jsx(wl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&$.jsxs(ue,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[$.jsx(ue,{item:!0,xs:"auto",children:i}),$.jsx(ue,{item:!0,xs:"1",children:$.jsx(WI,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=os(),i=Eo(r.breakpoints.down("sm"));return $.jsx(wl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:$.jsx(Sl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Ku,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=Cn();return $.jsxs(wl,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[$.jsx(UI,{id:"alert-dialog-title",children:n("reservation_failed.title")}),$.jsx(Sl,{children:$.jsx(k0e,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),$.jsx(g0e,{children:$.jsx(Po,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},shape:{borderRadius:4},typography:{fontFamily:wc,fontSize:ql,h1:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${ABe}rem`},h2:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${RBe}rem`},h3:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${_Be}rem`},h4:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${OBe}rem`},h5:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${PBe}rem`},h6:{fontFamily:wc,fontWeight:500,lineHeight:1,fontSize:`${MBe}rem`}},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarColor:"#bfbfbf #ffffff","&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:"#ffffff"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:"#bfbfbf",minHeight:8,width:3,border:"5px solid #ffffff"},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:"#8f8f8f"},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:"#ffffff"}}}},MuiButton:{styleOverrides:{root:{borderRadius:4}}},MuiTextField:{defaultProps:{variant:"outlined"}},MuiListItem:{styleOverrides:{root:{borderRadius:4}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:4}}},MuiListItemText:{styleOverrides:{borderRadius:4}},MuiTypography:{styleOverrides:{h1:{marginBottom:Qf/2},h2:{marginBottom:Qf/2},h3:{marginBottom:Qf/2},h4:{marginBottom:Qf/2},h5:{marginBottom:Qf/2},h6:{marginBottom:Qf/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,scrollTimeReset:!1,scrollTime:"09:00:00",views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}},DBe="(timum\\.de|timum\\.at|timum\\.com|timum\\.fr|timum\\.io|timum\\.es|timum\\.it|timum\\.co.uktimum\\.nl|timum\\.eu|timum\\.info|timum\\.org|timum\\.me|localhost(:[0-9]+)?|127\\.0\\.0\\.1(:[0-9]+)?)",IBe=new RegExp(`^https?://([a-zA-Z0-9-]+\\.)*${DBe}$`);function NBe(e){if(typeof e=="string"){const t=e.match(/^(\d+)/);return t&&t[1]?Number(t[1]):500}else if(typeof e=="number")return e;return 500}function LBe(e,t){e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName}function PG(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i&&i.index===t&&(n[r]=i);return t++,PG(e,t,n)}function jBe(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function tT(e,t,n){if(!e.includes("@")&&!e.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i))if(!t)console.warn("One or more ref parameters aren't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.");else return`${e}${n?"@"+n:""}@${t}`;return e}function FBe(e){e.callbacks={createBookingStarted:({timeslot:t,data:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"createBookingStarted",timeslot:t,data:n},e.postMessageTarget)},createBookingSuccessful:({timeslot:t,response:n,data:r})=>{var i;(i=window==null?void 0:window.parent)==null||i.postMessage({origin:"bookingjs",type:"createBookingSuccessful",timeslot:t,response:n,data:r},e.postMessageTarget)},createBookingFailed:({timeslot:t,response:n,data:r})=>{var i;(i=window==null?void 0:window.parent)==null||i.postMessage({origin:"bookingjs",type:"createBookingFailed",timeslot:t,response:n,data:r},e.postMessageTarget)},cancelationgStarted:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationStarted",timeslot:t,response:n},e.postMessageTarget)},cancelationSuccessful:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationSuccessful",timeslot:t,response:n},e.postMessageTarget)},cancelationFailed:({timeslot:t,response:n})=>{var r;(r=window==null?void 0:window.parent)==null||r.postMessage({origin:"bookingjs",type:"cancelationFailed",timeslot:t,response:n},e.postMessageTarget)},fetchingPublicDataSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingPublicDataSucceeded",data:t},e.postMessageTarget)},fetchingProductsSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingProductsSucceeded",data:t},e.postMessageTarget)},fetchingBookablesSucceeded:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingBookablesSucceeded",data:t},e.postMessageTarget)},fetchingPublicDataFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingPublicDataFailed",error:t},e.postMessageTarget)},fetchingProductsFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingProductsFailed",error:t},e.postMessageTarget)},fetchingBookablesFailed:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"fetchingBookablesFailed",error:t},e.postMessageTarget)},openedProductSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedProductSelection"},e.postMessageTarget)},openedResourceSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedResourceSelection"},e.postMessageTarget)},openedBookingPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"openedBookingPage",timeslot:t},e.postMessageTarget)},openedCancelPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"openedCancelPage",timeslot:t},e.postMessageTarget)},openedConfirmationPage:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"openedConfirmationPage"},e.postMessageTarget)},closedProductSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedProductSelection"},e.postMessageTarget)},closedResourceSelection:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedResourceSelection"},e.postMessageTarget)},closedBookingPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"closedBookingPage",timeslot:t},e.postMessageTarget)},closedCancelPage:t=>{var n;(n=window==null?void 0:window.parent)==null||n.postMessage({origin:"bookingjs",type:"closedCancelPage",timeslot:t},e.postMessageTarget)},closedConfirmationPage:()=>{var t;(t=window==null?void 0:window.parent)==null||t.postMessage({origin:"bookingjs",type:"closedConfirmationPage"},e.postMessageTarget)}}}const MG=(e,t)=>{e&&!t.includes(e)&&t.push(e)},DG=(e,t)=>{e&&(e.forEach?e.forEach(n=>{t[n.resource.uuid]={...n}}):t[e.resource.uuid]={...e})},IG=(e,t)=>{e&&e.forEach(n=>{t[n.resource.uuid]?(t[n.resource.uuid].bookables=n.bookables,t[n.resource.uuid].products=n.products):t[n.resource.uuid]={...n}})};async function NG(e,t,n,r,i,o){var w,b,y,S;let s={};const a=t==null?void 0:t.ref,l=t==null?void 0:t.tslRefs,u=t==null?void 0:t.virtualTslRefs,c=t==null?void 0:t.prdRefs,f=t==null?void 0:t.additionalData,m=t==null?void 0:t.allResourcesOption,p=t==null?void 0:t.publicData,g=t==null?void 0:t.tsls,v=t==null?void 0:t.channelKey;if((a==null?void 0:a.length)>0&&!(p!=null&&p.length)>0){const C=await r({channelOrResourceId:a[0],params:{channelKey:v,ref:a,...f}});DG(C==null?void 0:C.data,s)}if((p==null?void 0:p.length)>0&&DG(p,s),m&&(!l||l.length===0)&&(!u||u.length===0)&&(s={"all-option":{resource:{uuid:"all-option",name:e("common.All")},provider:(b=(w=Object.values(s))==null?void 0:w[0])==null?void 0:b.provider},...s}),((l==null?void 0:l.length)>0||(u==null?void 0:u.length)>0)&&!(g!=null&&g.length)>0){const C=await i({params:{channelKey:v,tslIds:l,...f},body:u});IG(C==null?void 0:C.data,s)}if((g==null?void 0:g.length)>0&&IG(g,s),(c==null?void 0:c.length)>0){Object.values(s).forEach(E=>{var A;E!=null&&E.bookables&&((A=Object.values(E==null?void 0:E.bookables))==null||A.forEach(_=>{_.forEach(O=>{var D;MG(O==null?void 0:O.product_uuid,c),(D=O.products)==null||D.forEach(I=>{MG(I.uuid,c)})})}))});const C=await o({params:{prdRefs:c,additionalData:f}}),T=Object.entries(s).filter(([,E])=>{var _,O;if(((O=(_=E==null?void 0:E.resource)==null?void 0:_.supportedProducts)==null?void 0:O.length)===0)return!1;const A=C.data.filter(D=>{var j;const I=(j=E==null?void 0:E.resource)==null?void 0:j.supportedProducts;return I&&I.some(z=>z===D.uuid)});return A.length===0?!1:(E.products=A,!0)});s=Object.fromEntries(T)}if(n(Wne(s)),Object.values(s).length>1)if(t.cancelableAppointment){let C=!1;for(const T of Object.values(s))((y=T==null?void 0:T.resource)==null?void 0:y.uuid)===((S=t.cancelableAppointment)==null?void 0:S.resId)&&(n(Cd(T)),C=!0);C||n(Cd(Object.values(s)[0]))}else n(Cd(Object.values(s)[0]));else Object.values(s).length===1?n(Cd(Object.values(s)[0])):console.warn("Given reference(s) seems to be invalid.")}function zBe(e){try{return $Be(e)}catch(t){console.error("Error decrypting JWT:",t)}}function nT(e){var T,E,A;const t={...e},n=window.location.search,r=new URLSearchParams(t.queryString||n);let i=r.get("pData")??r.get("pdata"),o=r.get("pDataPlatform")?{platform:r.get("pDataPlatform"),id:r.get("pDataId"),idPropName:r.get("pDataIdPropName")}:void 0;const s=jBe("PLAY_SESSION");let a=r.get("channelKey")??r.get("channelkey");const l=r.get("X-SIGNED-APP-CUSTOMER");let u=r.get("resId"),c=r.getAll("ref"),f=r.getAll("tslRefs"),m=r.getAll("virtualTslRefs"),p=r.getAll("prdRefs"),g=r.get("culture"),v=r.get("postMessageTarget"),w=r.get("allResourcesOption"),b=r.get("calendarFrontend"),y=r.get("conf");y&&(y=zBe(y),c=y.ref||[],a=y.channelKey,i=y.pData,f=y.tslRefs||[],p=y.prdRefs||[],g=y.urlCulture,m=y.virtualTslRefs||[],v=y.postMessageTarget,w=y.allResourcesOption,b=y.calendarFrontend);const S=t.queryHash||window.location.hash,[,,C]=(S==null?void 0:S.split("/"))??[];if((i||o)&&(t.pData=i??o),a&&(t.channelKey=a),c&&c.length>0&&(t.ref=c),f&&f.length>0&&(t.tslRefs=f),m&&m.length>0&&(t.virtualTslRefs=m),p&&p.length>0&&(t.prdRefs=p),g&&(t.culture=g),v&&(t.postMessageTarget=v),w&&(t.allResourcesOption=w),b&&(t.calendarFrontend=b),ln.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],ln.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],ln.isArray(t.prdRefs)?t.prdRefs=[...t.prdRefs]:t.prdRefs?t.prdRefs=[t.prdRefs]:t.prdRefs=[],!t.alwaysRender&&(!t.ref||t.ref.length===0)&&(!t.tslRefs||t.tslRefs.length===0)&&(!t.virtualTslRefs||t.virtualTslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let _=0;_<((T=t==null?void 0:t.ref)==null?void 0:T.length);_++)t.ref[_]=tT(t.ref[_],t.platform,t.prvUuid);for(let _=0;_<((E=t==null?void 0:t.tslRefs)==null?void 0:E.length);_++)t.tslRefs[_]=tT(t.tslRefs[_],t.platform,t.prvUuid);for(let _=0;_<((A=t==null?void 0:t.prdRefs)==null?void 0:A.length);_++)t.prdRefs[_]=tT(t.prdRefs[_],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:C,customerUuid:o.id,resourceUuid:u}),t.host&&kte(t.host),t.height&&(t.height=NBe(t.height)),t}const LG=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=ln.merge({},Sc.appConfig,e),c=ln.merge({},Sc.muiTheme,t),f=ln.merge({},Sc.fcConfig,n);u.fields=PG(u.fields),LBe(e.fields,u.fields),l&&!o&&(u.localization=Sc.appConfig.localization),l&&!i&&(u.fields=Sc.appConfig.fields),l&&!r&&(u.hideTimumFooter=Sc.appConfig.hideTimumFooter),a&&!r&&(c=Sc.muiTheme),u.postMessageTarget&&FBe(u),s(Hne(f)),s(Une(u)),s(Vne(c))},jG=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const{t:i}=Cn(),o=Nh(),s=Se(ire),a=Se(ore),l=Se(sre),u=re.useMemo(()=>{var y;return(y=n==null?void 0:n.callbacks)==null?void 0:y.fetchingPublicDataFailed},[n]),[c,{isFetching:f,error:m}]=Dte(),[p,{isFetching:g}]=_te(),[v,{isFetching:w}]=Pte(),b=R.useCallback((y=n,S=e,C=t)=>{const T=nT(y);T&&(LG(T,S,C,s,a,l,o),NG(i,T,o,c,p,v))},[n,e,t,s,a,l,o,i,c,p,v]);return R.useEffect(()=>{var S;const y=C=>{var T,E,A,_,O;IBe.test(C.origin)&&((T=C.data)==null?void 0:T.type)==="rerender"?b({...(E=C.data)==null?void 0:E.appConfig},{...(A=C.data)==null?void 0:A.muiTheme},{...(_=C.data)==null?void 0:_.fcConfig}):((O=C.data)==null?void 0:O.type)==="rerender"&&console.error("ConfigHandler received a message from an unexpected origin:",C.origin)};return window.addEventListener("message",y),(S=window==null?void 0:window.parent)==null||S.postMessage({origin:"bookingjs",type:"ready"},n.postMessageTarget||"*"),()=>{window.removeEventListener("message",y)}},[b,n]),R.useEffect(()=>{const y=nT(n);y&&LG(y,e,t,s,a,l,o)},[n,e,t,o,s,a,l,c,p,v]),R.useEffect(()=>{const y=nT(n);y&&NG(i,y,o,c,p,v)},[n,o,c,p,v,i]),R.useEffect(()=>{o(Kne(g||f||w))},[o,f,g,w]),m&&u&&u(m),r};jG.displayName="ConfigHandler";const BBe=bne({reducer:{[bv.reducerPath]:bv.reducer,appState:are},middleware:e=>e().concat(bv.middleware),devTools:{trace:!0}});var FG=[],UBe=FG.forEach,HBe=FG.slice;function VBe(e){return UBe.call(HBe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var zG=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,WBe=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var a=i.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(a))}if(i.domain){if(!zG.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!zG.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite){var l=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},BG={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=WBe(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},qBe={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=BG.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&BG.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},GBe={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),s=0;s<o.length;s++){var a=o[s].indexOf("=");if(a>0){var l=o[s].substring(0,a);l===t.lookupQuerystring&&(n=o[s].substring(a+1))}}}return n}},Om=null,UG=function(){if(Om!==null)return Om;try{Om=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Om=!1}return Om},YBe={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&UG()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&UG()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Pm=null,HG=function(){if(Pm!==null)return Pm;try{Pm=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Pm=!1}return Pm},KBe={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&HG()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&HG()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},ZBe={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},QBe={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},JBe={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},XBe={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function eUe(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var VG=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fo(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return zo(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=VBe(r,this.options||{},eUe()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(qBe),this.addDetector(GBe),this.addDetector(YBe),this.addDetector(KBe),this.addDetector(ZBe),this.addDetector(QBe),this.addDetector(JBe),this.addDetector(XBe)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();VG.type="languageDetector";var rT=["​","‌"],iT=RegExp("([".concat(rT.join(""),"]{9})+"),"gu"),tUe=9,nUe="subliminal:start",rUe=function(t){return Array.from(new TextEncoder().encode(t))},iUe=function(t){return new TextDecoder().decode(new Uint8Array(t))},oUe=function(t){var n=8-t.length;return"0".repeat(n)+t},WG=function(t){var n=rUe(t).map(Number),r=n.map(function(o){return oUe(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return rT[Number(o)]}).join("");return i},qG=WG(nUe),GG=function(t){var n=Array.from(t).map(function(o){return rT.indexOf(o)}).map(String).join(""),r=n.match(/(.{9})/g),i=Uint8Array.from((r==null?void 0:r.map(function(o){return parseInt(o.slice(0,8),2)}))||[]);return iUe(i)},sUe=function(t){var n,r=(n=t.match(iT))===null||n===void 0?void 0:n.filter(function(i){return i.length>tUe-1});if(!(!r||r.length===0))return GG(r[r.length-1])},aUe=function(t){return t.replace(iT,"")},lUe=function(t){if(Object.keys(t).length===0)return t;var n={k:t.key,n:t.ns,l:t.lng,s:t.source};return JSON.stringify(n)},uUe=function(t){if(!(!t||typeof t!="string"||t.indexOf("{")!==0))try{var n=JSON.parse(t||"{}");return{key:n.k,ns:n.n,lng:n.l,source:n.s}}catch{return}};function YG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=lUe(t),r=WG(n);return typeof e=="string"&&e?qG+e+r:e}function Jb(e){var t=sUe(e),n=uUe(t),r=aUe(e);return{text:r,invisibleMeta:n}}function oT(e){if(!e||e.length<27||!iT.test(e))return!1;var t=e.substring(e.length-9),n=GG(t);return n==="}"}function cUe(e){return e.startsWith(qG)}function KG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ZG="subliminal",dUe={name:ZG,type:"postProcessor",options:{},setOptions:function(t){this.options=Xb(Xb({},t),this.options)},process:function(t,n,r,i){var o=this.options=Xb(Xb({},r),this.options),s,a,l,u;if(r.i18nResolved)s=r.i18nResolved.exactUsedKey,a=r.i18nResolved.usedNS,l=r.i18nResolved.usedLng,r.i18nResolved.res===void 0?s!==t?u="default":u="key":u="translation";else{var c,f,m,p,g,v,w=(c=(f=o.keySeparator)!==null&&f!==void 0?f:i==null||(m=i.options)===null||m===void 0?void 0:m.keySeparator)!==null&&c!==void 0?c:".",b=i.extractFromKey(n.join(w),r),y=b.key,S=b.namespaces;s=y,a=(p=(g=S==null?void 0:S[0])!==null&&g!==void 0?g:o.ns)!==null&&p!==void 0?p:i==null||(v=i.options)===null||v===void 0?void 0:v.defaultNS,l=r.lng||this.language,s===t?u="key":u="translation"}return YG(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:ZG,postProcessPassResolved:!0}}},QG=["placeholder","title","alt"],Uo={highlight:"#26a69a",warning:"#e67a00"},JG=function(){var t,n;typeof process<"u"&&(n=process),!n&&typeof window<"u"&&(n=window.process);var r=n||{},i=((t=r.env)===null||t===void 0?void 0:t.locizeIncontext)||"production";return i==="development"?"http://localhost:3003/":i==="staging"?"https://incontext-dev.locize.app":"https://incontext.locize.app"},wa=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function XG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fUe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var eY={committed:"commitKeys"};function pUe(e){return eY[e]?eY[e]:e}var sT=[];function Er(e,t){if(!Pe.source){var n;Pe.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(Pe.origin||(Pe.origin=JG()),!Pe.source||!Pe.source.postMessage){sT.push({action:e,payload:t});return}Pe.legacy?Pe.source.postMessage(fUe({message:e},t),Pe.origin):Pe.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},Pe.origin);var r=sT;sT=[],r.forEach(function(i){var o=i.action,s=i.payload;Er(o,s)})}var Cc={},aT=5,Pe={init:function(t,n){Pe.i18n=t,Pe.clickHandler=n},requestInitialize:function(t){Er("requestInitialize",t),!Pe.initInterval&&(Pe.initInterval=setInterval(function(){aT=aT-1,Pe.requestInitialize(t),aT<0&&Pe.initInterval&&(clearInterval(Pe.initInterval),delete Pe.initInterval)},1e3))},selectKey:function(t){Er("selectKey",t)},confirmResourceBundle:function(t){Er("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Er("sendCurrentParsedContent",{content:Object.values(bs.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Er("sendCurrentTargetLanguage",{targetLng:t||Pe.i18n.getLng()})},addHandler:function(t,n){Cc[t]||(Cc[t]=[]),Cc[t].push(n)},sendLocizeIsEnabled:function(){Er("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(Pe.scriptTurnedOff)return Er("forcedOff");Pe.clickInterceptionEnabled||window.document.body.addEventListener("click",Pe.clickHandler,!0),Pe.clickInterceptionEnabled=!0,Er("turnedOn")},turnOff:function(){if(Pe.scriptTurnedOff)return Er("forcedOff");Pe.clickInterceptionEnabled&&window.document.body.removeEventListener("click",Pe.clickHandler,!0),Pe.clickInterceptionEnabled=!1,Er("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Er("added",o)}};typeof window<"u"&&window.addEventListener("message",function(e){var t=e.data,n=t.sender,r=t.action,i=t.message,o=t.payload;if(i){var s=pUe(i);Cc[s]&&Cc[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&Cc[r]&&Cc[r].forEach(function(a){a(o)})});function e3(e,t){var n=bs.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=YG(t,n.subliminal);if(e.textType==="text")n.node.textContent=r;else if(e.textType.indexOf("attr:")===0){var i=e.textType.replace("attr:","");n.node.setAttribute(i,r)}else if(e.textType==="html"){var o="".concat(e.textType,"-").concat(e.children);if(!n.originalChildNodes){var s=[];n.node.childNodes.forEach(function(f){s.push(f)}),n.originalChildNodes=s}if(n.children[o].length===n.node.childNodes.length)n.node.innerHTML=r;else{var a=n.children[o],l=a[0].child,u=document.createElement("div");u.innerHTML=r;var c=[];u.childNodes.forEach(function(f){c.push(f)}),c.forEach(function(f){try{n.node.insertBefore(f,l)}catch{n.node.appendChild(f)}}),a.forEach(function(f){n.node.contains(f.child)&&n.node.removeChild(f.child)})}}}}function hUe(e){var t=e.meta,n=e.value;t&&n!==void 0&&e3(t,n)}Pe.addHandler("editKey",hUe);function mUe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){e3(t,n);var i=r||Pe.i18n.getLng();Pe.i18n.setResource(i,t.ns,t.key,n),Pe.i18n.triggerRerender()}}Pe.addHandler("commitKey",mUe);function gUe(e){if(Array.isArray(e))return Y6(e)}function vUe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1346
1346
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yUe(e){return gUe(e)||oG(e)||sG(e)||vUe()}function bUe(e){var t=e.updated;t.forEach(function(n){var r=n.lng,i=n.ns,o=n.key,s=n.data,a=n.metas,l=n.meta;l&&s.value&&e3(l,s.value),a&&Object.values(a).forEach(function(u){e3(u,s.value)}),Pe.i18n.setResource(r,i,o,s.value)}),Object.values(bs.data).forEach(function(n){if(n.originalChildNodes){var r;(r=n.node).replaceChildren.apply(r,yUe(n.originalChildNodes))}}),Pe.i18n.triggerRerender(),Pe.locizeSavedHandler&&Pe.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)}Pe.addHandler("commitKeys",bUe);function xUe(e){Pe.initialized=!0,clearInterval(Pe.initInterval),delete Pe.initInterval,Pe.sendCurrentParsedContent(),Pe.sendCurrentTargetLanguage()}Pe.addHandler("confirmInitialized",xUe);function tY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tY(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tY(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Gl={};function wUe(){Object.values(Gl).forEach(function(e){document.body.contains(e.node)||(Dm(e.id,e.node),delete Gl[e.id])})}function SUe(e,t,n){!e||!t||!n||(Gl[e]||(Gl[e]={id:e,node:n}),Gl[e].keys=nY(nY({},Gl[e].keys),{},sn({},"".concat(t),"uninstrumented")))}function CUe(e){return Gl[e]}var lT={save:SUe,clean:wUe,get:CUe,data:Gl};function rY(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=t.top<=n&&t.top+t.height>=0,o=t.left<=r&&t.left+t.width>=0;return i&&o}function uT(e,t){var n=t,r=e.pageX,i=e.pageY,o={x:r,y:i},s=n.getBoundingClientRect(),a=s.top+document.documentElement.scrollTop,l=a+n.offsetHeight,u=s.left+document.documentElement.scrollLeft,c=u+n.offsetWidth,f=Math.max(r,u),m=Math.min(r,c),p=Math.max(i,a),g=Math.min(i,l),v=m>=f,w=g>=p,b={x:v?r:c<r?c:u,y:w?i:l<i?l:a},y=b.x-o.x,S=b.y-o.y,C=Math.pow(Math.pow(y,2)+Math.pow(S,2),1/2);return Math.floor(C)}function iY(e,t,n){var r;return function(){var i=this,o=arguments,s=function(){r=null,n||e.apply(i,o)},a=n&&!r;clearTimeout(r),r=setTimeout(s,t),a&&e.apply(i,o)}}function $Ue(e){return e!=null&&e===e.window}function TUe(e){return $Ue(e)?e:e.nodeType===9&&e.defaultView}function oY(e){var t={top:0,left:0,right:0,bottom:0},n=e&&e.ownerDocument,r=n&&n.documentElement;if(!r)return t;Hi(e.getBoundingClientRect)!=="undefined"&&(t=e.getBoundingClientRect());var i=TUe(n),o=t.top+i.pageYOffset-r.clientTop,s=t.left+i.pageXOffset-r.clientLeft;return{top:o,left:s,right:s+(t.right-t.left),bottom:o+(t.bottom-t.top)}}function EUe(e){if(e.srcElement&&e.srcElement.nodeType===1&&(e.srcElement.nodeName==="BUTTON"||e.srcElement.nodeName==="INPUT"))return e.srcElement.getAttribute&&e.srcElement.getAttribute("ignorelocizeeditor")===""?null:e.srcElement;var t;if(e.originalEvent&&e.originalEvent.explicitOriginalTarget)t=e.originalEvent.explicitOriginalTarget;else{var n=e.srcElement;if(n.getAttribute&&n.getAttribute("ignorelocizeeditor")==="")return null;for(var r=e.pageX,i=e.pageY,o=0,s,a=0;a<n.childNodes.length;a++){var l=n.childNodes[a],u=oY(l);l.nodeType===1&&u.bottom<i&&(o=a+1),!s&&u.top+(l.clientHeight||0)>i&&(s=a)}o+1>n.childNodes.length&&(o=n.childNodes.length-1),s||(s=n.childNodes.length);for(var c=o;c<s;c++){var f=n.childNodes[c],m=oY(f);if(m.left>r)break;f&&f.nodeType!==8&&(t=f)}}return t}function kUe(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if(typeof t=="string")return t.replace(/\n +/g,"").trim()}function Sa(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function sY(e){var t=Sa(e,"data-i18n");if(t)return t;if(e.nodeType===window.Node.TEXT_NODE&&e.parentElement)return sY(e.parentElement)}function AUe(e){var t,n=function r(i){var o=Sa(i,"i18next-options");if(o||(o=Sa(i,"data-i18next-options")),o||(o=Sa(i,"i18n-options")),o||(o=Sa(i,"data-i18n-options")),o){var s={};try{s=JSON.parse(o)}catch{}s.ns&&(t=s.ns)}t||(t=Sa(i,"i18next-ns")),t||(t=Sa(i,"data-i18next-ns")),t||(t=Sa(i,"i18n-ns")),t||(t=Sa(i,"data-i18n-ns")),!t&&i.parentElement&&r(i.parentElement)};return n(e),t}function RUe(e,t){if(typeof window>"u")return null;t||(t=window.location.href.toLowerCase()),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),r=n.exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}var _Ue=iY(function(e,t){Object.values(bs.data).forEach(function(n){if(rY(n.node)){var r=uT(e,n.node);if(r<5)tHe(n,n.node,n.keys);else if(r>5){var i=n.ribbonBox?uT(e,n.ribbonBox):1e3;i>10&&Dm(n,n.node,n.keys)}}}),Object.values(lT.data).forEach(function(n){if(rY(n.node)){var r=uT(e,n.node);r<10?nHe(n,n.node,n.keys):r>10&&Dm(n,n.node,n.keys)}})},50),cT;function t3(e){cT=function(n){_Ue(n,e)},document.addEventListener("mousemove",cT)}function dT(){document.removeEventListener("mousemove",cT)}var OUe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#FFFFFF"><g></g><g><g><g><path d="M3,21l3.75,0L17.81,9.94l-3.75-3.75L3,17.25L3,21z M5,18.08l9.06-9.06l0.92,0.92L5.92,19L5,19L5,18.08z"/></g><g><path d="M18.37,3.29c-0.39-0.39-1.02-0.39-1.41,0l-1.83,1.83l3.75,3.75l1.83-1.83c0.39-0.39,0.39-1.02,0-1.41L18.37,3.29z"/></g></g></g></svg>',PUe=`
1347
1347
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 304" stroke="#000" stroke-linecap="round" stroke-linejoin="round" fill="#fff" fill-rule="evenodd">
1348
1348
  <g stroke="none" class="B">