@konnectio/core 4.0.82 → 4.0.84

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 (75) hide show
  1. package/dist/ActionField-CLQbtAU7.js +100 -0
  2. package/dist/ActionField-CLQbtAU7.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BJPo5KGW.js +309 -0
  4. package/dist/AvailabilitySkeleton-BJPo5KGW.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js} +1152 -1168
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js.br +0 -0
  7. package/dist/{CheckoutWindow-DoADcN36.js → CheckoutWindow-C9Sa3vci.js} +159 -174
  8. package/dist/CheckoutWindow-C9Sa3vci.js.br +0 -0
  9. package/dist/{ErrorMessage-BxZaXdig.js → ErrorMessage-D6rbHHXd.js} +20 -35
  10. package/dist/ErrorMessage-D6rbHHXd.js.br +0 -0
  11. package/dist/EventAvailabilityForm-D-Q1vxsm.js +110 -0
  12. package/dist/EventAvailabilityForm-D-Q1vxsm.js.br +0 -0
  13. package/dist/Field-CGT9JUe-.js +43 -0
  14. package/dist/Field-CGT9JUe-.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js} +2819 -2807
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js.br +0 -0
  17. package/dist/TermsOfService-DmwGAt0q.js +28 -0
  18. package/dist/_-YHi6ciVk.js +5 -0
  19. package/dist/_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js +25 -0
  20. package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
  21. package/dist/availability.js +54 -71
  22. package/dist/availability.js.br +0 -0
  23. package/dist/deep-link.js +20 -36
  24. package/dist/deep-link.js.br +0 -0
  25. package/dist/event.js +398 -416
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +72 -89
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +175 -192
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/giftCard-C-lmDpUB.js +118 -0
  32. package/dist/giftCard-C-lmDpUB.js.br +0 -0
  33. package/dist/hotel.js +1210 -1099
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-DDSHAjDQ.js → masonry.plugin-DL8uXS-9.js} +52 -68
  36. package/dist/masonry.plugin-DL8uXS-9.js.br +0 -0
  37. package/dist/mitt-B_elXQ2J.js +12437 -0
  38. package/dist/mitt-B_elXQ2J.js.br +0 -0
  39. package/dist/polyfill.js +4216 -7869
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/{style-CT1Yk_a0.js → style-CDpCXUak.js} +391 -406
  42. package/dist/style-CDpCXUak.js.br +0 -0
  43. package/dist/style.css +1 -1
  44. package/dist/style.css.br +0 -0
  45. package/package.json +12 -15
  46. package/dist/ActionField-Mf3IO8Sg.js +0 -115
  47. package/dist/ActionField-Mf3IO8Sg.js.br +0 -0
  48. package/dist/AvailabilitySkeleton-D3xnLMQI.js +0 -296
  49. package/dist/AvailabilitySkeleton-D3xnLMQI.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js.br +0 -0
  51. package/dist/CheckoutWindow-DoADcN36.js.br +0 -0
  52. package/dist/ErrorMessage-BxZaXdig.js.br +0 -0
  53. package/dist/EventAvailabilityForm-Ctz8ENUN.js +0 -126
  54. package/dist/EventAvailabilityForm-Ctz8ENUN.js.br +0 -0
  55. package/dist/Field-Bg0N8Vc0.js +0 -58
  56. package/dist/Field-Bg0N8Vc0.js.br +0 -0
  57. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js.br +0 -0
  58. package/dist/TermsOfService-CWraQvoB.js +0 -44
  59. package/dist/TermsOfService-CWraQvoB.js.br +0 -4
  60. package/dist/_-BEZe3PAF.js +0 -20
  61. package/dist/_.vue_vue_type_style_index_0_lang-DQzgcH2c.js +0 -40
  62. package/dist/_.vue_vue_type_style_index_0_lang-DQzgcH2c.js.br +0 -0
  63. package/dist/_commonjsHelpers-C8ml6AyB.js +0 -25
  64. package/dist/_commonjsHelpers-C8ml6AyB.js.br +0 -0
  65. package/dist/_sentry-release-injection-file-8liCQLPI.js +0 -9501
  66. package/dist/_sentry-release-injection-file-8liCQLPI.js.br +0 -0
  67. package/dist/giftCard-sImOKdP0.js +0 -134
  68. package/dist/giftCard-sImOKdP0.js.br +0 -0
  69. package/dist/masonry.plugin-DDSHAjDQ.js.br +0 -0
  70. package/dist/mitt-CzL6QOyp.js +0 -2977
  71. package/dist/mitt-CzL6QOyp.js.br +0 -0
  72. package/dist/sentry-Cyc40KnT.js +0 -26
  73. package/dist/style-CT1Yk_a0.js.br +0 -0
  74. package/dist/tracing-6Srl_nMB.js +0 -2628
  75. package/dist/tracing-6Srl_nMB.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.82",
