@konnectio/core 4.0.56-rc6 → 4.0.56-rc60

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 (195) hide show
  1. package/dist/{ActionField-YyW_C34E.js → ActionField-M9Xn2IjF.js} +43 -34
  2. package/dist/ActionField-M9Xn2IjF.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-CmB18GBl.js +294 -0
  4. package/dist/AvailabilitySkeleton-CmB18GBl.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js +8213 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js.br +0 -0
  7. package/dist/CheckoutWindow-Bhwi8Nxq.js +677 -0
  8. package/dist/CheckoutWindow-Bhwi8Nxq.js.br +0 -0
  9. package/dist/ErrorMessage-Cf84tBwS.js +45 -0
  10. package/dist/ErrorMessage-Cf84tBwS.js.br +0 -0
  11. package/dist/EventAvailabilityForm-ayhrj2Dh.js +117 -0
  12. package/dist/EventAvailabilityForm-ayhrj2Dh.js.br +0 -0
  13. package/dist/Field-w5TiS3qQ.js +50 -0
  14. package/dist/Field-w5TiS3qQ.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js +18601 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js.br +0 -0
  17. package/dist/TermsOfService-DG9RmJhS.js +36 -0
  18. package/dist/TermsOfService-DG9RmJhS.js.br +0 -0
  19. package/dist/_-C3cdq-vi.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-DUgEPbV0.js +69 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-DUgEPbV0.js.br +0 -0
  22. package/dist/_commonjsHelpers-Bwmg5gQN.js +17 -0
  23. package/dist/_sentry-release-injection-file-Bs1oW58-.js +9524 -0
  24. package/dist/_sentry-release-injection-file-Bs1oW58-.js.br +0 -0
  25. package/dist/availability.js +90 -140
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +62 -0
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +790 -500
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +113 -68
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +353 -409
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-BvD5QzCq.js +134 -0
  36. package/dist/giftCard-BvD5QzCq.js.br +0 -0
  37. package/dist/hotel.js +1516 -2445
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/masonry.plugin-C_Lw26Pq.js +12782 -0
  40. package/dist/masonry.plugin-C_Lw26Pq.js.br +0 -0
  41. package/dist/mitt-Djl3HvxD.js +2953 -0
  42. package/dist/mitt-Djl3HvxD.js.br +0 -0
  43. package/dist/polyfill.js +15079 -4765
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/dist/tracing-SGZEiE7O.js +2287 -0
  48. package/dist/tracing-SGZEiE7O.js.br +0 -0
  49. package/package.json +48 -42
  50. package/dist/ActionField-YyW_C34E.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-lYcDX41T.js +0 -239
  52. package/dist/AvailabilitySkeleton-lYcDX41T.js.br +0 -0
  53. package/dist/CheckoutWindow-T7-vrZyG.js +0 -205
  54. package/dist/CheckoutWindow-T7-vrZyG.js.br +0 -0
  55. package/dist/Container-w7O0He-s.js +0 -68
  56. package/dist/Container-w7O0He-s.js.br +0 -0
  57. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js +0 -8566
  58. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js.br +0 -0
  59. package/dist/Field-fWwF40rD.js +0 -42
  60. package/dist/Field-fWwF40rD.js.br +0 -0
  61. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js +0 -30461
  62. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js.br +0 -0
  63. package/dist/ThankYou-pUA2X7-4.js +0 -13316
  64. package/dist/ThankYou-pUA2X7-4.js.br +0 -0
  65. package/dist/_-TlutFgf7.js +0 -19
  66. package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
  67. package/dist/assets/typescript/mixins.d.ts +0 -34
  68. package/dist/availability.d.ts +0 -3
  69. package/dist/components/Alert.vue.d.ts +0 -28
  70. package/dist/components/Alert.vue.d.ts.map +0 -1
  71. package/dist/components/Clickable.vue.d.ts +0 -60
  72. package/dist/components/Clickable.vue.d.ts.map +0 -1
  73. package/dist/components/Container.vue.d.ts +0 -23
  74. package/dist/components/Container.vue.d.ts.map +0 -1
  75. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  76. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  77. package/dist/components/Gallery.vue.d.ts +0 -31
  78. package/dist/components/Gallery.vue.d.ts.map +0 -1
  79. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  80. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  81. package/dist/components/Icon.vue.d.ts +0 -38
  82. package/dist/components/Icon.vue.d.ts.map +0 -1
  83. package/dist/components/Loading.vue.d.ts +0 -29
  84. package/dist/components/Loading.vue.d.ts.map +0 -1
  85. package/dist/components/Spinner.vue.d.ts +0 -2
  86. package/dist/components/Spinner.vue.d.ts.map +0 -1
  87. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  88. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  89. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  90. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  91. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  92. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  93. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  94. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  95. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  96. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  97. package/dist/components/forms/_.vue.d.ts +0 -42
  98. package/dist/components/forms/_.vue.d.ts.map +0 -1
  99. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  100. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  101. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  102. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  103. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  104. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  105. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  106. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  107. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  108. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  109. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  110. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  111. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  112. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  113. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  114. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  115. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  116. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  117. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  118. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  119. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  120. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  121. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  122. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  123. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  124. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  125. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  126. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  127. package/dist/components/listings/Base.vue.d.ts +0 -56
  128. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  129. package/dist/components/listings/Event.vue.d.ts +0 -47
  130. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  131. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  132. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  133. package/dist/components/listings/Template.vue.d.ts +0 -21
  134. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  135. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  136. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  137. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  138. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  139. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  140. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  141. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  142. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  143. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  144. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  145. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  146. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  147. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  148. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  149. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  150. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  151. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  152. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  153. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  154. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  155. package/dist/components/skeletons/_.vue.d.ts +0 -36
  156. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  157. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  158. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  159. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  160. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  161. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  162. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  163. package/dist/entries/availability.d.ts +0 -5
  164. package/dist/entries/event.d.ts +0 -2
  165. package/dist/entries/gift-card-validation.d.ts +0 -5
  166. package/dist/entries/gift-card.d.ts +0 -5
  167. package/dist/entries/hotel.d.ts +0 -5
  168. package/dist/entries/navigation.d.ts +0 -1
  169. package/dist/entries/polyfill.d.ts +0 -0
  170. package/dist/event-mDcuoL9g.js +0 -358
  171. package/dist/event-mDcuoL9g.js.br +0 -0
  172. package/dist/event.d.ts +0 -3
  173. package/dist/gift-card-validation.d.ts +0 -3
  174. package/dist/gift-card.d.ts +0 -3
  175. package/dist/hotel.d.ts +0 -3
  176. package/dist/layouts/Availability.vue.d.ts +0 -25
  177. package/dist/layouts/Event.vue.d.ts +0 -18
  178. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  179. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  180. package/dist/layouts/Hotel.vue.d.ts +0 -36
  181. package/dist/layouts/_.vue.d.ts +0 -39
  182. package/dist/navigation.d.ts +0 -1
  183. package/dist/navigation.js +0 -1
  184. package/dist/plugins/i18n.d.ts +0 -5
  185. package/dist/polyfill.d.ts +0 -1
  186. package/dist/store/alert.d.ts +0 -28
  187. package/dist/store/applyGiftCard.d.ts +0 -28
  188. package/dist/store/availability.d.ts +0 -40
  189. package/dist/store/event.d.ts +0 -683
  190. package/dist/store/giftCard.d.ts +0 -83
  191. package/dist/store/payment.d.ts +0 -139
  192. package/dist/store/recaptcha.d.ts +0 -28
  193. package/dist/store/tracking.d.ts +0 -57
  194. package/dist/store/utilities.d.ts +0 -350
  195. package/dist/types/index.d.ts +0 -976
