@konnectio/core 4.0.1 → 4.0.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.
Files changed (122) hide show
  1. package/dist/ActionField-1b4171c7.mjs +103 -0
  2. package/dist/ActionField-1b4171c7.mjs.br +0 -0
  3. package/dist/ActionField-97c0c682.js +2 -0
  4. package/dist/ActionField-97c0c682.js.br +0 -0
  5. package/dist/Clickable-eb931b15.mjs +13899 -0
  6. package/dist/Clickable-eb931b15.mjs.br +0 -0
  7. package/dist/Clickable-f57e16ad.js +785 -0
  8. package/dist/Clickable-f57e16ad.js.br +0 -0
  9. package/dist/HotelAvailabilityForm-5750665b.js +2 -0
  10. package/dist/HotelAvailabilityForm-5750665b.js.br +0 -0
  11. package/dist/HotelAvailabilityForm-bab6ef4d.mjs +99 -0
  12. package/dist/HotelAvailabilityForm-bab6ef4d.mjs.br +0 -0
  13. package/dist/NumberField.vue_vue_type_style_index_0_lang-737bf674.mjs +5917 -0
  14. package/dist/NumberField.vue_vue_type_style_index_0_lang-737bf674.mjs.br +0 -0
  15. package/dist/NumberField.vue_vue_type_style_index_0_lang-e642c7f3.js +56 -0
  16. package/dist/NumberField.vue_vue_type_style_index_0_lang-e642c7f3.js.br +0 -0
  17. package/dist/ReCaptchaVuePlugin-36454b0f.js +2 -0
  18. package/dist/ReCaptchaVuePlugin-36454b0f.js.br +0 -0
  19. package/dist/ReCaptchaVuePlugin-e4f378b2.mjs +377 -0
  20. package/dist/ReCaptchaVuePlugin-e4f378b2.mjs.br +0 -0
  21. package/dist/SelectField.vue_vue_type_style_index_0_lang-a3371159.js +57 -0
  22. package/dist/SelectField.vue_vue_type_style_index_0_lang-a3371159.js.br +0 -0
  23. package/dist/SelectField.vue_vue_type_style_index_0_lang-d7f0bf68.mjs +10109 -0
  24. package/dist/SelectField.vue_vue_type_style_index_0_lang-d7f0bf68.mjs.br +0 -0
  25. package/dist/ThankYou-23531d13.js +16 -0
  26. package/dist/ThankYou-23531d13.js.br +0 -0
  27. package/dist/ThankYou-4299d606.mjs +8519 -0
  28. package/dist/ThankYou-4299d606.mjs.br +0 -0
  29. package/dist/_commonjsHelpers-6763f629.js +2 -0
  30. package/dist/_commonjsHelpers-c5d32002.mjs +31 -0
  31. package/dist/applyGiftCard-9847fda1.js +2 -0
  32. package/dist/applyGiftCard-9847fda1.js.br +0 -0
  33. package/dist/applyGiftCard-eb7b85ee.mjs +118 -0
  34. package/dist/applyGiftCard-eb7b85ee.mjs.br +0 -0
  35. package/dist/availability.cjs.js +2 -0
  36. package/dist/availability.cjs.js.br +0 -0
  37. package/dist/availability.es.js +185 -0
  38. package/dist/availability.es.js.br +0 -0
  39. package/dist/event-1b888019.mjs +329 -0
  40. package/dist/event-1b888019.mjs.br +0 -0
  41. package/dist/event-e8e0c6a2.js +2 -0
  42. package/dist/event-e8e0c6a2.js.br +0 -0
  43. package/dist/event.cjs.js +2 -0
  44. package/dist/event.cjs.js.br +0 -0
  45. package/dist/event.es.js +647 -0
  46. package/dist/event.es.js.br +0 -0
  47. package/dist/gift-card-validation.cjs.js +2 -0
  48. package/dist/gift-card-validation.cjs.js.br +0 -0
  49. package/dist/gift-card-validation.es.js +172 -0
  50. package/dist/gift-card-validation.es.js.br +0 -0
  51. package/dist/gift-card.cjs.js +2 -0
  52. package/dist/gift-card.cjs.js.br +0 -0
  53. package/dist/gift-card.es.js +586 -0
  54. package/dist/gift-card.es.js.br +0 -0
  55. package/dist/hotel.cjs.js +20 -0
  56. package/dist/hotel.cjs.js.br +0 -0
  57. package/dist/hotel.es.js +2396 -0
  58. package/dist/hotel.es.js.br +0 -0
  59. package/dist/index-937554a9.mjs +654 -0
  60. package/dist/index-937554a9.mjs.br +0 -0
  61. package/dist/index-aa255eba.js +2 -0
  62. package/dist/index-aa255eba.js.br +0 -0
  63. package/dist/navigation.cjs.js +2 -0
  64. package/dist/navigation.cjs.js.br +0 -0
  65. package/dist/navigation.es.js +59 -0
  66. package/dist/navigation.es.js.br +0 -0
  67. package/dist/payment-3140b25e.js +3 -0
  68. package/dist/payment-3140b25e.js.br +0 -0
  69. package/dist/payment-b79997a8.mjs +8149 -0
  70. package/dist/payment-b79997a8.mjs.br +0 -0
  71. package/dist/polyfill.cjs.js +5 -0
  72. package/dist/polyfill.cjs.js.br +0 -0
  73. package/dist/polyfill.es.js +6766 -0
  74. package/dist/polyfill.es.js.br +0 -0
  75. package/dist/style.css +1 -0
  76. package/dist/style.css.br +0 -0
  77. package/package.json +3 -1
  78. package/dist/admin.js +0 -2
  79. package/dist/admin.js.br +0 -0
  80. package/dist/assets/ActionField-d1b315e3.js +0 -2
  81. package/dist/assets/ActionField-d1b315e3.js.br +0 -0
  82. package/dist/assets/Alert-2cd22061.js +0 -2
  83. package/dist/assets/Alert-2cd22061.js.br +0 -0
  84. package/dist/assets/Clickable-19c9ecdc.js +0 -2
  85. package/dist/assets/Clickable-19c9ecdc.js.br +0 -0
  86. package/dist/assets/GoogleNotice-83805aa2.js +0 -2
  87. package/dist/assets/GoogleNotice-83805aa2.js.br +0 -0
  88. package/dist/assets/HotelAvailabilityForm-53fa6ecb.js +0 -2
  89. package/dist/assets/HotelAvailabilityForm-53fa6ecb.js.br +0 -0
  90. package/dist/assets/Icon-6c933148.js +0 -2
  91. package/dist/assets/Icon-6c933148.js.br +0 -0
  92. package/dist/assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js +0 -2
  93. package/dist/assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js.br +0 -0
  94. package/dist/assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js +0 -2
  95. package/dist/assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js.br +0 -0
  96. package/dist/assets/ThankYou-29820212.js +0 -5
  97. package/dist/assets/ThankYou-29820212.js.br +0 -0
  98. package/dist/assets/applyGiftCard-39571f2e.js +0 -2
  99. package/dist/assets/applyGiftCard-39571f2e.js.br +0 -0
  100. package/dist/assets/event-79c562c0.js +0 -2
  101. package/dist/assets/event-79c562c0.js.br +0 -0
  102. package/dist/assets/payment-a3a9b5dd.js +0 -2
  103. package/dist/assets/payment-a3a9b5dd.js.br +0 -0
  104. package/dist/assets/style.css +0 -1
  105. package/dist/assets/style.css.br +0 -0
  106. package/dist/assets/vendor-65ee0d78.js +0 -889
  107. package/dist/assets/vendor-65ee0d78.js.br +0 -0
  108. package/dist/availability.js +0 -2
  109. package/dist/availability.js.br +0 -0
  110. package/dist/event.js +0 -2
  111. package/dist/event.js.br +0 -0
  112. package/dist/gift-card-validation.js +0 -2
  113. package/dist/gift-card-validation.js.br +0 -0
  114. package/dist/gift-card.js +0 -2
  115. package/dist/gift-card.js.br +0 -0
  116. package/dist/hotel.js +0 -2
  117. package/dist/hotel.js.br +0 -0
  118. package/dist/manifest.json +0 -231
  119. package/dist/manifest.json.br +0 -0
  120. package/dist/navigation.js +0 -2
  121. package/dist/navigation.js.br +0 -0
  122. package/dist/polyfill.js +0 -2