3
+ "version": "4.0.84",
4
4
  "author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
5
5
  "homepage": "https://konnectio.com",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -45,13 +45,12 @@
45
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.26.0",
49
- "@unhead/vue": "1.9.16",
48
+ "@unhead/vue": "1.10.4",
50
49
  "@vuepic/vue-datepicker": "9.0.2",
51
50
  "@vueup/vue-quill": "1.2.0",
52
51
  "@vueuse/core": "10.11.1",
53
- "axios": "1.7.4",
54
- "core-js": "3.38.0",
52
+ "axios": "1.7.7",
53
+ "core-js": "3.38.1",
55
54
  "cqfill": "0.6.1",
56
55
  "date-fns": "3.6.0",
57
56
  "floating-vue": "5.2.2",
@@ -59,30 +58,29 @@
59
58
  "linkifyjs": "4.1.3",
60
59
  "mitt": "3.0.1",
61
60
  "pinia": "2.2.2",
62
- "postcss": "8.4.41",
61
+ "postcss": "8.4.44",
63
62
  "recaptcha-v3": "1.10.0",
64
63
  "regenerator-runtime": "0.14.1",
65
64
  "resize-detector": "0.3.0",
66
65
  "text-clipper": "2.2.0",
67
66
  "vue": "3.4.38",
68
67
  "vue-gtag": "2.0.1",
69
- "vue-i18n": "9.13.1",
68
+ "vue-i18n": "9.14.0",
70
69
  "vue-inner-image-zoom": "2.0.0",
71
70
  "vue-masonry": "0.16.0",
72
71
  "vue-router": "4.4.3",
73
72
  "vue-select": "4.0.0-beta.6",
74
73
  "vue3-side-panel": "1.3.0",
75
- "vue3-sticky-directive": "^0.0.2",
74
+ "vue3-sticky-directive": "0.0.2",
76
75
  "vue3-sticky-sidebar": "2.0.0"
77
76
  },
78
77
  "devDependencies": {
79
78
  "@babel/eslint-parser": "7.25.1",
80
79
  "@originjs/vite-plugin-commonjs": "1.0.3",
81
- "@sentry/vite-plugin": "2.22.1",
82
- "@types/node": "22.2.00",
80
+ "@types/node": "22.5.2",
83
81
  "@typescript-eslint/eslint-plugin": "7.18.0",
84
82
  "@typescript-eslint/parser": "7.18.0",
85
- "@vitejs/plugin-vue": "5.1.2",
83
+ "@vitejs/plugin-vue": "5.1.3",
86
84
  "@vue/eslint-config-typescript": "13.0.0",
87
85
  "@vue/test-utils": "2.4.6",
88
86
  "cross-env": "7.0.3",
@@ -92,11 +90,11 @@
92
90
  "rollup-plugin-typescript2": "0.36.0",
93
91
  "sass": "1.77.8",
94
92
  "ts-node": "10.9.2",
95
- "tslib": "2.6.3",
93
+ "tslib": "2.7.0",
96
94
  "typescript": "5.5.4",
97
95
  "vite": "5.4.2",
98
96
  "vite-plugin-compression": "0.5.1",
99
- "vue-tsc": "2.0.29"
97
+ "vue-tsc": "2.1.4"
100
98
  },
101
99
  "contributors": [
102
100
  {
@@ -110,9 +108,8 @@
110
108
  "freshcase",
111
109
  "freshbooking",
112
110
  "wordpress",
113
- "vuejs",
114
111
  "booking",
115
112
  "octopus-pms",
116
- "hotelboss"
113
+ "hotel"
117
114
  ]
118
115
  }
