bookito-widget 0.42.7-beta.3 → 0.42.7-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.42.7-beta.4](https://github.com/Carlito-GmbH/carlito-platform/compare/bookito-widget-0.42.7-beta.3...bookito-widget-0.42.7-beta.4) (2026-05-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.42.7-beta.3](https://github.com/Carlito-GmbH/carlito-platform/compare/bookito-widget-0.42.7-beta.2...bookito-widget-0.42.7-beta.3) (2026-05-15)
|
|
6
10
|
|
|
7
11
|
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
`));N(6989),N(60918);N(60581),N(78549),N(79810),N(91751),N(24775);let fe=function(E){return E.INVALID_TOKEN="1004",E.UNKNOWN="0",E.AUTH_FAILED="6",E.CHARGING_PROCESS_ALREADY_RUNNING="3003",E.CHARGING_POINT_NOT_FOUND="3004",E.CHARGING_POINT_IN_MAINTENENCE="3005",E.CHARGING_SIZE_NOT_FOUND="3006",E.CHARGING_POINT_NOT_READY="3007",E.CHARGING_POINT_PAYMENT_ERROR="3008",E}({});function getKeyByValue(E){return Object.keys(fe).find(O=>fe[O]===E)}class OrderandoError extends Error{constructor(E){const O=getKeyByValue(E);O?(super(`Orderando error: ${O}`),this.errorCode=void 0,this.errorCode=fe[O]):(super("Unkown Orderando error"),this.errorCode=void 0,this.errorCode=fe.UNKNOWN),console.error("Orderando error:",E)}toString(){var E;return null!=(E=getKeyByValue(this.errorCode))?E:""}}let me,ge="";async function request(E,O,N,{data:j,skipAuth:V=!1}={}){if(!ge)throw new Error("Customer code not defined!");let H,q={"content-type":"application/json"};me&&!V&&(q=Object.assign({},q,{Authorization:`Bearer ${me}`}));let W="";"POST"===N&&(H=JSON.stringify(j)),"GET"===N&&j&&(W=`?${Object.keys(j).map(E=>`${E}=${encodeURIComponent(j[E])}`).join("&")}`);const G=`https://api.ando.cloud/v1/${E}/${ge}${O}${W}`,X=await fetch(G,{method:N,body:H,headers:q}),K=await X.json();if(!K.success||!X.status.toString().startsWith("2")){var Y,Q;const E=null!=(Y=null==(Q=K.errors)||null==(Q=Q.find(E=>E.code))?void 0:Q.code)?Y:"0";throw new OrderandoError(E)}return K}function createPost(E){return function(O,N){return request(E,O,"POST",N)}}function createGet(E){return function(O,N){return request(E,O,"GET",N)}}createGet("order"),createPost("order");createGet("power"),createPost("power");N(5167),N(80596);N(96948);N(47222),N(73253),N(47069);function formatPrice(E,O="de-DE",N){return new Intl.NumberFormat(O,{style:"currency",currency:N,currencyDisplay:"narrowSymbol"}).format(E)}N(87803),N(5959),N(1182),N(33509),N(4568);N(34277),N(20035),N(45581),N(39208),N(98397),N(52958),N(89861),N(86105);var ye=N(8605),be=N(18727),ve=N(55823),we=N(86745),xe=N(77558);var Se=N(30853),ke=N.n(Se),_e=N(41386);N(36617),N(98674);const Ce="auth",Ae="token",Ee="/fake-cache-auth-endpoint";let Te;const Oe=new Set;function updateJwt(E){Te=E,Oe.forEach(E=>E())}async function readJwt(){if(Te)return Te;try{const E=await caches.open(Ce),O=await E.match(Ee);if(!O)return null;const N=(await O.json())[Ae];return updateJwt(N),N}catch(E){console.error("readJwt error:",E)}return Te}const Pe=["keypress","keydown","click","contextmenu","dblclick","mousemove","scroll","touchmove","touchstart"];let Ie=function(E){return E[E.Standard=1]="Standard",E[E.Advanced=2]="Advanced",E}({});class Idle{constructor(E){this.userReportedActive=!1,this.userIsActive=!1,this.userMouseIsInFrame=!1,this.attachedFrames=[],this.activityReportMode=Ie.Advanced,this.activityReportInSec=5,this.detectFramesInSec=-1,this.onActivity=()=>{},this.onEnterFrame=()=>{},this.onReportUserIsActive=()=>{},this.onReportUserIsIdle=()=>{},this.intervals=[],this.attachListenerToNewFrames=()=>{const E=Array.prototype.slice.call(window.document.getElementsByTagName("frame")),O=Array.prototype.slice.call(window.document.getElementsByTagName("iframe")),N=E.concat(O);for(const E of N)this.attachedFrames.indexOf(E)<0&&(E.addEventListener("mouseenter",this.onMouseEntersFrame.bind(this),this,!1),this.attachedFrames.push(E),this.userMouseIsInFrame=!0)},this.onUserActivity=()=>{this.onActivity(),this.userIsActive=!0,this.activityReportMode!==Ie.Advanced||this.userReportedActive||this.reportActivity(),this.userMouseIsInFrame=!1},this.overrideDefaultsWithOptions(E),Pe.forEach(E=>{window.addEventListener(E,this.onUserActivity,!1)}),this.intervals.push(window.setInterval(this.onTimerTick.bind(this),1e3*this.activityReportInSec)),this.detectFramesInSec>0&&this.intervals.push(window.setInterval(this.attachListenerToNewFrames,1e3*this.detectFramesInSec)),this.reportActivity()}onMouseEntersFrame(){this.onEnterFrame(),this.userMouseIsInFrame=!0}onTimerTick(){this.userReportedActive=!1,this.activityReportMode===Ie.Standard&&this.userIsActive||this.userMouseIsInFrame&&this.isPageVisible()?this.reportActivity():this.onReportUserIsIdle()}reportActivity(){this.onReportUserIsActive(),this.userReportedActive=!0,this.userIsActive=!1}overrideDefaultsWithOptions(E){this.activityReportInSec=E.activityReportInSec||this.activityReportInSec,this.activityReportMode=E.activityReportMode||this.activityReportMode,this.detectFramesInSec=E.detectFramesInSec||this.detectFramesInSec,this.onActivity=E.onActivity||this.onActivity,this.onEnterFrame=E.onEnterFrame||this.onEnterFrame,this.onReportUserIsActive=E.onReportUserIsActive||this.onReportUserIsActive,this.onReportUserIsIdle=E.onReportUserIsIdle||this.onReportUserIsIdle}isPageVisible(){return"hidden"!==document.visibilityState}dispose(){this.intervals.forEach(window.clearInterval),Pe.forEach(E=>{window.removeEventListener(E,this.onUserActivity,!1)})}}let Me=null;var De=N(61530);N(34683),N(13819);function getImageFormatUrl(E,O="large"){var N;if(!E)return;const j=null==(N=E.formats)||null==(N=N[O])?void 0:N.url;return j||(null==E?void 0:E.url)}function util_normalizeLocalizedValues(E,O={}){if(!E)return{};const{globalProperties:N=[]}=O,j={};E.locale&&(j[E.locale]=Object.assign({},E,{originalId:E.id}));const V=N.reduce((O,N)=>Object.assign({},O,{[N]:E[N]}),{});if(E.localizations)for(const O of E.localizations)null!=O&&O.locale&&(j[O.locale]=Object.assign({},O,V,{originalId:O.id,id:E.id}));return j}const Ne=(0,De.l)("main_content"),Re=(0,De.G)(),Le="production"===Re,Fe="development"===Re?window.location.origin:`${window.location.protocol}//${Le?"app":"staging-pms"}.${function getHostWithoutSubdomain(E=window.location.host){return E.split(".").slice(1).join(".")}()}`,je=encodeURIComponent(JSON.stringify({startUrl:window.location.href,startHost:window.location.host})),$e=Le?"9":"12",Be=Le?"https://applogin.com":"https://
|
|
340
|
+
`));N(6989),N(60918);N(60581),N(78549),N(79810),N(91751),N(24775);let fe=function(E){return E.INVALID_TOKEN="1004",E.UNKNOWN="0",E.AUTH_FAILED="6",E.CHARGING_PROCESS_ALREADY_RUNNING="3003",E.CHARGING_POINT_NOT_FOUND="3004",E.CHARGING_POINT_IN_MAINTENENCE="3005",E.CHARGING_SIZE_NOT_FOUND="3006",E.CHARGING_POINT_NOT_READY="3007",E.CHARGING_POINT_PAYMENT_ERROR="3008",E}({});function getKeyByValue(E){return Object.keys(fe).find(O=>fe[O]===E)}class OrderandoError extends Error{constructor(E){const O=getKeyByValue(E);O?(super(`Orderando error: ${O}`),this.errorCode=void 0,this.errorCode=fe[O]):(super("Unkown Orderando error"),this.errorCode=void 0,this.errorCode=fe.UNKNOWN),console.error("Orderando error:",E)}toString(){var E;return null!=(E=getKeyByValue(this.errorCode))?E:""}}let me,ge="";async function request(E,O,N,{data:j,skipAuth:V=!1}={}){if(!ge)throw new Error("Customer code not defined!");let H,q={"content-type":"application/json"};me&&!V&&(q=Object.assign({},q,{Authorization:`Bearer ${me}`}));let W="";"POST"===N&&(H=JSON.stringify(j)),"GET"===N&&j&&(W=`?${Object.keys(j).map(E=>`${E}=${encodeURIComponent(j[E])}`).join("&")}`);const G=`https://api.ando.cloud/v1/${E}/${ge}${O}${W}`,X=await fetch(G,{method:N,body:H,headers:q}),K=await X.json();if(!K.success||!X.status.toString().startsWith("2")){var Y,Q;const E=null!=(Y=null==(Q=K.errors)||null==(Q=Q.find(E=>E.code))?void 0:Q.code)?Y:"0";throw new OrderandoError(E)}return K}function createPost(E){return function(O,N){return request(E,O,"POST",N)}}function createGet(E){return function(O,N){return request(E,O,"GET",N)}}createGet("order"),createPost("order");createGet("power"),createPost("power");N(5167),N(80596);N(96948);N(47222),N(73253),N(47069);function formatPrice(E,O="de-DE",N){return new Intl.NumberFormat(O,{style:"currency",currency:N,currencyDisplay:"narrowSymbol"}).format(E)}N(87803),N(5959),N(1182),N(33509),N(4568);N(34277),N(20035),N(45581),N(39208),N(98397),N(52958),N(89861),N(86105);var ye=N(8605),be=N(18727),ve=N(55823),we=N(86745),xe=N(77558);var Se=N(30853),ke=N.n(Se),_e=N(41386);N(36617),N(98674);const Ce="auth",Ae="token",Ee="/fake-cache-auth-endpoint";let Te;const Oe=new Set;function updateJwt(E){Te=E,Oe.forEach(E=>E())}async function readJwt(){if(Te)return Te;try{const E=await caches.open(Ce),O=await E.match(Ee);if(!O)return null;const N=(await O.json())[Ae];return updateJwt(N),N}catch(E){console.error("readJwt error:",E)}return Te}const Pe=["keypress","keydown","click","contextmenu","dblclick","mousemove","scroll","touchmove","touchstart"];let Ie=function(E){return E[E.Standard=1]="Standard",E[E.Advanced=2]="Advanced",E}({});class Idle{constructor(E){this.userReportedActive=!1,this.userIsActive=!1,this.userMouseIsInFrame=!1,this.attachedFrames=[],this.activityReportMode=Ie.Advanced,this.activityReportInSec=5,this.detectFramesInSec=-1,this.onActivity=()=>{},this.onEnterFrame=()=>{},this.onReportUserIsActive=()=>{},this.onReportUserIsIdle=()=>{},this.intervals=[],this.attachListenerToNewFrames=()=>{const E=Array.prototype.slice.call(window.document.getElementsByTagName("frame")),O=Array.prototype.slice.call(window.document.getElementsByTagName("iframe")),N=E.concat(O);for(const E of N)this.attachedFrames.indexOf(E)<0&&(E.addEventListener("mouseenter",this.onMouseEntersFrame.bind(this),this,!1),this.attachedFrames.push(E),this.userMouseIsInFrame=!0)},this.onUserActivity=()=>{this.onActivity(),this.userIsActive=!0,this.activityReportMode!==Ie.Advanced||this.userReportedActive||this.reportActivity(),this.userMouseIsInFrame=!1},this.overrideDefaultsWithOptions(E),Pe.forEach(E=>{window.addEventListener(E,this.onUserActivity,!1)}),this.intervals.push(window.setInterval(this.onTimerTick.bind(this),1e3*this.activityReportInSec)),this.detectFramesInSec>0&&this.intervals.push(window.setInterval(this.attachListenerToNewFrames,1e3*this.detectFramesInSec)),this.reportActivity()}onMouseEntersFrame(){this.onEnterFrame(),this.userMouseIsInFrame=!0}onTimerTick(){this.userReportedActive=!1,this.activityReportMode===Ie.Standard&&this.userIsActive||this.userMouseIsInFrame&&this.isPageVisible()?this.reportActivity():this.onReportUserIsIdle()}reportActivity(){this.onReportUserIsActive(),this.userReportedActive=!0,this.userIsActive=!1}overrideDefaultsWithOptions(E){this.activityReportInSec=E.activityReportInSec||this.activityReportInSec,this.activityReportMode=E.activityReportMode||this.activityReportMode,this.detectFramesInSec=E.detectFramesInSec||this.detectFramesInSec,this.onActivity=E.onActivity||this.onActivity,this.onEnterFrame=E.onEnterFrame||this.onEnterFrame,this.onReportUserIsActive=E.onReportUserIsActive||this.onReportUserIsActive,this.onReportUserIsIdle=E.onReportUserIsIdle||this.onReportUserIsIdle}isPageVisible(){return"hidden"!==document.visibilityState}dispose(){this.intervals.forEach(window.clearInterval),Pe.forEach(E=>{window.removeEventListener(E,this.onUserActivity,!1)})}}let Me=null;var De=N(61530);N(34683),N(13819);function getImageFormatUrl(E,O="large"){var N;if(!E)return;const j=null==(N=E.formats)||null==(N=N[O])?void 0:N.url;return j||(null==E?void 0:E.url)}function util_normalizeLocalizedValues(E,O={}){if(!E)return{};const{globalProperties:N=[]}=O,j={};E.locale&&(j[E.locale]=Object.assign({},E,{originalId:E.id}));const V=N.reduce((O,N)=>Object.assign({},O,{[N]:E[N]}),{});if(E.localizations)for(const O of E.localizations)null!=O&&O.locale&&(j[O.locale]=Object.assign({},O,V,{originalId:O.id,id:E.id}));return j}const Ne=(0,De.l)("main_content"),Re=(0,De.G)(),Le="production"===Re,Fe="development"===Re?window.location.origin:`${window.location.protocol}//${Le?"app":"staging-pms"}.${function getHostWithoutSubdomain(E=window.location.host){return E.split(".").slice(1).join(".")}()}`,je=encodeURIComponent(JSON.stringify({startUrl:window.location.href,startHost:window.location.host})),$e=Le?"9":"12",Be=Le?"https://applogin.com":"https://staging.applogin.com",ze={apiUri:Ne,oauthUrls:{applogin:{init:`${Be}/login?redirect_uri=${Fe}/auth/callback/applogin&client_id=${$e}&scope=openid&response_type=code&state=${je}`,quickLogin:`${Be}/oauth/authorize?redirect_uri=${Fe}/auth/callback/applogin&client_id=${$e}&scope=openid&response_type=code&state=${je}`,callback:`${Ne}/api/auth/applogin/callback`}}};const Ue=(0,_e.Td)(),{link:Ve}=Ue,He=((0,j.A)(Ue,["link"]).useApolloNetworkStatus,ke()({uri:`${function config_getConciergeConfig(){return ze}().apiUri}/graphql`})),qe=["LoginMutation","RegisterMutation","ForgotPassword","LoginAsGuest","GetHotelBySubdomain","GetAppAuthImages","GetHotelCapabilitesBySubdomain","SearchHotelByName"],We=function setContext(E){return new we.C(function(O,N){var j=(0,ve.Tt)(O,[]);return new xe.c(function(V){var H,q=!1;return Promise.resolve(j).then(function(N){return E(N,O.getContext())}).then(O.setContext).then(function(){q||(H=N(O).subscribe({next:V.next.bind(V),error:V.error.bind(V),complete:V.complete.bind(V)}))}).catch(V.error.bind(V)),function(){q=!0,H&&H.unsubscribe()}})})}(async(E,{headers:O})=>{var N;const j=!qe.includes(null!=(N=E.operationName)?N:""),V=await readJwt(),H=(0,ae.FH)();return{headers:Object.assign({},O,j?{authorization:V?`Bearer ${V}`:""}:{},H?{"carlito-hub-access-token":H}:{})}}),Ge=["AppActionButton","AppAuthImage","AppRating","BlogPost","BookitoSetting","DailybirdSetting","Dailychirp","GenericAppAutoMessage","GuestChatAuthToken","Hotel","I18NLocale","PriceClass","StayInformation","SurroundingInformationCategory","SurroundingInformation","SurroundingInformationProperty","Theme","TvAppConfiguration","UploadFile","UploadFolder","UsersPermissionsPermission","UsersPermissionsRole","UsersPermissionsUser","VirtualHotelUser","WelcomeMessage"].reduce((E,O)=>Object.assign({},E,{[O]:{merge:!0}}),{}),Xe=["AppActionButtonEntity","AppAuthImageEntity","AppRatingEntity","BlogPostEntity","BookitoSettingEntity","DailybirdSettingEntity","DailychirpEntity","GenericAppAutoMessageEntity","GuestChatAuthTokenEntity","I18NLocaleEntity","PriceClassEntity","StayInformationEntity","SurroundingInformationCategoryEntity","SurroundingInformationEntity","SurroundingInformationPropertyEntity","ThemeEntity","TvAppConfigurationEntity","UploadFileEntity","UploadFolderEntity","UsersPermissionsPermissionEntity","UsersPermissionsRoleEntity","UsersPermissionsUserEntity","VirtualHotelUserEntity","WelcomeMessageEntity"].reduce((E,O)=>Object.assign({},E,{[O]:{keyFields:["id"],merge:!0}}),{}),Ke=new ye.R({link:Ve.concat(We.concat(He)),cache:new be.D({typePolicies:Object.assign({},Ge,Xe,{Hotel:{merge:!0,fields:{surroundingInformationCategories:{keyArgs:[],merge(E,O){var N,j;if(!E)return O;const V=null!=(N=E.data)?N:[],H=null!=(j=null==O?void 0:O.data)?j:[],q=new Set(V.map(E=>E.__ref)),W=[...V];for(const E of H)q.has(E.__ref)||W.push(E);return Object.assign({},O,{data:W})}}}}})})});!function autoRefetchWhenInactive({client:E}){function onTryRefresh(){if(null===Me)return;const O=Date.now()-Me;return O>=36e5?(console.log(`[AUTO REFETCH] Refetching all queries, content is ${O/1e3} seconds old.`),Me=Date.now(),void E.resetStore()):void 0}Me=Date.now(),document.addEventListener("visibilitychange",()=>{document.hidden||onTryRefresh()}),function refreshAfterTimeWhenIdle(){setTimeout(()=>{const E=new Idle({activityReportInSec:120,onReportUserIsIdle:()=>{E.dispose(),onTryRefresh(),refreshAfterTimeWhenIdle()}})},36e5)}()}({client:Ke});const Ye=Ke;(0,De.l)("carlito_federation");let Qe;const Ze=(0,X.J1)(Qe||(Qe=(E=>E)`
|
|
341
341
|
query GetAvailableLanguages($hotelId: ID!) {
|
|
342
342
|
hotel(id: $hotelId) {
|
|
343
343
|
data {
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
`));N(6989),N(60918);N(60581),N(78549),N(79810),N(91751),N(24775);let fe=function(E){return E.INVALID_TOKEN="1004",E.UNKNOWN="0",E.AUTH_FAILED="6",E.CHARGING_PROCESS_ALREADY_RUNNING="3003",E.CHARGING_POINT_NOT_FOUND="3004",E.CHARGING_POINT_IN_MAINTENENCE="3005",E.CHARGING_SIZE_NOT_FOUND="3006",E.CHARGING_POINT_NOT_READY="3007",E.CHARGING_POINT_PAYMENT_ERROR="3008",E}({});function getKeyByValue(E){return Object.keys(fe).find(O=>fe[O]===E)}class OrderandoError extends Error{constructor(E){const O=getKeyByValue(E);O?(super(`Orderando error: ${O}`),this.errorCode=void 0,this.errorCode=fe[O]):(super("Unkown Orderando error"),this.errorCode=void 0,this.errorCode=fe.UNKNOWN),console.error("Orderando error:",E)}toString(){var E;return null!=(E=getKeyByValue(this.errorCode))?E:""}}let me,ge="";async function request(E,O,N,{data:j,skipAuth:V=!1}={}){if(!ge)throw new Error("Customer code not defined!");let H,q={"content-type":"application/json"};me&&!V&&(q=Object.assign({},q,{Authorization:`Bearer ${me}`}));let W="";"POST"===N&&(H=JSON.stringify(j)),"GET"===N&&j&&(W=`?${Object.keys(j).map(E=>`${E}=${encodeURIComponent(j[E])}`).join("&")}`);const G=`https://api.ando.cloud/v1/${E}/${ge}${O}${W}`,X=await fetch(G,{method:N,body:H,headers:q}),K=await X.json();if(!K.success||!X.status.toString().startsWith("2")){var Y,Q;const E=null!=(Y=null==(Q=K.errors)||null==(Q=Q.find(E=>E.code))?void 0:Q.code)?Y:"0";throw new OrderandoError(E)}return K}function createPost(E){return function(O,N){return request(E,O,"POST",N)}}function createGet(E){return function(O,N){return request(E,O,"GET",N)}}createGet("order"),createPost("order");createGet("power"),createPost("power");N(5167),N(80596);N(96948);N(47222),N(73253),N(47069);function formatPrice(E,O="de-DE",N){return new Intl.NumberFormat(O,{style:"currency",currency:N,currencyDisplay:"narrowSymbol"}).format(E)}N(87803),N(5959),N(1182),N(33509),N(4568);N(34277),N(20035),N(45581),N(39208),N(98397),N(52958),N(89861),N(86105);var ye=N(8605),be=N(18727),ve=N(55823),we=N(86745),xe=N(77558);var Se=N(30853),ke=N.n(Se),_e=N(41386);N(36617),N(98674);const Ce="auth",Ae="token",Ee="/fake-cache-auth-endpoint";let Te;const Oe=new Set;function updateJwt(E){Te=E,Oe.forEach(E=>E())}async function readJwt(){if(Te)return Te;try{const E=await caches.open(Ce),O=await E.match(Ee);if(!O)return null;const N=(await O.json())[Ae];return updateJwt(N),N}catch(E){console.error("readJwt error:",E)}return Te}const Pe=["keypress","keydown","click","contextmenu","dblclick","mousemove","scroll","touchmove","touchstart"];let Ie=function(E){return E[E.Standard=1]="Standard",E[E.Advanced=2]="Advanced",E}({});class Idle{constructor(E){this.userReportedActive=!1,this.userIsActive=!1,this.userMouseIsInFrame=!1,this.attachedFrames=[],this.activityReportMode=Ie.Advanced,this.activityReportInSec=5,this.detectFramesInSec=-1,this.onActivity=()=>{},this.onEnterFrame=()=>{},this.onReportUserIsActive=()=>{},this.onReportUserIsIdle=()=>{},this.intervals=[],this.attachListenerToNewFrames=()=>{const E=Array.prototype.slice.call(window.document.getElementsByTagName("frame")),O=Array.prototype.slice.call(window.document.getElementsByTagName("iframe")),N=E.concat(O);for(const E of N)this.attachedFrames.indexOf(E)<0&&(E.addEventListener("mouseenter",this.onMouseEntersFrame.bind(this),this,!1),this.attachedFrames.push(E),this.userMouseIsInFrame=!0)},this.onUserActivity=()=>{this.onActivity(),this.userIsActive=!0,this.activityReportMode!==Ie.Advanced||this.userReportedActive||this.reportActivity(),this.userMouseIsInFrame=!1},this.overrideDefaultsWithOptions(E),Pe.forEach(E=>{window.addEventListener(E,this.onUserActivity,!1)}),this.intervals.push(window.setInterval(this.onTimerTick.bind(this),1e3*this.activityReportInSec)),this.detectFramesInSec>0&&this.intervals.push(window.setInterval(this.attachListenerToNewFrames,1e3*this.detectFramesInSec)),this.reportActivity()}onMouseEntersFrame(){this.onEnterFrame(),this.userMouseIsInFrame=!0}onTimerTick(){this.userReportedActive=!1,this.activityReportMode===Ie.Standard&&this.userIsActive||this.userMouseIsInFrame&&this.isPageVisible()?this.reportActivity():this.onReportUserIsIdle()}reportActivity(){this.onReportUserIsActive(),this.userReportedActive=!0,this.userIsActive=!1}overrideDefaultsWithOptions(E){this.activityReportInSec=E.activityReportInSec||this.activityReportInSec,this.activityReportMode=E.activityReportMode||this.activityReportMode,this.detectFramesInSec=E.detectFramesInSec||this.detectFramesInSec,this.onActivity=E.onActivity||this.onActivity,this.onEnterFrame=E.onEnterFrame||this.onEnterFrame,this.onReportUserIsActive=E.onReportUserIsActive||this.onReportUserIsActive,this.onReportUserIsIdle=E.onReportUserIsIdle||this.onReportUserIsIdle}isPageVisible(){return"hidden"!==document.visibilityState}dispose(){this.intervals.forEach(window.clearInterval),Pe.forEach(E=>{window.removeEventListener(E,this.onUserActivity,!1)})}}let Me=null;var De=N(61530);N(34683),N(13819);function getImageFormatUrl(E,O="large"){var N;if(!E)return;const j=null==(N=E.formats)||null==(N=N[O])?void 0:N.url;return j||(null==E?void 0:E.url)}function util_normalizeLocalizedValues(E,O={}){if(!E)return{};const{globalProperties:N=[]}=O,j={};E.locale&&(j[E.locale]=Object.assign({},E,{originalId:E.id}));const V=N.reduce((O,N)=>Object.assign({},O,{[N]:E[N]}),{});if(E.localizations)for(const O of E.localizations)null!=O&&O.locale&&(j[O.locale]=Object.assign({},O,V,{originalId:O.id,id:E.id}));return j}const Ne=(0,De.l)("main_content"),Re=(0,De.G)(),Le="production"===Re,Fe="development"===Re?window.location.origin:`${window.location.protocol}//${Le?"app":"staging-pms"}.${function getHostWithoutSubdomain(E=window.location.host){return E.split(".").slice(1).join(".")}()}`,je=encodeURIComponent(JSON.stringify({startUrl:window.location.href,startHost:window.location.host})),$e=Le?"9":"12",Be=Le?"https://applogin.com":"https://
|
|
340
|
+
`));N(6989),N(60918);N(60581),N(78549),N(79810),N(91751),N(24775);let fe=function(E){return E.INVALID_TOKEN="1004",E.UNKNOWN="0",E.AUTH_FAILED="6",E.CHARGING_PROCESS_ALREADY_RUNNING="3003",E.CHARGING_POINT_NOT_FOUND="3004",E.CHARGING_POINT_IN_MAINTENENCE="3005",E.CHARGING_SIZE_NOT_FOUND="3006",E.CHARGING_POINT_NOT_READY="3007",E.CHARGING_POINT_PAYMENT_ERROR="3008",E}({});function getKeyByValue(E){return Object.keys(fe).find(O=>fe[O]===E)}class OrderandoError extends Error{constructor(E){const O=getKeyByValue(E);O?(super(`Orderando error: ${O}`),this.errorCode=void 0,this.errorCode=fe[O]):(super("Unkown Orderando error"),this.errorCode=void 0,this.errorCode=fe.UNKNOWN),console.error("Orderando error:",E)}toString(){var E;return null!=(E=getKeyByValue(this.errorCode))?E:""}}let me,ge="";async function request(E,O,N,{data:j,skipAuth:V=!1}={}){if(!ge)throw new Error("Customer code not defined!");let H,q={"content-type":"application/json"};me&&!V&&(q=Object.assign({},q,{Authorization:`Bearer ${me}`}));let W="";"POST"===N&&(H=JSON.stringify(j)),"GET"===N&&j&&(W=`?${Object.keys(j).map(E=>`${E}=${encodeURIComponent(j[E])}`).join("&")}`);const G=`https://api.ando.cloud/v1/${E}/${ge}${O}${W}`,X=await fetch(G,{method:N,body:H,headers:q}),K=await X.json();if(!K.success||!X.status.toString().startsWith("2")){var Y,Q;const E=null!=(Y=null==(Q=K.errors)||null==(Q=Q.find(E=>E.code))?void 0:Q.code)?Y:"0";throw new OrderandoError(E)}return K}function createPost(E){return function(O,N){return request(E,O,"POST",N)}}function createGet(E){return function(O,N){return request(E,O,"GET",N)}}createGet("order"),createPost("order");createGet("power"),createPost("power");N(5167),N(80596);N(96948);N(47222),N(73253),N(47069);function formatPrice(E,O="de-DE",N){return new Intl.NumberFormat(O,{style:"currency",currency:N,currencyDisplay:"narrowSymbol"}).format(E)}N(87803),N(5959),N(1182),N(33509),N(4568);N(34277),N(20035),N(45581),N(39208),N(98397),N(52958),N(89861),N(86105);var ye=N(8605),be=N(18727),ve=N(55823),we=N(86745),xe=N(77558);var Se=N(30853),ke=N.n(Se),_e=N(41386);N(36617),N(98674);const Ce="auth",Ae="token",Ee="/fake-cache-auth-endpoint";let Te;const Oe=new Set;function updateJwt(E){Te=E,Oe.forEach(E=>E())}async function readJwt(){if(Te)return Te;try{const E=await caches.open(Ce),O=await E.match(Ee);if(!O)return null;const N=(await O.json())[Ae];return updateJwt(N),N}catch(E){console.error("readJwt error:",E)}return Te}const Pe=["keypress","keydown","click","contextmenu","dblclick","mousemove","scroll","touchmove","touchstart"];let Ie=function(E){return E[E.Standard=1]="Standard",E[E.Advanced=2]="Advanced",E}({});class Idle{constructor(E){this.userReportedActive=!1,this.userIsActive=!1,this.userMouseIsInFrame=!1,this.attachedFrames=[],this.activityReportMode=Ie.Advanced,this.activityReportInSec=5,this.detectFramesInSec=-1,this.onActivity=()=>{},this.onEnterFrame=()=>{},this.onReportUserIsActive=()=>{},this.onReportUserIsIdle=()=>{},this.intervals=[],this.attachListenerToNewFrames=()=>{const E=Array.prototype.slice.call(window.document.getElementsByTagName("frame")),O=Array.prototype.slice.call(window.document.getElementsByTagName("iframe")),N=E.concat(O);for(const E of N)this.attachedFrames.indexOf(E)<0&&(E.addEventListener("mouseenter",this.onMouseEntersFrame.bind(this),this,!1),this.attachedFrames.push(E),this.userMouseIsInFrame=!0)},this.onUserActivity=()=>{this.onActivity(),this.userIsActive=!0,this.activityReportMode!==Ie.Advanced||this.userReportedActive||this.reportActivity(),this.userMouseIsInFrame=!1},this.overrideDefaultsWithOptions(E),Pe.forEach(E=>{window.addEventListener(E,this.onUserActivity,!1)}),this.intervals.push(window.setInterval(this.onTimerTick.bind(this),1e3*this.activityReportInSec)),this.detectFramesInSec>0&&this.intervals.push(window.setInterval(this.attachListenerToNewFrames,1e3*this.detectFramesInSec)),this.reportActivity()}onMouseEntersFrame(){this.onEnterFrame(),this.userMouseIsInFrame=!0}onTimerTick(){this.userReportedActive=!1,this.activityReportMode===Ie.Standard&&this.userIsActive||this.userMouseIsInFrame&&this.isPageVisible()?this.reportActivity():this.onReportUserIsIdle()}reportActivity(){this.onReportUserIsActive(),this.userReportedActive=!0,this.userIsActive=!1}overrideDefaultsWithOptions(E){this.activityReportInSec=E.activityReportInSec||this.activityReportInSec,this.activityReportMode=E.activityReportMode||this.activityReportMode,this.detectFramesInSec=E.detectFramesInSec||this.detectFramesInSec,this.onActivity=E.onActivity||this.onActivity,this.onEnterFrame=E.onEnterFrame||this.onEnterFrame,this.onReportUserIsActive=E.onReportUserIsActive||this.onReportUserIsActive,this.onReportUserIsIdle=E.onReportUserIsIdle||this.onReportUserIsIdle}isPageVisible(){return"hidden"!==document.visibilityState}dispose(){this.intervals.forEach(window.clearInterval),Pe.forEach(E=>{window.removeEventListener(E,this.onUserActivity,!1)})}}let Me=null;var De=N(61530);N(34683),N(13819);function getImageFormatUrl(E,O="large"){var N;if(!E)return;const j=null==(N=E.formats)||null==(N=N[O])?void 0:N.url;return j||(null==E?void 0:E.url)}function util_normalizeLocalizedValues(E,O={}){if(!E)return{};const{globalProperties:N=[]}=O,j={};E.locale&&(j[E.locale]=Object.assign({},E,{originalId:E.id}));const V=N.reduce((O,N)=>Object.assign({},O,{[N]:E[N]}),{});if(E.localizations)for(const O of E.localizations)null!=O&&O.locale&&(j[O.locale]=Object.assign({},O,V,{originalId:O.id,id:E.id}));return j}const Ne=(0,De.l)("main_content"),Re=(0,De.G)(),Le="production"===Re,Fe="development"===Re?window.location.origin:`${window.location.protocol}//${Le?"app":"staging-pms"}.${function getHostWithoutSubdomain(E=window.location.host){return E.split(".").slice(1).join(".")}()}`,je=encodeURIComponent(JSON.stringify({startUrl:window.location.href,startHost:window.location.host})),$e=Le?"9":"12",Be=Le?"https://applogin.com":"https://staging.applogin.com",ze={apiUri:Ne,oauthUrls:{applogin:{init:`${Be}/login?redirect_uri=${Fe}/auth/callback/applogin&client_id=${$e}&scope=openid&response_type=code&state=${je}`,quickLogin:`${Be}/oauth/authorize?redirect_uri=${Fe}/auth/callback/applogin&client_id=${$e}&scope=openid&response_type=code&state=${je}`,callback:`${Ne}/api/auth/applogin/callback`}}};const Ue=(0,_e.Td)(),{link:Ve}=Ue,He=((0,j.A)(Ue,["link"]).useApolloNetworkStatus,ke()({uri:`${function config_getConciergeConfig(){return ze}().apiUri}/graphql`})),qe=["LoginMutation","RegisterMutation","ForgotPassword","LoginAsGuest","GetHotelBySubdomain","GetAppAuthImages","GetHotelCapabilitesBySubdomain","SearchHotelByName"],We=function setContext(E){return new we.C(function(O,N){var j=(0,ve.Tt)(O,[]);return new xe.c(function(V){var H,q=!1;return Promise.resolve(j).then(function(N){return E(N,O.getContext())}).then(O.setContext).then(function(){q||(H=N(O).subscribe({next:V.next.bind(V),error:V.error.bind(V),complete:V.complete.bind(V)}))}).catch(V.error.bind(V)),function(){q=!0,H&&H.unsubscribe()}})})}(async(E,{headers:O})=>{var N;const j=!qe.includes(null!=(N=E.operationName)?N:""),V=await readJwt(),H=(0,ae.FH)();return{headers:Object.assign({},O,j?{authorization:V?`Bearer ${V}`:""}:{},H?{"carlito-hub-access-token":H}:{})}}),Ge=["AppActionButton","AppAuthImage","AppRating","BlogPost","BookitoSetting","DailybirdSetting","Dailychirp","GenericAppAutoMessage","GuestChatAuthToken","Hotel","I18NLocale","PriceClass","StayInformation","SurroundingInformationCategory","SurroundingInformation","SurroundingInformationProperty","Theme","TvAppConfiguration","UploadFile","UploadFolder","UsersPermissionsPermission","UsersPermissionsRole","UsersPermissionsUser","VirtualHotelUser","WelcomeMessage"].reduce((E,O)=>Object.assign({},E,{[O]:{merge:!0}}),{}),Xe=["AppActionButtonEntity","AppAuthImageEntity","AppRatingEntity","BlogPostEntity","BookitoSettingEntity","DailybirdSettingEntity","DailychirpEntity","GenericAppAutoMessageEntity","GuestChatAuthTokenEntity","I18NLocaleEntity","PriceClassEntity","StayInformationEntity","SurroundingInformationCategoryEntity","SurroundingInformationEntity","SurroundingInformationPropertyEntity","ThemeEntity","TvAppConfigurationEntity","UploadFileEntity","UploadFolderEntity","UsersPermissionsPermissionEntity","UsersPermissionsRoleEntity","UsersPermissionsUserEntity","VirtualHotelUserEntity","WelcomeMessageEntity"].reduce((E,O)=>Object.assign({},E,{[O]:{keyFields:["id"],merge:!0}}),{}),Ke=new ye.R({link:Ve.concat(We.concat(He)),cache:new be.D({typePolicies:Object.assign({},Ge,Xe,{Hotel:{merge:!0,fields:{surroundingInformationCategories:{keyArgs:[],merge(E,O){var N,j;if(!E)return O;const V=null!=(N=E.data)?N:[],H=null!=(j=null==O?void 0:O.data)?j:[],q=new Set(V.map(E=>E.__ref)),W=[...V];for(const E of H)q.has(E.__ref)||W.push(E);return Object.assign({},O,{data:W})}}}}})})});!function autoRefetchWhenInactive({client:E}){function onTryRefresh(){if(null===Me)return;const O=Date.now()-Me;return O>=36e5?(console.log(`[AUTO REFETCH] Refetching all queries, content is ${O/1e3} seconds old.`),Me=Date.now(),void E.resetStore()):void 0}Me=Date.now(),document.addEventListener("visibilitychange",()=>{document.hidden||onTryRefresh()}),function refreshAfterTimeWhenIdle(){setTimeout(()=>{const E=new Idle({activityReportInSec:120,onReportUserIsIdle:()=>{E.dispose(),onTryRefresh(),refreshAfterTimeWhenIdle()}})},36e5)}()}({client:Ke});const Ye=Ke;(0,De.l)("carlito_federation");let Qe;const Ze=(0,X.J1)(Qe||(Qe=(E=>E)`
|
|
341
341
|
query GetAvailableLanguages($hotelId: ID!) {
|
|
342
342
|
hotel(id: $hotelId) {
|
|
343
343
|
data {
|