@konnectio/core 4.0.17 → 4.0.19

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 (90) hide show
  1. package/dist/ActionField-4cb5a734.js +100 -0
  2. package/dist/ActionField-4cb5a734.js.br +0 -0
  3. package/dist/ActionField-656d204b.cjs +1 -0
  4. package/dist/AvailabilitySkeleton-00f7fc68.js +223 -0
  5. package/dist/AvailabilitySkeleton-00f7fc68.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-8fc17074.cjs +1 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-d5a1efd5.js → DateField.vue_vue_type_style_index_0_lang-36b7ee9e.js} +2323 -2323
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-36b7ee9e.js.br +0 -0
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-ef9c83d6.cjs +5 -0
  10. package/dist/Field-4283160f.cjs +1 -0
  11. package/dist/{Field-7137ef85.js → Field-e1af1bbc.js} +11 -12
  12. package/dist/Field-e1af1bbc.js.br +0 -0
  13. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a517b062.cjs +1 -0
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js +116 -0
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js.br +0 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-1c999286.js +28840 -0
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-1c999286.js.br +0 -0
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-af7c016a.cjs +855 -0
  19. package/dist/ThankYou-01175a37.cjs +54 -0
  20. package/dist/{ThankYou-433bd249.js → ThankYou-0860a0ab.js} +436 -430
  21. package/dist/ThankYou-0860a0ab.js.br +0 -0
  22. package/dist/{_-048b5217.js → _-6db0e1a4.js} +16 -17
  23. package/dist/_-6db0e1a4.js.br +0 -0
  24. package/dist/_-b5842a21.cjs +1 -0
  25. package/dist/_commonjsHelpers-6763f629.cjs +1 -0
  26. package/dist/_commonjsHelpers-aeeeeb92.js +30 -0
  27. package/dist/assets/typescript/mixins.d.ts +1 -0
  28. package/dist/availability.cjs +2 -2
  29. package/dist/availability.js +30 -31
  30. package/dist/availability.js.br +0 -0
  31. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  32. package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
  33. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  34. package/dist/components/listings/Base.vue.d.ts +1 -1
  35. package/dist/components/listings/Hotel.vue.d.ts +1 -1
  36. package/dist/{event-3ef40faf.js → event-52fce8cc.js} +29 -30
  37. package/dist/event-52fce8cc.js.br +0 -0
  38. package/dist/event-c717dc05.cjs +1 -0
  39. package/dist/event.cjs +1 -1
  40. package/dist/event.js +233 -235
  41. package/dist/event.js.br +0 -0
  42. package/dist/gift-card-validation.cjs +1 -1
  43. package/dist/gift-card-validation.js +53 -55
  44. package/dist/gift-card-validation.js.br +0 -0
  45. package/dist/gift-card.cjs +1 -1
  46. package/dist/gift-card.js +186 -188
  47. package/dist/gift-card.js.br +0 -0
  48. package/dist/hotel.cjs +5 -5
  49. package/dist/hotel.js +1462 -1328
  50. package/dist/hotel.js.br +0 -0
  51. package/dist/{index-36d9ed45.js → index-4aff7f4e.js} +14 -16
  52. package/dist/index-4aff7f4e.js.br +0 -0
  53. package/dist/index-5d223c1a.cjs +1 -0
  54. package/dist/polyfill.cjs +2 -2
  55. package/dist/polyfill.js +2 -2
  56. package/dist/polyfill.js.br +0 -0
  57. package/dist/store/hotel.d.ts +4 -1
  58. package/dist/style.css +1 -1
  59. package/dist/style.css.br +0 -0
  60. package/dist/types/index.d.ts +1 -0
  61. package/package.json +1 -1
  62. package/dist/ActionField-3184bffd.cjs +0 -1
  63. package/dist/ActionField-82ef422e.js +0 -164
  64. package/dist/ActionField-82ef422e.js.br +0 -0
  65. package/dist/AvailabilitySkeleton-528d40ef.cjs +0 -1
  66. package/dist/AvailabilitySkeleton-ec092c09.js +0 -203
  67. package/dist/AvailabilitySkeleton-ec092c09.js.br +0 -0
  68. package/dist/DateField.vue_vue_type_style_index_0_lang-5692c5b2.cjs +0 -5
  69. package/dist/DateField.vue_vue_type_style_index_0_lang-d5a1efd5.js.br +0 -0
  70. package/dist/Field-7137ef85.js.br +0 -0
  71. package/dist/Field-b1690485.cjs +0 -1
  72. package/dist/NumberField.vue_vue_type_style_index_0_lang-8c28c1dd.cjs +0 -1
  73. package/dist/NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js +0 -194
  74. package/dist/NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js.br +0 -0
  75. package/dist/SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js +0 -19741
  76. package/dist/SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js.br +0 -0
  77. package/dist/SelectField.vue_vue_type_style_index_0_lang-c0715ca3.cjs +0 -850
  78. package/dist/ThankYou-433bd249.js.br +0 -0
  79. package/dist/ThankYou-817b93d0.cjs +0 -54
  80. package/dist/_-048b5217.js.br +0 -0
  81. package/dist/_-120d9090.cjs +0 -1
  82. package/dist/_commonjsHelpers-10dfc225.js +0 -8
  83. package/dist/_commonjsHelpers-87b0abe8.cjs +0 -1
  84. package/dist/applyGiftCard-45cf782e.js +0 -54
  85. package/dist/applyGiftCard-45cf782e.js.br +0 -0
  86. package/dist/applyGiftCard-f1b620cc.cjs +0 -1
  87. package/dist/event-3ef40faf.js.br +0 -0
  88. package/dist/event-d531df9d.cjs +0 -1
  89. package/dist/index-36d9ed45.js.br +0 -0
  90. package/dist/index-8309eba2.cjs +0 -1
