@konnectio/core 4.0.56-rc3 → 4.0.56-rc31

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 (178) hide show
  1. package/dist/{ActionField-9I-yAskc.js → ActionField-qP-3ktN4.js} +25 -26
  2. package/dist/ActionField-qP-3ktN4.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-uaCnfwHM.js +7665 -0
  4. package/dist/AvailabilitySkeleton-uaCnfwHM.js.br +0 -0
  5. package/dist/CheckoutWindow-RWkSWvbk.js +659 -0
  6. package/dist/CheckoutWindow-RWkSWvbk.js.br +0 -0
  7. package/dist/ErrorMessage-z0JJ8Q3W.js +36 -0
  8. package/dist/ErrorMessage-z0JJ8Q3W.js.br +0 -0
  9. package/dist/EventAvailabilityForm-LIgUj1t3.js +325 -0
  10. package/dist/EventAvailabilityForm-LIgUj1t3.js.br +0 -0
  11. package/dist/Field-C9r1d8IB.js +30985 -0
  12. package/dist/Field-C9r1d8IB.js.br +0 -0
  13. package/dist/HotelAvailabilityForm-AQ4VA15t.js +212 -0
  14. package/dist/HotelAvailabilityForm-AQ4VA15t.js.br +0 -0
  15. package/dist/TermsOfService-oZz-B-KI.js +26 -0
  16. package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
  17. package/dist/availability.js +85 -147
  18. package/dist/availability.js.br +0 -0
  19. package/dist/event.js +540 -453
  20. package/dist/event.js.br +0 -0
  21. package/dist/gift-card-validation.js +90 -56
  22. package/dist/gift-card-validation.js.br +0 -0
  23. package/dist/gift-card.js +368 -336
  24. package/dist/gift-card.js.br +0 -0
  25. package/dist/hotel.js +1259 -2264
  26. package/dist/hotel.js.br +0 -0
  27. package/dist/masonry.plugin-fa0tia29.js +12714 -0
  28. package/dist/masonry.plugin-fa0tia29.js.br +0 -0
  29. package/dist/polyfill.js +3358 -3315
  30. package/dist/polyfill.js.br +0 -0
  31. package/dist/style.css +1 -1
  32. package/dist/style.css.br +0 -0
  33. package/package.json +32 -28
  34. package/dist/ActionField-9I-yAskc.js.br +0 -0
  35. package/dist/AvailabilitySkeleton-hoauL0os.js +0 -242
  36. package/dist/AvailabilitySkeleton-hoauL0os.js.br +0 -0
  37. package/dist/CheckoutWindow-31th413C.js +0 -206
  38. package/dist/CheckoutWindow-31th413C.js.br +0 -0
  39. package/dist/Container-gHSYMY7q.js +0 -69
  40. package/dist/Container-gHSYMY7q.js.br +0 -0
  41. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js +0 -8567
  42. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js.br +0 -0
  43. package/dist/Field-QHvFgmEq.js +0 -43
  44. package/dist/Field-QHvFgmEq.js.br +0 -0
  45. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js +0 -21472
  46. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js.br +0 -0
  47. package/dist/ThankYou-SQ_bbgj4.js +0 -13316
  48. package/dist/ThankYou-SQ_bbgj4.js.br +0 -0
  49. package/dist/_-FedWhJCw.js +0 -20
  50. package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
  51. package/dist/assets/typescript/mixins.d.ts +0 -34
  52. package/dist/availability.d.ts +0 -3
  53. package/dist/components/Alert.vue.d.ts +0 -28
  54. package/dist/components/Alert.vue.d.ts.map +0 -1
  55. package/dist/components/Clickable.vue.d.ts +0 -60
  56. package/dist/components/Clickable.vue.d.ts.map +0 -1
  57. package/dist/components/Container.vue.d.ts +0 -23
  58. package/dist/components/Container.vue.d.ts.map +0 -1
  59. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  60. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  61. package/dist/components/Gallery.vue.d.ts +0 -31
  62. package/dist/components/Gallery.vue.d.ts.map +0 -1
  63. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  64. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  65. package/dist/components/Icon.vue.d.ts +0 -38
  66. package/dist/components/Icon.vue.d.ts.map +0 -1
  67. package/dist/components/Loading.vue.d.ts +0 -29
  68. package/dist/components/Loading.vue.d.ts.map +0 -1
  69. package/dist/components/Spinner.vue.d.ts +0 -2
  70. package/dist/components/Spinner.vue.d.ts.map +0 -1
  71. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  72. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  73. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  74. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  75. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  76. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  77. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  78. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  79. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  80. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  81. package/dist/components/forms/_.vue.d.ts +0 -42
  82. package/dist/components/forms/_.vue.d.ts.map +0 -1
  83. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  84. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  85. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  86. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  87. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  88. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  89. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  90. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  91. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  92. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  93. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  94. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  95. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  96. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  97. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  98. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  99. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  100. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  101. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  102. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  103. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  104. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  105. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  106. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  107. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  108. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  109. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  110. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  111. package/dist/components/listings/Base.vue.d.ts +0 -56
  112. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  113. package/dist/components/listings/Event.vue.d.ts +0 -47
  114. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  115. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  116. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  117. package/dist/components/listings/Template.vue.d.ts +0 -21
  118. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  119. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  120. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  121. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  122. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  123. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  124. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  125. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  126. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  127. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  128. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  129. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  130. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  131. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  132. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  133. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  134. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  135. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  136. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  137. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  138. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  139. package/dist/components/skeletons/_.vue.d.ts +0 -36
  140. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  141. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  142. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  143. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  144. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  145. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  146. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  147. package/dist/entries/availability.d.ts +0 -5
  148. package/dist/entries/event.d.ts +0 -2
  149. package/dist/entries/gift-card-validation.d.ts +0 -5
  150. package/dist/entries/gift-card.d.ts +0 -5
  151. package/dist/entries/hotel.d.ts +0 -5
  152. package/dist/entries/navigation.d.ts +0 -1
  153. package/dist/entries/polyfill.d.ts +0 -0
  154. package/dist/event-4kCWoqDL.js +0 -359
  155. package/dist/event-4kCWoqDL.js.br +0 -0
  156. package/dist/event.d.ts +0 -3
  157. package/dist/gift-card-validation.d.ts +0 -3
  158. package/dist/gift-card.d.ts +0 -3
  159. package/dist/hotel.d.ts +0 -3
  160. package/dist/layouts/Availability.vue.d.ts +0 -25
  161. package/dist/layouts/Event.vue.d.ts +0 -18
  162. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  163. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  164. package/dist/layouts/Hotel.vue.d.ts +0 -36
  165. package/dist/layouts/_.vue.d.ts +0 -39
  166. package/dist/navigation.d.ts +0 -1
  167. package/dist/plugins/i18n.d.ts +0 -5
  168. package/dist/polyfill.d.ts +0 -1
  169. package/dist/store/alert.d.ts +0 -28
  170. package/dist/store/applyGiftCard.d.ts +0 -28
  171. package/dist/store/availability.d.ts +0 -40
  172. package/dist/store/event.d.ts +0 -683
  173. package/dist/store/giftCard.d.ts +0 -83
  174. package/dist/store/payment.d.ts +0 -139
  175. package/dist/store/recaptcha.d.ts +0 -28
  176. package/dist/store/tracking.d.ts +0 -57
  177. package/dist/store/utilities.d.ts +0 -350
  178. package/dist/types/index.d.ts +0 -976
