@timum/booking 1.5.6 → 1.5.7
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 +1 -1
- package/build/booking.umd.cjs +1 -1
- package/build/{index-403efd1f.js → index-0a337bef.js} +1 -1
- package/build/{index-323ca9d6.js → index-1733a1c8.js} +1 -1
- package/build/{index-4897f38a.js → index-27164277.js} +1 -1
- package/build/{index-53756423.js → index-2fca1232.js} +1 -1
- package/build/{index-4ab2f66f.js → index-61fde8ed.js} +1 -1
- package/build/{index-c226bd0e.js → index-8c21f0a7.js} +1 -1
- package/build/{index-91d3532e.js → index-92a9e1b3.js} +1 -1
- package/build/{index-a29ebc5d.js → index-97b5a47c.js} +1 -1
- package/build/{index-974a2f29.js → index-ab4ea2aa.js} +1 -1
- package/build/{index-a2865cd2.js → index-b70f40ff.js} +1 -1
- package/build/{index-96e7cb25.js → index-b9c2cdb7.js} +24 -24
- package/package.json +2 -2
package/build/booking.js
CHANGED
package/build/booking.umd.cjs
CHANGED
|
@@ -1473,7 +1473,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1473
1473
|
`,'consider adding the "data-locize-editor-ignore:" attribute to the element:',e),t.warned=!0),!0}var n=e.dataset&&(e.dataset.i18nextEditorElement==="true"||e.dataset.locizeEditorIgnore==="true");return!n&&e.parentElement?Oy(e.parentElement):n}function lRe(e,t){var n,r,i=function(){r&&clearTimeout(r),r=setTimeout(function(){n&&(n=!1)},200)},o=[],a=Pj(function(){t(o),o=[]},100),s=new MutationObserver(function(l){if(n){i();return}var c=!1;l.forEach(function(d){if(!(d.type==="attributes"&&!Aj.includes(d.attributeName))){if(Object.keys(zd).forEach(function(m){var v=zd[m];v.lastTriggerDate+6e4<Date.now()&&delete zd[m]}),d.type==="childList"){var f=0;if(Oy(d.target)||(d.addedNodes.forEach(function(m){Oy(m)||(f=f+1)},0),d.removedNodes.forEach(function(m){Oy(m)||(f=f+1)},0)),f===0)return}if(c=!0,d.target&&d.target.uniqueID){var g=zd[d.target.uniqueID]||{triggered:0};g.triggered=g.triggered+1,g.lastTriggerDate=Date.now(),zd[d.target.uniqueID]=g}var h=o.reduce(function(m,v){return!!(m||v.contains(d.target)||!d.target.parentElement)},!1);h||(o=o.filter(function(m){return!d.target.contains(m)}),o.push(d.target))}}),c&&a()});return{start:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{attributes:!0,childList:!0,characterData:!0,subtree:!0};s.observe(e,c)},skipNext:function(){n=!0}}}function uRe(){for(var e=0,t=0,n=0,r=0,i=document.getElementsByClassName("i18next-editor-popup"),o=null,a=null,s=100,l=0;l<i.length;l++){var c=i[l],d=m(c);c.onmousedown=function(){this.style.zIndex=""+ ++s},d&&(d.parentPopup=c,d.onmousedown=f)}function f(v){a||(a=document.getElementById("i18next-editor-popup-overlay")),a&&(a.style.display="block"),J8(),o=this.parentPopup,o.style.zIndex=""+ ++s,v=v||window.event,n=v.clientX,r=v.clientY,document.onmouseup=h,document.onmousemove=g}function g(v){o&&(v=v||window.event,e=n-v.clientX,t=r-v.clientY,n=v.clientX,r=v.clientY,o.style.top=o.offsetTop-t+"px",o.style.left=o.offsetLeft-e+"px")}function h(){wy(),a&&(a.style.display="none"),document.onmouseup=null,document.onmousemove=null}function m(v){var w=v.getElementsByClassName("i18next-editor-popup-header");return w.length===1?w[0]:null}}function cRe(){for(var e=document.getElementsByClassName("i18next-editor-popup"),t=null,n=null,r,i,o,a,s=0;s<e.length;s++){var l=e[s],c=document.createElement("div");c.className="resizer-right",l.appendChild(c),c.addEventListener("mousedown",g,!1),c.parentPopup=l;var d=document.createElement("div");d.className="resizer-bottom",l.appendChild(d),d.addEventListener("mousedown",g,!1),d.parentPopup=l;var f=document.createElement("div");f.className="resizer-both",l.appendChild(f),f.addEventListener("mousedown",g,!1),f.parentPopup=l}function g(v){J8(),n||(n=document.getElementById("i18next-editor-popup-overlay")),n&&(n.style.display="block"),t=this.parentPopup,r=v.clientX,i=v.clientY,o=parseInt(document.defaultView.getComputedStyle(t).width,10),a=parseInt(document.defaultView.getComputedStyle(t).height,10),document.documentElement.addEventListener("mousemove",h,!1),document.documentElement.addEventListener("mouseup",m,!1)}function h(v){t.style.width=o+v.clientX-r+"px",t.style.height=a+v.clientY-i+"px"}function m(){wy(),n&&(n.style.display="none"),document.documentElement.removeEventListener("mousemove",h,!1),document.documentElement.removeEventListener("mouseup",m,!1)}}function iz(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 oz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iz(Object(n),!0).forEach(function(r){Ir(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dRe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")return;var t=document.getElementById("locize"),n={};["projectId","version"].forEach(function(i){if(t){var o=t.getAttribute(i.toLowerCase())||t.getAttribute("data-"+i.toLowerCase());o==="true"&&(o=!0),o==="false"&&(o=!1),o!=null&&(n[i]=o)}}),n=oz(oz({},e.getLocizeDetails()),n),De.init(e),iRe(e),e==null||e.bindLanguageChange(function(i){De.sendCurrentTargetLanguage(e.getLng())});function r(){var i=lRe(document.body,function(o){o.forEach(function(a){sRe(a)}),De.sendCurrentParsedContent()});i.start(),wy(i),document.getElementById(e9)||(document.body.append(uAe(Rj(),function(){De.requestInitialize(n)})),uRe(),cRe())}if(document.body)return r();window.addEventListener("load",function(){return r()})}function fRe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=function(i){var o=GTe(i);if(!o)return{};i.preventDefault(),i.stopPropagation();var a=qTe(o),s=Nj(o),l=o.getBoundingClientRect?o:o.parentElement,c=l.getBoundingClientRect(),d=c.top,f=c.left,g=c.width,h=c.height,m=window.getComputedStyle(l,null),v=parseFloat(m.getPropertyValue("padding-top")),w=parseFloat(m.getPropertyValue("padding-bottom")),x=parseFloat(m.getPropertyValue("padding-right")),b=parseFloat(m.getPropertyValue("padding-left")),S=m.getPropertyValue("box-sizing");function $(){if(t.isLocizify)return t.defaultNS}e({tagName:l.tagName,text:a,key:s,ns:YTe(o)||$(),box:{top:d,left:f,width:S==="border-box"?g:g-x-b,height:S==="border-box"?h:h-v-w},style:m.cssText})};return n}function az(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 sz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?az(Object(n),!0).forEach(function(r){Ir(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):az(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(typeof document>"u")){var t=document.getElementById("locize"),n={};if(["projectId","version"].forEach(function(i){if(t){var o=t.getAttribute(i.toLowerCase())||t.getAttribute("data-"+i.toLowerCase());o==="true"&&(o=!0),o==="false"&&(o=!1),o!=null&&(n[i]=o)}}),n=sz(sz({},e.getLocizeDetails()),n),De.init(e,fRe(function(i){vr("clickedElement",{payload:i})},e.getLocizeDetails())),De.sendCurrentTargetLanguage=function(i){vr("setLng",{lng:i||e.getLng()})},typeof window<"u"){var r=window.document.location.href;window.addEventListener("load",function(){vr("hrefChanged",{href:window.document.location.href});var i=window.document.querySelector("body"),o=new window.MutationObserver(function(s){s.forEach(function(l){r!==window.document.location.href&&(r=window.document.location.href,vr("hrefChanged",{href:r}))})}),a={childList:!0,subtree:!0};o.observe(i,a)})}e==null||e.bindLanguageChange(function(i){De.sendCurrentTargetLanguage(e.getLng())}),e==null||e.bindMissingKeyHandler(function(i,o,a,s){De.onAddedKey(i,o,a,s)})}}function uz(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 cz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uz(Object(n),!0).forEach(function(r){Ir(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var d9=typeof window<"u";try{d9=self!==top}catch{}function pRe(e,t){e.use(OTe),typeof t.postProcess=="string"?t.postProcess=[t.postProcess,"subliminal"]:Array.isArray(t.postProcess)?t.postProcess.push("subliminal"):t.postProcess="subliminal",t.postProcessPassResolved=!0}function hRe(e){var t={getResource:function(r,i,o){return e.getResource(r,i,o)},setResource:function(r,i,o,a){return e.addResource(r,i,o,a,{silent:!0})},getResourceBundle:function(r,i,o){e.loadNamespaces(i,function(){o(e.getResourceBundle(r,i))})},getLng:function(){return e.resolvedLanguage||e.languages[0]},getSourceLng:function(){var r=e.options.fallbackLng;if(typeof r=="string")return r;if(Array.isArray(r))return r[r.length-1];if(r&&r.default){if(typeof r.default=="string")return r;if(Array.isArray(r.default))return r.default[r.default.length-1]}if(typeof r=="function"){var i=r(e.resolvedLanguage);if(typeof i=="string")return i;if(Array.isArray(i))return i[i.length-1]}return"dev"},getLocizeDetails:function(){var r;e.services.backendConnector.backend&&e.services.backendConnector.backend.options&&e.services.backendConnector.backend.options.loadPath&&e.services.backendConnector.backend.options.loadPath.indexOf(".locize.")>0?r="I18NextLocizeBackend":r=e.services.backendConnector.backend?e.services.backendConnector.backend.constructor.name:"options.resources";var i={backendName:r,sourceLng:t.getSourceLng(),i18nFormat:e.options.compatibilityJSON==="v3"?"i18next_v3":"i18next_v4",i18nFramework:"i18next",isLocizify:e.options.isLocizify,defaultNS:e.options.defaultNS};if(!e.options.backend&&!e.options.editor)return i;var o=e.options.backend||e.options.editor;return cz(cz({},i),{},{projectId:o.projectId,version:o.version})},bindLanguageChange:function(r){e.on("languageChanged",r)},bindMissingKeyHandler:function(r){e.options.missingKeyHandler=function(i,o,a,s,l,c){l||r(i,o,a,s)}},triggerRerender:function(){e.emit("editorSaved")}};return t}var dz,gRe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.qsProp=t.qsProp||"incontext",{type:"3rdParty",init:function(r){var i=r.options;dz=r;var o=t.show||KTe(t.qsProp)==="true";!d9&&o&&pRe(dz,i);var a=hRe(r);!d9&&o?dRe(a):lz(a)}}},mRe=gRe();function vRe(){lz({getLocizeDetails:function(){return{}},getLng:function(){},setResource:function(){},triggerRerender:function(){},getResourceBundle:function(){return{}}})}typeof window<"u"&&(window.locizeStartStandalone=vRe);var fz=[],yRe=fz.forEach,bRe=fz.slice;function Ou(e){return yRe.call(bRe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function xRe(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}}function f9(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(!e)return{};var o=r(i.shift());!e[o]&&n&&(e[o]=new n),e=e[o]}return e?{obj:e,k:r(i.shift())}:{}}function p9(e,t,n){var r=f9(e,t,Object),i=r.obj,o=r.k;i[o]=n}function wRe(e,t,n,r){var i=f9(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function pz(e,t){var n=f9(e,t),r=n.obj,i=n.k;if(r)return r[i]}var hz=new RegExp("{{(.+?)}}","g");function SRe(e){return e==null?"":""+e}function Hh(e,t,n){var r,i;function o(a){return a.replace(/\$/g,"$$$$")}for(;r=hz.exec(e);)i=r[1].trim(),typeof i!="string"&&(i=SRe(i)),i||(i=""),i=o(i),e=e.replace(r[0],t[i]||i),hz.lastIndex=0;return e}function Uh(e,t){return t.reduce(function(n,r){if(n)return n;if(!e||!e[r]||typeof e[r]!="string"||!e[r].toLowerCase()===r.toLowerCase()){var i='i18next-locize-backend :: got "'.concat(e[r],'" in options for ').concat(r," which is invalid.");return console.warn(i),i}return!1},!1)}function gz(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function $Re(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var h9={exports:{}},_y={exports:{}},mz;function CRe(){return mz||(mz=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Nr<"u"&&Nr,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var s=typeof o<"u"&&o||typeof self<"u"&&self||typeof s<"u"&&s,l={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function c(P){return P&&DataView.prototype.isPrototypeOf(P)}if(l.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(P){return P&&d.indexOf(Object.prototype.toString.call(P))>-1};function g(P){if(typeof P!="string"&&(P=String(P)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(P)||P==="")throw new TypeError('Invalid character in header field name: "'+P+'"');return P.toLowerCase()}function h(P){return typeof P!="string"&&(P=String(P)),P}function m(P){var B={next:function(){var q=P.shift();return{done:q===void 0,value:q}}};return l.iterable&&(B[Symbol.iterator]=function(){return B}),B}function v(P){this.map={},P instanceof v?P.forEach(function(B,q){this.append(q,B)},this):Array.isArray(P)?P.forEach(function(B){this.append(B[0],B[1])},this):P&&Object.getOwnPropertyNames(P).forEach(function(B){this.append(B,P[B])},this)}v.prototype.append=function(P,B){P=g(P),B=h(B);var q=this.map[P];this.map[P]=q?q+", "+B:B},v.prototype.delete=function(P){delete this.map[g(P)]},v.prototype.get=function(P){return P=g(P),this.has(P)?this.map[P]:null},v.prototype.has=function(P){return this.map.hasOwnProperty(g(P))},v.prototype.set=function(P,B){this.map[g(P)]=h(B)},v.prototype.forEach=function(P,B){for(var q in this.map)this.map.hasOwnProperty(q)&&P.call(B,this.map[q],q,this)},v.prototype.keys=function(){var P=[];return this.forEach(function(B,q){P.push(q)}),m(P)},v.prototype.values=function(){var P=[];return this.forEach(function(B){P.push(B)}),m(P)},v.prototype.entries=function(){var P=[];return this.forEach(function(B,q){P.push([q,B])}),m(P)},l.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function w(P){if(P.bodyUsed)return Promise.reject(new TypeError("Already read"));P.bodyUsed=!0}function x(P){return new Promise(function(B,q){P.onload=function(){B(P.result)},P.onerror=function(){q(P.error)}})}function b(P){var B=new FileReader,q=x(B);return B.readAsArrayBuffer(P),q}function S(P){var B=new FileReader,q=x(B);return B.readAsText(P),q}function $(P){for(var B=new Uint8Array(P),q=new Array(B.length),H=0;H<B.length;H++)q[H]=String.fromCharCode(B[H]);return q.join("")}function C(P){if(P.slice)return P.slice(0);var B=new Uint8Array(P.byteLength);return B.set(new Uint8Array(P)),B.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(P){this.bodyUsed=this.bodyUsed,this._bodyInit=P,P?typeof P=="string"?this._bodyText=P:l.blob&&Blob.prototype.isPrototypeOf(P)?this._bodyBlob=P:l.formData&&FormData.prototype.isPrototypeOf(P)?this._bodyFormData=P:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(P)?this._bodyText=P.toString():l.arrayBuffer&&l.blob&&c(P)?(this._bodyArrayBuffer=C(P.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(P)||f(P))?this._bodyArrayBuffer=C(P):this._bodyText=P=Object.prototype.toString.call(P):this._bodyText="",this.headers.get("content-type")||(typeof P=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(P)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var P=w(this);if(P)return P;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var P=w(this);return P||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(b)}),this.text=function(){var P=w(this);if(P)return P;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve($(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}var A=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function R(P){var B=P.toUpperCase();return A.indexOf(B)>-1?B:P}function D(P,B){if(!(this instanceof D))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');B=B||{};var q=B.body;if(P instanceof D){if(P.bodyUsed)throw new TypeError("Already read");this.url=P.url,this.credentials=P.credentials,B.headers||(this.headers=new v(P.headers)),this.method=P.method,this.mode=P.mode,this.signal=P.signal,!q&&P._bodyInit!=null&&(q=P._bodyInit,P.bodyUsed=!0)}else this.url=String(P);if(this.credentials=B.credentials||this.credentials||"same-origin",(B.headers||!this.headers)&&(this.headers=new v(B.headers)),this.method=R(B.method||this.method||"GET"),this.mode=B.mode||this.mode||null,this.signal=B.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&q)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(q),(this.method==="GET"||this.method==="HEAD")&&(B.cache==="no-store"||B.cache==="no-cache")){var H=/([?&])_=[^&]*/;if(H.test(this.url))this.url=this.url.replace(H,"$1_="+new Date().getTime());else{var Z=/\?/;this.url+=(Z.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}D.prototype.clone=function(){return new D(this,{body:this._bodyInit})};function _(P){var B=new FormData;return P.trim().split("&").forEach(function(q){if(q){var H=q.split("="),Z=H.shift().replace(/\+/g," "),K=H.join("=").replace(/\+/g," ");B.append(decodeURIComponent(Z),decodeURIComponent(K))}}),B}function L(P){var B=new v,q=P.replace(/\r?\n[\t ]+/g," ");return q.split("\r").map(function(H){return H.indexOf(`
|
|
1474
1474
|
`)===0?H.substr(1,H.length):H}).forEach(function(H){var Z=H.split(":"),K=Z.shift().trim();if(K){var J=Z.join(":").trim();B.append(K,J)}}),B}T.call(D.prototype);function z(P,B){if(!(this instanceof z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');B||(B={}),this.type="default",this.status=B.status===void 0?200:B.status,this.ok=this.status>=200&&this.status<300,this.statusText=B.statusText===void 0?"":""+B.statusText,this.headers=new v(B.headers),this.url=B.url||"",this._initBody(P)}T.call(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},z.error=function(){var P=new z(null,{status:0,statusText:""});return P.type="error",P};var W=[301,302,303,307,308];z.redirect=function(P,B){if(W.indexOf(B)===-1)throw new RangeError("Invalid status code");return new z(null,{status:B,headers:{location:P}})},a.DOMException=s.DOMException;try{new a.DOMException}catch{a.DOMException=function(B,q){this.message=B,this.name=q;var H=Error(B);this.stack=H.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function U(P,B){return new Promise(function(q,H){var Z=new D(P,B);if(Z.signal&&Z.signal.aborted)return H(new a.DOMException("Aborted","AbortError"));var K=new XMLHttpRequest;function J(){K.abort()}K.onload=function(){var be={status:K.status,statusText:K.statusText,headers:L(K.getAllResponseHeaders()||"")};be.url="responseURL"in K?K.responseURL:be.headers.get("X-Request-URL");var me="response"in K?K.response:K.responseText;setTimeout(function(){q(new z(me,be))},0)},K.onerror=function(){setTimeout(function(){H(new TypeError("Network request failed"))},0)},K.ontimeout=function(){setTimeout(function(){H(new TypeError("Network request failed"))},0)},K.onabort=function(){setTimeout(function(){H(new a.DOMException("Aborted","AbortError"))},0)};function ge(be){try{return be===""&&s.location.href?s.location.href:be}catch{return be}}K.open(Z.method,ge(Z.url),!0),Z.credentials==="include"?K.withCredentials=!0:Z.credentials==="omit"&&(K.withCredentials=!1),"responseType"in K&&(l.blob?K.responseType="blob":l.arrayBuffer&&Z.headers.get("Content-Type")&&Z.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(K.responseType="arraybuffer")),B&&typeof B.headers=="object"&&!(B.headers instanceof v)?Object.getOwnPropertyNames(B.headers).forEach(function(be){K.setRequestHeader(be,h(B.headers[be]))}):Z.headers.forEach(function(be,me){K.setRequestHeader(me,be)}),Z.signal&&(Z.signal.addEventListener("abort",J),K.onreadystatechange=function(){K.readyState===4&&Z.signal.removeEventListener("abort",J)}),K.send(typeof Z._bodyInit>"u"?null:Z._bodyInit)})}return U.polyfill=!0,s.fetch||(s.fetch=U,s.Headers=v,s.Request=D,s.Response=z),a.Headers=v,a.Request=D,a.Response=z,a.fetch=U,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(_y,_y.exports)),_y.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Nr<"u"&&Nr.fetch?n=Nr.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof $Re<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||CRe();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(h9,h9.exports);var vz=h9.exports;const yz=Qi(vz),bz=Uu({__proto__:null,default:yz},[vz]);function Iy(e){"@babel/helpers - typeof";return Iy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iy(e)}var Ka;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Ka=global.fetch:typeof window<"u"&&window.fetch?Ka=window.fetch:Ka=fetch);var Wh;(typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Iy(XMLHttpRequest))==="object")&&(typeof global<"u"&&global.XMLHttpRequest?Wh=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Wh=window.XMLHttpRequest));var Dy;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Dy=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Dy=window.ActiveXObject)),!Ka&&bz&&!Wh&&!Dy&&(Ka=yz||bz),typeof Ka!="function"&&(Ka=void 0);var ERe=function(t,n,r,i){var o={};typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-locize-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),t.authorize&&t.apiKey&&(o.Authorization=t.apiKey),(r||t.setContentTypeJSON)&&(o["Content-Type"]="application/json");var a=function(l){var c=l.headers&&l.headers.get("x-cache")==="Error from cloudfront";if(!l.ok)return i(l.statusText||"Error",{status:l.status,resourceNotExisting:c});l.text().then(function(d){i(null,{status:l.status,data:d,resourceNotExisting:c})}).catch(i)};typeof fetch=="function"?fetch(n,{method:r?"POST":"GET",body:r?JSON.stringify(r):void 0,headers:o}).then(a).catch(i):Ka(n,{method:r?"POST":"GET",body:r?JSON.stringify(r):void 0,headers:o}).then(a).catch(i)},kRe=function(t,n,r,i){try{var o;Wh?o=new Wh:o=new Dy("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.authorize&&t.apiKey&&o.setRequestHeader("Authorization",t.apiKey),(r||t.setContentTypeJSON)&&o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){var a=o.getResponseHeader("x-cache")==="Error from cloudfront";o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText,resourceNotExisting:a})},o.send(JSON.stringify(r))}catch(a){console&&console.log(a)}},g9=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Ka)return ERe(t,n,r,i);if(typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Iy(XMLHttpRequest))==="object"||typeof ActiveXObject=="function")return kRe(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Vh(e){"@babel/helpers - typeof";return Vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vh(e)}function TRe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RRe(r.key),r)}}function ARe(e,t,n){return t&&xz(e.prototype,t),n&&xz(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function RRe(e){var t=ORe(e,"string");return Vh(t)==="symbol"?t:String(t)}function ORe(e,t){if(Vh(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vh(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _Re=function(){return{loadPath:"https://api.locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}",privatePath:"https://api.locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}",getLanguagesPath:"https://api.locize.app/languages/{{projectId}}",addPath:"https://api.locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}",updatePath:"https://api.locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}",referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",private:!1,translatedPercentageThreshold:.9,failLoadingOnEmptyJSON:!1,allowedAddOrUpdateHosts:["localhost"],onSaved:!1,reloadInterval:typeof window<"u"?!1:60*60*1e3,checkForProjectTimeout:3*1e3,storageExpiration:60*60*1e3,writeDebounce:5*1e3}},m9;try{m9=typeof window<"u"&&window.localStorage!==null;var wz="notExistingLocizeProject";window.localStorage.setItem(wz,"foo"),window.localStorage.removeItem(wz)}catch{m9=!1}function IRe(e){var t=function(){},n=function(){};return m9?(t=function(i){window.localStorage.setItem("notExistingLocizeProject_".concat(i),Date.now())},n=function(i){var o=window.localStorage.getItem("notExistingLocizeProject_".concat(i));return o?Date.now()-o>e?(window.localStorage.removeItem("notExistingLocizeProject_".concat(i)),!1):!0:!1}):typeof document<"u"&&(t=function(i){var o=new Date;o.setTime(o.getTime()+e);var a="; expires=".concat(o.toGMTString()),s="notExistingLocizeProject_".concat(i);try{document.cookie="".concat(s,"=").concat(Date.now()).concat(a,";path=/")}catch{}},n=function(i){var o="notExistingLocizeProject_".concat(i),a="".concat(o,"=");try{for(var s=document.cookie.split(";"),l=0;l<s.length;l++){for(var c=s[l];c.charAt(0)===" ";)c=c.substring(1,c.length);if(c.indexOf(a)===0)return!0}}catch{}return!1}),{setProjectNotExisting:t,isProjectNotExisting:n}}var v9=function(t,n,r){var i={};return n.authorize&&n.apiKey&&(i.Authorization=n.apiKey),(r||n.setContentTypeJSON)&&(i["Content-Type"]="application/json"),{method:r?"POST":"GET",url:t,headers:i,body:r}},y9=function(t,n,r){if(t.request.length===1){try{var i=t.request(n);i&&typeof i.then=="function"?i.then(function(o){return r(null,o)}).catch(r):r(null,i)}catch(o){r(o)}return}t.request(n,r)},Sz=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;TRe(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",t&&t.projectId?this.init(null,t,r,n):this.init(t,n,r,i)}return ARe(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;!i.referenceLng&&o.fallbackLng&&Array.isArray(o.fallbackLng)&&o.fallbackLng[0]!=="dev"&&(i.referenceLng=o.fallbackLng[0]),this.services=n;var s=_Re(),l=Ou(i,this.options||{});l.reloadInterval&&l.reloadInterval<5*60*1e3&&(console.warn("Your configured reloadInterval option is to low."),l.reloadInterval=s.reloadInterval),this.options=Ou(i,this.options||{},s),this.allOptions=o,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=IRe(this.options.storageExpiration),this.options.pull&&console.warn('The pull API was removed use "private: true" option instead: https://docs.locize.com/integration/api#fetch-private-namespace-resources');var c=typeof window<"u"&&window.location&&window.location.hostname;c?(this.isAddOrUpdateAllowed=typeof this.options.allowedAddOrUpdateHosts=="function"?this.options.allowedAddOrUpdateHosts(c):this.options.allowedAddOrUpdateHosts.indexOf(c)>-1,n&&n.logger&&(o.saveMissing||o.updateMissing)&&(this.isAddOrUpdateAllowed?c!=="localhost"&&n.logger.warn('locize-backend: you are using the save or update missings feature from this host "'.concat(c,`".
|
|
1475
1475
|
Make sure you will not use it in production!
|
|
1476
|
-
https://docs.locize.com/guides-tips-and-tricks/going-production`)):n.logger.warn(typeof this.options.allowedAddOrUpdateHosts=="function"?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(c,'".'):'locize-backend: will not save or update missings because the host "'.concat(c,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,typeof a=="function"&&this.getOptions(function(d,f,g){if(d)return a(d);r.options.referenceLng=i.referenceLng||f.referenceLng||r.options.referenceLng,a(null,f,g)}),this.queuedWrites={pending:{}},this.debouncedProcess=xRe(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval(function(){return r.reload()},this.options.reloadInterval))}},{key:"reload",value:function(){var n=this,r=this.services||{logger:console},i=r.backendConnector,o=r.languageUtils,a=r.logger;if(i){var s=i.language;if(!(s&&s.toLowerCase()==="cimode")){var l=[],c=function(f){var g=o.toResolveHierarchy(f);g.forEach(function(h){l.indexOf(h)<0&&l.push(h)})};c(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(d){return c(d)}),l.forEach(function(d){n.allOptions.ns.forEach(function(f){i.read(d,f,"read",null,null,function(g,h){g&&a.warn("loading namespace ".concat(f," for language ").concat(d," failed"),g),!g&&h&&a.log("loaded namespace ".concat(f," for language ").concat(d),h),i.loaded("".concat(d,"|").concat(f),g,h)})})})}}}},{key:"getLanguages",value:function(n){var r=this,i;n||(i=gz(),n=function(l,c){if(l)return i.reject(l);i.resolve(c)});var o=Uh(this.options,["projectId"]);if(o)return n(new Error(o));var a=Hh(this.options.getLanguagesPath,{projectId:this.options.projectId});if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting)return n(new Error("locize project ".concat(this.options.projectId," does not exist!")));if(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(n),!(this.getLanguagesCalls.length>1))return this.loadUrl({},a,function(s,l,c){if(!r.somethingLoaded&&c&&c.resourceNotExisting){r.isProjectNotExisting=!0,r.storage.setProjectNotExisting(r.options.projectId);var d=new Error("locize project ".concat(r.options.projectId," does not exist!")),f=r.getLanguagesCalls;return r.getLanguagesCalls=[],f.forEach(function(m){return m(d)})}if(l){var g=Object.keys(l).reduce(function(m,v){var w=l[v];return w.isReferenceLanguage&&(m=v),m},"");g&&r.options.referenceLng!==g&&(r.options.referenceLng=g)}r.somethingLoaded=!0;var h=r.getLanguagesCalls;r.getLanguagesCalls=[],h.forEach(function(m){return m(s,l)})}),i}},{key:"getOptions",value:function(n){var r=this,i;return n||(i=gz(),n=function(a,s){if(a)return i.reject(a);i.resolve(s)}),this.getLanguages(function(o,a){if(o)return n(o);var s=Object.keys(a);if(!s.length)return n(new Error("was unable to load languages via API"));var l=s.reduce(function(d,f){var g=a[f];return g.translated[r.options.version]&&g.translated[r.options.version]>=r.options.translatedPercentageThreshold&&d.push(f),d},[]),c=s.reduce(function(d,f){return f.indexOf("-")>-1?!0:d},!1);n(null,{fallbackLng:r.options.referenceLng,referenceLng:r.options.referenceLng,supportedLngs:l,load:c?"all":"languageOnly"},a)}),i}},{key:"checkIfProjectExists",value:function(n){var r=this,i=this.services||{logger:console},o=i.logger;if(this.somethingLoaded){n&&n(null);return}if(this.alreadyRequestedCheckIfProjectExists){setTimeout(function(){return r.checkIfProjectExists(n)},this.options.checkForProjectTimeout);return}this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages(function(a){a&&a.message&&a.message.indexOf("does not exist")>0&&o&&o.error(a.message),n&&n(a)})}},{key:"read",value:function(n,r,i){var o=this,a=this.services||{logger:console},s=a.logger,l,c={};if(this.options.private){var d=Uh(this.options,["projectId","version","apiKey"]);if(d)return i(new Error(d),!1);l=Hh(this.options.privatePath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),c={authorize:!0}}else{var f=Uh(this.options,["projectId","version"]);if(f)return i(new Error(f),!1);l=Hh(this.options.loadPath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var g=new Error("locize project ".concat(this.options.projectId," does not exist!"));s&&s.error(g.message),i&&i(g);return}this.loadUrl(c,l,function(h,m,v){o.somethingLoaded||(v&&v.resourceNotExisting?setTimeout(function(){return o.checkIfProjectExists()},o.options.checkForProjectTimeout):o.somethingLoaded=!0),i(h,m)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this;n=Ou(n,this.options),typeof i=="function"&&(o=i,i=void 0),o=o||function(){};var s=function(d,f){var g=f&&f.resourceNotExisting;if(f&&(f.status===408||f.status===400))return o("failed loading "+r,!0,{resourceNotExisting:g});if(f&&(f.status>=500&&f.status<600||!f.status))return o("failed loading "+r,!0,{resourceNotExisting:g});if(f&&f.status>=400&&f.status<500)return o("failed loading "+r,!1,{resourceNotExisting:g});if(!f&&d&&d.message&&d.message.indexOf("Failed to fetch")>-1)return o("failed loading "+r,!0,{resourceNotExisting:g});if(d)return o(d,!1);var h,m;try{typeof f.data=="string"?h=JSON.parse(f.data):h=f.data}catch{m="failed parsing "+r+" to json"}if(m)return o(m,!1);if(a.options.failLoadingOnEmptyJSON&&!Object.keys(h).length)return o("loaded result empty for "+r,!1,{resourceNotExisting:g});o(null,h,{resourceNotExisting:g})};if(!this.options.request||r.indexOf("/languages/".concat(n.projectId))>0)return g9(n,r,i,s);var l=v9(r,n,i);y9(this.options,l,s)}},{key:"create",value:function(n,r,i,o,a,s){var l=this;typeof a!="function"&&(a=function(){}),this.checkIfProjectExists(function(c){if(c)return a(c);var d=Uh(l.options,["projectId","version","apiKey","referenceLng"]);if(d)return a(new Error(d));if(!l.isAddOrUpdateAllowed)return a("host is not allowed to create key.");typeof n=="string"&&(n=[n]),n.filter(function(f){return f===l.options.referenceLng}).length<1&&l.services&&l.services.logger&&l.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(l.options.referenceLng,'" was not in the list of to save languages: ').concat(n.join(", ")," (open your site in the reference language to save missings).")),n.forEach(function(f){f===l.options.referenceLng&&l.queue.call(l,l.options.referenceLng,r,i,o,a,s)})})}},{key:"update",value:function(n,r,i,o,a,s){var l=this;typeof a!="function"&&(a=function(){}),this.checkIfProjectExists(function(c){if(c)return a(c);var d=Uh(l.options,["projectId","version","apiKey","referenceLng"]);if(d)return a(new Error(d));if(!l.isAddOrUpdateAllowed)return a("host is not allowed to update key.");s||(s={}),typeof n=="string"&&(n=[n]),s.isUpdate=!0,n.forEach(function(f){f===l.options.referenceLng&&l.queue.call(l,l.options.referenceLng,r,i,o,a,s)})})}},{key:"writePage",value:function(n,r,i,o){var a=Hh(this.options.addPath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),s=Hh(this.options.updatePath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),l=!1,c=!1,d={},f={};i.forEach(function(w){var x=w.options&&w.options.tDescription?{value:w.fallbackValue||"",context:{text:w.options.tDescription}}:w.fallbackValue||"";w.options&&w.options.isUpdate?(c||(c=!0),f[w.key]=x):(l||(l=!0),d[w.key]=x)});var g=0;l&&g++,c&&g++;var h=function(x){g--,g||o(x)};if(g||h(),l)if(!this.options.request)g9(Ou({authorize:!0},this.options),a,d,h);else{var m=v9(a,Ou({authorize:!0},this.options),d);y9(this.options,m,h)}if(c)if(!this.options.request)g9(Ou({authorize:!0},this.options),s,f,h);else{var v=v9(s,Ou({authorize:!0},this.options),f);y9(this.options,v,h)}}},{key:"write",value:function(n,r){var i=this,o=pz(this.queuedWrites,["locks",n,r]);if(!o){var a=pz(this.queuedWrites,[n,r]);p9(this.queuedWrites,[n,r],[]);var s=1e3,l=a.filter(function(h){return h.callback}).map(function(h){return h.callback});if(a.length){p9(this.queuedWrites,["locks",n,r],!0);var c=function(){p9(i.queuedWrites,["locks",n,r],!1),l.forEach(function(m){return m()}),i.options.onSaved&&i.options.onSaved(n,r),i.debouncedProcess(n,r)},d=a.length/s,f=0,g=a.splice(0,s);for(this.writePage(n,r,g,function(){f++,f>=d&&c()});g.length===s;)g=a.splice(0,s),g.length&&this.writePage(n,r,g,function(){f++,f>=d&&c()})}}}},{key:"process",value:function(){var n=this;Object.keys(this.queuedWrites).forEach(function(r){r!=="locks"&&Object.keys(n.queuedWrites[r]).forEach(function(i){var o=n.queuedWrites[r][i];o.length&&n.write(r,i)})})}},{key:"queue",value:function(n,r,i,o,a,s){wRe(this.queuedWrites,[n,r],{key:i,fallbackValue:o||"",callback:a,options:s}),this.debouncedProcess()}}]),e}();Sz.type="backend";const DRe=Vt.use(xj).use(Nee).use(mRe).use(Sz).init({detection:{caches:["cookie"],order:["querystring","cookie","localStorage","navigator"],lookupQuerystring:"culture"},compatibilityJSON:"v3",interpolation:{prefix:"{{",suffix:"}}"},fallbackLng:"de",ns:["bookingjs"],load:"languageOnly",backend:{projectId:"ea068e6d-18b6-4697-bd21-65291883e27e",referenceLng:"de"}}).then(()=>{wn.defaultLocale=Vt.resolvedLanguage});function PRe(){const e=Te(zk);ae.useEffect(()=>{let t=!0;return n(),()=>{t=!1};async function n(){if(e){if(await DRe,e.localization&&t)for(const[r,i]of Object.entries(e.localization))if(Vt.hasResourceBundle(r,"bookingjs")){const o=Vt.getResourceBundle(r,"bookingjs");Vt.removeResourceBundle(r,"bookingjs");const a=In.merge({},o,i);Vt.addResourceBundle(r,"bookingjs",a)}else Vt.addResourceBundle(r,"bookingjs",i);e.culture&&e.culture!==Vt.resolvedLanguage&&t&&(await Vt.changeLanguage(e.culture),wn.defaultLocale=Vt.resolvedLanguage)}}},[e])}const MRe=e=>{var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""},b9=function(e,t,n){if(!e.includes("@")&&!e.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i))if(!t)console.warn("One or more ref parameters aren't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.");else return`${e}${n?"@"+n:""}@${t}`;return e};function $z({appConfig:e={},muiTheme:t={},fcConfig:n={}}){var w,x,b;const r=window.location.search,i=new URLSearchParams(e.queryString||r),o=i.get("pData")??i.get("pdata"),a=i.get("pDataPlatform")?{platform:i.get("pDataPlatform"),id:i.get("pDataId"),idPropName:i.get("pDataIdPropName")}:void 0,s=MRe("PLAY_SESSION"),l=i.get("channelKey")??i.get("channelkey"),c=i.get("X-SIGNED-APP-CUSTOMER"),d=i.get("resId"),f=i.getAll("ref"),g=i.getAll("tslRef"),h=i.get("culture"),m=e.queryHash||window.location.hash,[,,v]=(m==null?void 0:m.split("/"))??[];if((o||a)&&(e.pData=o??a),l&&(e.channelKey=l),f&&f.length>0&&(e.ref=f),g&&g.length>0&&(e.tslRefs=g),h&&(e.culture=h),In.isArray(e.ref)?e.ref=[...e.ref]:e.ref?e.ref=[e.ref]:e.ref=[],In.isArray(e.tslRefs)?e.tslRefs=[...e.tslRefs]:e.tslRefs?e.tslRefs=[e.tslRefs]:e.tslRefs=[],In.isArray(e.prdRefs)?e.prdRefs=[...e.prdRefs]:e.prdRefs?e.prdRefs=[e.prdRefs]:e.prdRefs=[],(!e.ref||e.ref.length===0)&&(!e.tslRefs||e.tslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let S=0;S<((w=e==null?void 0:e.ref)==null?void 0:w.length);S++)e.ref[S]=b9(e.ref[S],e.platform,e.prvUuid);for(let S=0;S<((x=e==null?void 0:e.tslRefs)==null?void 0:x.length);S++)e.tslRefs[S]=b9(e.tslRefs[S],e.platform,e.prvUuid);for(let S=0;S<((b=e==null?void 0:e.prdRefs)==null?void 0:b.length);S++)e.prdRefs[S]=b9(e.prdRefs[S],e.platform,e.prvUuid);return s&&(e.cookie=s),c&&(e.cancelableAppointment={authToken:c,appointmentUuid:v,customerUuid:a.id,resourceUuid:d}),e.host&&_q(e.host),k.jsx(k.Fragment,{children:k.jsx(O.Suspense,{fallback:k.jsx(iS,{visible:!0}),children:k.jsx(NK,{injectFirst:!0,children:k.jsx(wJ,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{horizontal:"right",vertical:"bottom"},children:k.jsx(lq,{store:tTe,children:k.jsxs(pj,{muiTheme:t,fcConfig:n,appConfig:e,children:[k.jsx(PRe,{}),k.jsx(kY,{children:S=>k.jsx(Uke,{...S})})]})})})})})})}function NRe(e,t,n,r){let i=r==null?void 0:r.getElementById((e==null?void 0:e.rootElId)??"bookingjs");i||(i=document.getElementById((e==null?void 0:e.rootElId)??"bookingjs")),sE(i).render(k.jsx(ae.StrictMode,{children:k.jsx($z,{appConfig:e,muiTheme:t,fcConfig:n})}))}function LRe(e,t,n){const r=document.getElementById((e==null?void 0:e.rootElId)??"bookingjs"),i=document.createElement("iframe");i.style="border-width:0",i.height=e.height,i.width="100%",r.appendChild(i),e.queryString=window.location.search,e.queryHash=window.location.hash,document.appConfig=e,document.muiTheme=t,document.fcConfig=n;const o=e.cdnUrl??"https://cdn.timum.de/bookingjs/1/booking.js";i.srcdoc=`
|
|
1476
|
+
https://docs.locize.com/guides-tips-and-tricks/going-production`)):n.logger.warn(typeof this.options.allowedAddOrUpdateHosts=="function"?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(c,'".'):'locize-backend: will not save or update missings because the host "'.concat(c,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,typeof a=="function"&&this.getOptions(function(d,f,g){if(d)return a(d);r.options.referenceLng=i.referenceLng||f.referenceLng||r.options.referenceLng,a(null,f,g)}),this.queuedWrites={pending:{}},this.debouncedProcess=xRe(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval(function(){return r.reload()},this.options.reloadInterval))}},{key:"reload",value:function(){var n=this,r=this.services||{logger:console},i=r.backendConnector,o=r.languageUtils,a=r.logger;if(i){var s=i.language;if(!(s&&s.toLowerCase()==="cimode")){var l=[],c=function(f){var g=o.toResolveHierarchy(f);g.forEach(function(h){l.indexOf(h)<0&&l.push(h)})};c(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(d){return c(d)}),l.forEach(function(d){n.allOptions.ns.forEach(function(f){i.read(d,f,"read",null,null,function(g,h){g&&a.warn("loading namespace ".concat(f," for language ").concat(d," failed"),g),!g&&h&&a.log("loaded namespace ".concat(f," for language ").concat(d),h),i.loaded("".concat(d,"|").concat(f),g,h)})})})}}}},{key:"getLanguages",value:function(n){var r=this,i;n||(i=gz(),n=function(l,c){if(l)return i.reject(l);i.resolve(c)});var o=Uh(this.options,["projectId"]);if(o)return n(new Error(o));var a=Hh(this.options.getLanguagesPath,{projectId:this.options.projectId});if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting)return n(new Error("locize project ".concat(this.options.projectId," does not exist!")));if(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(n),!(this.getLanguagesCalls.length>1))return this.loadUrl({},a,function(s,l,c){if(!r.somethingLoaded&&c&&c.resourceNotExisting){r.isProjectNotExisting=!0,r.storage.setProjectNotExisting(r.options.projectId);var d=new Error("locize project ".concat(r.options.projectId," does not exist!")),f=r.getLanguagesCalls;return r.getLanguagesCalls=[],f.forEach(function(m){return m(d)})}if(l){var g=Object.keys(l).reduce(function(m,v){var w=l[v];return w.isReferenceLanguage&&(m=v),m},"");g&&r.options.referenceLng!==g&&(r.options.referenceLng=g)}r.somethingLoaded=!0;var h=r.getLanguagesCalls;r.getLanguagesCalls=[],h.forEach(function(m){return m(s,l)})}),i}},{key:"getOptions",value:function(n){var r=this,i;return n||(i=gz(),n=function(a,s){if(a)return i.reject(a);i.resolve(s)}),this.getLanguages(function(o,a){if(o)return n(o);var s=Object.keys(a);if(!s.length)return n(new Error("was unable to load languages via API"));var l=s.reduce(function(d,f){var g=a[f];return g.translated[r.options.version]&&g.translated[r.options.version]>=r.options.translatedPercentageThreshold&&d.push(f),d},[]),c=s.reduce(function(d,f){return f.indexOf("-")>-1?!0:d},!1);n(null,{fallbackLng:r.options.referenceLng,referenceLng:r.options.referenceLng,supportedLngs:l,load:c?"all":"languageOnly"},a)}),i}},{key:"checkIfProjectExists",value:function(n){var r=this,i=this.services||{logger:console},o=i.logger;if(this.somethingLoaded){n&&n(null);return}if(this.alreadyRequestedCheckIfProjectExists){setTimeout(function(){return r.checkIfProjectExists(n)},this.options.checkForProjectTimeout);return}this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages(function(a){a&&a.message&&a.message.indexOf("does not exist")>0&&o&&o.error(a.message),n&&n(a)})}},{key:"read",value:function(n,r,i){var o=this,a=this.services||{logger:console},s=a.logger,l,c={};if(this.options.private){var d=Uh(this.options,["projectId","version","apiKey"]);if(d)return i(new Error(d),!1);l=Hh(this.options.privatePath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),c={authorize:!0}}else{var f=Uh(this.options,["projectId","version"]);if(f)return i(new Error(f),!1);l=Hh(this.options.loadPath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var g=new Error("locize project ".concat(this.options.projectId," does not exist!"));s&&s.error(g.message),i&&i(g);return}this.loadUrl(c,l,function(h,m,v){o.somethingLoaded||(v&&v.resourceNotExisting?setTimeout(function(){return o.checkIfProjectExists()},o.options.checkForProjectTimeout):o.somethingLoaded=!0),i(h,m)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this;n=Ou(n,this.options),typeof i=="function"&&(o=i,i=void 0),o=o||function(){};var s=function(d,f){var g=f&&f.resourceNotExisting;if(f&&(f.status===408||f.status===400))return o("failed loading "+r,!0,{resourceNotExisting:g});if(f&&(f.status>=500&&f.status<600||!f.status))return o("failed loading "+r,!0,{resourceNotExisting:g});if(f&&f.status>=400&&f.status<500)return o("failed loading "+r,!1,{resourceNotExisting:g});if(!f&&d&&d.message&&d.message.indexOf("Failed to fetch")>-1)return o("failed loading "+r,!0,{resourceNotExisting:g});if(d)return o(d,!1);var h,m;try{typeof f.data=="string"?h=JSON.parse(f.data):h=f.data}catch{m="failed parsing "+r+" to json"}if(m)return o(m,!1);if(a.options.failLoadingOnEmptyJSON&&!Object.keys(h).length)return o("loaded result empty for "+r,!1,{resourceNotExisting:g});o(null,h,{resourceNotExisting:g})};if(!this.options.request||r.indexOf("/languages/".concat(n.projectId))>0)return g9(n,r,i,s);var l=v9(r,n,i);y9(this.options,l,s)}},{key:"create",value:function(n,r,i,o,a,s){var l=this;typeof a!="function"&&(a=function(){}),this.checkIfProjectExists(function(c){if(c)return a(c);var d=Uh(l.options,["projectId","version","apiKey","referenceLng"]);if(d)return a(new Error(d));if(!l.isAddOrUpdateAllowed)return a("host is not allowed to create key.");typeof n=="string"&&(n=[n]),n.filter(function(f){return f===l.options.referenceLng}).length<1&&l.services&&l.services.logger&&l.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(l.options.referenceLng,'" was not in the list of to save languages: ').concat(n.join(", ")," (open your site in the reference language to save missings).")),n.forEach(function(f){f===l.options.referenceLng&&l.queue.call(l,l.options.referenceLng,r,i,o,a,s)})})}},{key:"update",value:function(n,r,i,o,a,s){var l=this;typeof a!="function"&&(a=function(){}),this.checkIfProjectExists(function(c){if(c)return a(c);var d=Uh(l.options,["projectId","version","apiKey","referenceLng"]);if(d)return a(new Error(d));if(!l.isAddOrUpdateAllowed)return a("host is not allowed to update key.");s||(s={}),typeof n=="string"&&(n=[n]),s.isUpdate=!0,n.forEach(function(f){f===l.options.referenceLng&&l.queue.call(l,l.options.referenceLng,r,i,o,a,s)})})}},{key:"writePage",value:function(n,r,i,o){var a=Hh(this.options.addPath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),s=Hh(this.options.updatePath,{lng:n,ns:r,projectId:this.options.projectId,version:this.options.version}),l=!1,c=!1,d={},f={};i.forEach(function(w){var x=w.options&&w.options.tDescription?{value:w.fallbackValue||"",context:{text:w.options.tDescription}}:w.fallbackValue||"";w.options&&w.options.isUpdate?(c||(c=!0),f[w.key]=x):(l||(l=!0),d[w.key]=x)});var g=0;l&&g++,c&&g++;var h=function(x){g--,g||o(x)};if(g||h(),l)if(!this.options.request)g9(Ou({authorize:!0},this.options),a,d,h);else{var m=v9(a,Ou({authorize:!0},this.options),d);y9(this.options,m,h)}if(c)if(!this.options.request)g9(Ou({authorize:!0},this.options),s,f,h);else{var v=v9(s,Ou({authorize:!0},this.options),f);y9(this.options,v,h)}}},{key:"write",value:function(n,r){var i=this,o=pz(this.queuedWrites,["locks",n,r]);if(!o){var a=pz(this.queuedWrites,[n,r]);p9(this.queuedWrites,[n,r],[]);var s=1e3,l=a.filter(function(h){return h.callback}).map(function(h){return h.callback});if(a.length){p9(this.queuedWrites,["locks",n,r],!0);var c=function(){p9(i.queuedWrites,["locks",n,r],!1),l.forEach(function(m){return m()}),i.options.onSaved&&i.options.onSaved(n,r),i.debouncedProcess(n,r)},d=a.length/s,f=0,g=a.splice(0,s);for(this.writePage(n,r,g,function(){f++,f>=d&&c()});g.length===s;)g=a.splice(0,s),g.length&&this.writePage(n,r,g,function(){f++,f>=d&&c()})}}}},{key:"process",value:function(){var n=this;Object.keys(this.queuedWrites).forEach(function(r){r!=="locks"&&Object.keys(n.queuedWrites[r]).forEach(function(i){var o=n.queuedWrites[r][i];o.length&&n.write(r,i)})})}},{key:"queue",value:function(n,r,i,o,a,s){wRe(this.queuedWrites,[n,r],{key:i,fallbackValue:o||"",callback:a,options:s}),this.debouncedProcess()}}]),e}();Sz.type="backend";const DRe=Vt.use(xj).use(Nee).use(mRe).use(Sz).init({detection:{caches:["cookie"],order:["querystring","cookie","localStorage","navigator"],lookupQuerystring:"culture"},compatibilityJSON:"v3",interpolation:{prefix:"{{",suffix:"}}"},fallbackLng:"de",ns:["bookingjs"],load:"languageOnly",backend:{projectId:"ea068e6d-18b6-4697-bd21-65291883e27e",referenceLng:"de"}}).then(()=>{wn.defaultLocale=Vt.resolvedLanguage});function PRe(){const e=Te(zk);ae.useEffect(()=>{let t=!0;return n(),()=>{t=!1};async function n(){if(e){if(await DRe,e.localization&&t)for(const[r,i]of Object.entries(e.localization))if(Vt.hasResourceBundle(r,"bookingjs")){const o=Vt.getResourceBundle(r,"bookingjs");Vt.removeResourceBundle(r,"bookingjs");const a=In.merge({},o,i);Vt.addResourceBundle(r,"bookingjs",a)}else Vt.addResourceBundle(r,"bookingjs",i);e.culture&&e.culture!==Vt.resolvedLanguage&&t&&(await Vt.changeLanguage(e.culture),wn.defaultLocale=Vt.resolvedLanguage)}}},[e])}const MRe=e=>{var t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?t.pop():""},b9=function(e,t,n){if(!e.includes("@")&&!e.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i))if(!t)console.warn("One or more ref parameters aren't fully qualified AND you have not provided a `platform` prop which allows timum to do it for you. Most likely timum won't find anything. Please either add a platform prop to your configuration or use a full reference in either the ref prop or a ref url parameter.");else return`${e}${n?"@"+n:""}@${t}`;return e};function $z({appConfig:e={},muiTheme:t={},fcConfig:n={}}){var x,b,S;const r=window.location.search,i=new URLSearchParams(e.queryString||r),o=i.get("pData")??i.get("pdata"),a=i.get("pDataPlatform")?{platform:i.get("pDataPlatform"),id:i.get("pDataId"),idPropName:i.get("pDataIdPropName")}:void 0,s=MRe("PLAY_SESSION"),l=i.get("channelKey")??i.get("channelkey"),c=i.get("X-SIGNED-APP-CUSTOMER"),d=i.get("resId"),f=i.getAll("ref"),g=i.getAll("tslRefs"),h=i.getAll("prdRefs"),m=i.get("culture"),v=e.queryHash||window.location.hash,[,,w]=(v==null?void 0:v.split("/"))??[];if((o||a)&&(e.pData=o??a),l&&(e.channelKey=l),f&&f.length>0&&(e.ref=f),g&&g.length>0&&(e.tslRefs=g),h&&h.length>0&&(e.prdRefs=h),m&&(e.culture=m),In.isArray(e.ref)?e.ref=[...e.ref]:e.ref?e.ref=[e.ref]:e.ref=[],In.isArray(e.tslRefs)?e.tslRefs=[...e.tslRefs]:e.tslRefs?e.tslRefs=[e.tslRefs]:e.tslRefs=[],In.isArray(e.prdRefs)?e.prdRefs=[...e.prdRefs]:e.prdRefs?e.prdRefs=[e.prdRefs]:e.prdRefs=[],(!e.ref||e.ref.length===0)&&(!e.tslRefs||e.tslRefs.length===0)){console.log("timum hides itself. No reference in either url or options detected.");return}for(let $=0;$<((x=e==null?void 0:e.ref)==null?void 0:x.length);$++)e.ref[$]=b9(e.ref[$],e.platform,e.prvUuid);for(let $=0;$<((b=e==null?void 0:e.tslRefs)==null?void 0:b.length);$++)e.tslRefs[$]=b9(e.tslRefs[$],e.platform,e.prvUuid);for(let $=0;$<((S=e==null?void 0:e.prdRefs)==null?void 0:S.length);$++)e.prdRefs[$]=b9(e.prdRefs[$],e.platform,e.prvUuid);return s&&(e.cookie=s),c&&(e.cancelableAppointment={authToken:c,appointmentUuid:w,customerUuid:a.id,resourceUuid:d}),e.host&&_q(e.host),k.jsx(k.Fragment,{children:k.jsx(O.Suspense,{fallback:k.jsx(iS,{visible:!0}),children:k.jsx(NK,{injectFirst:!0,children:k.jsx(wJ,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{horizontal:"right",vertical:"bottom"},children:k.jsx(lq,{store:tTe,children:k.jsxs(pj,{muiTheme:t,fcConfig:n,appConfig:e,children:[k.jsx(PRe,{}),k.jsx(kY,{children:$=>k.jsx(Uke,{...$})})]})})})})})})}function NRe(e,t,n,r){let i=r==null?void 0:r.getElementById((e==null?void 0:e.rootElId)??"bookingjs");i||(i=document.getElementById((e==null?void 0:e.rootElId)??"bookingjs")),sE(i).render(k.jsx(ae.StrictMode,{children:k.jsx($z,{appConfig:e,muiTheme:t,fcConfig:n})}))}function LRe(e,t,n){const r=document.getElementById((e==null?void 0:e.rootElId)??"bookingjs"),i=document.createElement("iframe");i.style="border-width:0",i.height=e.height,i.width="100%",r.appendChild(i),e.queryString=window.location.search,e.queryHash=window.location.hash,document.appConfig=e,document.muiTheme=t,document.fcConfig=n;const o=e.cdnUrl??"https://cdn.timum.de/bookingjs/1/booking.js";i.srcdoc=`
|
|
1477
1477
|
<div id='${(e==null?void 0:e.rootElId)??"bookingjs"}' style='margin: 0px 16px 0px 8px'>
|
|
1478
1478
|
<script type='module'>
|
|
1479
1479
|
import('${o}').then((timum) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as p, w as b, x as m, y as H, z as x, _ as C, A as r, C as n, D as T, E as f, F as h } from "./index-
|
|
1
|
+
import { v as p, w as b, x as m, y as H, z as x, _ as C, A as r, C as n, D as T, E as f, F as h } from "./index-b9c2cdb7.js";
|
|
2
2
|
function v(e) {
|
|
3
3
|
return p("MuiTableHead", e);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as b, w as m, x as F, y as f, z as d, _ as x, A as l, C as n, D as C, E as T, F as v } from "./index-
|
|
1
|
+
import { v as b, w as m, x as F, y as f, z as d, _ as x, A as l, C as n, D as C, E as T, F as v } from "./index-b9c2cdb7.js";
|
|
2
2
|
function y(o) {
|
|
3
3
|
return b("MuiTableFooter", o);
|
|
4
4
|
}
|
|
@@ -44270,27 +44270,27 @@ function Hj(e, t) {
|
|
|
44270
44270
|
return n;
|
|
44271
44271
|
}
|
|
44272
44272
|
var VR = ae.lazy(function() {
|
|
44273
|
-
return import("./index-
|
|
44273
|
+
return import("./index-1733a1c8.js");
|
|
44274
44274
|
}), GR = ae.lazy(function() {
|
|
44275
|
-
return import("./index-
|
|
44275
|
+
return import("./index-0a337bef.js");
|
|
44276
44276
|
});
|
|
44277
44277
|
ae.lazy(function() {
|
|
44278
|
-
return import("./index-
|
|
44278
|
+
return import("./index-92a9e1b3.js");
|
|
44279
44279
|
});
|
|
44280
44280
|
var Hl = ae.lazy(function() {
|
|
44281
|
-
return import("./index-
|
|
44281
|
+
return import("./index-b70f40ff.js");
|
|
44282
44282
|
}), KCe = ae.lazy(function() {
|
|
44283
|
-
return import("./index-
|
|
44283
|
+
return import("./index-ab4ea2aa.js");
|
|
44284
44284
|
}), ZCe = ae.lazy(function() {
|
|
44285
|
-
return import("./index-
|
|
44285
|
+
return import("./index-2fca1232.js");
|
|
44286
44286
|
}), qR = ae.lazy(function() {
|
|
44287
|
-
return import("./index-
|
|
44287
|
+
return import("./index-27164277.js");
|
|
44288
44288
|
}), QCe = ae.lazy(function() {
|
|
44289
|
-
return import("./index-
|
|
44289
|
+
return import("./index-97b5a47c.js");
|
|
44290
44290
|
}), XCe = ae.lazy(function() {
|
|
44291
|
-
return import("./index-
|
|
44291
|
+
return import("./index-8c21f0a7.js");
|
|
44292
44292
|
}), JCe = ae.lazy(function() {
|
|
44293
|
-
return import("./index-
|
|
44293
|
+
return import("./index-61fde8ed.js");
|
|
44294
44294
|
}), e7e = ae.lazy(function() {
|
|
44295
44295
|
return Promise.resolve().then(function() {
|
|
44296
44296
|
return r7e;
|
|
@@ -66356,39 +66356,39 @@ const CFe = (e) => {
|
|
|
66356
66356
|
return e;
|
|
66357
66357
|
};
|
|
66358
66358
|
function EFe({ appConfig: e = {}, muiTheme: t = {}, fcConfig: n = {} }) {
|
|
66359
|
-
var
|
|
66359
|
+
var x, b, S;
|
|
66360
66360
|
const r = window.location.search, i = new URLSearchParams(e.queryString || r), o = i.get("pData") ?? i.get("pdata"), a = i.get("pDataPlatform") ? {
|
|
66361
66361
|
platform: i.get("pDataPlatform"),
|
|
66362
66362
|
id: i.get("pDataId"),
|
|
66363
66363
|
idPropName: i.get("pDataIdPropName")
|
|
66364
|
-
} : void 0, s = CFe("PLAY_SESSION"), l = i.get("channelKey") ?? i.get("channelkey"), c = i.get("X-SIGNED-APP-CUSTOMER"), d = i.get("resId"), f = i.getAll("ref"), g = i.getAll("
|
|
66365
|
-
if ((o || a) && (e.pData = o ?? a), l && (e.channelKey = l), f && f.length > 0 && (e.ref = f), g && g.length > 0 && (e.tslRefs = g), h && (e.
|
|
66364
|
+
} : void 0, s = CFe("PLAY_SESSION"), l = i.get("channelKey") ?? i.get("channelkey"), c = i.get("X-SIGNED-APP-CUSTOMER"), d = i.get("resId"), f = i.getAll("ref"), g = i.getAll("tslRefs"), h = i.getAll("prdRefs"), m = i.get("culture"), v = e.queryHash || window.location.hash, [, , w] = (v == null ? void 0 : v.split("/")) ?? [];
|
|
66365
|
+
if ((o || a) && (e.pData = o ?? a), l && (e.channelKey = l), f && f.length > 0 && (e.ref = f), g && g.length > 0 && (e.tslRefs = g), h && h.length > 0 && (e.prdRefs = h), m && (e.culture = m), Pn.isArray(e.ref) ? e.ref = [...e.ref] : e.ref ? e.ref = [e.ref] : e.ref = [], Pn.isArray(e.tslRefs) ? e.tslRefs = [...e.tslRefs] : e.tslRefs ? e.tslRefs = [e.tslRefs] : e.tslRefs = [], Pn.isArray(e.prdRefs) ? e.prdRefs = [...e.prdRefs] : e.prdRefs ? e.prdRefs = [e.prdRefs] : e.prdRefs = [], (!e.ref || e.ref.length === 0) && (!e.tslRefs || e.tslRefs.length === 0)) {
|
|
66366
66366
|
console.log(
|
|
66367
66367
|
"timum hides itself. No reference in either url or options detected."
|
|
66368
66368
|
);
|
|
66369
66369
|
return;
|
|
66370
66370
|
}
|
|
66371
|
-
for (let
|
|
66372
|
-
e.ref[
|
|
66373
|
-
e.ref[
|
|
66371
|
+
for (let $ = 0; $ < ((x = e == null ? void 0 : e.ref) == null ? void 0 : x.length); $++)
|
|
66372
|
+
e.ref[$] = uw(
|
|
66373
|
+
e.ref[$],
|
|
66374
66374
|
e.platform,
|
|
66375
66375
|
e.prvUuid
|
|
66376
66376
|
);
|
|
66377
|
-
for (let
|
|
66378
|
-
e.tslRefs[
|
|
66379
|
-
e.tslRefs[
|
|
66377
|
+
for (let $ = 0; $ < ((b = e == null ? void 0 : e.tslRefs) == null ? void 0 : b.length); $++)
|
|
66378
|
+
e.tslRefs[$] = uw(
|
|
66379
|
+
e.tslRefs[$],
|
|
66380
66380
|
e.platform,
|
|
66381
66381
|
e.prvUuid
|
|
66382
66382
|
);
|
|
66383
|
-
for (let
|
|
66384
|
-
e.prdRefs[
|
|
66385
|
-
e.prdRefs[
|
|
66383
|
+
for (let $ = 0; $ < ((S = e == null ? void 0 : e.prdRefs) == null ? void 0 : S.length); $++)
|
|
66384
|
+
e.prdRefs[$] = uw(
|
|
66385
|
+
e.prdRefs[$],
|
|
66386
66386
|
e.platform,
|
|
66387
66387
|
e.prvUuid
|
|
66388
66388
|
);
|
|
66389
66389
|
return s && (e.cookie = s), c && (e.cancelableAppointment = {
|
|
66390
66390
|
authToken: c,
|
|
66391
|
-
appointmentUuid:
|
|
66391
|
+
appointmentUuid: w,
|
|
66392
66392
|
customerUuid: a.id,
|
|
66393
66393
|
resourceUuid: d
|
|
66394
66394
|
}), e.host && hee(e.host), /* @__PURE__ */ k.jsx(k.Fragment, { children: /* @__PURE__ */ k.jsx(O.Suspense, { fallback: /* @__PURE__ */ k.jsx(k9, { visible: !0 }), children: /* @__PURE__ */ k.jsx(Sne, { injectFirst: !0, children: /* @__PURE__ */ k.jsx(
|
|
@@ -66405,7 +66405,7 @@ function EFe({ appConfig: e = {}, muiTheme: t = {}, fcConfig: n = {} }) {
|
|
|
66405
66405
|
appConfig: e,
|
|
66406
66406
|
children: [
|
|
66407
66407
|
/* @__PURE__ */ k.jsx($Fe, {}),
|
|
66408
|
-
/* @__PURE__ */ k.jsx(ute, { children: (
|
|
66408
|
+
/* @__PURE__ */ k.jsx(ute, { children: ($) => /* @__PURE__ */ k.jsx(_Me, { ...$ }) })
|
|
66409
66409
|
]
|
|
66410
66410
|
}
|
|
66411
66411
|
) })
|