@konnectio/core 4.0.28 → 4.0.29
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-20fd2fef.js → ActionField-1fcb30ea.js} +2 -2
- package/dist/ActionField-1fcb30ea.js.br +0 -0
- package/dist/{ActionField-487e86aa.cjs → ActionField-81384aa7.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-813806c7.js → AvailabilitySkeleton-e38800f8.js} +5 -5
- package/dist/AvailabilitySkeleton-e38800f8.js.br +0 -0
- package/dist/{AvailabilitySkeleton-ff721887.cjs → AvailabilitySkeleton-f371a6ba.cjs} +1 -1
- package/dist/{DateField.vue_vue_type_style_index_0_lang-c80f334d.cjs → DateField.vue_vue_type_style_index_0_lang-16f1eb52.cjs} +1 -1
- package/dist/{DateField.vue_vue_type_style_index_0_lang-3abac10d.js → DateField.vue_vue_type_style_index_0_lang-5eb1cfc9.js} +1 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-5eb1cfc9.js.br +0 -0
- package/dist/{Field-6b050caf.cjs → Field-9be15a05.cjs} +1 -1
- package/dist/{Field-79fc7dfa.js → Field-eb8d429d.js} +2 -2
- package/dist/Field-eb8d429d.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js → NumberField.vue_vue_type_script_setup_true_lang-959c8429.js} +1 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-959c8429.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-1c0634a0.cjs → NumberField.vue_vue_type_script_setup_true_lang-ae0eb65d.cjs} +1 -1
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-d631c22b.js → SelectField.vue_vue_type_style_index_0_lang-6b27dec6.js} +13271 -12305
- package/dist/SelectField.vue_vue_type_style_index_0_lang-6b27dec6.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-80ce269e.cjs +860 -0
- package/dist/{ThankYou-9dd940b6.js → ThankYou-90871d9e.js} +846 -845
- package/dist/ThankYou-90871d9e.js.br +0 -0
- package/dist/{ThankYou-3ada7b03.cjs → ThankYou-db84768c.cjs} +6 -6
- package/dist/{_-b36ce0a6.cjs → _-0041bfd0.cjs} +1 -1
- package/dist/{_-f9c3008a.js → _-c47e8eec.js} +1 -1
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
- package/dist/{event-16449760.js → event-97fce505.js} +7 -7
- package/dist/event-97fce505.js.br +0 -0
- package/dist/{event-69ba12c7.cjs → event-f7d31cb8.cjs} +1 -1
- 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 +254 -278
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +555 -554
- package/dist/hotel.js.br +0 -0
- package/dist/{index-ddf58f34.js → index-1f2fa31e.js} +77 -107
- package/dist/index-1f2fa31e.js.br +0 -0
- package/dist/index-2c822f23.cjs +1 -0
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/store/hotel.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +2 -1
- package/dist/ActionField-20fd2fef.js.br +0 -0
- package/dist/AvailabilitySkeleton-813806c7.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-3abac10d.js.br +0 -0
- package/dist/Field-79fc7dfa.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-aa9c0c1a.cjs +0 -858
- package/dist/SelectField.vue_vue_type_style_index_0_lang-d631c22b.js.br +0 -0
- package/dist/ThankYou-9dd940b6.js.br +0 -0
- package/dist/event-16449760.js.br +0 -0
- package/dist/index-bf17dd6e.cjs +0 -1
- package/dist/index-ddf58f34.js.br +0 -0
package/dist/hotel.js.br
CHANGED
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as defineComponent, l as ranId, r as ref, o as onMounted, m as openBlock, n as createBlock, w as withCtx, A as createBaseVNode, p as createVNode, q as unref, T as TextField, I as InputField, _ as _export_sfc, aj as mergeProps, y as normalizeClass, ak as normalizeStyle, al as withKeys, v as createElementBlock, F as toDisplayString, x as createCommentVNode, D as useI18n, a5 as createTextVNode, s as storeToRefs, c as useUtilityStore, am as PaymentGateway, P as pushScopeId, Q as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { k as defineComponent, l as ranId, r as ref, o as onMounted, m as openBlock, n as createBlock, w as withCtx, A as createBaseVNode, p as createVNode, q as unref, T as TextField, I as InputField, _ as _export_sfc, aj as mergeProps, y as normalizeClass, ak as normalizeStyle, al as withKeys, v as createElementBlock, F as toDisplayString, x as createCommentVNode, D as useI18n, a5 as createTextVNode, s as storeToRefs, c as useUtilityStore, am as PaymentGateway, P as pushScopeId, Q as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-6b27dec6.js";
|
|
2
2
|
const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
3
3
|
__name: "PhoneField",
|
|
4
4
|
props: {
|
|
@@ -14,14 +14,14 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
|
|
|
14
14
|
inputStyle: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:modelValue"],
|
|
17
|
-
setup(e, { emit:
|
|
18
|
-
const
|
|
19
|
-
function
|
|
20
|
-
|
|
17
|
+
setup(e, { emit: t }) {
|
|
18
|
+
const s = t, i = e, r = i.id || ranId(), n = ref("+45"), d = ref("");
|
|
19
|
+
function u() {
|
|
20
|
+
s("update:modelValue", `${n.value} ${d.value}`);
|
|
21
21
|
}
|
|
22
22
|
return onMounted(() => {
|
|
23
|
-
if (
|
|
24
|
-
const l =
|
|
23
|
+
if (i.modelValue) {
|
|
24
|
+
const l = i.modelValue.split(" ");
|
|
25
25
|
n.value = l[0], d.value = l[1];
|
|
26
26
|
}
|
|
27
27
|
}), (l, p) => (openBlock(), createBlock(InputField, {
|
|
@@ -35,7 +35,7 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
|
|
|
35
35
|
createBaseVNode("div", _hoisted_1$3, [
|
|
36
36
|
createVNode(TextField, {
|
|
37
37
|
modelValue: n.value,
|
|
38
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
38
|
+
"onUpdate:modelValue": p[0] || (p[0] = (h) => n.value = h),
|
|
39
39
|
type: "text",
|
|
40
40
|
id: unref(ranId)(),
|
|
41
41
|
name: "phone-code",
|
|
@@ -47,11 +47,11 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
|
|
|
47
47
|
required: l.required,
|
|
48
48
|
readonly: l.readonly,
|
|
49
49
|
"input-style": l.inputStyle,
|
|
50
|
-
onInput: p[1] || (p[1] = (
|
|
50
|
+
onInput: p[1] || (p[1] = (h) => u())
|
|
51
51
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
|
|
52
52
|
createVNode(TextField, {
|
|
53
53
|
modelValue: d.value,
|
|
54
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
54
|
+
"onUpdate:modelValue": p[2] || (p[2] = (h) => d.value = h),
|
|
55
55
|
type: "number",
|
|
56
56
|
name: "phone",
|
|
57
57
|
autocomplete: "tel-national",
|
|
@@ -60,7 +60,7 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
|
|
|
60
60
|
required: l.required,
|
|
61
61
|
readonly: l.readonly,
|
|
62
62
|
"input-style": l.inputStyle,
|
|
63
|
-
onInput: p[3] || (p[3] = (
|
|
63
|
+
onInput: p[3] || (p[3] = (h) => u())
|
|
64
64
|
}, null, 8, ["modelValue", "id", "placeholder", "required", "readonly", "input-style"])
|
|
65
65
|
])
|
|
66
66
|
]),
|
|
@@ -83,12 +83,12 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
|
|
|
83
83
|
val: {}
|
|
84
84
|
},
|
|
85
85
|
emits: ["update:modelValue"],
|
|
86
|
-
setup(e, { emit:
|
|
87
|
-
const
|
|
86
|
+
setup(e, { emit: t }) {
|
|
87
|
+
const s = e, i = t;
|
|
88
88
|
function r() {
|
|
89
|
-
|
|
89
|
+
s.readonly !== !0 && i(
|
|
90
90
|
"update:modelValue",
|
|
91
|
-
|
|
91
|
+
s.type === "radio" ? s.val : s.numeric ? s.modelValue ? 0 : 1 : !s.modelValue
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
94
|
return (n, d) => (openBlock(), createBlock(InputField, {
|
|
@@ -114,7 +114,7 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
|
|
|
114
114
|
disabled: !!n.readonly,
|
|
115
115
|
value: n.type === "radio" ? n.val : n.modelValue,
|
|
116
116
|
checked: n.type === "radio" ? n.val === n.modelValue : !!n.modelValue,
|
|
117
|
-
onChange: d[0] || (d[0] = (
|
|
117
|
+
onChange: d[0] || (d[0] = (u) => r())
|
|
118
118
|
}), null, 16, _hoisted_1$2),
|
|
119
119
|
createBaseVNode("div", {
|
|
120
120
|
class: normalizeClass([
|
|
@@ -124,7 +124,7 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
|
|
|
124
124
|
tabindex: "0",
|
|
125
125
|
style: normalizeStyle(n.inputStyle),
|
|
126
126
|
"data-test": n.name,
|
|
127
|
-
onKeyup: d[1] || (d[1] = withKeys((
|
|
127
|
+
onKeyup: d[1] || (d[1] = withKeys((u) => r(), ["enter"]))
|
|
128
128
|
}, null, 46, _hoisted_2$2),
|
|
129
129
|
n.label ? (openBlock(), createElementBlock("div", {
|
|
130
130
|
key: 0,
|
|
@@ -141,64 +141,34 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
|
|
|
141
141
|
}), Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang = "", Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7ef656cb"]]), _hoisted_1$1 = { href: "https://policies.google.com/privacy" }, _hoisted_2$1 = { href: "https://policies.google.com/terms" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
142
142
|
__name: "GoogleNotice",
|
|
143
143
|
setup(e) {
|
|
144
|
-
const { t
|
|
145
|
-
return (
|
|
146
|
-
createTextVNode(toDisplayString(unref(
|
|
147
|
-
createBaseVNode("a", _hoisted_1$1, toDisplayString(unref(
|
|
148
|
-
createTextVNode(" " + toDisplayString(unref(
|
|
149
|
-
createBaseVNode("a", _hoisted_2$1, toDisplayString(unref(
|
|
150
|
-
createTextVNode(" " + toDisplayString(unref(
|
|
144
|
+
const { t } = useI18n();
|
|
145
|
+
return (s, i) => (openBlock(), createElementBlock("span", null, [
|
|
146
|
+
createTextVNode(toDisplayString(unref(t)("googleNotice")) + " ", 1),
|
|
147
|
+
createBaseVNode("a", _hoisted_1$1, toDisplayString(unref(t)("googlePrivacyPolicy")), 1),
|
|
148
|
+
createTextVNode(" " + toDisplayString(unref(t)("googleAnd")) + " ", 1),
|
|
149
|
+
createBaseVNode("a", _hoisted_2$1, toDisplayString(unref(t)("googleTOS")), 1),
|
|
150
|
+
createTextVNode(" " + toDisplayString(unref(t)("googleApply")) + ". ", 1)
|
|
151
151
|
]));
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
function block0(e) {
|
|
155
|
-
const
|
|
156
|
-
|
|
155
|
+
const t = e;
|
|
156
|
+
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
157
157
|
locale: "",
|
|
158
158
|
resource: {
|
|
159
159
|
da: {
|
|
160
|
-
googleNotice:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
},
|
|
164
|
-
|
|
165
|
-
const { normalize: t } = i;
|
|
166
|
-
return t(["Privatlivspolitik"]);
|
|
167
|
-
},
|
|
168
|
-
googleAnd: (i) => {
|
|
169
|
-
const { normalize: t } = i;
|
|
170
|
-
return t(["og"]);
|
|
171
|
-
},
|
|
172
|
-
googleTOS: (i) => {
|
|
173
|
-
const { normalize: t } = i;
|
|
174
|
-
return t(["Servicevilkår"]);
|
|
175
|
-
},
|
|
176
|
-
googleApply: (i) => {
|
|
177
|
-
const { normalize: t } = i;
|
|
178
|
-
return t(["er gældende"]);
|
|
179
|
-
}
|
|
160
|
+
googleNotice: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Denne side er beskyttet af reCAPTCHA og Google's" } },
|
|
161
|
+
googlePrivacyPolicy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Privatlivspolitik" } },
|
|
162
|
+
googleAnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "og" } },
|
|
163
|
+
googleTOS: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Servicevilkår" } },
|
|
164
|
+
googleApply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "er gældende" } }
|
|
180
165
|
},
|
|
181
166
|
en: {
|
|
182
|
-
googleNotice:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
const { normalize: t } = i;
|
|
188
|
-
return t(["Privacy Policy"]);
|
|
189
|
-
},
|
|
190
|
-
googleAnd: (i) => {
|
|
191
|
-
const { normalize: t } = i;
|
|
192
|
-
return t(["and"]);
|
|
193
|
-
},
|
|
194
|
-
googleTOS: (i) => {
|
|
195
|
-
const { normalize: t } = i;
|
|
196
|
-
return t(["Terms of Service"]);
|
|
197
|
-
},
|
|
198
|
-
googleApply: (i) => {
|
|
199
|
-
const { normalize: t } = i;
|
|
200
|
-
return t(["apply"]);
|
|
201
|
-
}
|
|
167
|
+
googleNotice: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "This site is protected by reCAPTCHA and the Google" } },
|
|
168
|
+
googlePrivacyPolicy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Privacy Policy" } },
|
|
169
|
+
googleAnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "and" } },
|
|
170
|
+
googleTOS: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Terms of Service" } },
|
|
171
|
+
googleApply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "apply" } }
|
|
202
172
|
}
|
|
203
173
|
}
|
|
204
174
|
});
|
|
@@ -209,19 +179,19 @@ const _withScopeId = (e) => (pushScopeId("data-v-340cb9ce"), e = e(), popScopeId
|
|
|
209
179
|
], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
210
180
|
__name: "CheckoutWindow",
|
|
211
181
|
setup(e) {
|
|
212
|
-
const { paymentGatewayId:
|
|
182
|
+
const { paymentGatewayId: t } = storeToRefs(useUtilityStore());
|
|
213
183
|
return onMounted(() => {
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
}), (
|
|
184
|
+
const s = document.createElement("script"), i = document.createElement("script");
|
|
185
|
+
s.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), i.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(s), document.head.appendChild(i);
|
|
186
|
+
}), (s, i) => (openBlock(), createElementBlock("div", null, [
|
|
217
187
|
createBaseVNode("div", {
|
|
218
188
|
id: "fresh-booking-payment-checkout-wrapper",
|
|
219
|
-
class: normalizeClass({ reePay: unref(
|
|
189
|
+
class: normalizeClass({ reePay: unref(t) === unref(PaymentGateway).ReePay })
|
|
220
190
|
}, _hoisted_2, 2)
|
|
221
191
|
]));
|
|
222
192
|
}
|
|
223
193
|
}), CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang = "", CheckoutWindow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-340cb9ce"]]);
|
|
224
|
-
var a = Object.defineProperty, c = (e,
|
|
194
|
+
var a = Object.defineProperty, c = (e, t, s) => t in e ? a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, o = (e, t, s) => (c(e, typeof t != "symbol" ? t + "" : t, s), s);
|
|
225
195
|
const namespace = "@@vue3-sticky-directive", events = [
|
|
226
196
|
"resize",
|
|
227
197
|
"scroll",
|
|
@@ -230,15 +200,15 @@ const namespace = "@@vue3-sticky-directive", events = [
|
|
|
230
200
|
"touchend",
|
|
231
201
|
"pageshow",
|
|
232
202
|
"load"
|
|
233
|
-
], batchStyle = (e,
|
|
234
|
-
for (let
|
|
235
|
-
e.style[
|
|
236
|
-
for (let
|
|
237
|
-
i
|
|
203
|
+
], batchStyle = (e, t = {}, s = {}) => {
|
|
204
|
+
for (let i in t)
|
|
205
|
+
e.style[i] = t[i];
|
|
206
|
+
for (let i in s)
|
|
207
|
+
s[i] && !e.classList.contains(i) ? e.classList.add(i) : !s[i] && e.classList.contains(i) && e.classList.remove(i);
|
|
238
208
|
};
|
|
239
209
|
class Sticky {
|
|
240
|
-
constructor(e,
|
|
241
|
-
o(this, "el"), o(this, "vm"), o(this, "unSubscribers"), o(this, "isPending"), o(this, "state"), o(this, "lastState"), o(this, "options"), o(this, "placeholderEl"), o(this, "containerEl"), this.el = e, this.vm =
|
|
210
|
+
constructor(e, t) {
|
|
211
|
+
o(this, "el"), o(this, "vm"), o(this, "unSubscribers"), o(this, "isPending"), o(this, "state"), o(this, "lastState"), o(this, "options"), o(this, "placeholderEl"), o(this, "containerEl"), this.el = e, this.vm = t, this.unSubscribers = [], this.isPending = !1, this.state = {
|
|
242
212
|
isTopSticky: null,
|
|
243
213
|
isBottomSticky: null,
|
|
244
214
|
height: null,
|
|
@@ -249,12 +219,12 @@ class Sticky {
|
|
|
249
219
|
bottom: null,
|
|
250
220
|
sticked: !1
|
|
251
221
|
};
|
|
252
|
-
const
|
|
222
|
+
const s = this.getAttribute("sticky-offset") || {}, i = this.getAttribute("sticky-side") || "top", r = this.getAttribute("sticky-z-index") || "10", n = this.getAttribute("on-stick") || null;
|
|
253
223
|
this.options = {
|
|
254
|
-
topOffset: Number(
|
|
255
|
-
bottomOffset: Number(
|
|
256
|
-
shouldTopSticky:
|
|
257
|
-
shouldBottomSticky:
|
|
224
|
+
topOffset: Number(s.top) || 0,
|
|
225
|
+
bottomOffset: Number(s.bottom) || 0,
|
|
226
|
+
shouldTopSticky: i === "top" || i === "both",
|
|
227
|
+
shouldBottomSticky: i === "bottom" || i === "both",
|
|
258
228
|
zIndex: r,
|
|
259
229
|
onStick: n
|
|
260
230
|
};
|
|
@@ -262,11 +232,11 @@ class Sticky {
|
|
|
262
232
|
doBind() {
|
|
263
233
|
if (this.unSubscribers.length > 0)
|
|
264
234
|
return;
|
|
265
|
-
const { el: e, vm:
|
|
266
|
-
|
|
267
|
-
this.placeholderEl = document.createElement("div"), this.containerEl = this.getContainerEl(), e.parentElement.insertBefore(this.placeholderEl, e), events.forEach((
|
|
268
|
-
const
|
|
269
|
-
this.unSubscribers.push(() => window.removeEventListener(
|
|
235
|
+
const { el: e, vm: t } = this;
|
|
236
|
+
t.$nextTick(() => {
|
|
237
|
+
this.placeholderEl = document.createElement("div"), this.containerEl = this.getContainerEl(), e.parentElement.insertBefore(this.placeholderEl, e), events.forEach((s) => {
|
|
238
|
+
const i = this.update.bind(this);
|
|
239
|
+
this.unSubscribers.push(() => window.removeEventListener(s, i)), this.unSubscribers.push(() => this.containerEl.removeEventListener(s, i)), window.addEventListener(s, i, { passive: !0 }), this.containerEl.addEventListener(s, i, { passive: !0 });
|
|
270
240
|
});
|
|
271
241
|
});
|
|
272
242
|
}
|
|
@@ -281,14 +251,14 @@ class Sticky {
|
|
|
281
251
|
isTopSticky() {
|
|
282
252
|
if (!this.options.shouldTopSticky)
|
|
283
253
|
return !1;
|
|
284
|
-
const e = this.state.placeholderElRect.top,
|
|
285
|
-
return e <=
|
|
254
|
+
const e = this.state.placeholderElRect.top, t = this.state.containerElRect.bottom, s = this.options.topOffset, i = this.options.bottomOffset;
|
|
255
|
+
return e <= s && t >= i;
|
|
286
256
|
}
|
|
287
257
|
isBottomSticky() {
|
|
288
258
|
if (!this.options.shouldBottomSticky)
|
|
289
259
|
return !1;
|
|
290
|
-
const e = window.innerHeight - this.state.placeholderElRect.top - this.state.height,
|
|
291
|
-
return e <=
|
|
260
|
+
const e = window.innerHeight - this.state.placeholderElRect.top - this.state.height, t = window.innerHeight - this.state.containerElRect.top, s = this.options.topOffset, i = this.options.bottomOffset;
|
|
261
|
+
return e <= i && t >= s;
|
|
292
262
|
}
|
|
293
263
|
recomputeState() {
|
|
294
264
|
this.state = Object.assign({}, this.state, {
|
|
@@ -309,35 +279,35 @@ class Sticky {
|
|
|
309
279
|
updateElements() {
|
|
310
280
|
const e = {
|
|
311
281
|
paddingTop: 0
|
|
312
|
-
},
|
|
282
|
+
}, t = {
|
|
313
283
|
position: "static",
|
|
314
284
|
top: "auto",
|
|
315
285
|
bottom: "auto",
|
|
316
286
|
left: "auto",
|
|
317
287
|
width: "auto",
|
|
318
288
|
zIndex: this.options.zIndex
|
|
319
|
-
},
|
|
289
|
+
}, s = {
|
|
320
290
|
"vue-sticky-placeholder": !0
|
|
321
|
-
},
|
|
291
|
+
}, i = {
|
|
322
292
|
"vue-sticky-el": !0,
|
|
323
293
|
"top-sticky": !1,
|
|
324
294
|
"bottom-sticky": !1
|
|
325
295
|
};
|
|
326
296
|
if (this.state.isTopSticky) {
|
|
327
|
-
|
|
297
|
+
t.position = "fixed", t.top = this.options.topOffset + "px", t.left = this.state.xOffset + "px", t.width = this.state.width + "px";
|
|
328
298
|
const r = this.state.containerElRect.bottom - this.state.height - this.options.bottomOffset - this.options.topOffset;
|
|
329
|
-
r < 0 && (
|
|
299
|
+
r < 0 && (t.top = r + this.options.topOffset + "px"), e.paddingTop = this.state.height + "px", i["top-sticky"] = !0;
|
|
330
300
|
} else if (this.state.isBottomSticky) {
|
|
331
|
-
|
|
301
|
+
t.position = "fixed", t.bottom = this.options.bottomOffset + "px", t.left = this.state.xOffset + "px", t.width = this.state.width + "px";
|
|
332
302
|
const r = window.innerHeight - this.state.containerElRect.top - this.state.height - this.options.bottomOffset - this.options.topOffset;
|
|
333
|
-
r < 0 && (
|
|
303
|
+
r < 0 && (t.bottom = r + this.options.bottomOffset + "px"), e.paddingTop = this.state.height + "px", i["bottom-sticky"] = !0;
|
|
334
304
|
} else
|
|
335
305
|
e.paddingTop = 0;
|
|
336
|
-
batchStyle(this.el,
|
|
306
|
+
batchStyle(this.el, t, i), batchStyle(this.placeholderEl, e, s), this.fireEvents();
|
|
337
307
|
}
|
|
338
308
|
resetElement() {
|
|
339
|
-
["position", "top", "bottom", "left", "width", "zIndex"].forEach((
|
|
340
|
-
this.el.style.removeProperty(
|
|
309
|
+
["position", "top", "bottom", "left", "width", "zIndex"].forEach((t) => {
|
|
310
|
+
this.el.style.removeProperty(t);
|
|
341
311
|
}), this.el.classList.remove("bottom-sticky", "top-sticky");
|
|
342
312
|
const { parentElement: e } = this.placeholderEl;
|
|
343
313
|
e && e.removeChild(this.placeholderEl);
|
|
@@ -382,14 +352,14 @@ class Sticky {
|
|
|
382
352
|
}
|
|
383
353
|
}
|
|
384
354
|
const Sticky$1 = {
|
|
385
|
-
mounted(e,
|
|
386
|
-
(typeof
|
|
355
|
+
mounted(e, t) {
|
|
356
|
+
(typeof t.value > "u" || t.value) && (e[namespace] = new Sticky(e, t.instance), e[namespace].doBind());
|
|
387
357
|
},
|
|
388
358
|
unmounted(e) {
|
|
389
359
|
e[namespace] && (e[namespace].doUnbind(), e[namespace] = void 0);
|
|
390
360
|
},
|
|
391
|
-
updated(e,
|
|
392
|
-
typeof
|
|
361
|
+
updated(e, t) {
|
|
362
|
+
typeof t.value > "u" || t.value ? (e[namespace] || (e[namespace] = new Sticky(e, t.instance)), e[namespace].doBind()) : e[namespace] && e[namespace].doUnbind();
|
|
393
363
|
}
|
|
394
364
|
}, StickyPlugin = {
|
|
395
365
|
install(e) {
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const SelectField_vue_vue_type_style_index_0_lang=require("./SelectField.vue_vue_type_style_index_0_lang-80ce269e.cjs"),_hoisted_1$3={class:"fresh-booking-phone-input"},_sfc_main$3=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"PhoneField",props:{modelValue:{},label:{},id:{},placeholder:{},icon:{default:"phone-office"},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputStyle:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=t,l=e,_=l.id||SelectField_vue_vue_type_style_index_0_lang.ranId(),n=SelectField_vue_vue_type_style_index_0_lang.ref("+45"),d=SelectField_vue_vue_type_style_index_0_lang.ref("");function r(){i("update:modelValue",`${n.value} ${d.value}`)}return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{if(l.modelValue){const s=l.modelValue.split(" ");n.value=s[0],d.value=s[1]}}),(s,u)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{label:s.label,id:SelectField_vue_vue_type_style_index_0_lang.unref(_),type:"phone",required:s.required,readonly:s.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",_hoisted_1$3,[SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=p=>n.value=p),type:"text",id:SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:s.icon,"icon-color":s.iconColor,"icon-type":s.iconType,placeholder:"+45",required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[1]||(u[1]=p=>r())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:d.value,"onUpdate:modelValue":u[2]||(u[2]=p=>d.value=p),type:"number",name:"phone",autocomplete:"tel-national",id:SelectField_vue_vue_type_style_index_0_lang.unref(_),placeholder:s.placeholder,required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[3]||(u[3]=p=>r())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}}),PhoneField_vue_vue_type_style_index_0_scoped_5cd094ab_lang="",PhoneField=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$3,[["__scopeId","data-v-5cd094ab"]]),_hoisted_1$2=["required","type","name","readonly","disabled","value","checked"],_hoisted_2$2=["data-test"],_hoisted_3={key:0},_sfc_main$2=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"Checkbox",props:{modelValue:{type:[String,Boolean,Number]},numeric:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},label:{},price:{},name:{},readonly:{type:Boolean,default:!1},type:{default:"checkbox"},required:{type:Boolean,default:!1},inputStyle:{},val:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,l=t;function _(){i.readonly!==!0&&l("update:modelValue",i.type==="radio"?i.val:i.numeric?i.modelValue?0:1:!i.modelValue)}return(n,d)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{required:n.required,type:n.type,readonly:n.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("label",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":n.readonly},{"has-label":n.label},n.type==="radio"?"radio":"checkbox"])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("input",SelectField_vue_vue_type_style_index_0_lang.mergeProps(n.$attrs,{required:!!n.required,type:n.type,name:n.name,class:"hidden",readonly:!!n.readonly,disabled:!!n.readonly,value:n.type==="radio"?n.val:n.modelValue,checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue,onChange:d[0]||(d[0]=r=>_())}),null,16,_hoisted_1$2),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box",{checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue}]),tabindex:"0",style:SelectField_vue_vue_type_style_index_0_lang.normalizeStyle(n.inputStyle),"data-test":n.name,onKeyup:d[1]||(d[1]=SelectField_vue_vue_type_style_index_0_lang.withKeys(r=>_(),["enter"]))},null,46,_hoisted_2$2),n.label?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",{key:0,class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-label",{"with-price":n.price}])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("span",null,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.label),1),n.price?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",_hoisted_3,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.price),1)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}}),Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang="",Checkbox=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$2,[["__scopeId","data-v-7ef656cb"]]),_hoisted_1$1={href:"https://policies.google.com/privacy"},_hoisted_2$1={href:"https://policies.google.com/terms"},_sfc_main$1=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"GoogleNotice",setup(e){const{t}=SelectField_vue_vue_type_style_index_0_lang.useI18n();return(i,l)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",null,[SelectField_vue_vue_type_style_index_0_lang.createTextVNode(SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleNotice"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_1$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googlePrivacyPolicy")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleAnd"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_2$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleTOS")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(t)("googleApply"))+". ",1)]))}});function block0(e){const t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{da:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"Denne side er beskyttet af reCAPTCHA og Google's"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privatlivspolitik"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"og"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Servicevilkår"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"er gældende"}}},en:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"This site is protected by reCAPTCHA and the Google"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privacy Policy"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"and"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Terms of Service"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"apply"}}}}})}typeof block0=="function"&&block0(_sfc_main$1);const _withScopeId=e=>(SelectField_vue_vue_type_style_index_0_lang.pushScopeId("data-v-340cb9ce"),e=e(),SelectField_vue_vue_type_style_index_0_lang.popScopeId(),e),_hoisted_1=_withScopeId(()=>SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),_hoisted_2=[_hoisted_1],_sfc_main=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"CheckoutWindow",setup(e){const{paymentGatewayId:t}=SelectField_vue_vue_type_style_index_0_lang.storeToRefs(SelectField_vue_vue_type_style_index_0_lang.useUtilityStore());return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{const i=document.createElement("script"),l=document.createElement("script");i.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),l.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(i),document.head.appendChild(l)}),(i,l)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",null,[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass({reePay:SelectField_vue_vue_type_style_index_0_lang.unref(t)===SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.PaymentGateway).ReePay})},_hoisted_2,2)]))}}),CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang="",CheckoutWindow=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main,[["__scopeId","data-v-340cb9ce"]]);var a=Object.defineProperty,c=(e,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,o=(e,t,i)=>(c(e,typeof t!="symbol"?t+"":t,i),i);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,t={},i={})=>{for(let l in t)e.style[l]=t[l];for(let l in i)i[l]&&!e.classList.contains(l)?e.classList.add(l):!i[l]&&e.classList.contains(l)&&e.classList.remove(l)};class Sticky{constructor(e,t){o(this,"el"),o(this,"vm"),o(this,"unSubscribers"),o(this,"isPending"),o(this,"state"),o(this,"lastState"),o(this,"options"),o(this,"placeholderEl"),o(this,"containerEl"),this.el=e,this.vm=t,this.unSubscribers=[],this.isPending=!1,this.state={isTopSticky:null,isBottomSticky:null,height:null,width:null,xOffset:null},this.lastState={top:null,bottom:null,sticked:!1};const i=this.getAttribute("sticky-offset")||{},l=this.getAttribute("sticky-side")||"top",_=this.getAttribute("sticky-z-index")||"10",n=this.getAttribute("on-stick")||null;this.options={topOffset:Number(i.top)||0,bottomOffset:Number(i.bottom)||0,shouldTopSticky:l==="top"||l==="both",shouldBottomSticky:l==="bottom"||l==="both",zIndex:_,onStick:n}}doBind(){if(this.unSubscribers.length>0)return;const{el:e,vm:t}=this;t.$nextTick(()=>{this.placeholderEl=document.createElement("div"),this.containerEl=this.getContainerEl(),e.parentElement.insertBefore(this.placeholderEl,e),events.forEach(i=>{const l=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(i,l)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(i,l)),window.addEventListener(i,l,{passive:!0}),this.containerEl.addEventListener(i,l,{passive:!0})})})}doUnbind(){this.unSubscribers.forEach(e=>e()),this.unSubscribers=[],this.resetElement()}update(){this.isPending||(requestAnimationFrame(()=>{this.isPending=!1,this.recomputeState(),this.updateElements()}),this.isPending=!0)}isTopSticky(){if(!this.options.shouldTopSticky)return!1;const e=this.state.placeholderElRect.top,t=this.state.containerElRect.bottom,i=this.options.topOffset,l=this.options.bottomOffset;return e<=i&&t>=l}isBottomSticky(){if(!this.options.shouldBottomSticky)return!1;const e=window.innerHeight-this.state.placeholderElRect.top-this.state.height,t=window.innerHeight-this.state.containerElRect.top,i=this.options.topOffset,l=this.options.bottomOffset;return e<=l&&t>=i}recomputeState(){this.state=Object.assign({},this.state,{height:this.getHeight(),width:this.getWidth(),xOffset:this.getXOffset(),placeholderElRect:this.getPlaceholderElRect(),containerElRect:this.getContainerElRect()}),this.state.isTopSticky=this.isTopSticky(),this.state.isBottomSticky=this.isBottomSticky()}fireEvents(){typeof this.options.onStick=="function"&&(this.lastState.top!==this.state.isTopSticky||this.lastState.bottom!==this.state.isBottomSticky||this.lastState.sticked!==(this.state.isTopSticky||this.state.isBottomSticky))&&(this.lastState={top:this.state.isTopSticky,bottom:this.state.isBottomSticky,sticked:this.state.isBottomSticky||this.state.isTopSticky},this.options.onStick(this.lastState))}updateElements(){const e={paddingTop:0},t={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:this.options.zIndex},i={"vue-sticky-placeholder":!0},l={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){t.position="fixed",t.top=this.options.topOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.top=_+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",l["top-sticky"]=!0}else if(this.state.isBottomSticky){t.position="fixed",t.bottom=this.options.bottomOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.bottom=_+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",l["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,t,l),batchStyle(this.placeholderEl,e,i),this.fireEvents()}resetElement(){["position","top","bottom","left","width","zIndex"].forEach(t=>{this.el.style.removeProperty(t)}),this.el.classList.remove("bottom-sticky","top-sticky");const{parentElement:e}=this.placeholderEl;e&&e.removeChild(this.placeholderEl)}getContainerEl(){let e=this.el.parentElement;for(;e&&e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1;){if(e.hasAttribute("sticky-container"))return e;e=e.parentElement}return this.el.parentElement}getXOffset(){return this.placeholderEl.getBoundingClientRect().left}getWidth(){return this.placeholderEl.getBoundingClientRect().width}getHeight(){return this.el.getBoundingClientRect().height}getPlaceholderElRect(){return this.placeholderEl.getBoundingClientRect()}getContainerElRect(){return this.containerEl.getBoundingClientRect()}getAttribute(name){const expr=this.el.getAttribute(name);let result;if(expr)if(this.vm[expr])result=this.vm[expr];else try{result=eval(`(${expr})`)}catch(e){result=expr}return result}}const Sticky$1={mounted(e,t){(typeof t.value>"u"||t.value)&&(e[namespace]=new Sticky(e,t.instance),e[namespace].doBind())},unmounted(e){e[namespace]&&(e[namespace].doUnbind(),e[namespace]=void 0)},updated(e,t){typeof t.value>"u"||t.value?(e[namespace]||(e[namespace]=new Sticky(e,t.instance)),e[namespace].doBind()):e[namespace]&&e[namespace].doUnbind()}},StickyPlugin={install(e){e.directive("Sticky",Sticky$1)}};exports.Checkbox=Checkbox;exports.CheckoutWindow=CheckoutWindow;exports.PhoneField=PhoneField;exports.StickyPlugin=StickyPlugin;exports._sfc_main=_sfc_main$1;
|