@konnectio/core 4.0.56-rc10 → 4.0.56-rc12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/{ActionField-1TedZ-ol.js → ActionField-AkBYUrzM.js} +1 -1
  2. package/dist/ActionField-AkBYUrzM.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-IRkVJKVI.js → AvailabilitySkeleton-46abfeGe.js} +26 -26
  4. package/dist/AvailabilitySkeleton-46abfeGe.js.br +0 -0
  5. package/dist/{CheckoutWindow-GzqBHFb5.js → CheckoutWindow-uu1pLDmx.js} +32 -32
  6. package/dist/CheckoutWindow-uu1pLDmx.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-N7m8Y11B.js → DateField.vue_vue_type_style_index_0_lang-jrJgxOtY.js} +238 -238
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-jrJgxOtY.js.br +0 -0
  9. package/dist/{Field-agqP-A21.js → Field-x6UKBgQi.js} +2 -2
  10. package/dist/Field-x6UKBgQi.js.br +0 -0
  11. package/dist/{SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js → SelectField.vue_vue_type_style_index_0_lang-TJbkduwA.js} +40 -51
  12. package/dist/SelectField.vue_vue_type_style_index_0_lang-TJbkduwA.js.br +0 -0
  13. package/dist/{ThankYou-0uAYL16f.js → ThankYou-4XeLOCXe.js} +10 -10
  14. package/dist/ThankYou-4XeLOCXe.js.br +0 -0
  15. package/dist/{_-K1FuFdRs.js → _-3dgp-WsL.js} +1 -1
  16. package/dist/availability.js +98 -95
  17. package/dist/availability.js.br +0 -0
  18. package/dist/{event-Jiun7WTg.js → event-oXxnY6iL.js} +7 -7
  19. package/dist/event-oXxnY6iL.js.br +0 -0
  20. package/dist/event.js +7 -7
  21. package/dist/event.js.br +0 -0
  22. package/dist/gift-card-validation.js +2 -2
  23. package/dist/gift-card-validation.js.br +0 -0
  24. package/dist/gift-card.js +167 -174
  25. package/dist/gift-card.js.br +0 -0
  26. package/dist/hotel.js +3094 -11
  27. package/dist/hotel.js.br +0 -0
  28. package/dist/polyfill.js +3201 -3210
  29. package/dist/polyfill.js.br +0 -0
  30. package/dist/style.css +1 -1
  31. package/dist/style.css.br +0 -0
  32. package/package.json +7 -4
  33. package/dist/ActionField-1TedZ-ol.js.br +0 -0
  34. package/dist/AvailabilitySkeleton-IRkVJKVI.js.br +0 -0
  35. package/dist/CheckoutWindow-GzqBHFb5.js.br +0 -0
  36. package/dist/DateField.vue_vue_type_style_index_0_lang-N7m8Y11B.js.br +0 -0
  37. package/dist/Field-agqP-A21.js.br +0 -0
  38. package/dist/SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js.br +0 -0
  39. package/dist/ThankYou-0uAYL16f.js.br +0 -0
  40. package/dist/event-Jiun7WTg.js.br +0 -0
  41. package/dist/hotel-7JmuavEN.js +0 -3108
  42. package/dist/hotel-7JmuavEN.js.br +0 -0