package/dist/style.css.br CHANGED
Binary file
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.0.56-rc3",
3
+ "version": "4.0.56-rc31",
4
4
  "author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
5
5
  "homepage": "https://konnectio.dk",
6
6
  "description": "Konnectio Core Frontend Integration.",
7
7
  "type": "module",
8
8
  "files": [
9
- "dist"
9
+ "dist/*.js",
10
+ "dist/*.gz",
11
+ "dist/*.br",
12
+ "dist/*.css",
13
+ "!dist/index.*",
14
+ "!dist/playground.*"
10
15
  ],
11
16
  "exports": {
12
17
  "./availability": "./dist/availability.js",
@@ -18,6 +23,9 @@
18
23
  "scripts": {
19
24
  "dev": "vite",
20
25
  "prod": "vite build",
26
+ "build": "vite build --config vite.config.js --mode production",
27
+ "build:playground": "vite build --config vite.config.playground.js --mode production",
28
+ "build:demo": "npm run build && npm run build:playground",
21
29
  "devprod": "vite build --mode development",
22
30
  "watch": "vite build --watch --mode development",
23
31
  "production": "vue-tsc --noEmit && vite build --mode production",
@@ -35,61 +43,57 @@
35
43
  "@fortawesome/free-brands-svg-icons": "6.5.1",
36
44
  "@fortawesome/pro-light-svg-icons": "6.5.1",
37
45
  "@fortawesome/pro-solid-svg-icons": "6.5.1",
38
- "@fortawesome/vue-fontawesome": "3.0.5",
46
+ "@fortawesome/vue-fontawesome": "3.0.6",
39
47
  "@intlify/unplugin-vue-i18n": "2.0.0",
40
- "@unhead/vue": "1.8.9",
41
- "@vuepic/vue-datepicker": "7.4.1",
48
+ "@unhead/vue": "1.8.10",
49
+ "@vuepic/vue-datepicker": "8.1.1",
42
50
  "@vueup/vue-quill": "1.2.0",
43
- "@vueuse/core": "10.7.1",
44
- "axios": "1.6.5",
45
- "core-js": "3.35.0",
51
+ "@vueuse/core": "10.7.2",
52
+ "axios": "1.6.7",
53
+ "core-js": "3.36.0",
46
54
  "cqfill": "0.6.1",
47
- "dotenv": "^16.3.1",
48
- "floating-vue": "5.0.3",
55
+ "floating-vue": "5.2.2",
49
56
  "linkify-html": "4.1.3",
50
57
  "linkifyjs": "4.1.3",
58
+ "mitt": "3.0.1",
51
59
  "pinia": "2.1.7",
52
- "postcss": "8.4.33",
60
+ "postcss": "8.4.35",
53
61
  "recaptcha-v3": "1.10.0",
54
62
  "regenerator-runtime": "0.14.1",
55
63
  "text-clipper": "2.2.0",
56
- "vue": "3.3.10",
64
+ "vue": "3.4.19",
57
65
  "vue-gtag": "2.0.1",
58
- "vue-i18n": "9.9.0",
66
+ "vue-i18n": "9.9.1",
59
67
  "vue-inner-image-zoom": "2.0.0",
60
68
  "vue-masonry": "0.16.0",
61
- "vue-router": "^4.2.5",
69
+ "vue-router": "4.2.5",
62
70
  "vue-select": "4.0.0-beta.6",
63
71
  "vue3-side-panel": "1.3.0",
64
72
  "vue3-sticky-sidebar": "2.0.0",
65
73
  "vue3-text-clamp": "0.1.2"
66
74
  },
67
75
  "devDependencies": {
68
- "@babel/eslint-parser": "7.23.3",
76
+ "@babel/eslint-parser": "7.23.10",
69
77
  "@originjs/vite-plugin-commonjs": "1.0.3",
70
- "@types/node": "20.11.0",
71
- "@typescript-eslint/eslint-plugin": "6.18.1",
72
- "@typescript-eslint/parser": "6.18.1",
73
- "@vitejs/plugin-vue": "5.0.3",
78
+ "@types/node": "20.11.19",
79
+ "@typescript-eslint/eslint-plugin": "7.0.1",
80
+ "@typescript-eslint/parser": "7.0.1",
81
+ "@vitejs/plugin-vue": "5.0.4",
74
82
  "@vue/eslint-config-typescript": "12.0.0",
75
- "@vue/test-utils": "2.4.3",
83
+ "@vue/test-utils": "2.4.4",
76
84
  "cross-env": "7.0.3",
77
- "cypress": "13.6.2",
85
+ "cypress": "13.6.4",
78
86
  "eslint": "8.56.0",
79
- "eslint-plugin-vue": "9.19.2",
87
+ "eslint-plugin-vue": "9.21.1",
80
88
  "rollup-plugin-typescript2": "0.36.0",
81
- "sass": "1.69.7",
89
+ "sass": "1.71.0",
82
90
  "ts-node": "10.9.2",
83
91
  "tslib": "2.6.2",
84
92
  "typescript": "5.3.3",
85
- "vite": "5.0.11",
93
+ "vite": "5.1.3",
86
94
  "vite-plugin-compression": "0.5.1",
87
- "vite-plugin-dts": "3.7.0",
88
95
  "vue-tsc": "1.8.27"
89
96
  },
90
- "peerDependencies": {
91
- "vue": "^3.3.10"
92
- },
93
97
  "contributors": [
94
98
  {
95
99
  "name": "Benjamin Bach Jensen",
Binary file
@@ -1,242 +0,0 @@
1
- import { defineComponent as $, ref as j, openBlock as t, createElementBlock as u, withModifiers as Y, renderSlot as Z, computed as v, watch as E, onMounted as ee, createBlock as k, normalizeClass as L, withCtx as ae, createElementVNode as S, unref as e, createVNode as n, isRef as h, createCommentVNode as y, Fragment as H } from "vue";
2
- import { c as q, l as le, s as x, F as I, G as N, j as te, T as O, k as T, C as z, f as ie, _ as G } from "./SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js";
3
- import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js";
4
- import { E as M } from "./_-FedWhJCw.js";
5
- import { F as f } from "./Field-QHvFgmEq.js";
6
- const oe = /* @__PURE__ */ $({
7
- __name: "_",
8
- props: {
9
- type: { default: "submit" }
10
- },
11
- emits: ["submit"],
12
- setup(w, { emit: a }) {
13
- const i = j(!1), c = a, d = w, { verifyRecaptcha: r } = q();
14
- function b() {
15
- i.value = !0, r({
16
- callback: g,
17
- type: d.type
18
- }).then(() => i.value = !1);
19
- }
20
- function g() {
21
- c("submit");
22
- }
23
- return (V, C) => (t(), u("form", {
24
- onSubmit: Y(b, ["prevent"])
25
- }, [
26
- Z(V.$slots, "default", { isLoading: i.value })
27
- ], 32));
28
- }
29
- }), se = {
30
- key: 0,
31
- class: "konnectio-availability-location"
32
- }, ce = { id: "fresh-booking-availability-date-selection" }, ue = {
33
- key: 1,
34
- id: "fresh-booking-availability-guest-selection"
35
- }, de = { id: "fresh-booking-availability-confirmation" }, re = /* @__PURE__ */ $({
36
- __name: "HotelAvailabilityForm",
37
- props: {
38
- booking: { type: Boolean, default: !1 },
39
- link: {}
40
- },
41
- setup(w) {
42
- const { t: a } = le(), i = w, {
43
- adults: c,
44
- children: d,
45
- arrivalDate: r,
46
- departureDate: b,
47
- location: g,
48
- isExpired: V
49
- } = x(I()), { reset: C } = I(), { fetchAvailabilityData: J } = N(), { areListingsLoading: R, hotelList: K, hasHotelList: D } = x(N()), {
50
- firstSelectableDateOffset: U,
51
- lastSelectableDateOffset: F,
52
- disableChildSelection: p,
53
- disableAdultSelection: m
54
- } = x(q()), _ = j([]), P = v(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (U.value - 1))));
55
- v(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + F.value))), v(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + U.value)));
56
- const Q = v(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + (F.value + 1)))), A = v(() => !(!m && c.value === 0)), W = v(() => typeof i.link != "string");
57
- function X() {
58
- if (i.booking === !1)
59
- if (W.value) {
60
- const o = ie();
61
- i.link[o] ? window.location.replace(i.link[o]) : i.link.en ? window.location.replace(i.link.en) : console.log("Sprog understøttes ikke");
62
- } else
63
- window.location.replace(i.link);
64
- else
65
- A.value && J();
66
- }
67
- return E(r, (o) => {
68
- const l = new Date(new Date(o).setDate(new Date(o).getDate() + 1));
69
- new Date(b.value) < l && (b.value = l);
70
- }), E(_, (o) => {
71
- r.value = o[0], b.value = o[1];
72
- }), ee(() => {
73
- V.value && C(), _.value = [r.value, b.value];
74
- }), (o, l) => (t(), k(oe, {
75
- id: "konnectio-availability-form",
76
- class: L({ reservation: o.booking }),
77
- type: "availability",
78
- onSubmit: X
79
- }, {
80
- default: ae(({ isLoading: B }) => [
81
- S("ul", {
82
- id: "konnectio-availability-form-content",
83
- class: L([
84
- { "is-booking-page": o.booking },
85
- { "only-adult-guests": !e(m) && e(p) },
86
- { "only-child-guests": !e(p) && e(m) },
87
- { "no-guests": e(m) && e(p) },
88
- { "all-guests": !e(m) && !e(p) },
89
- { "has-location": e(D) }
90
- ])
91
- }, [
92
- e(D) ? (t(), u("li", se, [
93
- n(te, {
94
- modelValue: e(g),
95
- "onUpdate:modelValue": l[0] || (l[0] = (s) => h(g) ? g.value = s : null),
96
- label: e(a)("general.location"),
97
- icon: "location-dot",
98
- "icon-type": "fas",
99
- "icon-placement": "label",
100
- options: e(K),
101
- searchable: !1
102
- }, null, 8, ["modelValue", "label", "options"])
103
- ])) : y("", !0),
104
- S("li", ce, [
105
- n(ne, {
106
- modelValue: _.value,
107
- "onUpdate:modelValue": l[1] || (l[1] = (s) => _.value = s),
108
- label: e(a)("availability.checkInOut"),
109
- "icon-type": "fas",
110
- "icon-placement": "label",
111
- "min-range": 1,
112
- "min-date": P.value,
113
- "max-date": Q.value,
114
- range: ""
115
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
116
- y("", !0)
117
- ]),
118
- !e(m) || !e(p) ? (t(), u("li", ue, [
119
- e(m) ? y("", !0) : (t(), u(H, { key: 0 }, [
120
- e(D) ? (t(), k(O, {
121
- key: 0,
122
- modelValue: e(c),
123
- "onUpdate:modelValue": l[4] || (l[4] = (s) => h(c) ? c.value = s : null),
124
- label: e(a)("availability.adults"),
125
- description: e(a)("general.adultAgeRange"),
126
- "icon-type": "fas",
127
- "icon-placement": "label",
128
- name: "adults",
129
- icon: "male"
130
- }, null, 8, ["modelValue", "label", "description"])) : (t(), k(T, {
131
- key: 1,
132
- modelValue: e(c),
133
- "onUpdate:modelValue": l[5] || (l[5] = (s) => h(c) ? c.value = s : null),
134
- label: e(a)("availability.adults"),
135
- description: e(a)("general.adultAgeRange"),
136
- "icon-type": "fas",
137
- "icon-placement": "label",
138
- name: "adults",
139
- icon: "male"
140
- }, null, 8, ["modelValue", "label", "description"]))
141
- ], 64)),
142
- e(p) ? y("", !0) : (t(), u(H, { key: 1 }, [
143
- e(D) ? (t(), k(O, {
144
- key: 0,
145
- modelValue: e(d),
146
- "onUpdate:modelValue": l[6] || (l[6] = (s) => h(d) ? d.value = s : null),
147
- label: e(a)("availability.children"),
148
- description: e(a)("general.childAgeRange"),
149
- "icon-type": "fas",
150
- "icon-placement": "label",
151
- name: "children",
152
- icon: "child"
153
- }, null, 8, ["modelValue", "label", "description"])) : (t(), k(T, {
154
- key: 1,
155
- modelValue: e(d),
156
- "onUpdate:modelValue": l[7] || (l[7] = (s) => h(d) ? d.value = s : null),
157
- label: e(a)("availability.children"),
158
- description: e(a)("general.childAgeRange"),
159
- "icon-type": "fas",
160
- "icon-placement": "label",
161
- name: "children",
162
- icon: "child"
163
- }, null, 8, ["modelValue", "label", "description"]))
164
- ], 64))
165
- ])) : y("", !0),
166
- S("li", de, [
167
- n(z, {
168
- class: "konnectio-availability-submit-small",
169
- type: "submit",
170
- icon: "search",
171
- "icon-type": "fas",
172
- disabled: !A.value,
173
- "is-loading": e(R) || B
174
- }, null, 8, ["disabled", "is-loading"]),
175
- n(z, {
176
- class: "konnectio-availability-submit-large",
177
- type: "submit",
178
- label: e(a)("availability.buttonLabel"),
179
- disabled: !A.value,
180
- "is-loading": e(R) || B
181
- }, null, 8, ["label", "disabled", "is-loading"])
182
- ])
183
- ], 2)
184
- ]),
185
- _: 1
186
- }, 8, ["class"]));
187
- }
188
- }), we = /* @__PURE__ */ G(re, [["__scopeId", "data-v-9ec1beba"]]), me = { class: "availability-skeleton" }, be = {
189
- key: 0,
190
- class: "availability-skeleton-navigation"
191
- }, pe = {
192
- key: 2,
193
- class: "availability-skeleton-event"
194
- }, ve = /* @__PURE__ */ $({
195
- __name: "AvailabilitySkeleton",
196
- props: {
197
- view: { default: "hotel" },
198
- hotel: { type: Boolean, default: !1 }
199
- },
200
- setup(w) {
201
- return (a, i) => (t(), u("div", me, [
202
- a.view === "both" ? (t(), u("div", be, [
203
- n(M, {
204
- height: "28px",
205
- width: "60px",
206
- "border-radius": "20px"
207
- }),
208
- n(M, {
209
- height: "28px",
210
- width: "60px",
211
- "border-radius": "20px"
212
- })
213
- ])) : y("", !0),
214
- a.view !== "event" ? (t(), u("div", {
215
- key: 1,
216
- class: L([
217
- "availability-skeleton-hotel",
218
- { "within-hotel": a.hotel }
219
- ])
220
- }, [
221
- n(f, { "with-icon": "" }),
222
- n(f, { "with-icon": "" }),
223
- n(f, { "with-icon": "" }),
224
- n(f, {
225
- "with-icon": "",
226
- "no-label": ""
227
- })
228
- ], 2)) : (t(), u("div", pe, [
229
- n(f, { "with-icon": "" }),
230
- n(f, {
231
- "with-icon": "",
232
- "no-label": ""
233
- })
234
- ]))
235
- ]));
236
- }
237
- }), De = /* @__PURE__ */ G(ve, [["__scopeId", "data-v-be195a3f"]]);
238
- export {
239
- De as A,
240
- we as H,
241
- oe as _
242
- };
@@ -1,206 +0,0 @@
1
- import { defineComponent as b, ref as k, onMounted as $, openBlock as p, createBlock as I, unref as i, withCtx as T, createElementVNode as r, createVNode as V, normalizeClass as h, mergeProps as B, normalizeStyle as _, withKeys as N, createElementBlock as g, toDisplayString as u, createCommentVNode as C, createTextVNode as f, pushScopeId as w, popScopeId as G } from "vue";
2
- import { r as P, I as A, T as S, _ as v, l as E, s as F, c as O, P as U } from "./SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js";
3
- const j = { class: "fresh-booking-phone-input" }, z = /* @__PURE__ */ b({
4
- __name: "PhoneField",
5
- props: {
6
- modelValue: {},
7
- label: {},
8
- id: {},
9
- placeholder: {},
10
- icon: { default: "phone-office" },
11
- iconColor: {},
12
- iconType: { default: "fal" },
13
- required: { type: Boolean, default: !1 },
14
- readonly: { type: Boolean, default: !1 },
15
- inputStyle: {}
16
- },
17
- emits: ["update:modelValue"],
18
- setup(a, { emit: l }) {
19
- const t = l, n = a, c = n.id || P(), e = k("+45"), d = k("");
20
- function m() {
21
- t("update:modelValue", `${e.value} ${d.value}`);
22
- }
23
- return $(() => {
24
- if (n.modelValue) {
25
- const o = n.modelValue.split(" ");
26
- e.value = o[0], d.value = o[1];
27
- }
28
- }), (o, s) => (p(), I(A, {
29
- label: o.label,
30
- id: i(c),
31
- type: "phone",
32
- required: o.required,
33
- readonly: o.readonly
34
- }, {
35
- default: T(() => [
36
- r("div", j, [
37
- V(S, {
38
- modelValue: e.value,
39
- "onUpdate:modelValue": s[0] || (s[0] = (y) => e.value = y),
40
- type: "text",
41
- id: i(P)(),
42
- name: "phone-code",
43
- autocomplete: "tel-country-code",
44
- icon: o.icon,
45
- "icon-color": o.iconColor,
46
- "icon-type": o.iconType,
47
- placeholder: "+45",
48
- required: o.required,
49
- readonly: o.readonly,
50
- "input-style": o.inputStyle,
51
- onInput: s[1] || (s[1] = (y) => m())
52
- }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
53
- V(S, {
54
- modelValue: d.value,
55
- "onUpdate:modelValue": s[2] || (s[2] = (y) => d.value = y),
56
- type: "number",
57
- name: "phone",
58
- autocomplete: "tel-national",
59
- id: i(c),
60
- placeholder: o.placeholder,
61
- required: o.required,
62
- readonly: o.readonly,
63
- "input-style": o.inputStyle,
64
- onInput: s[3] || (s[3] = (y) => m())
65
- }, null, 8, ["modelValue", "id", "placeholder", "required", "readonly", "input-style"])
66
- ])
67
- ]),
68
- _: 1
69
- }, 8, ["label", "id", "required", "readonly"]));
70
- }
71
- }), ee = /* @__PURE__ */ v(z, [["__scopeId", "data-v-5cd094ab"]]), D = ["required", "type", "name", "readonly", "disabled", "value", "checked"], H = ["data-test"], K = { key: 0 }, M = /* @__PURE__ */ b({
72
- __name: "Checkbox",
73
- props: {
74
- modelValue: { type: [String, Boolean, Number] },
75
- numeric: { type: Boolean, default: !1 },
76
- checked: { type: Boolean, default: !1 },
77
- label: {},
78
- price: {},
79
- name: {},
80
- readonly: { type: Boolean, default: !1 },
81
- type: { default: "checkbox" },
82
- required: { type: Boolean, default: !1 },
83
- inputStyle: {},
84
- val: {}
85
- },
86
- emits: ["update:modelValue"],
87
- setup(a, { emit: l }) {
88
- const t = a, n = l;
89
- function c() {
90
- t.readonly !== !0 && n(
91
- "update:modelValue",
92
- t.type === "radio" ? t.val : t.numeric ? t.modelValue ? 0 : 1 : !t.modelValue
93
- );
94
- }
95
- return (e, d) => (p(), I(A, {
96
- required: e.required,
97
- type: e.type,
98
- readonly: e.readonly
99
- }, {
100
- default: T(() => [
101
- r("label", {
102
- class: h([
103
- "fresh-booking-click-box-container",
104
- { "is-readonly": e.readonly },
105
- { "has-label": e.label },
106
- e.type === "radio" ? "radio" : "checkbox"
107
- ])
108
- }, [
109
- r("input", B(e.$attrs, {
110
- required: !!e.required,
111
- type: e.type,
112
- name: e.name,
113
- class: "hidden",
114
- readonly: !!e.readonly,
115
- disabled: !!e.readonly,
116
- value: e.type === "radio" ? e.val : e.modelValue,
117
- checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue,
118
- onChange: d[0] || (d[0] = (m) => c())
119
- }), null, 16, D),
120
- r("div", {
121
- class: h([
122
- "fresh-booking-click-box",
123
- { checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue }
124
- ]),
125
- tabindex: "0",
126
- style: _(e.inputStyle),
127
- "data-test": e.name,
128
- onKeyup: d[1] || (d[1] = N((m) => c(), ["enter"]))
129
- }, null, 46, H),
130
- e.label ? (p(), g("div", {
131
- key: 0,
132
- class: h(["fresh-booking-click-box-label", { "with-price": e.price }])
133
- }, [
134
- r("span", null, u(e.label), 1),
135
- e.price ? (p(), g("span", K, u(e.price), 1)) : C("", !0)
136
- ], 2)) : C("", !0)
137
- ], 2)
138
- ]),
139
- _: 1
140
- }, 8, ["required", "type", "readonly"]));
141
- }
142
- }), oe = /* @__PURE__ */ v(M, [["__scopeId", "data-v-7ef656cb"]]), R = {
143
- href: "https://policies.google.com/privacy",
144
- target: "_blank"
145
- }, W = {
146
- href: "https://policies.google.com/terms",
147
- target: "_blank"
148
- }, J = /* @__PURE__ */ b({
149
- __name: "GoogleNotice",
150
- setup(a) {
151
- const { t: l } = E();
152
- return (t, n) => (p(), g("span", null, [
153
- f(u(i(l)("googleNotice")) + " ", 1),
154
- r("a", R, u(i(l)("googlePrivacyPolicy")), 1),
155
- f(" " + u(i(l)("googleAnd")) + " ", 1),
156
- r("a", W, u(i(l)("googleTOS")), 1),
157
- f(" " + u(i(l)("googleApply")) + ". ", 1)
158
- ]));
159
- }
160
- });
161
- function q(a) {
162
- const l = a;
163
- l.__i18n = l.__i18n || [], l.__i18n.push({
164
- locale: "",
165
- resource: {
166
- da: {
167
- googleNotice: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Denne side er beskyttet af reCAPTCHA og Google's" } },
168
- googlePrivacyPolicy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Privatlivspolitik" } },
169
- googleAnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "og" } },
170
- googleTOS: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Servicevilkår" } },
171
- googleApply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "er gældende" } }
172
- },
173
- en: {
174
- googleNotice: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "This site is protected by reCAPTCHA and the Google" } },
175
- googlePrivacyPolicy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Privacy Policy" } },
176
- googleAnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "and" } },
177
- googleTOS: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Terms of Service" } },
178
- googleApply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "apply" } }
179
- }
180
- }
181
- });
182
- }
183
- typeof q == "function" && q(J);
184
- const L = (a) => (w("data-v-340cb9ce"), a = a(), G(), a), Q = /* @__PURE__ */ L(() => /* @__PURE__ */ r("div", { id: "fresh-booking-payment-checkout" }, null, -1)), X = [
185
- Q
186
- ], Y = /* @__PURE__ */ b({
187
- __name: "CheckoutWindow",
188
- setup(a) {
189
- const { paymentGatewayId: l } = F(O());
190
- return $(() => {
191
- const t = document.createElement("script"), n = document.createElement("script");
192
- 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);
193
- }), (t, n) => (p(), g("div", null, [
194
- r("div", {
195
- id: "fresh-booking-payment-checkout-wrapper",
196
- class: h({ reePay: i(l) === i(U).ReePay })
197
- }, X, 2)
198
- ]));
199
- }
200
- }), le = /* @__PURE__ */ v(Y, [["__scopeId", "data-v-340cb9ce"]]);
201
- export {
202
- oe as C,
203
- ee as P,
204
- J as _,
205
- le as a
206
- };
Binary file
@@ -1,69 +0,0 @@
1
- var u = Object.defineProperty;
2
- var n = Object.getOwnPropertySymbols;
3
- var p = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
4
- var a = (r, t, o) => t in r ? u(r, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[t] = o, l = (r, t) => {
5
- for (var o in t || (t = {}))
6
- p.call(t, o) && a(r, o, t[o]);
7
- if (n)
8
- for (var o of n(t))
9
- d.call(t, o) && a(r, o, t[o]);
10
- return r;
11
- };
12
- import { defineComponent as i, computed as s, onMounted as c, openBlock as y, createElementBlock as b, renderSlot as P } from "vue";
13
- import { _ as C } from "./SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js";
14
- const g = { class: "konnectio-container" }, v = /* @__PURE__ */ i({
15
- __name: "Container",
16
- props: {
17
- styling: {}
18
- },
19
- setup(r) {
20
- const t = r, o = s(() => l({
21
- accentColor: "#6ab1e6",
22
- accentColorSecondary: "#dae9f8",
23
- buttonBackground: "#6ab1e6",
24
- buttonBorder: null,
25
- buttonBorderRadius: "4px",
26
- buttonColor: "#FFF",
27
- buttonFontFamily: "inherit",
28
- buttonFontSize: "14px",
29
- buttonFontWeight: "400",
30
- buttonIconColor: "#FFF",
31
- buttonTextTransform: "uppercase",
32
- dangerColor: "red",
33
- fontColor: "#3b3b3b",
34
- fontFamily: "inherit",
35
- fontSize: "16px",
36
- grayColor: "grey",
37
- headerColor: "#000",
38
- inputBorder: "1px solid rgba(0, 0, 0, 0.15)",
39
- inputBackground: "#f8f8f8",
40
- inputBorderWidth: "0px 0px 1px",
41
- inputBorderRadius: "6px",
42
- inputFontColor: "#000000",
43
- labelFontColor: "#000000",
44
- labelFontWeight: "bold",
45
- labelFontSize: "15px",
46
- labelPadding: "6px",
47
- linkColor: "#5d6dca",
48
- linkHoverColor: "#2e3d90",
49
- loadingColor: "#000",
50
- panelBackground: "#ffffff",
51
- panelBorder: null,
52
- panelBorderRadius: "5px",
53
- panelInnerPadding: "12px",
54
- panelMaxWidth: "none",
55
- panelPadding: "24px",
56
- panelShadow: "0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)",
57
- successColor: "green"
58
- }, t.styling));
59
- return c(() => {
60
- const e = document.documentElement.style;
61
- e.setProperty("--accentColor", o.value.accentColor), e.setProperty("--accentColorSecondary", o.value.accentColorSecondary), e.setProperty("--buttonBackground", o.value.buttonBackground), e.setProperty("--buttonBorder", o.value.buttonBorder), e.setProperty("--buttonBorderRadius", o.value.buttonBorderRadius), e.setProperty("--buttonColor", o.value.buttonColor), e.setProperty("--buttonFontFamily", o.value.buttonFontFamily), e.setProperty("--buttonFontSize", o.value.buttonFontSize), e.setProperty("--buttonFontWeight", o.value.buttonFontWeight), e.setProperty("--buttonTextTransform", o.value.buttonTextTransform), e.setProperty("--dangerColor", o.value.dangerColor), e.setProperty("--fontColor", o.value.fontColor), e.setProperty("--fontFamily", o.value.fontFamily), e.setProperty("--fontSize", o.value.fontSize), e.setProperty("--grayColor", o.value.grayColor), e.setProperty("--headerColor", o.value.headerColor), e.setProperty("--inputBackground", o.value.inputBackground), e.setProperty("--inputBorder", o.value.inputBorder), e.setProperty("--inputBorderRadius", o.value.inputBorderRadius), e.setProperty("--inputBorderWidth", o.value.inputBorderWidth), e.setProperty("--inputFontColor", o.value.inputFontColor), e.setProperty("--labelFontColor", o.value.labelFontColor), e.setProperty("--labelFontWeight", o.value.labelFontWeight), e.setProperty("--labelFontSize", o.value.labelFontSize), e.setProperty("--labelPadding", o.value.labelPadding), e.setProperty("--linkColor", o.value.linkColor), e.setProperty("--linkHoverColor", o.value.linkHoverColor), e.setProperty("--loadingColor", o.value.loadingColor), e.setProperty("--panelBackground", o.value.panelBackground), e.setProperty("--panelBorder", o.value.panelBorder), e.setProperty("--panelBorderRadius", o.value.panelBorderRadius), e.setProperty("--panelInnerPadding", o.value.panelInnerPadding), e.setProperty("--panelMaxWidth", o.value.panelMaxWidth), e.setProperty("--panelPadding", o.value.panelPadding), e.setProperty("--panelShadow", o.value.panelShadow), e.setProperty("--successColor", o.value.successColor);
62
- }), (e, F) => (y(), b("div", g, [
63
- P(e.$slots, "default", {}, void 0, !0)
64
- ]));
65
- }
66
- }), h = /* @__PURE__ */ C(v, [["__scopeId", "data-v-b8c97ab0"]]);
67
- export {
68
- h as C
69
- };
Binary file