@konnectio/core 4.7.4 → 4.7.6
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-B1aBJVRb.js → ActionField-KZjb9lT9.js} +42 -42
- package/dist/ActionField-KZjb9lT9.js.br +0 -0
- package/dist/ActionField-KZjb9lT9.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-B1hwKbSA.js → AvailabilitySkeleton-CEdJogdt.js} +1662 -1662
- package/dist/AvailabilitySkeleton-CEdJogdt.js.br +0 -0
- package/dist/AvailabilitySkeleton-CEdJogdt.js.gz +0 -0
- package/dist/{CheckoutWindow-BD2PXPt7.js → CheckoutWindow-BI5hQY73.js} +155 -154
- package/dist/CheckoutWindow-BI5hQY73.js.br +0 -0
- package/dist/CheckoutWindow-BI5hQY73.js.gz +0 -0
- package/dist/{ErrorMessage-DiRVby8f.js → ErrorMessage-BmIm1fd8.js} +13 -13
- package/dist/ErrorMessage-BmIm1fd8.js.br +0 -0
- package/dist/ErrorMessage-BmIm1fd8.js.gz +0 -0
- package/dist/EventAvailabilityForm-BS4UkhDW.js +114 -0
- package/dist/EventAvailabilityForm-BS4UkhDW.js.br +0 -0
- package/dist/EventAvailabilityForm-BS4UkhDW.js.gz +0 -0
- package/dist/{Field-BYZdtara.js → Field-DWuQQgVC.js} +7 -7
- package/dist/Field-DWuQQgVC.js.br +0 -0
- package/dist/Field-DWuQQgVC.js.gz +0 -0
- package/dist/HotelAvailabilityForm-CCI7Ub6M.js +323 -0
- package/dist/HotelAvailabilityForm-CCI7Ub6M.js.br +0 -0
- package/dist/HotelAvailabilityForm-CCI7Ub6M.js.gz +0 -0
- package/dist/{SelectField-m_n1cMe0.js → SelectField-5RVfSG15.js} +2644 -2590
- package/dist/SelectField-5RVfSG15.js.br +0 -0
- package/dist/SelectField-5RVfSG15.js.gz +0 -0
- package/dist/TermsOfService-DJbt6icJ.js +17 -0
- package/dist/TermsOfService-DJbt6icJ.js.br +0 -0
- package/dist/TermsOfService-DJbt6icJ.js.gz +0 -0
- package/dist/_-WoNM0Unh.js +25 -0
- package/dist/_-WoNM0Unh.js.br +0 -0
- package/dist/_-WoNM0Unh.js.gz +0 -0
- package/dist/availability.js +39 -39
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +71 -71
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +17 -17
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/{dist-8cx1vxIY.js → dist-BbbpdaI7.js} +17 -17
- package/dist/dist-BbbpdaI7.js.br +0 -0
- package/dist/dist-BbbpdaI7.js.gz +0 -0
- package/dist/{masonry.plugin-DG-fnTtd.js → dist-Bl3zpaAg.js} +44 -994
- package/dist/dist-Bl3zpaAg.js.br +0 -0
- package/dist/dist-Bl3zpaAg.js.gz +0 -0
- package/dist/event.js +393 -393
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +51 -51
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +168 -168
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-4w50jcS_.js → giftCard-D-RDtJQu.js} +17 -17
- package/dist/giftCard-D-RDtJQu.js.br +0 -0
- package/dist/giftCard-D-RDtJQu.js.gz +0 -0
- package/dist/hotel.js +925 -924
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{mitt-DosBWi_E.js → i18n-DwFTw_rF.js} +1 -24
- package/dist/i18n-DwFTw_rF.js.br +0 -0
- package/dist/{mitt-DosBWi_E.js.gz → i18n-DwFTw_rF.js.gz} +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{style-BzTt5D-A.js → style-M-qG6NpA.js} +389 -389
- package/dist/style-M-qG6NpA.js.br +0 -0
- package/dist/style-M-qG6NpA.js.gz +0 -0
- package/dist-wix/availability.js +22 -22
- package/dist-wix/event.js +6 -6
- package/dist-wix/gift-card-validation.js +11 -11
- package/dist-wix/gift-card.js +25 -25
- package/dist-wix/hotel.js +7 -7
- package/package.json +5 -4
- package/dist/ActionField-B1aBJVRb.js.br +0 -0
- package/dist/ActionField-B1aBJVRb.js.gz +0 -0
- package/dist/AvailabilitySkeleton-B1hwKbSA.js.br +0 -0
- package/dist/AvailabilitySkeleton-B1hwKbSA.js.gz +0 -0
- package/dist/CheckoutWindow-BD2PXPt7.js.br +0 -0
- package/dist/CheckoutWindow-BD2PXPt7.js.gz +0 -0
- package/dist/ErrorMessage-DiRVby8f.js.br +0 -0
- package/dist/ErrorMessage-DiRVby8f.js.gz +0 -0
- package/dist/EventAvailabilityForm-DW6_GZv3.js +0 -114
- package/dist/EventAvailabilityForm-DW6_GZv3.js.br +0 -0
- package/dist/EventAvailabilityForm-DW6_GZv3.js.gz +0 -0
- package/dist/Field-BYZdtara.js.br +0 -0
- package/dist/Field-BYZdtara.js.gz +0 -0
- package/dist/HotelAvailabilityForm-B7yHDXz3.js +0 -323
- package/dist/HotelAvailabilityForm-B7yHDXz3.js.br +0 -0
- package/dist/HotelAvailabilityForm-B7yHDXz3.js.gz +0 -0
- package/dist/SelectField-m_n1cMe0.js.br +0 -0
- package/dist/SelectField-m_n1cMe0.js.gz +0 -0
- package/dist/TermsOfService-CXblPhj1.js +0 -17
- package/dist/TermsOfService-CXblPhj1.js.br +0 -0
- package/dist/TermsOfService-CXblPhj1.js.gz +0 -0
- package/dist/_-CTagk-cE.js +0 -25
- package/dist/_-CTagk-cE.js.br +0 -0
- package/dist/_-CTagk-cE.js.gz +0 -3
- package/dist/dist-8cx1vxIY.js.br +0 -0
- package/dist/dist-8cx1vxIY.js.gz +0 -0
- package/dist/giftCard-4w50jcS_.js.br +0 -0
- package/dist/giftCard-4w50jcS_.js.gz +0 -0
- package/dist/masonry.plugin-DG-fnTtd.js.br +0 -0
- package/dist/masonry.plugin-DG-fnTtd.js.gz +0 -0
- package/dist/mitt-DosBWi_E.js.br +0 -0
- package/dist/style-BzTt5D-A.js.br +0 -0
- package/dist/style-BzTt5D-A.js.gz +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { E as te,
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { i as ie, n as ae, r as oe, t as se } from "./CheckoutWindow-
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
1
|
+
import { D as e, E as t, Et as n, J as r, K as i, N as a, O as o, Q as s, T as c, Tt as l, a as u, b as d, ct as f, dt as p, g as m, ht as h, i as g, j as _, kt as v, l as y, n as b, o as x, s as S, ut as C, v as w, w as T, x as ee, yt as E } from "./i18n-DwFTw_rF.js";
|
|
2
|
+
import { t as D } from "./dist-BbbpdaI7.js";
|
|
3
|
+
import { E as te, N as O, S as k, _ as ne, b as re, n as A, r as j, t as M, v as N, y as P } from "./SelectField-5RVfSG15.js";
|
|
4
|
+
import { t as F } from "./_-WoNM0Unh.js";
|
|
5
|
+
import { t as I } from "./ErrorMessage-BmIm1fd8.js";
|
|
6
|
+
import { n as L, t as R } from "./Field-DWuQQgVC.js";
|
|
7
|
+
import { t as z } from "./style-M-qG6NpA.js";
|
|
8
|
+
import { i as ie, n as ae, r as oe, t as se } from "./CheckoutWindow-BI5hQY73.js";
|
|
9
|
+
import { t as B } from "./giftCard-D-RDtJQu.js";
|
|
10
|
+
import { t as V } from "./TermsOfService-DJbt6icJ.js";
|
|
11
11
|
//#region src/components/inputs/MediaSelector.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
12
|
+
var H = { class: "media-selector" }, U = ["accept"], W = { class: "media-selector-wrapper" }, G = { class: "media-selector-tools" }, K = { key: 0 }, q = { key: 1 }, J = { key: 2 }, Y = ["src"], X = /*@__PURE__*/ a({
|
|
13
13
|
__name: "MediaSelector",
|
|
14
14
|
props: {
|
|
15
15
|
modelValue: {},
|
|
@@ -22,22 +22,22 @@ var U = { class: "media-selector" }, W = ["accept"], G = { class: "media-selecto
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:modelValue"],
|
|
25
|
-
setup(
|
|
26
|
-
let
|
|
27
|
-
function
|
|
28
|
-
|
|
25
|
+
setup(i, { emit: a }) {
|
|
26
|
+
let s = a, d = i, { t: f } = u(), { display: p } = O(), m = E(), h = T(() => d.modelValue.base64 !== "");
|
|
27
|
+
function g(e) {
|
|
28
|
+
s("update:modelValue", e);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
function v() {
|
|
31
|
+
g({
|
|
32
32
|
base64: "",
|
|
33
33
|
name: "",
|
|
34
34
|
type: ""
|
|
35
|
-
}),
|
|
35
|
+
}), m.value && (m.value.value = "");
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
37
|
+
function y() {
|
|
38
|
+
m.value && m.value.click();
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function b(e, t) {
|
|
41
41
|
let [n, r] = [e.name, e.type], i = new FileReader();
|
|
42
42
|
i.onload = function(e) {
|
|
43
43
|
if (e.target) {
|
|
@@ -53,56 +53,56 @@ var U = { class: "media-selector" }, W = ["accept"], G = { class: "media-selecto
|
|
|
53
53
|
});
|
|
54
54
|
}, i.readAsDataURL(e);
|
|
55
55
|
}
|
|
56
|
-
async function
|
|
56
|
+
async function x() {
|
|
57
57
|
let e;
|
|
58
|
-
(e =
|
|
58
|
+
(e = m.value.files) instanceof FileList && b(e[0], g);
|
|
59
59
|
}
|
|
60
|
-
return (
|
|
61
|
-
label:
|
|
62
|
-
required:
|
|
60
|
+
return (a, s) => (r(), t(ne, {
|
|
61
|
+
label: i.label,
|
|
62
|
+
required: i.required,
|
|
63
63
|
type: "media"
|
|
64
64
|
}, {
|
|
65
|
-
default:
|
|
65
|
+
default: C(() => [c("div", H, [c("input", {
|
|
66
66
|
ref_key: "fileInput",
|
|
67
|
-
ref:
|
|
67
|
+
ref: m,
|
|
68
68
|
type: "file",
|
|
69
69
|
class: "hidden",
|
|
70
|
-
accept:
|
|
70
|
+
accept: i.validation,
|
|
71
71
|
single: "",
|
|
72
|
-
onChange:
|
|
73
|
-
}, null, 40,
|
|
74
|
-
|
|
75
|
-
label:
|
|
72
|
+
onChange: s[0] ||= (e) => x()
|
|
73
|
+
}, null, 40, U), c("div", W, [c("ul", G, [
|
|
74
|
+
h.value ? e("", !0) : (r(), o("li", K, [_(N, {
|
|
75
|
+
label: l(f)("uploadFile"),
|
|
76
76
|
type: "button",
|
|
77
77
|
icon: "upload",
|
|
78
|
-
"icon-color":
|
|
79
|
-
onClickEvent:
|
|
78
|
+
"icon-color": i.iconColor,
|
|
79
|
+
onClickEvent: s[1] ||= (e) => y()
|
|
80
80
|
}, null, 8, ["label", "icon-color"])])),
|
|
81
|
-
|
|
82
|
-
label:
|
|
81
|
+
h.value ? (r(), o("li", q, [_(N, {
|
|
82
|
+
label: l(f)("replaceFile"),
|
|
83
83
|
type: "button",
|
|
84
84
|
icon: "repeat-alt",
|
|
85
|
-
"icon-color":
|
|
86
|
-
onClickEvent:
|
|
87
|
-
}, null, 8, ["label", "icon-color"])])) :
|
|
88
|
-
|
|
89
|
-
label:
|
|
85
|
+
"icon-color": i.iconColor,
|
|
86
|
+
onClickEvent: s[2] ||= (e) => y()
|
|
87
|
+
}, null, 8, ["label", "icon-color"])])) : e("", !0),
|
|
88
|
+
h.value ? (r(), o("li", J, [_(N, {
|
|
89
|
+
label: l(f)("removeFile"),
|
|
90
90
|
type: "button",
|
|
91
91
|
icon: "trash-alt",
|
|
92
|
-
"icon-color":
|
|
93
|
-
onClickEvent:
|
|
94
|
-
}, null, 8, ["label", "icon-color"])])) :
|
|
95
|
-
]),
|
|
92
|
+
"icon-color": i.iconColor,
|
|
93
|
+
onClickEvent: s[3] ||= (e) => v()
|
|
94
|
+
}, null, 8, ["label", "icon-color"])])) : e("", !0)
|
|
95
|
+
]), c("div", { class: n(["media-selector-previewer", { opened: h.value }]) }, [i.modelValue ? (r(), o("img", {
|
|
96
96
|
key: 0,
|
|
97
|
-
src:
|
|
98
|
-
}, null, 8,
|
|
97
|
+
src: i.modelValue.base64
|
|
98
|
+
}, null, 8, Y)) : e("", !0)], 2)])])]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["label", "required"]));
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region src/components/inputs/MediaSelector.vue?vue&type=i18n&index=0&lang.yaml
|
|
105
|
-
function
|
|
105
|
+
function Z(e) {
|
|
106
106
|
let t = e;
|
|
107
107
|
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
108
108
|
locale: "",
|
|
@@ -180,69 +180,69 @@ function Q(e) {
|
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region src/components/inputs/MediaSelector.vue
|
|
183
|
-
typeof
|
|
183
|
+
typeof Z == "function" && Z(X);
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region src/components/skeletons/GiftCardSkeleton.vue?vue&type=script&setup=true&lang.ts
|
|
186
|
-
var
|
|
186
|
+
var Q = { class: "gift-card-skeleton" }, ce = { class: "gift-card-skeleton-form" }, le = /*#__PURE__*/ k(/* @__PURE__ */ a({
|
|
187
187
|
__name: "GiftCardSkeleton",
|
|
188
188
|
setup(e) {
|
|
189
|
-
return (e, t) => (
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
189
|
+
return (e, t) => (r(), o("div", Q, [c("div", ce, [
|
|
190
|
+
_(R),
|
|
191
|
+
_(R),
|
|
192
|
+
_(R),
|
|
193
|
+
_(R),
|
|
194
|
+
_(R, { "is-text-area": "" }),
|
|
195
|
+
_(L, { height: "44px" })
|
|
196
196
|
])]));
|
|
197
197
|
}
|
|
198
|
-
}), [["__scopeId", "data-v-952c68dd"]]),
|
|
198
|
+
}), [["__scopeId", "data-v-952c68dd"]]), ue = { class: "konnectio-accept-terms" }, de = /*#__PURE__*/ k(/* @__PURE__ */ a({
|
|
199
199
|
__name: "_",
|
|
200
200
|
props: {
|
|
201
201
|
content: {},
|
|
202
202
|
buttonLabel: {}
|
|
203
203
|
},
|
|
204
204
|
setup(e) {
|
|
205
|
-
let { t
|
|
206
|
-
return (
|
|
205
|
+
let { t } = u(), n = E(!1);
|
|
206
|
+
return (i, a) => (r(), o("div", ue, [_(l(g), {
|
|
207
207
|
keypath: "general.termsAndConditionsNotice",
|
|
208
208
|
tag: "span",
|
|
209
209
|
scope: "global"
|
|
210
210
|
}, {
|
|
211
|
-
button:
|
|
212
|
-
terms:
|
|
211
|
+
button: C(() => [c("i", null, "\"" + v(e.buttonLabel) + "\"", 1)]),
|
|
212
|
+
terms: C(() => [c("a", {
|
|
213
213
|
class: "konnectio-accept-terms-link",
|
|
214
214
|
target: "_blank",
|
|
215
|
-
onClick:
|
|
216
|
-
}, [
|
|
215
|
+
onClick: a[0] ||= w((e) => n.value = !0, ["prevent"])
|
|
216
|
+
}, [c("span", null, v(l(t)("general.termsAndConditions")), 1)])]),
|
|
217
217
|
_: 1
|
|
218
|
-
}),
|
|
219
|
-
modelValue:
|
|
220
|
-
"onUpdate:modelValue":
|
|
218
|
+
}), _(V, {
|
|
219
|
+
modelValue: n.value,
|
|
220
|
+
"onUpdate:modelValue": a[1] ||= (e) => n.value = e,
|
|
221
221
|
description: e.content
|
|
222
222
|
}, null, 8, ["modelValue", "description"])]));
|
|
223
223
|
}
|
|
224
|
-
}), [["__scopeId", "data-v-93ef3159"]]),
|
|
224
|
+
}), [["__scopeId", "data-v-93ef3159"]]), fe = /* @__PURE__ */ a({
|
|
225
225
|
__name: "GiftCard",
|
|
226
226
|
setup(e) {
|
|
227
|
-
let { t } =
|
|
228
|
-
return (e,
|
|
229
|
-
content:
|
|
230
|
-
"button-label":
|
|
227
|
+
let { t: n } = u(), i = B();
|
|
228
|
+
return (e, a) => (r(), t(de, {
|
|
229
|
+
content: l(i).termsOfService,
|
|
230
|
+
"button-label": l(n)("giftCard.orderGiftCard")
|
|
231
231
|
}, null, 8, ["content", "button-label"]));
|
|
232
232
|
}
|
|
233
|
-
}),
|
|
233
|
+
}), pe = ["data-layout"], me = { id: "konnectio-gift-card-wrapper" }, he = { id: "konnectio-gift-card-title" }, ge = { id: "konnectio-gift-card-content" }, _e = { id: "konnectio-gift-card-payment" }, ve = ["innerHTML"], ye = { key: 0 }, be = {
|
|
234
234
|
key: 0,
|
|
235
235
|
id: "konnectio-select-place-type"
|
|
236
|
-
},
|
|
236
|
+
}, $ = { class: /*@__PURE__*/ n(["konnectio-label", "required"]) }, xe = { id: "konnectio-select-place-type-input" }, Se = ["innerHTML"], Ce = {
|
|
237
237
|
key: 0,
|
|
238
238
|
id: "konnectio-gift-card-order"
|
|
239
|
-
},
|
|
239
|
+
}, we = { class: "konnectio-panel" }, Te = {
|
|
240
240
|
key: 1,
|
|
241
241
|
id: "konnectio-gift-card-remarks"
|
|
242
|
-
},
|
|
242
|
+
}, Ee = {
|
|
243
243
|
key: 2,
|
|
244
244
|
id: "konnectio-gift-card-order-minimal"
|
|
245
|
-
},
|
|
245
|
+
}, De = { id: "konnectio-gift-card-recaptcha" }, Oe = /*#__PURE__*/ k(/* @__PURE__ */ a({
|
|
246
246
|
name: "GiftCardLayout",
|
|
247
247
|
__name: "GiftCard",
|
|
248
248
|
props: {
|
|
@@ -251,42 +251,42 @@ var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form
|
|
|
251
251
|
placeType: {},
|
|
252
252
|
styling: {}
|
|
253
253
|
},
|
|
254
|
-
setup(
|
|
255
|
-
let
|
|
254
|
+
setup(n) {
|
|
255
|
+
let a = n, g = T(() => ({
|
|
256
256
|
panelMaxWidth: "800px",
|
|
257
|
-
...
|
|
258
|
-
})), { t:
|
|
259
|
-
return
|
|
260
|
-
|
|
261
|
-
}),
|
|
262
|
-
let e =
|
|
257
|
+
...a.styling
|
|
258
|
+
})), { t: b } = u(), { name: x, email: S, phone: w, value: E, remark: D, showValue: O, quantity: k, media: ne, placeId: L, placeType: R, showFormPage: z, showPaymentPage: V, showConfirmationPage: H, places: U, hasFilledForm: W, hasForcedPlaceType: G, isWaitingForResponse: K } = y(B()), { initialize: q, orderGiftCard: J, fetchMetadata: Y } = B(), { isRecaptchaEnabled: X, currency: Z, hasError: Q } = y(te());
|
|
259
|
+
return f(R, () => {
|
|
260
|
+
L.value = void 0;
|
|
261
|
+
}), i(() => {
|
|
262
|
+
let e = a.placeType ? parseInt(a.placeType) : void 0;
|
|
263
263
|
q(e);
|
|
264
|
-
}), (
|
|
265
|
-
default:
|
|
266
|
-
default:
|
|
267
|
-
"access-token":
|
|
268
|
-
"data-layout":
|
|
269
|
-
callback:
|
|
264
|
+
}), (i, a) => (r(), t(re, { styling: g.value }, {
|
|
265
|
+
default: C(() => [(r(), t(ee, null, {
|
|
266
|
+
default: C(() => [_(F, {
|
|
267
|
+
"access-token": n.accessToken,
|
|
268
|
+
"data-layout": n.layout,
|
|
269
|
+
callback: l(Y)
|
|
270
270
|
}, {
|
|
271
|
-
default:
|
|
271
|
+
default: C(() => [l(Q) ? (r(), t(I, {
|
|
272
272
|
key: 1,
|
|
273
273
|
title: "Unable to render Gift card module",
|
|
274
274
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
275
|
-
})) : (
|
|
275
|
+
})) : (r(), o("div", {
|
|
276
276
|
key: 0,
|
|
277
277
|
id: "konnectio-gift-card-module",
|
|
278
|
-
"data-layout":
|
|
279
|
-
}, [
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
278
|
+
"data-layout": n.layout
|
|
279
|
+
}, [c("div", me, [
|
|
280
|
+
c("h2", he, [c("span", null, v(l(b)("giftCard.title")), 1)]),
|
|
281
|
+
c("div", ge, [
|
|
282
|
+
p(c("div", _e, [_(se)], 512), [[m, l(V)]]),
|
|
283
|
+
p(c("div", null, [c("p", {
|
|
284
284
|
id: "konnectio-gift-card-description",
|
|
285
|
-
innerHTML:
|
|
286
|
-
}, null, 8,
|
|
287
|
-
|
|
288
|
-
modelValue:
|
|
289
|
-
"onUpdate:modelValue":
|
|
285
|
+
innerHTML: l(b)("giftCard.description")
|
|
286
|
+
}, null, 8, ve), c("form", null, [
|
|
287
|
+
l(G) ? e("", !0) : (r(), o("div", ye, [l(U) ? (r(), o("div", be, [c("label", $, [c("span", null, v(l(b)("giftCard.selectType")), 1)]), c("div", xe, [c("ul", null, [(r(!0), o(d, null, s(l(U), (e, t) => (r(), o("li", { key: t }, [_(oe, {
|
|
288
|
+
modelValue: l(R),
|
|
289
|
+
"onUpdate:modelValue": a[0] ||= (e) => h(R) ? R.value = e : null,
|
|
290
290
|
type: "radio",
|
|
291
291
|
name: "placeType",
|
|
292
292
|
val: t,
|
|
@@ -295,12 +295,12 @@ var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form
|
|
|
295
295
|
"modelValue",
|
|
296
296
|
"val",
|
|
297
297
|
"label"
|
|
298
|
-
])]))), 128))]),
|
|
298
|
+
])]))), 128))]), l(U)[l(R)] && l(U)[l(R)].data.length > 1 ? (r(), t(M, {
|
|
299
299
|
key: 0,
|
|
300
|
-
modelValue:
|
|
301
|
-
"onUpdate:modelValue":
|
|
302
|
-
placeholder:
|
|
303
|
-
options:
|
|
300
|
+
modelValue: l(L),
|
|
301
|
+
"onUpdate:modelValue": a[1] ||= (e) => h(L) ? L.value = e : null,
|
|
302
|
+
placeholder: l(b)("giftCard.selectPlacePlaceholder"),
|
|
303
|
+
options: l(U)[l(R)].data,
|
|
304
304
|
labelKey: "name",
|
|
305
305
|
valueKey: "id",
|
|
306
306
|
required: ""
|
|
@@ -308,58 +308,58 @@ var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form
|
|
|
308
308
|
"modelValue",
|
|
309
309
|
"placeholder",
|
|
310
310
|
"options"
|
|
311
|
-
])) :
|
|
312
|
-
|
|
313
|
-
modelValue:
|
|
314
|
-
"onUpdate:modelValue":
|
|
311
|
+
])) : e("", !0)])])) : (r(), t(P, { key: 1 }))])),
|
|
312
|
+
_(A, {
|
|
313
|
+
modelValue: l(x),
|
|
314
|
+
"onUpdate:modelValue": a[2] ||= (e) => h(x) ? x.value = e : null,
|
|
315
315
|
type: "text",
|
|
316
316
|
name: "name",
|
|
317
317
|
autocomplete: "name",
|
|
318
|
-
label:
|
|
318
|
+
label: l(b)("giftCard.name"),
|
|
319
319
|
icon: "user-alt",
|
|
320
|
-
placeholder:
|
|
320
|
+
placeholder: l(b)("giftCard.namePlaceholder"),
|
|
321
321
|
required: ""
|
|
322
322
|
}, null, 8, [
|
|
323
323
|
"modelValue",
|
|
324
324
|
"label",
|
|
325
325
|
"placeholder"
|
|
326
326
|
]),
|
|
327
|
-
|
|
328
|
-
modelValue:
|
|
329
|
-
"onUpdate:modelValue":
|
|
327
|
+
_(A, {
|
|
328
|
+
modelValue: l(S),
|
|
329
|
+
"onUpdate:modelValue": a[3] ||= (e) => h(S) ? S.value = e : null,
|
|
330
330
|
type: "email",
|
|
331
331
|
name: "email",
|
|
332
332
|
autocomplete: "email",
|
|
333
|
-
label:
|
|
333
|
+
label: l(b)("giftCard.email"),
|
|
334
334
|
icon: "at",
|
|
335
|
-
placeholder:
|
|
335
|
+
placeholder: l(b)("giftCard.emailPlaceholder"),
|
|
336
336
|
required: ""
|
|
337
337
|
}, null, 8, [
|
|
338
338
|
"modelValue",
|
|
339
339
|
"label",
|
|
340
340
|
"placeholder"
|
|
341
341
|
]),
|
|
342
|
-
|
|
343
|
-
modelValue:
|
|
344
|
-
"onUpdate:modelValue":
|
|
342
|
+
_(ie, {
|
|
343
|
+
modelValue: l(w),
|
|
344
|
+
"onUpdate:modelValue": a[4] ||= (e) => h(w) ? w.value = e : null,
|
|
345
345
|
icon: "phone-office",
|
|
346
|
-
label:
|
|
347
|
-
placeholder:
|
|
346
|
+
label: l(b)("giftCard.phone"),
|
|
347
|
+
placeholder: l(b)("giftCard.phonePlaceholder"),
|
|
348
348
|
required: ""
|
|
349
349
|
}, null, 8, [
|
|
350
350
|
"modelValue",
|
|
351
351
|
"label",
|
|
352
352
|
"placeholder"
|
|
353
353
|
]),
|
|
354
|
-
|
|
355
|
-
modelValue:
|
|
356
|
-
"onUpdate:modelValue":
|
|
354
|
+
_(A, {
|
|
355
|
+
modelValue: l(E),
|
|
356
|
+
"onUpdate:modelValue": a[5] ||= (e) => h(E) ? E.value = e : null,
|
|
357
357
|
type: "number",
|
|
358
358
|
name: "value",
|
|
359
|
-
label:
|
|
359
|
+
label: l(b)("giftCard.value"),
|
|
360
360
|
icon: "money-bill",
|
|
361
|
-
placeholder:
|
|
362
|
-
suffix:
|
|
361
|
+
placeholder: l(b)("giftCard.valuePlaceholder"),
|
|
362
|
+
suffix: l(Z),
|
|
363
363
|
required: ""
|
|
364
364
|
}, null, 8, [
|
|
365
365
|
"modelValue",
|
|
@@ -367,77 +367,77 @@ var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form
|
|
|
367
367
|
"placeholder",
|
|
368
368
|
"suffix"
|
|
369
369
|
]),
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
modelValue:
|
|
374
|
-
"onUpdate:modelValue":
|
|
375
|
-
label:
|
|
370
|
+
e("", !0),
|
|
371
|
+
e("", !0),
|
|
372
|
+
_(j, {
|
|
373
|
+
modelValue: l(k),
|
|
374
|
+
"onUpdate:modelValue": a[8] ||= (e) => h(k) ? k.value = e : null,
|
|
375
|
+
label: l(b)("giftCard.quantity"),
|
|
376
376
|
icon: "gift-card",
|
|
377
377
|
required: ""
|
|
378
378
|
}, null, 8, ["modelValue", "label"])
|
|
379
|
-
])], 512), [[
|
|
380
|
-
|
|
379
|
+
])], 512), [[m, l(z)]]),
|
|
380
|
+
p(c("div", null, [c("div", { innerHTML: l(b)("giftCard.thankYou") }, null, 8, Se)], 512), [[m, l(H)]])
|
|
381
381
|
]),
|
|
382
|
-
|
|
383
|
-
label:
|
|
382
|
+
n.layout !== "minimal" && l(z) ? (r(), o("div", Ce, [c("div", we, [_(N, {
|
|
383
|
+
label: l(b)("giftCard.orderGiftCard"),
|
|
384
384
|
"full-width": !0,
|
|
385
|
-
disabled: !
|
|
386
|
-
"is-loading":
|
|
387
|
-
"onUpdate:isLoading":
|
|
388
|
-
onClickEvent:
|
|
385
|
+
disabled: !l(W),
|
|
386
|
+
"is-loading": l(K),
|
|
387
|
+
"onUpdate:isLoading": a[9] ||= (e) => h(K) ? K.value = e : null,
|
|
388
|
+
onClickEvent: l(J)
|
|
389
389
|
}, null, 8, [
|
|
390
390
|
"label",
|
|
391
391
|
"disabled",
|
|
392
392
|
"is-loading",
|
|
393
393
|
"onClickEvent"
|
|
394
|
-
])])])) :
|
|
395
|
-
|
|
396
|
-
modelValue:
|
|
397
|
-
"onUpdate:modelValue":
|
|
394
|
+
])])])) : e("", !0),
|
|
395
|
+
l(z) ? (r(), o("div", Te, [_(A, {
|
|
396
|
+
modelValue: l(D),
|
|
397
|
+
"onUpdate:modelValue": a[10] ||= (e) => h(D) ? D.value = e : null,
|
|
398
398
|
type: "textarea",
|
|
399
399
|
name: "remark",
|
|
400
|
-
label:
|
|
400
|
+
label: l(b)("giftCard.remark"),
|
|
401
401
|
icon: "info-circle",
|
|
402
|
-
placeholder:
|
|
402
|
+
placeholder: l(b)("giftCard.remarkPlaceholder")
|
|
403
403
|
}, null, 8, [
|
|
404
404
|
"modelValue",
|
|
405
405
|
"label",
|
|
406
406
|
"placeholder"
|
|
407
|
-
])])) :
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
label:
|
|
407
|
+
])])) : e("", !0),
|
|
408
|
+
l(z) ? (r(), o("div", Ee, [
|
|
409
|
+
_(N, {
|
|
410
|
+
label: l(b)("giftCard.orderGiftCard"),
|
|
411
411
|
"full-width": !0,
|
|
412
|
-
disabled: !
|
|
412
|
+
disabled: !l(W),
|
|
413
413
|
"data-test": "orderGiftCard",
|
|
414
|
-
"is-loading":
|
|
415
|
-
"onUpdate:isLoading":
|
|
416
|
-
onClickEvent:
|
|
414
|
+
"is-loading": l(K),
|
|
415
|
+
"onUpdate:isLoading": a[11] ||= (e) => h(K) ? K.value = e : null,
|
|
416
|
+
onClickEvent: l(J)
|
|
417
417
|
}, null, 8, [
|
|
418
418
|
"label",
|
|
419
419
|
"disabled",
|
|
420
420
|
"is-loading",
|
|
421
421
|
"onClickEvent"
|
|
422
422
|
]),
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
])) :
|
|
426
|
-
])], 8,
|
|
423
|
+
c("div", null, [a[12] ||= c("div", { class: "konnectio-divider" }, null, -1), _(fe)]),
|
|
424
|
+
p(c("div", De, [_(ae)], 512), [[m, l(X)]])
|
|
425
|
+
])) : e("", !0)
|
|
426
|
+
])], 8, pe))]),
|
|
427
427
|
_: 1
|
|
428
428
|
}, 8, [
|
|
429
429
|
"access-token",
|
|
430
430
|
"data-layout",
|
|
431
431
|
"callback"
|
|
432
432
|
])]),
|
|
433
|
-
fallback:
|
|
433
|
+
fallback: C(() => [_(le)]),
|
|
434
434
|
_: 1
|
|
435
435
|
}))]),
|
|
436
436
|
_: 1
|
|
437
437
|
}, 8, ["styling"]));
|
|
438
438
|
}
|
|
439
|
-
}), [["__scopeId", "data-v-5baf85ce"]]),
|
|
440
|
-
e.
|
|
439
|
+
}), [["__scopeId", "data-v-5baf85ce"]]), ke = S(), Ae = x("konnectio-gift-card", Oe, (e) => {
|
|
440
|
+
e.use(D), e.use(ke), e.use(b), e.use(z);
|
|
441
441
|
});
|
|
442
442
|
//#endregion
|
|
443
|
-
export {
|
|
443
|
+
export { Ae as default };
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
package/dist/gift-card.js.gz
CHANGED
|
Binary file
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as e, l as t, t as n, w as r, yt as i } from "./i18n-DwFTw_rF.js";
|
|
2
|
+
import { E as a, F as o, H as s, N as c, T as l, dt as u, j as d, ot as f, tt as p } from "./SelectField-5RVfSG15.js";
|
|
3
3
|
//#region src/store/giftCard.ts
|
|
4
|
-
var m =
|
|
5
|
-
let { pay:
|
|
4
|
+
var m = e("giftCard", () => {
|
|
5
|
+
let { pay: e } = d(), { display: m } = c(), { metaData: h, currencyId: g, hasError: _ } = t(a()), v = a(), y = i(p.InitialState), b = u("konnectio_name", "", void 0, { serializer: f.string }), x = u("konnectio_email", "", void 0, { serializer: f.string }), S = u("konnectio_phone", "", void 0, { serializer: f.string }), C = i(""), w = i(1), T = i(!0), E = i(""), D = i({
|
|
6
6
|
base64: "",
|
|
7
7
|
type: "",
|
|
8
8
|
name: ""
|
|
9
|
-
}), O =
|
|
9
|
+
}), O = i(void 0), k = i(0), A = i(!1), j = i(0), M = r(() => v.metaData.hotels[0]), N = r(() => M.value.termsOfService ? M.value.termsOfService : ""), P = r(() => y.value === p.InitialState || y.value === p.WaitingForResponse), F = r(() => y.value === p.ReadyToPay), I = r(() => y.value === p.PaymentSuccess), L = r(() => {
|
|
10
10
|
let e = {
|
|
11
11
|
1: {
|
|
12
|
-
label:
|
|
12
|
+
label: n.t("giftCard.hotelType"),
|
|
13
13
|
data: []
|
|
14
14
|
},
|
|
15
15
|
2: {
|
|
16
|
-
label:
|
|
16
|
+
label: n.t("giftCard.restaurantType"),
|
|
17
17
|
data: []
|
|
18
18
|
}
|
|
19
19
|
}, t = h.value.hotels[0].places;
|
|
20
20
|
return t && t.forEach((t) => {
|
|
21
21
|
e[t.placeType].data.push(t);
|
|
22
22
|
}), Object.fromEntries(Object.entries(e).filter(([, e]) => e.data.length > 0));
|
|
23
|
-
}), R =
|
|
23
|
+
}), R = r(() => j.value !== 0), z = r(() => {
|
|
24
24
|
let e;
|
|
25
25
|
if (R.value) e = L.value[j.value].data[0];
|
|
26
26
|
else if (k.value !== 0) {
|
|
@@ -30,24 +30,24 @@ var m = n("giftCard", () => {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
return e;
|
|
33
|
-
}), B =
|
|
33
|
+
}), B = r(() => !(!b.value || !x.value || !(S.value.length >= 5) || !C.value || z.value === void 0)), V = r(() => !(y.value === p.InitialState && A.value)), H = r(() => !!(y.value === p.WaitingForResponse && A.value));
|
|
34
34
|
async function U() {
|
|
35
35
|
try {
|
|
36
|
-
let e = (await l().get("/gift-card/metadata", { params: { language:
|
|
36
|
+
let e = (await l().get("/gift-card/metadata", { params: { language: s() } })).data;
|
|
37
37
|
e.success === void 0 ? _.value = !1 : _.value = !e.success, h.value = e;
|
|
38
38
|
} catch {
|
|
39
39
|
m({
|
|
40
|
-
message:
|
|
40
|
+
message: n.t("alert.error.couldntFetchMetadata"),
|
|
41
41
|
type: "warning"
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
async function W() {
|
|
46
|
-
y.value =
|
|
46
|
+
y.value = p.WaitingForResponse, A.value = !0, await l().post("/gift-card/create", {
|
|
47
47
|
termsOfserviceURL: window.location.origin,
|
|
48
48
|
checkoutUrl: window.location.origin,
|
|
49
49
|
currencyID: g.value,
|
|
50
|
-
language:
|
|
50
|
+
language: s(),
|
|
51
51
|
amount: C.value,
|
|
52
52
|
quantity: w.value,
|
|
53
53
|
freeText: E.value,
|
|
@@ -55,15 +55,15 @@ var m = n("giftCard", () => {
|
|
|
55
55
|
contactName: b.value,
|
|
56
56
|
contactEmail: x.value,
|
|
57
57
|
contactPhone: S.value,
|
|
58
|
-
imageBase64:
|
|
58
|
+
imageBase64: o(D.value.base64),
|
|
59
59
|
imageName: D.value.name,
|
|
60
60
|
imageFormat: D.value.type,
|
|
61
61
|
placeType: z.value ? z.value.placeType : void 0,
|
|
62
62
|
placeID: z.value ? z.value.id : void 0
|
|
63
|
-
}).then((
|
|
64
|
-
y.value =
|
|
63
|
+
}).then((t) => {
|
|
64
|
+
y.value = p.ReadyToPay, A.value = !1, e({
|
|
65
65
|
callback: () => console.log("Callback!"),
|
|
66
|
-
response:
|
|
66
|
+
response: t.data
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
}
|
|
Binary file
|
|
Binary file
|