@konnectio/core 4.0.56-rc4 → 4.0.56-rc41

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 (187) hide show
  1. package/dist/{ActionField-UFZMmHDy.js → ActionField-B7yd3wqo.js} +39 -31
  2. package/dist/ActionField-B7yd3wqo.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BFkO-iFk.js +288 -0
  4. package/dist/AvailabilitySkeleton-BFkO-iFk.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvsxXVBB.js +7746 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvsxXVBB.js.br +0 -0
  7. package/dist/CheckoutWindow-DXpTb3IM.js +668 -0
  8. package/dist/CheckoutWindow-DXpTb3IM.js.br +0 -0
  9. package/dist/ErrorMessage-DURaj0JK.js +45 -0
  10. package/dist/ErrorMessage-DURaj0JK.js.br +0 -0
  11. package/dist/EventAvailabilityForm-EdvNJO4b.js +432 -0
  12. package/dist/EventAvailabilityForm-EdvNJO4b.js.br +0 -0
  13. package/dist/Field-C31DtxD3.js +50 -0
  14. package/dist/Field-C31DtxD3.js.br +0 -0
  15. package/dist/{SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DCFBIwBo.js} +9594 -9834
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DCFBIwBo.js.br +0 -0
  17. package/dist/TermsOfService-RMTyUzQE.js +35 -0
  18. package/dist/TermsOfService-RMTyUzQE.js.br +0 -0
  19. package/dist/_-C4rdBIG5.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-DxTbCVt9.js +71 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-DxTbCVt9.js.br +0 -0
  22. package/dist/_commonjsHelpers-BpcYSDvQ.js +11797 -0
  23. package/dist/_commonjsHelpers-BpcYSDvQ.js.br +0 -0
  24. package/dist/availability.js +95 -147
  25. package/dist/availability.js.br +0 -0
  26. package/dist/event.js +723 -494
  27. package/dist/event.js.br +0 -0
  28. package/dist/gift-card-validation.js +120 -64
  29. package/dist/gift-card-validation.js.br +0 -0
  30. package/dist/gift-card.js +364 -410
  31. package/dist/gift-card.js.br +0 -0
  32. package/dist/giftCard-CTOcXgxl.js +128 -0
  33. package/dist/giftCard-CTOcXgxl.js.br +0 -0
  34. package/dist/hotel.js +1372 -2419
  35. package/dist/hotel.js.br +0 -0
  36. package/dist/masonry.plugin-w0LZcwZT.js +12755 -0
  37. package/dist/masonry.plugin-w0LZcwZT.js.br +0 -0
  38. package/dist/navigation.js +10 -1
  39. package/dist/polyfill.js +14868 -4768
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/style.css +1 -1
  42. package/dist/style.css.br +0 -0
  43. package/package.json +45 -38
  44. package/dist/ActionField-UFZMmHDy.js.br +0 -0
  45. package/dist/AvailabilitySkeleton-hVUJYdXH.js +0 -242
  46. package/dist/AvailabilitySkeleton-hVUJYdXH.js.br +0 -0
  47. package/dist/CheckoutWindow-2RMgPiGi.js +0 -206
  48. package/dist/CheckoutWindow-2RMgPiGi.js.br +0 -0
  49. package/dist/Container-XBRB0sOV.js +0 -69
  50. package/dist/Container-XBRB0sOV.js.br +0 -0
  51. package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js +0 -8567
  52. package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js.br +0 -0
  53. package/dist/Field-uK3Wuuv6.js +0 -43
  54. package/dist/Field-uK3Wuuv6.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js.br +0 -0
  56. package/dist/ThankYou-nz4vPX4O.js +0 -13316
  57. package/dist/ThankYou-nz4vPX4O.js.br +0 -0
  58. package/dist/_-oPH7HiaC.js +0 -20
  59. package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
  60. package/dist/assets/typescript/mixins.d.ts +0 -34
  61. package/dist/availability.d.ts +0 -3
  62. package/dist/components/Alert.vue.d.ts +0 -28
  63. package/dist/components/Alert.vue.d.ts.map +0 -1
  64. package/dist/components/Clickable.vue.d.ts +0 -60
  65. package/dist/components/Clickable.vue.d.ts.map +0 -1
  66. package/dist/components/Container.vue.d.ts +0 -23
  67. package/dist/components/Container.vue.d.ts.map +0 -1
  68. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  69. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  70. package/dist/components/Gallery.vue.d.ts +0 -31
  71. package/dist/components/Gallery.vue.d.ts.map +0 -1
  72. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  73. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  74. package/dist/components/Icon.vue.d.ts +0 -38
  75. package/dist/components/Icon.vue.d.ts.map +0 -1
  76. package/dist/components/Loading.vue.d.ts +0 -29
  77. package/dist/components/Loading.vue.d.ts.map +0 -1
  78. package/dist/components/Spinner.vue.d.ts +0 -2
  79. package/dist/components/Spinner.vue.d.ts.map +0 -1
  80. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  81. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  82. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  83. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  84. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  85. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  86. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  87. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  88. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  89. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  90. package/dist/components/forms/_.vue.d.ts +0 -42
  91. package/dist/components/forms/_.vue.d.ts.map +0 -1
  92. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  93. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  94. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  95. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  96. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  97. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  98. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  99. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  100. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  101. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  102. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  103. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  104. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  105. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  106. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  107. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  108. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  109. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  110. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  111. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  112. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  113. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  114. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  115. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  116. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  117. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  118. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  119. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  120. package/dist/components/listings/Base.vue.d.ts +0 -56
  121. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  122. package/dist/components/listings/Event.vue.d.ts +0 -47
  123. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  124. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  125. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  126. package/dist/components/listings/Template.vue.d.ts +0 -21
  127. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  128. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  129. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  130. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  131. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  132. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  133. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  134. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  135. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  136. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  137. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  138. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  139. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  140. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  141. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  142. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  143. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  144. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  145. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  146. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  147. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  148. package/dist/components/skeletons/_.vue.d.ts +0 -36
  149. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  150. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  151. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  152. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  153. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  154. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  155. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  156. package/dist/entries/availability.d.ts +0 -5
  157. package/dist/entries/event.d.ts +0 -2
  158. package/dist/entries/gift-card-validation.d.ts +0 -5
  159. package/dist/entries/gift-card.d.ts +0 -5
  160. package/dist/entries/hotel.d.ts +0 -5
  161. package/dist/entries/navigation.d.ts +0 -1
  162. package/dist/entries/polyfill.d.ts +0 -0
  163. package/dist/event--wgsUkQp.js +0 -359
  164. package/dist/event--wgsUkQp.js.br +0 -0
  165. package/dist/event.d.ts +0 -3
  166. package/dist/gift-card-validation.d.ts +0 -3
  167. package/dist/gift-card.d.ts +0 -3
  168. package/dist/hotel.d.ts +0 -3
  169. package/dist/layouts/Availability.vue.d.ts +0 -25
  170. package/dist/layouts/Event.vue.d.ts +0 -18
  171. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  172. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  173. package/dist/layouts/Hotel.vue.d.ts +0 -36
  174. package/dist/layouts/_.vue.d.ts +0 -39
  175. package/dist/navigation.d.ts +0 -1
  176. package/dist/plugins/i18n.d.ts +0 -5
  177. package/dist/polyfill.d.ts +0 -1
  178. package/dist/store/alert.d.ts +0 -28
  179. package/dist/store/applyGiftCard.d.ts +0 -28
  180. package/dist/store/availability.d.ts +0 -40
  181. package/dist/store/event.d.ts +0 -683
  182. package/dist/store/giftCard.d.ts +0 -83
  183. package/dist/store/payment.d.ts +0 -139
  184. package/dist/store/recaptcha.d.ts +0 -28
  185. package/dist/store/tracking.d.ts +0 -57
  186. package/dist/store/utilities.d.ts +0 -350
  187. 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-rc4",
