@konnectio/core 4.0.56-rc15 → 4.0.56-rc17

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 (44) hide show
  1. package/dist/{ActionField-v2VjBwyP.js → ActionField-FHpkuvKb.js} +3 -3
  2. package/dist/ActionField-FHpkuvKb.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-Qp8pBuKB.js → AvailabilitySkeleton-5cdinrJb.js} +31 -32
  4. package/dist/AvailabilitySkeleton-5cdinrJb.js.br +0 -0
  5. package/dist/{CheckoutWindow-zKWL14ZQ.js → CheckoutWindow-2QBoV8Ux.js} +24 -24
  6. package/dist/CheckoutWindow-2QBoV8Ux.js.br +0 -0
  7. package/dist/DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js +8026 -0
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js.br +0 -0
  9. package/dist/{Field-813GNeV-.js → Field-XgLyezkE.js} +8 -9
  10. package/dist/Field-XgLyezkE.js.br +0 -0
  11. package/dist/ThankYou-qlEQeAKd.js +12057 -0
  12. package/dist/ThankYou-qlEQeAKd.js.br +0 -0
  13. package/dist/{SelectField.vue_vue_type_style_index_0_lang-e8Rmd6FZ.js → _-488L5zGs.js} +5419 -5540
  14. package/dist/_-488L5zGs.js.br +0 -0
  15. package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
  16. package/dist/availability.js +45 -48
  17. package/dist/availability.js.br +0 -0
  18. package/dist/{event-mQu2QsEx.js → event-TnRfky1i.js} +43 -43
  19. package/dist/event-TnRfky1i.js.br +0 -0
  20. package/dist/event.js +63 -64
  21. package/dist/event.js.br +0 -0
  22. package/dist/gift-card-validation.js +82 -55
  23. package/dist/gift-card-validation.js.br +0 -0
  24. package/dist/gift-card.js +209 -208
  25. package/dist/gift-card.js.br +0 -0
  26. package/dist/hotel.js +959 -920
  27. package/dist/hotel.js.br +0 -0
  28. package/dist/polyfill.js +97 -97
  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 +13 -13
  33. package/dist/ActionField-v2VjBwyP.js.br +0 -0
  34. package/dist/AvailabilitySkeleton-Qp8pBuKB.js.br +0 -0
  35. package/dist/CheckoutWindow-zKWL14ZQ.js.br +0 -0
  36. package/dist/DateField.vue_vue_type_style_index_0_lang-cmnH2g2d.js +0 -8558
  37. package/dist/DateField.vue_vue_type_style_index_0_lang-cmnH2g2d.js.br +0 -0
  38. package/dist/Field-813GNeV-.js.br +0 -0
  39. package/dist/SelectField.vue_vue_type_style_index_0_lang-e8Rmd6FZ.js.br +0 -0
  40. package/dist/ThankYou-CibbgAJf.js +0 -13233
  41. package/dist/ThankYou-CibbgAJf.js.br +0 -0
  42. package/dist/_-VRZUGIKe.js +0 -19
  43. package/dist/_commonjsHelpers-2ufMB8rV.js +0 -30
  44. package/dist/event-mQu2QsEx.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-e8Rmd6FZ.js";
1
+ import { k as c, l as V, f as m, o as d, m as i, w as v, n as q, _ as g, p as t, q as k, T as B, t as I, C, I as F, v as A } from "./_-488L5zGs.js";
2
2
  const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
3
3
  __name: "ActionField",