Binary file
@@ -1 +0,0 @@
1
- "use strict";const a=require("./SelectField.vue_vue_type_style_index_0_lang-c0715ca3.cjs"),t=require("vue"),w=a.defineStore("payment",()=>{const{display:s}=a.useAlertStore(),{paymentGatewayId:n}=a.storeToRefs(a.useUtilityStore()),e=t.ref({}),i=t.computed(()=>n.value!==a.PaymentGateway.None),y=t.computed(()=>e.value&&e.value.guest?e.value.guest.name:""),p=t.computed(()=>e.value&&e.value.guest?e.value.guest.email:""),v=t.computed(()=>e.value&&e.value.guest?e.value.guest.phone:""),_=t.computed(()=>e.value.adults),h=t.computed(()=>e.value.children),d=t.computed(()=>e.value.totalPrice||0),m=t.computed(()=>e.value.totalVAT||0),f=t.computed(()=>e.value.offerDate),g=t.computed(()=>d.value-m.value),r=t.computed(()=>e.value.orderLinesSummary),P=t.computed(()=>r.value?r.value.length>0:!1);async function k({callback:u,response:o}){if(!o.error)if(!o.offer)s({message:a.i18n.t("booking.other.errorMessage"),type:"warning"});else if(e.value=o.offer,o.easyPayment)if(u(),n.value===a.PaymentGateway.ReePay){const c=new Reepay.EmbeddedCheckout(o.easyPayment.paymentID,{html_element:"fresh-booking-payment-checkout"});c.addEventHandler(a.ReepayEvent.Accept,()=>{s({message:a.i18n.t("alert.success.payment"),type:"success"}),u()}),c.addEventHandler(a.ReepayEvent.Error,()=>{s({message:a.i18n.t("alert.error.payment"),type:"warning"})})}else{const c={checkoutKey:o.easyPayment.checkoutSecretKey,paymentId:o.easyPayment.paymentID,containerId:"fresh-booking-payment-checkout",language:a.getUserLanguage()==="da"?"da-DK":"en-GB"},l=new Dibs.Checkout(c);l.on("payment-completed",()=>{console.log("FreshBooking: Payment completed!"),s({message:a.i18n.t("alert.success.payment"),type:"success"}),u()}),l.on("pay-initialized",()=>{l.send("payment-order-finalized",!0)})}else u(2)}return{offerData:e,hasPaymentGateway:i,name:y,email:p,phone:v,adults:_,children:h,totalPrice:d,totalVAT:m,offerDate:f,subTotalPrice:g,orderSummary:r,hasOrderLines:P,pay:k}}),E={class:"placeholder"},S=t.defineComponent({__name:"_",props:{height:{default:"100%"},width:{default:"100%"},borderRadius:{default:"3px"}},setup(s){return t.useCssVars(n=>({"498aa37e":n.width,"640a5b22":n.height,23792726:n.borderRadius})),(n,e)=>(t.openBlock(),t.createElementBlock("div",E))}});const D=a._export_sfc(S,[["__scopeId","data-v-9a3e9892"]]);exports.Element=D;exports.usePaymentStore=w;
@@ -1,8 +0,0 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
5
- export {
6
- o as c,
7
- l as g
8
- };
@@ -1 +0,0 @@
1
- "use strict";var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
@@ -1,54 +0,0 @@
1
- import { d as y, u as h, s as C, a as A, c as k, e as x, i as r } from "./SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js";
2
- import { ref as e } from "vue";
3
- const D = y("applyGiftCard", () => {
4
- const { display: a } = h(), { bearerToken: u } = C(A()), o = e(0), t = e(""), l = e(""), n = e(""), s = e(!1), i = e(!1);
5
- async function c() {
6
- t.value !== "" ? (i.value = !0, await k.get("https://stage.hotel-service.konnectio.dk/api/gift-card/validate", {
7
- params: {
8
- giftcardCode: t.value,
9
- lang: x()
10
- },
11
- headers: {
12
- Authorization: u.value,
13
- Accept: "application/json",
14
- "Fresh-Booking-Ver": "4.0.17"
15
- }
16
- }).then((d) => {
17
- const {
18
- valid: f,
19
- amount: g,
20
- expirationDate: v,
21
- productName: m
22
- } = d.data;
23
- f ? (o.value = g, l.value = v, n.value = m, s.value = !0, a({
24
- message: r.t("alert.success.giftCardApplied"),
25
- type: "success"
26
- })) : (s.value = !1, a({
27
- message: r.t("alert.error.giftCardInvalid"),
28
- type: "warning"
29
- }));
30
- }), i.value = !1) : a({
31
- message: r.t("alert.error.giftCardEmpty"),
32
- type: "error"
33
- });
34
- }
35
- function p() {
36
- o.value = 0, t.value = "", s.value = !1, a({
37
- message: r.t("alert.success.giftCardRemoved"),
38
- type: "success"
39
- });
40
- }
41
- return {
42
- amount: o,
43
- voucher: t,
44
- expirationDate: l,
45
- productName: n,
46
- isValid: s,
47
- isLoading: i,
48
- apply: c,
49
- reset: p
50
- };
51
- });
52
- export {
53
- D as u
54
- };
Binary file
@@ -1 +0,0 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-c0715ca3.cjs"),t=require("vue"),m=e.defineStore("applyGiftCard",()=>{const{display:a}=e.useAlertStore(),{bearerToken:u}=e.storeToRefs(e.useUtilityStore()),i=t.ref(0),r=t.ref(""),n=t.ref(""),l=t.ref(""),s=t.ref(!1),o=t.ref(!1);async function c(){r.value!==""?(o.value=!0,await e.axios.get("https://stage.hotel-service.konnectio.dk/api/gift-card/validate",{params:{giftcardCode:r.value,lang:e.getUserLanguage()},headers:{Authorization:u.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.17"}}).then(d=>{const{valid:f,amount:v,expirationDate:g,productName:y}=d.data;f?(i.value=v,n.value=g,l.value=y,s.value=!0,a({message:e.i18n.t("alert.success.giftCardApplied"),type:"success"})):(s.value=!1,a({message:e.i18n.t("alert.error.giftCardInvalid"),type:"warning"}))}),o.value=!1):a({message:e.i18n.t("alert.error.giftCardEmpty"),type:"error"})}function p(){i.value=0,r.value="",s.value=!1,a({message:e.i18n.t("alert.success.giftCardRemoved"),type:"success"})}return{amount:i,voucher:r,expirationDate:n,productName:l,isValid:s,isLoading:o,apply:c,reset:p}});exports.useApplyGiftCardStore=m;
Binary file
@@ -1 +0,0 @@
1
- "use strict";const a=require("./SelectField.vue_vue_type_style_index_0_lang-c0715ca3.cjs"),t=require("vue"),Te=require("./_-120d9090.cjs"),$e=require("./applyGiftCard-f1b620cc.cjs"),Fe=a.defineStore("event",()=>{const Y=Te.usePaymentStore(),{voucher:Z}=a.storeToRefs($e.useApplyGiftCardStore()),{display:f}=a.useAlertStore(),{bearerToken:b}=a.storeToRefs(a.useUtilityStore()),d=t.ref({}),h=t.ref({}),o=t.ref(void 0),l=t.ref(!0),i=t.ref(a.EventModuleState.InitialState),z=t.ref(new Date),A=t.ref(NaN),w=t.ref(1),k=t.ref(NaN),L=t.ref(NaN),P=t.ref(""),M=a.useStorage("konnectio_name","",void 0,{serializer:a.StorageSerializers.string}),C=a.useStorage("konnectio_phone","",void 0,{serializer:a.StorageSerializers.string}),T=a.useStorage("konnectio_email","",void 0,{serializer:a.StorageSerializers.string}),q=t.ref(""),D=t.ref({}),p=t.ref({}),$=t.ref("");function u(e){return e.templateID!==void 0}const ee=t.computed(()=>d.value.currency),te=t.computed(()=>d.value.maxNumberPerBooking),ae=t.computed(()=>d.value.title),oe=t.computed(()=>d.value.subtitle),ne=t.computed(()=>d.value.slideshow),I=t.computed(()=>z.value.toISOString()),ue=t.computed(()=>u(o.value)),F=t.computed(()=>u(o.value)?o.value.numberOfDays:w.value),le=t.computed(()=>u(o.value)?o.value.packageCount:0),re=t.computed(()=>u(o.value)?o.value.fromDate:""),y=t.computed(()=>h.value.events.find(e=>e.id===k.value)),se=t.computed(()=>y.value?y.value.length:void 0),G=t.computed(()=>u(o.value)?o.value.templateID:0),ie=t.computed(()=>h.value.events),ve=t.computed(()=>h.value.templates),ce=t.computed(()=>h.value.events.length>0),de=t.computed(()=>h.value.templates.length>0),U=t.computed(()=>y.value&&y.value.eventRateType?y.value.eventRateType:a.OctopusEventRateType.None),R=t.computed(()=>{if(!u(o.value))return o.value}),B=t.computed(()=>{if(R.value!==void 0){const e=R.value.find(n=>n.time===P.value);if(e&&e.price)return e.price}return 0}),V=t.computed(()=>{if(u(o.value))return o.value.templateCounts}),pe=t.computed(()=>e=>d.value.eventImages.filter(n=>n.eventID===e));function N(e,n,r){let v=0;if(u(o.value)){const s=o.value.templateCounts[r];if(s){const S=s.addons,m=D.value[`${n}.${e}.${r}`]||0;if(m>0){const g=S?.find(E=>E.addonID===e),c=typeof m=="boolean"?1:m;v+=a.getQuantityStrategyPrice(g?.price,g?.quantityStrategy,F.value,s.adultPerRoom)*c}}}else{const s=p.value[e]||0;if(s>0){const S=y.value?.products?.find(m=>m.productID===e);S&&(v+=S.price*s)}}return v}function O(e,n){let r=0;if(u(o.value))for(const v in D.value){const s=v.split(".");parseInt(s[0])===e&&parseInt(s[2])===n&&(r+=N(parseInt(s[1]),e,n))}else for(const v in p.value)r+=N(parseInt(v))*w.value;return r}const x=t.computed(()=>u(o.value)&&o.value.totalPrice||0),me=t.computed(()=>{if(u(o.value))return o.value.templateCounts===void 0?NaN:o.value.templateCounts.flatMap(e=>e.roomGroupID).reduce((e,n,r)=>e+O(n,r),x.value)||0;{let e=O();return e+=B.value,e}}),ge=t.computed(()=>u(o.value)&&o.value.templateCounts!==void 0&&o.value.templateCounts.flatMap(e=>e.weekendFee).reduce((e,n)=>e+n,0)||0),fe=t.computed(()=>u(o.value)&&o.value.templateCounts!==void 0&&o.value.templateCounts.flatMap(e=>e.roomUpgrade).reduce((e,n)=>e+n,0)||0),he=t.computed(()=>{const e=p.value;let n=0;for(const r in e)n+=Number.isNaN(e[r])?0:e[r];return n>0}),K=t.computed(()=>u(o.value)?!1:Object.keys(p.value).length>0),ye=t.computed(()=>!!(M.value!==""&&T.value!==""&&C.value.length>=5&&(!K.value||he.value)&&(!(!u(o.value)&&U.value!==a.OctopusEventRateType.FullDayEvent)||P.value!=="")));function Se(e){return i.value===a.EventModuleState.ReservationState&&k.value===e&&l.value}const be=t.computed(()=>!(i.value===a.EventModuleState.InitialState&&l.value)),ke=t.computed(()=>!(i.value===a.EventModuleState.AvailabilityState&&l.value)),De=t.computed(()=>o.value!==void 0),Ie=t.computed(()=>i.value===a.EventModuleState.PaymentState&&l.value);async function j(){try{const e=(await a.axios.get("https://stage.hotel-service.konnectio.dk/api/event/metadata",{params:{language:a.getUserLanguage()},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.17"}})).data;d.value=e,Q()}catch{f({message:a.i18n.t("alert.error.couldntFetchMetadata"),type:"warning"})}}async function Q(){i.value=a.EventModuleState.AvailabilityState,l.value=!0;try{const e=(await a.axios.get("https://stage.hotel-service.konnectio.dk/api/event/restaurant-events",{params:{language:a.getUserLanguage(),date:I.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.17"}})).data;h.value=e,l.value=!1}catch{f({message:a.i18n.t("alert.error.couldntFetchListings"),type:"warning"})}}async function Ee(e){i.value=a.EventModuleState.ReservationState,l.value=!0;try{const n=(await a.axios.get("https://stage.hotel-service.konnectio.dk/api/v3/event/get-availability",{params:{language:a.getUserLanguage(),date:I.value,templateId:k.value,numberOfPeople:A.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.17"}})).data;n.templateCounts.length===0?f({message:a.i18n.t("alert.error.eventNotAvailable"),type:"warning"}):(o.value=n,e()),l.value=!1}catch{l.value=!1,i.value=a.EventModuleState.AvailabilityState,f({message:a.i18n.t("alert.error.couldntFetchEvent"),type:"warning"})}}async function Pe(e){i.value=a.EventModuleState.ReservationState,l.value=!0;try{const n=(await a.axios.get("https://stage.hotel-service.konnectio.dk/api/v3/event/get-table-availability",{params:{language:a.getUserLanguage(),date:I.value,numberOfPeople:A.value,eventId:k.value,tableGroupId:L.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.17"}})).data;o.value=n,l.value=!1,e()}catch{l.value=!1,i.value=a.EventModuleState.AvailabilityState,f({message:a.i18n.t("alert.error.couldntFetchEvent"),type:"warning"})}}async function Ae(){try{const e=(await a.axios.get("https://stage.hotel-service.konnectio.dk/api/v3/event/validate-discount-code",{params:{language:a.getUserLanguage(),date:I.value,discountCode:$.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.17"}})).data;console.log(e)}catch(e){console.log(e),f({message:a.i18n.t("alert.error.discountCodeValidation"),type:"warning"})}}async function we(e){i.value=a.EventModuleState.PaymentState,l.value=!0;const n=()=>{l.value=!1,i.value=a.EventModuleState.ReservationState,f({message:a.i18n.t("booking.other.errorMessage"),type:"warning"})};let r,v,s;const S=[];if(u(o.value))V.value?.forEach((c,E)=>{const H=[];let J=0;for(const W in D.value){const _=W.split("."),X=D.value[W];parseInt(_[0])===c.roomGroupID&&parseInt(_[2])===E&&X>0&&(H.push({id:J,addonID:parseInt(_[1]),quantity:X}),J++)}S.push({adultPerRoom:c.adultPerRoom,count:c.count,roomGroupID:c.roomGroupID,addons:H})}),r={templateID:G.value,numberOfDays:w.value,templateCounts:S};else{v=[],s=P.value;for(const c in p.value){const E=p.value[parseInt(c)];E>0&&v.push({id:parseInt(c),quantity:E})}}let m="https://stage.hotel-service.konnectio.dk/api/v3/event/template-book";const g={date:I.value,name:M.value,email:T.value,phone:C.value,remark:q.value,numberOfPeople:A.value,days:F.value,discountCode:$.value,giftCardCode:Z.value,checkoutUrl:window.location.origin,privacyUrl:window.location.origin};u(o.value)?g.templateGroup=r:(g.time=s,g.eventId=k.value,g.products=v,m="https://stage.hotel-service.konnectio.dk/api/v3/event/event-book"),await a.axios.post(m,g,{headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.17"}}).then(c=>{l.value=!1,Y.pay({callback:e,response:c.data})}).catch(()=>n())}function Me(e){D.value={},p.value={},P.value="",e()}function Ce(){j()}return{metaData:d,listingData:h,tableBasePrice:B,availabilityData:o,isLoading:l,moduleState:i,searchDate:z,numberOfPeople:A,numberOfDays:w,eventId:k,tableGroupId:L,arrivalTime:P,addons:D,products:p,discountCode:$,name:M,phone:C,email:T,remark:q,isTemplateEvent:ue,currency:ee,maxNumberOfPeople:te,title:ae,subtitle:oe,slideshow:ne,date:I,numberOfTotalDays:F,numberOfRooms:le,fromDate:re,getEventData:y,length:se,templateId:G,getEvents:ie,getTemplates:ve,hasEvents:ce,hasTemplates:de,basePrice:x,totalPrice:me,getTemplateData:V,getEventTableData:R,roomUpgrade:fe,weekendFee:ge,hasProducts:K,eventRateType:U,isReservationFormFilled:ye,isMetaDataAvailable:be,areListingsAvailable:ke,isAvailabilityDataAvailable:De,isPaymentLoading:Ie,getEventImages:pe,isEventListingLoading:Se,fetchMetaData:j,fetchListings:Q,getTemplateAvailability:Ee,getEventAvailability:Pe,validateDiscountCode:Ae,localAddonPrice:N,totalAddonPrice:O,createBooking:we,reset:Me,initialize:Ce}});exports.useEventStore=Fe;
Binary file
@@ -1 +0,0 @@
1
- "use strict";const require$$0=require("vue"),SelectField_vue_vue_type_style_index_0_lang=require("./SelectField.vue_vue_type_style_index_0_lang-c0715ca3.cjs"),isFunction=e=>typeof e=="function",objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>toTypeString(e)==="[object Object]";function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(i){_defineProperty(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var load=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(i,s){if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("script");if(l.async=!0,l.src=t,l.defer=n.defer,n.preconnectOrigin){var u=document.createElement("link");u.href=n.preconnectOrigin,u.rel="preconnect",r.appendChild(u)}r.appendChild(l),l.onload=i,l.onerror=s}})},mergeDeep=function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];if(!i.length)return t;var r=i.shift();if(!(!isPlainObject(t)||!isPlainObject(r))){for(var l in r)isPlainObject(r[l])?(t[l]||Object.assign(t,_defineProperty({},l,{})),e(t[l],r[l])):Object.assign(t,_defineProperty({},l,r[l]));return e.apply(void 0,[t].concat(i))}},isBrowser=function(){return!(typeof window>"u"||typeof document>"u")},warn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;isBrowser()},validateScreenviewShape=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return warn('Missing "appName" property inside the plugin options.',t.app_name==null),warn('Missing "name" property in the route.',t.screen_name==null),t};function getPathWithBase(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e.split("/"),i=t.split("/");return n[0]===""&&t[t.length-1]==="/"&&n.shift(),i.join("/")+n.join("/")}var getDefaultParams=function(){return{bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}}},params={},setOptions=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=getDefaultParams();params=mergeDeep(n,t)},getOptions=function(){return params},query=function(){var e,t=getOptions(),n=t.globalObjectName;!isBrowser()||typeof window[n]>"u"||(e=window)[n].apply(e,arguments)},config=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=getOptions(),s=i.config,r=i.includes;query.apply(void 0,["config",s.id].concat(t)),Array.isArray(r)&&r.forEach(function(l){query.apply(void 0,["config",l.id].concat(t))})},assignGlobalProperty=function(t,n){isBrowser()&&(window["ga-disable-".concat(t)]=n)},disable=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=getOptions(),n=t.config,i=t.includes;assignGlobalProperty(n.id,e),Array.isArray(i)&&i.forEach(function(s){return assignGlobalProperty(s.id,e)})},optOut=function(){disable(!0)},optIn=function(){disable(!1)},router,setRouter=function(t){router=t},getRouter=function(){return router},event=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=getOptions(),i=n.includes,s=n.defaultGroupName;t.send_to==null&&Array.isArray(i)&&i.length&&(t.send_to=i.map(function(r){return r.id}).concat(s)),query("event",e,t)},pageview=function(e){if(isBrowser()){var t;if(typeof e=="string")t={page_path:e};else if(e.path||e.fullPath){var n=getOptions(),i=n.pageTrackerUseFullPath,s=n.pageTrackerPrependBase,r=getRouter(),l=r&&r.options.base,u=i?e.fullPath:e.path;t=_objectSpread2(_objectSpread2({},e.name&&{page_title:e.name}),{},{page_path:s?getPathWithBase(u,l):u})}else t=e;t.page_location==null&&(t.page_location=window.location.href),t.send_page_view==null&&(t.send_page_view=!0),event("page_view",t)}},screenview=function(e){var t=getOptions(),n=t.appName;if(e){var i;typeof e=="string"?i={screen_name:e}:i=e,i.app_name=i.app_name||n,event("screen_view",i)}},exception=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];event.apply(void 0,["exception"].concat(t))},linker=function(e){config("linker",e)},time=function(e){event("timing_complete",e)},set=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];query.apply(void 0,["set"].concat(t))},refund=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];event.apply(void 0,["refund"].concat(t))},purchase=function(e){event("purchase",e)},customMap=function(e){config({custom_map:e})},api=Object.freeze({__proto__:null,query,config,optOut,optIn,pageview,screenview,exception,linker,time,set,refund,purchase,customMap,event}),attachApi=function(t){t.config.globalProperties.$gtag=api},registerGlobals=function(){if(isBrowser()){var e=getOptions(),t=e.enabled,n=e.globalObjectName,i=e.globalDataLayerName;return window[n]==null&&(window[i]=window[i]||[],window[n]=function(){window[i].push(arguments)}),window[n]("js",new Date),t||optOut(),window[n]}},mergeDefaultParams=function(t){return _objectSpread2({send_page_view:!1},t)},addConfiguration=function(){var e=getOptions(),t=e.config,n=e.includes;query("config",t.id,mergeDefaultParams(t.params)),Array.isArray(n)&&n.forEach(function(i){query("config",i.id,mergeDefaultParams(i.params))})},track=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=getOptions(),i=n.appName,s=n.pageTrackerTemplate,r=n.pageTrackerScreenviewEnabled,l=n.pageTrackerSkipSamePath;if(!(l&&e.path===t.path)){var u=e;if(isFunction(s)?u=s(e,t):r&&(u=validateScreenviewShape({app_name:i,screen_name:e.name})),r){screenview(u);return}pageview(u)}},isRouteExcluded=function(t){var n=getOptions(),i=n.pageTrackerExcludedRoutes;return i.includes(t.path)||i.includes(t.name)},addRoutesTracker=function(){var e=getOptions(),t=e.onBeforeTrack,n=e.onAfterTrack,i=getRouter();i.isReady().then(function(){require$$0.nextTick().then(function(){var s=i.currentRoute;addConfiguration(),!isRouteExcluded(s.value)&&track(s.value)}),i.afterEach(function(s,r){require$$0.nextTick().then(function(){isRouteExcluded(s)||(isFunction(t)&&t(s,r),track(s,r),isFunction(n)&&n(s,r))})})})},bootstrap=function(){var e=getOptions(),t=e.onReady,n=e.onError,i=e.globalObjectName,s=e.globalDataLayerName,r=e.config,l=e.customResourceURL,u=e.customPreconnectOrigin,p=e.deferScriptLoad,d=e.pageTrackerEnabled,f=e.disableScriptLoad,h=!!(d&&getRouter());if(registerGlobals(),h?addRoutesTracker():addConfiguration(),!f)return load("".concat(l,"?id=").concat(r.id,"&l=").concat(s),{preconnectOrigin:u,defer:p}).then(function(){t&&t(window[i])}).catch(function(g){return n&&n(g),g})},install=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;attachApi(t),setOptions(n),setRouter(i),getOptions().bootstrap&&bootstrap()};const _hoisted_1$3={class:"fresh-booking-phone-input"},_sfc_main$3=require$$0.defineComponent({__name:"PhoneField",props:{modelValue:{},label:{},id:{},placeholder:{},icon:{default:"phone-office"},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputStyle:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,i=e,s=i.id||SelectField_vue_vue_type_style_index_0_lang.ranId(),r=require$$0.ref("+45"),l=require$$0.ref("");function u(){n("update:modelValue",`${r.value} ${l.value}`)}return require$$0.onMounted(()=>{if(i.modelValue){const p=i.modelValue.split(" ");r.value=p[0],l.value=p[1]}}),(p,d)=>(require$$0.openBlock(),require$$0.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{label:p.label,id:require$$0.unref(s),type:"phone",required:p.required,readonly:p.readonly},{default:require$$0.withCtx(()=>[require$$0.createElementVNode("div",_hoisted_1$3,[require$$0.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=f=>r.value=f),type:"text",id:require$$0.unref(SelectField_vue_vue_type_style_index_0_lang.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:p.icon,"icon-color":p.iconColor,"icon-type":p.iconType,placeholder:"+45",required:p.required,readonly:p.readonly,"input-style":p.inputStyle,onInput:d[1]||(d[1]=f=>u())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),require$$0.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:l.value,"onUpdate:modelValue":d[2]||(d[2]=f=>l.value=f),type:"number",name:"phone",autocomplete:"tel-national",id:require$$0.unref(s),placeholder:p.placeholder,required:p.required,readonly:p.readonly,"input-style":p.inputStyle,onInput:d[3]||(d[3]=f=>u())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}}),PhoneField_vue_vue_type_style_index_0_scoped_5cd094ab_lang="",PhoneField=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$3,[["__scopeId","data-v-5cd094ab"]]),_hoisted_1$2=["required","type","name","readonly","disabled","value","checked"],_hoisted_2$2=["data-test"],_hoisted_3={key:0},_sfc_main$2=require$$0.defineComponent({__name:"Checkbox",props:{modelValue:{type:[String,Boolean,Number]},numeric:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},label:{},price:{},name:{},readonly:{type:Boolean,default:!1},type:{default:"checkbox"},required:{type:Boolean,default:!1},inputStyle:{},val:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t;function s(){n.readonly!==!0&&i("update:modelValue",n.type==="radio"?n.val:n.numeric?n.modelValue?0:1:!n.modelValue)}return(r,l)=>(require$$0.openBlock(),require$$0.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{required:r.required,type:r.type,readonly:r.readonly},{default:require$$0.withCtx(()=>[require$$0.createElementVNode("label",{class:require$$0.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":r.readonly},{"has-label":r.label},r.type==="radio"?"radio":"checkbox"])},[require$$0.createElementVNode("input",require$$0.mergeProps(r.$attrs,{required:!!r.required,type:r.type,name:r.name,class:"hidden",readonly:!!r.readonly,disabled:!!r.readonly,value:r.type==="radio"?r.val:r.modelValue,checked:r.type==="radio"?r.val===r.modelValue:!!r.modelValue,onChange:l[0]||(l[0]=u=>s())}),null,16,_hoisted_1$2),require$$0.createElementVNode("div",{class:require$$0.normalizeClass(["fresh-booking-click-box",{checked:r.type==="radio"?r.val===r.modelValue:!!r.modelValue}]),tabindex:"0",style:require$$0.normalizeStyle(r.inputStyle),"data-test":r.name,onKeyup:l[1]||(l[1]=require$$0.withKeys(u=>s(),["enter"]))},null,46,_hoisted_2$2),r.label?(require$$0.openBlock(),require$$0.createElementBlock("div",{key:0,class:require$$0.normalizeClass(["fresh-booking-click-box-label",{"with-price":r.price}])},[require$$0.createElementVNode("span",null,require$$0.toDisplayString(r.label),1),r.price?(require$$0.openBlock(),require$$0.createElementBlock("span",_hoisted_3,require$$0.toDisplayString(r.price),1)):require$$0.createCommentVNode("",!0)],2)):require$$0.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}}),Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang="",Checkbox=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$2,[["__scopeId","data-v-7ef656cb"]]),_hoisted_1$1={href:"https://policies.google.com/privacy"},_hoisted_2$1={href:"https://policies.google.com/terms"},_sfc_main$1=require$$0.defineComponent({__name:"GoogleNotice",setup(e){const{t}=SelectField_vue_vue_type_style_index_0_lang.useI18n();return(n,i)=>(require$$0.openBlock(),require$$0.createElementBlock("span",null,[require$$0.createTextVNode(require$$0.toDisplayString(require$$0.unref(t)("googleNotice"))+" ",1),require$$0.createElementVNode("a",_hoisted_1$1,require$$0.toDisplayString(require$$0.unref(t)("googlePrivacyPolicy")),1),require$$0.createTextVNode(" "+require$$0.toDisplayString(require$$0.unref(t)("googleAnd"))+" ",1),require$$0.createElementVNode("a",_hoisted_2$1,require$$0.toDisplayString(require$$0.unref(t)("googleTOS")),1),require$$0.createTextVNode(" "+require$$0.toDisplayString(require$$0.unref(t)("googleApply"))+". ",1)]))}});function block0(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{da:{googleNotice:n=>{const{normalize:i}=n;return i(["Denne side er beskyttet af reCAPTCHA og Google's"])},googlePrivacyPolicy:n=>{const{normalize:i}=n;return i(["Privatlivspolitik"])},googleAnd:n=>{const{normalize:i}=n;return i(["og"])},googleTOS:n=>{const{normalize:i}=n;return i(["Servicevilkår"])},googleApply:n=>{const{normalize:i}=n;return i(["er gældende"])}},en:{googleNotice:n=>{const{normalize:i}=n;return i(["This site is protected by reCAPTCHA and the Google"])},googlePrivacyPolicy:n=>{const{normalize:i}=n;return i(["Privacy Policy"])},googleAnd:n=>{const{normalize:i}=n;return i(["and"])},googleTOS:n=>{const{normalize:i}=n;return i(["Terms of Service"])},googleApply:n=>{const{normalize:i}=n;return i(["apply"])}}}})}typeof block0=="function"&&block0(_sfc_main$1);const _withScopeId=e=>(require$$0.pushScopeId("data-v-340cb9ce"),e=e(),require$$0.popScopeId(),e),_hoisted_1=_withScopeId(()=>require$$0.createElementVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),_hoisted_2=[_hoisted_1],_sfc_main=require$$0.defineComponent({__name:"CheckoutWindow",setup(e){const{paymentGatewayId:t}=SelectField_vue_vue_type_style_index_0_lang.storeToRefs(SelectField_vue_vue_type_style_index_0_lang.useUtilityStore());return require$$0.onMounted(()=>{const n=document.createElement("script"),i=document.createElement("script");n.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),i.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(n),document.head.appendChild(i)}),(n,i)=>(require$$0.openBlock(),require$$0.createElementBlock("div",null,[require$$0.createElementVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:require$$0.normalizeClass({reePay:require$$0.unref(t)===require$$0.unref(SelectField_vue_vue_type_style_index_0_lang.PaymentGateway).ReePay})},_hoisted_2,2)]))}}),CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang="",CheckoutWindow=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main,[["__scopeId","data-v-340cb9ce"]]);var a=Object.defineProperty,c=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t,n)=>(c(e,typeof t!="symbol"?t+"":t,n),n);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,t={},n={})=>{for(let i in t)e.style[i]=t[i];for(let i in n)n[i]&&!e.classList.contains(i)?e.classList.add(i):!n[i]&&e.classList.contains(i)&&e.classList.remove(i)};class Sticky{constructor(e,t){o(this,"el"),o(this,"vm"),o(this,"unSubscribers"),o(this,"isPending"),o(this,"state"),o(this,"lastState"),o(this,"options"),o(this,"placeholderEl"),o(this,"containerEl"),this.el=e,this.vm=t,this.unSubscribers=[],this.isPending=!1,this.state={isTopSticky:null,isBottomSticky:null,height:null,width:null,xOffset:null},this.lastState={top:null,bottom:null,sticked:!1};const n=this.getAttribute("sticky-offset")||{},i=this.getAttribute("sticky-side")||"top",s=this.getAttribute("sticky-z-index")||"10",r=this.getAttribute("on-stick")||null;this.options={topOffset:Number(n.top)||0,bottomOffset:Number(n.bottom)||0,shouldTopSticky:i==="top"||i==="both",shouldBottomSticky:i==="bottom"||i==="both",zIndex:s,onStick:r}}doBind(){if(this.unSubscribers.length>0)return;const{el:e,vm:t}=this;t.$nextTick(()=>{this.placeholderEl=document.createElement("div"),this.containerEl=this.getContainerEl(),e.parentElement.insertBefore(this.placeholderEl,e),events.forEach(n=>{const i=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(n,i)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(n,i)),window.addEventListener(n,i,{passive:!0}),this.containerEl.addEventListener(n,i,{passive:!0})})})}doUnbind(){this.unSubscribers.forEach(e=>e()),this.unSubscribers=[],this.resetElement()}update(){this.isPending||(requestAnimationFrame(()=>{this.isPending=!1,this.recomputeState(),this.updateElements()}),this.isPending=!0)}isTopSticky(){if(!this.options.shouldTopSticky)return!1;const e=this.state.placeholderElRect.top,t=this.state.containerElRect.bottom,n=this.options.topOffset,i=this.options.bottomOffset;return e<=n&&t>=i}isBottomSticky(){if(!this.options.shouldBottomSticky)return!1;const e=window.innerHeight-this.state.placeholderElRect.top-this.state.height,t=window.innerHeight-this.state.containerElRect.top,n=this.options.topOffset,i=this.options.bottomOffset;return e<=i&&t>=n}recomputeState(){this.state=Object.assign({},this.state,{height:this.getHeight(),width:this.getWidth(),xOffset:this.getXOffset(),placeholderElRect:this.getPlaceholderElRect(),containerElRect:this.getContainerElRect()}),this.state.isTopSticky=this.isTopSticky(),this.state.isBottomSticky=this.isBottomSticky()}fireEvents(){typeof this.options.onStick=="function"&&(this.lastState.top!==this.state.isTopSticky||this.lastState.bottom!==this.state.isBottomSticky||this.lastState.sticked!==(this.state.isTopSticky||this.state.isBottomSticky))&&(this.lastState={top:this.state.isTopSticky,bottom:this.state.isBottomSticky,sticked:this.state.isBottomSticky||this.state.isTopSticky},this.options.onStick(this.lastState))}updateElements(){const e={paddingTop:0},t={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:this.options.zIndex},n={"vue-sticky-placeholder":!0},i={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){t.position="fixed",t.top=this.options.topOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const s=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;s<0&&(t.top=s+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",i["top-sticky"]=!0}else if(this.state.isBottomSticky){t.position="fixed",t.bottom=this.options.bottomOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const s=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;s<0&&(t.bottom=s+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",i["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,t,i),batchStyle(this.placeholderEl,e,n),this.fireEvents()}resetElement(){["position","top","bottom","left","width","zIndex"].forEach(t=>{this.el.style.removeProperty(t)}),this.el.classList.remove("bottom-sticky","top-sticky");const{parentElement:e}=this.placeholderEl;e&&e.removeChild(this.placeholderEl)}getContainerEl(){let e=this.el.parentElement;for(;e&&e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1;){if(e.hasAttribute("sticky-container"))return e;e=e.parentElement}return this.el.parentElement}getXOffset(){return this.placeholderEl.getBoundingClientRect().left}getWidth(){return this.placeholderEl.getBoundingClientRect().width}getHeight(){return this.el.getBoundingClientRect().height}getPlaceholderElRect(){return this.placeholderEl.getBoundingClientRect()}getContainerElRect(){return this.containerEl.getBoundingClientRect()}getAttribute(name){const expr=this.el.getAttribute(name);let result;if(expr)if(this.vm[expr])result=this.vm[expr];else try{result=eval(`(${expr})`)}catch(e){result=expr}return result}}const Sticky$1={mounted(e,t){(typeof t.value>"u"||t.value)&&(e[namespace]=new Sticky(e,t.instance),e[namespace].doBind())},unmounted(e){e[namespace]&&(e[namespace].doUnbind(),e[namespace]=void 0)},updated(e,t){typeof t.value>"u"||t.value?(e[namespace]||(e[namespace]=new Sticky(e,t.instance)),e[namespace].doBind()):e[namespace]&&e[namespace].doUnbind()}},StickyPlugin={install(e){e.directive("Sticky",Sticky$1)}};exports.Checkbox=Checkbox;exports.CheckoutWindow=CheckoutWindow;exports.PhoneField=PhoneField;exports.StickyPlugin=StickyPlugin;exports._sfc_main=_sfc_main$1;exports.event=event;exports.install=install;exports.setOptions=setOptions;