@konnectio/core 4.0.55 → 4.0.56-rc2

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 (120) hide show
  1. package/README.md +7 -7
  2. package/dist/{ActionField-89f587d4.js → ActionField-Qf4JAgBa.js} +30 -31
  3. package/dist/ActionField-Qf4JAgBa.js.br +0 -0
  4. package/dist/ActionField-ztW-1xka.cjs +1 -0
  5. package/dist/AvailabilitySkeleton-GPTCv3Xy.js +242 -0
  6. package/dist/AvailabilitySkeleton-GPTCv3Xy.js.br +0 -0
  7. package/dist/AvailabilitySkeleton-v0QVPuim.cjs +1 -0
  8. package/dist/CheckoutWindow-NUwbNAPw.cjs +1 -0
  9. package/dist/{CheckoutWindow-df8612e3.js → CheckoutWindow-S9xKe_Wf.js} +58 -54
  10. package/dist/CheckoutWindow-S9xKe_Wf.js.br +0 -0
  11. package/dist/Container-Fl2PKj-u.js +59 -0
  12. package/dist/Container-Fl2PKj-u.js.br +0 -0
  13. package/dist/Container-Y6_3uTWy.cjs +1 -0
  14. package/dist/DateField.vue_vue_type_style_index_0_lang-hZTsLsOv.cjs +2 -0
  15. package/dist/{DateField.vue_vue_type_style_index_0_lang-bbaed106.js → DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js} +2666 -2661
  16. package/dist/DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js.br +0 -0
  17. package/dist/Field-UTbHMN9U.cjs +1 -0
  18. package/dist/Field-b7XkSAoi.js +43 -0
  19. package/dist/Field-b7XkSAoi.js.br +0 -0
  20. package/dist/SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js +21406 -0
  21. package/dist/SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js.br +0 -0
  22. package/dist/SelectField.vue_vue_type_style_index_0_lang-eLyZ247i.cjs +851 -0
  23. package/dist/{ThankYou-159b55d6.js → ThankYou-LiiG3Zv1.js} +2349 -2000
  24. package/dist/ThankYou-LiiG3Zv1.js.br +0 -0
  25. package/dist/ThankYou-M6d4G8pc.cjs +59 -0
  26. package/dist/_-FAlGPZqe.js +20 -0
  27. package/dist/_-oL4OsiNw.cjs +1 -0
  28. package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
  29. package/dist/_commonjsHelpers-f52AuuUj.cjs +1 -0
  30. package/dist/availability.cjs +2 -2
  31. package/dist/availability.js +39 -42
  32. package/dist/availability.js.br +0 -0
  33. package/dist/components/Gallery.vue.d.ts +3 -2
  34. package/dist/components/Gallery.vue.d.ts.map +1 -1
  35. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
  36. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  37. package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
  38. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  39. package/dist/components/listings/Base.vue.d.ts +1 -1
  40. package/dist/components/listings/Hotel.vue.d.ts +1 -1
  41. package/dist/components/listings/Template.vue.d.ts +1 -1
  42. package/dist/components/side-panels/ListingInfo.vue.d.ts +1 -1
  43. package/dist/components/side-panels/Template.vue.d.ts +1 -1
  44. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +1 -1
  45. package/dist/components/skeletons/Field.vue.d.ts +1 -1
  46. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -1
  47. package/dist/components/skeletons/Listing.vue.d.ts +1 -1
  48. package/dist/entries/availability.d.ts +3 -3
  49. package/dist/entries/event.d.ts +1 -1
  50. package/dist/entries/gift-card-validation.d.ts +5 -2
  51. package/dist/entries/gift-card.d.ts +5 -1
  52. package/dist/entries/hotel.d.ts +5 -0
  53. package/dist/event-GaUgVNzy.cjs +1 -0
  54. package/dist/{event-6cd5d9be.js → event-MXmxvcpC.js} +26 -25
  55. package/dist/event-MXmxvcpC.js.br +0 -0
  56. package/dist/event.cjs +1 -1
  57. package/dist/event.js +212 -214
  58. package/dist/event.js.br +0 -0
  59. package/dist/gift-card-validation.cjs +1 -1
  60. package/dist/gift-card-validation.js +68 -64
  61. package/dist/gift-card-validation.js.br +0 -0
  62. package/dist/gift-card.cjs +1 -1
  63. package/dist/gift-card.d.ts +2 -0
  64. package/dist/gift-card.js +278 -273
  65. package/dist/gift-card.js.br +0 -0
  66. package/dist/hotel.cjs +5 -5
  67. package/dist/hotel.d.ts +2 -0
  68. package/dist/hotel.js +1415 -1436
  69. package/dist/hotel.js.br +0 -0
  70. package/dist/layouts/Availability.vue.d.ts +4 -4
  71. package/dist/layouts/Event.vue.d.ts +4 -4
  72. package/dist/layouts/GiftCard.vue.d.ts +4 -4
  73. package/dist/layouts/GiftCardValidation.vue.d.ts +4 -4
  74. package/dist/layouts/Hotel.vue.d.ts +4 -4
  75. package/dist/layouts/_.vue.d.ts +4 -4
  76. package/dist/polyfill.cjs +4 -4
  77. package/dist/polyfill.js +3032 -3065
  78. package/dist/polyfill.js.br +0 -0
  79. package/dist/store/alert.d.ts +15 -15
  80. package/dist/store/applyGiftCard.d.ts +18 -18
  81. package/dist/store/availability.d.ts +12 -12
  82. package/dist/store/event.d.ts +141 -141
  83. package/dist/store/giftCard.d.ts +51 -51
  84. package/dist/store/payment.d.ts +39 -39
  85. package/dist/store/recaptcha.d.ts +28 -0
  86. package/dist/store/tracking.d.ts +6 -6
  87. package/dist/store/utilities.d.ts +131 -146
  88. package/dist/style.css +1 -1
  89. package/dist/style.css.br +0 -0
  90. package/dist/types/index.d.ts +8 -0
  91. package/package.json +22 -20
  92. package/dist/ActionField-087c3437.cjs +0 -1
  93. package/dist/ActionField-89f587d4.js.br +0 -0
  94. package/dist/AvailabilitySkeleton-01aab3cb.js +0 -237
  95. package/dist/AvailabilitySkeleton-01aab3cb.js.br +0 -0
  96. package/dist/AvailabilitySkeleton-452df88c.cjs +0 -1
  97. package/dist/CheckoutWindow-1d77f68c.cjs +0 -1
  98. package/dist/CheckoutWindow-df8612e3.js.br +0 -0
  99. package/dist/Container-3af1f7f7.cjs +0 -1
  100. package/dist/Container-9f1ed24c.js +0 -59
  101. package/dist/Container-9f1ed24c.js.br +0 -0
  102. package/dist/DateField.vue_vue_type_style_index_0_lang-b5676dde.cjs +0 -2
  103. package/dist/DateField.vue_vue_type_style_index_0_lang-bbaed106.js.br +0 -0
  104. package/dist/Field-43273ca2.cjs +0 -1
  105. package/dist/Field-92684198.js +0 -42
  106. package/dist/Field-92684198.js.br +0 -0
  107. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a149d388.cjs +0 -1
  108. package/dist/NumberField.vue_vue_type_script_setup_true_lang-ce6f0b17.js +0 -67
  109. package/dist/NumberField.vue_vue_type_script_setup_true_lang-ce6f0b17.js.br +0 -0
  110. package/dist/SelectField.vue_vue_type_style_index_0_lang-11cea6ba.js +0 -30329
  111. package/dist/SelectField.vue_vue_type_style_index_0_lang-11cea6ba.js.br +0 -0
  112. package/dist/SelectField.vue_vue_type_style_index_0_lang-b1435f5a.cjs +0 -856
  113. package/dist/ThankYou-159b55d6.js.br +0 -0
  114. package/dist/ThankYou-c1cbecac.cjs +0 -59
  115. package/dist/_-52440760.js +0 -20
  116. package/dist/_-fbbc271a.cjs +0 -1
  117. package/dist/_commonjsHelpers-6763f629.cjs +0 -1
  118. package/dist/_commonjsHelpers-aeeeeb92.js +0 -30
  119. package/dist/event-6cd5d9be.js.br +0 -0
  120. package/dist/event-dfc9ed16.cjs +0 -1
