@konnectio/core 4.11.2 → 4.11.4
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-CrGPD8ma.js → ActionField-uvrQkuh0.js} +16 -17
- package/dist/ActionField-uvrQkuh0.js.br +0 -0
- package/dist/ActionField-uvrQkuh0.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-CKpPPNyV.js → AvailabilitySkeleton-BnOSMGJe.js} +2374 -2900
- package/dist/AvailabilitySkeleton-BnOSMGJe.js.br +0 -0
- package/dist/AvailabilitySkeleton-BnOSMGJe.js.gz +0 -0
- package/dist/{CheckoutWindow-W80b2grC.js → CheckoutWindow-C81SaALY.js} +579 -655
- package/dist/CheckoutWindow-C81SaALY.js.br +0 -0
- package/dist/CheckoutWindow-C81SaALY.js.gz +0 -0
- package/dist/{ErrorMessage-fmvrjZrE.js → ErrorMessage-CoLcli9h.js} +12 -14
- package/dist/ErrorMessage-CoLcli9h.js.br +0 -0
- package/dist/{ErrorMessage-fmvrjZrE.js.gz → ErrorMessage-CoLcli9h.js.gz} +0 -0
- package/dist/{EventAvailabilityForm-BX0CUyYU.js → EventAvailabilityForm-q1YPg-bW.js} +29 -30
- package/dist/EventAvailabilityForm-q1YPg-bW.js.br +0 -0
- package/dist/EventAvailabilityForm-q1YPg-bW.js.gz +0 -0
- package/dist/{Field-DsFLUyHP.js → Field-DIFm-jDk.js} +6 -7
- package/dist/Field-DIFm-jDk.js.br +0 -0
- package/dist/Field-DIFm-jDk.js.gz +0 -0
- package/dist/HotelAvailabilityForm-B8RzSM0k.js +312 -0
- package/dist/HotelAvailabilityForm-B8RzSM0k.js.br +0 -0
- package/dist/HotelAvailabilityForm-B8RzSM0k.js.gz +0 -0
- package/dist/{SelectField-__FvhjFN.js → SelectField-C9lJ8eBd.js} +3739 -3133
- package/dist/SelectField-C9lJ8eBd.js.br +0 -0
- package/dist/SelectField-C9lJ8eBd.js.gz +0 -0
- package/dist/{TermsOfService-XhYHiCia.js → TermsOfService-0719ZgMM.js} +5 -6
- package/dist/TermsOfService-0719ZgMM.js.br +0 -0
- package/dist/TermsOfService-0719ZgMM.js.gz +1 -0
- package/dist/_-0PVid2uc.js +24 -0
- package/dist/_-0PVid2uc.js.br +0 -0
- package/dist/_-0PVid2uc.js.gz +7 -0
- package/dist/availability.js +24 -25
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +57 -62
- 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 +15 -16
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/{dist-ChCkH-cE.js → dist-B_Ox_TrT.js} +705 -756
- package/dist/dist-B_Ox_TrT.js.br +0 -0
- package/dist/dist-B_Ox_TrT.js.gz +0 -0
- package/dist/{dist-CqcX4eCU.js → dist-CFPG9IfN.js} +168 -139
- package/dist/dist-CFPG9IfN.js.br +0 -0
- package/dist/dist-CFPG9IfN.js.gz +0 -0
- package/dist/event.js +334 -344
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +42 -43
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +261 -166
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/giftCard-CAPeGeXI.js +134 -0
- package/dist/giftCard-CAPeGeXI.js.br +0 -0
- package/dist/giftCard-CAPeGeXI.js.gz +0 -0
- package/dist/hotel.js +983 -1145
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{i18n-BU9Enb5i.js → i18n-Dq3VKG7w.js} +4004 -3647
- package/dist/i18n-Dq3VKG7w.js.br +0 -0
- package/dist/i18n-Dq3VKG7w.js.gz +0 -0
- package/dist/polyfill.js +905 -818
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-QGRDbDUS.js} +2 -3
- package/dist/rolldown-runtime-QGRDbDUS.js.br +0 -0
- package/dist/rolldown-runtime-QGRDbDUS.js.gz +0 -0
- package/dist/style-B4cGytfi.js +1284 -0
- package/dist/style-B4cGytfi.js.br +0 -0
- package/dist/style-B4cGytfi.js.gz +0 -0
- package/dist-wix/availability.js +42 -34
- package/dist-wix/event.js +54 -46
- package/dist-wix/gift-card-validation.js +39 -31
- package/dist-wix/gift-card.js +43 -35
- package/dist-wix/hotel.js +54 -46
- package/package.json +32 -32
- package/dist/ActionField-CrGPD8ma.js.br +0 -0
- package/dist/ActionField-CrGPD8ma.js.gz +0 -0
- package/dist/AvailabilitySkeleton-CKpPPNyV.js.br +0 -0
- package/dist/AvailabilitySkeleton-CKpPPNyV.js.gz +0 -0
- package/dist/CheckoutWindow-W80b2grC.js.br +0 -0
- package/dist/CheckoutWindow-W80b2grC.js.gz +0 -0
- package/dist/ErrorMessage-fmvrjZrE.js.br +0 -0
- package/dist/EventAvailabilityForm-BX0CUyYU.js.br +0 -0
- package/dist/EventAvailabilityForm-BX0CUyYU.js.gz +0 -0
- package/dist/Field-DsFLUyHP.js.br +0 -0
- package/dist/Field-DsFLUyHP.js.gz +0 -0
- package/dist/HotelAvailabilityForm-_wN0A0VR.js +0 -322
- package/dist/HotelAvailabilityForm-_wN0A0VR.js.br +0 -0
- package/dist/HotelAvailabilityForm-_wN0A0VR.js.gz +0 -0
- package/dist/SelectField-__FvhjFN.js.br +0 -0
- package/dist/SelectField-__FvhjFN.js.gz +0 -0
- package/dist/TermsOfService-XhYHiCia.js.br +0 -0
- package/dist/TermsOfService-XhYHiCia.js.gz +0 -1
- package/dist/_-Bi3jyl9S.js +0 -25
- package/dist/_-Bi3jyl9S.js.br +0 -0
- package/dist/_-Bi3jyl9S.js.gz +0 -0
- package/dist/dist-ChCkH-cE.js.br +0 -0
- package/dist/dist-ChCkH-cE.js.gz +0 -0
- package/dist/dist-CqcX4eCU.js.br +0 -0
- package/dist/dist-CqcX4eCU.js.gz +0 -0
- package/dist/giftCard-BpWe7WsA.js +0 -114
- package/dist/giftCard-BpWe7WsA.js.br +0 -0
- package/dist/giftCard-BpWe7WsA.js.gz +0 -0
- package/dist/i18n-BU9Enb5i.js.br +0 -0
- package/dist/i18n-BU9Enb5i.js.gz +0 -0
- package/dist/rolldown-runtime-B0aSnxlc.js.br +0 -0
- package/dist/rolldown-runtime-B0aSnxlc.js.gz +0 -5
- package/dist/style-CcIo1t4N.js +0 -1711
- package/dist/style-CcIo1t4N.js.br +0 -0
- package/dist/style-CcIo1t4N.js.gz +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import { t as O } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
|
|
12
|
-
var
|
|
1
|
+
import { A as e, D as t, Dt as n, E as r, L as i, M as a, N as o, Ot as s, P as c, Q as l, S as u, _t as d, a as f, et as p, ft as m, h, ht as g, i as _, j as v, jt as y, mt as b, n as x, nt as S, o as C, p as w, w as T, xt as E, z as D } from "./i18n-Dq3VKG7w.js";
|
|
2
|
+
import { t as O } from "./style-B4cGytfi.js";
|
|
3
|
+
import { t as k } from "./giftCard-CAPeGeXI.js";
|
|
4
|
+
import { $ as ee, C as te, _ as ne, at as re, b as A, g as j, h as M, j as ie, n as N, r as ae, t as oe, v as se, w as ce } from "./SelectField-C9lJ8eBd.js";
|
|
5
|
+
import { a as le, c as ue, i as P, l as de, r as fe, s as pe, t as me } from "./CheckoutWindow-C81SaALY.js";
|
|
6
|
+
import { t as he } from "./_-0PVid2uc.js";
|
|
7
|
+
import { n as F, t as I } from "./Field-DIFm-jDk.js";
|
|
8
|
+
import { t as ge } from "./ErrorMessage-CoLcli9h.js";
|
|
9
|
+
import { t as L } from "./TermsOfService-0719ZgMM.js";
|
|
10
|
+
import { t as R } from "./dist-B_Ox_TrT.js";
|
|
11
|
+
// src/components/inputs/MediaSelector.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
+
var z = { class: "media-selector" }, B = ["accept"], V = { class: "media-selector-wrapper" }, H = { class: "media-selector-tools" }, _e = { key: 0 }, U = { key: 1 }, W = { key: 2 }, ve = ["src"], ye = /*@__PURE__*/ D({
|
|
13
13
|
__name: "MediaSelector",
|
|
14
14
|
props: {
|
|
15
15
|
modelValue: {},
|
|
@@ -22,20 +22,20 @@ var L = { class: "media-selector" }, R = ["accept"], z = { class: "media-selecto
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:modelValue"],
|
|
25
|
-
setup(
|
|
26
|
-
let
|
|
25
|
+
setup(t, { emit: r }) {
|
|
26
|
+
let l = r, u = t, { t: d } = f(), { display: m } = ie(), h = E(), g = e(() => u.modelValue.base64 !== "");
|
|
27
27
|
function _(e) {
|
|
28
|
-
|
|
28
|
+
l("update:modelValue", e);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function y() {
|
|
31
31
|
_({
|
|
32
32
|
base64: "",
|
|
33
33
|
name: "",
|
|
34
34
|
type: ""
|
|
35
|
-
}),
|
|
35
|
+
}), h.value && (h.value.value = "");
|
|
36
36
|
}
|
|
37
37
|
function x() {
|
|
38
|
-
|
|
38
|
+
h.value && h.value.click();
|
|
39
39
|
}
|
|
40
40
|
function S(e, t) {
|
|
41
41
|
let [n, r] = [e.name, e.type], i = new FileReader();
|
|
@@ -47,62 +47,61 @@ var L = { class: "media-selector" }, R = ["accept"], z = { class: "media-selecto
|
|
|
47
47
|
name: n,
|
|
48
48
|
type: r
|
|
49
49
|
});
|
|
50
|
-
} else
|
|
51
|
-
message:
|
|
50
|
+
} else m({
|
|
51
|
+
message: d("imageUploadError"),
|
|
52
52
|
type: "error"
|
|
53
53
|
});
|
|
54
54
|
}, i.readAsDataURL(e);
|
|
55
55
|
}
|
|
56
56
|
async function C() {
|
|
57
57
|
let e;
|
|
58
|
-
(e =
|
|
58
|
+
(e = h.value.files) instanceof FileList && S(e[0], _);
|
|
59
59
|
}
|
|
60
|
-
return (e, r) => (
|
|
61
|
-
label:
|
|
62
|
-
required:
|
|
60
|
+
return (e, r) => (p(), a(M, {
|
|
61
|
+
label: t.label,
|
|
62
|
+
required: t.required,
|
|
63
63
|
type: "media"
|
|
64
64
|
}, {
|
|
65
|
-
default:
|
|
65
|
+
default: b(() => [v("div", z, [v("input", {
|
|
66
66
|
ref_key: "fileInput",
|
|
67
|
-
ref:
|
|
67
|
+
ref: h,
|
|
68
68
|
type: "file",
|
|
69
69
|
class: "hidden",
|
|
70
|
-
accept:
|
|
70
|
+
accept: t.validation,
|
|
71
71
|
single: "",
|
|
72
72
|
onChange: r[0] ||= (e) => C()
|
|
73
|
-
}, null, 40,
|
|
74
|
-
g.value ? o("", !0) : (
|
|
75
|
-
label:
|
|
73
|
+
}, null, 40, B), v("div", V, [v("ul", H, [
|
|
74
|
+
g.value ? o("", !0) : (p(), c("li", _e, [i(j, {
|
|
75
|
+
label: n(d)("uploadFile"),
|
|
76
76
|
type: "button",
|
|
77
77
|
icon: "upload",
|
|
78
|
-
"icon-color":
|
|
78
|
+
"icon-color": t.iconColor,
|
|
79
79
|
onClickEvent: r[1] ||= (e) => x()
|
|
80
80
|
}, null, 8, ["label", "icon-color"])])),
|
|
81
|
-
g.value ? (
|
|
82
|
-
label:
|
|
81
|
+
g.value ? (p(), c("li", U, [i(j, {
|
|
82
|
+
label: n(d)("replaceFile"),
|
|
83
83
|
type: "button",
|
|
84
84
|
icon: "repeat-alt",
|
|
85
|
-
"icon-color":
|
|
85
|
+
"icon-color": t.iconColor,
|
|
86
86
|
onClickEvent: r[2] ||= (e) => x()
|
|
87
87
|
}, null, 8, ["label", "icon-color"])])) : o("", !0),
|
|
88
|
-
g.value ? (
|
|
89
|
-
label:
|
|
88
|
+
g.value ? (p(), c("li", W, [i(j, {
|
|
89
|
+
label: n(d)("removeFile"),
|
|
90
90
|
type: "button",
|
|
91
91
|
icon: "trash-alt",
|
|
92
|
-
"icon-color":
|
|
93
|
-
onClickEvent: r[3] ||= (e) =>
|
|
92
|
+
"icon-color": t.iconColor,
|
|
93
|
+
onClickEvent: r[3] ||= (e) => y()
|
|
94
94
|
}, null, 8, ["label", "icon-color"])])) : o("", !0)
|
|
95
|
-
]),
|
|
95
|
+
]), v("div", { class: s(["media-selector-previewer", { opened: g.value }]) }, [t.modelValue ? (p(), c("img", {
|
|
96
96
|
key: 0,
|
|
97
|
-
src:
|
|
98
|
-
}, null, 8,
|
|
97
|
+
src: t.modelValue.base64
|
|
98
|
+
}, null, 8, ve)) : o("", !0)], 2)])])]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["label", "required"]));
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
function K(e) {
|
|
103
|
+
// src/components/inputs/MediaSelector.vue?vue&type=i18n&index=0&lang.yaml
|
|
104
|
+
function G(e) {
|
|
106
105
|
let t = e;
|
|
107
106
|
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
108
107
|
locale: "",
|
|
@@ -178,71 +177,72 @@ function K(e) {
|
|
|
178
177
|
}
|
|
179
178
|
});
|
|
180
179
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
//#region src/components/skeletons/GiftCardSkeleton.vue?vue&type=script&setup=true&lang.ts
|
|
186
|
-
var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form" }, _e = /*#__PURE__*/ k(/* @__PURE__ */ D({
|
|
180
|
+
// src/components/inputs/MediaSelector.vue
|
|
181
|
+
typeof G == "function" && G(ye);
|
|
182
|
+
// src/components/skeletons/GiftCardSkeleton.vue?vue&type=script&setup=true&lang.ts
|
|
183
|
+
var K = { class: "gift-card-skeleton" }, be = { class: "gift-card-skeleton-form" }, xe = /*#__PURE__*/ A(/* @__PURE__ */ D({
|
|
187
184
|
__name: "GiftCardSkeleton",
|
|
188
185
|
setup(e) {
|
|
189
|
-
return (e, t) => (
|
|
190
|
-
i(
|
|
191
|
-
i(
|
|
192
|
-
i(
|
|
193
|
-
i(
|
|
194
|
-
i(
|
|
195
|
-
i(
|
|
186
|
+
return (e, t) => (p(), c("div", K, [v("div", be, [
|
|
187
|
+
i(I),
|
|
188
|
+
i(I),
|
|
189
|
+
i(I),
|
|
190
|
+
i(I),
|
|
191
|
+
i(I, { "is-text-area": "" }),
|
|
192
|
+
i(F, { height: "44px" })
|
|
196
193
|
])]));
|
|
197
194
|
}
|
|
198
|
-
}), [["__scopeId", "data-v-952c68dd"]]),
|
|
195
|
+
}), [["__scopeId", "data-v-952c68dd"]]), q = { class: "konnectio-accept-terms" }, J = /*#__PURE__*/ A(/* @__PURE__ */ D({
|
|
199
196
|
__name: "_",
|
|
200
197
|
props: {
|
|
201
198
|
content: {},
|
|
202
199
|
buttonLabel: {}
|
|
203
200
|
},
|
|
204
201
|
setup(e) {
|
|
205
|
-
let { t
|
|
206
|
-
return (a, o) => (
|
|
202
|
+
let { t } = f(), r = E(!1);
|
|
203
|
+
return (a, o) => (p(), c("div", q, [i(n(_), {
|
|
207
204
|
keypath: "general.termsAndConditionsNotice",
|
|
208
205
|
tag: "span",
|
|
209
206
|
scope: "global"
|
|
210
207
|
}, {
|
|
211
|
-
button:
|
|
212
|
-
terms:
|
|
208
|
+
button: b(() => [v("i", null, "\"" + y(e.buttonLabel) + "\"", 1)]),
|
|
209
|
+
terms: b(() => [v("a", {
|
|
213
210
|
class: "konnectio-accept-terms-link",
|
|
214
211
|
target: "_blank",
|
|
215
212
|
onClick: o[0] ||= T((e) => r.value = !0, ["prevent"])
|
|
216
|
-
}, [
|
|
213
|
+
}, [v("span", null, y(n(t)("general.termsAndConditions")), 1)])]),
|
|
217
214
|
_: 1
|
|
218
|
-
}), i(
|
|
215
|
+
}), i(L, {
|
|
219
216
|
modelValue: r.value,
|
|
220
217
|
"onUpdate:modelValue": o[1] ||= (e) => r.value = e,
|
|
221
218
|
description: e.content
|
|
222
219
|
}, null, 8, ["modelValue", "description"])]));
|
|
223
220
|
}
|
|
224
|
-
}), [["__scopeId", "data-v-93ef3159"]]),
|
|
221
|
+
}), [["__scopeId", "data-v-93ef3159"]]), Se = /* @__PURE__ */ D({
|
|
225
222
|
__name: "GiftCard",
|
|
226
223
|
setup(e) {
|
|
227
|
-
let { t
|
|
228
|
-
return (e, i) => (
|
|
229
|
-
content:
|
|
230
|
-
"button-label": t
|
|
224
|
+
let { t } = f(), r = k();
|
|
225
|
+
return (e, i) => (p(), a(J, {
|
|
226
|
+
content: n(r).termsOfService,
|
|
227
|
+
"button-label": n(t)("giftCard.orderGiftCard")
|
|
231
228
|
}, null, 8, ["content", "button-label"]));
|
|
232
229
|
}
|
|
233
|
-
}),
|
|
230
|
+
}), Ce = ["data-layout"], we = { id: "konnectio-gift-card-wrapper" }, Te = { id: "konnectio-gift-card-title" }, Ee = { id: "konnectio-gift-card-content" }, De = { id: "konnectio-gift-card-payment" }, Oe = ["innerHTML"], ke = { key: 0 }, Ae = {
|
|
234
231
|
key: 0,
|
|
235
232
|
id: "konnectio-select-place-type"
|
|
236
|
-
},
|
|
233
|
+
}, je = { class: /*@__PURE__*/ s(["konnectio-label", "required"]) }, Me = { id: "konnectio-select-place-type-input" }, Ne = {
|
|
234
|
+
key: 3,
|
|
235
|
+
id: "konnectio-select-delivery-type"
|
|
236
|
+
}, Pe = { class: /*@__PURE__*/ s(["konnectio-label", "required"]) }, Fe = { id: "konnectio-select-delivery-type-input" }, Ie = ["innerHTML"], Le = {
|
|
237
237
|
key: 0,
|
|
238
238
|
id: "konnectio-gift-card-order"
|
|
239
|
-
},
|
|
239
|
+
}, Re = { class: "konnectio-panel" }, ze = {
|
|
240
240
|
key: 1,
|
|
241
241
|
id: "konnectio-gift-card-remarks"
|
|
242
|
-
},
|
|
242
|
+
}, Be = {
|
|
243
243
|
key: 2,
|
|
244
244
|
id: "konnectio-gift-card-order-minimal"
|
|
245
|
-
},
|
|
245
|
+
}, Ve = { id: "konnectio-gift-card-recaptcha" }, He = /*#__PURE__*/ A(/* @__PURE__ */ D({
|
|
246
246
|
name: "GiftCardLayout",
|
|
247
247
|
__name: "GiftCard",
|
|
248
248
|
props: {
|
|
@@ -251,69 +251,72 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
251
251
|
placeType: {},
|
|
252
252
|
styling: {}
|
|
253
253
|
},
|
|
254
|
-
setup(
|
|
255
|
-
let
|
|
254
|
+
setup(s) {
|
|
255
|
+
let _ = s, x = e(() => ({
|
|
256
256
|
panelMaxWidth: "800px",
|
|
257
|
-
...
|
|
258
|
-
})), { t: C } = f(), { name: w, email: T, phone: E, value: D, remark: O, showValue:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
257
|
+
..._.styling
|
|
258
|
+
})), { t: C } = f(), { name: w, email: T, phone: E, value: D, remark: O, showValue: A, quantity: M, media: ie, placeId: F, placeType: I, deliveryOption: L, deliveryName: R, deliveryStreet: z, deliveryZipCode: B, deliveryCity: V, isPhysicalDelivery: H, allowsPhysicalDelivery: _e, shippingFee: U, showFormPage: W, showPaymentPage: ve, showConfirmationPage: ye, places: G, hasFilledForm: K, hasForcedPlaceType: be, isWaitingForResponse: q } = h(k()), { initialize: J, orderGiftCard: He, fetchMetadata: Ue, giftCardPayload: Y } = k(), { isRecaptchaEnabled: We, currency: Ge, hasError: Ke } = h(ce()), qe = e(() => {
|
|
259
|
+
let e = U.value ? ee(U.value, Ge.value) : void 0;
|
|
260
|
+
return e ? `${C("giftCard.physicalDelivery")} · ${e}` : C("giftCard.physicalDelivery");
|
|
261
|
+
});
|
|
262
|
+
de.useHttpClient(ue(te()));
|
|
263
|
+
let X = pe("post", "/gift-card/create", Y());
|
|
264
|
+
X.setValidationTimeout(600);
|
|
265
|
+
function Z(e) {
|
|
266
|
+
X.setData(Y()), X.validate(e);
|
|
264
267
|
}
|
|
265
268
|
function Q(e) {
|
|
266
|
-
return
|
|
269
|
+
return X.errors[e];
|
|
267
270
|
}
|
|
268
271
|
async function $() {
|
|
269
|
-
let e = await
|
|
270
|
-
e &&
|
|
272
|
+
let e = await He();
|
|
273
|
+
e && X.setErrors(e);
|
|
271
274
|
}
|
|
272
|
-
return
|
|
273
|
-
|
|
275
|
+
return m(w, () => Z("contactName")), m(T, () => Z("contactEmail")), m(E, () => Z("contactPhone")), m(D, () => Z("amount")), m(M, () => Z("quantity")), m(R, () => Z("deliveryAddress.name")), m(z, () => Z("deliveryAddress.address")), m(B, () => Z("deliveryAddress.zipCode")), m(V, () => Z("deliveryAddress.city")), m(I, () => {
|
|
276
|
+
F.value = void 0;
|
|
274
277
|
}), l(() => {
|
|
275
|
-
let e =
|
|
276
|
-
|
|
277
|
-
}), (e, l) => (
|
|
278
|
-
default:
|
|
279
|
-
default:
|
|
280
|
-
"access-token":
|
|
281
|
-
"data-layout":
|
|
282
|
-
callback:
|
|
278
|
+
let e = _.placeType ? parseInt(_.placeType) : void 0;
|
|
279
|
+
J(e);
|
|
280
|
+
}), (e, l) => (p(), a(se, { styling: x.value }, {
|
|
281
|
+
default: b(() => [(p(), a(t, null, {
|
|
282
|
+
default: b(() => [i(he, {
|
|
283
|
+
"access-token": s.accessToken,
|
|
284
|
+
"data-layout": s.layout,
|
|
285
|
+
callback: n(Ue)
|
|
283
286
|
}, {
|
|
284
|
-
default:
|
|
287
|
+
default: b(() => [n(Ke) ? (p(), a(ge, {
|
|
285
288
|
key: 1,
|
|
286
289
|
title: "Unable to render Gift card module",
|
|
287
290
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
288
|
-
})) : (
|
|
291
|
+
})) : (p(), c("div", {
|
|
289
292
|
key: 0,
|
|
290
293
|
id: "konnectio-gift-card-module",
|
|
291
|
-
"data-layout":
|
|
292
|
-
}, [
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
"data-layout": s.layout
|
|
295
|
+
}, [v("div", we, [
|
|
296
|
+
v("h2", Te, [v("span", null, y(n(C)("giftCard.title")), 1)]),
|
|
297
|
+
v("div", Ee, [
|
|
298
|
+
g(v("div", De, [i(me)], 512), [[u, n(ve)]]),
|
|
299
|
+
g(v("div", null, [v("p", {
|
|
297
300
|
id: "konnectio-gift-card-description",
|
|
298
|
-
innerHTML:
|
|
299
|
-
}, null, 8,
|
|
300
|
-
|
|
301
|
-
modelValue:
|
|
302
|
-
"onUpdate:modelValue": l[0] ||= (e) =>
|
|
301
|
+
innerHTML: n(C)("giftCard.description")
|
|
302
|
+
}, null, 8, Oe), v("form", null, [
|
|
303
|
+
n(be) ? o("", !0) : (p(), c("div", ke, [n(G) ? (p(), c("div", Ae, [v("label", je, [v("span", null, y(n(C)("giftCard.selectType")), 1)]), v("div", Me, [v("ul", null, [(p(!0), c(r, null, S(n(G), (e, t) => (p(), c("li", { key: t }, [i(P, {
|
|
304
|
+
modelValue: n(I),
|
|
305
|
+
"onUpdate:modelValue": l[0] ||= (e) => d(I) ? I.value = e : null,
|
|
303
306
|
type: "radio",
|
|
304
307
|
name: "placeType",
|
|
305
|
-
val:
|
|
308
|
+
val: t,
|
|
306
309
|
label: e.label
|
|
307
310
|
}, null, 8, [
|
|
308
311
|
"modelValue",
|
|
309
312
|
"val",
|
|
310
313
|
"label"
|
|
311
|
-
])]))), 128))]),
|
|
314
|
+
])]))), 128))]), n(G)[n(I)] && n(G)[n(I)].data.length > 1 ? (p(), a(oe, {
|
|
312
315
|
key: 0,
|
|
313
|
-
modelValue:
|
|
314
|
-
"onUpdate:modelValue": l[1] ||= (e) =>
|
|
315
|
-
placeholder:
|
|
316
|
-
options:
|
|
316
|
+
modelValue: n(F),
|
|
317
|
+
"onUpdate:modelValue": l[1] ||= (e) => d(F) ? F.value = e : null,
|
|
318
|
+
placeholder: n(C)("giftCard.selectPlacePlaceholder"),
|
|
319
|
+
options: n(G)[n(I)].data,
|
|
317
320
|
labelKey: "name",
|
|
318
321
|
valueKey: "id",
|
|
319
322
|
required: ""
|
|
@@ -321,16 +324,16 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
321
324
|
"modelValue",
|
|
322
325
|
"placeholder",
|
|
323
326
|
"options"
|
|
324
|
-
])) : o("", !0)])])) : (
|
|
325
|
-
i(
|
|
326
|
-
modelValue:
|
|
327
|
-
"onUpdate:modelValue": l[2] ||= (e) =>
|
|
327
|
+
])) : o("", !0)])])) : (p(), a(ne, { key: 1 }))])),
|
|
328
|
+
i(N, {
|
|
329
|
+
modelValue: n(w),
|
|
330
|
+
"onUpdate:modelValue": l[2] ||= (e) => d(w) ? w.value = e : null,
|
|
328
331
|
type: "text",
|
|
329
332
|
name: "name",
|
|
330
333
|
autocomplete: "name",
|
|
331
|
-
label:
|
|
334
|
+
label: n(C)("giftCard.name"),
|
|
332
335
|
icon: "user-alt",
|
|
333
|
-
placeholder:
|
|
336
|
+
placeholder: n(C)("giftCard.namePlaceholder"),
|
|
334
337
|
error: Q("contactName"),
|
|
335
338
|
required: ""
|
|
336
339
|
}, null, 8, [
|
|
@@ -339,15 +342,15 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
339
342
|
"placeholder",
|
|
340
343
|
"error"
|
|
341
344
|
]),
|
|
342
|
-
i(
|
|
343
|
-
modelValue:
|
|
344
|
-
"onUpdate:modelValue": l[3] ||= (e) =>
|
|
345
|
+
i(N, {
|
|
346
|
+
modelValue: n(T),
|
|
347
|
+
"onUpdate:modelValue": l[3] ||= (e) => d(T) ? T.value = e : null,
|
|
345
348
|
type: "email",
|
|
346
349
|
name: "email",
|
|
347
350
|
autocomplete: "email",
|
|
348
|
-
label:
|
|
351
|
+
label: n(C)("giftCard.email"),
|
|
349
352
|
icon: "at",
|
|
350
|
-
placeholder:
|
|
353
|
+
placeholder: n(C)("giftCard.emailPlaceholder"),
|
|
351
354
|
error: Q("contactEmail"),
|
|
352
355
|
required: ""
|
|
353
356
|
}, null, 8, [
|
|
@@ -356,12 +359,12 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
356
359
|
"placeholder",
|
|
357
360
|
"error"
|
|
358
361
|
]),
|
|
359
|
-
i(
|
|
360
|
-
modelValue:
|
|
361
|
-
"onUpdate:modelValue": l[4] ||= (e) =>
|
|
362
|
+
i(le, {
|
|
363
|
+
modelValue: n(E),
|
|
364
|
+
"onUpdate:modelValue": l[4] ||= (e) => d(E) ? E.value = e : null,
|
|
362
365
|
icon: "phone-office",
|
|
363
|
-
label:
|
|
364
|
-
placeholder:
|
|
366
|
+
label: n(C)("giftCard.phone"),
|
|
367
|
+
placeholder: n(C)("giftCard.phonePlaceholder"),
|
|
365
368
|
error: Q("contactPhone"),
|
|
366
369
|
required: ""
|
|
367
370
|
}, null, 8, [
|
|
@@ -370,15 +373,15 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
370
373
|
"placeholder",
|
|
371
374
|
"error"
|
|
372
375
|
]),
|
|
373
|
-
i(
|
|
374
|
-
modelValue:
|
|
375
|
-
"onUpdate:modelValue": l[5] ||= (e) =>
|
|
376
|
+
i(N, {
|
|
377
|
+
modelValue: n(D),
|
|
378
|
+
"onUpdate:modelValue": l[5] ||= (e) => d(D) ? D.value = e : null,
|
|
376
379
|
type: "number",
|
|
377
380
|
name: "value",
|
|
378
|
-
label:
|
|
381
|
+
label: n(C)("giftCard.value"),
|
|
379
382
|
icon: "money-bill",
|
|
380
|
-
placeholder:
|
|
381
|
-
suffix:
|
|
383
|
+
placeholder: n(C)("giftCard.valuePlaceholder"),
|
|
384
|
+
suffix: n(Ge),
|
|
382
385
|
error: Q("amount"),
|
|
383
386
|
required: ""
|
|
384
387
|
}, null, 8, [
|
|
@@ -391,9 +394,9 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
391
394
|
o("", !0),
|
|
392
395
|
o("", !0),
|
|
393
396
|
i(ae, {
|
|
394
|
-
modelValue:
|
|
395
|
-
"onUpdate:modelValue": l[8] ||= (e) =>
|
|
396
|
-
label:
|
|
397
|
+
modelValue: n(M),
|
|
398
|
+
"onUpdate:modelValue": l[8] ||= (e) => d(M) ? M.value = e : null,
|
|
399
|
+
label: n(C)("giftCard.quantity"),
|
|
397
400
|
icon: "gift-card",
|
|
398
401
|
error: Q("quantity"),
|
|
399
402
|
required: ""
|
|
@@ -401,67 +404,159 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
401
404
|
"modelValue",
|
|
402
405
|
"label",
|
|
403
406
|
"error"
|
|
404
|
-
])
|
|
405
|
-
|
|
406
|
-
|
|
407
|
+
]),
|
|
408
|
+
n(_e) ? (p(), c("div", Ne, [v("label", Pe, [v("span", null, y(n(C)("giftCard.deliveryType")), 1)]), v("div", Fe, [v("ul", null, [v("li", null, [i(P, {
|
|
409
|
+
modelValue: n(L),
|
|
410
|
+
"onUpdate:modelValue": l[9] ||= (e) => d(L) ? L.value = e : null,
|
|
411
|
+
type: "radio",
|
|
412
|
+
name: "deliveryOption",
|
|
413
|
+
val: n(re).Digital,
|
|
414
|
+
label: n(C)("giftCard.digitalDelivery")
|
|
415
|
+
}, null, 8, [
|
|
416
|
+
"modelValue",
|
|
417
|
+
"val",
|
|
418
|
+
"label"
|
|
419
|
+
])]), v("li", null, [i(P, {
|
|
420
|
+
modelValue: n(L),
|
|
421
|
+
"onUpdate:modelValue": l[10] ||= (e) => d(L) ? L.value = e : null,
|
|
422
|
+
type: "radio",
|
|
423
|
+
name: "deliveryOption",
|
|
424
|
+
val: n(re).Physical,
|
|
425
|
+
label: qe.value
|
|
426
|
+
}, null, 8, [
|
|
427
|
+
"modelValue",
|
|
428
|
+
"val",
|
|
429
|
+
"label"
|
|
430
|
+
])])])])])) : o("", !0),
|
|
431
|
+
n(H) ? (p(), c(r, { key: 4 }, [
|
|
432
|
+
i(N, {
|
|
433
|
+
modelValue: n(R),
|
|
434
|
+
"onUpdate:modelValue": l[11] ||= (e) => d(R) ? R.value = e : null,
|
|
435
|
+
type: "text",
|
|
436
|
+
name: "deliveryName",
|
|
437
|
+
autocomplete: "name",
|
|
438
|
+
label: n(C)("giftCard.deliveryName"),
|
|
439
|
+
icon: "user-alt",
|
|
440
|
+
placeholder: n(C)("giftCard.deliveryNamePlaceholder"),
|
|
441
|
+
error: Q("deliveryAddress.name"),
|
|
442
|
+
required: ""
|
|
443
|
+
}, null, 8, [
|
|
444
|
+
"modelValue",
|
|
445
|
+
"label",
|
|
446
|
+
"placeholder",
|
|
447
|
+
"error"
|
|
448
|
+
]),
|
|
449
|
+
i(N, {
|
|
450
|
+
modelValue: n(z),
|
|
451
|
+
"onUpdate:modelValue": l[12] ||= (e) => d(z) ? z.value = e : null,
|
|
452
|
+
type: "text",
|
|
453
|
+
name: "deliveryStreet",
|
|
454
|
+
autocomplete: "street-address",
|
|
455
|
+
label: n(C)("giftCard.deliveryStreet"),
|
|
456
|
+
icon: "location-dot",
|
|
457
|
+
placeholder: n(C)("giftCard.deliveryStreetPlaceholder"),
|
|
458
|
+
error: Q("deliveryAddress.address"),
|
|
459
|
+
required: ""
|
|
460
|
+
}, null, 8, [
|
|
461
|
+
"modelValue",
|
|
462
|
+
"label",
|
|
463
|
+
"placeholder",
|
|
464
|
+
"error"
|
|
465
|
+
]),
|
|
466
|
+
i(N, {
|
|
467
|
+
modelValue: n(B),
|
|
468
|
+
"onUpdate:modelValue": l[13] ||= (e) => d(B) ? B.value = e : null,
|
|
469
|
+
type: "text",
|
|
470
|
+
name: "deliveryZipCode",
|
|
471
|
+
autocomplete: "postal-code",
|
|
472
|
+
label: n(C)("giftCard.deliveryZipCode"),
|
|
473
|
+
icon: "location-dot",
|
|
474
|
+
placeholder: n(C)("giftCard.deliveryZipCodePlaceholder"),
|
|
475
|
+
error: Q("deliveryAddress.zipCode"),
|
|
476
|
+
required: ""
|
|
477
|
+
}, null, 8, [
|
|
478
|
+
"modelValue",
|
|
479
|
+
"label",
|
|
480
|
+
"placeholder",
|
|
481
|
+
"error"
|
|
482
|
+
]),
|
|
483
|
+
i(N, {
|
|
484
|
+
modelValue: n(V),
|
|
485
|
+
"onUpdate:modelValue": l[14] ||= (e) => d(V) ? V.value = e : null,
|
|
486
|
+
type: "text",
|
|
487
|
+
name: "deliveryCity",
|
|
488
|
+
autocomplete: "address-level2",
|
|
489
|
+
label: n(C)("giftCard.deliveryCity"),
|
|
490
|
+
icon: "city",
|
|
491
|
+
placeholder: n(C)("giftCard.deliveryCityPlaceholder"),
|
|
492
|
+
error: Q("deliveryAddress.city"),
|
|
493
|
+
required: ""
|
|
494
|
+
}, null, 8, [
|
|
495
|
+
"modelValue",
|
|
496
|
+
"label",
|
|
497
|
+
"placeholder",
|
|
498
|
+
"error"
|
|
499
|
+
])
|
|
500
|
+
], 64)) : o("", !0)
|
|
501
|
+
])], 512), [[u, n(W)]]),
|
|
502
|
+
g(v("div", null, [v("div", { innerHTML: n(C)("giftCard.thankYou") }, null, 8, Ie)], 512), [[u, n(ye)]])
|
|
407
503
|
]),
|
|
408
|
-
|
|
409
|
-
label:
|
|
504
|
+
s.layout !== "minimal" && n(W) ? (p(), c("div", Le, [v("div", Re, [i(j, {
|
|
505
|
+
label: n(C)("giftCard.orderGiftCard"),
|
|
410
506
|
"full-width": !0,
|
|
411
|
-
disabled: !
|
|
412
|
-
"is-loading":
|
|
413
|
-
"onUpdate:isLoading": l[
|
|
507
|
+
disabled: !n(K),
|
|
508
|
+
"is-loading": n(q),
|
|
509
|
+
"onUpdate:isLoading": l[15] ||= (e) => d(q) ? q.value = e : null,
|
|
414
510
|
onClickEvent: $
|
|
415
511
|
}, null, 8, [
|
|
416
512
|
"label",
|
|
417
513
|
"disabled",
|
|
418
514
|
"is-loading"
|
|
419
515
|
])])])) : o("", !0),
|
|
420
|
-
|
|
421
|
-
modelValue:
|
|
422
|
-
"onUpdate:modelValue": l[
|
|
516
|
+
n(W) ? (p(), c("div", ze, [i(N, {
|
|
517
|
+
modelValue: n(O),
|
|
518
|
+
"onUpdate:modelValue": l[16] ||= (e) => d(O) ? O.value = e : null,
|
|
423
519
|
type: "textarea",
|
|
424
520
|
name: "remark",
|
|
425
|
-
label:
|
|
521
|
+
label: n(C)("giftCard.remark"),
|
|
426
522
|
icon: "info-circle",
|
|
427
|
-
placeholder:
|
|
523
|
+
placeholder: n(C)("giftCard.remarkPlaceholder")
|
|
428
524
|
}, null, 8, [
|
|
429
525
|
"modelValue",
|
|
430
526
|
"label",
|
|
431
527
|
"placeholder"
|
|
432
528
|
])])) : o("", !0),
|
|
433
|
-
|
|
529
|
+
n(W) ? (p(), c("div", Be, [
|
|
434
530
|
i(j, {
|
|
435
|
-
label:
|
|
531
|
+
label: n(C)("giftCard.orderGiftCard"),
|
|
436
532
|
"full-width": !0,
|
|
437
|
-
disabled: !
|
|
533
|
+
disabled: !n(K),
|
|
438
534
|
"data-test": "orderGiftCard",
|
|
439
|
-
"is-loading":
|
|
440
|
-
"onUpdate:isLoading": l[
|
|
535
|
+
"is-loading": n(q),
|
|
536
|
+
"onUpdate:isLoading": l[17] ||= (e) => d(q) ? q.value = e : null,
|
|
441
537
|
onClickEvent: $
|
|
442
538
|
}, null, 8, [
|
|
443
539
|
"label",
|
|
444
540
|
"disabled",
|
|
445
541
|
"is-loading"
|
|
446
542
|
]),
|
|
447
|
-
|
|
448
|
-
|
|
543
|
+
v("div", null, [l[18] ||= v("div", { class: "konnectio-divider" }, null, -1), i(Se)]),
|
|
544
|
+
g(v("div", Ve, [i(fe)], 512), [[u, n(We)]])
|
|
449
545
|
])) : o("", !0)
|
|
450
|
-
])], 8,
|
|
546
|
+
])], 8, Ce))]),
|
|
451
547
|
_: 1
|
|
452
548
|
}, 8, [
|
|
453
549
|
"access-token",
|
|
454
550
|
"data-layout",
|
|
455
551
|
"callback"
|
|
456
552
|
])]),
|
|
457
|
-
fallback:
|
|
553
|
+
fallback: b(() => [i(xe)]),
|
|
458
554
|
_: 1
|
|
459
555
|
}))]),
|
|
460
556
|
_: 1
|
|
461
557
|
}, 8, ["styling"]));
|
|
462
558
|
}
|
|
463
|
-
}), [["__scopeId", "data-v-
|
|
464
|
-
e.use(
|
|
559
|
+
}), [["__scopeId", "data-v-8807d9c4"]]), Ue = w(), Y = C("konnectio-gift-card", He, (e) => {
|
|
560
|
+
e.use(R), e.use(Ue), e.use(x), e.use(O);
|
|
465
561
|
});
|
|
466
|
-
|
|
467
|
-
export { Pe as default };
|
|
562
|
+
export { Y as default };
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|