@timum/booking 1.6.2 → 1.6.4

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
@@ -67191,8 +67191,8 @@ const Yl = 14, du = '"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',
67191
67191
  );
67192
67192
  if (ie.useEffect(() => {
67193
67193
  var b;
67194
- (b = window == null ? void 0 : window.parent) != null && b.document && (window.parent.document.rerenderTimumBooking = w);
67195
- }, [w]), ie.useEffect(() => {
67194
+ n != null && n.isComponent && ((b = window == null ? void 0 : window.parent) != null && b.document) && (window.parent.document.rerenderTimumBooking = w);
67195
+ }, [w, n]), ie.useEffect(() => {
67196
67196
  const b = gN(n);
67197
67197
  b && (vN(
67198
67198
  b,
@@ -70190,7 +70190,7 @@ function WQe(e, t, n) {
70190
70190
  function qQe({ appConfig: e, muiTheme: t, fcConfig: n }) {
70191
70191
  var i, o;
70192
70192
  const r = e.cdnUrl ?? "https://cdn.timum.de/bookingjs/1/booking.js";
70193
- if (e.queryString = window.location.search, e.queryHash = window.location.hash, !sn.isEqual(document.appConfig, e) || !sn.isEqual(document.muiTheme, t) || !sn.isEqual(document.fcConfig, n)) {
70193
+ if (e.queryString = window.location.search, e.queryHash = window.location.hash, e.isComponent = !0, !sn.isEqual(document.appConfig, e) || !sn.isEqual(document.muiTheme, t) || !sn.isEqual(document.fcConfig, n)) {
70194
70194
  const s = (o = (i = window == null ? void 0 : window.parent) == null ? void 0 : i.document) == null ? void 0 : o.rerenderTimumBooking;
70195
70195
  s && s({ ...e }, { ...t }, { ...n });
70196
70196
  }
@@ -1287,7 +1287,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1287
1287
  .fc .fc-v-event .fc-event-title {
1288
1288
  display: none !important;
1289
1289
  }
1290
- `;function Wje(){const e=$e(t=>sne(t,"useCustomTimumCss"));return $.jsxs($.Fragment,{children:[e&&$.jsx(yw,{styles:Vje}),$.jsx(yw,{styles:Hje})]})}function qje(e){const t=$e(yu),n=$e(ine),r=$e(s=>We(s,"calendarFrontend")),i=$e(s=>We(s,"calendarFrontendOptions"));let o=Bw(n??{});if(o=tae(o,{factor:2.5}),t)return $.jsxs(rae,{theme:o,children:[$.jsx(Zpe,{}),$.jsx(Wje,{}),r==="fullCalendar"&&$.jsx(Oy,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(Pje,{})}),r==="detailsListView"&&$.jsx(Oy,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(rOe,{})}),r==="pureListView"&&$.jsx(Oy,{...e,...i.pureListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(K2,{})}),r==="minimalView"&&$.jsx(Oy,{...e,...i.minimalView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(Uje,{})}),r!=="fullCalendar"&&r!=="minimalView"&&r!=="detailsListView"&&r!=="pureListView"&&$.jsxs($.Fragment,{children:["You must set calendarFrontend either to ",$.jsx("code",{children:"fullCalendar"}),",",$.jsx("code",{children:"detailsListView"})," or ",$.jsx("code",{children:"pureListView"})," in your config."]})]})}function jf(e){const t=parseFloat(getComputedStyle(document.documentElement).fontSize);return e/t}var y6={},Gje=Tn;Object.defineProperty(y6,"__esModule",{value:!0});var Iq=y6.default=void 0,Yje=Gje(Bn()),Kje=$;Iq=y6.default=(0,Yje.default)((0,Kje.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 dm(e){const{children:t,onClose:n,...r}=e;return $.jsxs(uI,{sx:{m:0,p:2},...r,children:[t,n?$.jsx(u0,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:$.jsx(Iq,{})}):null]})}dm.propTypes={children:it.node,onClose:it.func.isRequired};const Ll=14,fc='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',zf=Math.floor(Ll*1.428571429),Zje=jf(Math.floor(Ll*2.6)),Qje=jf(Math.floor(Ll*2.3)),Xje=jf(Math.floor(Ll*1.9)),Jje=jf(Math.floor(Ll*1.5)),eze=jf(Math.floor(Ll*1.15)),tze=jf(Math.floor(Ll)),pc={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{minimalView:{forceResourceSelectorDialog:!0}},allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:yl().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:yl().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:yl().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:yl().max(1024),limit:1024},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:o2().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=ns(),i=Co(r.breakpoints.down("sm"));return $.jsxs(dl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(dm,{onClose:t}),$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=ns(),i=Co(r.breakpoints.down("sm"));return $.jsxs(dl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(dm,{onClose:t}),$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=ns(),s=Co(o.breakpoints.down("sm"));return $.jsxs(dl,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&$.jsx(dm,{onClose:n}),$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>$.jsx(dl,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:$.jsx(fl,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=ns(),i=Co(r.breakpoints.down("sm"));return $.jsxs(dl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(dm,{onClose:t}),$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=ns(),s=Co(o.breakpoints.down("sm"));return $.jsxs($.Fragment,{children:[$.jsx(dl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&$.jsxs(me,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[$.jsx(me,{item:!0,xs:"auto",children:i}),$.jsx(me,{item:!0,xs:"1",children:$.jsx(fI,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=ns(),i=Co(r.breakpoints.down("sm"));return $.jsx(dl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=An();return $.jsxs(dl,{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(fl,{children:$.jsx($he,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),$.jsx(phe,{children:$.jsx(Si,{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:2},typography:{fontFamily:fc,fontSize:Ll,h1:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${Zje}rem`},h2:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${Qje}rem`},h3:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${Xje}rem`},h4:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${Jje}rem`},h5:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${eze}rem`},h6:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${tze}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:zf/2},h2:{marginBottom:zf/2},h3:{marginBottom:zf/2},h4:{marginBottom:zf/2},h5:{marginBottom:zf/2},h6:{marginBottom:zf/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}},nze=(e,t,n="debug")=>{const r=_.useRef(t);_.useEffect(()=>{const i=Object.entries(t).reduce((o,[s,a])=>(r.current[s]!==a&&(o[s]={old:r.current[s],new:a}),o),{});Object.keys(i).length>0&&console[n](`[${e}] Changed props:`,i),r.current=t})},rze=({wait:e,children:t})=>{const n=$e(lw),r=$e(yu);if(!e&&n&&r)return t},Nq=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const i=lv(),o=$e(lne),s=$e(une),a=$e(cne),l=ie.useMemo(()=>{var b;return(b=n==null?void 0:n.callbacks)==null?void 0:b.fetchingPublicDataFailed},[n]),[u,{isFetching:d,error:f}]=qee(),[m,{isFetching:p}]=Uee(),[g,{isFetching:v}]=Vee();nze("ConfigHandler",{appConfig:n,muiTheme:e,fcConfig:t,dispatch:i,isThemingAllowed:o,areCustomFieldsAllowed:s,isLocalisationAllowed:a,fetchPublicData:u,fetchSpecificBookables:m,fetchSpecificProducts:g});const w=_.useCallback((b=n,x=e,S=t)=>{const C=Uq(b);C&&(Hq(C,x,S,o,s,a,i),Bq(C,i,u,m,g))},[n,e,t,o,s,a,i,u,m,g]);if(ie.useEffect(()=>{var b;(b=window==null?void 0:window.parent)!=null&&b.document&&(window.parent.document.rerenderTimumBooking=w)},[w]),ie.useEffect(()=>{const b=Uq(n);b&&(Hq(b,e,t,o,s,a,i),Bq(b,i,u,m,g))},[n,e,t,i,o,s,a,u,m,g]),f)l&&l(f);else return $.jsx(rze,{wait:p||d||v,children:r})};function ize(e,t){return 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,t}function Lq(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.index===t&&(n[r]=i);return t++,Lq(e,t,n)}function oze(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function b6(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}const Fq=(e,t)=>{e&&!t.includes(e)&&t.push(e)},jq=(e,t)=>{e&&e.forEach(n=>{t[n.resource.uuid]={...n}})},zq=(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 Bq(e,t,n,r,i){var m,p;let o={};const s=e==null?void 0:e.ref,a=e==null?void 0:e.tslRefs,l=e==null?void 0:e.prdRefs,u=e==null?void 0:e.publicData,d=e==null?void 0:e.tsls,f=e==null?void 0:e.channelKey;if((s==null?void 0:s.length)>0&&!(u!=null&&u.length)>0){const g=await n({channelOrResourceId:s[0],params:{channelKey:f,ref:s}});jq(g==null?void 0:g.data,o)}if((u==null?void 0:u.length)>0&&jq(u,o),(a==null?void 0:a.length)>0&&!(d!=null&&d.length)>0){const g=await r({params:{channelKey:f,tlsIds:a}});zq(g==null?void 0:g.data,o)}if((d==null?void 0:d.length)>0&&zq(d,o),(l==null?void 0:l.length)>0){Object.values(o).forEach(w=>{var b;w.bookables&&((b=Object.values(w.bookables))==null||b.forEach(x=>{x.forEach(S=>{var C;Fq(S.product_uuid,l),(C=S.products)==null||C.forEach(T=>{Fq(T.uuid,l)})})}))});const g=await i({params:{prdRefs:l}}),v=Object.entries(o).filter(([,w])=>{var x,S;if(((S=(x=w.resource)==null?void 0:x.supportedProducts)==null?void 0:S.length)===0)return!1;const b=g.data.filter(C=>{var k;const T=(k=w.resource)==null?void 0:k.supportedProducts;return T&&T.some(R=>R===C.uuid)});return console.log(b),b.length===0?!1:(w.products=b,!0)});console.log(v),o=Object.fromEntries(v),console.log(o)}if(t(rne(o)),Object.values(o).length>1)if(e.cancelableAppointment){let g=!1;for(const v of Object.values(o))((m=v==null?void 0:v.resource)==null?void 0:m.uuid)===((p=e.cancelableAppointment)==null?void 0:p.resId)&&(t(yh(v)),g=!0);g||t(yh(Object.values(o)[0]))}else t(yh(Object.values(o)[0]));else Object.values(o).length===1?t(yh(Object.values(o)[0])):console.warn("Given reference(s) seems to be invalid.")}function Uq(e){var w,b,x;const t={...e},n=window.location.search,r=new URLSearchParams(t.queryString||n),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,s=oze("PLAY_SESSION"),a=r.get("channelKey")??r.get("channelkey"),l=r.get("X-SIGNED-APP-CUSTOMER"),u=r.get("resId"),d=r.getAll("ref"),f=r.getAll("tslRefs"),m=r.getAll("prdRefs"),p=r.get("culture"),g=t.queryHash||window.location.hash,[,,v]=(g==null?void 0:g.split("/"))??[];if((i||o)&&(t.pData=i??o),a&&(t.channelKey=a),d&&d.length>0&&(t.ref=d),f&&f.length>0&&(t.tslRefs=f),m&&m.length>0&&(t.prdRefs=m),p&&(t.culture=p),on.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],on.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],on.isArray(t.prdRefs)?t.prdRefs=[...t.prdRefs]:t.prdRefs?t.prdRefs=[t.prdRefs]:t.prdRefs=[],(!t.ref||t.ref.length===0)&&(!t.tslRefs||t.tslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let S=0;S<((w=t==null?void 0:t.ref)==null?void 0:w.length);S++)t.ref[S]=b6(t.ref[S],t.platform,t.prvUuid);for(let S=0;S<((b=t==null?void 0:t.tslRefs)==null?void 0:b.length);S++)t.tslRefs[S]=b6(t.tslRefs[S],t.platform,t.prvUuid);for(let S=0;S<((x=t==null?void 0:t.prdRefs)==null?void 0:x.length);S++)t.prdRefs[S]=b6(t.prdRefs[S],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:v,customerUuid:o.id,resourceUuid:u}),t.host&&jee(t.host),t}const Hq=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=on.merge({},pc.appConfig,e),d=on.merge({},pc.muiTheme,t),f=on.merge({},pc.fcConfig,n);u.fields=ize(e.fields,u.fields),u.fields=Lq(u.fields),l&&!o&&(u.localization=pc.appConfig.localization,console.warn("timum detected you configured custom localization/wording.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),l&&!i&&(u.fields=pc.appConfig.fields,console.warn("timum detected you configured custom fields.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),l&&!r&&(u.hideTimumFooter=pc.appConfig.hideTimumFooter,console.warn(`timum detected you want to suppress the "powered by timum" footerSince the Account the referenced resource belongs to isn't in an appropriate plan, this feature is disabled.`)),a&&!r&&(d=pc.muiTheme,console.warn("timum detected you configured custom theming.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),s(tne(f)),s(ene(u)),s(nne(d))};Nq.displayName="ConfigHandler";const sze=Ote({reducer:{[Z1.reducerPath]:Z1.reducer,appState:dne},middleware:e=>e().concat(Z1.middleware),devTools:{trace:!0}});var Vq=[],aze=Vq.forEach,lze=Vq.slice;function uze(e){return aze.call(lze.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var Wq=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,cze=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(!Wq.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!Wq.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},qq={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=cze(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)}},dze={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=qq.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&qq.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},fze={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}},fm=null,Gq=function(){if(fm!==null)return fm;try{fm=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{fm=!1}return fm},pze={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&Gq()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&Gq()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},pm=null,Yq=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},hze={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Yq()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Yq()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},mze={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}},gze={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}},vze={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}},yze={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 bze(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var Kq=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};No(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Lo(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=uze(r,this.options||{},bze()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(dze),this.addDetector(fze),this.addDetector(pze),this.addDetector(hze),this.addDetector(mze),this.addDetector(gze),this.addDetector(vze),this.addDetector(yze)}},{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}();Kq.type="languageDetector";var x6=["​","‌"],w6=RegExp("([".concat(x6.join(""),"]{9})+"),"gu"),xze=9,wze="subliminal:start",Sze=function(t){return Array.from(new TextEncoder().encode(t))},Cze=function(t){return new TextDecoder().decode(new Uint8Array(t))},$ze=function(t){var n=8-t.length;return"0".repeat(n)+t},Zq=function(t){var n=Sze(t).map(Number),r=n.map(function(o){return $ze(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return x6[Number(o)]}).join("");return i},Qq=Zq(wze),Xq=function(t){var n=Array.from(t).map(function(o){return x6.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 Cze(i)},Tze=function(t){var n,r=(n=t.match(w6))===null||n===void 0?void 0:n.filter(function(i){return i.length>xze-1});if(!(!r||r.length===0))return Xq(r[r.length-1])},kze=function(t){return t.replace(w6,"")},Eze=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)},Aze=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 Jq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Eze(t),r=Zq(n);return typeof e=="string"&&e?Qq+e+r:e}function Ob(e){var t=Tze(e),n=Aze(t),r=kze(e);return{text:r,invisibleMeta:n}}function S6(e){if(!e||e.length<27||!w6.test(e))return!1;var t=e.substring(e.length-9),n=Xq(t);return n==="}"}function Rze(e){return e.startsWith(Qq)}function eG(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 Pb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eG(Object(n),!0).forEach(function(r){nn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tG="subliminal",_ze={name:tG,type:"postProcessor",options:{},setOptions:function(t){this.options=Pb(Pb({},t),this.options)},process:function(t,n,r,i){var o=this.options=Pb(Pb({},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 d,f,m,p,g,v,w=(d=(f=o.keySeparator)!==null&&f!==void 0?f:i==null||(m=i.options)===null||m===void 0?void 0:m.keySeparator)!==null&&d!==void 0?d:".",b=i.extractFromKey(n.join(w),r),x=b.key,S=b.namespaces;s=x,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 Jq(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:tG,postProcessPassResolved:!0}}},nG=["placeholder","title","alt"],jo={highlight:"#26a69a",warning:"#e67a00"},rG=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"},pa=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function iG(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 Oze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iG(Object(n),!0).forEach(function(r){nn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oG={committed:"commitKeys"};function Pze(e){return oG[e]?oG[e]:e}var C6=[];function Cr(e,t){if(!Oe.source){var n;Oe.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(Oe.origin||(Oe.origin=rG()),!Oe.source||!Oe.source.postMessage){C6.push({action:e,payload:t});return}Oe.legacy?Oe.source.postMessage(Oze({message:e},t),Oe.origin):Oe.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},Oe.origin);var r=C6;C6=[],r.forEach(function(i){var o=i.action,s=i.payload;Cr(o,s)})}var hc={},$6=5,Oe={init:function(t,n){Oe.i18n=t,Oe.clickHandler=n},requestInitialize:function(t){Cr("requestInitialize",t),!Oe.initInterval&&(Oe.initInterval=setInterval(function(){$6=$6-1,Oe.requestInitialize(t),$6<0&&Oe.initInterval&&(clearInterval(Oe.initInterval),delete Oe.initInterval)},1e3))},selectKey:function(t){Cr("selectKey",t)},confirmResourceBundle:function(t){Cr("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Cr("sendCurrentParsedContent",{content:Object.values(ms.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Cr("sendCurrentTargetLanguage",{targetLng:t||Oe.i18n.getLng()})},addHandler:function(t,n){hc[t]||(hc[t]=[]),hc[t].push(n)},sendLocizeIsEnabled:function(){Cr("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(Oe.scriptTurnedOff)return Cr("forcedOff");Oe.clickInterceptionEnabled||window.document.body.addEventListener("click",Oe.clickHandler,!0),Oe.clickInterceptionEnabled=!0,Cr("turnedOn")},turnOff:function(){if(Oe.scriptTurnedOff)return Cr("forcedOff");Oe.clickInterceptionEnabled&&window.document.body.removeEventListener("click",Oe.clickHandler,!0),Oe.clickInterceptionEnabled=!1,Cr("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Cr("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=Pze(i);hc[s]&&hc[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&hc[r]&&hc[r].forEach(function(a){a(o)})});function Db(e,t){var n=ms.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=Jq(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 d=[];u.childNodes.forEach(function(f){d.push(f)}),d.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 Dze(e){var t=e.meta,n=e.value;t&&n!==void 0&&Db(t,n)}Oe.addHandler("editKey",Dze);function Mze(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){Db(t,n);var i=r||Oe.i18n.getLng();Oe.i18n.setResource(i,t.ns,t.key,n),Oe.i18n.triggerRerender()}}Oe.addHandler("commitKey",Mze);function Ize(e){if(Array.isArray(e))return p6(e)}function Nze(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1290
+ `;function Wje(){const e=$e(t=>sne(t,"useCustomTimumCss"));return $.jsxs($.Fragment,{children:[e&&$.jsx(yw,{styles:Vje}),$.jsx(yw,{styles:Hje})]})}function qje(e){const t=$e(yu),n=$e(ine),r=$e(s=>We(s,"calendarFrontend")),i=$e(s=>We(s,"calendarFrontendOptions"));let o=Bw(n??{});if(o=tae(o,{factor:2.5}),t)return $.jsxs(rae,{theme:o,children:[$.jsx(Zpe,{}),$.jsx(Wje,{}),r==="fullCalendar"&&$.jsx(Oy,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(Pje,{})}),r==="detailsListView"&&$.jsx(Oy,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(rOe,{})}),r==="pureListView"&&$.jsx(Oy,{...e,...i.pureListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(K2,{})}),r==="minimalView"&&$.jsx(Oy,{...e,...i.minimalView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(Uje,{})}),r!=="fullCalendar"&&r!=="minimalView"&&r!=="detailsListView"&&r!=="pureListView"&&$.jsxs($.Fragment,{children:["You must set calendarFrontend either to ",$.jsx("code",{children:"fullCalendar"}),",",$.jsx("code",{children:"detailsListView"})," or ",$.jsx("code",{children:"pureListView"})," in your config."]})]})}function jf(e){const t=parseFloat(getComputedStyle(document.documentElement).fontSize);return e/t}var y6={},Gje=Tn;Object.defineProperty(y6,"__esModule",{value:!0});var Iq=y6.default=void 0,Yje=Gje(Bn()),Kje=$;Iq=y6.default=(0,Yje.default)((0,Kje.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 dm(e){const{children:t,onClose:n,...r}=e;return $.jsxs(uI,{sx:{m:0,p:2},...r,children:[t,n?$.jsx(u0,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:$.jsx(Iq,{})}):null]})}dm.propTypes={children:it.node,onClose:it.func.isRequired};const Ll=14,fc='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',zf=Math.floor(Ll*1.428571429),Zje=jf(Math.floor(Ll*2.6)),Qje=jf(Math.floor(Ll*2.3)),Xje=jf(Math.floor(Ll*1.9)),Jje=jf(Math.floor(Ll*1.5)),eze=jf(Math.floor(Ll*1.15)),tze=jf(Math.floor(Ll)),pc={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{minimalView:{forceResourceSelectorDialog:!0}},allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:yl().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:yl().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:yl().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:yl().max(1024),limit:1024},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:o2().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=ns(),i=Co(r.breakpoints.down("sm"));return $.jsxs(dl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(dm,{onClose:t}),$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=ns(),i=Co(r.breakpoints.down("sm"));return $.jsxs(dl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(dm,{onClose:t}),$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=ns(),s=Co(o.breakpoints.down("sm"));return $.jsxs(dl,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&$.jsx(dm,{onClose:n}),$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>$.jsx(dl,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:$.jsx(fl,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=ns(),i=Co(r.breakpoints.down("sm"));return $.jsxs(dl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(dm,{onClose:t}),$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=ns(),s=Co(o.breakpoints.down("sm"));return $.jsxs($.Fragment,{children:[$.jsx(dl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&$.jsxs(me,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[$.jsx(me,{item:!0,xs:"auto",children:i}),$.jsx(me,{item:!0,xs:"1",children:$.jsx(fI,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=ns(),i=Co(r.breakpoints.down("sm"));return $.jsx(dl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:$.jsx(fl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Xd,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=An();return $.jsxs(dl,{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(fl,{children:$.jsx($he,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),$.jsx(phe,{children:$.jsx(Si,{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:2},typography:{fontFamily:fc,fontSize:Ll,h1:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${Zje}rem`},h2:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${Qje}rem`},h3:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${Xje}rem`},h4:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${Jje}rem`},h5:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${eze}rem`},h6:{fontFamily:fc,fontWeight:500,lineHeight:1,fontSize:`${tze}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:zf/2},h2:{marginBottom:zf/2},h3:{marginBottom:zf/2},h4:{marginBottom:zf/2},h5:{marginBottom:zf/2},h6:{marginBottom:zf/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}},nze=(e,t,n="debug")=>{const r=_.useRef(t);_.useEffect(()=>{const i=Object.entries(t).reduce((o,[s,a])=>(r.current[s]!==a&&(o[s]={old:r.current[s],new:a}),o),{});Object.keys(i).length>0&&console[n](`[${e}] Changed props:`,i),r.current=t})},rze=({wait:e,children:t})=>{const n=$e(lw),r=$e(yu);if(!e&&n&&r)return t},Nq=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const i=lv(),o=$e(lne),s=$e(une),a=$e(cne),l=ie.useMemo(()=>{var b;return(b=n==null?void 0:n.callbacks)==null?void 0:b.fetchingPublicDataFailed},[n]),[u,{isFetching:d,error:f}]=qee(),[m,{isFetching:p}]=Uee(),[g,{isFetching:v}]=Vee();nze("ConfigHandler",{appConfig:n,muiTheme:e,fcConfig:t,dispatch:i,isThemingAllowed:o,areCustomFieldsAllowed:s,isLocalisationAllowed:a,fetchPublicData:u,fetchSpecificBookables:m,fetchSpecificProducts:g});const w=_.useCallback((b=n,x=e,S=t)=>{const C=Uq(b);C&&(Hq(C,x,S,o,s,a,i),Bq(C,i,u,m,g))},[n,e,t,o,s,a,i,u,m,g]);if(ie.useEffect(()=>{var b;n!=null&&n.isComponent&&((b=window==null?void 0:window.parent)!=null&&b.document)&&(window.parent.document.rerenderTimumBooking=w)},[w,n]),ie.useEffect(()=>{const b=Uq(n);b&&(Hq(b,e,t,o,s,a,i),Bq(b,i,u,m,g))},[n,e,t,i,o,s,a,u,m,g]),f)l&&l(f);else return $.jsx(rze,{wait:p||d||v,children:r})};function ize(e,t){return 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,t}function Lq(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.index===t&&(n[r]=i);return t++,Lq(e,t,n)}function oze(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function b6(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}const Fq=(e,t)=>{e&&!t.includes(e)&&t.push(e)},jq=(e,t)=>{e&&e.forEach(n=>{t[n.resource.uuid]={...n}})},zq=(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 Bq(e,t,n,r,i){var m,p;let o={};const s=e==null?void 0:e.ref,a=e==null?void 0:e.tslRefs,l=e==null?void 0:e.prdRefs,u=e==null?void 0:e.publicData,d=e==null?void 0:e.tsls,f=e==null?void 0:e.channelKey;if((s==null?void 0:s.length)>0&&!(u!=null&&u.length)>0){const g=await n({channelOrResourceId:s[0],params:{channelKey:f,ref:s}});jq(g==null?void 0:g.data,o)}if((u==null?void 0:u.length)>0&&jq(u,o),(a==null?void 0:a.length)>0&&!(d!=null&&d.length)>0){const g=await r({params:{channelKey:f,tlsIds:a}});zq(g==null?void 0:g.data,o)}if((d==null?void 0:d.length)>0&&zq(d,o),(l==null?void 0:l.length)>0){Object.values(o).forEach(w=>{var b;w.bookables&&((b=Object.values(w.bookables))==null||b.forEach(x=>{x.forEach(S=>{var C;Fq(S.product_uuid,l),(C=S.products)==null||C.forEach(T=>{Fq(T.uuid,l)})})}))});const g=await i({params:{prdRefs:l}}),v=Object.entries(o).filter(([,w])=>{var x,S;if(((S=(x=w.resource)==null?void 0:x.supportedProducts)==null?void 0:S.length)===0)return!1;const b=g.data.filter(C=>{var k;const T=(k=w.resource)==null?void 0:k.supportedProducts;return T&&T.some(R=>R===C.uuid)});return console.log(b),b.length===0?!1:(w.products=b,!0)});console.log(v),o=Object.fromEntries(v),console.log(o)}if(t(rne(o)),Object.values(o).length>1)if(e.cancelableAppointment){let g=!1;for(const v of Object.values(o))((m=v==null?void 0:v.resource)==null?void 0:m.uuid)===((p=e.cancelableAppointment)==null?void 0:p.resId)&&(t(yh(v)),g=!0);g||t(yh(Object.values(o)[0]))}else t(yh(Object.values(o)[0]));else Object.values(o).length===1?t(yh(Object.values(o)[0])):console.warn("Given reference(s) seems to be invalid.")}function Uq(e){var w,b,x;const t={...e},n=window.location.search,r=new URLSearchParams(t.queryString||n),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,s=oze("PLAY_SESSION"),a=r.get("channelKey")??r.get("channelkey"),l=r.get("X-SIGNED-APP-CUSTOMER"),u=r.get("resId"),d=r.getAll("ref"),f=r.getAll("tslRefs"),m=r.getAll("prdRefs"),p=r.get("culture"),g=t.queryHash||window.location.hash,[,,v]=(g==null?void 0:g.split("/"))??[];if((i||o)&&(t.pData=i??o),a&&(t.channelKey=a),d&&d.length>0&&(t.ref=d),f&&f.length>0&&(t.tslRefs=f),m&&m.length>0&&(t.prdRefs=m),p&&(t.culture=p),on.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],on.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],on.isArray(t.prdRefs)?t.prdRefs=[...t.prdRefs]:t.prdRefs?t.prdRefs=[t.prdRefs]:t.prdRefs=[],(!t.ref||t.ref.length===0)&&(!t.tslRefs||t.tslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let S=0;S<((w=t==null?void 0:t.ref)==null?void 0:w.length);S++)t.ref[S]=b6(t.ref[S],t.platform,t.prvUuid);for(let S=0;S<((b=t==null?void 0:t.tslRefs)==null?void 0:b.length);S++)t.tslRefs[S]=b6(t.tslRefs[S],t.platform,t.prvUuid);for(let S=0;S<((x=t==null?void 0:t.prdRefs)==null?void 0:x.length);S++)t.prdRefs[S]=b6(t.prdRefs[S],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:v,customerUuid:o.id,resourceUuid:u}),t.host&&jee(t.host),t}const Hq=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=on.merge({},pc.appConfig,e),d=on.merge({},pc.muiTheme,t),f=on.merge({},pc.fcConfig,n);u.fields=ize(e.fields,u.fields),u.fields=Lq(u.fields),l&&!o&&(u.localization=pc.appConfig.localization,console.warn("timum detected you configured custom localization/wording.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),l&&!i&&(u.fields=pc.appConfig.fields,console.warn("timum detected you configured custom fields.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),l&&!r&&(u.hideTimumFooter=pc.appConfig.hideTimumFooter,console.warn(`timum detected you want to suppress the "powered by timum" footerSince the Account the referenced resource belongs to isn't in an appropriate plan, this feature is disabled.`)),a&&!r&&(d=pc.muiTheme,console.warn("timum detected you configured custom theming.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),s(tne(f)),s(ene(u)),s(nne(d))};Nq.displayName="ConfigHandler";const sze=Ote({reducer:{[Z1.reducerPath]:Z1.reducer,appState:dne},middleware:e=>e().concat(Z1.middleware),devTools:{trace:!0}});var Vq=[],aze=Vq.forEach,lze=Vq.slice;function uze(e){return aze.call(lze.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var Wq=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,cze=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(!Wq.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!Wq.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},qq={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=cze(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)}},dze={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=qq.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&qq.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},fze={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}},fm=null,Gq=function(){if(fm!==null)return fm;try{fm=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{fm=!1}return fm},pze={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&Gq()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&Gq()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},pm=null,Yq=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},hze={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Yq()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Yq()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},mze={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}},gze={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}},vze={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}},yze={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 bze(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var Kq=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};No(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Lo(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=uze(r,this.options||{},bze()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(dze),this.addDetector(fze),this.addDetector(pze),this.addDetector(hze),this.addDetector(mze),this.addDetector(gze),this.addDetector(vze),this.addDetector(yze)}},{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}();Kq.type="languageDetector";var x6=["​","‌"],w6=RegExp("([".concat(x6.join(""),"]{9})+"),"gu"),xze=9,wze="subliminal:start",Sze=function(t){return Array.from(new TextEncoder().encode(t))},Cze=function(t){return new TextDecoder().decode(new Uint8Array(t))},$ze=function(t){var n=8-t.length;return"0".repeat(n)+t},Zq=function(t){var n=Sze(t).map(Number),r=n.map(function(o){return $ze(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return x6[Number(o)]}).join("");return i},Qq=Zq(wze),Xq=function(t){var n=Array.from(t).map(function(o){return x6.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 Cze(i)},Tze=function(t){var n,r=(n=t.match(w6))===null||n===void 0?void 0:n.filter(function(i){return i.length>xze-1});if(!(!r||r.length===0))return Xq(r[r.length-1])},kze=function(t){return t.replace(w6,"")},Eze=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)},Aze=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 Jq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Eze(t),r=Zq(n);return typeof e=="string"&&e?Qq+e+r:e}function Ob(e){var t=Tze(e),n=Aze(t),r=kze(e);return{text:r,invisibleMeta:n}}function S6(e){if(!e||e.length<27||!w6.test(e))return!1;var t=e.substring(e.length-9),n=Xq(t);return n==="}"}function Rze(e){return e.startsWith(Qq)}function eG(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 Pb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eG(Object(n),!0).forEach(function(r){nn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tG="subliminal",_ze={name:tG,type:"postProcessor",options:{},setOptions:function(t){this.options=Pb(Pb({},t),this.options)},process:function(t,n,r,i){var o=this.options=Pb(Pb({},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 d,f,m,p,g,v,w=(d=(f=o.keySeparator)!==null&&f!==void 0?f:i==null||(m=i.options)===null||m===void 0?void 0:m.keySeparator)!==null&&d!==void 0?d:".",b=i.extractFromKey(n.join(w),r),x=b.key,S=b.namespaces;s=x,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 Jq(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:tG,postProcessPassResolved:!0}}},nG=["placeholder","title","alt"],jo={highlight:"#26a69a",warning:"#e67a00"},rG=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"},pa=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function iG(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 Oze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iG(Object(n),!0).forEach(function(r){nn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oG={committed:"commitKeys"};function Pze(e){return oG[e]?oG[e]:e}var C6=[];function Cr(e,t){if(!Oe.source){var n;Oe.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(Oe.origin||(Oe.origin=rG()),!Oe.source||!Oe.source.postMessage){C6.push({action:e,payload:t});return}Oe.legacy?Oe.source.postMessage(Oze({message:e},t),Oe.origin):Oe.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},Oe.origin);var r=C6;C6=[],r.forEach(function(i){var o=i.action,s=i.payload;Cr(o,s)})}var hc={},$6=5,Oe={init:function(t,n){Oe.i18n=t,Oe.clickHandler=n},requestInitialize:function(t){Cr("requestInitialize",t),!Oe.initInterval&&(Oe.initInterval=setInterval(function(){$6=$6-1,Oe.requestInitialize(t),$6<0&&Oe.initInterval&&(clearInterval(Oe.initInterval),delete Oe.initInterval)},1e3))},selectKey:function(t){Cr("selectKey",t)},confirmResourceBundle:function(t){Cr("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Cr("sendCurrentParsedContent",{content:Object.values(ms.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Cr("sendCurrentTargetLanguage",{targetLng:t||Oe.i18n.getLng()})},addHandler:function(t,n){hc[t]||(hc[t]=[]),hc[t].push(n)},sendLocizeIsEnabled:function(){Cr("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(Oe.scriptTurnedOff)return Cr("forcedOff");Oe.clickInterceptionEnabled||window.document.body.addEventListener("click",Oe.clickHandler,!0),Oe.clickInterceptionEnabled=!0,Cr("turnedOn")},turnOff:function(){if(Oe.scriptTurnedOff)return Cr("forcedOff");Oe.clickInterceptionEnabled&&window.document.body.removeEventListener("click",Oe.clickHandler,!0),Oe.clickInterceptionEnabled=!1,Cr("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Cr("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=Pze(i);hc[s]&&hc[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&hc[r]&&hc[r].forEach(function(a){a(o)})});function Db(e,t){var n=ms.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=Jq(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 d=[];u.childNodes.forEach(function(f){d.push(f)}),d.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 Dze(e){var t=e.meta,n=e.value;t&&n!==void 0&&Db(t,n)}Oe.addHandler("editKey",Dze);function Mze(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){Db(t,n);var i=r||Oe.i18n.getLng();Oe.i18n.setResource(i,t.ns,t.key,n),Oe.i18n.triggerRerender()}}Oe.addHandler("commitKey",Mze);function Ize(e){if(Array.isArray(e))return p6(e)}function Nze(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1291
1291
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lze(e){return Ize(e)||dq(e)||fq(e)||Nze()}function Fze(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&&Db(l,s.value),a&&Object.values(a).forEach(function(u){Db(u,s.value)}),Oe.i18n.setResource(r,i,o,s.value)}),Object.values(ms.data).forEach(function(n){if(n.originalChildNodes){var r;(r=n.node).replaceChildren.apply(r,Lze(n.originalChildNodes))}}),Oe.i18n.triggerRerender(),Oe.locizeSavedHandler&&Oe.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)}Oe.addHandler("commitKeys",Fze);function jze(e){Oe.initialized=!0,clearInterval(Oe.initInterval),delete Oe.initInterval,Oe.sendCurrentParsedContent(),Oe.sendCurrentTargetLanguage()}Oe.addHandler("confirmInitialized",jze);function sG(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 aG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sG(Object(n),!0).forEach(function(r){nn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Fl={};function zze(){Object.values(Fl).forEach(function(e){document.body.contains(e.node)||(mm(e.id,e.node),delete Fl[e.id])})}function Bze(e,t,n){!e||!t||!n||(Fl[e]||(Fl[e]={id:e,node:n}),Fl[e].keys=aG(aG({},Fl[e].keys),{},nn({},"".concat(t),"uninstrumented")))}function Uze(e){return Fl[e]}var T6={save:Bze,clean:zze,get:Uze,data:Fl};function lG(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 k6(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,d=u+n.offsetWidth,f=Math.max(r,u),m=Math.min(r,d),p=Math.max(i,a),g=Math.min(i,l),v=m>=f,w=g>=p,b={x:v?r:d<r?d:u,y:w?i:l<i?l:a},x=b.x-o.x,S=b.y-o.y,C=Math.pow(Math.pow(x,2)+Math.pow(S,2),1/2);return Math.floor(C)}function uG(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 Hze(e){return e!=null&&e===e.window}function Vze(e){return Hze(e)?e:e.nodeType===9&&e.defaultView}function cG(e){var t={top:0,left:0,right:0,bottom:0},n=e&&e.ownerDocument,r=n&&n.documentElement;if(!r)return t;ji(e.getBoundingClientRect)!=="undefined"&&(t=e.getBoundingClientRect());var i=Vze(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 Wze(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=cG(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 d=o;d<s;d++){var f=n.childNodes[d],m=cG(f);if(m.left>r)break;f&&f.nodeType!==8&&(t=f)}}return t}function qze(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if(typeof t=="string")return t.replace(/\n +/g,"").trim()}function ha(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function dG(e){var t=ha(e,"data-i18n");if(t)return t;if(e.nodeType===window.Node.TEXT_NODE&&e.parentElement)return dG(e.parentElement)}function Gze(e){var t,n=function r(i){var o=ha(i,"i18next-options");if(o||(o=ha(i,"data-i18next-options")),o||(o=ha(i,"i18n-options")),o||(o=ha(i,"data-i18n-options")),o){var s={};try{s=JSON.parse(o)}catch{}s.ns&&(t=s.ns)}t||(t=ha(i,"i18next-ns")),t||(t=ha(i,"data-i18next-ns")),t||(t=ha(i,"i18n-ns")),t||(t=ha(i,"data-i18n-ns")),!t&&i.parentElement&&r(i.parentElement)};return n(e),t}function Yze(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 Kze=uG(function(e,t){Object.values(ms.data).forEach(function(n){if(lG(n.node)){var r=k6(e,n.node);if(r<5)xBe(n,n.node,n.keys);else if(r>5){var i=n.ribbonBox?k6(e,n.ribbonBox):1e3;i>10&&mm(n,n.node,n.keys)}}}),Object.values(T6.data).forEach(function(n){if(lG(n.node)){var r=k6(e,n.node);r<10?wBe(n,n.node,n.keys):r>10&&mm(n,n.node,n.keys)}})},50),E6;function Mb(e){E6=function(n){Kze(n,e)},document.addEventListener("mousemove",E6)}function A6(){document.removeEventListener("mousemove",E6)}var Zze='<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>',Qze=`
1292
1292
  <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">
1293
1293
  <g stroke="none" class="B">
@@ -1478,7 +1478,7 @@ https://docs.locize.com/guides-tips-and-tricks/going-production`)):n.logger.warn
1478
1478
  init(context.appConfig, context.muiTheme, context.fcConfig, window.document);
1479
1479
  <\/script>
1480
1480
  </div>
1481
- `}function sUe({appConfig:e,muiTheme:t,fcConfig:n}){var i,o;const r=e.cdnUrl??"https://cdn.timum.de/bookingjs/1/booking.js";if(e.queryString=window.location.search,e.queryHash=window.location.hash,!on.isEqual(document.appConfig,e)||!on.isEqual(document.muiTheme,t)||!on.isEqual(document.fcConfig,n)){const s=(o=(i=window==null?void 0:window.parent)==null?void 0:i.document)==null?void 0:o.rerenderTimumBooking;s&&s({...e},{...t},{...n})}return document.appConfig=e,document.muiTheme=t,document.fcConfig=n,$.jsx("iframe",{frameBorder:0,height:e.height??"100%",width:"100%",srcDoc:`
1481
+ `}function sUe({appConfig:e,muiTheme:t,fcConfig:n}){var i,o;const r=e.cdnUrl??"https://cdn.timum.de/bookingjs/1/booking.js";if(e.queryString=window.location.search,e.queryHash=window.location.hash,e.isComponent=!0,!on.isEqual(document.appConfig,e)||!on.isEqual(document.muiTheme,t)||!on.isEqual(document.fcConfig,n)){const s=(o=(i=window==null?void 0:window.parent)==null?void 0:i.document)==null?void 0:o.rerenderTimumBooking;s&&s({...e},{...t},{...n})}return document.appConfig=e,document.muiTheme=t,document.fcConfig=n,$.jsx("iframe",{frameBorder:0,height:e.height??"100%",width:"100%",srcDoc:`
1482
1482
  <div id='${(e==null?void 0:e.rootElId)??"bookingjs"}' style='margin: 0px 16px 0px 8px'>
1483
1483
  <script type='module'>
1484
1484
  import { init } from '${r}';
@@ -61014,8 +61014,8 @@ const $s = 14, zs = '"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',
61014
61014
  );
61015
61015
  if (re.useEffect(() => {
61016
61016
  var x;
61017
- (x = window == null ? void 0 : window.parent) != null && x.document && (window.parent.document.rerenderTimumBooking = b);
61018
- }, [b]), re.useEffect(() => {
61017
+ n != null && n.isComponent && ((x = window == null ? void 0 : window.parent) != null && x.document) && (window.parent.document.rerenderTimumBooking = b);
61018
+ }, [b, n]), re.useEffect(() => {
61019
61019
  const x = LA(n);
61020
61020
  x && (FA(
61021
61021
  x,
@@ -64013,7 +64013,7 @@ function Zje(e, t, n) {
64013
64013
  function Kje({ appConfig: e, muiTheme: t, fcConfig: n }) {
64014
64014
  var i, o;
64015
64015
  const r = e.cdnUrl ?? "https://cdn.timum.de/bookingjs/1/booking.js";
64016
- if (e.queryString = window.location.search, e.queryHash = window.location.hash, !tn.isEqual(document.appConfig, e) || !tn.isEqual(document.muiTheme, t) || !tn.isEqual(document.fcConfig, n)) {
64016
+ if (e.queryString = window.location.search, e.queryHash = window.location.hash, e.isComponent = !0, !tn.isEqual(document.appConfig, e) || !tn.isEqual(document.muiTheme, t) || !tn.isEqual(document.fcConfig, n)) {
64017
64017
  const a = (o = (i = window == null ? void 0 : window.parent) == null ? void 0 : i.document) == null ? void 0 : o.rerenderTimumBooking;
64018
64018
  a && a({ ...e }, { ...t }, { ...n });
64019
64019
  }
@@ -1256,7 +1256,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1256
1256
  .fc .fc-v-event .fc-event-title {
1257
1257
  display: none !important;
1258
1258
  }
1259
- `;function Cke(){const e=we(t=>FU(t,"useCustomTimumCss"));return T.jsxs(T.Fragment,{children:[e&&T.jsx(_y,{styles:Ske}),T.jsx(_y,{styles:wke})]})}function Tke(e){const t=we(Ca),n=we(NU),r=we(s=>He(s,"calendarFrontend")),i=we(s=>He(s,"calendarFrontendOptions"));let o=Xy(n??{});if(o=DY(o,{factor:2.5}),t)return T.jsxs(IY,{theme:o,children:[T.jsx(Ate,{}),T.jsx(Cke,{}),r==="fullCalendar"&&T.jsx(tm,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(cke,{})}),r==="detailsListView"&&T.jsx(tm,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(I8e,{})}),r==="pureListView"&&T.jsx(tm,{...e,...i.pureListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(bg,{})}),r==="minimalView"&&T.jsx(tm,{...e,...i.minimalView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(xke,{})}),r!=="fullCalendar"&&r!=="minimalView"&&r!=="detailsListView"&&r!=="pureListView"&&T.jsxs(T.Fragment,{children:["You must set calendarFrontend either to ",T.jsx("code",{children:"fullCalendar"}),",",T.jsx("code",{children:"detailsListView"})," or ",T.jsx("code",{children:"pureListView"})," in your config."]})]})}function fc(e){const t=parseFloat(getComputedStyle(document.documentElement).fontSize);return e/t}var _4={},$ke=dn;Object.defineProperty(_4,"__esModule",{value:!0});var ON=_4.default=void 0,Eke=$ke(Tn()),kke=T;ON=_4.default=(0,Eke.default)((0,kke.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 Kf(e){const{children:t,onClose:n,...r}=e;return T.jsxs(r$,{sx:{m:0,p:2},...r,children:[t,n?T.jsx(Gd,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:T.jsx(ON,{})}):null]})}Kf.propTypes={children:nt.node,onClose:nt.func.isRequired};const ra=14,vl='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',hc=Math.floor(ra*1.428571429),Ake=fc(Math.floor(ra*2.6)),Oke=fc(Math.floor(ra*2.3)),_ke=fc(Math.floor(ra*1.9)),Rke=fc(Math.floor(ra*1.5)),Pke=fc(Math.floor(ra*1.15)),Dke=fc(Math.floor(ra)),yl={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{minimalView:{forceResourceSelectorDialog:!0}},allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:Fs().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:Fs().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:Fs().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:Fs().max(1024),limit:1024},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:Om().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=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsxs(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[T.jsx(Kf,{onClose:t}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsxs(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[T.jsx(Kf,{onClose:t}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=Ki(),s=wi(o.breakpoints.down("sm"));return T.jsxs(Rs,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&T.jsx(Kf,{onClose:n}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>T.jsx(Rs,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:T.jsx(Ps,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsxs(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[T.jsx(Kf,{onClose:t}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=Ki(),s=wi(o.breakpoints.down("sm"));return T.jsxs(T.Fragment,{children:[T.jsx(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&T.jsxs(he,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[T.jsx(he,{item:!0,xs:"auto",children:i}),T.jsx(he,{item:!0,xs:"1",children:T.jsx(s$,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsx(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=pn();return T.jsxs(Rs,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[T.jsx(r$,{id:"alert-dialog-title",children:n("reservation_failed.title")}),T.jsx(Ps,{children:T.jsx(nne,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),T.jsx(Wte,{children:T.jsx(Nr,{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:2},typography:{fontFamily:vl,fontSize:ra,h1:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Ake}rem`},h2:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Oke}rem`},h3:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${_ke}rem`},h4:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Rke}rem`},h5:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Pke}rem`},h6:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Dke}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:hc/2},h2:{marginBottom:hc/2},h3:{marginBottom:hc/2},h4:{marginBottom:hc/2},h5:{marginBottom:hc/2},h6:{marginBottom:hc/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}},Mke=(e,t,n="debug")=>{const r=R.useRef(t);R.useEffect(()=>{const i=Object.entries(t).reduce((o,[s,a])=>(r.current[s]!==a&&(o[s]={old:r.current[s],new:a}),o),{});Object.keys(i).length>0&&console[n](`[${e}] Changed props:`,i),r.current=t})},Ike=({wait:e,children:t})=>{const n=we(xy),r=we(Ca);if(!e&&n&&r)return t},_N=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const i=Pp(),o=we(BU),s=we(zU),a=we(HU),l=R.useMemo(()=>{var x;return(x=n==null?void 0:n.callbacks)==null?void 0:x.fetchingPublicDataFailed},[n]),[u,{isFetching:d,error:f}]=TH(),[m,{isFetching:p}]=xH(),[g,{isFetching:v}]=SH();Mke("ConfigHandler",{appConfig:n,muiTheme:e,fcConfig:t,dispatch:i,isThemingAllowed:o,areCustomFieldsAllowed:s,isLocalisationAllowed:a,fetchPublicData:u,fetchSpecificBookables:m,fetchSpecificProducts:g});const b=R.useCallback((x=n,w=e,S=t)=>{const C=NN(x);C&&(LN(C,w,S,o,s,a,i),IN(C,i,u,m,g))},[n,e,t,o,s,a,i,u,m,g]);if(R.useEffect(()=>{var x;(x=window==null?void 0:window.parent)!=null&&x.document&&(window.parent.document.rerenderTimumBooking=b)},[b]),R.useEffect(()=>{const x=NN(n);x&&(LN(x,e,t,o,s,a,i),IN(x,i,u,m,g))},[n,e,t,i,o,s,a,u,m,g]),f)l&&l(f);else return T.jsx(Ike,{wait:p||d||v,children:r})};function Nke(e,t){return 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,t}function RN(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.index===t&&(n[r]=i);return t++,RN(e,t,n)}function Lke(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function R4(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}const PN=(e,t)=>{e&&!t.includes(e)&&t.push(e)},DN=(e,t)=>{e&&e.forEach(n=>{t[n.resource.uuid]={...n}})},MN=(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 IN(e,t,n,r,i){var m,p;let o={};const s=e==null?void 0:e.ref,a=e==null?void 0:e.tslRefs,l=e==null?void 0:e.prdRefs,u=e==null?void 0:e.publicData,d=e==null?void 0:e.tsls,f=e==null?void 0:e.channelKey;if((s==null?void 0:s.length)>0&&!(u!=null&&u.length)>0){const g=await n({channelOrResourceId:s[0],params:{channelKey:f,ref:s}});DN(g==null?void 0:g.data,o)}if((u==null?void 0:u.length)>0&&DN(u,o),(a==null?void 0:a.length)>0&&!(d!=null&&d.length)>0){const g=await r({params:{channelKey:f,tlsIds:a}});MN(g==null?void 0:g.data,o)}if((d==null?void 0:d.length)>0&&MN(d,o),(l==null?void 0:l.length)>0){Object.values(o).forEach(b=>{var x;b.bookables&&((x=Object.values(b.bookables))==null||x.forEach(w=>{w.forEach(S=>{var C;PN(S.product_uuid,l),(C=S.products)==null||C.forEach(E=>{PN(E.uuid,l)})})}))});const g=await i({params:{prdRefs:l}}),v=Object.entries(o).filter(([,b])=>{var w,S;if(((S=(w=b.resource)==null?void 0:w.supportedProducts)==null?void 0:S.length)===0)return!1;const x=g.data.filter(C=>{var k;const E=(k=b.resource)==null?void 0:k.supportedProducts;return E&&E.some(O=>O===C.uuid)});return console.log(x),x.length===0?!1:(b.products=x,!0)});console.log(v),o=Object.fromEntries(v),console.log(o)}if(t(IU(o)),Object.values(o).length>1)if(e.cancelableAppointment){let g=!1;for(const v of Object.values(o))((m=v==null?void 0:v.resource)==null?void 0:m.uuid)===((p=e.cancelableAppointment)==null?void 0:p.resId)&&(t(nd(v)),g=!0);g||t(nd(Object.values(o)[0]))}else t(nd(Object.values(o)[0]));else Object.values(o).length===1?t(nd(Object.values(o)[0])):console.warn("Given reference(s) seems to be invalid.")}function NN(e){var b,x,w;const t={...e},n=window.location.search,r=new URLSearchParams(t.queryString||n),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,s=Lke("PLAY_SESSION"),a=r.get("channelKey")??r.get("channelkey"),l=r.get("X-SIGNED-APP-CUSTOMER"),u=r.get("resId"),d=r.getAll("ref"),f=r.getAll("tslRefs"),m=r.getAll("prdRefs"),p=r.get("culture"),g=t.queryHash||window.location.hash,[,,v]=(g==null?void 0:g.split("/"))??[];if((i||o)&&(t.pData=i??o),a&&(t.channelKey=a),d&&d.length>0&&(t.ref=d),f&&f.length>0&&(t.tslRefs=f),m&&m.length>0&&(t.prdRefs=m),p&&(t.culture=p),Zt.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],Zt.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],Zt.isArray(t.prdRefs)?t.prdRefs=[...t.prdRefs]:t.prdRefs?t.prdRefs=[t.prdRefs]:t.prdRefs=[],(!t.ref||t.ref.length===0)&&(!t.tslRefs||t.tslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let S=0;S<((b=t==null?void 0:t.ref)==null?void 0:b.length);S++)t.ref[S]=R4(t.ref[S],t.platform,t.prvUuid);for(let S=0;S<((x=t==null?void 0:t.tslRefs)==null?void 0:x.length);S++)t.tslRefs[S]=R4(t.tslRefs[S],t.platform,t.prvUuid);for(let S=0;S<((w=t==null?void 0:t.prdRefs)==null?void 0:w.length);S++)t.prdRefs[S]=R4(t.prdRefs[S],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:v,customerUuid:o.id,resourceUuid:u}),t.host&&vH(t.host),t}const LN=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=Zt.merge({},yl.appConfig,e),d=Zt.merge({},yl.muiTheme,t),f=Zt.merge({},yl.fcConfig,n);u.fields=Nke(e.fields,u.fields),u.fields=RN(u.fields),l&&!o&&(u.localization=yl.appConfig.localization,console.warn("timum detected you configured custom localization/wording.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),l&&!i&&(u.fields=yl.appConfig.fields,console.warn("timum detected you configured custom fields.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),l&&!r&&(u.hideTimumFooter=yl.appConfig.hideTimumFooter,console.warn(`timum detected you want to suppress the "powered by timum" footerSince the Account the referenced resource belongs to isn't in an appropriate plan, this feature is disabled.`)),a&&!r&&(d=yl.muiTheme,console.warn("timum detected you configured custom theming.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),s(DU(f)),s(PU(u)),s(MU(d))};_N.displayName="ConfigHandler";const Fke=uU({reducer:{[xp.reducerPath]:xp.reducer,appState:UU},middleware:e=>e().concat(xp.middleware),devTools:{trace:!0}});var FN=[],jke=FN.forEach,Bke=FN.slice;function zke(e){return jke.call(Bke.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var jN=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Hke=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(!jN.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!jN.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},BN={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=Hke(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)}},Uke={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=BN.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&BN.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Vke={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}},Qf=null,zN=function(){if(Qf!==null)return Qf;try{Qf=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Qf=!1}return Qf},Wke={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&zN()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&zN()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Jf=null,HN=function(){if(Jf!==null)return Jf;try{Jf=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Jf=!1}return Jf},qke={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&HN()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&HN()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Gke={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}},Yke={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}},Zke={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}},Kke={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 Qke(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var UN=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Mi(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Ii(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=zke(r,this.options||{},Qke()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Uke),this.addDetector(Vke),this.addDetector(Wke),this.addDetector(qke),this.addDetector(Gke),this.addDetector(Yke),this.addDetector(Zke),this.addDetector(Kke)}},{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}();UN.type="languageDetector";var P4=["​","‌"],D4=RegExp("([".concat(P4.join(""),"]{9})+"),"gu"),Jke=9,Xke="subliminal:start",eAe=function(t){return Array.from(new TextEncoder().encode(t))},tAe=function(t){return new TextDecoder().decode(new Uint8Array(t))},nAe=function(t){var n=8-t.length;return"0".repeat(n)+t},VN=function(t){var n=eAe(t).map(Number),r=n.map(function(o){return nAe(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return P4[Number(o)]}).join("");return i},WN=VN(Xke),qN=function(t){var n=Array.from(t).map(function(o){return P4.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 tAe(i)},rAe=function(t){var n,r=(n=t.match(D4))===null||n===void 0?void 0:n.filter(function(i){return i.length>Jke-1});if(!(!r||r.length===0))return qN(r[r.length-1])},iAe=function(t){return t.replace(D4,"")},oAe=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)},sAe=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 GN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=oAe(t),r=VN(n);return typeof e=="string"&&e?WN+e+r:e}function t1(e){var t=rAe(e),n=sAe(t),r=iAe(e);return{text:r,invisibleMeta:n}}function M4(e){if(!e||e.length<27||!D4.test(e))return!1;var t=e.substring(e.length-9),n=qN(t);return n==="}"}function aAe(e){return e.startsWith(WN)}function YN(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 n1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YN(Object(n),!0).forEach(function(r){Gt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ZN="subliminal",lAe={name:ZN,type:"postProcessor",options:{},setOptions:function(t){this.options=n1(n1({},t),this.options)},process:function(t,n,r,i){var o=this.options=n1(n1({},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 d,f,m,p,g,v,b=(d=(f=o.keySeparator)!==null&&f!==void 0?f:i==null||(m=i.options)===null||m===void 0?void 0:m.keySeparator)!==null&&d!==void 0?d:".",x=i.extractFromKey(n.join(b),r),w=x.key,S=x.namespaces;s=w,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 GN(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:ZN,postProcessPassResolved:!0}}},KN=["placeholder","title","alt"],Li={highlight:"#26a69a",warning:"#e67a00"},QN=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"},Xo=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function JN(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 uAe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JN(Object(n),!0).forEach(function(r){Gt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XN={committed:"commitKeys"};function cAe(e){return XN[e]?XN[e]:e}var I4=[];function Qn(e,t){if(!_e.source){var n;_e.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(_e.origin||(_e.origin=QN()),!_e.source||!_e.source.postMessage){I4.push({action:e,payload:t});return}_e.legacy?_e.source.postMessage(uAe({message:e},t),_e.origin):_e.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},_e.origin);var r=I4;I4=[],r.forEach(function(i){var o=i.action,s=i.payload;Qn(o,s)})}var bl={},N4=5,_e={init:function(t,n){_e.i18n=t,_e.clickHandler=n},requestInitialize:function(t){Qn("requestInitialize",t),!_e.initInterval&&(_e.initInterval=setInterval(function(){N4=N4-1,_e.requestInitialize(t),N4<0&&_e.initInterval&&(clearInterval(_e.initInterval),delete _e.initInterval)},1e3))},selectKey:function(t){Qn("selectKey",t)},confirmResourceBundle:function(t){Qn("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Qn("sendCurrentParsedContent",{content:Object.values(uo.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Qn("sendCurrentTargetLanguage",{targetLng:t||_e.i18n.getLng()})},addHandler:function(t,n){bl[t]||(bl[t]=[]),bl[t].push(n)},sendLocizeIsEnabled:function(){Qn("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(_e.scriptTurnedOff)return Qn("forcedOff");_e.clickInterceptionEnabled||window.document.body.addEventListener("click",_e.clickHandler,!0),_e.clickInterceptionEnabled=!0,Qn("turnedOn")},turnOff:function(){if(_e.scriptTurnedOff)return Qn("forcedOff");_e.clickInterceptionEnabled&&window.document.body.removeEventListener("click",_e.clickHandler,!0),_e.clickInterceptionEnabled=!1,Qn("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Qn("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=cAe(i);bl[s]&&bl[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&bl[r]&&bl[r].forEach(function(a){a(o)})});function r1(e,t){var n=uo.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=GN(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 d=[];u.childNodes.forEach(function(f){d.push(f)}),d.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 dAe(e){var t=e.meta,n=e.value;t&&n!==void 0&&r1(t,n)}_e.addHandler("editKey",dAe);function fAe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){r1(t,n);var i=r||_e.i18n.getLng();_e.i18n.setResource(i,t.ns,t.key,n),_e.i18n.triggerRerender()}}_e.addHandler("commitKey",fAe);function hAe(e){if(Array.isArray(e))return $4(e)}function pAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1259
+ `;function Cke(){const e=we(t=>FU(t,"useCustomTimumCss"));return T.jsxs(T.Fragment,{children:[e&&T.jsx(_y,{styles:Ske}),T.jsx(_y,{styles:wke})]})}function Tke(e){const t=we(Ca),n=we(NU),r=we(s=>He(s,"calendarFrontend")),i=we(s=>He(s,"calendarFrontendOptions"));let o=Xy(n??{});if(o=DY(o,{factor:2.5}),t)return T.jsxs(IY,{theme:o,children:[T.jsx(Ate,{}),T.jsx(Cke,{}),r==="fullCalendar"&&T.jsx(tm,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(cke,{})}),r==="detailsListView"&&T.jsx(tm,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(I8e,{})}),r==="pureListView"&&T.jsx(tm,{...e,...i.pureListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(bg,{})}),r==="minimalView"&&T.jsx(tm,{...e,...i.minimalView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:T.jsx(xke,{})}),r!=="fullCalendar"&&r!=="minimalView"&&r!=="detailsListView"&&r!=="pureListView"&&T.jsxs(T.Fragment,{children:["You must set calendarFrontend either to ",T.jsx("code",{children:"fullCalendar"}),",",T.jsx("code",{children:"detailsListView"})," or ",T.jsx("code",{children:"pureListView"})," in your config."]})]})}function fc(e){const t=parseFloat(getComputedStyle(document.documentElement).fontSize);return e/t}var _4={},$ke=dn;Object.defineProperty(_4,"__esModule",{value:!0});var ON=_4.default=void 0,Eke=$ke(Tn()),kke=T;ON=_4.default=(0,Eke.default)((0,kke.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 Kf(e){const{children:t,onClose:n,...r}=e;return T.jsxs(r$,{sx:{m:0,p:2},...r,children:[t,n?T.jsx(Gd,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:T.jsx(ON,{})}):null]})}Kf.propTypes={children:nt.node,onClose:nt.func.isRequired};const ra=14,vl='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',hc=Math.floor(ra*1.428571429),Ake=fc(Math.floor(ra*2.6)),Oke=fc(Math.floor(ra*2.3)),_ke=fc(Math.floor(ra*1.9)),Rke=fc(Math.floor(ra*1.5)),Pke=fc(Math.floor(ra*1.15)),Dke=fc(Math.floor(ra)),yl={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{minimalView:{forceResourceSelectorDialog:!0}},allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:Fs().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:Fs().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:Fs().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:Fs().max(1024),limit:1024},agbs:{index:5,title:"fields.accept_timum_privacy",type:"checkbox",validation:Om().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=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsxs(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[T.jsx(Kf,{onClose:t}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsxs(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[T.jsx(Kf,{onClose:t}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=Ki(),s=wi(o.breakpoints.down("sm"));return T.jsxs(Rs,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&T.jsx(Kf,{onClose:n}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>T.jsx(Rs,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:T.jsx(Ps,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsxs(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[T.jsx(Kf,{onClose:t}),T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=Ki(),s=wi(o.breakpoints.down("sm"));return T.jsxs(T.Fragment,{children:[T.jsx(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&T.jsxs(he,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[T.jsx(he,{item:!0,xs:"auto",children:i}),T.jsx(he,{item:!0,xs:"1",children:T.jsx(s$,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=wi(r.breakpoints.down("sm"));return T.jsx(Rs,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:T.jsx(Ps,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:T.jsx(Eu,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=pn();return T.jsxs(Rs,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[T.jsx(r$,{id:"alert-dialog-title",children:n("reservation_failed.title")}),T.jsx(Ps,{children:T.jsx(nne,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),T.jsx(Wte,{children:T.jsx(Nr,{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:2},typography:{fontFamily:vl,fontSize:ra,h1:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Ake}rem`},h2:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Oke}rem`},h3:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${_ke}rem`},h4:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Rke}rem`},h5:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Pke}rem`},h6:{fontFamily:vl,fontWeight:500,lineHeight:1,fontSize:`${Dke}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:hc/2},h2:{marginBottom:hc/2},h3:{marginBottom:hc/2},h4:{marginBottom:hc/2},h5:{marginBottom:hc/2},h6:{marginBottom:hc/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}},Mke=(e,t,n="debug")=>{const r=R.useRef(t);R.useEffect(()=>{const i=Object.entries(t).reduce((o,[s,a])=>(r.current[s]!==a&&(o[s]={old:r.current[s],new:a}),o),{});Object.keys(i).length>0&&console[n](`[${e}] Changed props:`,i),r.current=t})},Ike=({wait:e,children:t})=>{const n=we(xy),r=we(Ca);if(!e&&n&&r)return t},_N=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const i=Pp(),o=we(BU),s=we(zU),a=we(HU),l=R.useMemo(()=>{var x;return(x=n==null?void 0:n.callbacks)==null?void 0:x.fetchingPublicDataFailed},[n]),[u,{isFetching:d,error:f}]=TH(),[m,{isFetching:p}]=xH(),[g,{isFetching:v}]=SH();Mke("ConfigHandler",{appConfig:n,muiTheme:e,fcConfig:t,dispatch:i,isThemingAllowed:o,areCustomFieldsAllowed:s,isLocalisationAllowed:a,fetchPublicData:u,fetchSpecificBookables:m,fetchSpecificProducts:g});const b=R.useCallback((x=n,w=e,S=t)=>{const C=NN(x);C&&(LN(C,w,S,o,s,a,i),IN(C,i,u,m,g))},[n,e,t,o,s,a,i,u,m,g]);if(R.useEffect(()=>{var x;n!=null&&n.isComponent&&((x=window==null?void 0:window.parent)!=null&&x.document)&&(window.parent.document.rerenderTimumBooking=b)},[b,n]),R.useEffect(()=>{const x=NN(n);x&&(LN(x,e,t,o,s,a,i),IN(x,i,u,m,g))},[n,e,t,i,o,s,a,u,m,g]),f)l&&l(f);else return T.jsx(Ike,{wait:p||d||v,children:r})};function Nke(e,t){return 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,t}function RN(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.index===t&&(n[r]=i);return t++,RN(e,t,n)}function Lke(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function R4(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}const PN=(e,t)=>{e&&!t.includes(e)&&t.push(e)},DN=(e,t)=>{e&&e.forEach(n=>{t[n.resource.uuid]={...n}})},MN=(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 IN(e,t,n,r,i){var m,p;let o={};const s=e==null?void 0:e.ref,a=e==null?void 0:e.tslRefs,l=e==null?void 0:e.prdRefs,u=e==null?void 0:e.publicData,d=e==null?void 0:e.tsls,f=e==null?void 0:e.channelKey;if((s==null?void 0:s.length)>0&&!(u!=null&&u.length)>0){const g=await n({channelOrResourceId:s[0],params:{channelKey:f,ref:s}});DN(g==null?void 0:g.data,o)}if((u==null?void 0:u.length)>0&&DN(u,o),(a==null?void 0:a.length)>0&&!(d!=null&&d.length)>0){const g=await r({params:{channelKey:f,tlsIds:a}});MN(g==null?void 0:g.data,o)}if((d==null?void 0:d.length)>0&&MN(d,o),(l==null?void 0:l.length)>0){Object.values(o).forEach(b=>{var x;b.bookables&&((x=Object.values(b.bookables))==null||x.forEach(w=>{w.forEach(S=>{var C;PN(S.product_uuid,l),(C=S.products)==null||C.forEach(E=>{PN(E.uuid,l)})})}))});const g=await i({params:{prdRefs:l}}),v=Object.entries(o).filter(([,b])=>{var w,S;if(((S=(w=b.resource)==null?void 0:w.supportedProducts)==null?void 0:S.length)===0)return!1;const x=g.data.filter(C=>{var k;const E=(k=b.resource)==null?void 0:k.supportedProducts;return E&&E.some(O=>O===C.uuid)});return console.log(x),x.length===0?!1:(b.products=x,!0)});console.log(v),o=Object.fromEntries(v),console.log(o)}if(t(IU(o)),Object.values(o).length>1)if(e.cancelableAppointment){let g=!1;for(const v of Object.values(o))((m=v==null?void 0:v.resource)==null?void 0:m.uuid)===((p=e.cancelableAppointment)==null?void 0:p.resId)&&(t(nd(v)),g=!0);g||t(nd(Object.values(o)[0]))}else t(nd(Object.values(o)[0]));else Object.values(o).length===1?t(nd(Object.values(o)[0])):console.warn("Given reference(s) seems to be invalid.")}function NN(e){var b,x,w;const t={...e},n=window.location.search,r=new URLSearchParams(t.queryString||n),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,s=Lke("PLAY_SESSION"),a=r.get("channelKey")??r.get("channelkey"),l=r.get("X-SIGNED-APP-CUSTOMER"),u=r.get("resId"),d=r.getAll("ref"),f=r.getAll("tslRefs"),m=r.getAll("prdRefs"),p=r.get("culture"),g=t.queryHash||window.location.hash,[,,v]=(g==null?void 0:g.split("/"))??[];if((i||o)&&(t.pData=i??o),a&&(t.channelKey=a),d&&d.length>0&&(t.ref=d),f&&f.length>0&&(t.tslRefs=f),m&&m.length>0&&(t.prdRefs=m),p&&(t.culture=p),Zt.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],Zt.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],Zt.isArray(t.prdRefs)?t.prdRefs=[...t.prdRefs]:t.prdRefs?t.prdRefs=[t.prdRefs]:t.prdRefs=[],(!t.ref||t.ref.length===0)&&(!t.tslRefs||t.tslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let S=0;S<((b=t==null?void 0:t.ref)==null?void 0:b.length);S++)t.ref[S]=R4(t.ref[S],t.platform,t.prvUuid);for(let S=0;S<((x=t==null?void 0:t.tslRefs)==null?void 0:x.length);S++)t.tslRefs[S]=R4(t.tslRefs[S],t.platform,t.prvUuid);for(let S=0;S<((w=t==null?void 0:t.prdRefs)==null?void 0:w.length);S++)t.prdRefs[S]=R4(t.prdRefs[S],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:v,customerUuid:o.id,resourceUuid:u}),t.host&&vH(t.host),t}const LN=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=Zt.merge({},yl.appConfig,e),d=Zt.merge({},yl.muiTheme,t),f=Zt.merge({},yl.fcConfig,n);u.fields=Nke(e.fields,u.fields),u.fields=RN(u.fields),l&&!o&&(u.localization=yl.appConfig.localization,console.warn("timum detected you configured custom localization/wording.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),l&&!i&&(u.fields=yl.appConfig.fields,console.warn("timum detected you configured custom fields.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),l&&!r&&(u.hideTimumFooter=yl.appConfig.hideTimumFooter,console.warn(`timum detected you want to suppress the "powered by timum" footerSince the Account the referenced resource belongs to isn't in an appropriate plan, this feature is disabled.`)),a&&!r&&(d=yl.muiTheme,console.warn("timum detected you configured custom theming.Since the Account the referenced resource belongs to isn't in an appropriate plan, these changes are reset to default values.")),s(DU(f)),s(PU(u)),s(MU(d))};_N.displayName="ConfigHandler";const Fke=uU({reducer:{[xp.reducerPath]:xp.reducer,appState:UU},middleware:e=>e().concat(xp.middleware),devTools:{trace:!0}});var FN=[],jke=FN.forEach,Bke=FN.slice;function zke(e){return jke.call(Bke.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var jN=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Hke=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(!jN.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!jN.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},BN={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=Hke(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)}},Uke={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=BN.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&BN.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Vke={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}},Qf=null,zN=function(){if(Qf!==null)return Qf;try{Qf=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Qf=!1}return Qf},Wke={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&zN()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&zN()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Jf=null,HN=function(){if(Jf!==null)return Jf;try{Jf=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Jf=!1}return Jf},qke={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&HN()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&HN()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Gke={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}},Yke={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}},Zke={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}},Kke={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 Qke(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var UN=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Mi(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Ii(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=zke(r,this.options||{},Qke()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Uke),this.addDetector(Vke),this.addDetector(Wke),this.addDetector(qke),this.addDetector(Gke),this.addDetector(Yke),this.addDetector(Zke),this.addDetector(Kke)}},{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}();UN.type="languageDetector";var P4=["​","‌"],D4=RegExp("([".concat(P4.join(""),"]{9})+"),"gu"),Jke=9,Xke="subliminal:start",eAe=function(t){return Array.from(new TextEncoder().encode(t))},tAe=function(t){return new TextDecoder().decode(new Uint8Array(t))},nAe=function(t){var n=8-t.length;return"0".repeat(n)+t},VN=function(t){var n=eAe(t).map(Number),r=n.map(function(o){return nAe(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return P4[Number(o)]}).join("");return i},WN=VN(Xke),qN=function(t){var n=Array.from(t).map(function(o){return P4.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 tAe(i)},rAe=function(t){var n,r=(n=t.match(D4))===null||n===void 0?void 0:n.filter(function(i){return i.length>Jke-1});if(!(!r||r.length===0))return qN(r[r.length-1])},iAe=function(t){return t.replace(D4,"")},oAe=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)},sAe=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 GN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=oAe(t),r=VN(n);return typeof e=="string"&&e?WN+e+r:e}function t1(e){var t=rAe(e),n=sAe(t),r=iAe(e);return{text:r,invisibleMeta:n}}function M4(e){if(!e||e.length<27||!D4.test(e))return!1;var t=e.substring(e.length-9),n=qN(t);return n==="}"}function aAe(e){return e.startsWith(WN)}function YN(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 n1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YN(Object(n),!0).forEach(function(r){Gt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ZN="subliminal",lAe={name:ZN,type:"postProcessor",options:{},setOptions:function(t){this.options=n1(n1({},t),this.options)},process:function(t,n,r,i){var o=this.options=n1(n1({},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 d,f,m,p,g,v,b=(d=(f=o.keySeparator)!==null&&f!==void 0?f:i==null||(m=i.options)===null||m===void 0?void 0:m.keySeparator)!==null&&d!==void 0?d:".",x=i.extractFromKey(n.join(b),r),w=x.key,S=x.namespaces;s=w,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 GN(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:ZN,postProcessPassResolved:!0}}},KN=["placeholder","title","alt"],Li={highlight:"#26a69a",warning:"#e67a00"},QN=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"},Xo=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function JN(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 uAe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JN(Object(n),!0).forEach(function(r){Gt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XN={committed:"commitKeys"};function cAe(e){return XN[e]?XN[e]:e}var I4=[];function Qn(e,t){if(!_e.source){var n;_e.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(_e.origin||(_e.origin=QN()),!_e.source||!_e.source.postMessage){I4.push({action:e,payload:t});return}_e.legacy?_e.source.postMessage(uAe({message:e},t),_e.origin):_e.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},_e.origin);var r=I4;I4=[],r.forEach(function(i){var o=i.action,s=i.payload;Qn(o,s)})}var bl={},N4=5,_e={init:function(t,n){_e.i18n=t,_e.clickHandler=n},requestInitialize:function(t){Qn("requestInitialize",t),!_e.initInterval&&(_e.initInterval=setInterval(function(){N4=N4-1,_e.requestInitialize(t),N4<0&&_e.initInterval&&(clearInterval(_e.initInterval),delete _e.initInterval)},1e3))},selectKey:function(t){Qn("selectKey",t)},confirmResourceBundle:function(t){Qn("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Qn("sendCurrentParsedContent",{content:Object.values(uo.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Qn("sendCurrentTargetLanguage",{targetLng:t||_e.i18n.getLng()})},addHandler:function(t,n){bl[t]||(bl[t]=[]),bl[t].push(n)},sendLocizeIsEnabled:function(){Qn("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(_e.scriptTurnedOff)return Qn("forcedOff");_e.clickInterceptionEnabled||window.document.body.addEventListener("click",_e.clickHandler,!0),_e.clickInterceptionEnabled=!0,Qn("turnedOn")},turnOff:function(){if(_e.scriptTurnedOff)return Qn("forcedOff");_e.clickInterceptionEnabled&&window.document.body.removeEventListener("click",_e.clickHandler,!0),_e.clickInterceptionEnabled=!1,Qn("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Qn("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=cAe(i);bl[s]&&bl[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&bl[r]&&bl[r].forEach(function(a){a(o)})});function r1(e,t){var n=uo.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=GN(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 d=[];u.childNodes.forEach(function(f){d.push(f)}),d.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 dAe(e){var t=e.meta,n=e.value;t&&n!==void 0&&r1(t,n)}_e.addHandler("editKey",dAe);function fAe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){r1(t,n);var i=r||_e.i18n.getLng();_e.i18n.setResource(i,t.ns,t.key,n),_e.i18n.triggerRerender()}}_e.addHandler("commitKey",fAe);function hAe(e){if(Array.isArray(e))return $4(e)}function pAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1260
1260
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mAe(e){return hAe(e)||oN(e)||sN(e)||pAe()}function gAe(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&&r1(l,s.value),a&&Object.values(a).forEach(function(u){r1(u,s.value)}),_e.i18n.setResource(r,i,o,s.value)}),Object.values(uo.data).forEach(function(n){if(n.originalChildNodes){var r;(r=n.node).replaceChildren.apply(r,mAe(n.originalChildNodes))}}),_e.i18n.triggerRerender(),_e.locizeSavedHandler&&_e.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)}_e.addHandler("commitKeys",gAe);function vAe(e){_e.initialized=!0,clearInterval(_e.initInterval),delete _e.initInterval,_e.sendCurrentParsedContent(),_e.sendCurrentTargetLanguage()}_e.addHandler("confirmInitialized",vAe);function eL(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 tL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(n),!0).forEach(function(r){Gt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ia={};function yAe(){Object.values(ia).forEach(function(e){document.body.contains(e.node)||(eh(e.id,e.node),delete ia[e.id])})}function bAe(e,t,n){!e||!t||!n||(ia[e]||(ia[e]={id:e,node:n}),ia[e].keys=tL(tL({},ia[e].keys),{},Gt({},"".concat(t),"uninstrumented")))}function xAe(e){return ia[e]}var L4={save:bAe,clean:yAe,get:xAe,data:ia};function nL(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 F4(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,d=u+n.offsetWidth,f=Math.max(r,u),m=Math.min(r,d),p=Math.max(i,a),g=Math.min(i,l),v=m>=f,b=g>=p,x={x:v?r:d<r?d:u,y:b?i:l<i?l:a},w=x.x-o.x,S=x.y-o.y,C=Math.pow(Math.pow(w,2)+Math.pow(S,2),1/2);return Math.floor(C)}function rL(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 wAe(e){return e!=null&&e===e.window}function SAe(e){return wAe(e)?e:e.nodeType===9&&e.defaultView}function iL(e){var t={top:0,left:0,right:0,bottom:0},n=e&&e.ownerDocument,r=n&&n.documentElement;if(!r)return t;Gr(e.getBoundingClientRect)!=="undefined"&&(t=e.getBoundingClientRect());var i=SAe(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 CAe(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=iL(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 d=o;d<s;d++){var f=n.childNodes[d],m=iL(f);if(m.left>r)break;f&&f.nodeType!==8&&(t=f)}}return t}function TAe(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if(typeof t=="string")return t.replace(/\n +/g,"").trim()}function es(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function oL(e){var t=es(e,"data-i18n");if(t)return t;if(e.nodeType===window.Node.TEXT_NODE&&e.parentElement)return oL(e.parentElement)}function $Ae(e){var t,n=function r(i){var o=es(i,"i18next-options");if(o||(o=es(i,"data-i18next-options")),o||(o=es(i,"i18n-options")),o||(o=es(i,"data-i18n-options")),o){var s={};try{s=JSON.parse(o)}catch{}s.ns&&(t=s.ns)}t||(t=es(i,"i18next-ns")),t||(t=es(i,"data-i18next-ns")),t||(t=es(i,"i18n-ns")),t||(t=es(i,"data-i18n-ns")),!t&&i.parentElement&&r(i.parentElement)};return n(e),t}function EAe(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 kAe=rL(function(e,t){Object.values(uo.data).forEach(function(n){if(nL(n.node)){var r=F4(e,n.node);if(r<5)JAe(n,n.node,n.keys);else if(r>5){var i=n.ribbonBox?F4(e,n.ribbonBox):1e3;i>10&&eh(n,n.node,n.keys)}}}),Object.values(L4.data).forEach(function(n){if(nL(n.node)){var r=F4(e,n.node);r<10?XAe(n,n.node,n.keys):r>10&&eh(n,n.node,n.keys)}})},50),j4;function i1(e){j4=function(n){kAe(n,e)},document.addEventListener("mousemove",j4)}function B4(){document.removeEventListener("mousemove",j4)}var AAe='<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>',OAe=`
1261
1261
  <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">
1262
1262
  <g stroke="none" class="B">
@@ -1447,7 +1447,7 @@ https://docs.locize.com/guides-tips-and-tricks/going-production`)):n.logger.warn
1447
1447
  init(context.appConfig, context.muiTheme, context.fcConfig, window.document);
1448
1448
  <\/script>
1449
1449
  </div>
1450
- `}function FOe({appConfig:e,muiTheme:t,fcConfig:n}){var i,o;const r=e.cdnUrl??"https://cdn.timum.de/bookingjs/1/booking.js";if(e.queryString=window.location.search,e.queryHash=window.location.hash,!Zt.isEqual(document.appConfig,e)||!Zt.isEqual(document.muiTheme,t)||!Zt.isEqual(document.fcConfig,n)){const s=(o=(i=window==null?void 0:window.parent)==null?void 0:i.document)==null?void 0:o.rerenderTimumBooking;s&&s({...e},{...t},{...n})}return document.appConfig=e,document.muiTheme=t,document.fcConfig=n,T.jsx("iframe",{frameBorder:0,height:e.height??"100%",width:"100%",srcDoc:`
1450
+ `}function FOe({appConfig:e,muiTheme:t,fcConfig:n}){var i,o;const r=e.cdnUrl??"https://cdn.timum.de/bookingjs/1/booking.js";if(e.queryString=window.location.search,e.queryHash=window.location.hash,e.isComponent=!0,!Zt.isEqual(document.appConfig,e)||!Zt.isEqual(document.muiTheme,t)||!Zt.isEqual(document.fcConfig,n)){const s=(o=(i=window==null?void 0:window.parent)==null?void 0:i.document)==null?void 0:o.rerenderTimumBooking;s&&s({...e},{...t},{...n})}return document.appConfig=e,document.muiTheme=t,document.fcConfig=n,T.jsx("iframe",{frameBorder:0,height:e.height??"100%",width:"100%",srcDoc:`
1451
1451
  <div id='${(e==null?void 0:e.rootElId)??"bookingjs"}' style='margin: 0px 16px 0px 8px'>
1452
1452
  <script type='module'>
1453
1453
  import { init } from '${r}';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timum/booking",
3
- "version": "1.6.2",
4
- "next_version": "1.6.2",
3
+ "version": "1.6.4",
4
+ "next_version": "1.6.4",
5
5
  "current_major_version": "1",
6
6
  "license": "CC-BY-ND-4.0",
7
7
  "type": "module",