Binary file
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.0.56-rc6",
4
- "author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
3
+ "version": "4.0.56-rc60",
4
+ "author": "Konnectio <info@konnectio.com> (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,66 +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.114.0",
49
+ "@unhead/vue": "1.9.10",
50
+ "@vuepic/vue-datepicker": "8.6.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.37.0",
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",
57
- "vue-gtag": "2.0.1",
58
- "vue-i18n": "9.9.0",
66
+ "vue": "3.4.27",
67
+ "vue-gtag": "2.0.1",
68
+ "vue-i18n": "9.13.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.2",
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
- "vue3-text-clamp": "0.1.2",
66
- "vue3-webcomponent-wrapper": "^0.2.0"
75
+ "vue3-text-clamp": "0.1.2"
67
76
  },
68
77
  "devDependencies": {
69
- "@babel/eslint-parser": "7.23.3",
78
+ "@babel/eslint-parser": "7.24.5",
70
79
  "@originjs/vite-plugin-commonjs": "1.0.3",
71
- "@types/node": "20.11.0",
72
- "@typescript-eslint/eslint-plugin": "6.18.1",
73
- "@typescript-eslint/parser": "6.18.1",
74
- "@vitejs/plugin-vue": "5.0.3",
75
- "@vue/eslint-config-typescript": "12.0.0",
76
- "@vue/test-utils": "2.4.3",
80
+ "@sentry/vite-plugin": "2.16.1",
81
+ "@types/node": "20.12.11",
82
+ "@typescript-eslint/eslint-plugin": "7.8.0",
83
+ "@typescript-eslint/parser": "7.8.0",
84
+ "@vitejs/plugin-vue": "5.0.4",
85
+ "@vue/eslint-config-typescript": "13.0.0",
86
+ "@vue/test-utils": "2.4.6",
77
87
  "cross-env": "7.0.3",
78
- "cypress": "13.6.2",
79
- "eslint": "8.56.0",
80
- "eslint-plugin-vue": "9.19.2",
88
+ "cypress": "13.9.0",
89
+ "eslint": "8.57.0",
90
+ "eslint-plugin-vue": "9.26.0",
81
91
  "rollup-plugin-typescript2": "0.36.0",
82
- "sass": "1.69.7",
92
+ "sass": "1.77.1",
83
93
  "ts-node": "10.9.2",
84
94
  "tslib": "2.6.2",
85
- "typescript": "5.3.3",
86
- "vite": "5.0.11",
95
+ "typescript": "5.4.5",
96
+ "vite": "5.2.11",
87
97
  "vite-plugin-compression": "0.5.1",
88
- "vite-plugin-dts": "3.7.0",
89
- "vue-tsc": "1.8.27"
90
- },
91
- "peerDependencies": {
92
- "vue": "^3.3.10"
98
+ "vue-tsc": "2.0.17"
93
99
  },