3
+ "version": "4.0.56-rc41",
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",
@@ -30,65 +38,64 @@
30
38
  "@chenfengyuan/vue-number-input": "2.0.1",
31
39
  "@egjs/flicking-plugins": "4.7.1",
32
40
  "@egjs/vue3-flicking": "4.11.2",
33
- "@fortawesome/fontawesome-pro": "6.5.1",
34
- "@fortawesome/fontawesome-svg-core": "6.5.1",
35
- "@fortawesome/free-brands-svg-icons": "6.5.1",
36
- "@fortawesome/pro-light-svg-icons": "6.5.1",
37
- "@fortawesome/pro-solid-svg-icons": "6.5.1",
38
- "@fortawesome/vue-fontawesome": "3.0.5",
39
- "@intlify/unplugin-vue-i18n": "2.0.0",
40
- "@unhead/vue": "1.8.9",
41
- "@vuepic/vue-datepicker": "7.4.1",
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",
46
+ "@fortawesome/vue-fontawesome": "3.0.6",
47
+ "@intlify/unplugin-vue-i18n": "4.0.0",
48
+ "@sentry/vue": "7.109.0",
49
+ "@unhead/vue": "1.9.4",
50
+ "@vuepic/vue-datepicker": "8.4.0",
42
51
  "@vueup/vue-quill": "1.2.0",