4
4
  props: {
@@ -39,7 +39,7 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
39
39
  function b() {
40
40
  s("action");
41
41
  }
42
- return (e, a) => (d(), i(A, {
42
+ return (e, a) => (d(), i(F, {
43
43
  label: e.label,
44
44
  id: t(o),
45
45
  icon: e.icon,
@@ -92,7 +92,7 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
92
92
  _: 1
93
93
  }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
94
94
  }
95
- }), h = /* @__PURE__ */ F(T, [["__scopeId", "data-v-3e77e321"]]);
95
+ }), h = /* @__PURE__ */ A(T, [["__scopeId", "data-v-3e77e321"]]);
96
96
  export {
97
97
  h as A
98
98
  };
Binary file
@@ -1,7 +1,6 @@
1
- import { k as N, B as j, s as A, 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 D, 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-e8Rmd6FZ.js";
2
- import { _ as le } from "./DateField.vue_vue_type_style_index_0_lang-cmnH2g2d.js";
3
- import { E as z } from "./_-VRZUGIKe.js";
4
- import { F as p } from "./Field-813GNeV-.js";
1
+ import { k as N, B as Q, s as A, D as B, F, c as W, r as X, f as m, G as R, H as Y, o as t, x as s, n as D, p as e, t as i, J as y, _ as Z, y as v, K as C, m as w, T as H, q as I, C as z, A as x, L as ee, h as ae, v as O, z as E } from "./_-488L5zGs.js";
2
+ import { _ as le } from "./DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js";
3
+ import { F as p } from "./Field-XgLyezkE.js";
5
4
  const te = {
6
5
  key: 0,
7
6
  class: "konnectio-availability-location"
@@ -15,24 +14,24 @@ const te = {
15
14
  link: {}
16
15
  },
17
16
  setup(S) {
18
- const { t: a } = j(), d = S, {
17
+ const { t: a } = Q(), d = S, {
19
18
  adults: c,
20
19
  children: r,
21
20
  arrivalDate: f,
22
21
  departureDate: g,
23
22
  location: _,
24
23
  isExpired: T
25
- } = A(B()), { reset: q } = B(), { fetchAvailabilityData: M } = R(), { areListingsLoading: L, hotelList: G, hasHotelList: k } = A(R()), {
26
- firstSelectableDateOffset: $,
27
- lastSelectableDateOffset: U,
24
+ } = A(B()), { reset: q } = B(), { fetchAvailabilityData: M } = F(), { areListingsLoading: L, hotelList: G, hasHotelList: k } = A(F()), {
25
+ firstSelectableDateOffset: U,
26
+ lastSelectableDateOffset: $,
28
27
  disableChildSelection: b,
29
28
  disableAdultSelection: u
30
- } = A(J()), h = K([]), W = m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + ($.value - 1))));
31
- m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + U.value))), m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + $.value)));
32
- const X = m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + (U.value + 1)))), V = m(() => !(!u && c.value === 0)), Y = m(() => typeof d.link != "string");
33
- function Z() {
29
+ } = A(W()), h = X([]), J = m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (U.value - 1))));
30
+ m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + $.value))), m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + U.value)));
31
+ const K = m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + ($.value + 1)))), V = m(() => !(!u && c.value === 0)), j = m(() => typeof d.link != "string");
32
+ function P() {
34
33
  if (d.booking === !1)
35
- if (Y.value) {
34
+ if (j.value) {
36
35
  const n = ae();
37
36
  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
37
  } else
@@ -40,18 +39,18 @@ const te = {
40
39
  else
41
40
  V.value && M();
42
41
  }
43
- return C(f, (n) => {
42
+ return R(f, (n) => {
44
43
  const l = new Date(new Date(n).setDate(new Date(n).getDate() + 1));
45
44
  new Date(g.value) < l && (g.value = l);
46
- }), C(h, (n) => {
45
+ }), R(h, (n) => {
47
46
  f.value = n[0], g.value = n[1];
48
- }), P(() => {
47
+ }), Y(() => {
49
48
  T.value && q(), h.value = [f.value, g.value];
50
49
  }), (n, l) => (t(), s("form", {
51
50
  id: "konnectio-availability-form",
52
51
  class: x({ reservation: n.booking }),
53
52
  type: "availability",
54
- onSubmit: ee(Z, ["prevent"])
53
+ onSubmit: ee(P, ["prevent"])
55
54
  }, [
56
55
  D("ul", {
57
56
  id: "konnectio-availability-form-content",
@@ -65,7 +64,7 @@ const te = {
65
64
  ])
66
65
  }, [
67
66
  e(k) ? (t(), s("li", te, [
68
- i(Q, {
67
+ i(Z, {
69
68
  modelValue: e(_),
70
69
  "onUpdate:modelValue": l[0] || (l[0] = (o) => y(_) ? _.value = o : null),
71
70
  label: e(a)("general.location"),
@@ -84,14 +83,14 @@ const te = {
84
83
  "icon-type": "fas",
85
84
  "icon-placement": "label",
86
85
  "min-range": 1,
87
- "min-date": W.value,
88
- "max-date": X.value,
86
+ "min-date": J.value,
87
+ "max-date": K.value,
89
88
  range: ""
90
89
  }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
91
90
  v("", !0)
92
91
  ]),
93
92
  !e(u) || !e(b) ? (t(), s("li", ne, [
94
- e(u) ? v("", !0) : (t(), s(F, { key: 0 }, [
93
+ e(u) ? v("", !0) : (t(), s(C, { key: 0 }, [
95
94
  e(k) ? (t(), w(H, {
96
95
  key: 0,
97
96
  modelValue: e(c),
@@ -102,7 +101,7 @@ const te = {
102
101
  "icon-placement": "label",
103
102
  name: "adults",
104
103
  icon: "male"
105
- }, null, 8, ["modelValue", "label", "description"])) : (t(), w(E, {
104
+ }, null, 8, ["modelValue", "label", "description"])) : (t(), w(I, {
106
105
  key: 1,
107
106
  modelValue: e(c),
108
107
  "onUpdate:modelValue": l[5] || (l[5] = (o) => y(c) ? c.value = o : null),
@@ -114,7 +113,7 @@ const te = {
114
113
  icon: "male"
115
114
  }, null, 8, ["modelValue", "label", "description"]))
116
115
  ], 64)),
117
- e(b) ? v("", !0) : (t(), s(F, { key: 1 }, [
116
+ e(b) ? v("", !0) : (t(), s(C, { key: 1 }, [
118
117
  e(k) ? (t(), w(H, {
119
118
  key: 0,
120
119
  modelValue: e(r),
@@ -125,7 +124,7 @@ const te = {
125
124
  "icon-placement": "label",
126
125
  name: "children",
127
126
  icon: "child"
128
- }, null, 8, ["modelValue", "label", "description"])) : (t(), w(E, {
127
+ }, null, 8, ["modelValue", "label", "description"])) : (t(), w(I, {
129
128
  key: 1,
130
129
  modelValue: e(r),
131
130
  "onUpdate:modelValue": l[7] || (l[7] = (o) => y(r) ? r.value = o : null),
@@ -139,7 +138,7 @@ const te = {
139
138
  ], 64))
140
139
  ])) : v("", !0),
141
140
  D("li", oe, [
142
- i(I, {
141
+ i(z, {
143
142
  class: "konnectio-availability-submit-small",
144
143
  type: "submit",
145
144
  icon: "search",
@@ -147,7 +146,7 @@ const te = {
147
146
  disabled: !V.value,
148
147
  "is-loading": e(L)
149
148
  }, null, 8, ["disabled", "is-loading"]),
150
- i(I, {
149
+ i(z, {
151
150
  class: "konnectio-availability-submit-large",
152
151
  type: "submit",
153
152
  label: e(a)("availability.buttonLabel"),
@@ -158,7 +157,7 @@ const te = {
158
157
  ], 2)
159
158
  ], 34));
160
159
  }
161
- }), ye = /* @__PURE__ */ O(se, [["__scopeId", "data-v-50791fef"]]), de = { class: "availability-skeleton" }, ce = {
160
+ }), fe = /* @__PURE__ */ O(se, [["__scopeId", "data-v-50791fef"]]), de = { class: "availability-skeleton" }, ce = {
162
161
  key: 0,
163
162
  class: "availability-skeleton-navigation"
164
163
  }, ue = { class: "availability-skeleton-content" }, re = {
@@ -173,12 +172,12 @@ const te = {
173
172
  setup(S) {
174
173
  return (a, d) => (t(), s("div", de, [
175
174
  a.view === "both" ? (t(), s("div", ce, [
176
- i(z, {
175
+ i(E, {
177
176
  height: "28px",
178
177
  width: "60px",
179
178
  "border-radius": "20px"
180
179
  }),
181
- i(z, {
180
+ i(E, {
182
181
  height: "28px",
183
182
  width: "60px",
184
183
  "border-radius": "20px"
@@ -209,8 +208,8 @@ const te = {
209
208
  ])
210
209
  ]));
211
210
  }
212
- }), ge = /* @__PURE__ */ O(be, [["__scopeId", "data-v-4e105147"]]);
211
+ }), ye = /* @__PURE__ */ O(be, [["__scopeId", "data-v-ad344f0b"]]);
213
212
  export {
214
- ge as A,
215
- ye as H
213
+ ye as A,
214
+ fe as H
216
215
  };
@@ -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 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-e8Rmd6FZ.js";
1
+ import { k as b, l as k, r as V, H as $, o as p, m as B, w as A, n as s, t as C, p as i, T as P, I, v, ai as T, A as h, aj as w, ak as N, x as g, P as u, y as S, B as _, $ as f, s as G, c as F, al as j, a5 as E, a6 as H } from "./_-488L5zGs.js";
2
2
  const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
3
3
  __name: "PhoneField",
4
4
  props: {
@@ -24,14 +24,14 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
24
24
  const o = n.modelValue.split(" ");
25
25
  e.value = o[0], d.value = o[1];
26
26
  }
27
- }), (o, r) => (p(), B(T, {
27
+ }), (o, r) => (p(), B(I, {
28
28
  label: o.label,
29
29
  id: i(c),
30
30
  type: "phone",
31
31
  required: o.required,
32
32
  readonly: o.readonly
33
33
  }, {
34
- default: I(() => [
34
+ default: A(() => [
35
35
  s("div", O, [
36
36
  C(P, {
37
37
  modelValue: e.value,
@@ -67,7 +67,7 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
67
67
  _: 1
68
68
  }, 8, ["label", "id", "required", "readonly"]));
69
69
  }
70
- }), x = /* @__PURE__ */ v(U, [["__scopeId", "data-v-5cd094ab"]]), D = ["required", "type", "name", "readonly", "disabled", "value", "checked"], H = ["data-test"], K = { key: 0 }, M = /* @__PURE__ */ b({
70
+ }), x = /* @__PURE__ */ v(U, [["__scopeId", "data-v-5cd094ab"]]), z = ["required", "type", "name", "readonly", "disabled", "value", "checked"], D = ["data-test"], K = { key: 0 }, M = /* @__PURE__ */ b({
71
71
  __name: "Checkbox",
72
72
  props: {
73
73
  modelValue: { type: [String, Boolean, Number] },
@@ -91,12 +91,12 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
91
91
  a.type === "radio" ? a.val : a.numeric ? a.modelValue ? 0 : 1 : !a.modelValue
92
92
  );
93
93
  }
94
- return (e, d) => (p(), B(T, {
94
+ return (e, d) => (p(), B(I, {
95
95
  required: e.required,
96
96
  type: e.type,
97
97
  readonly: e.readonly
98
98
  }, {
99
- default: I(() => [
99
+ default: A(() => [
100
100
  s("label", {
101
101
  class: h([
102
102
  "fresh-booking-click-box-container",
@@ -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
- s("input", A(e.$attrs, {
108
+ s("input", T(e.$attrs, {
109
109
  required: !!e.required,
110
110
  type: e.type,
111
111
  name: e.name,
@@ -115,24 +115,24 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
115
115
  value: e.type === "radio" ? e.val : e.modelValue,
116
116
  checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue,
117
117
  onChange: d[0] || (d[0] = (m) => c())
118
- }), null, 16, D),
118
+ }), null, 16, z),
119
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 }
123
123
  ]),
124
124
  tabindex: "0",
125
- style: _(e.inputStyle),
125
+ style: w(e.inputStyle),
126
126
  "data-test": e.name,
127
- onKeyup: d[1] || (d[1] = w((m) => c(), ["enter"]))
128
- }, null, 46, H),
127
+ onKeyup: d[1] || (d[1] = N((m) => c(), ["enter"]))
128
+ }, null, 46, D),
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
133
  s("span", null, u(e.label), 1),
134
- e.price ? (p(), g("span", K, u(e.price), 1)) : q("", !0)
135
- ], 2)) : q("", !0)
134
+ e.price ? (p(), g("span", K, u(e.price), 1)) : S("", !0)
135
+ ], 2)) : S("", !0)
136
136
  ], 2)
137
137
  ]),
138
138
  _: 1
@@ -144,10 +144,10 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
144
144
  }, W = {
145
145
  href: "https://policies.google.com/terms",
146
146
  target: "_blank"
147
- }, Q = /* @__PURE__ */ b({
147
+ }, J = /* @__PURE__ */ b({
148
148
  __name: "GoogleNotice",
149
149
  setup(t) {
150
- const { t: l } = N();
150
+ const { t: l } = _();
151
151
  return (a, n) => (p(), g("span", null, [
152
152
  f(u(i(l)("googleNotice")) + " ", 1),
153
153
  s("a", R, u(i(l)("googlePrivacyPolicy")), 1),
@@ -157,7 +157,7 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
157
157
  ]));
158
158
  }
159
159
  });
160
- function S(t) {
160
+ function q(t) {
161
161
  const l = t;
162
162
  l.__i18n = l.__i18n || [], l.__i18n.push({
163
163
  locale: "",
@@ -179,13 +179,13 @@ function S(t) {
179
179
  }
180
180
  });
181
181
  }
182
- typeof S == "function" && S(Q);
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
- J
185
- ], X = /* @__PURE__ */ b({
182
+ typeof q == "function" && q(J);
183
+ const L = (t) => (E("data-v-340cb9ce"), t = t(), H(), t), Q = /* @__PURE__ */ L(() => /* @__PURE__ */ s("div", { id: "fresh-booking-payment-checkout" }, null, -1)), X = [
184
+ Q
185
+ ], Y = /* @__PURE__ */ b({
186
186
  __name: "CheckoutWindow",
187
187
  setup(t) {
188
- const { paymentGatewayId: l } = F(G());
188
+ const { paymentGatewayId: l } = G(F());
189
189
  return $(() => {
190
190
  const a = document.createElement("script"), n = document.createElement("script");
191
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);
@@ -193,13 +193,13 @@ const Z = (t) => (z("data-v-340cb9ce"), t = t(), E(), t), J = /* @__PURE__ */ Z(
193
193
  s("div", {
194
194
  id: "fresh-booking-payment-checkout-wrapper",
195
195
  class: h({ reePay: i(l) === i(j).ReePay })
196
- }, L, 2)
196
+ }, X, 2)
197
197
  ]));
198
198
  }
199
- }), oe = /* @__PURE__ */ v(X, [["__scopeId", "data-v-340cb9ce"]]);
199
+ }), oe = /* @__PURE__ */ v(Y, [["__scopeId", "data-v-340cb9ce"]]);
200
200
  export {
201
201
  ee as C,
202
202
  x as P,
203
- Q as _,
203
+ J as _,
204
204
  oe as a
205
205
  };