@konnectio/core 4.0.46 → 4.0.48

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 (73) hide show
  1. package/dist/{ActionField-b883fc4c.cjs → ActionField-1549ffbd.cjs} +1 -1
  2. package/dist/{ActionField-bab5237c.js → ActionField-a357f85c.js} +2 -2
  3. package/dist/ActionField-a357f85c.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-7febb473.js → AvailabilitySkeleton-1beddc20.js} +5 -5
  5. package/dist/AvailabilitySkeleton-1beddc20.js.br +0 -0
  6. package/dist/{AvailabilitySkeleton-a5784bd2.cjs → AvailabilitySkeleton-9652c5c4.cjs} +1 -1
  7. package/dist/{CheckoutWindow-7c0d94ac.js → CheckoutWindow-19671ec6.js} +1 -1
  8. package/dist/CheckoutWindow-19671ec6.js.br +0 -0
  9. package/dist/{CheckoutWindow-7db5f05c.cjs → CheckoutWindow-a92bda25.cjs} +1 -1
  10. package/dist/{Container-7fbc2a99.cjs → Container-f5d9422b.cjs} +1 -1
  11. package/dist/{Container-b16559ce.js → Container-f7abb048.js} +1 -1
  12. package/dist/Container-f7abb048.js.br +0 -0
  13. package/dist/{DateField.vue_vue_type_style_index_0_lang-bbdf3590.cjs → DateField.vue_vue_type_style_index_0_lang-12e0e16d.cjs} +1 -1
  14. package/dist/{DateField.vue_vue_type_style_index_0_lang-d9877da2.js → DateField.vue_vue_type_style_index_0_lang-74c43197.js} +254 -254
  15. package/dist/DateField.vue_vue_type_style_index_0_lang-74c43197.js.br +0 -0
  16. package/dist/{Field-37af659e.cjs → Field-95764602.cjs} +1 -1
  17. package/dist/{Field-15886b67.js → Field-f6185c85.js} +2 -2
  18. package/dist/Field-f6185c85.js.br +0 -0
  19. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-ce6a2c1f.cjs → NumberField.vue_vue_type_script_setup_true_lang-4fed4239.cjs} +1 -1
  20. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-41b14077.js → NumberField.vue_vue_type_script_setup_true_lang-75bc35e1.js} +1 -1
  21. package/dist/NumberField.vue_vue_type_script_setup_true_lang-75bc35e1.js.br +0 -0
  22. package/dist/{SelectField.vue_vue_type_style_index_0_lang-56f30f3f.cjs → SelectField.vue_vue_type_style_index_0_lang-481daeed.cjs} +31 -31
  23. package/dist/{SelectField.vue_vue_type_style_index_0_lang-64d83bbf.js → SelectField.vue_vue_type_style_index_0_lang-5a110cc7.js} +978 -972
  24. package/dist/SelectField.vue_vue_type_style_index_0_lang-5a110cc7.js.br +0 -0
  25. package/dist/{ThankYou-d7fc0e28.cjs → ThankYou-22ec411a.cjs} +7 -7
  26. package/dist/{ThankYou-816a119f.js → ThankYou-da65054b.js} +508 -509
  27. package/dist/ThankYou-da65054b.js.br +0 -0
  28. package/dist/{_-4dd7b3ec.cjs → _-269eef23.cjs} +1 -1
  29. package/dist/{_-de5d9a78.js → _-94fcf267.js} +1 -1
  30. package/dist/availability.cjs +1 -1
  31. package/dist/availability.js +8 -8
  32. package/dist/availability.js.br +0 -0
  33. package/dist/components/Clickable.vue.d.ts +1 -1
  34. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  35. package/dist/components/listings/Base.vue.d.ts +1 -1
  36. package/dist/components/side-panels/Base.vue.d.ts +1 -1
  37. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -1
  38. package/dist/{event-b0ba109e.js → event-201cb5fd.js} +7 -7
  39. package/dist/event-201cb5fd.js.br +0 -0
  40. package/dist/{event-c192d5b2.cjs → event-d99e41c1.cjs} +1 -1
  41. package/dist/event.cjs +1 -1
  42. package/dist/event.js +8 -8
  43. package/dist/event.js.br +0 -0
  44. package/dist/gift-card-validation.cjs +1 -1
  45. package/dist/gift-card-validation.js +4 -4
  46. package/dist/gift-card-validation.js.br +0 -0
  47. package/dist/gift-card.cjs +1 -1
  48. package/dist/gift-card.js +109 -107
  49. package/dist/gift-card.js.br +0 -0
  50. package/dist/hotel.cjs +8 -8
  51. package/dist/hotel.js +12 -12
  52. package/dist/hotel.js.br +0 -0
  53. package/dist/polyfill.cjs +1 -1
  54. package/dist/polyfill.js +2 -2
  55. package/dist/polyfill.js.br +0 -0
  56. package/dist/store/applyDiscountCode.d.ts +7 -0
  57. package/dist/store/availability.d.ts +40 -0
  58. package/dist/store/event.d.ts +683 -0
  59. package/dist/store/giftCard.d.ts +83 -0
  60. package/dist/store/hotel.d.ts +824 -0
  61. package/dist/style.css +1 -1
  62. package/dist/style.css.br +0 -0
  63. package/package.json +6 -6
  64. package/dist/ActionField-bab5237c.js.br +0 -0
  65. package/dist/AvailabilitySkeleton-7febb473.js.br +0 -0
  66. package/dist/CheckoutWindow-7c0d94ac.js.br +0 -0
  67. package/dist/Container-b16559ce.js.br +0 -0
  68. package/dist/DateField.vue_vue_type_style_index_0_lang-d9877da2.js.br +0 -0
  69. package/dist/Field-15886b67.js.br +0 -0
  70. package/dist/NumberField.vue_vue_type_script_setup_true_lang-41b14077.js.br +0 -0
  71. package/dist/SelectField.vue_vue_type_style_index_0_lang-64d83bbf.js.br +0 -0
  72. package/dist/ThankYou-816a119f.js.br +0 -0
  73. package/dist/event-b0ba109e.js.br +0 -0
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-56f30f3f.cjs"),g=require("./ActionField-b883fc4c.cjs"),_=require("./Container-7fbc2a99.cjs");require("./_commonjsHelpers-6763f629.cjs");require("./NumberField.vue_vue_type_script_setup_true_lang-ce6a2c1f.cjs");const y=o=>(e.pushScopeId("data-v-5af38302"),o=o(),e.popScopeId(),o),B=["innerHTML"],N={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},C=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),m=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:c,amount:u,expirationDate:p,productName:f,isLoading:i}=e.storeToRefs(e.useApplyGiftCardStore()),{currency:V}=e.storeToRefs(e.useUtilityStore()),{apply:s}=e.useApplyGiftCardStore();return(d,t)=>(e.openBlock(),e.createBlock(_.Container,{styling:d.styling},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-gift-card-validation-module","access-token":d.accessToken,type:"gift-card"},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:t[3]||(t[3]=e.withModifiers(n=>e.unref(s)(),["prevent"]))},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.title")),1)]),e.createBaseVNode("p",{innerHTML:e.unref(a)("giftCardValidation.description")},null,8,B),e.createVNode(g.ActionField,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(l)?l.value=n:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":t[1]||(t[1]=n=>e.isRef(i)?i.value=n:null),onAction:t[2]||(t[2]=n=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(c)?(e.openBlock(),e.createElementBlock("table",N,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.giftCard")),1),e.createVNode(e.Icon,{icon:"gift-card",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.balance")),1),e.createVNode(e.Icon,{icon:"money-bill",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(f)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(u),e.unref(V))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(p))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token"])]),fallback:e.withCtx(()=>[C]),_:1}))]),_:1},8,["styling"]))}});const h=e._export_sfc(m,[["__scopeId","data-v-5af38302"]]),r=e.createApp({components:{GiftCardValidation:h}}),b=e.createPinia();r.use(b);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-481daeed.cjs"),g=require("./ActionField-1549ffbd.cjs"),_=require("./Container-f5d9422b.cjs");require("./_commonjsHelpers-6763f629.cjs");require("./NumberField.vue_vue_type_script_setup_true_lang-4fed4239.cjs");const y=o=>(e.pushScopeId("data-v-5af38302"),o=o(),e.popScopeId(),o),B=["innerHTML"],N={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},C=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),m=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:c,amount:u,expirationDate:p,productName:f,isLoading:i}=e.storeToRefs(e.useApplyGiftCardStore()),{currency:V}=e.storeToRefs(e.useUtilityStore()),{apply:s}=e.useApplyGiftCardStore();return(d,t)=>(e.openBlock(),e.createBlock(_.Container,{styling:d.styling},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"fresh-booking-gift-card-validation-module","access-token":d.accessToken,type:"gift-card"},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:t[3]||(t[3]=e.withModifiers(n=>e.unref(s)(),["prevent"]))},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.title")),1)]),e.createBaseVNode("p",{innerHTML:e.unref(a)("giftCardValidation.description")},null,8,B),e.createVNode(g.ActionField,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(l)?l.value=n:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":t[1]||(t[1]=n=>e.isRef(i)?i.value=n:null),onAction:t[2]||(t[2]=n=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(c)?(e.openBlock(),e.createElementBlock("table",N,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.giftCard")),1),e.createVNode(e.Icon,{icon:"gift-card",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.balance")),1),e.createVNode(e.Icon,{icon:"money-bill",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(f)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(u),e.unref(V))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(p))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token"])]),fallback:e.withCtx(()=>[C]),_:1}))]),_:1},8,["styling"]))}});const h=e._export_sfc(m,[["__scopeId","data-v-5af38302"]]),r=e.createApp({components:{GiftCardValidation:h}}),b=e.createPinia();r.use(b);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;
@@ -1,8 +1,8 @@
1
- import { k as S, F as X, s as _, a as y, c as w, m as u, n as C, w as r, G as x, p as l, A as a, H as o, q as t, J as V, v as A, K as c, L as G, M as I, x as B, N, P as T, Q as D, R as M, _ as U, U as H, V as P, W as R } from "./SelectField.vue_vue_type_style_index_0_lang-64d83bbf.js";
2
- import { A as $ } from "./ActionField-bab5237c.js";
3
- import { C as F } from "./Container-b16559ce.js";
1
+ import { k as S, F as X, s as _, a as y, c as w, m as u, n as C, w as r, G as x, p as l, A as a, H as o, q as t, J as V, v as A, K as c, L as G, M as I, x as B, N, P as T, Q as D, R as M, _ as U, U as H, V as P, W as R } from "./SelectField.vue_vue_type_style_index_0_lang-5a110cc7.js";
2
+ import { A as $ } from "./ActionField-a357f85c.js";
3
+ import { C as F } from "./Container-f7abb048.js";
4
4
  import "./_commonjsHelpers-aeeeeb92.js";
