@konnectio/core 4.0.17 → 4.0.18

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 (80) hide show
  1. package/dist/{ActionField-82ef422e.js → ActionField-25ef64cf.js} +20 -21
  2. package/dist/ActionField-25ef64cf.js.br +0 -0
  3. package/dist/ActionField-86389dfe.cjs +1 -0
  4. package/dist/AvailabilitySkeleton-3bb4b572.js +200 -0
  5. package/dist/AvailabilitySkeleton-3bb4b572.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-a72464a1.cjs +1 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-d5a1efd5.js → DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js} +370 -371
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js.br +0 -0
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-f99302dc.cjs +5 -0
  10. package/dist/{Field-7137ef85.js → Field-03e6b847.js} +11 -12
  11. package/dist/Field-03e6b847.js.br +0 -0
  12. package/dist/Field-a7c1ed62.cjs +1 -0
  13. package/dist/{NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js → NumberField.vue_vue_type_style_index_0_lang-94fa5765.js} +16 -16
  14. package/dist/NumberField.vue_vue_type_style_index_0_lang-94fa5765.js.br +0 -0
  15. package/dist/NumberField.vue_vue_type_style_index_0_lang-a779a531.cjs +1 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-03794d02.cjs +855 -0
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-51defa22.js +28643 -0
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-51defa22.js.br +0 -0
  19. package/dist/ThankYou-3ab29b45.cjs +54 -0
  20. package/dist/{ThankYou-433bd249.js → ThankYou-f4945877.js} +428 -428
  21. package/dist/ThankYou-f4945877.js.br +0 -0
  22. package/dist/{_-048b5217.js → _-0787261e.js} +14 -15
  23. package/dist/_-0787261e.js.br +0 -0
  24. package/dist/_-917dcead.cjs +1 -0
  25. package/dist/_commonjsHelpers-6763f629.cjs +1 -0
  26. package/dist/_commonjsHelpers-aeeeeb92.js +30 -0
  27. package/dist/applyGiftCard-ba1da572.cjs +1 -0
  28. package/dist/{applyGiftCard-45cf782e.js → applyGiftCard-f2282bd2.js} +4 -5
  29. package/dist/applyGiftCard-f2282bd2.js.br +0 -0
  30. package/dist/availability.cjs +2 -2
  31. package/dist/availability.js +30 -31
  32. package/dist/availability.js.br +0 -0
  33. package/dist/event-07ba3a0e.cjs +1 -0
  34. package/dist/{event-3ef40faf.js → event-208206cf.js} +29 -30
  35. package/dist/event-208206cf.js.br +0 -0
  36. package/dist/event.cjs +1 -1
  37. package/dist/event.js +214 -215
  38. package/dist/event.js.br +0 -0
  39. package/dist/gift-card-validation.cjs +1 -1
  40. package/dist/gift-card-validation.js +46 -47
  41. package/dist/gift-card-validation.js.br +0 -0
  42. package/dist/gift-card.cjs +1 -1
  43. package/dist/gift-card.js +187 -188
  44. package/dist/gift-card.js.br +0 -0
  45. package/dist/hotel.cjs +5 -5
  46. package/dist/hotel.js +1202 -1192
  47. package/dist/hotel.js.br +0 -0
  48. package/dist/{index-36d9ed45.js → index-5e1ea6f0.js} +14 -16
  49. package/dist/index-5e1ea6f0.js.br +0 -0
  50. package/dist/index-7ef3288b.cjs +1 -0
  51. package/dist/polyfill.cjs +2 -2
  52. package/dist/polyfill.js +2 -2
  53. package/dist/polyfill.js.br +0 -0
  54. package/package.json +1 -1
  55. package/dist/ActionField-3184bffd.cjs +0 -1
  56. package/dist/ActionField-82ef422e.js.br +0 -0
  57. package/dist/AvailabilitySkeleton-528d40ef.cjs +0 -1
  58. package/dist/AvailabilitySkeleton-ec092c09.js +0 -203
  59. package/dist/AvailabilitySkeleton-ec092c09.js.br +0 -0
  60. package/dist/DateField.vue_vue_type_style_index_0_lang-5692c5b2.cjs +0 -5
  61. package/dist/DateField.vue_vue_type_style_index_0_lang-d5a1efd5.js.br +0 -0
  62. package/dist/Field-7137ef85.js.br +0 -0
  63. package/dist/Field-b1690485.cjs +0 -1
  64. package/dist/NumberField.vue_vue_type_style_index_0_lang-8c28c1dd.cjs +0 -1
  65. package/dist/NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js.br +0 -0
  66. package/dist/SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js +0 -19741
  67. package/dist/SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js.br +0 -0
  68. package/dist/SelectField.vue_vue_type_style_index_0_lang-c0715ca3.cjs +0 -850
  69. package/dist/ThankYou-433bd249.js.br +0 -0
  70. package/dist/ThankYou-817b93d0.cjs +0 -54
  71. package/dist/_-048b5217.js.br +0 -0
  72. package/dist/_-120d9090.cjs +0 -1
  73. package/dist/_commonjsHelpers-10dfc225.js +0 -8
  74. package/dist/_commonjsHelpers-87b0abe8.cjs +0 -1
  75. package/dist/applyGiftCard-45cf782e.js.br +0 -0
  76. package/dist/applyGiftCard-f1b620cc.cjs +0 -1
  77. package/dist/event-3ef40faf.js.br +0 -0
  78. package/dist/event-d531df9d.cjs +0 -1
  79. package/dist/index-36d9ed45.js.br +0 -0
  80. package/dist/index-8309eba2.cjs +0 -1
