@konnectio/core 4.0.63 → 4.0.65

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 (76) hide show
  1. package/dist/{ActionField-3MggPKk9.js → ActionField-D5c9yQMq.js} +36 -28
  2. package/dist/ActionField-D5c9yQMq.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BfyLbK2o.js +299 -0
  4. package/dist/AvailabilitySkeleton-BfyLbK2o.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js} +934 -924
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js.br +0 -0
  7. package/dist/{CheckoutWindow-DolJgk40.js → CheckoutWindow-B74NMuGr.js} +174 -166
  8. package/dist/CheckoutWindow-B74NMuGr.js.br +0 -0
  9. package/dist/{ErrorMessage-BksKCxAq.js → ErrorMessage-CWR5rjTx.js} +24 -16
  10. package/dist/ErrorMessage-CWR5rjTx.js.br +0 -0
  11. package/dist/EventAvailabilityForm-lFAnwVMX.js +125 -0
  12. package/dist/EventAvailabilityForm-lFAnwVMX.js.br +0 -0
  13. package/dist/Field-C4DyN4XC.js +58 -0
  14. package/dist/Field-C4DyN4XC.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js +18813 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js.br +0 -0
  17. package/dist/TermsOfService-Bx4b2VxT.js +44 -0
  18. package/dist/TermsOfService-Bx4b2VxT.js.br +0 -0
  19. package/dist/_-DmU4JLX1.js +20 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js +77 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js.br +0 -0
  22. package/dist/_commonjsHelpers-BbdZelfp.js +25 -0
  23. package/dist/_commonjsHelpers-BbdZelfp.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-DEszgcWK.js → _sentry-release-injection-file-tJBg8sGS.js} +1643 -1635
  25. package/dist/_sentry-release-injection-file-tJBg8sGS.js.br +0 -0
  26. package/dist/availability.js +65 -55
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +29 -21
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +260 -252
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +64 -56
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +137 -129
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/giftCard-SDJGsDep.js +134 -0
  37. package/dist/giftCard-SDJGsDep.js.br +0 -0
  38. package/dist/hotel.js +939 -920
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-GGoTX7a7.js → masonry.plugin-BhK5XQta.js} +860 -852
  41. package/dist/masonry.plugin-BhK5XQta.js.br +0 -0
  42. package/dist/{mitt-DnPlcQNp.js → mitt-CGFh35r5.js} +505 -497
  43. package/dist/mitt-CGFh35r5.js.br +0 -0
  44. package/dist/polyfill.js +6471 -6259
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-2RYcVxT9.js → style-BQlIFUN3.js} +418 -403
  47. package/dist/style-BQlIFUN3.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/dist/{_commonjsHelpers-DEK47QeC.js → tracing-B1Jp160Y.js} +597 -544
  51. package/dist/tracing-B1Jp160Y.js.br +0 -0
  52. package/package.json +16 -16
  53. package/dist/ActionField-3MggPKk9.js.br +0 -0
  54. package/dist/AvailabilitySkeleton-DSgC6hn3.js +0 -293
  55. package/dist/AvailabilitySkeleton-DSgC6hn3.js.br +0 -0
  56. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js.br +0 -0
  57. package/dist/CheckoutWindow-DolJgk40.js.br +0 -0
  58. package/dist/ErrorMessage-BksKCxAq.js.br +0 -0
  59. package/dist/EventAvailabilityForm-DZljldrC.js +0 -117
  60. package/dist/EventAvailabilityForm-DZljldrC.js.br +0 -0
  61. package/dist/Field-DGi_AnA6.js +0 -50
  62. package/dist/Field-DGi_AnA6.js.br +0 -0
  63. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js +0 -18734
  64. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js.br +0 -0
  65. package/dist/TermsOfService-LDUTInOo.js +0 -36
  66. package/dist/TermsOfService-LDUTInOo.js.br +0 -0
  67. package/dist/_-CBEOFztf.js +0 -12
  68. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js +0 -69
  69. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.br +0 -0
  70. package/dist/_commonjsHelpers-DEK47QeC.js.br +0 -0
  71. package/dist/_sentry-release-injection-file-DEszgcWK.js.br +0 -0
  72. package/dist/giftCard-DLrIdehA.js +0 -126
  73. package/dist/giftCard-DLrIdehA.js.br +0 -0
  74. package/dist/masonry.plugin-GGoTX7a7.js.br +0 -0
  75. package/dist/mitt-DnPlcQNp.js.br +0 -0
  76. package/dist/style-2RYcVxT9.js.br +0 -0
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.0.63",
3
+ "version": "4.0.65",
4
4
  "author": "Konnectio <info@konnectio.com> (https://konnectio.dk)",