Binary file
@@ -0,0 +1,2 @@
1
+ "use strict";var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}exports.commonjsGlobal=u;exports.getAugmentedNamespace=l;exports.getDefaultExportFromCjs=f;
2
+ //# sourceMappingURL=_commonjsHelpers-6763f629.js.map
@@ -0,0 +1,31 @@
1
+ var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function f(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ function l(e) {
6
+ if (e.__esModule)
7
+ return e;
8
+ var r = e.default;
9
+ if (typeof r == "function") {
10
+ var t = function o() {
11
+ return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
12
+ };
13
+ t.prototype = r.prototype;
14
+ } else
15
+ t = {};
16
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
17
+ var n = Object.getOwnPropertyDescriptor(e, o);
18
+ Object.defineProperty(t, o, n.get ? n : {
19
+ enumerable: !0,
20
+ get: function() {
21
+ return e[o];
22
+ }
23
+ });
24
+ }), t;
25
+ }
26
+ export {
27
+ l as a,
28
+ u as c,
29
+ f as g
30
+ };
31
+ //# sourceMappingURL=_commonjsHelpers-c5d32002.mjs.map
@@ -0,0 +1,2 @@
1
+ "use strict";const a=require("./Clickable-f57e16ad.js"),l=require("./NumberField.vue_vue_type_style_index_0_lang-e642c7f3.js"),b=a.defineComponent({__name:"NumberField",props:{modelValue:{default:0},minValue:{default:0},maxValue:{default:1/0},inputtable:{type:Boolean,default:!0},label:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},iconPlacement:{},step:{default:1},controls:{type:Boolean,default:!0},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},id:{},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:u}){const o=t,n=o.id||l.ranId();function r(e){u("update:modelValue",e)}return a.onMounted(()=>{o.modelValue||r(o.minValue)}),(e,i)=>(a.openBlock(),a.createBlock(l.InputField,{label:e.label,id:a.unref(n),icon:e.icon,"icon-color":e.iconColor,"icon-type":e.iconType,"icon-placement":e.iconPlacement,required:e.required,type:e.small?"fresh-booking-number-picker small":"fresh-booking-number-picker",readonly:e.readonly},{default:a.withCtx(()=>[a.createVNode(a.unref(l.script),{attrs:{id:a.unref(n)},modelValue:e.modelValue,min:e.minValue,max:e.maxValue,step:e.step,inline:e.inline,controls:e.controls,placeholder:e.placeholder,readonly:e.readonly,inputtable:e.inputtable,rounded:e.rounded,disabled:e.disabled,"onUpdate:modelValue":r},null,8,["attrs","modelValue","min","max","step","inline","controls","placeholder","readonly","inputtable","rounded","disabled"])]),_:1},8,["label","id","icon","icon-color","icon-type","icon-placement","required","type","readonly"]))}}),v=l.defineStore("applyGiftCard",()=>{const{display:t}=l.useAlertStore(),{bearerToken:u}=l.storeToRefs(l.useUtilityStore()),o=a.ref(0),n=a.ref(""),r=a.ref(""),e=a.ref(""),i=a.ref(!1),d=a.ref(!1);async function s(){n.value!==""?(d.value=!0,await l.axios.get("http://localhost:91/api/gift-card/validate",{params:{giftCardCode:n.value,lang:l.getUserLanguage()},headers:{Authorization:u.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.3"}}).then(c=>{const{valid:f,amount:m,expirationDate:y,productName:g}=c.data;f?(o.value=m,r.value=y,e.value=g,i.value=!0,t({message:l.i18n.t("alert.success.giftCardApplied"),type:"success"})):(i.value=!1,t({message:l.i18n.t("alert.error.giftCardInvalid"),type:"warning"}))}),d.value=!1):t({message:l.i18n.t("alert.error.giftCardEmpty"),type:"error"})}function p(){o.value=0,n.value="",i.value=!1,t({message:l.i18n.t("alert.success.giftCardRemoved"),type:"success"})}return{amount:o,voucher:n,expirationDate:r,productName:e,isValid:i,isLoading:d,apply:s,reset:p}});exports._sfc_main=b;exports.useApplyGiftCardStore=v;
2
+ //# sourceMappingURL=applyGiftCard-9847fda1.js.map
@@ -0,0 +1,118 @@
1
+ import { d as v, g as V, o as h, h as C, w as B, a as k, u, r as t } from "./Clickable-eb931b15.mjs";
2
+ import { x as A, F as I, I as q, o as w, b as F, s as N, k as S, r as T, t as U, v as r } from "./NumberField.vue_vue_type_style_index_0_lang-737bf674.mjs";
3
+ const L = /* @__PURE__ */ v({
4
+ __name: "NumberField",
5
+ props: {
6
+ modelValue: { default: 0 },
7
+ minValue: { default: 0 },
8
+ maxValue: { default: 1 / 0 },
9
+ inputtable: { type: Boolean, default: !0 },
10
+ label: {},
11
+ placeholder: {},
12
+ icon: {},
13
+ iconColor: {},
14
+ iconType: { default: "fal" },
15
+ iconPlacement: {},
16
+ step: { default: 1 },
17
+ controls: { type: Boolean, default: !0 },
18
+ required: { type: Boolean, default: !1 },
19
+ readonly: { type: Boolean, default: !1 },
20
+ inline: { type: Boolean, default: !1 },
21
+ id: {},
22
+ rounded: { type: Boolean, default: !1 },
23
+ disabled: { type: Boolean, default: !1 },
24
+ small: { type: Boolean, default: !1 }
25
+ },
26
+ emits: ["update:modelValue"],
27
+ setup(o, { emit: i }) {
28
+ const a = o, l = a.id || A();
29
+ function n(e) {
30
+ i("update:modelValue", e);
31
+ }
32
+ return V(() => {
33
+ a.modelValue || n(a.minValue);
34
+ }), (e, s) => (h(), C(q, {
35
+ label: e.label,
36
+ id: u(l),
37
+ icon: e.icon,
38
+ "icon-color": e.iconColor,
39
+ "icon-type": e.iconType,
40
+ "icon-placement": e.iconPlacement,
41
+ required: e.required,
42
+ type: e.small ? "fresh-booking-number-picker small" : "fresh-booking-number-picker",
43
+ readonly: e.readonly
44
+ }, {
45
+ default: B(() => [
46
+ k(u(I), {
47
+ attrs: { id: u(l) },
48
+ modelValue: e.modelValue,
49
+ min: e.minValue,
50
+ max: e.maxValue,
51
+ step: e.step,
52
+ inline: e.inline,
53
+ controls: e.controls,
54
+ placeholder: e.placeholder,
55
+ readonly: e.readonly,
56
+ inputtable: e.inputtable,
57
+ rounded: e.rounded,
58
+ disabled: e.disabled,
59
+ "onUpdate:modelValue": n
60
+ }, null, 8, ["attrs", "modelValue", "min", "max", "step", "inline", "controls", "placeholder", "readonly", "inputtable", "rounded", "disabled"])
61
+ ]),
62
+ _: 1
63
+ }, 8, ["label", "id", "icon", "icon-color", "icon-type", "icon-placement", "required", "type", "readonly"]));
64
+ }
65
+ }), M = w("applyGiftCard", () => {
66
+ const { display: o } = F(), { bearerToken: i } = N(S()), a = t(0), l = t(""), n = t(""), e = t(""), s = t(!1), d = t(!1);
67
+ async function p() {
68
+ l.value !== "" ? (d.value = !0, await T.get("http://localhost:91/api/gift-card/validate", {
69
+ params: {
70
+ giftCardCode: l.value,
71
+ lang: U()
72
+ },
73
+ headers: {
74
+ Authorization: i.value,
75
+ Accept: "application/json",
76
+ "Fresh-Booking-Ver": "4.0.3"
77
+ }
78
+ }).then((f) => {
79
+ const {
80
+ valid: m,
81
+ amount: y,
82
+ expirationDate: g,
83
+ productName: b
84
+ } = f.data;
85
+ m ? (a.value = y, n.value = g, e.value = b, s.value = !0, o({
86
+ message: r.t("alert.success.giftCardApplied"),
87
+ type: "success"
88
+ })) : (s.value = !1, o({
89
+ message: r.t("alert.error.giftCardInvalid"),
90
+ type: "warning"
91
+ }));
92
+ }), d.value = !1) : o({
93
+ message: r.t("alert.error.giftCardEmpty"),
94
+ type: "error"
95
+ });
96
+ }
97
+ function c() {
98
+ a.value = 0, l.value = "", s.value = !1, o({
99
+ message: r.t("alert.success.giftCardRemoved"),
100
+ type: "success"
101
+ });
102
+ }
103
+ return {
104
+ amount: a,
105
+ voucher: l,
106
+ expirationDate: n,
107
+ productName: e,
108
+ isValid: s,
109
+ isLoading: d,
110
+ apply: p,
111
+ reset: c
112
+ };
113
+ });
114
+ export {
115
+ L as _,
116
+ M as u
117
+ };
118
+ //# sourceMappingURL=applyGiftCard-eb7b85ee.mjs.map
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./Clickable-f57e16ad.js"),n=require("./NumberField.vue_vue_type_style_index_0_lang-e642c7f3.js"),k=require("./HotelAvailabilityForm-5750665b.js"),h=require("./payment-3140b25e.js"),b=require("./event-e8e0c6a2.js");require("./applyGiftCard-9847fda1.js");const B={id:"konnectio-event-search-form"},m={class:"konnectio-search-button"},y=e.defineComponent({__name:"EventAvailabilityForm",props:{link:{}},setup(a){const t=a,{searchDate:o}=n.storeToRefs(b.useEventStore()),{t:s}=n.useI18n();function u(){window.location.replace(t.link)}return(p,i)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(h._sfc_main,{modelValue:e.unref(o),"onUpdate:modelValue":i[0]||(i[0]=d=>e.isRef(o)?o.value=d:null),label:e.unref(s)("event.selectDate"),"icon-placement":"label","min-date":new Date},null,8,["modelValue","label","min-date"]),e.createBaseVNode("div",m,[e.createVNode(e.Clickable,{label:e.unref(s)("availability.buttonLabel"),disabled:!1,onClickEvent:u},null,8,["label"])])]))}});const F=e._export_sfc(y,[["__scopeId","data-v-15c74d0f"]]);const g={},C={class:"loading-container"},V=e.createStaticVNode('<div class="loading" data-v-30283f5a><section id="test" data-v-30283f5a><section id="header" data-v-30283f5a><div data-v-30283f5a></div><div class="shape1 white" data-v-30283f5a></div><div data-v-30283f5a></div><div class="shape2 white" data-v-30283f5a></div><div class="shape2 white" data-v-30283f5a></div></section><section class="blank" data-v-30283f5a></section><section class="content" data-v-30283f5a><div class="label" data-v-30283f5a><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div></div><div class="white" data-v-30283f5a></div><div class="label" data-v-30283f5a><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div></div><div class="white" data-v-30283f5a></div><div class="white" data-v-30283f5a></div></section><section class="blank" data-v-30283f5a></section><section class="content" data-v-30283f5a><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div><div data-v-30283f5a></div></section></section></div>',1),N=[V];function w(a,t){return e.openBlock(),e.createElementBlock("div",C,N)}const S=e._export_sfc(g,[["render",w],["__scopeId","data-v-30283f5a"]]),r=a=>(e.pushScopeId("data-v-55265546"),a=a(),e.popScopeId(),a),L={class:"konnectio-availability-module"},x={key:0,class:"konnectio-availability-navigation"},E=r(()=>e.createBaseVNode("span",null,"Hotel",-1)),z=[E],A=r(()=>e.createBaseVNode("span",null,"Events",-1)),T=[A],$=r(()=>e.createBaseVNode("div",{class:"konnectio-availability-divider"},null,-1)),R={class:"konnectio-availability-search-form"},W={key:1},I=r(()=>e.createBaseVNode("span",null,"One of 'hotelLink' or 'eventLink' properties are missing. Please contact your administrator!",-1)),P=[I],q=e.defineComponent({__name:"Availability",props:{eventLink:{},hotelLink:{},accessToken:{},accentColor:{},buttonBackground:{},buttonBorder:{},buttonBorderRadius:{},buttonColor:{},buttonFontFamily:{},buttonFontSize:{},buttonFontWeight:{},buttonTextTransform:{},fontColor:{},fontFamily:{},fontSize:{},headerColor:{},headerFontSize:{},inputBorder:{},inputBackground:{},inputBorderRadius:{},inputBorderWidth:{},inputFontColor:{},labelFontWeight:{},labelFontSize:{},labelPadding:{},panelBackground:{},panelBorder:{},panelBorderRadius:{},panelPadding:{},panelOuterPadding:{}},setup(a){const t=a,o=e.ref(),s=e.computed(()=>t.hotelLink||t.eventLink),u=e.computed(()=>t.hotelLink&&t.eventLink),p=e.computed(()=>o.value==="hotel"),i=e.computed(()=>o.value==="event"),d=l=>o.value=l;e.onMounted(()=>{!t.hotelLink&&t.eventLink?o.value="event":o.value="hotel"});const _={"--accentColor":t.accentColor,"--buttonBackground":t.buttonBackground,"--buttonBorder":t.buttonBorder,"--buttonBorderRadius":t.buttonBorderRadius,"--buttonColor":t.buttonColor,"--buttonFontFamily":t.buttonFontFamily,"--buttonFontSize":t.buttonFontSize,"--buttonFontWeight":t.buttonFontWeight,"--buttonTextTransform":t.buttonTextTransform,"--fontColor":t.fontColor,"--fontFamily":t.fontFamily,"--fontSize":t.fontSize,"--headerColor":t.headerColor,"--headerFontSize":t.headerFontSize,"--inputBackground":t.inputBackground,"--inputBorder":t.inputBorder,"--inputBorderRadius":t.inputBorderRadius,"--inputBorderWidth":t.inputBorderWidth,"--inputFontColor":t.inputFontColor,"--labelFontWeight":t.labelFontWeight,"--labelFontSize":t.labelFontSize,"--panelBackground":t.panelBackground,"--panelBorder":t.panelBorder};return(l,c)=>(e.openBlock(),e.createElementBlock("div",null,[s.value?(e.openBlock(),e.createBlock(e.Suspense,{key:0},{default:e.withCtx(()=>[e.createVNode(n._sfc_main,{class:"fresh-booking-app","access-token":l.accessToken,style:_},{default:e.withCtx(()=>[e.createBaseVNode("div",L,[u.value?(e.openBlock(),e.createElementBlock("nav",x,[e.createBaseVNode("ul",null,[e.createBaseVNode("li",null,[e.createBaseVNode("button",{class:e.normalizeClass({active:p.value}),onClick:c[0]||(c[0]=e.withModifiers(f=>d("hotel"),["prevent"]))},z,2)]),e.createBaseVNode("li",null,[e.createBaseVNode("button",{class:e.normalizeClass({active:i.value}),onClick:c[1]||(c[1]=e.withModifiers(f=>d("event"),["prevent"]))},T,2)])])])):e.createCommentVNode("",!0),$,e.createBaseVNode("div",R,[e.createVNode(e.Transition,{name:"fade",mode:"out-in",appear:""},{default:e.withCtx(()=>[p.value?(e.openBlock(),e.createBlock(k.HotelAvailabilityForm,{key:0,link:l.hotelLink},null,8,["link"])):i.value?(e.openBlock(),e.createBlock(F,{key:1,link:l.eventLink},null,8,["link"])):e.createCommentVNode("",!0)]),_:1})])])]),_:1},8,["access-token"])]),fallback:e.withCtx(()=>[e.createBaseVNode("div",null,[e.createVNode(S)])]),_:1})):(e.openBlock(),e.createElementBlock("div",W,P))]))}});const D=e._export_sfc(q,[["__scopeId","data-v-55265546"]]);process.env.NODE_ENV==="production"&&n.distExports.flare.light();const H=n.createPinia(),v=e.createApp({components:{Availability:D}});v.use(n.distExports$1.flareVue);v.use(H);v.use(n.instance);v.mount("#fresh-booking-availability-app");
2
+ //# sourceMappingURL=availability.cjs.js.map
Binary file
@@ -0,0 +1,185 @@
1
+ import { d as C, o as n, c as l, a as d, u as k, i as L, b as e, C as z, _ as y, e as E, r as T, f as u, g as $, h as m, w as p, n as B, j as g, k as F, T as A, S as x, p as R, l as V, m as W } from "./Clickable-eb931b15.mjs";
2
+ import { s as I, u as P, _ as N, d as D, c as H, a as O, i as M } from "./NumberField.vue_vue_type_style_index_0_lang-737bf674.mjs";
3
+ import { H as j } from "./HotelAvailabilityForm-bab6ef4d.mjs";
4
+ import { _ as U } from "./payment-b79997a8.mjs";
5
+ import { u as q } from "./event-1b888019.mjs";
6
+ import "./applyGiftCard-eb7b85ee.mjs";
7
+ const G = { id: "konnectio-event-search-form" }, J = { class: "konnectio-search-button" }, K = /* @__PURE__ */ C({
8
+ __name: "EventAvailabilityForm",
9
+ props: {
10
+ link: {}
11
+ },
12
+ setup(o) {
13
+ const t = o, { searchDate: a } = I(q()), { t: c } = P();
14
+ function h() {
15
+ window.location.replace(t.link);
16
+ }
17
+ return (b, i) => (n(), l("div", G, [
18
+ d(U, {
19
+ modelValue: k(a),
20
+ "onUpdate:modelValue": i[0] || (i[0] = (r) => L(a) ? a.value = r : null),
21
+ label: k(c)("event.selectDate"),
22
+ "icon-placement": "label",
23
+ "min-date": /* @__PURE__ */ new Date()
24
+ }, null, 8, ["modelValue", "label", "min-date"]),
25
+ e("div", J, [
26
+ d(z, {
27
+ label: k(c)("availability.buttonLabel"),
28
+ disabled: !1,
29
+ onClickEvent: h
30
+ }, null, 8, ["label"])
31
+ ])
32
+ ]));
33
+ }
34
+ });
35
+ const Q = /* @__PURE__ */ y(K, [["__scopeId", "data-v-15c74d0f"]]);
36
+ const X = {}, Y = { class: "loading-container" }, Z = /* @__PURE__ */ E('<div class="loading" data-v-30283f5a><section id="test" data-v-30283f5a><section id="header" data-v-30283f5a><div data-v-30283f5a></div><div class="shape1 white" data-v-30283f5a></div><div data-v-30283f5a></div><div class="shape2 white" data-v-30283f5a></div><div class="shape2 white" data-v-30283f5a></div></section><section class="blank" data-v-30283f5a></section><section class="content" data-v-30283f5a><div class="label" data-v-30283f5a><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div></div><div class="white" data-v-30283f5a></div><div class="label" data-v-30283f5a><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div></div><div class="white" data-v-30283f5a></div><div class="white" data-v-30283f5a></div></section><section class="blank" data-v-30283f5a></section><section class="content" data-v-30283f5a><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div><div data-v-30283f5a></div><div class="white" data-v-30283f5a></div><div data-v-30283f5a></div></section></section></div>', 1), tt = [
37
+ Z
38
+ ];
39
+ function et(o, t) {
40
+ return n(), l("div", Y, tt);
41
+ }
42
+ const at = /* @__PURE__ */ y(X, [["render", et], ["__scopeId", "data-v-30283f5a"]]), _ = (o) => (R("data-v-55265546"), o = o(), V(), o), ot = { class: "konnectio-availability-module" }, nt = {
43
+ key: 0,
44
+ class: "konnectio-availability-navigation"
45
+ }, it = /* @__PURE__ */ _(() => /* @__PURE__ */ e("span", null, "Hotel", -1)), st = [
46
+ it
47
+ ], lt = /* @__PURE__ */ _(() => /* @__PURE__ */ e("span", null, "Events", -1)), dt = [
48
+ lt
49
+ ], ct = /* @__PURE__ */ _(() => /* @__PURE__ */ e("div", { class: "konnectio-availability-divider" }, null, -1)), rt = { class: "konnectio-availability-search-form" }, vt = { key: 1 }, ut = /* @__PURE__ */ _(() => /* @__PURE__ */ e("span", null, "One of 'hotelLink' or 'eventLink' properties are missing. Please contact your administrator!", -1)), pt = [
50
+ ut
51
+ ], _t = /* @__PURE__ */ C({
52
+ __name: "Availability",
53
+ props: {
54
+ eventLink: {},
55
+ hotelLink: {},
56
+ accessToken: {},
57
+ accentColor: {},
58
+ buttonBackground: {},
59
+ buttonBorder: {},
60
+ buttonBorderRadius: {},
61
+ buttonColor: {},
62
+ buttonFontFamily: {},
63
+ buttonFontSize: {},
64
+ buttonFontWeight: {},
65
+ buttonTextTransform: {},
66
+ fontColor: {},
67
+ fontFamily: {},
68
+ fontSize: {},
69
+ headerColor: {},
70
+ headerFontSize: {},
71
+ inputBorder: {},
72
+ inputBackground: {},
73
+ inputBorderRadius: {},
74
+ inputBorderWidth: {},
75
+ inputFontColor: {},
76
+ labelFontWeight: {},
77
+ labelFontSize: {},
78
+ labelPadding: {},
79
+ panelBackground: {},
80
+ panelBorder: {},
81
+ panelBorderRadius: {},
82
+ panelPadding: {},
83
+ panelOuterPadding: {}
84
+ },
85
+ setup(o) {
86
+ const t = o, a = T(), c = u(() => t.hotelLink || t.eventLink), h = u(() => t.hotelLink && t.eventLink), b = u(() => a.value === "hotel"), i = u(() => a.value === "event"), r = (s) => a.value = s;
87
+ $(() => {
88
+ !t.hotelLink && t.eventLink ? a.value = "event" : a.value = "hotel";
89
+ });
90
+ const S = {
91
+ "--accentColor": t.accentColor,
92
+ "--buttonBackground": t.buttonBackground,
93
+ "--buttonBorder": t.buttonBorder,
94
+ "--buttonBorderRadius": t.buttonBorderRadius,
95
+ "--buttonColor": t.buttonColor,
96
+ "--buttonFontFamily": t.buttonFontFamily,
97
+ "--buttonFontSize": t.buttonFontSize,
98
+ "--buttonFontWeight": t.buttonFontWeight,
99
+ "--buttonTextTransform": t.buttonTextTransform,
100
+ "--fontColor": t.fontColor,
101
+ "--fontFamily": t.fontFamily,
102
+ "--fontSize": t.fontSize,
103
+ "--headerColor": t.headerColor,
104
+ "--headerFontSize": t.headerFontSize,
105
+ "--inputBackground": t.inputBackground,
106
+ "--inputBorder": t.inputBorder,
107
+ "--inputBorderRadius": t.inputBorderRadius,
108
+ "--inputBorderWidth": t.inputBorderWidth,
109
+ "--inputFontColor": t.inputFontColor,
110
+ "--labelFontWeight": t.labelFontWeight,
111
+ // '--labelPadding': props.labelPadding,
112
+ "--labelFontSize": t.labelFontSize,
113
+ "--panelBackground": t.panelBackground,
114
+ "--panelBorder": t.panelBorder
115
+ // '--panelPadding': props.panelPadding,
116
+ //'--panelOuterPadding': props.panelOuterPadding
117
+ };
118
+ return (s, v) => (n(), l("div", null, [
119
+ c.value ? (n(), m(x, { key: 0 }, {
120
+ default: p(() => [
121
+ d(N, {
122
+ class: "fresh-booking-app",
123
+ "access-token": s.accessToken,
124
+ style: S
125
+ }, {
126
+ default: p(() => [
127
+ e("div", ot, [
128
+ h.value ? (n(), l("nav", nt, [
129
+ e("ul", null, [
130
+ e("li", null, [
131
+ e("button", {
132
+ class: B({ active: b.value }),
133
+ onClick: v[0] || (v[0] = g((w) => r("hotel"), ["prevent"]))
134
+ }, st, 2)
135
+ ]),
136
+ e("li", null, [
137
+ e("button", {
138
+ class: B({ active: i.value }),
139
+ onClick: v[1] || (v[1] = g((w) => r("event"), ["prevent"]))
140
+ }, dt, 2)
141
+ ])
142
+ ])
143
+ ])) : F("", !0),
144
+ ct,
145
+ e("div", rt, [
146
+ d(A, {
147
+ name: "fade",
148
+ mode: "out-in",
149
+ appear: ""
150
+ }, {
151
+ default: p(() => [
152
+ b.value ? (n(), m(j, {
153
+ key: 0,
154
+ link: s.hotelLink
155
+ }, null, 8, ["link"])) : i.value ? (n(), m(Q, {
156
+ key: 1,
157
+ link: s.eventLink
158
+ }, null, 8, ["link"])) : F("", !0)
159
+ ]),
160
+ _: 1
161
+ })
162
+ ])
163
+ ])
164
+ ]),
165
+ _: 1
166
+ }, 8, ["access-token"])
167
+ ]),
168
+ fallback: p(() => [
169
+ e("div", null, [
170
+ d(at)
171
+ ])
172
+ ]),
173
+ _: 1
174
+ })) : (n(), l("div", vt, pt))
175
+ ]));
176
+ }
177
+ });
178
+ const ft = /* @__PURE__ */ y(_t, [["__scopeId", "data-v-55265546"]]);
179
+ process.env.NODE_ENV === "production" && D.flare.light();
180
+ const ht = H(), f = W({ components: { Availability: ft } });
181
+ f.use(O.flareVue);
182
+ f.use(ht);
183
+ f.use(M);
184
+ f.mount("#fresh-booking-availability-app");
185
+ //# sourceMappingURL=availability.es.js.map
Binary file