@@ -1,115 +0,0 @@
1
- import { d as V, c, a as u, b as r, w as g, e as v, u as s, f as w } from "./_sentry-release-injection-file-8liCQLPI.js";
2
- import { A as k, n as I, b as q, T as B, c as A, p as C, _ as D } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js";
3
- (function() {
4
- try {
5
- var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
6
- l && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[l] = "c9d8d8e1-ee84-47d6-8e39-e8764c4d1537", o._sentryDebugIdIdentifier = "sentry-dbid-c9d8d8e1-ee84-47d6-8e39-e8764c4d1537");
7
- } catch {
8
- }
9
- })();
10
- {
11
- var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
12
- i._sentryModuleMetadata = i._sentryModuleMetadata || {}, i._sentryModuleMetadata[new Error().stack] = Object.assign(
13
- {},
14
- i._sentryModuleMetadata[new Error().stack],
15
- { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
16
- );
17
- }
18
- const F = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ V({
19
- __name: "ActionField",
20
- props: {
21
- modelValue: {},
22
- label: {},
23
- buttonLabel: {},
24
- buttonIcon: {},
25
- buttonIconColor: {},
26
- buttonDisabled: { type: Boolean, default: !1 },
27
- secondary: { type: Boolean, default: !1 },
28
- name: {},
29
- id: {},
30
- type: { default: "text" },
31
- placeholder: {},
32
- icon: {},
33
- iconType: { default: "fal" },
34
- required: { type: Boolean, default: !1 },
35
- readonly: { type: Boolean, default: !1 },
36
- data: {},
37
- action: {},
38
- minValue: {},
39
- maxValue: {},
40
- isLoading: { type: Boolean, default: !1 }
41
- },
42
- emits: ["update:modelValue", "action"],
43
- setup(o, { emit: l }) {
44
- const p = l, f = o, d = f.id || k();
45
- function m(e) {
46
- p("update:modelValue", e);
47
- }
48
- const t = c({
49
- get: () => f.modelValue,
50
- set: (e) => m(e)
51
- }), y = c({
52
- get: () => f.modelValue,
53
- set: (e) => m(e)
54
- });
55
- function b() {
56
- p("action");
57
- }
58
- return (e, a) => (u(), r(C, {
59
- label: e.label,
60
- id: s(d),
61
- icon: e.icon,
62
- "icon-type": e.iconType,
63
- required: e.required,
64
- type: e.type,
65
- readonly: e.readonly
66
- }, {
67
- default: g(() => [
68
- v("div", F, [
69
- e.type === "dropdown" && e.data ? (u(), r(I, {
70
- key: 0,
71
- modelValue: t.value,
72
- "onUpdate:modelValue": a[0] || (a[0] = (n) => t.value = n),
73
- id: s(d),
74
- options: e.data,
75
- name: e.name,
76
- required: e.required,
77
- placeholder: e.placeholder
78
- }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (u(), r(q, {
79
- key: 1,
80
- modelValue: y.value,
81
- "onUpdate:modelValue": a[1] || (a[1] = (n) => y.value = n),
82
- id: s(d),
83
- "min-value": e.minValue,
84
- "max-value": e.maxValue
85
- }, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (u(), r(B, {
86
- key: 2,
87
- modelValue: t.value,
88
- "onUpdate:modelValue": a[2] || (a[2] = (n) => t.value = n),
89
- id: s(d),
90
- name: e.name,
91
- required: e.required,
92
- placeholder: e.placeholder
93
- }, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
94
- w(A, {
95
- "data-test": `${e.name}Submit`,
96
- icon: e.buttonIcon,
97
- label: e.buttonLabel,
98
- "icon-color": e.buttonIconColor,
99
- styling: e.action,
100
- type: "button",
101
- "is-loading": e.isLoading,
102
- disabled: e.buttonDisabled,
103
- secondary: e.secondary,
104
- onClickEvent: a[3] || (a[3] = (n) => b())
105
- }, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
106
- ])
107
- ]),
108
- _: 1
109
- }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
110
- }
111
- }), T = /* @__PURE__ */ D(h, [["__scopeId", "data-v-3e77e321"]]);
112
- export {
113
- T as A
114
- };
115
- //# sourceMappingURL=ActionField-Mf3IO8Sg.js.map
Binary file
@@ -1,296 +0,0 @@
1
- import { d as ee, H as ge, r as p, c as i, z as J, o as De, a as r, g as b, f as s, w as ye, u as a, b as A, i as D, e as $, n as U, y as ke, h as he } from "./_sentry-release-injection-file-8liCQLPI.js";
2
- import { u as we, s as S } from "./mitt-CzL6QOyp.js";
3
- import { u as Q, x as W, a as _e, d as Ae, T as Ve, n as Le, b as X, c as Z, o as xe, _ as ae, E as G } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js";
4
- import { _ as Ne } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js";
5
- import { F as g } from "./Field-Bg0N8Vc0.js";
6
- (function() {
7
- try {
8
- var u = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
9
- n && (u._sentryDebugIds = u._sentryDebugIds || {}, u._sentryDebugIds[n] = "5c3e9cb4-6a88-4aeb-9a59-21c9b0b32e5a", u._sentryDebugIdIdentifier = "sentry-dbid-5c3e9cb4-6a88-4aeb-9a59-21c9b0b32e5a");
10
- } catch {
11
- }
12
- })();
13
- {
14
- var _ = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
15
- _._sentryModuleMetadata = _._sentryModuleMetadata || {}, _._sentryModuleMetadata[new Error().stack] = Object.assign(
16
- {},
17
- _._sentryModuleMetadata[new Error().stack],
18
- { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
19
- );
20
- }
21
- const Se = {
22
- class: "konnectio-availability-location",
23
- key: "location"
24
- }, $e = {
25
- id: "konnectio-availability-date-selection",
26
- key: "multiDate"
27
- }, Ue = {
28
- id: "konnectio-availability-guest-selection",
29
- key: "guests"
30
- }, Be = {
31
- id: "konnectio-availability-confirmation",
32
- key: "confirm"
33
- }, Ce = /* @__PURE__ */ ee({
34
- __name: "HotelAvailabilityForm",
35
- props: {
36
- booking: { type: Boolean, default: !1 },
37
- link: {},
38
- selectedLocation: { default: NaN },
39
- disableDefaultLocation: { type: Boolean, default: !1 }
40
- },
41
- setup(u) {
42
- const { t: n } = we(), V = ge("emitter"), t = u, B = Q(), {
43
- adults: te,
44
- children: le,
45
- arrivalDate: C,
46
- departureDate: I,
47
- location: H,
48
- hasHotelLocations: y,
49
- hotelLocations: E,
50
- controlLocation: oe
51
- } = S(Q()), { fetchAvailabilityData: ne } = W(), { areListingsLoading: F } = S(W()), { display: R } = _e(), {
52
- firstSelectableDateOffset: M,
53
- lastSelectableDateOffset: O,
54
- disableChildSelection: c,
55
- disableAdultSelection: d,
56
- defaultAdultAmount: ie,
57
- defaultChildAmount: se,
58
- maxAdultAmount: re,
59
- maxChildAmount: ue
60
- } = S(Ae()), ce = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), de = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), ve = () => t.disableDefaultLocation ? void 0 : oe.value, T = p(ie.value), P = p(se.value), j = p(ce()), z = p(de()), q = p(ve()), h = i({
61
- get: () => t.booking ? B.adults : T.value,
62
- set: (e) => {
63
- t.booking ? te.value = Number(e) : T.value = Number(e);
64
- }
65
- }), L = i({
66
- get: () => t.booking ? B.children : P.value,
67
- set: (e) => {
68
- t.booking ? le.value = Number(e) : P.value = Number(e);
69
- }
70
- }), v = i({
71
- get: () => t.booking ? C.value : j.value,
72
- set: (e) => {
73
- t.booking ? C.value = e : j.value = e;
74
- }
75
- }), f = i({
76
- get: () => t.booking ? I.value : z.value,
77
- set: (e) => {
78
- t.booking ? I.value = e : z.value = e;
79
- }
80
- }), w = i({
81
- get: () => isNaN(t.selectedLocation) ? t.booking ? H.value : q.value : t.selectedLocation,
82
- set: (e) => {
83
- t.booking ? H.value = e : q.value = e;
84
- }
85
- }), K = i(() => {
86
- const e = E.value.find(({ id: l }) => l === t.selectedLocation);
87
- return e ? e.name : "";
88
- }), k = p([]), me = i(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (M.value - 1)))), Me = i(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + O.value))), Oe = i(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + M.value))), be = i(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + (O.value + 1)))), x = i(() => !(!d && h.value === 0)), fe = i(() => typeof t.link != "string");
89
- function Y(e) {
90
- const l = e.getFullYear();
91
- let o = e.getMonth() + 1, m = e.getDate();
92
- return m < 10 && (m = "0" + m), o < 10 && (o = "0" + o), `${l}-${o}-${m}`;
93
- }
94
- function N(e) {
95
- const l = {
96
- a: h.value.toString(),
97
- c: L.value.toString(),
98
- ci: Y(v.value),
99
- co: Y(f.value),
100
- hid: w.value.toString()
101
- }, o = new URLSearchParams(l), m = new URL(e, window.location.origin);
102
- m.search = o.toString(), window.location.replace(m.toString());
103
- }
104
- function pe() {
105
- if (isNaN(w.value) && y.value) {
106
- R({
107
- message: n("alert.error.selectHotelId"),
108
- type: "error"
109
- });
110
- return;
111
- }
112
- if (t.booking === !1)
113
- if (fe.value) {
114
- const e = xe();
115
- t.link[e] ? N(t.link[e]) : t.link.en ? N(t.link.en) : R({
116
- message: "Module misconfiguration, contact an admin",
117
- type: "error"
118
- });
119
- } else
120
- N(t.link);
121
- else x.value && ne();
122
- }
123
- return J(v, (e) => {
124
- const l = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
125
- new Date(f.value) < l && (f.value = l);
126
- }), V.on("forcedDateChange", () => {
127
- k.value = [v.value, f.value];
128
- }), J(k, (e) => {
129
- v.value = e[0], f.value = e[1];
130
- }), De(() => {
131
- k.value = [v.value, f.value];
132
- }), (e, l) => (r(), b("form", {
133
- id: "konnectio-availability-form",
134
- class: U({ reservation: e.booking }),
135
- type: "availability",
136
- onSubmit: he(pe, ["prevent"])
137
- }, [
138
- s(ke, {
139
- id: "konnectio-availability-form-content",
140
- tag: "ul",
141
- class: U([
142
- { "is-booking-page": e.booking },
143
- { "only-adult-guests": !a(d) && a(c) },
144
- { "only-child-guests": !a(c) && a(d) },
145
- { "no-guests": a(d) && a(c) },
146
- { "all-guests": !a(d) && !a(c) },
147
- { "has-location": a(y) }
148
- ])
149
- }, {
150
- default: ye(() => [
151
- a(y) ? (r(), b("li", Se, [
152
- isNaN(e.selectedLocation) ? (r(), A(Le, {
153
- key: 1,
154
- modelValue: w.value,
155
- "onUpdate:modelValue": l[1] || (l[1] = (o) => w.value = o),
156
- label: a(n)("general.location"),
157
- placeholder: a(n)("general.locationPlaceholder"),
158
- icon: "location-dot",
159
- "icon-type": "fas",
160
- "icon-placement": "label",
161
- "label-key": "name",
162
- "value-key": "id",
163
- options: a(E),
164
- searchable: !1
165
- }, null, 8, ["modelValue", "label", "placeholder", "options"])) : (r(), A(Ve, {
166
- key: 0,
167
- modelValue: K.value,
168
- "onUpdate:modelValue": l[0] || (l[0] = (o) => K.value = o),
169
- label: a(n)("general.location"),
170
- icon: "location-dot",
171
- "icon-type": "fas",
172
- "icon-placement": "label",
173
- readonly: ""
174
- }, null, 8, ["modelValue", "label"]))
175
- ])) : D("", !0),
176
- $("li", $e, [
177
- s(Ne, {
178
- modelValue: k.value,
179
- "onUpdate:modelValue": l[2] || (l[2] = (o) => k.value = o),
180
- label: a(n)("availability.checkInOut"),
181
- "icon-type": "fas",
182
- "icon-placement": "label",
183
- "min-range": 1,
184
- "min-date": me.value,
185
- "max-date": be.value,
186
- range: ""
187
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
188
- D("", !0)
189
- ]),
190
- !a(d) || !a(c) ? (r(), b("li", Ue, [
191
- a(d) ? D("", !0) : (r(), A(X, {
192
- key: 0,
193
- modelValue: h.value,
194
- "onUpdate:modelValue": l[5] || (l[5] = (o) => h.value = o),
195
- label: a(n)("availability.adults"),
196
- description: a(n)("general.adultAgeRange"),
197
- "icon-type": "fas",
198
- "icon-placement": "label",
199
- name: "adults",
200
- icon: "male",
201
- "max-value": a(re),
202
- controls: !(a(y) && !a(c))
203
- }, null, 8, ["modelValue", "label", "description", "max-value", "controls"])),
204
- a(c) ? D("", !0) : (r(), A(X, {
205
- key: 1,
206
- modelValue: L.value,
207
- "onUpdate:modelValue": l[6] || (l[6] = (o) => L.value = o),
208
- label: a(n)("availability.children"),
209
- description: a(n)("general.childAgeRange"),
210
- "icon-type": "fas",
211
- "icon-placement": "label",
212
- name: "children",
213
- icon: "child",
214
- "max-value": a(ue),
215
- controls: !a(y)
216
- }, null, 8, ["modelValue", "label", "description", "max-value", "controls"]))
217
- ])) : D("", !0),
218
- $("li", Be, [
219
- s(Z, {
220
- class: "konnectio-availability-submit-small",
221
- type: "submit",
222
- icon: "search",
223
- "icon-type": "fas",
224
- disabled: !x.value,
225
- "is-loading": a(F)
226
- }, null, 8, ["disabled", "is-loading"]),
227
- s(Z, {
228
- class: "konnectio-availability-submit-large",
229
- type: "submit",
230
- label: a(n)("availability.buttonLabel"),
231
- disabled: !x.value,
232
- "is-loading": a(F)
233
- }, null, 8, ["label", "disabled", "is-loading"])
234
- ])
235
- ]),
236
- _: 1
237
- }, 8, ["class"])
238
- ], 34));
239
- }
240
- }), Ke = /* @__PURE__ */ ae(Ce, [["__scopeId", "data-v-b09ae6b2"]]), Ie = { class: "availability-skeleton" }, He = {
241
- key: 0,
242
- class: "availability-skeleton-navigation"
243
- }, Ee = { class: "availability-skeleton-content" }, Fe = {
244
- key: 1,
245
- class: "availability-skeleton-event"
246
- }, Re = /* @__PURE__ */ ee({
247
- __name: "AvailabilitySkeleton",
248
- props: {
249
- view: { default: "hotel" },
250
- hotel: { type: Boolean, default: !1 }
251
- },
252
- setup(u) {
253
- return (n, V) => (r(), b("div", Ie, [
254
- n.view === "both" ? (r(), b("div", He, [
255
- s(G, {
256
- height: "28px",
257
- width: "60px",
258
- "border-radius": "20px"
259
- }),
260
- s(G, {
261
- height: "28px",
262
- width: "60px",
263
- "border-radius": "20px"
264
- })
265
- ])) : D("", !0),
266
- $("div", Ee, [
267
- n.view !== "event" ? (r(), b("div", {
268
- key: 0,
269
- class: U([
270
- "availability-skeleton-hotel",
271
- { "within-hotel": n.hotel }
272
- ])
273
- }, [
274
- s(g, { "with-icon": "" }),
275
- s(g, { "with-icon": "" }),
276
- s(g, { "with-icon": "" }),
277
- s(g, {
278
- "with-icon": "",
279
- "no-label": ""
280
- })
281
- ], 2)) : (r(), b("div", Fe, [
282
- s(g, { "with-icon": "" }),
283
- s(g, {
284
- "with-icon": "",
285
- "no-label": ""
286
- })
287
- ]))
288
- ])
289
- ]));
290
- }
291
- }), Ye = /* @__PURE__ */ ae(Re, [["__scopeId", "data-v-cebeb733"]]);
292
- export {
293
- Ye as A,
294
- Ke as H
295
- };
296
- //# sourceMappingURL=AvailabilitySkeleton-D3xnLMQI.js.map
Binary file
Binary file
@@ -1,126 +0,0 @@
1
- import { d as B, r as g, c, a as r, g as _, f as m, w as C, u as n, F, b as L, i as S, e as T, y as U, n as x, h as M } from "./_sentry-release-injection-file-8liCQLPI.js";
2
- import { s as z, u as $ } from "./mitt-CzL6QOyp.js";
3
- import { u as D, T as j, n as H, c as K, o as O, _ as P } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js";
4
- import { u as R, _ as q } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js";
5
- (function() {
6
- try {
7
- var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
8
- e && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[e] = "7eedb20c-72e4-4307-b311-0107121e1721", o._sentryDebugIdIdentifier = "sentry-dbid-7eedb20c-72e4-4307-b311-0107121e1721");
9
- } catch {
10
- }
11
- })();
12
- {
13
- var s = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14
- s._sentryModuleMetadata = s._sentryModuleMetadata || {}, s._sentryModuleMetadata[new Error().stack] = Object.assign(
15
- {},
16
- s._sentryModuleMetadata[new Error().stack],
17
- { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
18
- );
19
- }
20
- const J = {
21
- class: "konnectio-search-button",
22
- key: "search"
23
- }, Q = /* @__PURE__ */ B({
24
- __name: "EventAvailabilityForm",
25
- props: {
26
- redirection: { type: Boolean, default: !0 },
27
- link: {},
28
- selectedLocation: { default: NaN }
29
- },
30
- setup(o) {
31
- const e = o, {
32
- eventLocation: d,
33
- eventLocations: p,
34
- hasEventLocations: b,
35
- eventLocationControl: h,
36
- eventDate: v
37
- } = z(D()), { updateEventAvailability: V } = D(), { fetchListings: E } = R(), { t: i } = $(), N = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), y = g(h.value), k = g(N()), u = c({
38
- get: () => e.redirection ? y.value : d.value,
39
- set: (t) => {
40
- e.redirection ? y.value = Number(t) : d.value = Number(t);
41
- }
42
- }), f = c({
43
- get: () => e.redirection ? k.value : v.value,
44
- set: (t) => {
45
- e.redirection ? k.value = t : v.value = t;
46
- }
47
- }), I = c(() => typeof e.link != "string"), w = c(() => {
48
- const t = p.value.find(({ id: a }) => a === e.selectedLocation);
49
- return t ? t.name : "";
50
- });
51
- function A() {
52
- if (e.redirection === !0)
53
- if (V({
54
- date: f.value,
55
- location: u.value
56
- }), I.value) {
57
- const t = O();
58
- e.link[t] ? window.location.replace(e.link[t]) : e.link.en && window.location.replace(e.link.en);
59
- } else
60
- window.location.replace(e.link);
61
- else
62
- E();
63
- }
64
- return (t, a) => (r(), _("form", {
65
- class: x([
66
- "konnectio-event-search-form",
67
- { "has-locations": n(b) },
68
- { "auto-search": !t.redirection }
69
- ]),
70
- onSubmit: M(A, ["prevent"])
71
- }, [
72
- m(U, {
73
- class: "konnectio-event-search-form-content",
74
- tag: "ul"
75
- }, {
76
- default: C(() => [
77
- n(b) ? (r(), _(F, { key: 0 }, [
78
- isNaN(t.selectedLocation) ? (r(), L(H, {
79
- modelValue: u.value,
80
- "onUpdate:modelValue": a[1] || (a[1] = (l) => u.value = l),
81
- key: "location",
82
- label: n(i)("general.location"),
83
- icon: "location-dot",
84
- "icon-type": "fas",
85
- "icon-placement": "label",
86
- "label-key": "name",
87
- "value-key": "id",
88
- options: n(p),
89
- searchable: !1
90
- }, null, 8, ["modelValue", "label", "options"])) : (r(), L(j, {
91
- key: 0,
92
- modelValue: w.value,
93
- "onUpdate:modelValue": a[0] || (a[0] = (l) => w.value = l),
94
- label: n(i)("general.location"),
95
- icon: "location-dot",
96
- "icon-type": "fas",
97
- "icon-placement": "label",
98
- readonly: ""
99
- }, null, 8, ["modelValue", "label"]))
100
- ], 64)) : S("", !0),
101
- m(q, {
102
- modelValue: f.value,
103
- "onUpdate:modelValue": a[2] || (a[2] = (l) => f.value = l),
104
- key: "date",
105
- label: n(i)("event.selectDate"),
106
- "icon-type": "fas",
107
- "icon-placement": "label",
108
- "min-date": /* @__PURE__ */ new Date()
109
- }, null, 8, ["modelValue", "label", "min-date"]),
110
- T("li", J, [
111
- m(K, {
112
- type: "submit",
113
- label: n(i)("availability.buttonLabel"),
114
- "full-width": ""
115
- }, null, 8, ["label"])
116
- ])
117
- ]),
118
- _: 1
119
- })
120
- ], 34));
121
- }
122
- }), G = /* @__PURE__ */ P(Q, [["__scopeId", "data-v-b5025042"]]);
123
- export {
124
- G as E
125
- };
126
- //# sourceMappingURL=EventAvailabilityForm-Ctz8ENUN.js.map