94
100
  "contributors": [
95
101
  {
Binary file
@@ -1,239 +0,0 @@
1
- import { k as L, r as M, c as J, o as t, l as u, D as Y, N as Z, F as ee, s as A, aa as N, ab as E, f as v, a2 as H, B as ae, m as g, w as le, x as $, z as e, p as o, J as k, y as te, n as y, a3 as I, T as z, A as O, C as T, q as S, h as ie, _ as j } from "./SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js";
2
- import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js";
3
- import { E as q } from "./_-TlutFgf7.js";
4
- import { F as f } from "./Field-fWwF40rD.js";
5
- const oe = /* @__PURE__ */ L({
6
- __name: "_",
7
- props: {
8
- type: { default: "submit" }
9
- },
10
- emits: ["submit"],
11
- setup(h, { emit: a }) {
12
- const n = M(!1), r = a, c = h, { verifyRecaptcha: d } = J();
13
- function p() {
14
- n.value = !0, d({
15
- callback: D,
16
- type: c.type
17
- }).then(() => n.value = !1);
18
- }
19
- function D() {
20
- r("submit");
21
- }
22
- return (V, R) => (t(), u("form", {
23
- onSubmit: Z(p, ["prevent"])
24
- }, [
25
- Y(V.$slots, "default", { isLoading: n.value })
26
- ], 32));
27
- }
28
- }), se = {
29
- key: 0,
30
- class: "konnectio-availability-location"
31
- }, re = { id: "fresh-booking-availability-date-selection" }, ue = {
32
- key: 1,
33
- id: "fresh-booking-availability-guest-selection"
34
- }, ce = { id: "fresh-booking-availability-confirmation" }, de = /* @__PURE__ */ L({
35
- __name: "HotelAvailabilityForm",
36
- props: {
37
- booking: { type: Boolean, default: !1 },
38
- link: {}
39
- },
40
- setup(h) {
41
- const { t: a } = ee(), n = h, {
42
- adults: r,
43
- children: c,
44
- arrivalDate: d,
45
- departureDate: p,
46
- location: D,
47
- isExpired: V
48
- } = A(N()), { reset: R } = N(), { fetchAvailabilityData: G } = E(), { areListingsLoading: U, hotelList: K, hasHotelList: _ } = A(E()), {
49
- firstSelectableDateOffset: B,
50
- lastSelectableDateOffset: C,
51
- disableChildSelection: b,
52
- disableAdultSelection: m
53
- } = A(J()), w = M([]), P = v(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (B.value - 1)))), fe = v(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + C.value))), ye = v(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + B.value))), Q = v(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (C.value + 1)))), x = v(() => !(!m && r.value === 0)), W = v(() => typeof n.link != "string");
54
- function X() {
55
- if (n.booking === !1)
56
- if (W.value) {
57
- const s = ie();
58
- n.link[s] ? window.location.replace(n.link[s]) : n.link.en ? window.location.replace(n.link.en) : console.log("Sprog understøttes ikke");
59
- } else
60
- window.location.replace(n.link);
61
- else
62
- x.value && G();
63
- }
64
- return H(d, (s) => {
65
- const l = new Date(new Date(s).setDate(new Date(s).getDate() + 1));
66
- new Date(p.value) < l && (p.value = l);
67
- }), H(w, (s) => {
68
- d.value = s[0], p.value = s[1];
69
- }), ae(() => {
70
- V.value && R(), w.value = [d.value, p.value];
71
- }), (s, l) => (t(), g(oe, {
72
- id: "konnectio-availability-form",
73
- class: S({ reservation: s.booking }),
74
- type: "availability",
75
- onSubmit: X
76
- }, {
77
- default: le(({ isLoading: F }) => [
78
- $("ul", {
79
- id: "konnectio-availability-form-content",
80
- class: S([
81
- { "is-booking-page": s.booking },
82
- { "only-adult-guests": !e(m) && e(b) },
83
- { "only-child-guests": !e(b) && e(m) },
84
- { "no-guests": e(m) && e(b) },
85
- { "all-guests": !e(m) && !e(b) },
86
- { "has-location": e(_) }
87
- ])
88
- }, [
89
- e(_) ? (t(), u("li", se, [
90
- o(te, {
91
- modelValue: e(D),
92
- "onUpdate:modelValue": l[0] || (l[0] = (i) => k(D) ? D.value = i : null),
93
- label: e(a)("general.location"),
94
- icon: "location-dot",
95
- "icon-type": "fas",
96
- "icon-placement": "label",
97
- options: e(K),
98
- searchable: !1
99
- }, null, 8, ["modelValue", "label", "options"])
100
- ])) : y("", !0),
101
- $("li", re, [
102
- o(ne, {
103
- modelValue: w.value,
104
- "onUpdate:modelValue": l[1] || (l[1] = (i) => w.value = i),
105
- label: e(a)("availability.checkInOut"),
106
- "icon-type": "fas",
107
- "icon-placement": "label",
108
- "min-range": 1,
109
- "min-date": P.value,
110
- "max-date": Q.value,
111
- range: ""
112
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
113
- y("", !0)
114
- ]),
115
- !e(m) || !e(b) ? (t(), u("li", ue, [
116
- e(m) ? y("", !0) : (t(), u(I, { key: 0 }, [
117
- e(_) ? (t(), g(z, {
118
- key: 0,
119
- modelValue: e(r),
120
- "onUpdate:modelValue": l[4] || (l[4] = (i) => k(r) ? r.value = i : null),
121
- label: e(a)("availability.adults"),
122
- description: e(a)("general.adultAgeRange"),
123
- "icon-type": "fas",
124
- "icon-placement": "label",
125
- name: "adults",
126
- icon: "male"
127
- }, null, 8, ["modelValue", "label", "description"])) : (t(), g(O, {
128
- key: 1,
129
- modelValue: e(r),
130
- "onUpdate:modelValue": l[5] || (l[5] = (i) => k(r) ? r.value = i : null),
131
- label: e(a)("availability.adults"),
132
- description: e(a)("general.adultAgeRange"),
133
- "icon-type": "fas",
134
- "icon-placement": "label",
135
- name: "adults",
136
- icon: "male"
137
- }, null, 8, ["modelValue", "label", "description"]))
138
- ], 64)),
139
- e(b) ? y("", !0) : (t(), u(I, { key: 1 }, [
140
- e(_) ? (t(), g(z, {
141
- key: 0,
142
- modelValue: e(c),
143
- "onUpdate:modelValue": l[6] || (l[6] = (i) => k(c) ? c.value = i : null),
144
- label: e(a)("availability.children"),
145
- description: e(a)("general.childAgeRange"),
146
- "icon-type": "fas",
147
- "icon-placement": "label",
148
- name: "children",
149
- icon: "child"
150
- }, null, 8, ["modelValue", "label", "description"])) : (t(), g(O, {
151
- key: 1,
152
- modelValue: e(c),
153
- "onUpdate:modelValue": l[7] || (l[7] = (i) => k(c) ? c.value = i : null),
154
- label: e(a)("availability.children"),
155
- description: e(a)("general.childAgeRange"),
156
- "icon-type": "fas",
157
- "icon-placement": "label",
158
- name: "children",
159
- icon: "child"
160
- }, null, 8, ["modelValue", "label", "description"]))
161
- ], 64))
162
- ])) : y("", !0),
163
- $("li", ce, [
164
- o(T, {
165
- class: "konnectio-availability-submit-small",
166
- type: "submit",
167
- icon: "search",
168
- "icon-type": "fas",
169
- disabled: !x.value,
170
- "is-loading": e(U) || F
171
- }, null, 8, ["disabled", "is-loading"]),
172
- o(T, {
173
- class: "konnectio-availability-submit-large",
174
- type: "submit",
175
- label: e(a)("availability.buttonLabel"),
176
- disabled: !x.value,
177
- "is-loading": e(U) || F
178
- }, null, 8, ["label", "disabled", "is-loading"])
179
- ])
180
- ], 2)
181
- ]),
182
- _: 1
183
- }, 8, ["class"]));
184
- }
185
- }), _e = /* @__PURE__ */ j(de, [["__scopeId", "data-v-9ec1beba"]]), me = { class: "availability-skeleton" }, pe = {
186
- key: 0,
187
- class: "availability-skeleton-navigation"
188
- }, be = {
189
- key: 2,
190
- class: "availability-skeleton-event"
191
- }, ve = /* @__PURE__ */ L({
192
- __name: "AvailabilitySkeleton",
193
- props: {
194
- view: { default: "hotel" },
195
- hotel: { type: Boolean, default: !1 }
196
- },
197
- setup(h) {
198
- return (a, n) => (t(), u("div", me, [
199
- a.view === "both" ? (t(), u("div", pe, [
200
- o(q, {
201
- height: "28px",
202
- width: "60px",
203
- "border-radius": "20px"
204
- }),
205
- o(q, {
206
- height: "28px",
207
- width: "60px",
208
- "border-radius": "20px"
209
- })
210
- ])) : y("", !0),
211
- a.view !== "event" ? (t(), u("div", {
212
- key: 1,
213
- class: S([
214
- "availability-skeleton-hotel",
215
- { "within-hotel": a.hotel }
216
- ])
217
- }, [
218
- o(f, { "with-icon": "" }),
219
- o(f, { "with-icon": "" }),
220
- o(f, { "with-icon": "" }),
221
- o(f, {
222
- "with-icon": "",
223
- "no-label": ""
224
- })
225
- ], 2)) : (t(), u("div", be, [
226
- o(f, { "with-icon": "" }),
227
- o(f, {
228
- "with-icon": "",
229
- "no-label": ""
230
- })
231
- ]))
232
- ]));
233
- }
234
- }), we = /* @__PURE__ */ j(ve, [["__scopeId", "data-v-be195a3f"]]);
235
- export {
236
- we as A,
237
- _e as H,
238
- oe as _
239
- };
@@ -1,205 +0,0 @@
1
- import { k as b, v as k, r as V, B as $, o as p, m as B, w as I, x as d, p as C, z as i, T as q, I as T, _ as v, ah as A, q as h, ai as _, aj as w, l as g, H as u, n as P, F as N, a6 as f, s as F, c as G, ak as j, Q as z, R as E } from "./SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js";
2
- const H = { class: "fresh-booking-phone-input" }, O = /* @__PURE__ */ b({
3
- __name: "PhoneField",
4
- props: {
5
- modelValue: {},
6
- label: {},
7
- id: {},
8
- placeholder: {},
9
- icon: { default: "phone-office" },
10
- iconColor: {},
11
- iconType: { default: "fal" },
12
- required: { type: Boolean, default: !1 },
13
- readonly: { type: Boolean, default: !1 },
14
- inputStyle: {}
15
- },
16
- emits: ["update:modelValue"],
17
- setup(a, { emit: l }) {
18
- const t = l, n = a, c = n.id || k(), e = V("+45"), s = V("");
19
- function m() {
20
- t("update:modelValue", `${e.value} ${s.value}`);
21
- }
22
- return $(() => {
23
- if (n.modelValue) {
24
- const o = n.modelValue.split(" ");
25
- e.value = o[0], s.value = o[1];
26
- }
27
- }), (o, r) => (p(), B(T, {
28
- label: o.label,
29
- id: i(c),
30
- type: "phone",
31
- required: o.required,
32
- readonly: o.readonly
33
- }, {
34
- default: I(() => [
35
- d("div", H, [
36
- C(q, {
37
- modelValue: e.value,
38
- "onUpdate:modelValue": r[0] || (r[0] = (y) => e.value = y),
39
- type: "text",
40
- id: i(k)(),
41
- name: "phone-code",
42
- autocomplete: "tel-country-code",
43
- icon: o.icon,
44
- "icon-color": o.iconColor,
45
- "icon-type": o.iconType,
46
- placeholder: "+45",
47
- required: o.required,
48
- readonly: o.readonly,
49
- "input-style": o.inputStyle,
50
- onInput: r[1] || (r[1] = (y) => m())
51
- }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
52
- C(q, {
53
- modelValue: s.value,
54
- "onUpdate:modelValue": r[2] || (r[2] = (y) => s.value = y),
55
- type: "number",
56
- name: "phone",
57
- autocomplete: "tel-national",
58
- id: i(c),
59
- placeholder: o.placeholder,
60
- required: o.required,
61
- readonly: o.readonly,
62
- "input-style": o.inputStyle,
63
- onInput: r[3] || (r[3] = (y) => m())
64
- }, null, 8, ["modelValue", "id", "placeholder", "required", "readonly", "input-style"])
65
- ])
66
- ]),
67
- _: 1
68
- }, 8, ["label", "id", "required", "readonly"]));
69
- }
70
- }), x = /* @__PURE__ */ v(O, [["__scopeId", "data-v-5cd094ab"]]), R = ["required", "type", "name", "readonly", "disabled", "value", "checked"], U = ["data-test"], D = { key: 0 }, K = /* @__PURE__ */ b({
71
- __name: "Checkbox",
72
- props: {
73
- modelValue: { type: [String, Boolean, Number] },
74
- numeric: { type: Boolean, default: !1 },
75
- checked: { type: Boolean, default: !1 },
76
- label: {},
77
- price: {},
78
- name: {},
79
- readonly: { type: Boolean, default: !1 },
80
- type: { default: "checkbox" },
81
- required: { type: Boolean, default: !1 },
82
- inputStyle: {},
83
- val: {}
84
- },
85
- emits: ["update:modelValue"],
86
- setup(a, { emit: l }) {
87
- const t = a, n = l;
88
- function c() {
89
- t.readonly !== !0 && n(
90
- "update:modelValue",
91
- t.type === "radio" ? t.val : t.numeric ? t.modelValue ? 0 : 1 : !t.modelValue
92
- );
93
- }
94
- return (e, s) => (p(), B(T, {
95
- required: e.required,
96
- type: e.type,
97
- readonly: e.readonly
98
- }, {
99
- default: I(() => [
100
- d("label", {
101
- class: h([
102
- "fresh-booking-click-box-container",
103
- { "is-readonly": e.readonly },
104
- { "has-label": e.label },
105
- e.type === "radio" ? "radio" : "checkbox"
106
- ])
107
- }, [
108
- d("input", A(e.$attrs, {
109
- required: !!e.required,
110
- type: e.type,
111
- name: e.name,
112
- class: "hidden",
113
- readonly: !!e.readonly,
114
- disabled: !!e.readonly,
115
- value: e.type === "radio" ? e.val : e.modelValue,
116
- checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue,
117
- onChange: s[0] || (s[0] = (m) => c())
118
- }), null, 16, R),
119
- d("div", {
120
- class: h([
121
- "fresh-booking-click-box",
122
- { checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue }
123
- ]),
124
- tabindex: "0",
125
- style: _(e.inputStyle),
126
- "data-test": e.name,
127
- onKeyup: s[1] || (s[1] = w((m) => c(), ["enter"]))
128
- }, null, 46, U),
129
- e.label ? (p(), g("div", {
130
- key: 0,
131
- class: h(["fresh-booking-click-box-label", { "with-price": e.price }])
132
- }, [
133
- d("span", null, u(e.label), 1),
134
- e.price ? (p(), g("span", D, u(e.price), 1)) : P("", !0)
135
- ], 2)) : P("", !0)
136
- ], 2)
137
- ]),
138
- _: 1
139
- }, 8, ["required", "type", "readonly"]));
140
- }
141
- }), ee = /* @__PURE__ */ v(K, [["__scopeId", "data-v-7ef656cb"]]), M = {
142
- href: "https://policies.google.com/privacy",
143
- target: "_blank"
144
- }, W = {
145
- href: "https://policies.google.com/terms",
146
- target: "_blank"
147
- }, Q = /* @__PURE__ */ b({
148
- __name: "GoogleNotice",
149
- setup(a) {
150
- const { t: l } = N();
151
- return (t, n) => (p(), g("span", null, [
152
- f(u(i(l)("googleNotice")) + " ", 1),
153
- d("a", M, u(i(l)("googlePrivacyPolicy")), 1),
154
- f(" " + u(i(l)("googleAnd")) + " ", 1),
155
- d("a", W, u(i(l)("googleTOS")), 1),
156
- f(" " + u(i(l)("googleApply")) + ". ", 1)
157
- ]));
158
- }
159
- });
160
- function S(a) {
161
- const l = a;
162
- l.__i18n = l.__i18n || [], l.__i18n.push({
163
- locale: "",
164
- resource: {
165
- da: {
166
- googleNotice: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Denne side er beskyttet af reCAPTCHA og Google's" } },
167
- googlePrivacyPolicy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Privatlivspolitik" } },
168
- googleAnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "og" } },
169
- googleTOS: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Servicevilkår" } },
170
- googleApply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "er gældende" } }
171
- },
172
- en: {
173
- googleNotice: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "This site is protected by reCAPTCHA and the Google" } },
174
- googlePrivacyPolicy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Privacy Policy" } },
175
- googleAnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "and" } },
176
- googleTOS: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Terms of Service" } },
177
- googleApply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "apply" } }
178
- }
179
- }
180
- });
181
- }
182
- typeof S == "function" && S(Q);
183
- const J = (a) => (z("data-v-340cb9ce"), a = a(), E(), a), L = /* @__PURE__ */ J(() => /* @__PURE__ */ d("div", { id: "fresh-booking-payment-checkout" }, null, -1)), X = [
184
- L
185
- ], Y = /* @__PURE__ */ b({
186
- __name: "CheckoutWindow",
187
- setup(a) {
188
- const { paymentGatewayId: l } = F(G());
189
- return $(() => {
190
- const t = document.createElement("script"), n = document.createElement("script");
191
- 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);
192
- }), (t, n) => (p(), g("div", null, [
193
- d("div", {
194
- id: "fresh-booking-payment-checkout-wrapper",
195
- class: h({ reePay: i(l) === i(j).ReePay })
196
- }, X, 2)
197
- ]));
198
- }
199
- }), oe = /* @__PURE__ */ v(Y, [["__scopeId", "data-v-340cb9ce"]]);
200
- export {
201
- ee as C,
202
- x as P,
203
- Q as _,
204
- oe as a
205
- };
Binary file
@@ -1,68 +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 { k as s, f as i, B as c, o as y, l as b, D as P, _ as C } from "./SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js";
13
- const g = { class: "konnectio-container" }, v = /* @__PURE__ */ s({
14
- __name: "Container",
15
- props: {
16
- styling: {}
17
- },
18
- setup(r) {
19
- const t = r, o = i(() => l({
20
- accentColor: "#6ab1e6",
21
- accentColorSecondary: "#dae9f8",
22
- buttonBackground: "#6ab1e6",
23
- buttonBorder: null,
24
- buttonBorderRadius: "4px",
25
- buttonColor: "#FFF",
26
- buttonFontFamily: "inherit",
27
- buttonFontSize: "14px",
28
- buttonFontWeight: "400",
29
- buttonIconColor: "#FFF",
30
- buttonTextTransform: "uppercase",
31
- dangerColor: "red",
32
- fontColor: "#3b3b3b",
33
- fontFamily: "inherit",
34
- fontSize: "16px",
35
- grayColor: "grey",
36
- headerColor: "#000",
37
- inputBorder: "1px solid rgba(0, 0, 0, 0.15)",
38
- inputBackground: "#f8f8f8",
39
- inputBorderWidth: "0px 0px 1px",
40
- inputBorderRadius: "6px",
41
- inputFontColor: "#000000",
42
- labelFontColor: "#000000",
43
- labelFontWeight: "bold",
44
- labelFontSize: "15px",
45
- labelPadding: "6px",
46
- linkColor: "#5d6dca",
47
- linkHoverColor: "#2e3d90",
48
- loadingColor: "#000",
49
- panelBackground: "#ffffff",
50
- panelBorder: null,
51
- panelBorderRadius: "5px",
52
- panelInnerPadding: "12px",
53
- panelMaxWidth: "none",
54
- panelPadding: "24px",
55
- 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)",
56
- successColor: "green"
57
- }, t.styling));
58
- return c(() => {
59
- const e = document.documentElement.style;
60
- 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);
61
- }), (e, B) => (y(), b("div", g, [
62
- P(e.$slots, "default", {}, void 0, !0)
63
- ]));
64
- }
65
- }), x = /* @__PURE__ */ C(v, [["__scopeId", "data-v-b8c97ab0"]]);
66
- export {
67
- x as C
68
- };
Binary file