@@ -1,6 +1,5 @@
1
- import { defineComponent as c, onMounted as g, openBlock as u, createBlock as r, unref as d, withCtx as b, createVNode as V, computed as y, createElementVNode as k } from "vue";
2
- import { r as v, n as B, o as h, T as C, C as I, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js";
3
- import { s as T } from "./NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js";
1
+ import { h as c, M as b, N as g, o as u, p as r, w as V, q as v, x as d, Q as B, c as y, l as k, T as h, U as C, V as I, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-51defa22.js";
2
+ import { s as T } from "./NumberField.vue_vue_type_style_index_0_lang-94fa5765.js";
4
3
  const A = /* @__PURE__ */ c({
5
4
  __name: "NumberField",
6
5
  props: {
@@ -26,12 +25,12 @@ const A = /* @__PURE__ */ c({
26
25
  },
27
26
  emits: ["update:modelValue"],
28
27
  setup(p, { emit: m }) {
29
- const s = m, a = p, n = a.id || v();
28
+ const s = m, o = p, n = o.id || b();
30
29
  function t(l) {
31
30
  s("update:modelValue", l);
32
31
  }
33
32
  return g(() => {
34
- a.modelValue || t(a.minValue);
33
+ o.modelValue || t(o.minValue);
35
34
  }), (l, f) => (u(), r(B, {
36
35
  label: l.label,
37
36
  id: d(n),
@@ -43,8 +42,8 @@ const A = /* @__PURE__ */ c({
43
42
  type: l.small ? "fresh-booking-number-picker small" : "fresh-booking-number-picker",
44
43
  readonly: l.readonly
45
44
  }, {
46
- default: b(() => [
47
- V(d(T), {
45
+ default: V(() => [
46
+ v(d(T), {
48
47
  attrs: { id: d(n) },
49
48
  modelValue: l.modelValue,
50
49
  min: l.minValue,
@@ -63,7 +62,7 @@ const A = /* @__PURE__ */ c({
63
62
  _: 1
64
63
  }, 8, ["label", "id", "icon", "icon-color", "icon-type", "icon-placement", "required", "type", "readonly"]));
65
64
  }
66
- }), L = { class: "fresh-booking-action-field" }, U = /* @__PURE__ */ c({
65
+ }), U = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ c({
67
66
  __name: "ActionField",
68
67
  props: {
69
68
  modelValue: {},
@@ -89,21 +88,21 @@ const A = /* @__PURE__ */ c({
89
88
  },
90
89
  emits: ["update:modelValue", "action"],
91
90
  setup(p, { emit: m }) {
92
- const s = m, a = p, n = a.id || v();
91
+ const s = m, o = p, n = o.id || b();
93
92
  function t(e) {
94
93
  s("update:modelValue", e);
95
94
  }
96
95
  const l = y({
97
- get: () => a.modelValue,
96
+ get: () => o.modelValue,
98
97
  set: (e) => t(e)
99
98
  }), f = y({
100
- get: () => a.modelValue,
99
+ get: () => o.modelValue,
101
100
  set: (e) => t(e)
102
101
  });
103
102
  function q() {
104
103
  s("action");
105
104
  }
106
- return (e, o) => (u(), r(B, {
105
+ return (e, a) => (u(), r(B, {
107
106
  label: e.label,
108
107
  id: d(n),
109
108
  icon: e.icon,
@@ -112,12 +111,12 @@ const A = /* @__PURE__ */ c({
112
111
  type: e.type,
113
112
  readonly: e.readonly
114
113
  }, {
115
- default: b(() => [
116
- k("div", L, [
114
+ default: V(() => [
115
+ k("div", U, [
117
116
  e.type === "dropdown" && e.data ? (u(), r(h, {
118
117
  key: 0,
119
118
  modelValue: l.value,
120
- "onUpdate:modelValue": o[0] || (o[0] = (i) => l.value = i),
119
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => l.value = i),
121
120
  id: d(n),
122
121
  options: e.data,
123
122
  name: e.name,
@@ -126,20 +125,20 @@ const A = /* @__PURE__ */ c({
126
125
  }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (u(), r(A, {
127
126
  key: 1,
128
127
  modelValue: f.value,
129
- "onUpdate:modelValue": o[1] || (o[1] = (i) => f.value = i),
128
+ "onUpdate:modelValue": a[1] || (a[1] = (i) => f.value = i),
130
129
  id: d(n),
131
130
  "min-value": e.minValue,
132
131
  "max-value": e.maxValue
133
132
  }, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (u(), r(C, {
134
133
  key: 2,
135
134
  modelValue: l.value,
136
- "onUpdate:modelValue": o[2] || (o[2] = (i) => l.value = i),
135
+ "onUpdate:modelValue": a[2] || (a[2] = (i) => l.value = i),
137
136
  id: d(n),
138
137
  name: e.name,
139
138
  required: e.required,
140
139
  placeholder: e.placeholder
141
140
  }, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
142
- V(I, {
141
+ v(I, {
143
142
  "data-test": `${e.name}Submit`,
144
143
  icon: e.buttonIcon,
145
144
  label: e.buttonLabel,
@@ -149,7 +148,7 @@ const A = /* @__PURE__ */ c({
149
148
  "is-loading": e.isLoading,
150
149
  disabled: e.buttonDisabled,
151
150
  secondary: e.secondary,
152
- onClickEvent: o[3] || (o[3] = (i) => q())
151
+ onClickEvent: a[3] || (a[3] = (i) => q())
153
152
  }, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
154
153
  ])
155
154
  ]),
@@ -157,8 +156,8 @@ const A = /* @__PURE__ */ c({
157
156
  }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
158
157
  }
159
158
  });
160
- const w = /* @__PURE__ */ F(U, [["__scopeId", "data-v-07d4466b"]]);
159
+ const $ = /* @__PURE__ */ F(L, [["__scopeId", "data-v-07d4466b"]]);
161
160
  export {
162
- w as A,
161
+ $ as A,
163
162
  A as _
164
163
  };
Binary file
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-03794d02.cjs"),f=require("./NumberField.vue_vue_type_style_index_0_lang-a779a531.cjs"),m=e.defineComponent({__name:"NumberField",props:{modelValue:{default:0},minValue:{default:0},maxValue:{default:1/0},inputtable:{type:Boolean,default:!0},label:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},iconPlacement:{},step:{default:1},controls:{type:Boolean,default:!0},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},id:{},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(r,{emit:p}){const u=p,a=r,d=a.id||e.ranId();function t(o){u("update:modelValue",o)}return e.onMounted(()=>{a.modelValue||t(a.minValue)}),(o,s)=>(e.openBlock(),e.createBlock(e.InputField,{label:o.label,id:e.unref(d),icon:o.icon,"icon-color":o.iconColor,"icon-type":o.iconType,"icon-placement":o.iconPlacement,required:o.required,type:o.small?"fresh-booking-number-picker small":"fresh-booking-number-picker",readonly:o.readonly},{default:e.withCtx(()=>[e.createVNode(e.unref(f.script),{attrs:{id:e.unref(d)},modelValue:o.modelValue,min:o.minValue,max:o.maxValue,step:o.step,inline:o.inline,controls:o.controls,placeholder:o.placeholder,readonly:o.readonly,inputtable:o.inputtable,rounded:o.rounded,disabled:o.disabled,"onUpdate:modelValue":t},null,8,["attrs","modelValue","min","max","step","inline","controls","placeholder","readonly","inputtable","rounded","disabled"])]),_:1},8,["label","id","icon","icon-color","icon-type","icon-placement","required","type","readonly"]))}}),y={class:"fresh-booking-action-field"},b=e.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(r,{emit:p}){const u=p,a=r,d=a.id||e.ranId();function t(l){u("update:modelValue",l)}const o=e.computed({get:()=>a.modelValue,set:l=>t(l)}),s=e.computed({get:()=>a.modelValue,set:l=>t(l)});function c(){u("action")}return(l,n)=>(e.openBlock(),e.createBlock(e.InputField,{label:l.label,id:e.unref(d),icon:l.icon,"icon-type":l.iconType,required:l.required,type:l.type,readonly:l.readonly},{default:e.withCtx(()=>[e.createBaseVNode("div",y,[l.type==="dropdown"&&l.data?(e.openBlock(),e.createBlock(e._sfc_main$1,{key:0,modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=i=>o.value=i),id:e.unref(d),options:l.data,name:l.name,required:l.required,placeholder:l.placeholder},null,8,["modelValue","id","options","name","required","placeholder"])):l.type==="number"?(e.openBlock(),e.createBlock(m,{key:1,modelValue:s.value,"onUpdate:modelValue":n[1]||(n[1]=i=>s.value=i),id:e.unref(d),"min-value":l.minValue,"max-value":l.maxValue},null,8,["modelValue","id","min-value","max-value"])):(e.openBlock(),e.createBlock(e.TextField,{key:2,modelValue:o.value,"onUpdate:modelValue":n[2]||(n[2]=i=>o.value=i),id:e.unref(d),name:l.name,required:l.required,placeholder:l.placeholder},null,8,["modelValue","id","name","required","placeholder"])),e.createVNode(e.Clickable,{"data-test":`${l.name}Submit`,icon:l.buttonIcon,label:l.buttonLabel,"icon-color":l.buttonIconColor,styling:l.action,type:"button","is-loading":l.isLoading,disabled:l.buttonDisabled,secondary:l.secondary,onClickEvent:n[3]||(n[3]=i=>c())},null,8,["data-test","icon","label","icon-color","styling","is-loading","disabled","secondary"])])]),_:1},8,["label","id","icon","icon-type","required","type","readonly"]))}});const V=e._export_sfc(b,[["__scopeId","data-v-07d4466b"]]);exports.ActionField=V;exports._sfc_main=m;
@@ -0,0 +1,200 @@
1
+ import { h as $, r as I, a as O, o, j as u, a9 as J, B as K, t as P, s as w, c as p, a1 as C, N as Q, p as V, w as W, l as x, x as e, q as i, y as S, T as X, k as f, U as F, V as Y, n as N, f as Z, _ as T } from "./SelectField.vue_vue_type_style_index_0_lang-51defa22.js";
2
+ import { u as R, a as E, _ as ee } from "./DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js";
3
+ import { E as H } from "./_-0787261e.js";
4
+ import { F as b } from "./Field-03e6b847.js";
5
+ const ae = ["onSubmit"], te = /* @__PURE__ */ $({
6
+ __name: "_",
7
+ props: {
8
+ type: { default: "submit" }
9
+ },
10
+ emits: ["submit"],
11
+ setup(D, { emit: n }) {
12
+ const a = I(!1), d = n, _ = D, { verifyRecaptcha: r } = O();
13
+ function m() {
14
+ a.value = !0, r({
15
+ callback: y,
16
+ type: _.type
17
+ }).then(() => a.value = !1);
18
+ }
19
+ function y() {
20
+ d("submit");
21
+ }
22
+ return (h, A) => (o(), u("form", {
23
+ onSubmit: K(m, ["prevent"])
24
+ }, [
25
+ J(h.$slots, "default", { isLoading: a.value })
26
+ ], 40, ae));
27
+ }
28
+ }), le = {
29
+ key: 0,
30
+ class: "konnectio-availability-location"
31
+ }, ie = { id: "fresh-booking-availability-date-selection" }, ne = {
32
+ key: 1,
33
+ id: "fresh-booking-availability-guest-selection"
34
+ }, oe = { id: "fresh-booking-availability-confirmation" }, se = /* @__PURE__ */ $({
35
+ __name: "HotelAvailabilityForm",
36
+ props: {
37
+ booking: { type: Boolean, default: !1 },
38
+ link: {}
39
+ },
40
+ setup(D) {
41
+ const { t: n } = P(), a = D, {
42
+ adults: d,
43
+ children: _,
44
+ arrivalDate: r,
45
+ departureDate: m,
46
+ location: y,
47
+ isExpired: h
48
+ } = w(R()), { reset: A } = R(), { fetchAvailabilityData: q } = E(), { areListingsLoading: z, hotelList: g } = w(E()), {
49
+ firstSelectableDateOffset: L,
50
+ lastSelectableDateOffset: U,
51
+ disableChildSelection: v,
52
+ disableAdultSelection: c
53
+ } = w(O()), k = I([]), ve = p(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (L.value - 1)))), pe = p(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + U.value))), be = p(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + L.value))), fe = p(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + (U.value + 1)))), B = p(() => !(!c && d.value === 0)), M = p(() => typeof a.link != "string");
54
+ function j() {
55
+ if (a.booking === !1)
56
+ if (M.value) {
57
+ const t = Z();
58
+ a.link[t] ? window.location.replace(a.link[t]) : a.link.en ? window.location.replace(a.link.en) : console.log("Sprog understøttes ikke");
59
+ } else
60
+ window.location.replace(a.link);
61
+ else
62
+ B.value && q();
63
+ }
64
+ return C(r, (t) => {
65
+ const l = new Date(new Date(t).setDate(new Date(t).getDate() + 1));
66
+ new Date(m.value) < l && (m.value = l);
67
+ }), C(k, (t) => {
68
+ r.value = t[0], m.value = t[1];
69
+ }), Q(() => {
70
+ h.value && a.booking && A(), k.value = [r.value, m.value];
71
+ }), (t, l) => (o(), V(te, {
72
+ id: "konnectio-availability-form",
73
+ class: N({ reservation: t.booking }),
74
+ type: "availability",
75
+ onSubmit: j
76
+ }, {
77
+ default: W(({ isLoading: G }) => [
78
+ x("ul", {
79
+ id: "konnectio-availability-form-content",
80
+ class: N([
81
+ { "is-not-booking-page": !t.booking },
82
+ { "only-adult-guests": !e(c) && e(v) },
83
+ { "only-child-guests": !e(v) && e(c) },
84
+ { "no-guests": e(c) && e(v) },
85
+ { "all-guests": !e(c) && !e(v) },
86
+ { "has-location": e(g) }
87
+ ])
88
+ }, [
89
+ e(g) ? (o(), u("li", le, [
90
+ i(X, {
91
+ modelValue: e(y),
92
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => S(y) ? y.value = s : null),
93
+ label: e(n)("general.location"),
94
+ icon: "location-dot",
95
+ "icon-type": "fas",
96
+ "icon-placement": "label",
97
+ options: e(g),
98
+ searchable: !1
99
+ }, null, 8, ["modelValue", "label", "options"])
100
+ ])) : f("", !0),
101
+ x("li", ie, [
102
+ i(ee, {
103
+ modelValue: k.value,
104
+ "onUpdate:modelValue": l[1] || (l[1] = (s) => k.value = s),
105
+ label: e(n)("availability.checkInOut"),
106
+ "icon-type": "fas",
107
+ "icon-placement": "label",
108
+ "min-range": 1,
109
+ range: ""
110
+ }, null, 8, ["modelValue", "label"]),
111
+ f("", !0)
112
+ ]),
113
+ !e(c) || !e(v) ? (o(), u("li", ne, [
114
+ e(c) ? f("", !0) : (o(), V(F, {
115
+ key: 0,
116
+ modelValue: e(d),
117
+ "onUpdate:modelValue": l[4] || (l[4] = (s) => S(d) ? d.value = s : null),
118
+ label: e(n)("availability.adults"),
119
+ "icon-type": "fas",
120
+ "icon-placement": "label",
121
+ name: "adults",
122
+ icon: "male"
123
+ }, null, 8, ["modelValue", "label"])),
124
+ e(v) ? f("", !0) : (o(), V(F, {
125
+ key: 1,
126
+ modelValue: e(_),
127
+ "onUpdate:modelValue": l[5] || (l[5] = (s) => S(_) ? _.value = s : null),
128
+ label: e(n)("availability.children"),
129
+ "icon-type": "fas",
130
+ "icon-placement": "label",
131
+ name: "children",
132
+ icon: "child"
133
+ }, null, 8, ["modelValue", "label"]))
134
+ ])) : f("", !0),
135
+ x("li", oe, [
136
+ i(Y, {
137
+ type: "submit",
138
+ label: e(n)("availability.buttonLabel"),
139
+ disabled: !B.value,
140
+ "is-loading": e(z) || G
141
+ }, null, 8, ["label", "disabled", "is-loading"])
142
+ ])
143
+ ], 2)
144
+ ]),
145
+ _: 1
146
+ }, 8, ["class"]));
147
+ }
148
+ });
149
+ const he = /* @__PURE__ */ T(se, [["__scopeId", "data-v-41c405ba"]]), re = { class: "availability-skeleton" }, ce = {
150
+ key: 0,
151
+ class: "availability-skeleton-navigation"
152
+ }, ue = {
153
+ key: 1,
154
+ class: "availability-skeleton-hotel"
155
+ }, de = {
156
+ key: 2,
157
+ class: "availability-skeleton-event"
158
+ }, me = /* @__PURE__ */ $({
159
+ __name: "AvailabilitySkeleton",
160
+ props: {
161
+ view: { default: "hotel" }
162
+ },
163
+ setup(D) {
164
+ return (n, a) => (o(), u("div", re, [
165
+ n.view === "both" ? (o(), u("div", ce, [
166
+ i(H, {
167
+ height: "28px",
168
+ width: "60px",
169
+ "border-radius": "20px"
170
+ }),
171
+ i(H, {
172
+ height: "28px",
173
+ width: "60px",
174
+ "border-radius": "20px"
175
+ })
176
+ ])) : f("", !0),
177
+ n.view !== "event" ? (o(), u("div", ue, [
178
+ i(b, { "with-icon": "" }),
179
+ i(b, { "with-icon": "" }),
180
+ i(b, { "with-icon": "" }),
181
+ i(b, {
182
+ "with-icon": "",
183
+ "no-label": ""
184
+ })
185
+ ])) : (o(), u("div", de, [
186
+ i(b, { "with-icon": "" }),
187
+ i(b, {
188
+ "with-icon": "",
189
+ "no-label": ""
190
+ })
191
+ ]))
192
+ ]));
193
+ }
194
+ });
195
+ const ge = /* @__PURE__ */ T(me, [["__scopeId", "data-v-c266ccbc"]]);
196
+ export {
197
+ ge as A,
198
+ he as H,
199
+ te as _
200
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-03794d02.cjs"),m=require("./DateField.vue_vue_type_style_index_0_lang-f99302dc.cjs"),V=require("./_-917dcead.cjs"),d=require("./Field-a7c1ed62.cjs"),A=["onSubmit"],w=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(p,{emit:n}){const t=e.ref(!1),c=n,_=p,{verifyRecaptcha:o}=e.useUtilityStore();function u(){t.value=!0,o({callback:v,type:_.type}).then(()=>t.value=!1)}function v(){c("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(u,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:t.value})],40,A))}}),C={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},E={key:1,id:"fresh-booking-availability-guest-selection"},L={id:"fresh-booking-availability-confirmation"},R=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(p){const{t:n}=e.useI18n(),t=p,{adults:c,children:_,arrivalDate:o,departureDate:u,location:v,isExpired:y}=e.storeToRefs(m.useAvailabilityStore()),{reset:k}=m.useAvailabilityStore(),{fetchAvailabilityData:x}=m.useHotelStore(),{areListingsLoading:S,hotelList:b}=e.storeToRefs(m.useHotelStore()),{firstSelectableDateOffset:D,lastSelectableDateOffset:g,disableChildSelection:r,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),M=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(D.value-1)))),j=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+g.value))),G=e.computed(()=>new Date(new Date().setDate(o.value.getDate()+D.value))),J=e.computed(()=>new Date(new Date().setDate(o.value.getDate()+(g.value+1)))),h=e.computed(()=>!(!s&&c.value===0)),F=e.computed(()=>typeof t.link!="string");function B(){if(t.booking===!1)if(F.value){const l=e.getUserLanguage();t.link[l]?window.location.replace(t.link[l]):t.link.en?window.location.replace(t.link.en):console.log("Sprog understøttes ikke")}else window.location.replace(t.link);else h.value&&x()}return e.watch(o,l=>{const a=new Date(new Date(l).setDate(new Date(l).getDate()+1));new Date(u.value)<a&&(u.value=a)}),e.watch(f,l=>{o.value=l[0],u.value=l[1]}),e.onMounted(()=>{y.value&&t.booking&&k(),f.value=[o.value,u.value]}),(l,a)=>(e.openBlock(),e.createBlock(w,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:l.booking}),type:"availability",onSubmit:B},{default:e.withCtx(({isLoading:N})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!l.booking},{"only-adult-guests":!e.unref(s)&&e.unref(r)},{"only-child-guests":!e.unref(r)&&e.unref(s)},{"no-guests":e.unref(s)&&e.unref(r)},{"all-guests":!e.unref(s)&&!e.unref(r)},{"has-location":e.unref(b)}])},[e.unref(b)?(e.openBlock(),e.createElementBlock("li",C,[e.createVNode(e._sfc_main$1,{modelValue:e.unref(v),"onUpdate:modelValue":a[0]||(a[0]=i=>e.isRef(v)?v.value=i:null),label:e.unref(n)("general.location"),icon:"location-dot","icon-type":"fas","icon-placement":"label",options:e.unref(b),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(m._sfc_main,{modelValue:f.value,"onUpdate:modelValue":a[1]||(a[1]=i=>f.value=i),label:e.unref(n)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(s)||!e.unref(r)?(e.openBlock(),e.createElementBlock("li",E,[e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(c),"onUpdate:modelValue":a[4]||(a[4]=i=>e.isRef(c)?c.value=i:null),label:e.unref(n)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])),e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.TextField,{key:1,modelValue:e.unref(_),"onUpdate:modelValue":a[5]||(a[5]=i=>e.isRef(_)?_.value=i:null),label:e.unref(n)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))])):e.createCommentVNode("",!0),e.createBaseVNode("li",L,[e.createVNode(e.Clickable,{type:"submit",label:e.unref(n)("availability.buttonLabel"),disabled:!h.value,"is-loading":e.unref(S)||N},null,8,["label","disabled","is-loading"])])],2)]),_:1},8,["class"]))}});const U=e._export_sfc(R,[["__scopeId","data-v-41c405ba"]]),H={class:"availability-skeleton"},q={key:0,class:"availability-skeleton-navigation"},T={key:1,class:"availability-skeleton-hotel"},I={key:2,class:"availability-skeleton-event"},z=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(p){return(n,t)=>(e.openBlock(),e.createElementBlock("div",H,[n.view==="both"?(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(V.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(V.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),n.view!=="event"?(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(d.Field,{"with-icon":""}),e.createVNode(d.Field,{"with-icon":""}),e.createVNode(d.Field,{"with-icon":""}),e.createVNode(d.Field,{"with-icon":"","no-label":""})])):(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(d.Field,{"with-icon":""}),e.createVNode(d.Field,{"with-icon":"","no-label":""})]))]))}});const O=e._export_sfc(z,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=O;exports.HotelAvailabilityForm=U;exports._sfc_main=w;