package/dist/style.css.br CHANGED
Binary file
@@ -549,6 +549,8 @@ export interface OctopusAvailableRoomGroup {
549
549
  readonly totalPrice: number;
550
550
  readonly description: string;
551
551
  readonly title: string;
552
+ readonly facilities: HotelFacility[];
553
+ readonly images: FreshBookingImage[];
552
554
  readonly roomGroupID: number;
553
555
  readonly roomGroupName: string;
554
556
  }
@@ -945,6 +947,11 @@ export declare enum EventModuleState {
945
947
  ReservationState = 2,
946
948
  PaymentState = 3
947
949
  }
950
+ interface HotelDiscountCodePayloadRoom {
951
+ ratePlanID: number;
952
+ roomGroupID: number;
953
+ totalHotelPrice: number;
954
+ }
948
955
  interface HotelDiscountCodePayloadProperty {
949
956
  id: number;
950
957
  offerID: number;
@@ -961,6 +968,7 @@ export interface HotelDiscountCodePayload {
961
968
  offer: {
962
969
  id: number;
963
970
  properties: HotelDiscountCodePayloadProperty[];
971
+ rooms: HotelDiscountCodePayloadRoom[];
964
972
  };
965
973
  discountApplyed: boolean;
966
974
  total: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.0.55",
3
+ "version": "4.0.56-rc2",
4
4
  "author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
5
5
  "homepage": "https://konnectio.dk",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@chenfengyuan/vue-number-input": "2.0.1",
31
31
  "@egjs/flicking-plugins": "4.7.1",
32
- "@egjs/vue3-flicking": "4.11.1",
32
+ "@egjs/vue3-flicking": "4.11.2",
33
33
  "@fortawesome/fontawesome-pro": "6.5.1",
34
34
  "@fortawesome/fontawesome-svg-core": "6.5.1",
35
35
  "@fortawesome/free-brands-svg-icons": "6.5.1",
@@ -38,26 +38,27 @@
38
38
  "@fortawesome/vue-fontawesome": "3.0.5",
39
39
  "@intlify/unplugin-vue-i18n": "2.0.0",
40
40
  "@unhead/vue": "1.8.9",
41
- "@vuepic/vue-datepicker": "7.4.0",
41
+ "@vuepic/vue-datepicker": "7.4.1",
42
42
  "@vueup/vue-quill": "1.2.0",
43
43
  "@vueuse/core": "10.7.1",
44
- "axios": "1.6.3",
45
- "core-js": "3.34.0",
44
+ "axios": "1.6.5",
45
+ "core-js": "3.35.0",
46
46
  "cqfill": "0.6.1",
47
- "dotenv": "16.3.1",
48
- "floating-vue": "2.0.0-beta.24",
47
+ "dotenv": "^16.3.1",
48
+ "floating-vue": "5.0.3",
49
49
  "linkify-html": "4.1.3",
50
50
  "linkifyjs": "4.1.3",
51
51
  "pinia": "2.1.7",
52
- "postcss": "8.4.32",
52
+ "postcss": "8.4.33",
53
53
  "recaptcha-v3": "1.10.0",
54
54
  "regenerator-runtime": "0.14.1",
55
55
  "text-clipper": "2.2.0",
56
56
  "vue": "3.3.10",
57
57
  "vue-gtag": "2.0.1",
58
- "vue-i18n": "9.8.0",
58
+ "vue-i18n": "9.9.0",
59
59
  "vue-inner-image-zoom": "2.0.0",
60
60
  "vue-masonry": "0.16.0",
61
+ "vue-router": "^4.2.5",
61
62
  "vue-select": "4.0.0-beta.6",
62
63
  "vue3-side-panel": "1.3.0",
63
64
  "vue3-sticky-sidebar": "2.0.0",
@@ -66,38 +67,39 @@
66
67
  "devDependencies": {
67
68
  "@babel/eslint-parser": "7.23.3",
68
69
  "@originjs/vite-plugin-commonjs": "1.0.3",
69
- "@types/node": "20.10.6",
70
- "@typescript-eslint/eslint-plugin": "6.17.0",
71
- "@typescript-eslint/parser": "6.17.0",
72
- "@vitejs/plugin-vue": "4.5.2",
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",
73
74
  "@vue/eslint-config-typescript": "12.0.0",
74
75
  "@vue/test-utils": "2.4.3",
75
76
  "cross-env": "7.0.3",
76
- "cypress": "13.6.1",
77
+ "cypress": "13.6.2",
77
78
  "eslint": "8.56.0",
78
79
  "eslint-plugin-vue": "9.19.2",
79
80
  "rollup-plugin-typescript2": "0.36.0",
80
- "sass": "1.69.5",
81
+ "sass": "1.69.7",
81
82
  "ts-node": "10.9.2",
82
83
  "tslib": "2.6.2",
83
84
  "typescript": "5.3.3",
84
- "vite": "4.5.1",
85
+ "vite": "5.0.11",
85
86
  "vite-plugin-compression": "0.5.1",
86
- "vite-plugin-dts": "3.6.4",
87
+ "vite-plugin-dts": "3.7.0",
87
88
  "vue-tsc": "1.8.27"
88
89
  },
89
90
  "contributors": [
90
91
  {
91
92
  "name": "Benjamin Bach Jensen",
92
93
  "email": "dev@dapperbenji.com",
93
- "url": "https://dapperbenji.com"
94
+ "url": "https://www.linkedin.com/in/benjamin-bach-jensen/"
94
95
  }
95
96
  ],
96
97
  "keywords": [
97
- "wordpress",
98
- "vuejs",
98
+ "konnectio",
99
99
  "freshcase",
100
100
  "freshbooking",
101
+ "wordpress",
102
+ "vuejs",
101
103
  "booking",
102
104
  "octopus-pms",
103
105
  "hotelboss"
@@ -1 +0,0 @@
1
- "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-b1435f5a.cjs"),c=require("./NumberField.vue_vue_type_script_setup_true_lang-a149d388.cjs"),y={class:"fresh-booking-action-field"},f=l.defineComponent({__name:"ActionField",props:{modelValue:{},label:{},buttonLabel:{},buttonIcon:{},buttonIconColor:{},buttonDisabled:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},name:{},id:{},type:{default:"text"},placeholder:{},icon:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},data:{},action:{},minValue:{},maxValue:{},isLoading:{type:Boolean,default:!1}},emits:["update:modelValue","action"],setup(s,{emit:p}){const i=p,t=s,n=t.id||l.ranId();function u(e){i("update:modelValue",e)}const d=l.computed({get:()=>t.modelValue,set:e=>u(e)}),r=l.computed({get:()=>t.modelValue,set:e=>u(e)});function m(){i("action")}return(e,o)=>(l.openBlock(),l.createBlock(l.InputField,{label:e.label,id:l.unref(n),icon:e.icon,"icon-type":e.iconType,required:e.required,type:e.type,readonly:e.readonly},{default:l.withCtx(()=>[l.createBaseVNode("div",y,[e.type==="dropdown"&&e.data?(l.openBlock(),l.createBlock(l._sfc_main,{key:0,modelValue:d.value,"onUpdate:modelValue":o[0]||(o[0]=a=>d.value=a),id:l.unref(n),options:e.data,name:e.name,required:e.required,placeholder:e.placeholder},null,8,["modelValue","id","options","name","required","placeholder"])):e.type==="number"?(l.openBlock(),l.createBlock(c._sfc_main,{key:1,modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=a=>r.value=a),id:l.unref(n),"min-value":e.minValue,"max-value":e.maxValue},null,8,["modelValue","id","min-value","max-value"])):(l.openBlock(),l.createBlock(l.TextField,{key:2,modelValue:d.value,"onUpdate:modelValue":o[2]||(o[2]=a=>d.value=a),id:l.unref(n),name:e.name,required:e.required,placeholder:e.placeholder},null,8,["modelValue","id","name","required","placeholder"])),l.createVNode(l.Clickable,{"data-test":`${e.name}Submit`,icon:e.buttonIcon,label:e.buttonLabel,"icon-color":e.buttonIconColor,styling:e.action,type:"button","is-loading":e.isLoading,disabled:e.buttonDisabled,secondary:e.secondary,onClickEvent:o[3]||(o[3]=a=>m())},null,8,["data-test","icon","label","icon-color","styling","is-loading","disabled","secondary"])])]),_:1},8,["label","id","icon","icon-type","required","type","readonly"]))}});const b=l._export_sfc(f,[["__scopeId","data-v-3e77e321"]]);exports.ActionField=b;
Binary file
@@ -1,237 +0,0 @@
1
- import { k as S, r as z, c as M, m as l, v as u, D as Y, N as Z, F as ee, s as A, aa as B, ab as C, f, a2 as H, o as ae, n as p, w as le, A as $, q as e, p as s, J as g, B as te, x as _, a3 as N, T as E, C as I, y as O, i as ie, _ as J } from "./SelectField.vue_vue_type_style_index_0_lang-11cea6ba.js";
2
- import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-bbaed106.js";
3
- import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-ce6f0b17.js";
4
- import { E as q } from "./_-52440760.js";
5
- import { F as y } from "./Field-92684198.js";
6
- const oe = /* @__PURE__ */ S({
7
- __name: "_",
8
- props: {
9
- type: { default: "submit" }
10
- },
11
- emits: ["submit"],
12
- setup(k, { emit: a }) {
13
- const n = z(!1), r = a, d = k, { verifyRecaptcha: c } = M();
14
- function v() {
15
- n.value = !0, c({
16
- callback: D,
17
- type: d.type
18
- }).then(() => n.value = !1);
19
- }
20
- function D() {
21
- r("submit");
22
- }
23
- return (V, L) => (l(), u("form", {
24
- onSubmit: Z(v, ["prevent"])
25
- }, [
26
- Y(V.$slots, "default", { isLoading: n.value })
27
- ], 32));
28
- }
29
- }), se = {
30
- key: 0,
31
- class: "konnectio-availability-location"
32
- }, re = { id: "fresh-booking-availability-date-selection" }, ue = {
33
- key: 1,
34
- id: "fresh-booking-availability-guest-selection"
35
- }, de = { id: "fresh-booking-availability-confirmation" }, ce = /* @__PURE__ */ S({
36
- __name: "HotelAvailabilityForm",
37
- props: {
38
- booking: { type: Boolean, default: !1 },
39
- link: {}
40
- },
41
- setup(k) {
42
- const { t: a } = ee(), n = k, {
43
- adults: r,
44
- children: d,
45
- arrivalDate: c,
46
- departureDate: v,
47
- location: D,
48
- isExpired: V
49
- } = A(B()), { reset: L } = B(), { fetchAvailabilityData: j } = C(), { areListingsLoading: G, hotelList: K, hasHotelList: h } = A(C()), {
50
- firstSelectableDateOffset: R,
51
- lastSelectableDateOffset: U,
52
- disableChildSelection: b,
53
- disableAdultSelection: m
54
- } = A(M()), w = z([]), P = f(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (R.value - 1)))), ye = f(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + U.value))), _e = f(() => new Date((/* @__PURE__ */ new Date()).setDate(c.value.getDate() + R.value))), Q = f(() => new Date((/* @__PURE__ */ new Date()).setDate(c.value.getDate() + (U.value + 1)))), x = f(() => !(!m && r.value === 0)), W = f(() => typeof n.link != "string");
55
- function X() {
56
- if (n.booking === !1)
57
- if (W.value) {
58
- const o = ie();
59
- n.link[o] ? window.location.replace(n.link[o]) : n.link.en ? window.location.replace(n.link.en) : console.log("Sprog understøttes ikke");
60
- } else
61
- window.location.replace(n.link);
62
- else
63
- x.value && j();
64
- }
65
- return H(c, (o) => {
66
- const t = new Date(new Date(o).setDate(new Date(o).getDate() + 1));
67
- new Date(v.value) < t && (v.value = t);
68
- }), H(w, (o) => {
69
- c.value = o[0], v.value = o[1];
70
- }), ae(() => {
71
- V.value && L(), w.value = [c.value, v.value];
72
- }), (o, t) => (l(), p(oe, {
73
- id: "konnectio-availability-form",
74
- class: O({ reservation: o.booking }),
75
- type: "availability",
76
- onSubmit: X
77
- }, {
78
- default: le(({ isLoading: F }) => [
79
- $("ul", {
80
- id: "konnectio-availability-form-content",
81
- class: O([
82
- { "is-booking-page": o.booking },
83
- { "only-adult-guests": !e(m) && e(b) },
84
- { "only-child-guests": !e(b) && e(m) },
85
- { "no-guests": e(m) && e(b) },
86
- { "all-guests": !e(m) && !e(b) },
87
- { "has-location": e(h) }
88
- ])
89
- }, [
90
- e(h) ? (l(), u("li", se, [
91
- s(te, {
92
- modelValue: e(D),
93
- "onUpdate:modelValue": t[0] || (t[0] = (i) => g(D) ? D.value = i : null),
94
- label: e(a)("general.location"),
95
- icon: "location-dot",
96
- "icon-type": "fas",
97
- "icon-placement": "label",
98
- options: e(K),
99
- searchable: !1
100
- }, null, 8, ["modelValue", "label", "options"])
101
- ])) : _("", !0),
102
- $("li", re, [
103
- s(ne, {
104
- modelValue: w.value,
105
- "onUpdate:modelValue": t[1] || (t[1] = (i) => w.value = i),
106
- label: e(a)("availability.checkInOut"),
107
- "icon-type": "fas",
108
- "icon-placement": "label",
109
- "min-range": 1,
110
- "min-date": P.value,
111
- "max-date": Q.value,
112
- range: ""
113
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
114
- _("", !0)
115
- ]),
116
- !e(m) || !e(b) ? (l(), u("li", ue, [
117
- e(m) ? _("", !0) : (l(), u(N, { key: 0 }, [
118
- e(h) ? (l(), p(E, {
119
- key: 0,
120
- modelValue: e(r),
121
- "onUpdate:modelValue": t[4] || (t[4] = (i) => g(r) ? r.value = i : null),
122
- label: e(a)("availability.adults"),
123
- description: e(a)("general.adultAgeRange"),
124
- "icon-type": "fas",
125
- "icon-placement": "label",
126
- name: "adults",
127
- icon: "male"
128
- }, null, 8, ["modelValue", "label", "description"])) : (l(), p(T, {
129
- key: 1,
130
- modelValue: e(r),
131
- "onUpdate:modelValue": t[5] || (t[5] = (i) => g(r) ? r.value = i : null),
132
- label: e(a)("availability.adults"),
133
- description: e(a)("general.adultAgeRange"),
134
- "icon-type": "fas",
135
- "icon-placement": "label",
136
- name: "adults",
137
- icon: "male"
138
- }, null, 8, ["modelValue", "label", "description"]))
139
- ], 64)),
140
- e(b) ? _("", !0) : (l(), u(N, { key: 1 }, [
141
- e(h) ? (l(), p(E, {
142
- key: 0,
143
- modelValue: e(d),
144
- "onUpdate:modelValue": t[6] || (t[6] = (i) => g(d) ? d.value = i : null),
145
- label: e(a)("availability.children"),
146
- description: e(a)("general.childAgeRange"),
147
- "icon-type": "fas",
148
- "icon-placement": "label",
149
- name: "children",
150
- icon: "child"
151
- }, null, 8, ["modelValue", "label", "description"])) : (l(), p(T, {
152
- key: 1,
153
- modelValue: e(d),
154
- "onUpdate:modelValue": t[7] || (t[7] = (i) => g(d) ? d.value = i : null),
155
- label: e(a)("availability.children"),
156
- description: e(a)("general.childAgeRange"),
157
- "icon-type": "fas",
158
- "icon-placement": "label",
159
- name: "children",
160
- icon: "child"
161
- }, null, 8, ["modelValue", "label", "description"]))
162
- ], 64))
163
- ])) : _("", !0),
164
- $("li", de, [
165
- o.booking ? (l(), p(I, {
166
- key: 0,
167
- type: "submit",
168
- icon: "search",
169
- "icon-type": "fas",
170
- disabled: !x.value,
171
- "is-loading": e(G) || F
172
- }, null, 8, ["disabled", "is-loading"])) : (l(), p(I, {
173
- key: 1,
174
- type: "submit",
175
- label: e(a)("availability.buttonLabel"),
176
- disabled: !x.value,
177
- "is-loading": F
178
- }, null, 8, ["label", "disabled", "is-loading"]))
179
- ])
180
- ], 2)
181
- ]),
182
- _: 1
183
- }, 8, ["class"]));
184
- }
185
- });
186
- const Ve = /* @__PURE__ */ J(ce, [["__scopeId", "data-v-a901e79d"]]), me = { class: "availability-skeleton" }, pe = {
187
- key: 0,
188
- class: "availability-skeleton-navigation"
189
- }, ve = {
190
- key: 1,
191
- class: "availability-skeleton-hotel"
192
- }, be = {
193
- key: 2,
194
- class: "availability-skeleton-event"
195
- }, fe = /* @__PURE__ */ S({
196
- __name: "AvailabilitySkeleton",
197
- props: {
198
- view: { default: "hotel" }
199
- },
200
- setup(k) {
201
- return (a, n) => (l(), u("div", me, [
202
- a.view === "both" ? (l(), u("div", pe, [
203
- s(q, {
204
- height: "28px",
205
- width: "60px",
206
- "border-radius": "20px"
207
- }),
208
- s(q, {
209
- height: "28px",
210
- width: "60px",
211
- "border-radius": "20px"
212
- })
213
- ])) : _("", !0),
214
- a.view !== "event" ? (l(), u("div", ve, [
215
- s(y, { "with-icon": "" }),
216
- s(y, { "with-icon": "" }),
217
- s(y, { "with-icon": "" }),
218
- s(y, {
219
- "with-icon": "",
220
- "no-label": ""
221
- })
222
- ])) : (l(), u("div", be, [
223
- s(y, { "with-icon": "" }),
224
- s(y, {
225
- "with-icon": "",
226
- "no-label": ""
227
- })
228
- ]))
229
- ]));
230
- }
231
- });
232
- const xe = /* @__PURE__ */ J(fe, [["__scopeId", "data-v-d044752e"]]);
233
- export {
234
- xe as A,
235
- Ve as H,
236
- oe as _
237
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-b1435f5a.cjs"),E=require("./DateField.vue_vue_type_style_index_0_lang-b5676dde.cjs"),V=require("./NumberField.vue_vue_type_script_setup_true_lang-a149d388.cjs"),x=require("./_-fbbc271a.cjs"),_=require("./Field-43273ca2.cjs"),B=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(v,{emit:l}){const n=e.ref(!1),o=l,u=v,{verifyRecaptcha:r}=e.useUtilityStore();function c(){n.value=!0,r({callback:p,type:u.type}).then(()=>n.value=!1)}function p(){o("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(c,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:n.value})],32))}}),U={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},L={key:1,id:"fresh-booking-availability-guest-selection"},H={id:"fresh-booking-availability-confirmation"},q=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(v){const{t:l}=e.useI18n(),n=v,{adults:o,children:u,arrivalDate:r,departureDate:c,location:p,isExpired:y}=e.storeToRefs(e.useAvailabilityStore()),{reset:k}=e.useAvailabilityStore(),{fetchAvailabilityData:w}=e.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:m}=e.storeToRefs(e.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),N=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(g.value-1)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+D.value))),K=e.computed(()=>new Date(new Date().setDate(r.value.getDate()+g.value))),A=e.computed(()=>new Date(new Date().setDate(r.value.getDate()+(D.value+1)))),b=e.computed(()=>!(!s&&o.value===0)),C=e.computed(()=>typeof n.link!="string");function R(){if(n.booking===!1)if(C.value){const i=e.getUserLanguage();n.link[i]?window.location.replace(n.link[i]):n.link.en?window.location.replace(n.link.en):console.log("Sprog understøttes ikke")}else window.location.replace(n.link);else b.value&&w()}return e.watch(r,i=>{const t=new Date(new Date(i).setDate(new Date(i).getDate()+1));new Date(c.value)<t&&(c.value=t)}),e.watch(f,i=>{r.value=i[0],c.value=i[1]}),e.onMounted(()=>{y.value&&k(),f.value=[r.value,c.value]}),(i,t)=>(e.openBlock(),e.createBlock(B,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:R},{default:e.withCtx(({isLoading:h})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-booking-page":i.booking},{"only-adult-guests":!e.unref(s)&&e.unref(d)},{"only-child-guests":!e.unref(d)&&e.unref(s)},{"no-guests":e.unref(s)&&e.unref(d)},{"all-guests":!e.unref(s)&&!e.unref(d)},{"has-location":e.unref(m)}])},[e.unref(m)?(e.openBlock(),e.createElementBlock("li",U,[e.createVNode(e._sfc_main,{modelValue:e.unref(p),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(p)?p.value=a:null),label:e.unref(l)("general.location"),icon:"location-dot","icon-type":"fas","icon-placement":"label",options:e.unref(S),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(E._sfc_main,{modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=a=>f.value=a),label:e.unref(l)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,"min-date":N.value,"max-date":A.value,range:""},null,8,["modelValue","label","min-date","max-date"]),e.createCommentVNode("",!0)]),!e.unref(s)||!e.unref(d)?(e.openBlock(),e.createElementBlock("li",L,[e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(m)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(o),"onUpdate:modelValue":t[4]||(t[4]=a=>e.isRef(o)?o.value=a:null),label:e.unref(l)("availability.adults"),description:e.unref(l)("general.adultAgeRange"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label","description"])):(e.openBlock(),e.createBlock(V._sfc_main,{key:1,modelValue:e.unref(o),"onUpdate:modelValue":t[5]||(t[5]=a=>e.isRef(o)?o.value=a:null),label:e.unref(l)("availability.adults"),description:e.unref(l)("general.adultAgeRange"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label","description"]))],64)),e.unref(d)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(m)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(u),"onUpdate:modelValue":t[6]||(t[6]=a=>e.isRef(u)?u.value=a:null),label:e.unref(l)("availability.children"),description:e.unref(l)("general.childAgeRange"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label","description"])):(e.openBlock(),e.createBlock(V._sfc_main,{key:1,modelValue:e.unref(u),"onUpdate:modelValue":t[7]||(t[7]=a=>e.isRef(u)?u.value=a:null),label:e.unref(l)("availability.children"),description:e.unref(l)("general.childAgeRange"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label","description"]))],64))])):e.createCommentVNode("",!0),e.createBaseVNode("li",H,[i.booking?(e.openBlock(),e.createBlock(e.Clickable,{key:0,type:"submit",icon:"search","icon-type":"fas",disabled:!b.value,"is-loading":e.unref(F)||h},null,8,["disabled","is-loading"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,type:"submit",label:e.unref(l)("availability.buttonLabel"),disabled:!b.value,"is-loading":h},null,8,["label","disabled","is-loading"]))])],2)]),_:1},8,["class"]))}});const T=e._export_sfc(q,[["__scopeId","data-v-a901e79d"]]),I={class:"availability-skeleton"},z={key:0,class:"availability-skeleton-navigation"},O={key:1,class:"availability-skeleton-hotel"},M={key:2,class:"availability-skeleton-event"},j=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(v){return(l,n)=>(e.openBlock(),e.createElementBlock("div",I,[l.view==="both"?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(x.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(x.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),l.view!=="event"?(e.openBlock(),e.createElementBlock("div",O,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})])):(e.openBlock(),e.createElementBlock("div",M,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const G=e._export_sfc(j,[["__scopeId","data-v-d044752e"]]);exports.AvailabilitySkeleton=G;exports.HotelAvailabilityForm=T;exports._sfc_main=B;
@@ -1 +0,0 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-b1435f5a.cjs"),m={class:"fresh-booking-phone-input"},f=e.defineComponent({__name:"PhoneField",props:{modelValue:{},label:{},id:{},placeholder:{},icon:{default:"phone-office"},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputStyle:{}},emits:["update:modelValue"],setup(a,{emit:l}){const n=l,i=a,s=i.id||e.ranId(),o=e.ref("+45"),d=e.ref("");function p(){n("update:modelValue",`${o.value} ${d.value}`)}return e.onMounted(()=>{if(i.modelValue){const t=i.modelValue.split(" ");o.value=t[0],d.value=t[1]}}),(t,r)=>(e.openBlock(),e.createBlock(e.InputField,{label:t.label,id:e.unref(s),type:"phone",required:t.required,readonly:t.readonly},{default:e.withCtx(()=>[e.createBaseVNode("div",m,[e.createVNode(e.TextField,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=u=>o.value=u),type:"text",id:e.unref(e.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:t.icon,"icon-color":t.iconColor,"icon-type":t.iconType,placeholder:"+45",required:t.required,readonly:t.readonly,"input-style":t.inputStyle,onInput:r[1]||(r[1]=u=>p())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),e.createVNode(e.TextField,{modelValue:d.value,"onUpdate:modelValue":r[2]||(r[2]=u=>d.value=u),type:"number",name:"phone",autocomplete:"tel-national",id:e.unref(s),placeholder:t.placeholder,required:t.required,readonly:t.readonly,"input-style":t.inputStyle,onInput:r[3]||(r[3]=u=>p())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}});const h=e._export_sfc(f,[["__scopeId","data-v-5cd094ab"]]),g=["required","type","name","readonly","disabled","value","checked"],b=["data-test"],v={key:0},k=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:[String,Boolean,Number]},numeric:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},label:{},price:{},name:{},readonly:{type:Boolean,default:!1},type:{default:"checkbox"},required:{type:Boolean,default:!1},inputStyle:{},val:{}},emits:["update:modelValue"],setup(a,{emit:l}){const n=a,i=l;function s(){n.readonly!==!0&&i("update:modelValue",n.type==="radio"?n.val:n.numeric?n.modelValue?0:1:!n.modelValue)}return(o,d)=>(e.openBlock(),e.createBlock(e.InputField,{required:o.required,type:o.type,readonly:o.readonly},{default:e.withCtx(()=>[e.createBaseVNode("label",{class:e.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":o.readonly},{"has-label":o.label},o.type==="radio"?"radio":"checkbox"])},[e.createBaseVNode("input",e.mergeProps(o.$attrs,{required:!!o.required,type:o.type,name:o.name,class:"hidden",readonly:!!o.readonly,disabled:!!o.readonly,value:o.type==="radio"?o.val:o.modelValue,checked:o.type==="radio"?o.val===o.modelValue:!!o.modelValue,onChange:d[0]||(d[0]=p=>s())}),null,16,g),e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-click-box",{checked:o.type==="radio"?o.val===o.modelValue:!!o.modelValue}]),tabindex:"0",style:e.normalizeStyle(o.inputStyle),"data-test":o.name,onKeyup:d[1]||(d[1]=e.withKeys(p=>s(),["enter"]))},null,46,b),o.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["fresh-booking-click-box-label",{"with-price":o.price}])},[e.createBaseVNode("span",null,e.toDisplayString(o.label),1),o.price?(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(o.price),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}});const _=e._export_sfc(k,[["__scopeId","data-v-7ef656cb"]]),V={href:"https://policies.google.com/privacy"},C={href:"https://policies.google.com/terms"},y=e.defineComponent({__name:"GoogleNotice",setup(a){const{t:l}=e.useI18n();return(n,i)=>(e.openBlock(),e.createElementBlock("span",null,[e.createTextVNode(e.toDisplayString(e.unref(l)("googleNotice"))+" ",1),e.createBaseVNode("a",V,e.toDisplayString(e.unref(l)("googlePrivacyPolicy")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("googleAnd"))+" ",1),e.createBaseVNode("a",C,e.toDisplayString(e.unref(l)("googleTOS")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("googleApply"))+". ",1)]))}});function c(a){const l=a;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{da:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"Denne side er beskyttet af reCAPTCHA og Google's"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privatlivspolitik"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"og"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Servicevilkår"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"er gældende"}}},en:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"This site is protected by reCAPTCHA and the Google"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privacy Policy"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"and"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Terms of Service"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"apply"}}}}})}typeof c=="function"&&c(y);const B=a=>(e.pushScopeId("data-v-340cb9ce"),a=a(),e.popScopeId(),a),S=B(()=>e.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),N=[S],P=e.defineComponent({__name:"CheckoutWindow",setup(a){const{paymentGatewayId:l}=e.storeToRefs(e.useUtilityStore());return e.onMounted(()=>{const n=document.createElement("script"),i=document.createElement("script");n.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),i.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(n),document.head.appendChild(i)}),(n,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:e.normalizeClass({reePay:e.unref(l)===e.unref(e.PaymentGateway).ReePay})},N,2)]))}});const q=e._export_sfc(P,[["__scopeId","data-v-340cb9ce"]]);exports.Checkbox=_;exports.CheckoutWindow=q;exports.PhoneField=h;exports._sfc_main=y;
Binary file
@@ -1 +0,0 @@
1
- "use strict";const t=require("./SelectField.vue_vue_type_style_index_0_lang-b1435f5a.cjs"),l={class:"konnectio-container"},a=t.defineComponent({__name:"Container",props:{styling:{}},setup(r){const n=r,o=t.computed(()=>({accentColor:"#6ab1e6",accentColorSecondary:"#dae9f8",buttonBackground:"#6ab1e6",buttonBorder:null,buttonBorderRadius:"4px",buttonColor:"#FFF",buttonFontFamily:"inherit",buttonFontSize:"14px",buttonFontWeight:"400",buttonIconColor:"#FFF",buttonTextTransform:"uppercase",dangerColor:"red",fontColor:"#3b3b3b",fontFamily:"inherit",fontSize:"16px",grayColor:"grey",headerColor:"#000",inputBorder:"1px solid rgba(0, 0, 0, 0.15)",inputBackground:"#f8f8f8",inputBorderWidth:"0px 0px 1px",inputBorderRadius:"6px",inputFontColor:"#000000",labelFontColor:"#000000",labelFontWeight:"bold",labelFontSize:"15px",labelPadding:"6px",linkColor:"#5d6dca",linkHoverColor:"#2e3d90",loadingColor:"#000",panelBackground:"#ffffff",panelBorder:null,panelBorderRadius:"5px",panelInnerPadding:"12px",panelMaxWidth:"none",panelPadding:"24px",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)",successColor:"green",...n.styling}));return t.onMounted(()=>{const e=document.documentElement.style;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)}),(e,p)=>(t.openBlock(),t.createElementBlock("div",l,[t.renderSlot(e.$slots,"default",{},void 0,!0)]))}});const u=t._export_sfc(a,[["__scopeId","data-v-b8c97ab0"]]);exports.Container=u;
@@ -1,59 +0,0 @@
1
- import { k as n, f as a, o as l, m as u, v as p, D as d, _ as s } from "./SelectField.vue_vue_type_style_index_0_lang-11cea6ba.js";
2
- const i = { class: "konnectio-container" }, c = /* @__PURE__ */ n({
3
- __name: "Container",
4
- props: {
5
- styling: {}
6
- },
7
- setup(t) {
8
- const r = t, o = a(() => ({
9
- accentColor: "#6ab1e6",
10
- accentColorSecondary: "#dae9f8",
11
- buttonBackground: "#6ab1e6",
12
- buttonBorder: null,
13
- buttonBorderRadius: "4px",
14
- buttonColor: "#FFF",
15
- buttonFontFamily: "inherit",
16
- buttonFontSize: "14px",
17
- buttonFontWeight: "400",
18
- buttonIconColor: "#FFF",
19
- buttonTextTransform: "uppercase",
20
- dangerColor: "red",
21
- fontColor: "#3b3b3b",
22
- fontFamily: "inherit",
23
- fontSize: "16px",
24
- grayColor: "grey",
25
- headerColor: "#000",
26
- inputBorder: "1px solid rgba(0, 0, 0, 0.15)",
27
- inputBackground: "#f8f8f8",
28
- inputBorderWidth: "0px 0px 1px",
29
- inputBorderRadius: "6px",
30
- inputFontColor: "#000000",
31
- labelFontColor: "#000000",
32
- labelFontWeight: "bold",
33
- labelFontSize: "15px",
34
- labelPadding: "6px",
35
- linkColor: "#5d6dca",
36
- linkHoverColor: "#2e3d90",
37
- loadingColor: "#000",
38
- panelBackground: "#ffffff",
39
- panelBorder: null,
40
- panelBorderRadius: "5px",
41
- panelInnerPadding: "12px",
42
- panelMaxWidth: "none",
43
- panelPadding: "24px",
44
- 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)",
45
- successColor: "green",
46
- ...r.styling
47
- }));
48
- return l(() => {
49
- const e = document.documentElement.style;
50
- 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);
51
- }), (e, y) => (u(), p("div", i, [
52
- d(e.$slots, "default", {}, void 0, !0)
53
- ]));
54
- }
55
- });
56
- const P = /* @__PURE__ */ s(c, [["__scopeId", "data-v-b8c97ab0"]]);
57
- export {
58
- P as C
59
- };
Binary file