@konnectio/core 4.0.25 → 4.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ActionField-7b136f91.cjs → ActionField-341a2fae.cjs} +1 -1
- package/dist/{ActionField-c9cef523.js → ActionField-e518ac9a.js} +2 -2
- package/dist/ActionField-e518ac9a.js.br +0 -0
- package/dist/{AvailabilitySkeleton-acc847fd.cjs → AvailabilitySkeleton-29c1edbb.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-aa3bf6f1.js → AvailabilitySkeleton-52c00b2c.js} +5 -5
- package/dist/AvailabilitySkeleton-52c00b2c.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-0ac2a746.js → DateField.vue_vue_type_style_index_0_lang-7e9bf5a9.js} +2485 -2485
- package/dist/DateField.vue_vue_type_style_index_0_lang-7e9bf5a9.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-e3a9747e.cjs +5 -0
- package/dist/{Field-3cca7a7b.js → Field-a02a9614.js} +2 -2
- package/dist/Field-a02a9614.js.br +0 -0
- package/dist/{Field-5b40d0b6.cjs → Field-a3929646.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-659bf8ca.cjs → NumberField.vue_vue_type_script_setup_true_lang-0c2b2bf3.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js → NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js} +2 -2
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-e150d886.js → SelectField.vue_vue_type_style_index_0_lang-b6764902.js} +14 -15
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b6764902.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-cd37504c.cjs → SelectField.vue_vue_type_style_index_0_lang-cef08480.cjs} +10 -10
- package/dist/{ThankYou-eda0a413.cjs → ThankYou-0777df9a.cjs} +6 -6
- package/dist/{ThankYou-39341d0e.js → ThankYou-35cb92aa.js} +39 -36
- package/dist/ThankYou-35cb92aa.js.br +0 -0
- package/dist/{_-c8a00c38.js → _-6878c22f.js} +1 -1
- package/dist/_-6878c22f.js.br +0 -0
- package/dist/{_-b2f2bbb6.cjs → _-e84d1f5c.cjs} +1 -1
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/components/Gallery.vue.d.ts +4 -0
- package/dist/components/Gallery.vue.d.ts.map +1 -0
- package/dist/components/inputs/InputField.vue.d.ts +1 -1
- package/dist/components/listings/Hotel.vue.d.ts +1 -1
- package/dist/components/modals/Info.vue.d.ts +1 -1
- package/dist/{event-5ba52771.cjs → event-6a63c75b.cjs} +1 -1
- package/dist/{event-ee196721.js → event-9e559956.js} +9 -9
- package/dist/event-9e559956.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +8 -8
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +3 -3
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +5 -5
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1583 -1566
- package/dist/hotel.js.br +0 -0
- package/dist/{index-6ac9ac7c.js → index-96ff0142.js} +1 -1
- package/dist/index-96ff0142.js.br +0 -0
- package/dist/{index-69b5b9a3.cjs → index-af967975.cjs} +1 -1
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/store/event.d.ts +1 -1
- package/dist/store/hotel.d.ts +100 -94
- package/dist/store/utilities.d.ts +93 -93
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +35 -0
- package/package.json +1 -1
- package/dist/ActionField-c9cef523.js.br +0 -0
- package/dist/AvailabilitySkeleton-aa3bf6f1.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-0ac2a746.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-c9bd7be5.cjs +0 -5
- package/dist/Field-3cca7a7b.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-e150d886.js.br +0 -0
- package/dist/ThankYou-39341d0e.js.br +0 -0
- package/dist/_-c8a00c38.js.br +0 -0
- package/dist/event-ee196721.js.br +0 -0
- package/dist/index-6ac9ac7c.js.br +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as l, k as t, q as a, l as i, t as n, m as o, v as d, _ as r } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { E as s } from "./_-
|
|
1
|
+
import { h as l, k as t, q as a, l as i, t as n, m as o, v as d, _ as r } from "./SelectField.vue_vue_type_style_index_0_lang-b6764902.js";
|
|
2
|
+
import { E as s } from "./_-6878c22f.js";
|
|
3
3
|
const p = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "skeleton-field-label"
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-cef08480.cjs"),l=require("./_-e84d1f5c.cjs"),o={key:0,class:"skeleton-field-label"},n={key:1},a=e.defineComponent({__name:"Field",props:{withIcon:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1},isTextArea:{type:Boolean,default:!1}},setup(i){return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["skeleton-field",{"is-text-area":t.isTextArea}])},[t.noLabel?(e.openBlock(),e.createElementBlock("div",n)):(e.openBlock(),e.createElementBlock("div",o,[t.withIcon?(e.openBlock(),e.createBlock(l.Element,{key:0,height:"15px",width:"15px"})):e.createCommentVNode("",!0),e.createVNode(l.Element,{height:"15px",width:"30%"})])),e.createVNode(l.Element,{height:t.isTextArea?"82px":"44px",width:"100%","border-radius":"6px"},null,8,["height"])],2))}});const s=e._export_sfc(a,[["__scopeId","data-v-d3ba4545"]]);exports.Field=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-cef08480.cjs"),g=e.defineStore("applyGiftCard",()=>{const{display:o}=e.useAlertStore(),{bearerToken:d}=e.storeToRefs(e.useUtilityStore()),t=e.ref(0),l=e.ref(""),n=e.ref(""),i=e.ref(""),a=e.ref(!1),r=e.ref(!1);async function s(){l.value!==""?(r.value=!0,await e.axios.get("https://stage.hotel-service.konnectio.dk/api/gift-card/validate",{params:{giftcardCode:l.value,lang:e.getUserLanguage()},headers:{Authorization:d.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.26"}}).then(p=>{const{valid:c,amount:f,expirationDate:m,productName:y}=p.data;c?(t.value=f,n.value=m,i.value=y,a.value=!0,o({message:e.i18n.t("alert.success.giftCardApplied"),type:"success"})):(a.value=!1,o({message:e.i18n.t("alert.error.giftCardInvalid"),type:"warning"}))}),r.value=!1):o({message:e.i18n.t("alert.error.giftCardEmpty"),type:"error"})}function u(){t.value=0,l.value="",a.value=!1,o({message:e.i18n.t("alert.success.giftCardRemoved"),type:"success"})}return{amount:t,voucher:l,expirationDate:n,productName:i,isValid:a,isLoading:r,apply:s,reset:u}}),v=e.defineComponent({__name:"NumberField",props:{modelValue:{default:0},minValue:{default:0},maxValue:{default:1/0},inputtable:{type:Boolean,default:!0},label:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},iconPlacement:{},step:{default:1},controls:{type:Boolean,default:!0},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},id:{},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:d}){const t=d,l=o,n=l.id||e.ranId();function i(a){t("update:modelValue",a)}return e.onMounted(()=>{l.modelValue||i(l.minValue)}),(a,r)=>(e.openBlock(),e.createBlock(e.InputField,{label:a.label,id:e.unref(n),icon:a.icon,"icon-color":a.iconColor,"icon-type":a.iconType,"icon-placement":a.iconPlacement,required:a.required,type:a.small?"fresh-booking-number-picker small":"fresh-booking-number-picker",readonly:a.readonly},{default:e.withCtx(()=>[e.createVNode(e.unref(e.script),{attrs:{id:e.unref(n)},modelValue:a.modelValue,min:a.minValue,max:a.maxValue,step:a.step,inline:a.inline,controls:a.controls,placeholder:a.placeholder,readonly:a.readonly,inputtable:a.inputtable,rounded:a.rounded,disabled:a.disabled,"onUpdate:modelValue":i},null,8,["attrs","modelValue","min","max","step","inline","controls","placeholder","readonly","inputtable","rounded","disabled"])]),_:1},8,["label","id","icon","icon-color","icon-type","icon-placement","required","type","readonly"]))}});exports._sfc_main=v;exports.useApplyGiftCardStore=g;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as b, u as V, s as h, a as k, r as o, e as B, f as C, i as r, h as A, j as I, o as q, k as w, l as N, w as S, m as T, n as u, p as F, I as U } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { d as b, u as V, s as h, a as k, r as o, e as B, f as C, i as r, h as A, j as I, o as q, k as w, l as N, w as S, m as T, n as u, p as F, I as U } from "./SelectField.vue_vue_type_style_index_0_lang-b6764902.js";
|
|
2
2
|
const D = b("applyGiftCard", () => {
|
|
3
3
|
const { display: l } = V(), { bearerToken: d } = h(k()), t = o(0), a = o(""), n = o(""), s = o(""), e = o(!1), i = o(!1);
|
|
4
4
|
async function p() {
|
|
@@ -10,7 +10,7 @@ const D = b("applyGiftCard", () => {
|
|
|
10
10
|
headers: {
|
|
11
11
|
Authorization: d.value,
|
|
12
12
|
Accept: "application/json",
|
|
13
|
-
"Fresh-Booking-Ver": "4.0.
|
|
13
|
+
"Fresh-Booking-Ver": "4.0.26"
|
|
14
14
|
}
|
|
15
15
|
}).then((f) => {
|
|
16
16
|
const {
|
|
@@ -14902,7 +14902,7 @@ const jg = yu("utilities", () => {
|
|
|
14902
14902
|
headers: {
|
|
14903
14903
|
Authorization: j.value,
|
|
14904
14904
|
Accept: "application/json",
|
|
14905
|
-
"Fresh-Booking-Ver": "4.0.
|
|
14905
|
+
"Fresh-Booking-Ver": "4.0.26"
|
|
14906
14906
|
}
|
|
14907
14907
|
})).data;
|
|
14908
14908
|
i.value = ce, isNaN(n.value) && ce.hotelId && (n.value = ce.hotelId);
|
|
@@ -14919,7 +14919,7 @@ const jg = yu("utilities", () => {
|
|
|
14919
14919
|
headers: {
|
|
14920
14920
|
Authorization: j.value,
|
|
14921
14921
|
Accept: "application/json",
|
|
14922
|
-
"Fresh-Booking-Ver": "4.0.
|
|
14922
|
+
"Fresh-Booking-Ver": "4.0.26"
|
|
14923
14923
|
}
|
|
14924
14924
|
}).then((le) => {
|
|
14925
14925
|
const { settings: ce, translations: G } = le.data;
|
|
@@ -14941,7 +14941,7 @@ const jg = yu("utilities", () => {
|
|
|
14941
14941
|
},
|
|
14942
14942
|
headers: {
|
|
14943
14943
|
Authorization: j.value,
|
|
14944
|
-
"Konnectio-Core-Ver": "4.0.
|
|
14944
|
+
"Konnectio-Core-Ver": "4.0.26"
|
|
14945
14945
|
}
|
|
14946
14946
|
})).data.success === !0 ? ce() : e({
|
|
14947
14947
|
message: an.t("Robot guy"),
|
|
@@ -18652,7 +18652,7 @@ const cA = /* @__PURE__ */ Na(E9, [["__scopeId", "data-v-314a1421"]]), w9 = { cl
|
|
|
18652
18652
|
]));
|
|
18653
18653
|
}
|
|
18654
18654
|
});
|
|
18655
|
-
const yy = /* @__PURE__ */ Na(k9, [["__scopeId", "data-v-
|
|
18655
|
+
const yy = /* @__PURE__ */ Na(k9, [["__scopeId", "data-v-07dbcaaf"]]);
|
|
18656
18656
|
/*! vue-number-input v2.0.1 | (c) 2018-present Chen Fengyuan | MIT */
|
|
18657
18657
|
const ui = Number.isNaN || window.isNaN, C9 = /^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/, P9 = /\.\d*(?:0|9){10}\d*$/, Mm = (e, t = 1e11) => P9.test(String(e)) ? Math.round(e * t) / t : e;
|
|
18658
18658
|
var by = /* @__PURE__ */ rt({
|
|
@@ -28998,17 +28998,16 @@ export {
|
|
|
28998
28998
|
tA as aC,
|
|
28999
28999
|
lA as aD,
|
|
29000
29000
|
yE as aE,
|
|
29001
|
-
|
|
29002
|
-
|
|
29003
|
-
|
|
29004
|
-
|
|
29005
|
-
|
|
29006
|
-
|
|
29007
|
-
|
|
29008
|
-
|
|
29009
|
-
|
|
29010
|
-
|
|
29011
|
-
Ws as aP,
|
|
29001
|
+
Fd as aF,
|
|
29002
|
+
QS as aG,
|
|
29003
|
+
nA as aH,
|
|
29004
|
+
eu as aI,
|
|
29005
|
+
Ir as aJ,
|
|
29006
|
+
Pd as aK,
|
|
29007
|
+
bs as aL,
|
|
29008
|
+
md as aM,
|
|
29009
|
+
jo as aN,
|
|
29010
|
+
Ws as aO,
|
|
29012
29011
|
st as aa,
|
|
29013
29012
|
Q7 as ab,
|
|
29014
29013
|
Pi as ac,
|
|
Binary file
|