bookito-widget 0.42.2 → 0.42.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/bookito-widget.umd.js +19 -4
- package/dist/bookito-widget.window.js +19 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.42.3](https://github.com/Carlito-GmbH/carlito-platform/compare/bookito-widget-0.42.2-beta.10...bookito-widget-0.42.3) (2026-03-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.42.2](https://github.com/Carlito-GmbH/carlito-platform/compare/bookito-widget-0.42.2-beta.8...bookito-widget-0.42.2) (2026-03-25)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [0.42.2](https://github.com/Carlito-GmbH/carlito-platform/compare/bookito-widget-0.42.2-beta.8...bookito-widget-0.42.2) (2026-03-25)
|
|
6
14
|
|
|
7
15
|
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
`));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=`${window.location.protocol}//app.${function getHostWithoutSubdomain(E=window.location.host){return E.split(".").slice(1).join(".")}()}`,Le="https://applogin.com",Fe={apiUri:Ne,oauthUrls:{applogin:{init:`${Le}/login?redirect_uri=${Re}/auth/callback/applogin&client_id=9&scope=openid&response_type=code`,quickLogin:`${Le}/oauth/authorize?redirect_uri=${Re}/auth/callback/applogin&client_id=9&scope=openid&response_type=code`,callback:`${Ne}/auth/applogin/callback`}}};const je=(0,_e.Td)(),{link:$e}=je,Be=((0,j.A)(je,["link"]).useApolloNetworkStatus,ke()({uri:`${function config_getConciergeConfig(){return Fe}().apiUri}/graphql`})),ze=["LoginMutation","RegisterMutation","ForgotPassword","LoginAsGuest","GetHotelBySubdomain","GetAppAuthImages","GetHotelCapabilitesBySubdomain","SearchHotelByName"],Ue=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=!ze.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}:{})}}),Ve=["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}}),{}),He=["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}}),{}),qe=new ye.R({link:$e.concat(Ue.concat(Be)),cache:new be.D({typePolicies:Object.assign({},Ve,He,{
|
|
339
|
+
`));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=`${window.location.protocol}//app.${function getHostWithoutSubdomain(E=window.location.host){return E.split(".").slice(1).join(".")}()}`,Le="https://applogin.com",Fe={apiUri:Ne,oauthUrls:{applogin:{init:`${Le}/login?redirect_uri=${Re}/auth/callback/applogin&client_id=9&scope=openid&response_type=code`,quickLogin:`${Le}/oauth/authorize?redirect_uri=${Re}/auth/callback/applogin&client_id=9&scope=openid&response_type=code`,callback:`${Ne}/auth/applogin/callback`}}};const je=(0,_e.Td)(),{link:$e}=je,Be=((0,j.A)(je,["link"]).useApolloNetworkStatus,ke()({uri:`${function config_getConciergeConfig(){return Fe}().apiUri}/graphql`})),ze=["LoginMutation","RegisterMutation","ForgotPassword","LoginAsGuest","GetHotelBySubdomain","GetAppAuthImages","GetHotelCapabilitesBySubdomain","SearchHotelByName"],Ue=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=!ze.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}:{})}}),Ve=["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}}),{}),He=["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}}),{}),qe=new ye.R({link:$e.concat(Ue.concat(Be)),cache:new be.D({typePolicies:Object.assign({},Ve,He,{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:qe});const We=qe;(0,De.l)("carlito_federation");let Ge;const Xe=(0,X.J1)(Ge||(Ge=(E=>E)`
|
|
340
340
|
query GetAvailableLanguages($hotelId: ID!) {
|
|
341
341
|
hotel(id: $hotelId) {
|
|
342
342
|
data {
|
|
@@ -517,6 +517,11 @@
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
+
parentStayInfo {
|
|
521
|
+
data {
|
|
522
|
+
id
|
|
523
|
+
}
|
|
524
|
+
}
|
|
520
525
|
title
|
|
521
526
|
locale
|
|
522
527
|
hidden
|
|
@@ -538,7 +543,14 @@
|
|
|
538
543
|
}
|
|
539
544
|
}
|
|
540
545
|
}
|
|
541
|
-
stayInformations(
|
|
546
|
+
stayInformations(
|
|
547
|
+
filters: {
|
|
548
|
+
or: [
|
|
549
|
+
{ parentStayInfo: { id: { null: true } } }
|
|
550
|
+
{ parentStayInfo: { id: { eq: null } } }
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
) {
|
|
542
554
|
data {
|
|
543
555
|
id
|
|
544
556
|
attributes {
|
|
@@ -727,7 +739,7 @@
|
|
|
727
739
|
staticFusionarConfig
|
|
728
740
|
}
|
|
729
741
|
|
|
730
|
-
query GetAllSurroundingInformationCategories($hotelId: ID
|
|
742
|
+
query GetAllSurroundingInformationCategories($hotelId: ID!, $start: Int, $limit: Int) {
|
|
731
743
|
hotel(id: $hotelId) {
|
|
732
744
|
data {
|
|
733
745
|
id
|
|
@@ -741,7 +753,10 @@
|
|
|
741
753
|
}
|
|
742
754
|
}
|
|
743
755
|
}
|
|
744
|
-
surroundingInformationCategories(
|
|
756
|
+
surroundingInformationCategories(
|
|
757
|
+
sort: ["appSortOrder:asc"]
|
|
758
|
+
pagination: { start: $start, limit: $limit }
|
|
759
|
+
) {
|
|
745
760
|
data {
|
|
746
761
|
id
|
|
747
762
|
attributes {
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
`));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=`${window.location.protocol}//app.${function getHostWithoutSubdomain(E=window.location.host){return E.split(".").slice(1).join(".")}()}`,Le="https://applogin.com",Fe={apiUri:Ne,oauthUrls:{applogin:{init:`${Le}/login?redirect_uri=${Re}/auth/callback/applogin&client_id=9&scope=openid&response_type=code`,quickLogin:`${Le}/oauth/authorize?redirect_uri=${Re}/auth/callback/applogin&client_id=9&scope=openid&response_type=code`,callback:`${Ne}/auth/applogin/callback`}}};const je=(0,_e.Td)(),{link:$e}=je,Be=((0,j.A)(je,["link"]).useApolloNetworkStatus,ke()({uri:`${function config_getConciergeConfig(){return Fe}().apiUri}/graphql`})),ze=["LoginMutation","RegisterMutation","ForgotPassword","LoginAsGuest","GetHotelBySubdomain","GetAppAuthImages","GetHotelCapabilitesBySubdomain","SearchHotelByName"],Ue=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=!ze.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}:{})}}),Ve=["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}}),{}),He=["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}}),{}),qe=new ye.R({link:$e.concat(Ue.concat(Be)),cache:new be.D({typePolicies:Object.assign({},Ve,He,{
|
|
339
|
+
`));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=`${window.location.protocol}//app.${function getHostWithoutSubdomain(E=window.location.host){return E.split(".").slice(1).join(".")}()}`,Le="https://applogin.com",Fe={apiUri:Ne,oauthUrls:{applogin:{init:`${Le}/login?redirect_uri=${Re}/auth/callback/applogin&client_id=9&scope=openid&response_type=code`,quickLogin:`${Le}/oauth/authorize?redirect_uri=${Re}/auth/callback/applogin&client_id=9&scope=openid&response_type=code`,callback:`${Ne}/auth/applogin/callback`}}};const je=(0,_e.Td)(),{link:$e}=je,Be=((0,j.A)(je,["link"]).useApolloNetworkStatus,ke()({uri:`${function config_getConciergeConfig(){return Fe}().apiUri}/graphql`})),ze=["LoginMutation","RegisterMutation","ForgotPassword","LoginAsGuest","GetHotelBySubdomain","GetAppAuthImages","GetHotelCapabilitesBySubdomain","SearchHotelByName"],Ue=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=!ze.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}:{})}}),Ve=["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}}),{}),He=["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}}),{}),qe=new ye.R({link:$e.concat(Ue.concat(Be)),cache:new be.D({typePolicies:Object.assign({},Ve,He,{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:qe});const We=qe;(0,De.l)("carlito_federation");let Ge;const Xe=(0,X.J1)(Ge||(Ge=(E=>E)`
|
|
340
340
|
query GetAvailableLanguages($hotelId: ID!) {
|
|
341
341
|
hotel(id: $hotelId) {
|
|
342
342
|
data {
|
|
@@ -517,6 +517,11 @@
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
+
parentStayInfo {
|
|
521
|
+
data {
|
|
522
|
+
id
|
|
523
|
+
}
|
|
524
|
+
}
|
|
520
525
|
title
|
|
521
526
|
locale
|
|
522
527
|
hidden
|
|
@@ -538,7 +543,14 @@
|
|
|
538
543
|
}
|
|
539
544
|
}
|
|
540
545
|
}
|
|
541
|
-
stayInformations(
|
|
546
|
+
stayInformations(
|
|
547
|
+
filters: {
|
|
548
|
+
or: [
|
|
549
|
+
{ parentStayInfo: { id: { null: true } } }
|
|
550
|
+
{ parentStayInfo: { id: { eq: null } } }
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
) {
|
|
542
554
|
data {
|
|
543
555
|
id
|
|
544
556
|
attributes {
|
|
@@ -727,7 +739,7 @@
|
|
|
727
739
|
staticFusionarConfig
|
|
728
740
|
}
|
|
729
741
|
|
|
730
|
-
query GetAllSurroundingInformationCategories($hotelId: ID
|
|
742
|
+
query GetAllSurroundingInformationCategories($hotelId: ID!, $start: Int, $limit: Int) {
|
|
731
743
|
hotel(id: $hotelId) {
|
|
732
744
|
data {
|
|
733
745
|
id
|
|
@@ -741,7 +753,10 @@
|
|
|
741
753
|
}
|
|
742
754
|
}
|
|
743
755
|
}
|
|
744
|
-
surroundingInformationCategories(
|
|
756
|
+
surroundingInformationCategories(
|
|
757
|
+
sort: ["appSortOrder:asc"]
|
|
758
|
+
pagination: { start: $start, limit: $limit }
|
|
759
|
+
) {
|
|
745
760
|
data {
|
|
746
761
|
id
|
|
747
762
|
attributes {
|