43
- "@vueuse/core": "10.7.1",
44
- "axios": "1.6.5",
45
- "core-js": "3.35.0",
52
+ "@vueuse/core": "10.9.0",
53
+ "axios": "1.6.8",
54
+ "core-js": "3.36.1",
46
55
  "cqfill": "0.6.1",
47
- "dotenv": "^16.3.1",
48
- "floating-vue": "5.0.3",
56
+ "date-fns": "3.6.0",
57
+ "floating-vue": "5.2.2",
49
58
  "linkify-html": "4.1.3",
50
59
  "linkifyjs": "4.1.3",
60
+ "mitt": "3.0.1",
51
61
  "pinia": "2.1.7",
52
- "postcss": "8.4.33",
62
+ "postcss": "8.4.38",
53
63
  "recaptcha-v3": "1.10.0",
54
64
  "regenerator-runtime": "0.14.1",
55
65
  "text-clipper": "2.2.0",
56
- "vue": "3.3.10",
66
+ "vue": "3.4.21",
57
67
  "vue-gtag": "2.0.1",
58
- "vue-i18n": "9.9.0",
68
+ "vue-i18n": "9.11.1",
59
69
  "vue-inner-image-zoom": "2.0.0",
60
70
  "vue-masonry": "0.16.0",
61
- "vue-router": "^4.2.5",
71
+ "vue-router": "4.3.0",
62
72
  "vue-select": "4.0.0-beta.6",
63
73
  "vue3-side-panel": "1.3.0",
64
74
  "vue3-sticky-sidebar": "2.0.0",
65
75
  "vue3-text-clamp": "0.1.2"
66
76
  },
67
77
  "devDependencies": {
68
- "@babel/eslint-parser": "7.23.3",
78
+ "@babel/eslint-parser": "7.24.1",
69
79
  "@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",
74
- "@vue/eslint-config-typescript": "12.0.0",
75
- "@vue/test-utils": "2.4.3",
80
+ "@sentry/vite-plugin": "2.16.1",
81
+ "@types/node": "20.12.7",
82
+ "@typescript-eslint/eslint-plugin": "7.6.0",
83
+ "@typescript-eslint/parser": "7.6.0",
84
+ "@vitejs/plugin-vue": "5.0.4",
85
+ "@vue/eslint-config-typescript": "13.0.0",
86
+ "@vue/test-utils": "2.4.5",
76
87
  "cross-env": "7.0.3",
77
- "cypress": "13.6.2",
78
- "eslint": "8.56.0",
79
- "eslint-plugin-vue": "9.19.2",
88
+ "cypress": "13.7.2",
89
+ "eslint": "8.57.0",
90
+ "eslint-plugin-vue": "9.24.0",
80
91
  "rollup-plugin-typescript2": "0.36.0",
81
- "sass": "1.69.7",
92
+ "sass": "1.74.1",
82
93
  "ts-node": "10.9.2",
83
94
  "tslib": "2.6.2",
84
- "typescript": "5.3.3",
85
- "vite": "5.0.11",
95
+ "typescript": "5.4.4",
96
+ "vite": "5.2.8",
86
97
  "vite-plugin-compression": "0.5.1",
87
- "vite-plugin-dts": "3.7.0",
88
- "vue-tsc": "1.8.27"
89
- },
90
- "peerDependencies": {
91
- "vue": "^3.3.10"
98
+ "vue-tsc": "2.0.11"
92
99
  },
93
100
  "contributors": [
94
101
  {
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-3YCxOJhZ.js";
3
- import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js";
4
- import { E as M } from "./_-oPH7HiaC.js";
5
- import { F as f } from "./Field-uK3Wuuv6.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-3YCxOJhZ.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-3YCxOJhZ.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