5
5
  "homepage": "https://konnectio.dk",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -38,15 +38,15 @@
38
38
  "@chenfengyuan/vue-number-input": "2.0.1",
39
39
  "@egjs/flicking-plugins": "4.7.1",
40
40
  "@egjs/vue3-flicking": "4.11.3",
41
- "@fortawesome/fontawesome-pro": "6.5.2",
42
- "@fortawesome/fontawesome-svg-core": "6.5.2",
43
- "@fortawesome/free-brands-svg-icons": "6.5.2",
44
- "@fortawesome/pro-light-svg-icons": "6.5.2",
45
- "@fortawesome/pro-solid-svg-icons": "6.5.2",
41
+ "@fortawesome/fontawesome-pro": "6.6.0",
42
+ "@fortawesome/fontawesome-svg-core": "6.6.0",
43
+ "@fortawesome/free-brands-svg-icons": "6.6.0",
44
+ "@fortawesome/pro-light-svg-icons": "6.6.0",
45
+ "@fortawesome/pro-solid-svg-icons": "6.6.0",
46
46
  "@fortawesome/vue-fontawesome": "3.0.8",
47
47
  "@intlify/unplugin-vue-i18n": "4.0.0",
48
- "@sentry/vue": "8.14.0",
49
- "@unhead/vue": "1.9.15",
48
+ "@sentry/vue": "8.19.0",
49
+ "@unhead/vue": "1.9.16",
50
50
  "@vuepic/vue-datepicker": "8.8.1",
51
51
  "@vueup/vue-quill": "1.2.0",
52
52
  "@vueuse/core": "10.11.0",
@@ -75,12 +75,12 @@
75
75
  "vue3-sticky-sidebar": "2.0.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@babel/eslint-parser": "7.24.7",
78
+ "@babel/eslint-parser": "7.24.8",
79
79
  "@originjs/vite-plugin-commonjs": "1.0.3",
80
- "@sentry/vite-plugin": "2.20.1",
81
- "@types/node": "20.14.9",
82
- "@typescript-eslint/eslint-plugin": "7.15.0",
83
- "@typescript-eslint/parser": "7.15.0",
80
+ "@sentry/vite-plugin": "2.21.1",
81
+ "@types/node": "20.14.10",
82
+ "@typescript-eslint/eslint-plugin": "7.17.0",
83
+ "@typescript-eslint/parser": "7.17.0",
84
84
  "@vitejs/plugin-vue": "5.0.5",
85
85
  "@vue/eslint-config-typescript": "13.0.0",
86
86
  "@vue/test-utils": "2.4.6",
@@ -89,11 +89,11 @@
89
89
  "eslint": "8.57.0",
90
90
  "eslint-plugin-vue": "9.27.0",
91
91
  "rollup-plugin-typescript2": "0.36.0",
92
- "sass": "1.77.6",
92
+ "sass": "1.77.8",
93
93
  "ts-node": "10.9.2",
94
94
  "tslib": "2.6.3",
95
- "typescript": "5.4.5",
96
- "vite": "5.3.3",
95
+ "typescript": "5.5.3",
96
+ "vite": "5.3.4",
97
97
  "vite-plugin-compression": "0.5.1",