5
- import "./NumberField.vue_vue_type_script_setup_true_lang-41b14077.js";
5
+ import "./NumberField.vue_vue_type_script_setup_true_lang-75bc35e1.js";
6
6
  const q = (s) => (D("data-v-5af38302"), s = s(), M(), s), E = ["innerHTML"], J = {
7
7
  key: 0,
8
8
  id: "fresh-booking-gift-card-validation-resume",
Binary file
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-56f30f3f.cjs"),I=require("./Container-7fbc2a99.cjs"),x=require("./CheckoutWindow-7db5f05c.cjs"),L=require("./_-4dd7b3ec.cjs"),R=require("./Field-37af659e.cjs");require("./_commonjsHelpers-6763f629.cjs");const M=e.defineStore("giftCard",()=>{const{pay:y}=e.usePaymentStore(),{bearerToken:s,metaData:C,currencyId:l}=e.storeToRefs(e.useUtilityStore()),{verifyRecaptcha:p}=e.useUtilityStore(),i=e.ref(e.GiftCardModuleState.InitialState),r=e.useStorage("konnectio_name","",void 0,{serializer:e.StorageSerializers.string}),d=e.useStorage("konnectio_email","",void 0,{serializer:e.StorageSerializers.string}),f=e.useStorage("konnectio_phone","",void 0,{serializer:e.StorageSerializers.string}),m=e.ref(""),B=e.ref(1),N=e.ref(!0),v=e.ref(""),a=e.ref({base64:"",type:"",name:""}),n=e.ref(void 0),u=e.ref(0),k=e.ref(!1),c=e.ref(0),b=e.computed(()=>i.value===e.GiftCardModuleState.InitialState||i.value===e.GiftCardModuleState.WaitingForResponse),S=e.computed(()=>i.value===e.GiftCardModuleState.ReadyToPay),h=e.computed(()=>i.value===e.GiftCardModuleState.PaymentSuccess),F=e.computed(()=>{const t={1:{label:e.i18n.t("giftCard.hotelType"),data:[]},2:{label:e.i18n.t("giftCard.restaurantType"),data:[]}},g=C.value.hotels[0].places;return g&&g.forEach(_=>{t[_.placeType].data.push(_)}),Object.fromEntries(Object.entries(t).filter(([,_])=>_.data.length>0))}),T=e.computed(()=>c.value!==0),V=e.computed(()=>{let t;if(T.value)t=F.value[c.value].data[0];else if(u.value!==0){const g=n.value,_=F.value[u.value].data;_.length===1?t=_[0]:g!==void 0&&_.forEach(G=>{String(G.id)===String(g)&&(t=G)})}return t}),q=e.computed(()=>!(!r.value||!d.value||!(f.value.length>=5)||!m.value||V.value===void 0)),U=e.computed(()=>!(i.value===e.GiftCardModuleState.InitialState&&k.value)),P=e.computed(()=>!!(i.value===e.GiftCardModuleState.WaitingForResponse&&k.value));async function w(){i.value=e.GiftCardModuleState.WaitingForResponse,k.value=!0,p({type:"create_gift_card",callback:async()=>{await e.axios.post("https://production.hotel-service.konnectio.dk/api/gift-card/create",{termsOfserviceURL:window.location.origin,checkoutUrl:window.location.origin,currencyID:l.value,language:e.getUserLanguage(),amount:m.value,quantity:B.value,freeText:v.value,showPrice:N.value,contactName:r.value,contactEmail:d.value,contactPhone:f.value,imageBase64:e.b2a(a.value.base64),imageName:a.value.name,imageFormat:a.value.type,placeType:V.value?V.value.placeType:void 0,placeID:V.value?V.value.id:void 0},{headers:{Authorization:s.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.46"}}).then(t=>{i.value=e.GiftCardModuleState.ReadyToPay,k.value=!1,y({callback:()=>console.log("Callback!"),response:t.data})})}})}function o(t){t&&(c.value=t)}return{moduleState:i,name:r,email:d,phone:f,value:m,remark:v,showValue:N,quantity:B,media:a,placeId:n,placeType:u,showFormPage:b,showPaymentPage:S,showConfirmationPage:h,places:F,hasFilledForm:q,hasForcedPlaceType:T,isWaitingForResponse:P,isMetaDataAvailable:U,orderGiftCard:w,initialize:o}}),D={class:"media-selector"},z=["accept"],A={class:"media-selector-wrapper"},W={class:"media-selector-tools"},j={key:0},H={key:1},O={key:2},K=["src"],Y=e.defineComponent({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(y,{emit:s}){const C=s,l=y,{t:p}=e.useI18n(),{display:i}=e.useAlertStore(),r=e.ref(),d=e.computed(()=>l.modelValue.base64!=="");function f(a){C("update:modelValue",a)}function m(){f({base64:"",name:"",type:""}),r.value&&(r.value.value="")}function B(){r.value&&r.value.click()}function N(a,n){const[u,k]=[a.name,a.type],c=new FileReader;c.onload=function(b){if(b.target){const S=b.target.result;n({base64:S,name:u,type:k})}else i({message:p("imageUploadError"),type:"error"})},c.readAsDataURL(a)}async function v(){let a;(a=r.value.files)instanceof FileList&&N(a[0],f)}return(a,n)=>(e.openBlock(),e.createBlock(e.InputField,{label:a.label,required:a.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",D,[e.createBaseVNode("input",{ref_key:"fileInput",ref:r,type:"file",class:"hidden",accept:a.validation,single:"",onChange:n[0]||(n[0]=u=>v())},null,40,z),e.createBaseVNode("div",A,[e.createBaseVNode("ul",W,[d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",j,[e.createVNode(e.Clickable,{label:e.unref(p)("uploadFile"),type:"button",icon:"upload","icon-color":a.iconColor,onClickEvent:n[1]||(n[1]=u=>B())},null,8,["label","icon-color"])])),d.value?(e.openBlock(),e.createElementBlock("li",H,[e.createVNode(e.Clickable,{label:e.unref(p)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":a.iconColor,onClickEvent:n[2]||(n[2]=u=>B())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("li",O,[e.createVNode(e.Clickable,{label:e.unref(p)("removeFile"),type:"button",icon:"trash-alt","icon-color":a.iconColor,onClickEvent:n[3]||(n[3]=u=>m())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:d.value}])},[a.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.modelValue.base64},null,8,K)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function $(y){const s=y;s.__i18n=s.__i18n||[],s.__i18n.push({locale:"",resource:{da:{uploadFile:{t:0,b:{t:2,i:[{t:3}],s:"Upload billede"}},removeFile:{t:0,b:{t:2,i:[{t:3}],s:"Fjern billede"}},replaceFile:{t:0,b:{t:2,i:[{t:3}],s:"Ersat billede"}},imageUploadError:{t:0,b:{t:2,i:[{t:3}],s:"Der skete en fejl under billede upload!"}}},en:{uploadFile:{t:0,b:{t:2,i:[{t:3}],s:"Upload image"}},removeFile:{t:0,b:{t:2,i:[{t:3}],s:"Remove image"}},replaceFile:{t:0,b:{t:2,i:[{t:3}],s:"Replace image"}},imageUploadError:{t:0,b:{t:2,i:[{t:3}],s:"An error occurred under image upload!"}}}}})}typeof $=="function"&&$(Y);const J={class:"gift-card-skeleton"},Q={class:"gift-card-skeleton-form"},X=e.defineComponent({__name:"GiftCardSkeleton",setup(y){return(s,C)=>(e.openBlock(),e.createElementBlock("div",J,[e.createBaseVNode("div",Q,[e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field,{"is-text-area":""}),e.createVNode(L.Element,{height:"44px"})])]))}});const Z=e._export_sfc(X,[["__scopeId","data-v-e35c75b3"]]),ee={key:0,id:"konnectio-gift-card-wrapper"},te={id:"konnectio-gift-card-title"},ae={id:"konnectio-gift-card-content"},le={id:"konnectio-gift-card-payment"},oe=["innerHTML"],ne={key:0},ie={key:0,id:"fresh-booking-select-place-type"},re={class:e.normalizeClass(["fresh-booking-label","required"])},de={id:"fresh-booking-select-place-type-input"},ce=["innerHTML"],ue={key:0,id:"konnectio-gift-card-order"},se={class:"fresh-booking-panel"},pe={key:1,id:"konnectio-gift-card-remarks"},fe={key:2,id:"konnectio-gift-card-order-minimal"},me={id:"konnectio-gift-card-recaptcha"},_e=e.defineComponent({name:"GiftCardLayout",__name:"GiftCard",props:{accessToken:{},layout:{default:"minimal"},placeType:{},styling:{}},setup(y){const s=y,C=e.computed(()=>({panelMaxWidth:"800px",...s.styling})),{t:l}=e.useI18n(),{name:p,email:i,phone:r,value:d,remark:f,showValue:m,quantity:B,media:N,placeId:v,placeType:a,showFormPage:n,showPaymentPage:u,showConfirmationPage:k,places:c,hasFilledForm:b,hasForcedPlaceType:S,isWaitingForResponse:h,isMetaDataAvailable:F}=e.storeToRefs(M()),{initialize:T,orderGiftCard:V}=M(),{isRecaptchaEnabled:q,currency:U}=e.storeToRefs(e.useUtilityStore());async function P(){await V()}return e.watch(a,()=>{v.value=void 0}),e.onMounted(()=>{T()}),(w,o)=>(e.openBlock(),e.createBlock(I.Container,{styling:C.value},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"konnectio-gift-card-module",type:"gift-card","access-token":w.accessToken,"data-layout":w.layout},{default:e.withCtx(()=>[e.unref(F)?(e.openBlock(),e.createElementBlock("div",ee,[e.createBaseVNode("h2",te,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.title")),1)]),e.createBaseVNode("div",ae,[e.withDirectives(e.createBaseVNode("div",le,[e.createVNode(x.CheckoutWindow)],512),[[e.vShow,e.unref(u)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"konnectio-gift-card-description",innerHTML:e.unref(l)("giftCard.description")},null,8,oe),e.createBaseVNode("form",null,[e.unref(S)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ne,[e.unref(c)?(e.openBlock(),e.createElementBlock("div",ie,[e.createBaseVNode("label",re,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.selectType")),1)]),e.createBaseVNode("div",de,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(t,g)=>(e.openBlock(),e.createElementBlock("li",{key:g},[e.createVNode(x.Checkbox,{modelValue:e.unref(a),"onUpdate:modelValue":o[0]||(o[0]=_=>e.isRef(a)?a.value=_:null),type:"radio",name:"placeType",val:g,label:t.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(c)[e.unref(a)]&&e.unref(c)[e.unref(a)].data.length>1?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:e.unref(v),"onUpdate:modelValue":o[1]||(o[1]=t=>e.isRef(v)?v.value=t:null),placeholder:e.unref(l)("giftCard.selectPlacePlaceholder"),options:e.unref(c)[e.unref(a)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))])),e.createVNode(e.TextField,{modelValue:e.unref(p),"onUpdate:modelValue":o[2]||(o[2]=t=>e.isRef(p)?p.value=t:null),type:"text",name:"name",autocomplete:"name",label:e.unref(l)("giftCard.name"),icon:"user-alt",placeholder:e.unref(l)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(i),"onUpdate:modelValue":o[3]||(o[3]=t=>e.isRef(i)?i.value=t:null),type:"email",name:"email",autocomplete:"email",label:e.unref(l)("giftCard.email"),icon:"at",placeholder:e.unref(l)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(x.PhoneField,{modelValue:e.unref(r),"onUpdate:modelValue":o[4]||(o[4]=t=>e.isRef(r)?r.value=t:null),icon:"phone-office",label:e.unref(l)("giftCard.phone"),placeholder:e.unref(l)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":o[5]||(o[5]=t=>e.isRef(d)?d.value=t:null),type:"number",name:"value",label:e.unref(l)("giftCard.value"),icon:"money-bill",placeholder:e.unref(l)("giftCard.valuePlaceholder"),suffix:e.unref(U),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(x.Checkbox,{modelValue:e.unref(m),"onUpdate:modelValue":o[6]||(o[6]=t=>e.isRef(m)?m.value=t:null),type:"checkbox",name:"showValue",label:e.unref(l)("giftCard.showValue"),checked:e.unref(m)},null,8,["modelValue","label","checked"]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(n)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",{innerHTML:e.unref(l)("giftCard.thankYou")},null,8,ce)],512),[[e.vShow,e.unref(k)]])]),w.layout!=="minimal"&&e.unref(n)?(e.openBlock(),e.createElementBlock("div",ue,[e.createBaseVNode("div",se,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(b),"is-loading":e.unref(h),"onUpdate:isLoading":o[9]||(o[9]=t=>e.isRef(h)?h.value=t:null),onClickEvent:P},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(n)?(e.openBlock(),e.createElementBlock("div",pe,[e.createVNode(e.TextField,{modelValue:e.unref(f),"onUpdate:modelValue":o[10]||(o[10]=t=>e.isRef(f)?f.value=t:null),type:"textarea",name:"remark",label:e.unref(l)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(l)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(n)?(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(b),"data-test":"orderGiftCard","is-loading":e.unref(h),"onUpdate:isLoading":o[11]||(o[11]=t=>e.isRef(h)?h.value=t:null),onClickEvent:P},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",me,[e.createVNode(x._sfc_main)],512),[[e.vShow,e.unref(q)]])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","data-layout"])]),fallback:e.withCtx(()=>[e.createVNode(Z)]),_:1}))]),_:1},8,["styling"]))}});const ve=e._export_sfc(_e,[["__scopeId","data-v-d9cb156e"]]),ge=e.createPinia(),E=e.createApp({components:{GiftCard:ve}});E.use(ge);E.use(e.instance);E.use(e.install,{bootstrap:!0});E.mount("#konnectio-gift-card-app");
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-481daeed.cjs"),I=require("./Container-f5d9422b.cjs"),x=require("./CheckoutWindow-a92bda25.cjs"),L=require("./_-269eef23.cjs"),T=require("./Field-95764602.cjs");require("./_commonjsHelpers-6763f629.cjs");const M=e.defineStore("giftCard",()=>{const{pay:g}=e.usePaymentStore(),{bearerToken:d,metaData:B,currencyId:l}=e.storeToRefs(e.useUtilityStore()),{verifyRecaptcha:p}=e.useUtilityStore(),i=e.ref(e.GiftCardModuleState.InitialState),r=e.useStorage("konnectio_name","",void 0,{serializer:e.StorageSerializers.string}),c=e.useStorage("konnectio_email","",void 0,{serializer:e.StorageSerializers.string}),f=e.useStorage("konnectio_phone","",void 0,{serializer:e.StorageSerializers.string}),m=e.ref(""),N=e.ref(1),S=e.ref(!0),v=e.ref(""),a=e.ref({base64:"",type:"",name:""}),n=e.ref(void 0),s=e.ref(0),k=e.ref(!1),u=e.ref(0),V=e.computed(()=>i.value===e.GiftCardModuleState.InitialState||i.value===e.GiftCardModuleState.WaitingForResponse),F=e.computed(()=>i.value===e.GiftCardModuleState.ReadyToPay),h=e.computed(()=>i.value===e.GiftCardModuleState.PaymentSuccess),w=e.computed(()=>{const t={1:{label:e.i18n.t("giftCard.hotelType"),data:[]},2:{label:e.i18n.t("giftCard.restaurantType"),data:[]}},y=B.value.hotels[0].places;return y&&y.forEach(_=>{t[_.placeType].data.push(_)}),Object.fromEntries(Object.entries(t).filter(([,_])=>_.data.length>0))}),R=e.computed(()=>u.value!==0),b=e.computed(()=>{let t;if(R.value)t=w.value[u.value].data[0];else if(s.value!==0){const y=n.value,_=w.value[s.value].data;_.length===1?t=_[0]:y!==void 0&&_.forEach(G=>{String(G.id)===String(y)&&(t=G)})}return t}),q=e.computed(()=>!(!r.value||!c.value||!(f.value.length>=5)||!m.value||b.value===void 0)),U=e.computed(()=>!(i.value===e.GiftCardModuleState.InitialState&&k.value)),P=e.computed(()=>!!(i.value===e.GiftCardModuleState.WaitingForResponse&&k.value));async function C(){i.value=e.GiftCardModuleState.WaitingForResponse,k.value=!0,p({type:"create_gift_card",callback:async()=>{await e.axios.post("https://production.hotel-service.konnectio.dk/api/gift-card/create",{termsOfserviceURL:window.location.origin,checkoutUrl:window.location.origin,currencyID:l.value,language:e.getUserLanguage(),amount:m.value,quantity:N.value,freeText:v.value,showPrice:S.value,contactName:r.value,contactEmail:c.value,contactPhone:f.value,imageBase64:e.b2a(a.value.base64),imageName:a.value.name,imageFormat:a.value.type,placeType:b.value?b.value.placeType:void 0,placeID:b.value?b.value.id:void 0},{headers:{Authorization:d.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.48"}}).then(t=>{i.value=e.GiftCardModuleState.ReadyToPay,k.value=!1,g({callback:()=>console.log("Callback!"),response:t.data})})}})}function o(t){t&&(u.value=t)}return{selectedPlace:b,moduleState:i,name:r,email:c,phone:f,value:m,remark:v,showValue:S,quantity:N,media:a,placeId:n,placeType:s,showFormPage:V,showPaymentPage:F,showConfirmationPage:h,places:w,hasFilledForm:q,hasForcedPlaceType:R,isWaitingForResponse:P,isMetaDataAvailable:U,orderGiftCard:C,initialize:o}}),D={class:"media-selector"},z=["accept"],A={class:"media-selector-wrapper"},W={class:"media-selector-tools"},j={key:0},H={key:1},O={key:2},K=["src"],Y=e.defineComponent({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(g,{emit:d}){const B=d,l=g,{t:p}=e.useI18n(),{display:i}=e.useAlertStore(),r=e.ref(),c=e.computed(()=>l.modelValue.base64!=="");function f(a){B("update:modelValue",a)}function m(){f({base64:"",name:"",type:""}),r.value&&(r.value.value="")}function N(){r.value&&r.value.click()}function S(a,n){const[s,k]=[a.name,a.type],u=new FileReader;u.onload=function(V){if(V.target){const F=V.target.result;n({base64:F,name:s,type:k})}else i({message:p("imageUploadError"),type:"error"})},u.readAsDataURL(a)}async function v(){let a;(a=r.value.files)instanceof FileList&&S(a[0],f)}return(a,n)=>(e.openBlock(),e.createBlock(e.InputField,{label:a.label,required:a.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",D,[e.createBaseVNode("input",{ref_key:"fileInput",ref:r,type:"file",class:"hidden",accept:a.validation,single:"",onChange:n[0]||(n[0]=s=>v())},null,40,z),e.createBaseVNode("div",A,[e.createBaseVNode("ul",W,[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",j,[e.createVNode(e.Clickable,{label:e.unref(p)("uploadFile"),type:"button",icon:"upload","icon-color":a.iconColor,onClickEvent:n[1]||(n[1]=s=>N())},null,8,["label","icon-color"])])),c.value?(e.openBlock(),e.createElementBlock("li",H,[e.createVNode(e.Clickable,{label:e.unref(p)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":a.iconColor,onClickEvent:n[2]||(n[2]=s=>N())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("li",O,[e.createVNode(e.Clickable,{label:e.unref(p)("removeFile"),type:"button",icon:"trash-alt","icon-color":a.iconColor,onClickEvent:n[3]||(n[3]=s=>m())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:c.value}])},[a.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.modelValue.base64},null,8,K)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function $(g){const d=g;d.__i18n=d.__i18n||[],d.__i18n.push({locale:"",resource:{da:{uploadFile:{t:0,b:{t:2,i:[{t:3}],s:"Upload billede"}},removeFile:{t:0,b:{t:2,i:[{t:3}],s:"Fjern billede"}},replaceFile:{t:0,b:{t:2,i:[{t:3}],s:"Ersat billede"}},imageUploadError:{t:0,b:{t:2,i:[{t:3}],s:"Der skete en fejl under billede upload!"}}},en:{uploadFile:{t:0,b:{t:2,i:[{t:3}],s:"Upload image"}},removeFile:{t:0,b:{t:2,i:[{t:3}],s:"Remove image"}},replaceFile:{t:0,b:{t:2,i:[{t:3}],s:"Replace image"}},imageUploadError:{t:0,b:{t:2,i:[{t:3}],s:"An error occurred under image upload!"}}}}})}typeof $=="function"&&$(Y);const J={class:"gift-card-skeleton"},Q={class:"gift-card-skeleton-form"},X=e.defineComponent({__name:"GiftCardSkeleton",setup(g){return(d,B)=>(e.openBlock(),e.createElementBlock("div",J,[e.createBaseVNode("div",Q,[e.createVNode(T.Field),e.createVNode(T.Field),e.createVNode(T.Field),e.createVNode(T.Field),e.createVNode(T.Field,{"is-text-area":""}),e.createVNode(L.Element,{height:"44px"})])]))}});const Z=e._export_sfc(X,[["__scopeId","data-v-e35c75b3"]]),ee={key:0,id:"konnectio-gift-card-wrapper"},te={id:"konnectio-gift-card-title"},ae={id:"konnectio-gift-card-content"},le={id:"konnectio-gift-card-payment"},oe=["innerHTML"],ne={key:0},ie={key:0,id:"fresh-booking-select-place-type"},re={class:e.normalizeClass(["fresh-booking-label","required"])},de={id:"fresh-booking-select-place-type-input"},ce=["innerHTML"],ue={key:0,id:"konnectio-gift-card-order"},se={class:"fresh-booking-panel"},pe={key:1,id:"konnectio-gift-card-remarks"},fe={key:2,id:"konnectio-gift-card-order-minimal"},me={id:"konnectio-gift-card-recaptcha"},_e=e.defineComponent({name:"GiftCardLayout",__name:"GiftCard",props:{accessToken:{},layout:{default:"minimal"},placeType:{},styling:{}},setup(g){const d=g,B=e.computed(()=>({panelMaxWidth:"800px",...d.styling})),{t:l}=e.useI18n(),{name:p,email:i,phone:r,value:c,remark:f,showValue:m,quantity:N,media:S,placeId:v,placeType:a,showFormPage:n,showPaymentPage:s,showConfirmationPage:k,places:u,hasFilledForm:V,hasForcedPlaceType:F,isWaitingForResponse:h,isMetaDataAvailable:w}=e.storeToRefs(M()),{initialize:R,orderGiftCard:b}=M(),{isRecaptchaEnabled:q,currency:U}=e.storeToRefs(e.useUtilityStore());async function P(){await b()}return e.watch(a,()=>{v.value=void 0}),e.onMounted(()=>{const C=d.placeType?parseInt(d.placeType):void 0;R(C)}),(C,o)=>(e.openBlock(),e.createBlock(I.Container,{styling:B.value},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main$1,{id:"konnectio-gift-card-module",type:"gift-card","access-token":C.accessToken,"data-layout":C.layout},{default:e.withCtx(()=>[e.unref(w)?(e.openBlock(),e.createElementBlock("div",ee,[e.createBaseVNode("h2",te,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.title")),1)]),e.createBaseVNode("div",ae,[e.withDirectives(e.createBaseVNode("div",le,[e.createVNode(x.CheckoutWindow)],512),[[e.vShow,e.unref(s)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"konnectio-gift-card-description",innerHTML:e.unref(l)("giftCard.description")},null,8,oe),e.createBaseVNode("form",null,[e.unref(F)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ne,[e.unref(u)?(e.openBlock(),e.createElementBlock("div",ie,[e.createBaseVNode("label",re,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.selectType")),1)]),e.createBaseVNode("div",de,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(t,y)=>(e.openBlock(),e.createElementBlock("li",{key:y},[e.createVNode(x.Checkbox,{modelValue:e.unref(a),"onUpdate:modelValue":o[0]||(o[0]=_=>e.isRef(a)?a.value=_:null),type:"radio",name:"placeType",val:y,label:t.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(u)[e.unref(a)]&&e.unref(u)[e.unref(a)].data.length>1?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:e.unref(v),"onUpdate:modelValue":o[1]||(o[1]=t=>e.isRef(v)?v.value=t:null),placeholder:e.unref(l)("giftCard.selectPlacePlaceholder"),options:e.unref(u)[e.unref(a)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))])),e.createVNode(e.TextField,{modelValue:e.unref(p),"onUpdate:modelValue":o[2]||(o[2]=t=>e.isRef(p)?p.value=t:null),type:"text",name:"name",autocomplete:"name",label:e.unref(l)("giftCard.name"),icon:"user-alt",placeholder:e.unref(l)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(i),"onUpdate:modelValue":o[3]||(o[3]=t=>e.isRef(i)?i.value=t:null),type:"email",name:"email",autocomplete:"email",label:e.unref(l)("giftCard.email"),icon:"at",placeholder:e.unref(l)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(x.PhoneField,{modelValue:e.unref(r),"onUpdate:modelValue":o[4]||(o[4]=t=>e.isRef(r)?r.value=t:null),icon:"phone-office",label:e.unref(l)("giftCard.phone"),placeholder:e.unref(l)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(e.TextField,{modelValue:e.unref(c),"onUpdate:modelValue":o[5]||(o[5]=t=>e.isRef(c)?c.value=t:null),type:"number",name:"value",label:e.unref(l)("giftCard.value"),icon:"money-bill",placeholder:e.unref(l)("giftCard.valuePlaceholder"),suffix:e.unref(U),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(x.Checkbox,{modelValue:e.unref(m),"onUpdate:modelValue":o[6]||(o[6]=t=>e.isRef(m)?m.value=t:null),type:"checkbox",name:"showValue",label:e.unref(l)("giftCard.showValue"),checked:e.unref(m)},null,8,["modelValue","label","checked"]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(n)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",{innerHTML:e.unref(l)("giftCard.thankYou")},null,8,ce)],512),[[e.vShow,e.unref(k)]])]),C.layout!=="minimal"&&e.unref(n)?(e.openBlock(),e.createElementBlock("div",ue,[e.createBaseVNode("div",se,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(V),"is-loading":e.unref(h),"onUpdate:isLoading":o[9]||(o[9]=t=>e.isRef(h)?h.value=t:null),onClickEvent:P},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(n)?(e.openBlock(),e.createElementBlock("div",pe,[e.createVNode(e.TextField,{modelValue:e.unref(f),"onUpdate:modelValue":o[10]||(o[10]=t=>e.isRef(f)?f.value=t:null),type:"textarea",name:"remark",label:e.unref(l)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(l)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(n)?(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(V),"data-test":"orderGiftCard","is-loading":e.unref(h),"onUpdate:isLoading":o[11]||(o[11]=t=>e.isRef(h)?h.value=t:null),onClickEvent:P},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",me,[e.createVNode(x._sfc_main)],512),[[e.vShow,e.unref(q)]])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","data-layout"])]),fallback:e.withCtx(()=>[e.createVNode(Z)]),_:1}))]),_:1},8,["styling"]))}});const ve=e._export_sfc(_e,[["__scopeId","data-v-111b608c"]]),ye=e.createPinia(),E=e.createApp({components:{GiftCard:ve}});E.use(ye);E.use(e.instance);E.use(e.install,{bootstrap:!0});E.mount("#konnectio-gift-card-app");
package/dist/gift-card.js CHANGED
@@ -1,15 +1,15 @@
1
- import { d as ce, u as pe, s as X, c as Z, r as v, ad as P, e as Y, f as g, j as le, S as Q, h as me, i as fe, ae as ve, k as ee, F as re, b as ge, m as s, n as G, w as A, A as i, v as c, p as n, q as e, C as D, x as y, y as de, I as ye, _ as ue, a2 as be, o as _e, G as he, H as te, af as N, ag as j, a3 as ke, a4 as Ce, J as V, B as Ve, a5 as oe, T as H, P as Fe, V as we, U as Pe, W as Se, a9 as Te } from "./SelectField.vue_vue_type_style_index_0_lang-64d83bbf.js";
2
- import { C as $e } from "./Container-b16559ce.js";
3
- import { a as Ue, C as ne, P as Re, _ as qe } from "./CheckoutWindow-7c0d94ac.js";
4
- import { E as Ee } from "./_-de5d9a78.js";
5
- import { F as L } from "./Field-15886b67.js";
1
+ import { d as ce, u as pe, s as X, c as Z, r as g, ad as w, e as Y, f as y, j as le, S as Q, h as me, i as fe, ae as ve, k as ee, F as re, b as ge, m as s, n as G, w as A, A as i, v as c, p as n, q as e, C as D, x as b, y as de, I as ye, _ as ue, a2 as be, o as _e, G as he, H as te, af as N, ag as j, a3 as ke, a4 as Ce, J as V, B as Ve, a5 as oe, T as H, P as Fe, V as Pe, U as we, W as Te, a9 as Se } from "./SelectField.vue_vue_type_style_index_0_lang-5a110cc7.js";
2
+ import { C as $e } from "./Container-f7abb048.js";
3
+ import { a as Ue, C as ne, P as Re, _ as qe } from "./CheckoutWindow-19671ec6.js";
4
+ import { E as Ee } from "./_-94fcf267.js";
5
+ import { F as L } from "./Field-f6185c85.js";
6
6
  import "./_commonjsHelpers-aeeeeb92.js";
7
7
  const ie = ce("giftCard", () => {
8
- const { pay: S } = pe(), { bearerToken: b, metaData: q, currencyId: t } = X(Z()), { verifyRecaptcha: _ } = Z(), d = v(P.InitialState), u = Y("konnectio_name", "", void 0, { serializer: Q.string }), p = Y("konnectio_email", "", void 0, { serializer: Q.string }), h = Y("konnectio_phone", "", void 0, { serializer: Q.string }), k = v(""), E = v(1), I = v(!0), F = v(""), l = v({
8
+ const { pay: T } = pe(), { bearerToken: p, metaData: E, currencyId: t } = X(Z()), { verifyRecaptcha: _ } = Z(), d = g(w.InitialState), u = Y("konnectio_name", "", void 0, { serializer: Q.string }), m = Y("konnectio_email", "", void 0, { serializer: Q.string }), h = Y("konnectio_phone", "", void 0, { serializer: Q.string }), k = g(""), I = g(1), M = g(!0), F = g(""), l = g({
9
9
  base64: "",
10
10
  type: "",
11
11
  name: ""
12
- }), r = v(void 0), f = v(0), T = v(!1), m = v(0), U = g(() => d.value === P.InitialState || d.value === P.WaitingForResponse), M = g(() => d.value === P.ReadyToPay), $ = g(() => d.value === P.PaymentSuccess), x = g(() => {
12
+ }), r = g(void 0), v = g(0), S = g(!1), f = g(0), R = y(() => d.value === w.InitialState || d.value === w.WaitingForResponse), x = y(() => d.value === w.ReadyToPay), $ = y(() => d.value === w.PaymentSuccess), B = y(() => {
13
13
  const a = {
14
14
  1: {
15
15
  label: le.t("giftCard.hotelType"),
@@ -19,26 +19,26 @@ const ie = ce("giftCard", () => {
19
19
  label: le.t("giftCard.restaurantType"),
20
20
  data: []
21
21
  }
22
- }, w = q.value.hotels[0].places;
23
- return w && w.forEach((C) => {
22
+ }, P = E.value.hotels[0].places;
23
+ return P && P.forEach((C) => {
24
24
  a[C.placeType].data.push(C);
25
25
  }), Object.fromEntries(
26
26
  Object.entries(a).filter(([, C]) => C.data.length > 0)
27
27
  );
28
- }), z = g(() => m.value !== 0), R = g(() => {
28
+ }), z = y(() => f.value !== 0), U = y(() => {
29
29
  let a;
30
30
  if (z.value)
31
- a = x.value[m.value].data[0];
32
- else if (f.value !== 0) {
33
- const w = r.value, C = x.value[f.value].data;
34
- C.length === 1 ? a = C[0] : w !== void 0 && C.forEach((ae) => {
35
- String(ae.id) === String(w) && (a = ae);
31
+ a = B.value[f.value].data[0];
32
+ else if (v.value !== 0) {
33
+ const P = r.value, C = B.value[v.value].data;
34
+ C.length === 1 ? a = C[0] : P !== void 0 && C.forEach((ae) => {
35
+ String(ae.id) === String(P) && (a = ae);
36
36
  });
37
37
  }
38
38
  return a;
39
- }), K = g(() => !(!u.value || !p.value || !(h.value.length >= 5) || !k.value || R.value === void 0)), J = g(() => !(d.value === P.InitialState && T.value)), W = g(() => !!(d.value === P.WaitingForResponse && T.value));
40
- async function B() {
41
- d.value = P.WaitingForResponse, T.value = !0, _({
39
+ }), K = y(() => !(!u.value || !m.value || !(h.value.length >= 5) || !k.value || U.value === void 0)), J = y(() => !(d.value === w.InitialState && S.value)), W = y(() => !!(d.value === w.WaitingForResponse && S.value));
40
+ async function q() {
41
+ d.value = w.WaitingForResponse, S.value = !0, _({
42
42
  type: "create_gift_card",
43
43
  callback: async () => {
44
44
  await me.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
@@ -47,25 +47,25 @@ const ie = ce("giftCard", () => {
47
47
  currencyID: t.value,
48
48
  language: fe(),
49
49
  amount: k.value,
50
- quantity: E.value,
50
+ quantity: I.value,
51
51
  freeText: F.value,
52
- showPrice: I.value,
52
+ showPrice: M.value,
53
53
  contactName: u.value,
54
- contactEmail: p.value,
54
+ contactEmail: m.value,
55
55
  contactPhone: h.value,
56
56
  imageBase64: ve(l.value.base64),
57
57
  imageName: l.value.name,
58
58
  imageFormat: l.value.type,
59
- placeType: R.value ? R.value.placeType : void 0,
60
- placeID: R.value ? R.value.id : void 0
59
+ placeType: U.value ? U.value.placeType : void 0,
60
+ placeID: U.value ? U.value.id : void 0
61
61
  }, {
62
62
  headers: {
63
- Authorization: b.value,
63
+ Authorization: p.value,
64
64
  Accept: "application/json",
65
- "Fresh-Booking-Ver": "4.0.46"
65
+ "Fresh-Booking-Ver": "4.0.48"
66
66
  }
67
67
  }).then((a) => {
68
- d.value = P.ReadyToPay, T.value = !1, S({
68
+ d.value = w.ReadyToPay, S.value = !1, T({
69
69
  callback: () => console.log("Callback!"),
70
70
  response: a.data
71
71
  });
@@ -74,32 +74,33 @@ const ie = ce("giftCard", () => {
74
74
  });
75
75
  }
76
76
  function o(a) {
77
- a && (m.value = a);
77
+ a && (f.value = a);
78
78
  }
79
79
  return {
80
+ selectedPlace: U,
80
81
  moduleState: d,
81
82
  name: u,
82
- email: p,
83
+ email: m,
83
84
  phone: h,
84
85
  value: k,
85
86
  remark: F,
86
- showValue: I,
87
- quantity: E,
87
+ showValue: M,
88
+ quantity: I,
88
89
  media: l,
89
90
  placeId: r,
90
- placeType: f,
91
- showFormPage: U,
92
- showPaymentPage: M,
91
+ placeType: v,
92
+ showFormPage: R,
93
+ showPaymentPage: x,
93
94
  showConfirmationPage: $,
94
- places: x,
95
+ places: B,
95
96
  hasFilledForm: K,
96
97
  hasForcedPlaceType: z,
97
98
  isWaitingForResponse: W,
98
99
  isMetaDataAvailable: J,
99
- orderGiftCard: B,
100
+ orderGiftCard: q,
100
101
  initialize: o
101
102
  };
102
- }), Ge = { class: "media-selector" }, Ie = ["accept"], Me = { class: "media-selector-wrapper" }, xe = { class: "media-selector-tools" }, Be = { key: 0 }, Le = { key: 1 }, Ae = { key: 2 }, De = ["src"], ze = /* @__PURE__ */ ee({
103
+ }), Ie = { class: "media-selector" }, Ge = ["accept"], Me = { class: "media-selector-wrapper" }, xe = { class: "media-selector-tools" }, Be = { key: 0 }, Le = { key: 1 }, Ae = { key: 2 }, De = ["src"], ze = /* @__PURE__ */ ee({
103
104
  __name: "MediaSelector",
104
105
  props: {
105
106
  modelValue: {},
@@ -109,10 +110,10 @@ const ie = ce("giftCard", () => {
109
110
  required: { type: Boolean, default: !1 }
110
111
  },
111
112
  emits: ["update:modelValue"],
112
- setup(S, { emit: b }) {
113
- const q = b, t = S, { t: _ } = re(), { display: d } = ge(), u = v(), p = g(() => t.modelValue.base64 !== "");
113
+ setup(T, { emit: p }) {
114
+ const E = p, t = T, { t: _ } = re(), { display: d } = ge(), u = g(), m = y(() => t.modelValue.base64 !== "");
114
115
  function h(l) {
115
- q("update:modelValue", l);
116
+ E("update:modelValue", l);
116
117
  }
117
118
  function k() {
118
119
  h({
@@ -121,25 +122,25 @@ const ie = ce("giftCard", () => {
121
122
  type: ""
122
123
  }), u.value && (u.value.value = "");
123
124
  }
124
- function E() {
125
+ function I() {
125
126
  u.value && u.value.click();
126
127
  }
127
- function I(l, r) {
128
- const [f, T] = [l.name, l.type], m = new FileReader();
129
- m.onload = function(U) {
130
- if (U.target) {
131
- const M = U.target.result;
132
- r({ base64: M, name: f, type: T });
128
+ function M(l, r) {
129
+ const [v, S] = [l.name, l.type], f = new FileReader();
130
+ f.onload = function(R) {
131
+ if (R.target) {
132
+ const x = R.target.result;
133
+ r({ base64: x, name: v, type: S });
133
134
  } else
134
135
  d({
135
136
  message: _("imageUploadError"),
136
137
  type: "error"
137
138
  });
138
- }, m.readAsDataURL(l);
139
+ }, f.readAsDataURL(l);
139
140
  }
140
141
  async function F() {
141
142
  let l;
142
- (l = u.value.files) instanceof FileList && I(l[0], h);
143
+ (l = u.value.files) instanceof FileList && M(l[0], h);
143
144
  }
144
145
  return (l, r) => (s(), G(ye, {
145
146
  label: l.label,
@@ -147,7 +148,7 @@ const ie = ce("giftCard", () => {
147
148
  type: "media"
148
149
  }, {
149
150
  default: A(() => [
150
- i("div", Ge, [
151
+ i("div", Ie, [
151
152
  i("input", {
152
153
  ref_key: "fileInput",
153
154
  ref: u,
@@ -155,48 +156,48 @@ const ie = ce("giftCard", () => {
155
156
  class: "hidden",
156
157
  accept: l.validation,
157
158
  single: "",
158
- onChange: r[0] || (r[0] = (f) => F())
159
- }, null, 40, Ie),
159
+ onChange: r[0] || (r[0] = (v) => F())
160
+ }, null, 40, Ge),
160
161
  i("div", Me, [
161
162
  i("ul", xe, [
162
- p.value ? y("", !0) : (s(), c("li", Be, [
163
+ m.value ? b("", !0) : (s(), c("li", Be, [
163
164
  n(D, {
164
165
  label: e(_)("uploadFile"),
165
166
  type: "button",
166
167
  icon: "upload",
167
168
  "icon-color": l.iconColor,
168
- onClickEvent: r[1] || (r[1] = (f) => E())
169
+ onClickEvent: r[1] || (r[1] = (v) => I())
169
170
  }, null, 8, ["label", "icon-color"])
170
171
  ])),
171
- p.value ? (s(), c("li", Le, [
172
+ m.value ? (s(), c("li", Le, [
172
173
  n(D, {
173
174
  label: e(_)("replaceFile"),
174
175
  type: "button",
175
176
  icon: "repeat-alt",
176
177
  "icon-color": l.iconColor,
177
- onClickEvent: r[2] || (r[2] = (f) => E())
178
+ onClickEvent: r[2] || (r[2] = (v) => I())
178
179
  }, null, 8, ["label", "icon-color"])
179
- ])) : y("", !0),
180
- p.value ? (s(), c("li", Ae, [
180
+ ])) : b("", !0),
181
+ m.value ? (s(), c("li", Ae, [
181
182
  n(D, {
182
183
  label: e(_)("removeFile"),
183
184
  type: "button",
184
185
  icon: "trash-alt",
185
186
  "icon-color": l.iconColor,
186
- onClickEvent: r[3] || (r[3] = (f) => k())
187
+ onClickEvent: r[3] || (r[3] = (v) => k())
187
188
  }, null, 8, ["label", "icon-color"])
188
- ])) : y("", !0)
189
+ ])) : b("", !0)
189
190
  ]),
190
191
  i("div", {
191
192
  class: de([
192
193
  "media-selector-previewer",
193
- { opened: p.value }
194
+ { opened: m.value }
194
195
  ])
195
196
  }, [
196
197
  l.modelValue ? (s(), c("img", {
197
198
  key: 0,
198
199
  src: l.modelValue.base64
199
- }, null, 8, De)) : y("", !0)
200
+ }, null, 8, De)) : b("", !0)
200
201
  ], 2)
201
202
  ])
202
203
  ])
@@ -205,9 +206,9 @@ const ie = ce("giftCard", () => {
205
206
  }, 8, ["label", "required"]));
206
207
  }
207
208
  });
208
- function se(S) {
209
- const b = S;
210
- b.__i18n = b.__i18n || [], b.__i18n.push({
209
+ function se(T) {
210
+ const p = T;
211
+ p.__i18n = p.__i18n || [], p.__i18n.push({
211
212
  locale: "",
212
213
  resource: {
213
214
  da: {
@@ -228,8 +229,8 @@ function se(S) {
228
229
  typeof se == "function" && se(ze);
229
230
  const We = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ ee({
230
231
  __name: "GiftCardSkeleton",
231
- setup(S) {
232
- return (b, q) => (s(), c("div", We, [
232
+ setup(T) {
233
+ return (p, E) => (s(), c("div", We, [
233
234
  i("div", Ne, [
234
235
  n(L),
235
236
  n(L),
@@ -267,49 +268,50 @@ const He = /* @__PURE__ */ ue(je, [["__scopeId", "data-v-e35c75b3"]]), Oe = {
267
268
  placeType: {},
268
269
  styling: {}
269
270
  },
270
- setup(S) {
271
- const b = S, q = g(() => ({
271
+ setup(T) {
272
+ const p = T, E = y(() => ({
272
273
  panelMaxWidth: "800px",
273
- ...b.styling
274
+ ...p.styling
274
275
  })), { t } = re(), {
275
276
  name: _,
276
277
  email: d,
277
278
  phone: u,
278
- value: p,
279
+ value: m,
279
280
  remark: h,
280
281
  showValue: k,
281
- quantity: E,
282
- media: I,
282
+ quantity: I,
283
+ media: M,
283
284
  placeId: F,
284
285
  placeType: l,
285
286
  showFormPage: r,
286
- showPaymentPage: f,
287
- showConfirmationPage: T,
288
- places: m,
289
- hasFilledForm: U,
290
- hasForcedPlaceType: M,
287
+ showPaymentPage: v,
288
+ showConfirmationPage: S,
289
+ places: f,
290
+ hasFilledForm: R,
291
+ hasForcedPlaceType: x,
291
292
  isWaitingForResponse: $,
292
- isMetaDataAvailable: x
293
- } = X(ie()), { initialize: z, orderGiftCard: R } = ie(), { isRecaptchaEnabled: K, currency: J } = X(Z());
293
+ isMetaDataAvailable: B
294
+ } = X(ie()), { initialize: z, orderGiftCard: U } = ie(), { isRecaptchaEnabled: K, currency: J } = X(Z());
294
295
  async function W() {
295
- await R();
296
+ await U();
296
297
  }
297
298
  return be(l, () => {
298
299
  F.value = void 0;
299
300
  }), _e(() => {
300
- z();
301
- }), (B, o) => (s(), G($e, { styling: q.value }, {
301
+ const q = p.placeType ? parseInt(p.placeType) : void 0;
302
+ z(q);
303
+ }), (q, o) => (s(), G($e, { styling: E.value }, {
302
304
  default: A(() => [
303
305
  (s(), G(he, null, {
304
306
  default: A(() => [
305
307
  n(Fe, {
306
308
  id: "konnectio-gift-card-module",
307
309
  type: "gift-card",
308
- "access-token": B.accessToken,
309
- "data-layout": B.layout
310
+ "access-token": q.accessToken,
311
+ "data-layout": q.layout
310
312
  }, {
311
313
  default: A(() => [
312
- e(x) ? (s(), c("div", Oe, [
314
+ e(B) ? (s(), c("div", Oe, [
313
315
  i("h2", Ke, [
314
316
  i("span", null, te(e(t)("giftCard.title")), 1)
315
317
  ]),
@@ -317,7 +319,7 @@ const He = /* @__PURE__ */ ue(je, [["__scopeId", "data-v-e35c75b3"]]), Oe = {
317
319
  N(i("div", Ye, [
318
320
  n(Ue)
319
321
  ], 512), [
320
- [j, e(f)]
322
+ [j, e(v)]
321
323
  ]),
322
324
  N(i("div", null, [
323
325
  i("p", {
@@ -325,34 +327,34 @@ const He = /* @__PURE__ */ ue(je, [["__scopeId", "data-v-e35c75b3"]]), Oe = {
325
327
  innerHTML: e(t)("giftCard.description")
326
328
  }, null, 8, Qe),
327
329
  i("form", null, [
328
- e(M) ? y("", !0) : (s(), c("div", Xe, [
329
- e(m) ? (s(), c("div", Ze, [
330
+ e(x) ? b("", !0) : (s(), c("div", Xe, [
331
+ e(f) ? (s(), c("div", Ze, [
330
332
  i("label", ea, [
331
333
  i("span", null, te(e(t)("giftCard.selectType")), 1)
332
334
  ]),
333
335
  i("div", aa, [
334
336
  i("ul", null, [
335
- (s(!0), c(ke, null, Ce(e(m), (a, w) => (s(), c("li", { key: w }, [
337
+ (s(!0), c(ke, null, Ce(e(f), (a, P) => (s(), c("li", { key: P }, [
336
338
  n(ne, {
337
339
  modelValue: e(l),
338
340
  "onUpdate:modelValue": o[0] || (o[0] = (C) => V(l) ? l.value = C : null),
339
341
  type: "radio",
340
342
  name: "placeType",
341
- val: w,
343
+ val: P,
342
344
  label: a.label
343
345
  }, null, 8, ["modelValue", "val", "label"])
344
346
  ]))), 128))
345
347
  ]),
346
- e(m)[e(l)] && e(m)[e(l)].data.length > 1 ? (s(), G(Ve, {
348
+ e(f)[e(l)] && e(f)[e(l)].data.length > 1 ? (s(), G(Ve, {
347
349
  key: 0,
348
350
  modelValue: e(F),
349
351
  "onUpdate:modelValue": o[1] || (o[1] = (a) => V(F) ? F.value = a : null),
350
352
  placeholder: e(t)("giftCard.selectPlacePlaceholder"),
351
- options: e(m)[e(l)].data,
353
+ options: e(f)[e(l)].data,
352
354
  labelKey: "name",
353
355
  valueKey: "id",
354
356
  required: ""
355
- }, null, 8, ["modelValue", "placeholder", "options"])) : y("", !0)
357
+ }, null, 8, ["modelValue", "placeholder", "options"])) : b("", !0)
356
358
  ])
357
359
  ])) : (s(), G(oe, { key: 1 }))
358
360
  ])),
@@ -387,8 +389,8 @@ const He = /* @__PURE__ */ ue(je, [["__scopeId", "data-v-e35c75b3"]]), Oe = {
387
389
  required: ""
388
390
  }, null, 8, ["modelValue", "label", "placeholder"]),
389
391
  n(H, {
390
- modelValue: e(p),
391
- "onUpdate:modelValue": o[5] || (o[5] = (a) => V(p) ? p.value = a : null),
392
+ modelValue: e(m),
393
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => V(m) ? m.value = a : null),
392
394
  type: "number",
393
395
  name: "value",
394
396
  label: e(t)("giftCard.value"),
@@ -405,8 +407,8 @@ const He = /* @__PURE__ */ ue(je, [["__scopeId", "data-v-e35c75b3"]]), Oe = {
405
407
  label: e(t)("giftCard.showValue"),
406
408
  checked: e(k)
407
409
  }, null, 8, ["modelValue", "label", "checked"]),
408
- y("", !0),
409
- y("", !0)
410
+ b("", !0),
411
+ b("", !0)
410
412
  ])
411
413
  ], 512), [
412
414
  [j, e(r)]
@@ -416,21 +418,21 @@ const He = /* @__PURE__ */ ue(je, [["__scopeId", "data-v-e35c75b3"]]), Oe = {
416
418
  innerHTML: e(t)("giftCard.thankYou")
417
419
  }, null, 8, la)
418
420
  ], 512), [
419
- [j, e(T)]
421
+ [j, e(S)]
420
422
  ])
421
423
  ]),
422
- B.layout !== "minimal" && e(r) ? (s(), c("div", ta, [
424
+ q.layout !== "minimal" && e(r) ? (s(), c("div", ta, [
423
425
  i("div", oa, [
424
426
  n(D, {
425
427
  label: e(t)("giftCard.orderGiftCard"),
426
428
  "full-width": !0,
427
- disabled: !e(U),
429
+ disabled: !e(R),
428
430
  "is-loading": e($),
429
431
  "onUpdate:isLoading": o[9] || (o[9] = (a) => V($) ? $.value = a : null),
430
432
  onClickEvent: W
431
433
  }, null, 8, ["label", "disabled", "is-loading"])
432
434
  ])
433
- ])) : y("", !0),
435
+ ])) : b("", !0),
434
436
  e(r) ? (s(), c("div", na, [
435
437
  n(H, {
436
438
  modelValue: e(h),
@@ -441,12 +443,12 @@ const He = /* @__PURE__ */ ue(je, [["__scopeId", "data-v-e35c75b3"]]), Oe = {
441
443
  icon: "info-circle",
442
444
  placeholder: e(t)("giftCard.remarkPlaceholder")
443
445
  }, null, 8, ["modelValue", "label", "placeholder"])
444
- ])) : y("", !0),
446
+ ])) : b("", !0),
445
447
  e(r) ? (s(), c("div", ia, [
446
448
  n(D, {
447
449
  label: e(t)("giftCard.orderGiftCard"),
448
450
  "full-width": !0,
449
- disabled: !e(U),
451
+ disabled: !e(R),
450
452
  "data-test": "orderGiftCard",
451
453
  "is-loading": e($),
452
454
  "onUpdate:isLoading": o[11] || (o[11] = (a) => V($) ? $.value = a : null),
@@ -457,7 +459,7 @@ const He = /* @__PURE__ */ ue(je, [["__scopeId", "data-v-e35c75b3"]]), Oe = {
457
459
  ], 512), [
458
460
  [j, e(K)]
459
461
  ])
460
- ])) : y("", !0)
462
+ ])) : b("", !0)
461
463
  ])) : (s(), G(oe, { key: 1 }))
462
464
  ]),
463
465
  _: 1
@@ -473,8 +475,8 @@ const He = /* @__PURE__ */ ue(je, [["__scopeId", "data-v-e35c75b3"]]), Oe = {
473
475
  }, 8, ["styling"]));
474
476
  }
475
477
  });
476
- const da = /* @__PURE__ */ ue(ra, [["__scopeId", "data-v-d9cb156e"]]), ua = we(), O = Pe({ components: { GiftCard: da } });
478
+ const da = /* @__PURE__ */ ue(ra, [["__scopeId", "data-v-111b608c"]]), ua = Pe(), O = we({ components: { GiftCard: da } });
477
479
  O.use(ua);
478
- O.use(Se);
479
- O.use(Te, { bootstrap: !0 });
480
+ O.use(Te);
481
+ O.use(Se, { bootstrap: !0 });
480
482
  O.mount("#konnectio-gift-card-app");
Binary file