@konnectio/core 4.0.56-rc27 → 4.0.56-rc29

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 (41) hide show
  1. package/dist/{ActionField-ePKg0xO1.js → ActionField-ndq4CxMf.js} +9 -9
  2. package/dist/ActionField-ndq4CxMf.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-5DackFae.js → AvailabilitySkeleton-ACZu1cbe.js} +2 -1
  4. package/dist/AvailabilitySkeleton-ACZu1cbe.js.br +0 -0
  5. package/dist/{CheckoutWindow-6eRdB_Nr.js → CheckoutWindow-Uh5py1iz.js} +27 -27
  6. package/dist/CheckoutWindow-Uh5py1iz.js.br +0 -0
  7. package/dist/{ErrorMessage-m6fm80y-.js → ErrorMessage-YtIshvvf.js} +1 -1
  8. package/dist/ErrorMessage-YtIshvvf.js.br +0 -0
  9. package/dist/{EventAvailabilityForm-njV8OLfe.js → EventAvailabilityForm-0ScLIbfr.js} +17 -17
  10. package/dist/EventAvailabilityForm-0ScLIbfr.js.br +0 -0
  11. package/dist/{Field-_xFdfmMy.js → Field-h1g7Dq--.js} +1033 -1025
  12. package/dist/Field-h1g7Dq--.js.br +0 -0
  13. package/dist/HotelAvailabilityForm-VSefGp9z.js +212 -0
  14. package/dist/HotelAvailabilityForm-VSefGp9z.js.br +0 -0
  15. package/dist/{TermsOfService-yZDjWHoR.js → TermsOfService-PO3NnQmn.js} +4 -4
  16. package/dist/availability.js +45 -41
  17. package/dist/availability.js.br +0 -0
  18. package/dist/event.js +46 -46
  19. package/dist/event.js.br +0 -0
  20. package/dist/gift-card-validation.js +17 -17
  21. package/dist/gift-card-validation.js.br +0 -0
  22. package/dist/gift-card.js +78 -78
  23. package/dist/gift-card.js.br +0 -0
  24. package/dist/hotel.js +35 -35
  25. package/dist/hotel.js.br +0 -0
  26. package/dist/{masonry.plugin-X7EsV_uU.js → masonry.plugin-KCvCKFtb.js} +3 -3
  27. package/dist/masonry.plugin-KCvCKFtb.js.br +0 -0
  28. package/dist/polyfill.js +84 -84
  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 +1 -4
  33. package/dist/ActionField-ePKg0xO1.js.br +0 -0
  34. package/dist/AvailabilitySkeleton-5DackFae.js.br +0 -0
  35. package/dist/CheckoutWindow-6eRdB_Nr.js.br +0 -0
  36. package/dist/ErrorMessage-m6fm80y-.js.br +0 -0
  37. package/dist/EventAvailabilityForm-njV8OLfe.js.br +0 -0
  38. package/dist/Field-_xFdfmMy.js.br +0 -0
  39. package/dist/HotelAvailabilityForm-_WQ7D6ZV.js +0 -164
  40. package/dist/HotelAvailabilityForm-_WQ7D6ZV.js.br +0 -0
  41. package/dist/masonry.plugin-X7EsV_uU.js.br +0 -0
package/dist/style.css.br CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.0.56-rc27",
3
+ "version": "4.0.56-rc29",
4
4
  "author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
5
5
  "homepage": "https://konnectio.dk",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -94,9 +94,6 @@
94
94
  "vite-plugin-compression": "0.5.1",
95
95
  "vue-tsc": "1.8.27"
96
96
  },
