@timum/booking 1.10.1 → 1.10.2

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
@@ -67690,6 +67690,8 @@ const ql = 14, cu = '"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',
67690
67690
  initialView: "timeGridWeek",
67691
67691
  useCustomTimumCss: !0,
67692
67692
  displayEventEnd: !1,
67693
+ scrollTimeReset: !1,
67694
+ scrollTime: "09:00:00",
67693
67695
  views: {
67694
67696
  timeGridWeek: {
67695
67697
  slotMinTime: "08:00:00",
@@ -1291,7 +1291,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1291
1291
  .fc .fc-v-event .fc-event-title {
1292
1292
  display: none !important;
1293
1293
  }
1294
- `;function xze(){const e=$e(t=>Pne(t,"useCustomTimumCss"));return $.jsxs($.Fragment,{children:[e&&$.jsx(w4,{styles:bze}),$.jsx(w4,{styles:yze})]})}function wze(e){const t=$e(vu),n=$e(_ne),r=$e(s=>Ve(s,"calendarFrontend")),i=$e(s=>Ve(s,"calendarFrontendOptions"));let o=V4(n??{});if(o=_ae(o,{factor:2.5}),t)return $.jsxs(Pae,{theme:o,children:[$.jsx(Ahe,{}),$.jsx(xze,{}),r==="fullCalendar"&&$.jsx(ef,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(eG,{})}),r==="detailsFullCalendar"&&$.jsx(ef,{...e,...i.detailsFullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(x$,{CalendarView:eG})}),r==="pureListView"&&$.jsx(ef,{...e,...i.pureListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx($$,{})}),r==="detailsListView"&&$.jsx(ef,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(x$,{CalendarView:$$})}),r==="condensedView"&&$.jsx(ef,{...e,...i.condensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(rG,{})}),r==="detailsCondensedView"&&$.jsx(ef,{...e,...i.detailsCondensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(x$,{CalendarView:rG})}),r!=="fullCalendar"&&r!=="detailsFullCalendar"&&r!=="condensedView"&&r!=="detailsCondensedView"&&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."]})]})}var D6={},Sze=Tn;Object.defineProperty(D6,"__esModule",{value:!0});var iG=D6.default=void 0,Cze=Sze(jn()),$ze=$;iG=D6.default=(0,Cze.default)((0,$ze.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 mm(e){const{children:t,onClose:n,...r}=e;return $.jsxs(wI,{sx:{m:0,p:2},...r,children:[t,n?$.jsx(o0,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:$.jsx(iG,{})}):null]})}mm.propTypes={children:it.node,onClose:it.func.isRequired};const Nl=14,pc='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',Bf=Math.floor(Nl*1.428571429),Tze=Tf(Math.floor(Nl*2.6)),kze=Tf(Math.floor(Nl*2.3)),Eze=Tf(Math.floor(Nl*1.9)),Aze=Tf(Math.floor(Nl*1.5)),Rze=Tf(Math.floor(Nl*1.15)),_ze=Tf(Math.floor(Nl)),oG=/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,hc={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{condensedView:{forceResourceSelectorDialog:!0}},allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,gatherAddressData:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:kl().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:kl().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:kl().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:7,title:"fields.message",type:"textarea",validation:kl().max(1024).test("no-emojis","validation.no_emojis",e=>!oG.test(e)),limit:1024,onChange:e=>e.replace(oG,"")},agbs:{index:8,title:"fields.accept_timum_privacy",type:"checkbox",validation:O2().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)},locale:{index:9,preventRendering:!0}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=ts(),i=wo(r.breakpoints.down("sm"));return $.jsxs(fl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(mm,{onClose:t}),$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=ts(),i=wo(r.breakpoints.down("sm"));return $.jsxs(fl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(mm,{onClose:t}),$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=ts(),s=wo(o.breakpoints.down("sm"));return $.jsxs(fl,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&$.jsx(mm,{onClose:n}),$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>$.jsx(fl,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:$.jsx(pl,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=ts(),i=wo(r.breakpoints.down("sm"));return $.jsxs(fl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(mm,{onClose:t}),$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=ts(),s=wo(o.breakpoints.down("sm"));return $.jsxs($.Fragment,{children:[$.jsx(fl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&$.jsxs(he,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[$.jsx(he,{item:!0,xs:"auto",children:i}),$.jsx(he,{item:!0,xs:"1",children:$.jsx($I,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=ts(),i=wo(r.breakpoints.down("sm"));return $.jsx(fl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=An();return $.jsxs(fl,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[$.jsx(wI,{id:"alert-dialog-title",children:n("reservation_failed.title")}),$.jsx(pl,{children:$.jsx(n0e,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),$.jsx(Whe,{children:$.jsx(Ao,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},shape:{borderRadius:4},typography:{fontFamily:pc,fontSize:Nl,h1:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${Tze}rem`},h2:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${kze}rem`},h3:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${Eze}rem`},h4:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${Aze}rem`},h5:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${Rze}rem`},h6:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${_ze}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:Bf/2},h2:{marginBottom:Bf/2},h3:{marginBottom:Bf/2},h4:{marginBottom:Bf/2},h5:{marginBottom:Bf/2},h6:{marginBottom:Bf/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}};function sG(e){if(typeof e=="string"){const t=e.match(/^(\d+)/);return t&&t[1]?Number(t[1]):500}else if(typeof e=="number")return e;return 500}const Oze=({wait:e,height:t,children:n})=>{const r=$e(d4),i=$e(vu);if(e)return $.jsx(Qv,{sx:{height:t?t+"px":"500px",width:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",pointerEvents:"none",backgroundColor:"#ffffffc5",zIndex:o=>o.zIndex.drawer+1},open:!0,children:$.jsx(Jv,{sx:{color:"#777",zIndex:o=>o.zIndex.drawer+2}})});if(!e&&r&&i)return n},aG=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const i=fv(),o=$e(Mne),s=$e(Ine),a=$e(Nne),l=re.useMemo(()=>{var y;return(y=n==null?void 0:n.callbacks)==null?void 0:y.fetchingPublicDataFailed},[n]),[u,{isFetching:d,error:f}]=yte(),[m,{isFetching:h}]=hte(),[g,{isFetching:v}]=gte(),w=_.useCallback((y=n,b=e,S=t)=>{const C=pG(y);C&&(hG(C,b,S,o,s,a,i),fG(C,i,u,m,g))},[n,e,t,o,s,a,i,u,m,g]);if(re.useEffect(()=>{var y;n!=null&&n.isComponent&&((y=window==null?void 0:window.parent)!=null&&y.document)&&(window.parent.document.rerenderTimumBooking=w)},[w,n]),re.useEffect(()=>{const y=pG(n);y&&(hG(y,e,t,o,s,a,i),fG(y,i,u,m,g))},[n,e,t,i,o,s,a,u,m,g]),f)l&&l(f);else return $.jsx(Oze,{height:sG(n==null?void 0:n.height),wait:h||d||v,children:r})};function Pze(e,t){e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName}function lG(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i&&i.index===t&&(n[r]=i);return t++,lG(e,t,n)}function Dze(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function M6(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 uG=(e,t)=>{e&&!t.includes(e)&&t.push(e)},cG=(e,t)=>{e&&(e.forEach?e.forEach(n=>{t[n.resource.uuid]={...n}}):t[e.resource.uuid]={...e})},dG=(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 fG(e,t,n,r,i){var m,h;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}});cG(g==null?void 0:g.data,o)}if((u==null?void 0:u.length)>0&&cG(u,o),(a==null?void 0:a.length)>0&&!(d!=null&&d.length)>0){const g=await r({params:{channelKey:f,tlsIds:a}});dG(g==null?void 0:g.data,o)}if((d==null?void 0:d.length)>0&&dG(d,o),(l==null?void 0:l.length)>0){Object.values(o).forEach(w=>{var y;w.bookables&&((y=Object.values(w.bookables))==null||y.forEach(b=>{b.forEach(S=>{var C;uG(S.product_uuid,l),(C=S.products)==null||C.forEach(T=>{uG(T.uuid,l)})})}))});const g=await i({params:{prdRefs:l}}),v=Object.entries(o).filter(([,w])=>{var b,S;if(((S=(b=w.resource)==null?void 0:b.supportedProducts)==null?void 0:S.length)===0)return!1;const y=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(y),y.length===0?!1:(w.products=y,!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)===((h=e.cancelableAppointment)==null?void 0:h.resId)&&(t(bh(v)),g=!0);g||t(bh(Object.values(o)[0]))}else t(bh(Object.values(o)[0]));else Object.values(o).length===1?t(bh(Object.values(o)[0])):console.warn("Given reference(s) seems to be invalid.")}function pG(e){var w,y,b;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=Dze("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"),h=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),h&&(t.culture=h),sn.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],sn.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],sn.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]=M6(t.ref[S],t.platform,t.prvUuid);for(let S=0;S<((y=t==null?void 0:t.tslRefs)==null?void 0:y.length);S++)t.tslRefs[S]=M6(t.tslRefs[S],t.platform,t.prvUuid);for(let S=0;S<((b=t==null?void 0:t.prdRefs)==null?void 0:b.length);S++)t.prdRefs[S]=M6(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&&dte(t.host),t.height&&(t.height=sG(t.height)),t}const hG=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=sn.merge({},hc.appConfig,e),d=sn.merge({},hc.muiTheme,t),f=sn.merge({},hc.fcConfig,n);u.fields=lG(u.fields),Pze(e.fields,u.fields),l&&!o&&(u.localization=hc.appConfig.localization),l&&!i&&(u.fields=hc.appConfig.fields),l&&!r&&(u.hideTimumFooter=hc.appConfig.hideTimumFooter),a&&!r&&(d=hc.muiTheme),s(Ene(f)),s(kne(u)),s(Ane(d))};aG.displayName="ConfigHandler";const Mze=rne({reducer:{[J1.reducerPath]:J1.reducer,appState:Lne},middleware:e=>e().concat(J1.middleware),devTools:{trace:!0}});var mG=[],Ize=mG.forEach,Nze=mG.slice;function Lze(e){return Ize.call(Nze.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var gG=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Fze=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(!gG.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!gG.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},vG={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=Fze(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)}},jze={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=vG.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&vG.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},zze={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}},gm=null,yG=function(){if(gm!==null)return gm;try{gm=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{gm=!1}return gm},Bze={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&yG()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&yG()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},vm=null,bG=function(){if(vm!==null)return vm;try{vm=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{vm=!1}return vm},Uze={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&bG()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&bG()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Hze={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}},Vze={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}},Wze={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}},qze={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 Gze(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var xG=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Io(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return No(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=Lze(r,this.options||{},Gze()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(jze),this.addDetector(zze),this.addDetector(Bze),this.addDetector(Uze),this.addDetector(Hze),this.addDetector(Vze),this.addDetector(Wze),this.addDetector(qze)}},{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}();xG.type="languageDetector";var I6=["​","‌"],N6=RegExp("([".concat(I6.join(""),"]{9})+"),"gu"),Yze=9,Kze="subliminal:start",Zze=function(t){return Array.from(new TextEncoder().encode(t))},Qze=function(t){return new TextDecoder().decode(new Uint8Array(t))},Xze=function(t){var n=8-t.length;return"0".repeat(n)+t},wG=function(t){var n=Zze(t).map(Number),r=n.map(function(o){return Xze(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return I6[Number(o)]}).join("");return i},SG=wG(Kze),CG=function(t){var n=Array.from(t).map(function(o){return I6.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 Qze(i)},Jze=function(t){var n,r=(n=t.match(N6))===null||n===void 0?void 0:n.filter(function(i){return i.length>Yze-1});if(!(!r||r.length===0))return CG(r[r.length-1])},eBe=function(t){return t.replace(N6,"")},tBe=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)},nBe=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 $G(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=tBe(t),r=wG(n);return typeof e=="string"&&e?SG+e+r:e}function Pb(e){var t=Jze(e),n=nBe(t),r=eBe(e);return{text:r,invisibleMeta:n}}function L6(e){if(!e||e.length<27||!N6.test(e))return!1;var t=e.substring(e.length-9),n=CG(t);return n==="}"}function rBe(e){return e.startsWith(SG)}function TG(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 Db(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TG(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var kG="subliminal",iBe={name:kG,type:"postProcessor",options:{},setOptions:function(t){this.options=Db(Db({},t),this.options)},process:function(t,n,r,i){var o=this.options=Db(Db({},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,h,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:".",y=i.extractFromKey(n.join(w),r),b=y.key,S=y.namespaces;s=b,a=(h=(g=S==null?void 0:S[0])!==null&&g!==void 0?g:o.ns)!==null&&h!==void 0?h: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 $G(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:kG,postProcessPassResolved:!0}}},EG=["placeholder","title","alt"],Fo={highlight:"#26a69a",warning:"#e67a00"},AG=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"},ha=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function RG(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 oBe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RG(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _G={committed:"commitKeys"};function sBe(e){return _G[e]?_G[e]:e}var F6=[];function Sr(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=AG()),!_e.source||!_e.source.postMessage){F6.push({action:e,payload:t});return}_e.legacy?_e.source.postMessage(oBe({message:e},t),_e.origin):_e.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},_e.origin);var r=F6;F6=[],r.forEach(function(i){var o=i.action,s=i.payload;Sr(o,s)})}var mc={},j6=5,_e={init:function(t,n){_e.i18n=t,_e.clickHandler=n},requestInitialize:function(t){Sr("requestInitialize",t),!_e.initInterval&&(_e.initInterval=setInterval(function(){j6=j6-1,_e.requestInitialize(t),j6<0&&_e.initInterval&&(clearInterval(_e.initInterval),delete _e.initInterval)},1e3))},selectKey:function(t){Sr("selectKey",t)},confirmResourceBundle:function(t){Sr("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Sr("sendCurrentParsedContent",{content:Object.values(ms.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Sr("sendCurrentTargetLanguage",{targetLng:t||_e.i18n.getLng()})},addHandler:function(t,n){mc[t]||(mc[t]=[]),mc[t].push(n)},sendLocizeIsEnabled:function(){Sr("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(_e.scriptTurnedOff)return Sr("forcedOff");_e.clickInterceptionEnabled||window.document.body.addEventListener("click",_e.clickHandler,!0),_e.clickInterceptionEnabled=!0,Sr("turnedOn")},turnOff:function(){if(_e.scriptTurnedOff)return Sr("forcedOff");_e.clickInterceptionEnabled&&window.document.body.removeEventListener("click",_e.clickHandler,!0),_e.clickInterceptionEnabled=!1,Sr("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Sr("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=sBe(i);mc[s]&&mc[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&mc[r]&&mc[r].forEach(function(a){a(o)})});function Mb(e,t){var n=ms.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=$G(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 aBe(e){var t=e.meta,n=e.value;t&&n!==void 0&&Mb(t,n)}_e.addHandler("editKey",aBe);function lBe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){Mb(t,n);var i=r||_e.i18n.getLng();_e.i18n.setResource(i,t.ns,t.key,n),_e.i18n.triggerRerender()}}_e.addHandler("commitKey",lBe);function uBe(e){if(Array.isArray(e))return A6(e)}function cBe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1294
+ `;function xze(){const e=$e(t=>Pne(t,"useCustomTimumCss"));return $.jsxs($.Fragment,{children:[e&&$.jsx(w4,{styles:bze}),$.jsx(w4,{styles:yze})]})}function wze(e){const t=$e(vu),n=$e(_ne),r=$e(s=>Ve(s,"calendarFrontend")),i=$e(s=>Ve(s,"calendarFrontendOptions"));let o=V4(n??{});if(o=_ae(o,{factor:2.5}),t)return $.jsxs(Pae,{theme:o,children:[$.jsx(Ahe,{}),$.jsx(xze,{}),r==="fullCalendar"&&$.jsx(ef,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(eG,{})}),r==="detailsFullCalendar"&&$.jsx(ef,{...e,...i.detailsFullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(x$,{CalendarView:eG})}),r==="pureListView"&&$.jsx(ef,{...e,...i.pureListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx($$,{})}),r==="detailsListView"&&$.jsx(ef,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(x$,{CalendarView:$$})}),r==="condensedView"&&$.jsx(ef,{...e,...i.condensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(rG,{})}),r==="detailsCondensedView"&&$.jsx(ef,{...e,...i.detailsCondensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:$.jsx(x$,{CalendarView:rG})}),r!=="fullCalendar"&&r!=="detailsFullCalendar"&&r!=="condensedView"&&r!=="detailsCondensedView"&&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."]})]})}var D6={},Sze=Tn;Object.defineProperty(D6,"__esModule",{value:!0});var iG=D6.default=void 0,Cze=Sze(jn()),$ze=$;iG=D6.default=(0,Cze.default)((0,$ze.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 mm(e){const{children:t,onClose:n,...r}=e;return $.jsxs(wI,{sx:{m:0,p:2},...r,children:[t,n?$.jsx(o0,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:$.jsx(iG,{})}):null]})}mm.propTypes={children:it.node,onClose:it.func.isRequired};const Nl=14,pc='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',Bf=Math.floor(Nl*1.428571429),Tze=Tf(Math.floor(Nl*2.6)),kze=Tf(Math.floor(Nl*2.3)),Eze=Tf(Math.floor(Nl*1.9)),Aze=Tf(Math.floor(Nl*1.5)),Rze=Tf(Math.floor(Nl*1.15)),_ze=Tf(Math.floor(Nl)),oG=/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,hc={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{condensedView:{forceResourceSelectorDialog:!0}},allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,gatherAddressData:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:kl().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:kl().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:kl().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:7,title:"fields.message",type:"textarea",validation:kl().max(1024).test("no-emojis","validation.no_emojis",e=>!oG.test(e)),limit:1024,onChange:e=>e.replace(oG,"")},agbs:{index:8,title:"fields.accept_timum_privacy",type:"checkbox",validation:O2().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)},locale:{index:9,preventRendering:!0}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=ts(),i=wo(r.breakpoints.down("sm"));return $.jsxs(fl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(mm,{onClose:t}),$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=ts(),i=wo(r.breakpoints.down("sm"));return $.jsxs(fl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(mm,{onClose:t}),$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=ts(),s=wo(o.breakpoints.down("sm"));return $.jsxs(fl,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&$.jsx(mm,{onClose:n}),$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>$.jsx(fl,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:$.jsx(pl,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=ts(),i=wo(r.breakpoints.down("sm"));return $.jsxs(fl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[$.jsx(mm,{onClose:t}),$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=ts(),s=wo(o.breakpoints.down("sm"));return $.jsxs($.Fragment,{children:[$.jsx(fl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&$.jsxs(he,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[$.jsx(he,{item:!0,xs:"auto",children:i}),$.jsx(he,{item:!0,xs:"1",children:$.jsx($I,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=ts(),i=wo(r.breakpoints.down("sm"));return $.jsx(fl,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:$.jsx(pl,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:$.jsx(Jd,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=An();return $.jsxs(fl,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[$.jsx(wI,{id:"alert-dialog-title",children:n("reservation_failed.title")}),$.jsx(pl,{children:$.jsx(n0e,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),$.jsx(Whe,{children:$.jsx(Ao,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},shape:{borderRadius:4},typography:{fontFamily:pc,fontSize:Nl,h1:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${Tze}rem`},h2:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${kze}rem`},h3:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${Eze}rem`},h4:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${Aze}rem`},h5:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${Rze}rem`},h6:{fontFamily:pc,fontWeight:500,lineHeight:1,fontSize:`${_ze}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:Bf/2},h2:{marginBottom:Bf/2},h3:{marginBottom:Bf/2},h4:{marginBottom:Bf/2},h5:{marginBottom:Bf/2},h6:{marginBottom:Bf/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,scrollTimeReset:!1,scrollTime:"09:00:00",views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}};function sG(e){if(typeof e=="string"){const t=e.match(/^(\d+)/);return t&&t[1]?Number(t[1]):500}else if(typeof e=="number")return e;return 500}const Oze=({wait:e,height:t,children:n})=>{const r=$e(d4),i=$e(vu);if(e)return $.jsx(Qv,{sx:{height:t?t+"px":"500px",width:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",pointerEvents:"none",backgroundColor:"#ffffffc5",zIndex:o=>o.zIndex.drawer+1},open:!0,children:$.jsx(Jv,{sx:{color:"#777",zIndex:o=>o.zIndex.drawer+2}})});if(!e&&r&&i)return n},aG=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const i=fv(),o=$e(Mne),s=$e(Ine),a=$e(Nne),l=re.useMemo(()=>{var y;return(y=n==null?void 0:n.callbacks)==null?void 0:y.fetchingPublicDataFailed},[n]),[u,{isFetching:d,error:f}]=yte(),[m,{isFetching:h}]=hte(),[g,{isFetching:v}]=gte(),w=_.useCallback((y=n,b=e,S=t)=>{const C=pG(y);C&&(hG(C,b,S,o,s,a,i),fG(C,i,u,m,g))},[n,e,t,o,s,a,i,u,m,g]);if(re.useEffect(()=>{var y;n!=null&&n.isComponent&&((y=window==null?void 0:window.parent)!=null&&y.document)&&(window.parent.document.rerenderTimumBooking=w)},[w,n]),re.useEffect(()=>{const y=pG(n);y&&(hG(y,e,t,o,s,a,i),fG(y,i,u,m,g))},[n,e,t,i,o,s,a,u,m,g]),f)l&&l(f);else return $.jsx(Oze,{height:sG(n==null?void 0:n.height),wait:h||d||v,children:r})};function Pze(e,t){e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName}function lG(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i&&i.index===t&&(n[r]=i);return t++,lG(e,t,n)}function Dze(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function M6(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 uG=(e,t)=>{e&&!t.includes(e)&&t.push(e)},cG=(e,t)=>{e&&(e.forEach?e.forEach(n=>{t[n.resource.uuid]={...n}}):t[e.resource.uuid]={...e})},dG=(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 fG(e,t,n,r,i){var m,h;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}});cG(g==null?void 0:g.data,o)}if((u==null?void 0:u.length)>0&&cG(u,o),(a==null?void 0:a.length)>0&&!(d!=null&&d.length)>0){const g=await r({params:{channelKey:f,tlsIds:a}});dG(g==null?void 0:g.data,o)}if((d==null?void 0:d.length)>0&&dG(d,o),(l==null?void 0:l.length)>0){Object.values(o).forEach(w=>{var y;w.bookables&&((y=Object.values(w.bookables))==null||y.forEach(b=>{b.forEach(S=>{var C;uG(S.product_uuid,l),(C=S.products)==null||C.forEach(T=>{uG(T.uuid,l)})})}))});const g=await i({params:{prdRefs:l}}),v=Object.entries(o).filter(([,w])=>{var b,S;if(((S=(b=w.resource)==null?void 0:b.supportedProducts)==null?void 0:S.length)===0)return!1;const y=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(y),y.length===0?!1:(w.products=y,!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)===((h=e.cancelableAppointment)==null?void 0:h.resId)&&(t(bh(v)),g=!0);g||t(bh(Object.values(o)[0]))}else t(bh(Object.values(o)[0]));else Object.values(o).length===1?t(bh(Object.values(o)[0])):console.warn("Given reference(s) seems to be invalid.")}function pG(e){var w,y,b;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=Dze("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"),h=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),h&&(t.culture=h),sn.isArray(t.ref)?t.ref=[...t.ref]:t.ref?t.ref=[t.ref]:t.ref=[],sn.isArray(t.tslRefs)?t.tslRefs=[...t.tslRefs]:t.tslRefs?t.tslRefs=[t.tslRefs]:t.tslRefs=[],sn.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]=M6(t.ref[S],t.platform,t.prvUuid);for(let S=0;S<((y=t==null?void 0:t.tslRefs)==null?void 0:y.length);S++)t.tslRefs[S]=M6(t.tslRefs[S],t.platform,t.prvUuid);for(let S=0;S<((b=t==null?void 0:t.prdRefs)==null?void 0:b.length);S++)t.prdRefs[S]=M6(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&&dte(t.host),t.height&&(t.height=sG(t.height)),t}const hG=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let u=sn.merge({},hc.appConfig,e),d=sn.merge({},hc.muiTheme,t),f=sn.merge({},hc.fcConfig,n);u.fields=lG(u.fields),Pze(e.fields,u.fields),l&&!o&&(u.localization=hc.appConfig.localization),l&&!i&&(u.fields=hc.appConfig.fields),l&&!r&&(u.hideTimumFooter=hc.appConfig.hideTimumFooter),a&&!r&&(d=hc.muiTheme),s(Ene(f)),s(kne(u)),s(Ane(d))};aG.displayName="ConfigHandler";const Mze=rne({reducer:{[J1.reducerPath]:J1.reducer,appState:Lne},middleware:e=>e().concat(J1.middleware),devTools:{trace:!0}});var mG=[],Ize=mG.forEach,Nze=mG.slice;function Lze(e){return Ize.call(Nze.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var gG=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Fze=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(!gG.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!gG.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},vG={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=Fze(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)}},jze={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=vG.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&vG.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},zze={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}},gm=null,yG=function(){if(gm!==null)return gm;try{gm=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{gm=!1}return gm},Bze={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&yG()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&yG()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},vm=null,bG=function(){if(vm!==null)return vm;try{vm=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{vm=!1}return vm},Uze={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&bG()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&bG()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},Hze={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}},Vze={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}},Wze={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}},qze={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 Gze(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var xG=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Io(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return No(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=Lze(r,this.options||{},Gze()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(jze),this.addDetector(zze),this.addDetector(Bze),this.addDetector(Uze),this.addDetector(Hze),this.addDetector(Vze),this.addDetector(Wze),this.addDetector(qze)}},{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}();xG.type="languageDetector";var I6=["​","‌"],N6=RegExp("([".concat(I6.join(""),"]{9})+"),"gu"),Yze=9,Kze="subliminal:start",Zze=function(t){return Array.from(new TextEncoder().encode(t))},Qze=function(t){return new TextDecoder().decode(new Uint8Array(t))},Xze=function(t){var n=8-t.length;return"0".repeat(n)+t},wG=function(t){var n=Zze(t).map(Number),r=n.map(function(o){return Xze(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return I6[Number(o)]}).join("");return i},SG=wG(Kze),CG=function(t){var n=Array.from(t).map(function(o){return I6.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 Qze(i)},Jze=function(t){var n,r=(n=t.match(N6))===null||n===void 0?void 0:n.filter(function(i){return i.length>Yze-1});if(!(!r||r.length===0))return CG(r[r.length-1])},eBe=function(t){return t.replace(N6,"")},tBe=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)},nBe=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 $G(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=tBe(t),r=wG(n);return typeof e=="string"&&e?SG+e+r:e}function Pb(e){var t=Jze(e),n=nBe(t),r=eBe(e);return{text:r,invisibleMeta:n}}function L6(e){if(!e||e.length<27||!N6.test(e))return!1;var t=e.substring(e.length-9),n=CG(t);return n==="}"}function rBe(e){return e.startsWith(SG)}function TG(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 Db(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TG(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var kG="subliminal",iBe={name:kG,type:"postProcessor",options:{},setOptions:function(t){this.options=Db(Db({},t),this.options)},process:function(t,n,r,i){var o=this.options=Db(Db({},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,h,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:".",y=i.extractFromKey(n.join(w),r),b=y.key,S=y.namespaces;s=b,a=(h=(g=S==null?void 0:S[0])!==null&&g!==void 0?g:o.ns)!==null&&h!==void 0?h: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 $G(t,{key:s,ns:a,lng:l,source:u})},overloadTranslationOptionHandler:function(){return{postProcess:kG,postProcessPassResolved:!0}}},EG=["placeholder","title","alt"],Fo={highlight:"#26a69a",warning:"#e67a00"},AG=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"},ha=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function RG(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 oBe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RG(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _G={committed:"commitKeys"};function sBe(e){return _G[e]?_G[e]:e}var F6=[];function Sr(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=AG()),!_e.source||!_e.source.postMessage){F6.push({action:e,payload:t});return}_e.legacy?_e.source.postMessage(oBe({message:e},t),_e.origin):_e.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},_e.origin);var r=F6;F6=[],r.forEach(function(i){var o=i.action,s=i.payload;Sr(o,s)})}var mc={},j6=5,_e={init:function(t,n){_e.i18n=t,_e.clickHandler=n},requestInitialize:function(t){Sr("requestInitialize",t),!_e.initInterval&&(_e.initInterval=setInterval(function(){j6=j6-1,_e.requestInitialize(t),j6<0&&_e.initInterval&&(clearInterval(_e.initInterval),delete _e.initInterval)},1e3))},selectKey:function(t){Sr("selectKey",t)},confirmResourceBundle:function(t){Sr("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Sr("sendCurrentParsedContent",{content:Object.values(ms.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Sr("sendCurrentTargetLanguage",{targetLng:t||_e.i18n.getLng()})},addHandler:function(t,n){mc[t]||(mc[t]=[]),mc[t].push(n)},sendLocizeIsEnabled:function(){Sr("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(_e.scriptTurnedOff)return Sr("forcedOff");_e.clickInterceptionEnabled||window.document.body.addEventListener("click",_e.clickHandler,!0),_e.clickInterceptionEnabled=!0,Sr("turnedOn")},turnOff:function(){if(_e.scriptTurnedOff)return Sr("forcedOff");_e.clickInterceptionEnabled&&window.document.body.removeEventListener("click",_e.clickHandler,!0),_e.clickInterceptionEnabled=!1,Sr("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Sr("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=sBe(i);mc[s]&&mc[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&mc[r]&&mc[r].forEach(function(a){a(o)})});function Mb(e,t){var n=ms.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=$G(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 aBe(e){var t=e.meta,n=e.value;t&&n!==void 0&&Mb(t,n)}_e.addHandler("editKey",aBe);function lBe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){Mb(t,n);var i=r||_e.i18n.getLng();_e.i18n.setResource(i,t.ns,t.key,n),_e.i18n.triggerRerender()}}_e.addHandler("commitKey",lBe);function uBe(e){if(Array.isArray(e))return A6(e)}function cBe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1295
1295
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dBe(e){return uBe(e)||Dq(e)||Mq(e)||cBe()}function fBe(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&&Mb(l,s.value),a&&Object.values(a).forEach(function(u){Mb(u,s.value)}),_e.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,dBe(n.originalChildNodes))}}),_e.i18n.triggerRerender(),_e.locizeSavedHandler&&_e.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)}_e.addHandler("commitKeys",fBe);function pBe(e){_e.initialized=!0,clearInterval(_e.initInterval),delete _e.initInterval,_e.sendCurrentParsedContent(),_e.sendCurrentTargetLanguage()}_e.addHandler("confirmInitialized",pBe);function OG(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 PG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OG(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ll={};function hBe(){Object.values(Ll).forEach(function(e){document.body.contains(e.node)||(bm(e.id,e.node),delete Ll[e.id])})}function mBe(e,t,n){!e||!t||!n||(Ll[e]||(Ll[e]={id:e,node:n}),Ll[e].keys=PG(PG({},Ll[e].keys),{},rn({},"".concat(t),"uninstrumented")))}function gBe(e){return Ll[e]}var z6={save:mBe,clean:hBe,get:gBe,data:Ll};function DG(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 B6(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),h=Math.max(i,a),g=Math.min(i,l),v=m>=f,w=g>=h,y={x:v?r:d<r?d:u,y:w?i:l<i?l:a},b=y.x-o.x,S=y.y-o.y,C=Math.pow(Math.pow(b,2)+Math.pow(S,2),1/2);return Math.floor(C)}function MG(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 vBe(e){return e!=null&&e===e.window}function yBe(e){return vBe(e)?e:e.nodeType===9&&e.defaultView}function IG(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=yBe(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 bBe(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=IG(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=IG(f);if(m.left>r)break;f&&f.nodeType!==8&&(t=f)}}return t}function xBe(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if(typeof t=="string")return t.replace(/\n +/g,"").trim()}function ma(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function NG(e){var t=ma(e,"data-i18n");if(t)return t;if(e.nodeType===window.Node.TEXT_NODE&&e.parentElement)return NG(e.parentElement)}function wBe(e){var t,n=function r(i){var o=ma(i,"i18next-options");if(o||(o=ma(i,"data-i18next-options")),o||(o=ma(i,"i18n-options")),o||(o=ma(i,"data-i18n-options")),o){var s={};try{s=JSON.parse(o)}catch{}s.ns&&(t=s.ns)}t||(t=ma(i,"i18next-ns")),t||(t=ma(i,"data-i18next-ns")),t||(t=ma(i,"i18n-ns")),t||(t=ma(i,"data-i18n-ns")),!t&&i.parentElement&&r(i.parentElement)};return n(e),t}function SBe(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 CBe=MG(function(e,t){Object.values(ms.data).forEach(function(n){if(DG(n.node)){var r=B6(e,n.node);if(r<5)YBe(n,n.node,n.keys);else if(r>5){var i=n.ribbonBox?B6(e,n.ribbonBox):1e3;i>10&&bm(n,n.node,n.keys)}}}),Object.values(z6.data).forEach(function(n){if(DG(n.node)){var r=B6(e,n.node);r<10?KBe(n,n.node,n.keys):r>10&&bm(n,n.node,n.keys)}})},50),U6;function Ib(e){U6=function(n){CBe(n,e)},document.addEventListener("mousemove",U6)}function H6(){document.removeEventListener("mousemove",U6)}var $Be='<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>',TBe=`
1296
1296
  <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">
1297
1297
  <g stroke="none" class="B">
@@ -61512,6 +61512,8 @@ const Sa = 14, Ba = '"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',
61512
61512
  initialView: "timeGridWeek",
61513
61513
  useCustomTimumCss: !0,
61514
61514
  displayEventEnd: !1,
61515
+ scrollTimeReset: !1,
61516
+ scrollTime: "09:00:00",
61515
61517
  views: {
61516
61518
  timeGridWeek: {
61517
61519
  slotMinTime: "08:00:00",
@@ -1260,7 +1260,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1260
1260
  .fc .fc-v-event .fc-event-title {
1261
1261
  display: none !important;
1262
1262
  }
1263
- `;function Xke(){const e=we(t=>cV(t,"useCustomTimumCss"));return C.jsxs(C.Fragment,{children:[e&&C.jsx(Dy,{styles:Qke}),C.jsx(Dy,{styles:Zke})]})}function Jke(e){const t=we(Sa),n=we(lV),r=we(s=>ze(s,"calendarFrontend")),i=we(s=>ze(s,"calendarFrontendOptions"));let o=n2(n??{});if(o=lK(o,{factor:2.5}),t)return C.jsxs(cK,{theme:o,children:[C.jsx(sne,{}),C.jsx(Xke,{}),r==="fullCalendar"&&C.jsx(Au,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(KN,{})}),r==="detailsFullCalendar"&&C.jsx(Au,{...e,...i.detailsFullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(P5,{CalendarView:KN})}),r==="pureListView"&&C.jsx(Au,{...e,...i.pureListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(N5,{})}),r==="detailsListView"&&C.jsx(Au,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(P5,{CalendarView:N5})}),r==="condensedView"&&C.jsx(Au,{...e,...i.condensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(XN,{})}),r==="detailsCondensedView"&&C.jsx(Au,{...e,...i.detailsCondensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(P5,{CalendarView:XN})}),r!=="fullCalendar"&&r!=="detailsFullCalendar"&&r!=="condensedView"&&r!=="detailsCondensedView"&&r!=="detailsListView"&&r!=="pureListView"&&C.jsxs(C.Fragment,{children:["You must set calendarFrontend either to ",C.jsx("code",{children:"fullCalendar"}),",",C.jsx("code",{children:"detailsListView"})," or ",C.jsx("code",{children:"pureListView"})," in your config."]})]})}var W4={},eAe=dn;Object.defineProperty(W4,"__esModule",{value:!0});var JN=W4.default=void 0,tAe=eAe(Sn()),nAe=C;JN=W4.default=(0,tAe.default)((0,nAe.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 eh(e){const{children:t,onClose:n,...r}=e;return C.jsxs(g$,{sx:{m:0,p:2},...r,children:[t,n?C.jsx(Ud,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:C.jsx(JN,{})}):null]})}eh.propTypes={children:nt.node,onClose:nt.func.isRequired};const na=14,yl='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',pc=Math.floor(na*1.428571429),rAe=Xu(Math.floor(na*2.6)),iAe=Xu(Math.floor(na*2.3)),oAe=Xu(Math.floor(na*1.9)),sAe=Xu(Math.floor(na*1.5)),aAe=Xu(Math.floor(na*1.15)),lAe=Xu(Math.floor(na)),eL=/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,bl={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{condensedView:{forceResourceSelectorDialog:!0}},allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,gatherAddressData:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:qs().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:qs().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:qs().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:7,title:"fields.message",type:"textarea",validation:qs().max(1024).test("no-emojis","validation.no_emojis",e=>!eL.test(e)),limit:1024,onChange:e=>e.replace(eL,"")},agbs:{index:8,title:"fields.accept_timum_privacy",type:"checkbox",validation:tg().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)},locale:{index:9,preventRendering:!0}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=bi(r.breakpoints.down("sm"));return C.jsxs(Ps,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[C.jsx(eh,{onClose:t}),C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=bi(r.breakpoints.down("sm"));return C.jsxs(Ps,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[C.jsx(eh,{onClose:t}),C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=Ki(),s=bi(o.breakpoints.down("sm"));return C.jsxs(Ps,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&C.jsx(eh,{onClose:n}),C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>C.jsx(Ps,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:C.jsx(Ds,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=bi(r.breakpoints.down("sm"));return C.jsxs(Ps,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[C.jsx(eh,{onClose:t}),C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=Ki(),s=bi(o.breakpoints.down("sm"));return C.jsxs(C.Fragment,{children:[C.jsx(Ps,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&C.jsxs(fe,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[C.jsx(fe,{item:!0,xs:"auto",children:i}),C.jsx(fe,{item:!0,xs:"1",children:C.jsx(b$,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=bi(r.breakpoints.down("sm"));return C.jsx(Ps,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=pn();return C.jsxs(Ps,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[C.jsx(g$,{id:"alert-dialog-title",children:n("reservation_failed.title")}),C.jsx(Ds,{children:C.jsx(Mne,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),C.jsx(Cne,{children:C.jsx(Ei,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},shape:{borderRadius:4},typography:{fontFamily:yl,fontSize:na,h1:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${rAe}rem`},h2:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${iAe}rem`},h3:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${oAe}rem`},h4:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${sAe}rem`},h5:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${aAe}rem`},h6:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${lAe}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:pc/2},h2:{marginBottom:pc/2},h3:{marginBottom:pc/2},h4:{marginBottom:pc/2},h5:{marginBottom:pc/2},h6:{marginBottom:pc/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}};function tL(e){if(typeof e=="string"){const t=e.match(/^(\d+)/);return t&&t[1]?Number(t[1]):500}else if(typeof e=="number")return e;return 500}const uAe=({wait:e,height:t,children:n})=>{const r=we(Cy),i=we(Sa);if(e)return C.jsx(w0,{sx:{height:t?t+"px":"500px",width:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",pointerEvents:"none",backgroundColor:"#ffffffc5",zIndex:o=>o.zIndex.drawer+1},open:!0,children:C.jsx(C0,{sx:{color:"#777",zIndex:o=>o.zIndex.drawer+2}})});if(!e&&r&&i)return n},nL=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const i=Np(),o=we(fV),s=we(hV),a=we(pV),l=P.useMemo(()=>{var x;return(x=n==null?void 0:n.callbacks)==null?void 0:x.fetchingPublicDataFailed},[n]),[c,{isFetching:d,error:f}]=ZH(),[m,{isFetching:p}]=qH(),[g,{isFetching:v}]=YH(),b=P.useCallback((x=n,w=e,S=t)=>{const T=lL(x);T&&(uL(T,w,S,o,s,a,i),aL(T,i,c,m,g))},[n,e,t,o,s,a,i,c,m,g]);if(P.useEffect(()=>{var x;n!=null&&n.isComponent&&((x=window==null?void 0:window.parent)!=null&&x.document)&&(window.parent.document.rerenderTimumBooking=b)},[b,n]),P.useEffect(()=>{const x=lL(n);x&&(uL(x,e,t,o,s,a,i),aL(x,i,c,m,g))},[n,e,t,i,o,s,a,c,m,g]),f)l&&l(f);else return C.jsx(uAe,{height:tL(n==null?void 0:n.height),wait:p||d||v,children:r})};function cAe(e,t){e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName}function rL(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i&&i.index===t&&(n[r]=i);return t++,rL(e,t,n)}function dAe(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function q4(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 iL=(e,t)=>{e&&!t.includes(e)&&t.push(e)},oL=(e,t)=>{e&&(e.forEach?e.forEach(n=>{t[n.resource.uuid]={...n}}):t[e.resource.uuid]={...e})},sL=(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 aL(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,c=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&&!(c!=null&&c.length)>0){const g=await n({channelOrResourceId:s[0],params:{channelKey:f,ref:s}});oL(g==null?void 0:g.data,o)}if((c==null?void 0:c.length)>0&&oL(c,o),(a==null?void 0:a.length)>0&&!(d!=null&&d.length)>0){const g=await r({params:{channelKey:f,tlsIds:a}});sL(g==null?void 0:g.data,o)}if((d==null?void 0:d.length)>0&&sL(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 T;iL(S.product_uuid,l),(T=S.products)==null||T.forEach(E=>{iL(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(T=>{var k;const E=(k=b.resource)==null?void 0:k.supportedProducts;return E&&E.some(_=>_===T.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(aV(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(rd(v)),g=!0);g||t(rd(Object.values(o)[0]))}else t(rd(Object.values(o)[0]));else Object.values(o).length===1?t(rd(Object.values(o)[0])):console.warn("Given reference(s) seems to be invalid.")}function lL(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=dAe("PLAY_SESSION"),a=r.get("channelKey")??r.get("channelkey"),l=r.get("X-SIGNED-APP-CUSTOMER"),c=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]=q4(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]=q4(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]=q4(t.prdRefs[S],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:v,customerUuid:o.id,resourceUuid:c}),t.host&&UH(t.host),t.height&&(t.height=tL(t.height)),t}const uL=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let c=Zt.merge({},bl.appConfig,e),d=Zt.merge({},bl.muiTheme,t),f=Zt.merge({},bl.fcConfig,n);c.fields=rL(c.fields),cAe(e.fields,c.fields),l&&!o&&(c.localization=bl.appConfig.localization),l&&!i&&(c.fields=bl.appConfig.fields),l&&!r&&(c.hideTimumFooter=bl.appConfig.hideTimumFooter),a&&!r&&(d=bl.muiTheme),s(oV(f)),s(iV(c)),s(sV(d))};nL.displayName="ConfigHandler";const fAe=IU({reducer:{[Cp.reducerPath]:Cp.reducer,appState:mV},middleware:e=>e().concat(Cp.middleware),devTools:{trace:!0}});var cL=[],hAe=cL.forEach,pAe=cL.slice;function mAe(e){return hAe.call(pAe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var dL=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,gAe=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(!dL.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!dL.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},fL={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=gAe(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)}},vAe={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=fL.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&fL.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},yAe={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}},th=null,hL=function(){if(th!==null)return th;try{th=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{th=!1}return th},bAe={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&hL()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&hL()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},nh=null,pL=function(){if(nh!==null)return nh;try{nh=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{nh=!1}return nh},xAe={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&pL()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&pL()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},wAe={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}},SAe={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}},CAe={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}},TAe={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 $Ae(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var mL=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Di(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Mi(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=mAe(r,this.options||{},$Ae()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(vAe),this.addDetector(yAe),this.addDetector(bAe),this.addDetector(xAe),this.addDetector(wAe),this.addDetector(SAe),this.addDetector(CAe),this.addDetector(TAe)}},{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}();mL.type="languageDetector";var G4=["​","‌"],Y4=RegExp("([".concat(G4.join(""),"]{9})+"),"gu"),EAe=9,kAe="subliminal:start",AAe=function(t){return Array.from(new TextEncoder().encode(t))},_Ae=function(t){return new TextDecoder().decode(new Uint8Array(t))},OAe=function(t){var n=8-t.length;return"0".repeat(n)+t},gL=function(t){var n=AAe(t).map(Number),r=n.map(function(o){return OAe(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return G4[Number(o)]}).join("");return i},vL=gL(kAe),yL=function(t){var n=Array.from(t).map(function(o){return G4.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 _Ae(i)},RAe=function(t){var n,r=(n=t.match(Y4))===null||n===void 0?void 0:n.filter(function(i){return i.length>EAe-1});if(!(!r||r.length===0))return yL(r[r.length-1])},PAe=function(t){return t.replace(Y4,"")},DAe=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)},MAe=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 bL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=DAe(t),r=gL(n);return typeof e=="string"&&e?vL+e+r:e}function n1(e){var t=RAe(e),n=MAe(t),r=PAe(e);return{text:r,invisibleMeta:n}}function K4(e){if(!e||e.length<27||!Y4.test(e))return!1;var t=e.substring(e.length-9),n=yL(t);return n==="}"}function IAe(e){return e.startsWith(vL)}function xL(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 r1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xL(Object(n),!0).forEach(function(r){Yt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var wL="subliminal",NAe={name:wL,type:"postProcessor",options:{},setOptions:function(t){this.options=r1(r1({},t),this.options)},process:function(t,n,r,i){var o=this.options=r1(r1({},r),this.options),s,a,l,c;if(r.i18nResolved)s=r.i18nResolved.exactUsedKey,a=r.i18nResolved.usedNS,l=r.i18nResolved.usedLng,r.i18nResolved.res===void 0?s!==t?c="default":c="key":c="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?c="key":c="translation"}return bL(t,{key:s,ns:a,lng:l,source:c})},overloadTranslationOptionHandler:function(){return{postProcess:wL,postProcessPassResolved:!0}}},SL=["placeholder","title","alt"],Ni={highlight:"#26a69a",warning:"#e67a00"},CL=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"},es=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function TL(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 LAe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TL(Object(n),!0).forEach(function(r){Yt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $L={committed:"commitKeys"};function FAe(e){return $L[e]?$L[e]:e}var Z4=[];function Zn(e,t){if(!Ae.source){var n;Ae.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(Ae.origin||(Ae.origin=CL()),!Ae.source||!Ae.source.postMessage){Z4.push({action:e,payload:t});return}Ae.legacy?Ae.source.postMessage(LAe({message:e},t),Ae.origin):Ae.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},Ae.origin);var r=Z4;Z4=[],r.forEach(function(i){var o=i.action,s=i.payload;Zn(o,s)})}var xl={},Q4=5,Ae={init:function(t,n){Ae.i18n=t,Ae.clickHandler=n},requestInitialize:function(t){Zn("requestInitialize",t),!Ae.initInterval&&(Ae.initInterval=setInterval(function(){Q4=Q4-1,Ae.requestInitialize(t),Q4<0&&Ae.initInterval&&(clearInterval(Ae.initInterval),delete Ae.initInterval)},1e3))},selectKey:function(t){Zn("selectKey",t)},confirmResourceBundle:function(t){Zn("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Zn("sendCurrentParsedContent",{content:Object.values(uo.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Zn("sendCurrentTargetLanguage",{targetLng:t||Ae.i18n.getLng()})},addHandler:function(t,n){xl[t]||(xl[t]=[]),xl[t].push(n)},sendLocizeIsEnabled:function(){Zn("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(Ae.scriptTurnedOff)return Zn("forcedOff");Ae.clickInterceptionEnabled||window.document.body.addEventListener("click",Ae.clickHandler,!0),Ae.clickInterceptionEnabled=!0,Zn("turnedOn")},turnOff:function(){if(Ae.scriptTurnedOff)return Zn("forcedOff");Ae.clickInterceptionEnabled&&window.document.body.removeEventListener("click",Ae.clickHandler,!0),Ae.clickInterceptionEnabled=!1,Zn("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Zn("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=FAe(i);xl[s]&&xl[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&xl[r]&&xl[r].forEach(function(a){a(o)})});function i1(e,t){var n=uo.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=bL(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,c=document.createElement("div");c.innerHTML=r;var d=[];c.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 jAe(e){var t=e.meta,n=e.value;t&&n!==void 0&&i1(t,n)}Ae.addHandler("editKey",jAe);function BAe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){i1(t,n);var i=r||Ae.i18n.getLng();Ae.i18n.setResource(i,t.ns,t.key,n),Ae.i18n.triggerRerender()}}Ae.addHandler("commitKey",BAe);function zAe(e){if(Array.isArray(e))return B4(e)}function HAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1263
+ `;function Xke(){const e=we(t=>cV(t,"useCustomTimumCss"));return C.jsxs(C.Fragment,{children:[e&&C.jsx(Dy,{styles:Qke}),C.jsx(Dy,{styles:Zke})]})}function Jke(e){const t=we(Sa),n=we(lV),r=we(s=>ze(s,"calendarFrontend")),i=we(s=>ze(s,"calendarFrontendOptions"));let o=n2(n??{});if(o=lK(o,{factor:2.5}),t)return C.jsxs(cK,{theme:o,children:[C.jsx(sne,{}),C.jsx(Xke,{}),r==="fullCalendar"&&C.jsx(Au,{...e,...i.fullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(KN,{})}),r==="detailsFullCalendar"&&C.jsx(Au,{...e,...i.detailsFullCalendar,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(P5,{CalendarView:KN})}),r==="pureListView"&&C.jsx(Au,{...e,...i.pureListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(N5,{})}),r==="detailsListView"&&C.jsx(Au,{...e,...i.detailsListView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(P5,{CalendarView:N5})}),r==="condensedView"&&C.jsx(Au,{...e,...i.condensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(XN,{})}),r==="detailsCondensedView"&&C.jsx(Au,{...e,...i.detailsCondensedView,bookables:(t==null?void 0:t.bookables)??void 0,products:(t==null?void 0:t.products)??void 0,children:C.jsx(P5,{CalendarView:XN})}),r!=="fullCalendar"&&r!=="detailsFullCalendar"&&r!=="condensedView"&&r!=="detailsCondensedView"&&r!=="detailsListView"&&r!=="pureListView"&&C.jsxs(C.Fragment,{children:["You must set calendarFrontend either to ",C.jsx("code",{children:"fullCalendar"}),",",C.jsx("code",{children:"detailsListView"})," or ",C.jsx("code",{children:"pureListView"})," in your config."]})]})}var W4={},eAe=dn;Object.defineProperty(W4,"__esModule",{value:!0});var JN=W4.default=void 0,tAe=eAe(Sn()),nAe=C;JN=W4.default=(0,tAe.default)((0,nAe.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 eh(e){const{children:t,onClose:n,...r}=e;return C.jsxs(g$,{sx:{m:0,p:2},...r,children:[t,n?C.jsx(Ud,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:i=>i.palette.grey[500]},children:C.jsx(JN,{})}):null]})}eh.propTypes={children:nt.node,onClose:nt.func.isRequired};const na=14,yl='"Ek Mukta","Helvetica Neue", Helvetica, Arial, sans-serif',pc=Math.floor(na*1.428571429),rAe=Xu(Math.floor(na*2.6)),iAe=Xu(Math.floor(na*2.3)),oAe=Xu(Math.floor(na*1.9)),sAe=Xu(Math.floor(na*1.5)),aAe=Xu(Math.floor(na*1.15)),lAe=Xu(Math.floor(na)),eL=/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,bl={appConfig:{host:"https://www.timum.de",resource_channel:"RESOURCE_REFERENCE",calendarFrontend:"detailsListView",calendarFrontendOptions:{condensedView:{forceResourceSelectorDialog:!0}},allowCloseOnBooking:!0,hideTimumFooter:!1,sendCustomValuesAsMessage:!1,gatherAddressData:!1,height:500,fields:{firstName:{index:0,title:"fields.firstName",validation:qs().required("validation.field_required")},lastName:{index:1,title:"fields.lastName",validation:qs().required("validation.field_required")},email:{index:2,title:"fields.email",format:"email",type:"text",validation:qs().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:7,title:"fields.message",type:"textarea",validation:qs().max(1024).test("no-emojis","validation.no_emojis",e=>!eL.test(e)),limit:1024,onChange:e=>e.replace(eL,"")},agbs:{index:8,title:"fields.accept_timum_privacy",type:"checkbox",validation:tg().required("validation.field_required").test("privacyAccepted","validation.privacy_field_required",e=>e===!0)},locale:{index:9,preventRendering:!0}},interfaces:{UnkownBookingPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=bi(r.breakpoints.down("sm"));return C.jsxs(Ps,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[C.jsx(eh,{onClose:t}),C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},IdentifiedBookingPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=bi(r.breakpoints.down("sm"));return C.jsxs(Ps,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[C.jsx(eh,{onClose:t}),C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},ConfirmationPage:e=>{const{open:t,onClose:n,allowCloseOnBooking:r,children:i}=e,o=Ki(),s=bi(o.breakpoints.down("sm"));return C.jsxs(Ps,{open:t,onClose:()=>{r&&n()},hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:[r&&C.jsx(eh,{onClose:n}),C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:i})})]})},LoginPage:({open:e,onClose:t,children:n})=>C.jsx(Ps,{open:e,onClose:t,hideBackdrop:!0,fullWidth:!0,children:C.jsx(Ds,{children:n})}),CancelPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=bi(r.breakpoints.down("sm"));return C.jsxs(Ps,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:[C.jsx(eh,{onClose:t}),C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:n})})]})},ResourcePage:({mobileOpen:e,mobileOnClose:t,shouldDisplay:n,height:r,children:i})=>{const o=Ki(),s=bi(o.breakpoints.down("sm"));return C.jsxs(C.Fragment,{children:[C.jsx(Ps,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:s,children:C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:i})})}),n&&C.jsxs(fe,{xs:"auto",item:!0,container:!0,display:{xs:"none",sm:"flex"},wrap:"nowrap",sx:{mr:2,maxHeight:r,boxSizing:"border-box"},children:[C.jsx(fe,{item:!0,xs:"auto",children:i}),C.jsx(fe,{item:!0,xs:"1",children:C.jsx(b$,{orientation:"vertical",variant:"middle"})})]})]})},ProductPage:({open:e,onClose:t,children:n})=>{const r=Ki(),i=bi(r.breakpoints.down("sm"));return C.jsx(Ps,{open:e,onClose:t,hideBackdrop:!0,maxWidth:"md",fullWidth:!0,fullScreen:i,children:C.jsx(Ds,{sx:{pl:{xs:2,sm:3,md:4},pr:{xs:2,sm:3,md:4}},children:C.jsx(ku,{maxWidth:"sm",sx:{p:0},children:n})})})},ErrorDialog:({open:e,onClose:t})=>{const{t:n}=pn();return C.jsxs(Ps,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[C.jsx(g$,{id:"alert-dialog-title",children:n("reservation_failed.title")}),C.jsx(Ds,{children:C.jsx(Mne,{id:"alert-dialog-description",children:n("reservation_failed.message")})}),C.jsx(Cne,{children:C.jsx(Ei,{onClick:t,autoFocus:!0,children:"Ok"})})]})}},callbacks:{}},muiTheme:{palette:{primary:{main:"#337ab7"},secondary:{main:"#777"},success:{main:"#5cb85c"},warning:{main:"#f0ad4e"},error:{main:"#d9534f"},info:{main:"#5bc0de"}},shape:{borderRadius:4},typography:{fontFamily:yl,fontSize:na,h1:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${rAe}rem`},h2:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${iAe}rem`},h3:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${oAe}rem`},h4:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${sAe}rem`},h5:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${aAe}rem`},h6:{fontFamily:yl,fontWeight:500,lineHeight:1,fontSize:`${lAe}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:pc/2},h2:{marginBottom:pc/2},h3:{marginBottom:pc/2},h4:{marginBottom:pc/2},h5:{marginBottom:pc/2},h6:{marginBottom:pc/2}}}}},fcConfig:{initialView:"timeGridWeek",useCustomTimumCss:!0,displayEventEnd:!1,scrollTimeReset:!1,scrollTime:"09:00:00",views:{timeGridWeek:{slotMinTime:"08:00:00",slotMaxTime:"21:00:00",allDaySlot:!1}}}};function tL(e){if(typeof e=="string"){const t=e.match(/^(\d+)/);return t&&t[1]?Number(t[1]):500}else if(typeof e=="number")return e;return 500}const uAe=({wait:e,height:t,children:n})=>{const r=we(Cy),i=we(Sa);if(e)return C.jsx(w0,{sx:{height:t?t+"px":"500px",width:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",pointerEvents:"none",backgroundColor:"#ffffffc5",zIndex:o=>o.zIndex.drawer+1},open:!0,children:C.jsx(C0,{sx:{color:"#777",zIndex:o=>o.zIndex.drawer+2}})});if(!e&&r&&i)return n},nL=({muiTheme:e={},fcConfig:t={},appConfig:n={},children:r})=>{const i=Np(),o=we(fV),s=we(hV),a=we(pV),l=P.useMemo(()=>{var x;return(x=n==null?void 0:n.callbacks)==null?void 0:x.fetchingPublicDataFailed},[n]),[c,{isFetching:d,error:f}]=ZH(),[m,{isFetching:p}]=qH(),[g,{isFetching:v}]=YH(),b=P.useCallback((x=n,w=e,S=t)=>{const T=lL(x);T&&(uL(T,w,S,o,s,a,i),aL(T,i,c,m,g))},[n,e,t,o,s,a,i,c,m,g]);if(P.useEffect(()=>{var x;n!=null&&n.isComponent&&((x=window==null?void 0:window.parent)!=null&&x.document)&&(window.parent.document.rerenderTimumBooking=b)},[b,n]),P.useEffect(()=>{const x=lL(n);x&&(uL(x,e,t,o,s,a,i),aL(x,i,c,m,g))},[n,e,t,i,o,s,a,c,m,g]),f)l&&l(f);else return C.jsx(uAe,{height:tL(n==null?void 0:n.height),wait:p||d||v,children:r})};function cAe(e,t){e&&Object.hasOwn(e,"message")&&typeof e.message>"u"&&delete t.message,e&&Object.hasOwn(e,"mobile")&&typeof e.mobile>"u"&&delete t.mobile,e&&Object.hasOwn(e,"email")&&typeof e.email>"u"&&delete t.email,e&&Object.hasOwn(e,"firstName")&&typeof e.firstName>"u"&&delete t.firstName,e&&Object.hasOwn(e,"lastName")&&typeof e.lastName>"u"&&delete t.lastName}function rL(e,t,n){if(n||(n={}),typeof t>"u"&&(t=0),t>=Object.entries(e).length)return n;for(const[r,i]of Object.entries(e))i&&i.index===t&&(n[r]=i);return t++,rL(e,t,n)}function dAe(e){var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""}function q4(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 iL=(e,t)=>{e&&!t.includes(e)&&t.push(e)},oL=(e,t)=>{e&&(e.forEach?e.forEach(n=>{t[n.resource.uuid]={...n}}):t[e.resource.uuid]={...e})},sL=(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 aL(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,c=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&&!(c!=null&&c.length)>0){const g=await n({channelOrResourceId:s[0],params:{channelKey:f,ref:s}});oL(g==null?void 0:g.data,o)}if((c==null?void 0:c.length)>0&&oL(c,o),(a==null?void 0:a.length)>0&&!(d!=null&&d.length)>0){const g=await r({params:{channelKey:f,tlsIds:a}});sL(g==null?void 0:g.data,o)}if((d==null?void 0:d.length)>0&&sL(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 T;iL(S.product_uuid,l),(T=S.products)==null||T.forEach(E=>{iL(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(T=>{var k;const E=(k=b.resource)==null?void 0:k.supportedProducts;return E&&E.some(_=>_===T.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(aV(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(rd(v)),g=!0);g||t(rd(Object.values(o)[0]))}else t(rd(Object.values(o)[0]));else Object.values(o).length===1?t(rd(Object.values(o)[0])):console.warn("Given reference(s) seems to be invalid.")}function lL(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=dAe("PLAY_SESSION"),a=r.get("channelKey")??r.get("channelkey"),l=r.get("X-SIGNED-APP-CUSTOMER"),c=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]=q4(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]=q4(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]=q4(t.prdRefs[S],t.platform,t.prvUuid);return s&&(t.cookie=s),l&&(t.cancelableAppointment={authToken:l,appointmentUuid:v,customerUuid:o.id,resourceUuid:c}),t.host&&UH(t.host),t.height&&(t.height=tL(t.height)),t}const uL=(e,t,n,r,i,o,s)=>{const a=Object.keys(t).length>0,l=Object.keys(e).length>0;let c=Zt.merge({},bl.appConfig,e),d=Zt.merge({},bl.muiTheme,t),f=Zt.merge({},bl.fcConfig,n);c.fields=rL(c.fields),cAe(e.fields,c.fields),l&&!o&&(c.localization=bl.appConfig.localization),l&&!i&&(c.fields=bl.appConfig.fields),l&&!r&&(c.hideTimumFooter=bl.appConfig.hideTimumFooter),a&&!r&&(d=bl.muiTheme),s(oV(f)),s(iV(c)),s(sV(d))};nL.displayName="ConfigHandler";const fAe=IU({reducer:{[Cp.reducerPath]:Cp.reducer,appState:mV},middleware:e=>e().concat(Cp.middleware),devTools:{trace:!0}});var cL=[],hAe=cL.forEach,pAe=cL.slice;function mAe(e){return hAe.call(pAe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var dL=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,gAe=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(!dL.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!dL.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},fL={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=gAe(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)}},vAe={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=fL.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&fL.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},yAe={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}},th=null,hL=function(){if(th!==null)return th;try{th=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{th=!1}return th},bAe={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&hL()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&hL()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},nh=null,pL=function(){if(nh!==null)return nh;try{nh=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{nh=!1}return nh},xAe={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&pL()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&pL()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},wAe={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}},SAe={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}},CAe={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}},TAe={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 $Ae(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var mL=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Di(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Mi(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=mAe(r,this.options||{},$Ae()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(vAe),this.addDetector(yAe),this.addDetector(bAe),this.addDetector(xAe),this.addDetector(wAe),this.addDetector(SAe),this.addDetector(CAe),this.addDetector(TAe)}},{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}();mL.type="languageDetector";var G4=["​","‌"],Y4=RegExp("([".concat(G4.join(""),"]{9})+"),"gu"),EAe=9,kAe="subliminal:start",AAe=function(t){return Array.from(new TextEncoder().encode(t))},_Ae=function(t){return new TextDecoder().decode(new Uint8Array(t))},OAe=function(t){var n=8-t.length;return"0".repeat(n)+t},gL=function(t){var n=AAe(t).map(Number),r=n.map(function(o){return OAe(o.toString(2))+"0"}).join(""),i=Array.from(r).map(function(o){return G4[Number(o)]}).join("");return i},vL=gL(kAe),yL=function(t){var n=Array.from(t).map(function(o){return G4.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 _Ae(i)},RAe=function(t){var n,r=(n=t.match(Y4))===null||n===void 0?void 0:n.filter(function(i){return i.length>EAe-1});if(!(!r||r.length===0))return yL(r[r.length-1])},PAe=function(t){return t.replace(Y4,"")},DAe=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)},MAe=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 bL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=DAe(t),r=gL(n);return typeof e=="string"&&e?vL+e+r:e}function n1(e){var t=RAe(e),n=MAe(t),r=PAe(e);return{text:r,invisibleMeta:n}}function K4(e){if(!e||e.length<27||!Y4.test(e))return!1;var t=e.substring(e.length-9),n=yL(t);return n==="}"}function IAe(e){return e.startsWith(vL)}function xL(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 r1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xL(Object(n),!0).forEach(function(r){Yt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var wL="subliminal",NAe={name:wL,type:"postProcessor",options:{},setOptions:function(t){this.options=r1(r1({},t),this.options)},process:function(t,n,r,i){var o=this.options=r1(r1({},r),this.options),s,a,l,c;if(r.i18nResolved)s=r.i18nResolved.exactUsedKey,a=r.i18nResolved.usedNS,l=r.i18nResolved.usedLng,r.i18nResolved.res===void 0?s!==t?c="default":c="key":c="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?c="key":c="translation"}return bL(t,{key:s,ns:a,lng:l,source:c})},overloadTranslationOptionHandler:function(){return{postProcess:wL,postProcessPassResolved:!0}}},SL=["placeholder","title","alt"],Ni={highlight:"#26a69a",warning:"#e67a00"},CL=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"},es=function(){if(!(typeof document>"u")){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}}();function TL(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 LAe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TL(Object(n),!0).forEach(function(r){Yt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $L={committed:"commitKeys"};function FAe(e){return $L[e]?$L[e]:e}var Z4=[];function Zn(e,t){if(!Ae.source){var n;Ae.source=(n=document.getElementById("i18next-editor-iframe"))===null||n===void 0?void 0:n.contentWindow}if(Ae.origin||(Ae.origin=CL()),!Ae.source||!Ae.source.postMessage){Z4.push({action:e,payload:t});return}Ae.legacy?Ae.source.postMessage(LAe({message:e},t),Ae.origin):Ae.source.postMessage({sender:"i18next-editor",senderAPIVersion:"v1",action:e,message:e,payload:t},Ae.origin);var r=Z4;Z4=[],r.forEach(function(i){var o=i.action,s=i.payload;Zn(o,s)})}var xl={},Q4=5,Ae={init:function(t,n){Ae.i18n=t,Ae.clickHandler=n},requestInitialize:function(t){Zn("requestInitialize",t),!Ae.initInterval&&(Ae.initInterval=setInterval(function(){Q4=Q4-1,Ae.requestInitialize(t),Q4<0&&Ae.initInterval&&(clearInterval(Ae.initInterval),delete Ae.initInterval)},1e3))},selectKey:function(t){Zn("selectKey",t)},confirmResourceBundle:function(t){Zn("confirmResourceBundle",t)},sendCurrentParsedContent:function(){Zn("sendCurrentParsedContent",{content:Object.values(uo.data).map(function(t){return{id:t.id,keys:t.keys}})})},sendCurrentTargetLanguage:function(t){Zn("sendCurrentTargetLanguage",{targetLng:t||Ae.i18n.getLng()})},addHandler:function(t,n){xl[t]||(xl[t]=[]),xl[t].push(n)},sendLocizeIsEnabled:function(){Zn("locizeIsEnabled",{enabled:!0})},turnOn:function(){if(Ae.scriptTurnedOff)return Zn("forcedOff");Ae.clickInterceptionEnabled||window.document.body.addEventListener("click",Ae.clickHandler,!0),Ae.clickInterceptionEnabled=!0,Zn("turnedOn")},turnOff:function(){if(Ae.scriptTurnedOff)return Zn("forcedOff");Ae.clickInterceptionEnabled&&window.document.body.removeEventListener("click",Ae.clickHandler,!0),Ae.clickInterceptionEnabled=!1,Zn("turnedOff")},onAddedKey:function(t,n,r,i){var o={lng:t,ns:n,key:r,value:i};Zn("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=FAe(i);xl[s]&&xl[s].forEach(function(a){a(o,e)})}else n==="i18next-editor-frame"&&xl[r]&&xl[r].forEach(function(a){a(o)})});function i1(e,t){var n=uo.get(e.eleUniqueID);if(!(!n||!n.keys[e.textType])){var r=bL(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,c=document.createElement("div");c.innerHTML=r;var d=[];c.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 jAe(e){var t=e.meta,n=e.value;t&&n!==void 0&&i1(t,n)}Ae.addHandler("editKey",jAe);function BAe(e){var t=e.meta,n=e.value,r=e.lng;if(t&&n!==void 0){i1(t,n);var i=r||Ae.i18n.getLng();Ae.i18n.setResource(i,t.ns,t.key,n),Ae.i18n.triggerRerender()}}Ae.addHandler("commitKey",BAe);function zAe(e){if(Array.isArray(e))return B4(e)}function HAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1264
1264
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UAe(e){return zAe(e)||AN(e)||_N(e)||HAe()}function VAe(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&&i1(l,s.value),a&&Object.values(a).forEach(function(c){i1(c,s.value)}),Ae.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,UAe(n.originalChildNodes))}}),Ae.i18n.triggerRerender(),Ae.locizeSavedHandler&&Ae.locizeSavedHandler(e),window.locizeSavedHandler&&window.locizeSavedHandler(e)}Ae.addHandler("commitKeys",VAe);function WAe(e){Ae.initialized=!0,clearInterval(Ae.initInterval),delete Ae.initInterval,Ae.sendCurrentParsedContent(),Ae.sendCurrentTargetLanguage()}Ae.addHandler("confirmInitialized",WAe);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 kL(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){Yt(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 ra={};function qAe(){Object.values(ra).forEach(function(e){document.body.contains(e.node)||(ih(e.id,e.node),delete ra[e.id])})}function GAe(e,t,n){!e||!t||!n||(ra[e]||(ra[e]={id:e,node:n}),ra[e].keys=kL(kL({},ra[e].keys),{},Yt({},"".concat(t),"uninstrumented")))}function YAe(e){return ra[e]}var X4={save:GAe,clean:qAe,get:YAe,data:ra};function AL(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 J4(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,c=s.left+document.documentElement.scrollLeft,d=c+n.offsetWidth,f=Math.max(r,c),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:c,y:b?i:l<i?l:a},w=x.x-o.x,S=x.y-o.y,T=Math.pow(Math.pow(w,2)+Math.pow(S,2),1/2);return Math.floor(T)}function _L(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 KAe(e){return e!=null&&e===e.window}function ZAe(e){return KAe(e)?e:e.nodeType===9&&e.defaultView}function OL(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=ZAe(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 QAe(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],c=OL(l);l.nodeType===1&&c.bottom<i&&(o=a+1),!s&&c.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=OL(f);if(m.left>r)break;f&&f.nodeType!==8&&(t=f)}}return t}function XAe(e){var t=e.textContent||e.text&&e.text.innerText||e.placeholder;if(typeof t=="string")return t.replace(/\n +/g,"").trim()}function ts(e,t){return e&&e.getAttribute&&e.getAttribute(t)}function RL(e){var t=ts(e,"data-i18n");if(t)return t;if(e.nodeType===window.Node.TEXT_NODE&&e.parentElement)return RL(e.parentElement)}function JAe(e){var t,n=function r(i){var o=ts(i,"i18next-options");if(o||(o=ts(i,"data-i18next-options")),o||(o=ts(i,"i18n-options")),o||(o=ts(i,"data-i18n-options")),o){var s={};try{s=JSON.parse(o)}catch{}s.ns&&(t=s.ns)}t||(t=ts(i,"i18next-ns")),t||(t=ts(i,"data-i18next-ns")),t||(t=ts(i,"i18n-ns")),t||(t=ts(i,"data-i18n-ns")),!t&&i.parentElement&&r(i.parentElement)};return n(e),t}function e_e(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 t_e=_L(function(e,t){Object.values(uo.data).forEach(function(n){if(AL(n.node)){var r=J4(e,n.node);if(r<5)E_e(n,n.node,n.keys);else if(r>5){var i=n.ribbonBox?J4(e,n.ribbonBox):1e3;i>10&&ih(n,n.node,n.keys)}}}),Object.values(X4.data).forEach(function(n){if(AL(n.node)){var r=J4(e,n.node);r<10?k_e(n,n.node,n.keys):r>10&&ih(n,n.node,n.keys)}})},50),ew;function o1(e){ew=function(n){t_e(n,e)},document.addEventListener("mousemove",ew)}function tw(){document.removeEventListener("mousemove",ew)}var n_e='<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>',r_e=`
1265
1265
  <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">
1266
1266
  <g stroke="none" class="B">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timum/booking",
3
- "version": "1.10.1",
4
- "next_version": "1.10.1",
3
+ "version": "1.10.2",
4
+ "next_version": "1.10.2",
5
5
  "current_major_version": "1",
6
6
  "license": "CC-BY-ND-4.0",
7
7
  "type": "module",