@@ -1,4 +1,4 @@
1
- import { k as c, v as V, f as m, o as d, m as i, w as v, x as q, y as g, z as t, A as k, T as B, p as I, C, I as A, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js";
1
+ import { k as c, v as V, f as m, o as d, m as i, w as v, x as q, y as g, z as t, A as k, T as B, p as I, C, I as A, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-TJbkduwA.js";
2
2
  const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
3
3
  __name: "ActionField",
4
4
  props: {
Binary file
@@ -1,14 +1,14 @@
1
- import { k as N, B as j, s as V, W as B, X as R, c as J, r as K, f as m, Y as C, Z as P, o as t, l as s, x as A, z as e, p as i, G as y, y as Q, n as v, $ as F, m as w, T as H, A as E, C as I, q as x, h as ee, _ as O } from "./SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js";
2
- import { _ as ae } from "./DateField.vue_vue_type_style_index_0_lang-N7m8Y11B.js";
3
- import { E as z } from "./_-K1FuFdRs.js";
4
- import { F as p } from "./Field-agqP-A21.js";
5
- const le = {
1
+ import { k as N, B as j, s as V, W as B, X as R, c as J, r as K, f as m, Y as C, Z as P, o as t, l as s, x as A, z as e, p as i, G as y, y as Q, n as v, $ as F, m as w, T as H, A as E, C as I, q as x, L as ee, h as ae, _ as O } from "./SelectField.vue_vue_type_style_index_0_lang-TJbkduwA.js";
2
+ import { _ as le } from "./DateField.vue_vue_type_style_index_0_lang-jrJgxOtY.js";
3
+ import { E as z } from "./_-3dgp-WsL.js";
4
+ import { F as p } from "./Field-x6UKBgQi.js";
5
+ const te = {
6
6
  key: 0,
7
7
  class: "konnectio-availability-location"
8
- }, te = { id: "fresh-booking-availability-date-selection" }, ie = {
8
+ }, ie = { id: "fresh-booking-availability-date-selection" }, ne = {
9
9
  key: 1,
10
10
  id: "fresh-booking-availability-guest-selection"
11
- }, ne = { id: "fresh-booking-availability-confirmation" }, oe = /* @__PURE__ */ N({
11
+ }, oe = { id: "fresh-booking-availability-confirmation" }, se = /* @__PURE__ */ N({
12
12
  __name: "HotelAvailabilityForm",
13
13
  props: {
14
14
  booking: { type: Boolean, default: !1 },
@@ -22,7 +22,7 @@ const le = {
22
22
  departureDate: g,
23
23
  location: D,
24
24
  isExpired: T
25
- } = V(B()), { reset: q } = B(), { fetchAvailabilityData: G } = R(), { areListingsLoading: L, hotelList: M, hasHotelList: k } = V(R()), {
25
+ } = V(B()), { reset: q } = B(), { fetchAvailabilityData: M } = R(), { areListingsLoading: L, hotelList: G, hasHotelList: k } = V(R()), {
26
26
  firstSelectableDateOffset: U,
27
27
  lastSelectableDateOffset: $,
28
28
  disableChildSelection: b,
@@ -33,12 +33,12 @@ const le = {
33
33
  function Z() {
34
34
  if (d.booking === !1)
35
35
  if (Y.value) {
36
- const n = ee();
36
+ const n = ae();
37
37
  d.link[n] ? window.location.replace(d.link[n]) : d.link.en ? window.location.replace(d.link.en) : console.log("Sprog understøttes ikke");
38
38
  } else
39
39
  window.location.replace(d.link);
40
40
  else
41
- _.value && G();
41
+ _.value && M();
42
42
  }
43
43
  return C(f, (n) => {
44
44
  const l = new Date(new Date(n).setDate(new Date(n).getDate() + 1));
@@ -51,7 +51,7 @@ const le = {
51
51
  id: "konnectio-availability-form",
52
52
  class: x({ reservation: n.booking }),
53
53
  type: "availability",
54
- onSubmit: Z
54
+ onSubmit: ee(Z, ["prevent"])
55
55
  }, [
56
56
  A("ul", {
57
57
  id: "konnectio-availability-form-content",
@@ -64,7 +64,7 @@ const le = {
64
64
  { "has-location": e(k) }
65
65
  ])
66
66
  }, [
67
- e(k) ? (t(), s("li", le, [
67
+ e(k) ? (t(), s("li", te, [
68
68
  i(Q, {
69
69
  modelValue: e(D),
70
70
  "onUpdate:modelValue": l[0] || (l[0] = (o) => y(D) ? D.value = o : null),
@@ -72,12 +72,12 @@ const le = {
72
72
  icon: "location-dot",
73
73
  "icon-type": "fas",
74
74
  "icon-placement": "label",
75
- options: e(M),
75
+ options: e(G),
76
76
  searchable: !1
77
77
  }, null, 8, ["modelValue", "label", "options"])
78
78
  ])) : v("", !0),
79
- A("li", te, [
80
- i(ae, {
79
+ A("li", ie, [
80
+ i(le, {
81
81
  modelValue: h.value,
82
82
  "onUpdate:modelValue": l[1] || (l[1] = (o) => h.value = o),
83
83
  label: e(a)("availability.checkInOut"),
@@ -90,7 +90,7 @@ const le = {
90
90
  }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
91
91
  v("", !0)
92
92
  ]),
93
- !e(u) || !e(b) ? (t(), s("li", ie, [
93
+ !e(u) || !e(b) ? (t(), s("li", ne, [
94
94
  e(u) ? v("", !0) : (t(), s(F, { key: 0 }, [
95
95
  e(k) ? (t(), w(H, {
96
96
  key: 0,
@@ -138,7 +138,7 @@ const le = {
138
138
  }, null, 8, ["modelValue", "label", "description"]))
139
139
  ], 64))
140
140
  ])) : v("", !0),
141
- A("li", ne, [
141
+ A("li", oe, [
142
142
  i(I, {
143
143
  class: "konnectio-availability-submit-small",
144
144
  type: "submit",
@@ -158,21 +158,21 @@ const le = {
158
158
  ], 2)
159
159
  ], 34));
160
160
  }
161
- }), ve = /* @__PURE__ */ O(oe, [["__scopeId", "data-v-d30ddefe"]]), se = { class: "availability-skeleton" }, de = {
161
+ }), fe = /* @__PURE__ */ O(se, [["__scopeId", "data-v-50791fef"]]), de = { class: "availability-skeleton" }, ce = {
162
162
  key: 0,
163
163
  class: "availability-skeleton-navigation"
164
- }, ce = {
164
+ }, ue = {
165
165
  key: 2,
166
166
  class: "availability-skeleton-event"
167
- }, ue = /* @__PURE__ */ N({
167
+ }, re = /* @__PURE__ */ N({
168
168
  __name: "AvailabilitySkeleton",
169
169
  props: {
170
170
  view: { default: "hotel" },
171
171
  hotel: { type: Boolean, default: !1 }
172
172
  },
173
173
  setup(S) {
174
- return (a, d) => (t(), s("div", se, [
175
- a.view === "both" ? (t(), s("div", de, [
174
+ return (a, d) => (t(), s("div", de, [
175
+ a.view === "both" ? (t(), s("div", ce, [
176
176
  i(z, {
177
177
  height: "28px",
178
178
  width: "60px",
@@ -198,7 +198,7 @@ const le = {
198
198
  "with-icon": "",
199
199
  "no-label": ""
200
200
  })
201
- ], 2)) : (t(), s("div", ce, [
201
+ ], 2)) : (t(), s("div", ue, [
202
202
  i(p, { "with-icon": "" }),
203
203
  i(p, {
204
204
  "with-icon": "",
@@ -207,8 +207,8 @@ const le = {
207
207
  ]))
208
208
  ]));
209
209
  }
210
- }), fe = /* @__PURE__ */ O(ue, [["__scopeId", "data-v-be195a3f"]]);
210
+ }), ye = /* @__PURE__ */ O(re, [["__scopeId", "data-v-be195a3f"]]);
211
211
  export {
212
- fe as A,
213
- ve as H
212
+ ye as A,
213
+ fe as H
214
214
  };
@@ -1,4 +1,4 @@
1
- import { k as b, v as k, r as V, Z as $, o as p, m as B, w as I, x as d, p as C, z as i, T as P, I as T, _ as v, ai as A, q as h, aj as _, ak as w, l as g, F as u, n as q, B as N, a8 as f, s as F, c as G, al as j, P as z, Q as E } from "./SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js";
1
+ import { k as b, v as k, r as V, Z as $, o as p, m as B, w as I, x as s, p as C, z as i, T as P, I as T, _ as v, ai as A, q as h, aj as _, ak as w, l as g, F as u, n as q, B as N, a8 as f, s as F, c as G, al as j, P as z, Q as E } from "./SelectField.vue_vue_type_style_index_0_lang-TJbkduwA.js";
2
2
  const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
3
3
  __name: "PhoneField",
4
4
  props: {
@@ -14,15 +14,15 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
14
14
  inputStyle: {}
15
15
  },
16
16
  emits: ["update:modelValue"],
17
- setup(a, { emit: l }) {
18
- const t = l, n = a, c = n.id || k(), e = V("+45"), s = V("");
17
+ setup(t, { emit: l }) {
18
+ const a = l, n = t, c = n.id || k(), e = V("+45"), d = V("");
19
19
  function m() {
20
- t("update:modelValue", `${e.value} ${s.value}`);
20
+ a("update:modelValue", `${e.value} ${d.value}`);
21
21
  }
22
22
  return $(() => {
23
23
  if (n.modelValue) {
24
24
  const o = n.modelValue.split(" ");
25
- e.value = o[0], s.value = o[1];
25
+ e.value = o[0], d.value = o[1];
26
26
  }
27
27
  }), (o, r) => (p(), B(T, {
28
28
  label: o.label,
@@ -32,7 +32,7 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
32
32
  readonly: o.readonly
33
33
  }, {
34
34
  default: I(() => [
35
- d("div", O, [
35
+ s("div", O, [
36
36
  C(P, {
37
37
  modelValue: e.value,
38
38
  "onUpdate:modelValue": r[0] || (r[0] = (y) => e.value = y),
@@ -50,8 +50,8 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
50
50
  onInput: r[1] || (r[1] = (y) => m())
51
51
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
52
52
  C(P, {
53
- modelValue: s.value,
54
- "onUpdate:modelValue": r[2] || (r[2] = (y) => s.value = y),
53
+ modelValue: d.value,
54
+ "onUpdate:modelValue": r[2] || (r[2] = (y) => d.value = y),
55
55
  type: "number",
56
56
  name: "phone",
57
57
  autocomplete: "tel-national",
@@ -83,21 +83,21 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
83
83
  val: {}
84
84
  },
85
85
  emits: ["update:modelValue"],
86
- setup(a, { emit: l }) {
87
- const t = a, n = l;
86
+ setup(t, { emit: l }) {
87
+ const a = t, n = l;
88
88
  function c() {
89
- t.readonly !== !0 && n(
89
+ a.readonly !== !0 && n(
90
90
  "update:modelValue",
91
- t.type === "radio" ? t.val : t.numeric ? t.modelValue ? 0 : 1 : !t.modelValue
91
+ a.type === "radio" ? a.val : a.numeric ? a.modelValue ? 0 : 1 : !a.modelValue
92
92
  );
93
93
  }
94
- return (e, s) => (p(), B(T, {
94
+ return (e, d) => (p(), B(T, {
95
95
  required: e.required,
96
96
  type: e.type,
97
97
  readonly: e.readonly
98
98
  }, {
99
99
  default: I(() => [
100
- d("label", {
100
+ s("label", {
101
101
  class: h([
102
102
  "fresh-booking-click-box-container",
103
103
  { "is-readonly": e.readonly },
@@ -105,7 +105,7 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
105
105
  e.type === "radio" ? "radio" : "checkbox"
106
106
  ])
107
107
  }, [
108
- d("input", A(e.$attrs, {
108
+ s("input", A(e.$attrs, {
109
109
  required: !!e.required,
110
110
  type: e.type,
111
111
  name: e.name,
@@ -114,9 +114,9 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
114
114
  disabled: !!e.readonly,
115
115
  value: e.type === "radio" ? e.val : e.modelValue,
116
116
  checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue,
117
- onChange: s[0] || (s[0] = (m) => c())
117
+ onChange: d[0] || (d[0] = (m) => c())
118
118
  }), null, 16, D),
119
- d("div", {
119
+ s("div", {
120
120
  class: h([
121
121
  "fresh-booking-click-box",
122
122
  { checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue }
@@ -124,13 +124,13 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
124
124
  tabindex: "0",
125
125
  style: _(e.inputStyle),
126
126
  "data-test": e.name,
127
- onKeyup: s[1] || (s[1] = w((m) => c(), ["enter"]))
127
+ onKeyup: d[1] || (d[1] = w((m) => c(), ["enter"]))
128
128
  }, null, 46, H),
129
129
  e.label ? (p(), g("div", {
130
130
  key: 0,
131
131
  class: h(["fresh-booking-click-box-label", { "with-price": e.price }])
132
132
  }, [
133
- d("span", null, u(e.label), 1),
133
+ s("span", null, u(e.label), 1),
134
134
  e.price ? (p(), g("span", K, u(e.price), 1)) : q("", !0)
135
135
  ], 2)) : q("", !0)
136
136
  ], 2)
@@ -138,7 +138,7 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
138
138
  _: 1
139
139
  }, 8, ["required", "type", "readonly"]));
140
140
  }
141
- }), ee = /* @__PURE__ */ v(M, [["__scopeId", "data-v-7ef656cb"]]), R = {
141
+ }), ee = /* @__PURE__ */ v(M, [["__scopeId", "data-v-a2138dc3"]]), R = {
142
142
  href: "https://policies.google.com/privacy",
143
143
  target: "_blank"
144
144
  }, W = {
@@ -146,19 +146,19 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
146
146
  target: "_blank"
147
147
  }, Q = /* @__PURE__ */ b({
148
148
  __name: "GoogleNotice",
149
- setup(a) {
149
+ setup(t) {
150
150
  const { t: l } = N();
151
- return (t, n) => (p(), g("span", null, [
151
+ return (a, n) => (p(), g("span", null, [
152
152
  f(u(i(l)("googleNotice")) + " ", 1),
153
- d("a", R, u(i(l)("googlePrivacyPolicy")), 1),
153
+ s("a", R, u(i(l)("googlePrivacyPolicy")), 1),
154
154
  f(" " + u(i(l)("googleAnd")) + " ", 1),
155
- d("a", W, u(i(l)("googleTOS")), 1),
155
+ s("a", W, u(i(l)("googleTOS")), 1),
156
156
  f(" " + u(i(l)("googleApply")) + ". ", 1)
157
157
  ]));
158
158
  }
159
159
  });
160
- function S(a) {
161
- const l = a;
160
+ function S(t) {
161
+ const l = t;
162
162
  l.__i18n = l.__i18n || [], l.__i18n.push({
163
163
  locale: "",
164
164
  resource: {
@@ -180,17 +180,17 @@ function S(a) {
180
180
  });
181
181
  }
182
182
  typeof S == "function" && S(Q);
183
- const Z = (a) => (z("data-v-340cb9ce"), a = a(), E(), a), J = /* @__PURE__ */ Z(() => /* @__PURE__ */ d("div", { id: "fresh-booking-payment-checkout" }, null, -1)), L = [
183
+ const Z = (t) => (z("data-v-340cb9ce"), t = t(), E(), t), J = /* @__PURE__ */ Z(() => /* @__PURE__ */ s("div", { id: "fresh-booking-payment-checkout" }, null, -1)), L = [
184
184
  J
185
185
  ], X = /* @__PURE__ */ b({
186
186
  __name: "CheckoutWindow",
187
- setup(a) {
187
+ setup(t) {
188
188
  const { paymentGatewayId: l } = F(G());
189
189
  return $(() => {
190
- const t = document.createElement("script"), n = document.createElement("script");
191
- t.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), n.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(t), document.head.appendChild(n);
192
- }), (t, n) => (p(), g("div", null, [
193
- d("div", {
190
+ const a = document.createElement("script"), n = document.createElement("script");
191
+ a.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), n.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(a), document.head.appendChild(n);
192
+ }), (a, n) => (p(), g("div", null, [
193
+ s("div", {
194
194
  id: "fresh-booking-payment-checkout-wrapper",
195
195
  class: h({ reePay: i(l) === i(j).ReePay })
196
196
  }, L, 2)