97
- "peerDependencies": {
98
- "vue": "^3.3.10"
99
- },
100
97
  "contributors": [
101
98
  {
102
99
  "name": "Benjamin Bach Jensen",
Binary file
Binary file
Binary file
Binary file
@@ -1,164 +0,0 @@
1
- import { d as J, u as K, i as P, s as h, a as U, b as x, c as Q, r as W, e as m, w as C, o as X, f as n, g as v, h as _, j as e, k, l as f, _ as Y, m as g, F as R, n as D, T as B, p as F, C as H, q as I, t as Z, v as ee, x as ae } from "./Field-_xFdfmMy.js";
2
- import { _ as le } from "./AvailabilitySkeleton-5DackFae.js";
3
- const te = {
4
- key: 0,
5
- class: "konnectio-availability-location"
6
- }, ie = { id: "fresh-booking-availability-date-selection" }, ne = {
7
- key: 1,
8
- id: "fresh-booking-availability-guest-selection"
9
- }, oe = { id: "fresh-booking-availability-confirmation" }, se = /* @__PURE__ */ J({
10
- __name: "HotelAvailabilityForm",
11
- props: {
12
- booking: { type: Boolean, default: !1 },
13
- link: {}
14
- },
15
- setup(N) {
16
- const { t: l } = K(), O = P("emitter"), o = N, {
17
- adults: s,
18
- children: c,
19
- arrivalDate: d,
20
- departureDate: b,
21
- location: w,
22
- isExpired: T
23
- } = h(U()), { reset: $ } = U(), { fetchAvailabilityData: j } = x(), { areListingsLoading: A, hotelList: q, hasHotelList: y } = h(x()), {
24
- firstSelectableDateOffset: L,
25
- lastSelectableDateOffset: S,
26
- disableChildSelection: r,
27
- disableAdultSelection: u
28
- } = h(Q()), p = W([]), z = m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (L.value - 1))));
29
- m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + S.value))), m(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + L.value)));
30
- const E = m(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (S.value + 1)))), V = m(() => !(!u && s.value === 0)), M = m(() => typeof o.link != "string");
31
- function G() {
32
- if (o.booking === !1)
33
- if (M.value) {
34
- const t = ee();
35
- o.link[t] ? window.location.replace(o.link[t]) : o.link.en ? window.location.replace(o.link.en) : console.log("Sprog understøttes ikke");
36
- } else
37
- window.location.replace(o.link);
38
- else
39
- V.value && j();
40
- }
41
- return C(d, (t) => {
42
- const a = new Date(new Date(t).setDate(new Date(t).getDate() + 1));
43
- new Date(b.value) < a && (b.value = a);
44
- }), O.on("forcedDateChange", () => {
45
- p.value = [d.value, b.value];
46
- }), C(p, (t) => {
47
- d.value = t[0], b.value = t[1];
48
- }), X(() => {
49
- T.value && $(), p.value = [d.value, b.value];
50
- }), (t, a) => (n(), v("form", {
51
- id: "konnectio-availability-form",
52
- class: I({ reservation: t.booking }),
53
- type: "availability",
54
- onSubmit: Z(G, ["prevent"])
55
- }, [
56
- _("ul", {
57
- id: "konnectio-availability-form-content",
58
- class: I([
59
- { "is-booking-page": t.booking },
60
- { "only-adult-guests": !e(u) && e(r) },
61
- { "only-child-guests": !e(r) && e(u) },
62
- { "no-guests": e(u) && e(r) },
63
- { "all-guests": !e(u) && !e(r) },
64
- { "has-location": e(y) }
65
- ])
66
- }, [
67
- e(y) ? (n(), v("li", te, [
68
- k(Y, {
69
- modelValue: e(w),
70
- "onUpdate:modelValue": a[0] || (a[0] = (i) => f(w) ? w.value = i : null),
71
- label: e(l)("general.location"),
72
- icon: "location-dot",
73
- "icon-type": "fas",
74
- "icon-placement": "label",
75
- options: e(q),
76
- searchable: !1
77
- }, null, 8, ["modelValue", "label", "options"])
78
- ])) : g("", !0),
79
- _("li", ie, [
80
- k(le, {
81
- modelValue: p.value,
82
- "onUpdate:modelValue": a[1] || (a[1] = (i) => p.value = i),
83
- label: e(l)("availability.checkInOut"),
84
- "icon-type": "fas",
85
- "icon-placement": "label",
86
- "min-range": 1,
87
- "min-date": z.value,
88
- "max-date": E.value,
89
- range: ""
90
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
91
- g("", !0)
92
- ]),
93
- !e(u) || !e(r) ? (n(), v("li", ne, [
94
- e(u) ? g("", !0) : (n(), v(R, { key: 0 }, [
95
- e(y) ? (n(), D(B, {
96
- key: 0,
97
- modelValue: e(s),
98
- "onUpdate:modelValue": a[4] || (a[4] = (i) => f(s) ? s.value = i : null),
99
- label: e(l)("availability.adults"),
100
- description: e(l)("general.adultAgeRange"),
101
- "icon-type": "fas",
102
- "icon-placement": "label",
103
- name: "adults",
104
- icon: "male"
105
- }, null, 8, ["modelValue", "label", "description"])) : (n(), D(F, {
106
- key: 1,
107
- modelValue: e(s),
108
- "onUpdate:modelValue": a[5] || (a[5] = (i) => f(s) ? s.value = i : null),
109
- label: e(l)("availability.adults"),
110
- description: e(l)("general.adultAgeRange"),
111
- "icon-type": "fas",
112
- "icon-placement": "label",
113
- name: "adults",
114
- icon: "male"
115
- }, null, 8, ["modelValue", "label", "description"]))
116
- ], 64)),
117
- e(r) ? g("", !0) : (n(), v(R, { key: 1 }, [
118
- e(y) ? (n(), D(B, {
119
- key: 0,
120
- modelValue: e(c),
121
- "onUpdate:modelValue": a[6] || (a[6] = (i) => f(c) ? c.value = i : null),
122
- label: e(l)("availability.children"),
123
- description: e(l)("general.childAgeRange"),
124
- "icon-type": "fas",
125
- "icon-placement": "label",
126
- name: "children",
127
- icon: "child"
128
- }, null, 8, ["modelValue", "label", "description"])) : (n(), D(F, {
129
- key: 1,
130
- modelValue: e(c),
131
- "onUpdate:modelValue": a[7] || (a[7] = (i) => f(c) ? c.value = i : null),
132
- label: e(l)("availability.children"),
133
- description: e(l)("general.childAgeRange"),
134
- "icon-type": "fas",
135
- "icon-placement": "label",
136
- name: "children",
137
- icon: "child"
138
- }, null, 8, ["modelValue", "label", "description"]))
139
- ], 64))
140
- ])) : g("", !0),
141
- _("li", oe, [
142
- k(H, {
143
- class: "konnectio-availability-submit-small",
144
- type: "submit",
145
- icon: "search",
146
- "icon-type": "fas",
147
- disabled: !V.value,
148
- "is-loading": e(A)
149
- }, null, 8, ["disabled", "is-loading"]),
150
- k(H, {
151
- class: "konnectio-availability-submit-large",
152
- type: "submit",
153
- label: e(l)("availability.buttonLabel"),
154
- disabled: !V.value,
155
- "is-loading": e(A)
156
- }, null, 8, ["label", "disabled", "is-loading"])
157
- ])
158
- ], 2)
159
- ], 34));
160
- }
161
- }), de = /* @__PURE__ */ ae(se, [["__scopeId", "data-v-e14cfaa9"]]);
162
- export {
163
- de as H
164
- };
Binary file