98
98
  "vue-tsc": "2.0.26"
99
99
  },
Binary file
@@ -1,293 +0,0 @@
1
- import { d as ee, G as me, r as D, c as s, z as K, o as be, a as n, g as r, f as u, w as pe, u as e, b as f, i as y, e as N, F as P, n as $, y as De, h as fe } from "./_sentry-release-injection-file-DEszgcWK.js";
2
- import { u as ge, s as x } from "./mitt-DnPlcQNp.js";
3
- import { u as Q, y as W, e as ye, T as L, o as ke, b as X, d as Y, p as he, _ as ae, E as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
4
- import { _ as we } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js";
5
- import { F as g } from "./Field-DGi_AnA6.js";
6
- (function() {
7
- try {
8
- var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new Error().stack;
9
- t && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[t] = "671a86e0-8f04-4bb7-ae17-5f869308413c", d._sentryDebugIdIdentifier = "sentry-dbid-671a86e0-8f04-4bb7-ae17-5f869308413c");
10
- } catch {
11
- }
12
- })();
13
- const _e = {
14
- class: "konnectio-availability-location",
15
- key: "location"
16
- }, Ve = {
17
- id: "konnectio-availability-date-selection",
18
- key: "multiDate"
19
- }, Ae = {
20
- id: "konnectio-availability-guest-selection",
21
- key: "guests"
22
- }, xe = {
23
- id: "konnectio-availability-confirmation",
24
- key: "confirm"
25
- }, Le = /* @__PURE__ */ ee({
26
- __name: "HotelAvailabilityForm",
27
- props: {
28
- booking: { type: Boolean, default: !1 },
29
- link: {},
30
- selectedLocation: { default: NaN }
31
- },
32
- setup(d) {
33
- const { t } = ge(), _ = me("emitter"), l = d, {
34
- adults: C,
35
- children: S,
36
- arrivalDate: U,
37
- departureDate: I,
38
- location: B,
39
- hasHotelLocations: w,
40
- hotelLocations: F,
41
- controlLocation: le
42
- } = x(Q()), { updateHotelAvailability: te } = Q(), { fetchAvailabilityData: ie } = W(), { areListingsLoading: H } = x(W()), {
43
- firstSelectableDateOffset: R,
44
- lastSelectableDateOffset: E,
45
- disableChildSelection: m,
46
- disableAdultSelection: c,
47
- defaultAdultAmount: oe,
48
- defaultChildAmount: ne,
49
- maxAdultAmount: T,
50
- maxChildAmount: z
51
- } = x(ye()), se = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), ue = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), O = D(oe.value), G = D(ne.value), M = D(se()), j = D(ue()), q = D(le.value), b = s({
52
- get: () => l.booking ? C.value : O.value,
53
- set: (a) => {
54
- l.booking ? C.value = Number(a) : O.value = Number(a);
55
- }
56
- }), k = s({
57
- get: () => l.booking ? S.value : G.value,
58
- set: (a) => {
59
- l.booking ? S.value = Number(a) : G.value = Number(a);
60
- }
61
- }), v = s({
62
- get: () => l.booking ? U.value : M.value,
63
- set: (a) => {
64
- l.booking ? U.value = a : M.value = a;
65
- }
66
- }), p = s({
67
- get: () => l.booking ? I.value : j.value,
68
- set: (a) => {
69
- l.booking ? I.value = a : j.value = a;
70
- }
71
- }), V = s({
72
- get: () => isNaN(l.selectedLocation) ? l.booking ? B.value : q.value : l.selectedLocation,
73
- set: (a) => {
74
- l.booking ? B.value = a : q.value = a;
75
- }
76
- }), J = s(() => {
77
- const a = F.value.find(({ id: i }) => i === l.selectedLocation);
78
- return a ? a.name : "";
79
- }), h = D([]), re = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (R.value - 1)))), Ie = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + E.value))), Be = s(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + R.value))), de = s(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + (E.value + 1)))), A = s(() => !(!c && b.value === 0)), ce = s(() => typeof l.link != "string");
80
- function ve() {
81
- if (l.booking === !1)
82
- if (te({
83
- adults: b.value,
84
- children: k.value,
85
- arrivalDate: v.value,
86
- departureDate: p.value,
87
- location: V.value
88
- }), ce.value) {
89
- const a = he();
90
- l.link[a] ? window.location.replace(l.link[a]) : l.link.en ? window.location.replace(l.link.en) : console.log("Sprog understøttes ikke");
91
- } else
92
- window.location.replace(l.link);
93
- else A.value && ie();
94
- }
95
- return K(v, (a) => {
96
- const i = new Date(new Date(a).setDate(new Date(a).getDate() + 1));
97
- new Date(p.value) < i && (p.value = i);
98
- }), _.on("forcedDateChange", () => {
99
- h.value = [v.value, p.value];
100
- }), K(h, (a) => {
101
- v.value = a[0], p.value = a[1];
102
- }), be(() => {
103
- h.value = [v.value, p.value];
104
- }), (a, i) => (n(), r("form", {
105
- id: "konnectio-availability-form",
106
- class: $({ reservation: a.booking }),
107
- type: "availability",
108
- onSubmit: fe(ve, ["prevent"])
109
- }, [
110
- u(De, {
111
- id: "konnectio-availability-form-content",
112
- tag: "ul",
113
- class: $([
114
- { "is-booking-page": a.booking },
115
- { "only-adult-guests": !e(c) && e(m) },
116
- { "only-child-guests": !e(m) && e(c) },
117
- { "no-guests": e(c) && e(m) },
118
- { "all-guests": !e(c) && !e(m) },
119
- { "has-location": e(w) }
120
- ])
121
- }, {
122
- default: pe(() => [
123
- e(w) ? (n(), r("li", _e, [
124
- isNaN(a.selectedLocation) ? (n(), f(ke, {
125
- key: 1,
126
- modelValue: V.value,
127
- "onUpdate:modelValue": i[1] || (i[1] = (o) => V.value = o),
128
- label: e(t)("general.location"),
129
- icon: "location-dot",
130
- "icon-type": "fas",
131
- "icon-placement": "label",
132
- "label-key": "name",
133
- "value-key": "id",
134
- options: e(F),
135
- searchable: !1
136
- }, null, 8, ["modelValue", "label", "options"])) : (n(), f(L, {
137
- key: 0,
138
- modelValue: J.value,
139
- "onUpdate:modelValue": i[0] || (i[0] = (o) => J.value = o),
140
- label: e(t)("general.location"),
141
- icon: "location-dot",
142
- "icon-type": "fas",
143
- "icon-placement": "label",
144
- readonly: ""
145
- }, null, 8, ["modelValue", "label"]))
146
- ])) : y("", !0),
147
- N("li", Ve, [
148
- u(we, {
149
- modelValue: h.value,
150
- "onUpdate:modelValue": i[2] || (i[2] = (o) => h.value = o),
151
- label: e(t)("availability.checkInOut"),
152
- "icon-type": "fas",
153
- "icon-placement": "label",
154
- "min-range": 1,
155
- "min-date": re.value,
156
- "max-date": de.value,
157
- range: ""
158
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
159
- y("", !0)
160
- ]),
161
- !e(c) || !e(m) ? (n(), r("li", Ae, [
162
- e(c) ? y("", !0) : (n(), r(P, { key: 0 }, [
163
- e(w) ? (n(), f(L, {
164
- key: 0,
165
- modelValue: b.value,
166
- "onUpdate:modelValue": i[5] || (i[5] = (o) => b.value = o),
167
- type: "number",
168
- label: e(t)("availability.adults"),
169
- description: e(t)("general.adultAgeRange"),
170
- "icon-type": "fas",
171
- "icon-placement": "label",
172
- name: "adults",
173
- icon: "male",
174
- max: e(T)
175
- }, null, 8, ["modelValue", "label", "description", "max"])) : (n(), f(X, {
176
- key: 1,
177
- modelValue: b.value,
178
- "onUpdate:modelValue": i[6] || (i[6] = (o) => b.value = o),
179
- label: e(t)("availability.adults"),
180
- description: e(t)("general.adultAgeRange"),
181
- "icon-type": "fas",
182
- "icon-placement": "label",
183
- name: "adults",
184
- icon: "male",
185
- "max-value": e(T)
186
- }, null, 8, ["modelValue", "label", "description", "max-value"]))
187
- ], 64)),
188
- e(m) ? y("", !0) : (n(), r(P, { key: 1 }, [
189
- e(w) ? (n(), f(L, {
190
- key: 0,
191
- modelValue: k.value,
192
- "onUpdate:modelValue": i[7] || (i[7] = (o) => k.value = o),
193
- type: "number",
194
- label: e(t)("availability.children"),
195
- description: e(t)("general.childAgeRange"),
196
- "icon-type": "fas",
197
- "icon-placement": "label",
198
- name: "children",
199
- icon: "child",
200
- max: e(z)
201
- }, null, 8, ["modelValue", "label", "description", "max"])) : (n(), f(X, {
202
- key: 1,
203
- modelValue: k.value,
204
- "onUpdate:modelValue": i[8] || (i[8] = (o) => k.value = o),
205
- label: e(t)("availability.children"),
206
- description: e(t)("general.childAgeRange"),
207
- "icon-type": "fas",
208
- "icon-placement": "label",
209
- name: "children",
210
- icon: "child",
211
- "max-value": e(z)
212
- }, null, 8, ["modelValue", "label", "description", "max-value"]))
213
- ], 64))
214
- ])) : y("", !0),
215
- N("li", xe, [
216
- u(Y, {
217
- class: "konnectio-availability-submit-small",
218
- type: "submit",
219
- icon: "search",
220
- "icon-type": "fas",
221
- disabled: !A.value,
222
- "is-loading": e(H)
223
- }, null, 8, ["disabled", "is-loading"]),
224
- u(Y, {
225
- class: "konnectio-availability-submit-large",
226
- type: "submit",
227
- label: e(t)("availability.buttonLabel"),
228
- disabled: !A.value,
229
- "is-loading": e(H)
230
- }, null, 8, ["label", "disabled", "is-loading"])
231
- ])
232
- ]),
233
- _: 1
234
- }, 8, ["class"])
235
- ], 34));
236
- }
237
- }), ze = /* @__PURE__ */ ae(Le, [["__scopeId", "data-v-f0dea03b"]]), Ne = { class: "availability-skeleton" }, $e = {
238
- key: 0,
239
- class: "availability-skeleton-navigation"
240
- }, Ce = { class: "availability-skeleton-content" }, Se = {
241
- key: 1,
242
- class: "availability-skeleton-event"
243
- }, Ue = /* @__PURE__ */ ee({
244
- __name: "AvailabilitySkeleton",
245
- props: {
246
- view: { default: "hotel" },
247
- hotel: { type: Boolean, default: !1 }
248
- },
249
- setup(d) {
250
- return (t, _) => (n(), r("div", Ne, [
251
- t.view === "both" ? (n(), r("div", $e, [
252
- u(Z, {
253
- height: "28px",
254
- width: "60px",
255
- "border-radius": "20px"
256
- }),
257
- u(Z, {
258
- height: "28px",
259
- width: "60px",
260
- "border-radius": "20px"
261
- })
262
- ])) : y("", !0),
263
- N("div", Ce, [
264
- t.view !== "event" ? (n(), r("div", {
265
- key: 0,
266
- class: $([
267
- "availability-skeleton-hotel",
268
- { "within-hotel": t.hotel }
269
- ])
270
- }, [
271
- u(g, { "with-icon": "" }),
272
- u(g, { "with-icon": "" }),
273
- u(g, { "with-icon": "" }),
274
- u(g, {
275
- "with-icon": "",
276
- "no-label": ""
277
- })
278
- ], 2)) : (n(), r("div", Se, [
279
- u(g, { "with-icon": "" }),
280
- u(g, {
281
- "with-icon": "",
282
- "no-label": ""
283
- })
284
- ]))
285
- ])
286
- ]));
287
- }
288
- }), Oe = /* @__PURE__ */ ae(Ue, [["__scopeId", "data-v-17762b9b"]]);
289
- export {
290
- Oe as A,
291
- ze as H
292
- };
293
- //# sourceMappingURL=AvailabilitySkeleton-DSgC6hn3.js.map
Binary file
Binary file
@@ -1,117 +0,0 @@
1
- import { d as C, r as g, c as s, a as c, g as w, f, w as A, u as o, F as B, b as L, i as F, e as S, y as T, n as U, h as x } from "./_sentry-release-injection-file-DEszgcWK.js";
2
- import { s as z, u as $ } from "./mitt-DnPlcQNp.js";
3
- import { u as D, T as G, o as H, d as M, p as R, _ as j } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
4
- import { u as q, _ as J } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js";
5
- (function() {
6
- try {
7
- var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
8
- e && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[e] = "d683478a-8324-445a-b125-3d218a1ae278", n._sentryDebugIdIdentifier = "sentry-dbid-d683478a-8324-445a-b125-3d218a1ae278");
9
- } catch {
10
- }
11
- })();
12
- const K = {
13
- class: "konnectio-search-button",
14
- key: "search"
15
- }, O = /* @__PURE__ */ C({
16
- __name: "EventAvailabilityForm",
17
- props: {
18
- redirection: { type: Boolean, default: !0 },
19
- link: {},
20
- selectedLocation: { default: NaN }
21
- },
22
- setup(n) {
23
- const e = n, {
24
- eventLocation: r,
25
- eventLocations: m,
26
- hasEventLocations: b,
27
- eventLocationControl: _,
28
- eventDate: v
29
- } = z(D()), { updateEventAvailability: h } = D(), { fetchListings: V } = q(), { t: i } = $(), N = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), p = g(_.value), y = g(N()), u = s({
30
- get: () => e.redirection ? p.value : r.value,
31
- set: (a) => {
32
- e.redirection ? p.value = Number(a) : r.value = Number(a);
33
- }
34
- }), d = s({
35
- get: () => e.redirection ? y.value : v.value,
36
- set: (a) => {
37
- e.redirection ? y.value = a : v.value = a;
38
- }
39
- }), E = s(() => typeof e.link != "string"), k = s(() => {
40
- const a = m.value.find(({ id: t }) => t === e.selectedLocation);
41
- return a ? a.name : "";
42
- });
43
- function I() {
44
- if (e.redirection === !0)
45
- if (h({
46
- date: d.value,
47
- location: u.value
48
- }), E.value) {
49
- const a = R();
50
- e.link[a] ? window.location.replace(e.link[a]) : e.link.en && window.location.replace(e.link.en);
51
- } else
52
- window.location.replace(e.link);
53
- else
54
- V();
55
- }
56
- return (a, t) => (c(), w("form", {
57
- class: U([
58
- "konnectio-event-search-form",
59
- { "has-locations": o(b) },
60
- { "auto-search": !a.redirection }
61
- ]),
62
- onSubmit: x(I, ["prevent"])
63
- }, [
64
- f(T, {
65
- class: "konnectio-event-search-form-content",
66
- tag: "ul"
67
- }, {
68
- default: A(() => [
69
- o(b) ? (c(), w(B, { key: 0 }, [
70
- isNaN(a.selectedLocation) ? (c(), L(H, {
71
- modelValue: u.value,
72
- "onUpdate:modelValue": t[1] || (t[1] = (l) => u.value = l),
73
- key: "location",
74
- label: o(i)("general.location"),
75
- icon: "location-dot",
76
- "icon-type": "fas",
77
- "icon-placement": "label",
78
- "label-key": "name",
79
- "value-key": "id",
80
- options: o(m),
81
- searchable: !1
82
- }, null, 8, ["modelValue", "label", "options"])) : (c(), L(G, {
83
- key: 0,
84
- modelValue: k.value,
85
- "onUpdate:modelValue": t[0] || (t[0] = (l) => k.value = l),
86
- label: o(i)("general.location"),
87
- icon: "location-dot",
88
- "icon-type": "fas",
89
- "icon-placement": "label",
90
- readonly: ""
91
- }, null, 8, ["modelValue", "label"]))
92
- ], 64)) : F("", !0),
93
- f(J, {
94
- modelValue: d.value,
95
- "onUpdate:modelValue": t[2] || (t[2] = (l) => d.value = l),
96
- key: "date",
97
- label: o(i)("event.selectDate"),
98
- "icon-type": "fas",
99
- "icon-placement": "label",
100
- "min-date": /* @__PURE__ */ new Date()
101
- }, null, 8, ["modelValue", "label", "min-date"]),
102
- S("li", K, [
103
- f(M, {
104
- type: "submit",
105
- label: o(i)("availability.buttonLabel")
106
- }, null, 8, ["label"])
107
- ])
108
- ]),
109
- _: 1
110
- })
111
- ], 34));
112
- }
113
- }), Y = /* @__PURE__ */ j(O, [["__scopeId", "data-v-bf19dbb3"]]);
114
- export {
115
- Y as E
116
- };
117
- //# sourceMappingURL=EventAvailabilityForm-DZljldrC.js.map
@@ -1,50 +0,0 @@
1
- import { d as l, a as t, g as o, b as i, i as r, f as n, n as f } from "./_sentry-release-injection-file-DEszgcWK.js";
2
- import { E as s, _ as p } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
3
- (function() {
4
- try {
5
- var a = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
6
- e && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[e] = "018514df-a142-4bb3-9d02-2f625a0b596c", a._sentryDebugIdIdentifier = "sentry-dbid-018514df-a142-4bb3-9d02-2f625a0b596c");
7
- } catch {
8
- }
9
- })();
10
- const c = {
11
- key: 0,
12
- class: "skeleton-field-label"
13
- }, b = { key: 1 }, h = /* @__PURE__ */ l({
14
- __name: "Field",
15
- props: {
16
- withIcon: { type: Boolean, default: !1 },
17
- noLabel: { type: Boolean, default: !1 },
18
- isTextArea: { type: Boolean, default: !1 }
19
- },
20
- setup(a) {
21
- return (e, d) => (t(), o("div", {
22
- class: f([
23
- "skeleton-field",
24
- { "is-text-area": e.isTextArea },
25
- { "no-label": e.noLabel }
26
- ])
27
- }, [
28
- e.noLabel ? (t(), o("div", b)) : (t(), o("div", c, [
29
- e.withIcon ? (t(), i(s, {
30
- key: 0,
31
- height: "15px",
32
- width: "15px"
33
- })) : r("", !0),
34
- n(s, {
35
- height: "15px",
36
- width: "30%"
37
- })
38
- ])),
39
- n(s, {
40
- height: e.isTextArea ? "82px" : "44px",
41
- width: "100%",
42
- "border-radius": "6px"
43
- }, null, 8, ["height"])
44
- ], 2));
45
- }
46
- }), y = /* @__PURE__ */ p(h, [["__scopeId", "data-v-992f78a1"]]);
47
- export {
48
- y as F
49
- };
50
- //# sourceMappingURL=Field-DGi_AnA6.js.map
Binary file