@konnectio/core 4.0.10 → 4.0.12

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 (71) hide show
  1. package/dist/ActionField-23ce1b2a.cjs +1 -0
  2. package/dist/{ActionField-68f65af4.js → ActionField-311942d2.js} +21 -21
  3. package/dist/ActionField-311942d2.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-c48588e4.js → AvailabilitySkeleton-2dfbb28e.js} +80 -80
  5. package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-7d9e2680.cjs +1 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-b6694990.cjs → DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs} +3 -3
  8. package/dist/{DateField.vue_vue_type_style_index_0_lang-87ddfed8.js → DateField.vue_vue_type_style_index_0_lang-ec35955b.js} +1816 -1820
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
  10. package/dist/{Field-d926807f.cjs → Field-dcffacf2.cjs} +1 -1
  11. package/dist/{Field-b76d82cb.js → Field-ff599d13.js} +2 -2
  12. package/dist/Field-ff599d13.js.br +0 -0
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js → NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js} +28 -28
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs +1 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +802 -0
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-c973d794.js → SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js} +7754 -7718
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
  19. package/dist/TextField-6f7e37d9.cjs +54 -0
  20. package/dist/{TextField-8f6e5ef5.js → TextField-cd93b966.js} +3241 -3241
  21. package/dist/TextField-cd93b966.js.br +0 -0
  22. package/dist/{ThankYou-8ae535bf.cjs → ThankYou-3d74a6dc.cjs} +2 -2
  23. package/dist/{ThankYou-2f3c4efe.js → ThankYou-c1878478.js} +48 -47
  24. package/dist/ThankYou-c1878478.js.br +0 -0
  25. package/dist/{_-3cff5490.cjs → _-0895679a.cjs} +1 -1
  26. package/dist/{_-734c9d50.js → _-8772cf9a.js} +1 -1
  27. package/dist/_-8772cf9a.js.br +0 -0
  28. package/dist/availability.cjs +1 -1
  29. package/dist/availability.js +7 -7
  30. package/dist/availability.js.br +0 -0
  31. package/dist/{event-e08d0178.js → event-60e076f2.js} +36 -36
  32. package/dist/event-60e076f2.js.br +0 -0
  33. package/dist/event-8e90a6e3.cjs +1 -0
  34. package/dist/event.cjs +1 -1
  35. package/dist/event.js +98 -98
  36. package/dist/event.js.br +0 -0
  37. package/dist/gift-card-validation.cjs +1 -1
  38. package/dist/gift-card-validation.js +4 -4
  39. package/dist/gift-card-validation.js.br +0 -0
  40. package/dist/gift-card.cjs +1 -1
  41. package/dist/gift-card.js +192 -192
  42. package/dist/gift-card.js.br +0 -0
  43. package/dist/hotel.cjs +5 -5
  44. package/dist/hotel.js +1406 -1395
  45. package/dist/hotel.js.br +0 -0
  46. package/dist/index-345407fb.cjs +1 -0
  47. package/dist/{index-c28f52d1.js → index-b5d8f4fc.js} +83 -83
  48. package/dist/index-b5d8f4fc.js.br +0 -0
  49. package/dist/polyfill.cjs +4 -4
  50. package/dist/polyfill.js +3311 -3398
  51. package/dist/polyfill.js.br +0 -0
  52. package/dist/store/payment.d.ts +1 -1
  53. package/package.json +6 -6
  54. package/dist/ActionField-68f65af4.js.br +0 -0
  55. package/dist/ActionField-ab9c01ab.cjs +0 -1
  56. package/dist/AvailabilitySkeleton-c48588e4.js.br +0 -0
  57. package/dist/AvailabilitySkeleton-ca6cf6b6.cjs +0 -1
  58. package/dist/DateField.vue_vue_type_style_index_0_lang-87ddfed8.js.br +0 -0
  59. package/dist/Field-b76d82cb.js.br +0 -0
  60. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js.br +0 -0
  61. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs +0 -1
  62. package/dist/SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs +0 -806
  63. package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js.br +0 -0
  64. package/dist/TextField-528ca68c.cjs +0 -54
  65. package/dist/TextField-8f6e5ef5.js.br +0 -0
  66. package/dist/ThankYou-2f3c4efe.js.br +0 -0
  67. package/dist/_-734c9d50.js.br +0 -0
  68. package/dist/event-4662e27c.cjs +0 -1
  69. package/dist/event-e08d0178.js.br +0 -0
  70. package/dist/index-a46a0876.cjs +0 -1
  71. package/dist/index-c28f52d1.js.br +0 -0
@@ -0,0 +1 @@
1
+ "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),s=require("./TextField-6f7e37d9.cjs"),y=require("./NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs"),b={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(p,{emit:c}){const i=c,t=p,a=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(a),icon:e.icon,"icon-type":e.iconType,required:e.required,type:e.type,readonly:e.readonly},{default:l.withCtx(()=>[l.createBaseVNode("div",b,[e.type==="dropdown"&&e.data?(l.openBlock(),l.createBlock(s._sfc_main,{key:0,modelValue:d.value,"onUpdate:modelValue":o[0]||(o[0]=n=>d.value=n),id:l.unref(a),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(y._sfc_main,{key:1,modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=n=>r.value=n),id:l.unref(a),"min-value":e.minValue,"max-value":e.maxValue},null,8,["modelValue","id","min-value","max-value"])):(l.openBlock(),l.createBlock(s.TextField,{key:2,modelValue:d.value,"onUpdate:modelValue":o[2]||(o[2]=n=>d.value=n),id:l.unref(a),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]=n=>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 V=l._export_sfc(f,[["__scopeId","data-v-07d4466b"]]);exports.ActionField=V;
@@ -1,7 +1,7 @@
1
- import { h as f, j as c, c as m, k as d, l as i, w as V, x as v, n as t, m as g, C as q, I as k, _ as B } from "./SelectField.vue_vue_type_style_index_0_lang-c973d794.js";
2
- import { _ as I, T as C } from "./TextField-8f6e5ef5.js";
3
- import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js";
4
- const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
1
+ import { h as f, j as V, c as p, k as d, l as i, w as v, x as g, n as t, m as q, C as k, I as B, _ as I } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
2
+ import { _ as C, T as F } from "./TextField-cd93b966.js";
3
+ import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
4
+ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
5
5
  __name: "ActionField",
6
6
  props: {
7
7
  modelValue: {},
@@ -26,22 +26,22 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
26
26
  isLoading: { type: Boolean, default: !1 }
27
27
  },
28
28
  emits: ["update:modelValue", "action"],
29
- setup(y, { emit: s }) {
30
- const u = y, o = u.id || c();
29
+ setup(y, { emit: b }) {
30
+ const s = b, u = y, o = u.id || V();
31
31
  function r(e) {
32
32
  s("update:modelValue", e);
33
33
  }
34
- const n = m({
34
+ const n = p({
35
35
  get: () => u.modelValue,
36
36
  set: (e) => r(e)
37
- }), p = m({
37
+ }), m = p({
38
38
  get: () => u.modelValue,
39
39
  set: (e) => r(e)
40
40
  });
41
- function b() {
41
+ function c() {
42
42
  s("action");
43
43
  }
44
- return (e, a) => (d(), i(k, {
44
+ return (e, a) => (d(), i(B, {
45
45
  label: e.label,
46
46
  id: t(o),
47
47
  icon: e.icon,
@@ -50,9 +50,9 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
50
50
  type: e.type,
51
51
  readonly: e.readonly
52
52
  }, {
53
- default: V(() => [
54
- v("div", A, [
55
- e.type === "dropdown" && e.data ? (d(), i(I, {
53
+ default: v(() => [
54
+ g("div", h, [
55
+ e.type === "dropdown" && e.data ? (d(), i(C, {
56
56
  key: 0,
57
57
  modelValue: n.value,
58
58
  "onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
@@ -61,14 +61,14 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
61
61
  name: e.name,
62
62
  required: e.required,
63
63
  placeholder: e.placeholder
64
- }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(F, {
64
+ }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(A, {
65
65
  key: 1,
66
- modelValue: p.value,
67
- "onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
66
+ modelValue: m.value,
67
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => m.value = l),
68
68
  id: t(o),
69
69
  "min-value": e.minValue,
70
70
  "max-value": e.maxValue
71
- }, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(C, {
71
+ }, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(F, {
72
72
  key: 2,
73
73
  modelValue: n.value,
74
74
  "onUpdate:modelValue": a[2] || (a[2] = (l) => n.value = l),
@@ -77,7 +77,7 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
77
77
  required: e.required,
78
78
  placeholder: e.placeholder
79
79
  }, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
80
- g(q, {
80
+ q(k, {
81
81
  "data-test": `${e.name}Submit`,
82
82
  icon: e.buttonIcon,
83
83
  label: e.buttonLabel,
@@ -87,7 +87,7 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
87
87
  "is-loading": e.isLoading,
88
88
  disabled: e.buttonDisabled,
89
89
  secondary: e.secondary,
90
- onClickEvent: a[3] || (a[3] = (l) => b())
90
+ onClickEvent: a[3] || (a[3] = (l) => c())
91
91
  }, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
92
92
  ])
93
93
  ]),
@@ -95,7 +95,7 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
95
95
  }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
96
96
  }
97
97
  });
98
- const w = /* @__PURE__ */ B(h, [["__scopeId", "data-v-07d4466b"]]);
98
+ const U = /* @__PURE__ */ I(L, [["__scopeId", "data-v-07d4466b"]]);
99
99
  export {
100
- w as A
100
+ U as A
101
101
  };
Binary file
@@ -1,16 +1,16 @@
1
- import { h as E, s as R, a as M, k as v, q as k, ad as q, y as Y, r as J, c as L, $ as j, o as W, l as O, w as X, x as V, t as w, m as f, n as s, A as P, C as Z, v as B, _ as U } from "./SelectField.vue_vue_type_style_index_0_lang-c973d794.js";
2
- import { u as N, a as F, _ as ee } from "./DateField.vue_vue_type_style_index_0_lang-87ddfed8.js";
3
- import { _ as H } from "./NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js";
1
+ import { h as E, s as R, a as M, k as v, q as k, ad as q, y as Y, r as J, c as L, $ as j, o as W, l as O, w as X, x as V, t as w, m as f, n as s, A as P, C as Z, v as B, _ as U } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
2
+ import { u as N, a as F, _ as ee } from "./DateField.vue_vue_type_style_index_0_lang-ec35955b.js";
3
+ import { _ as H } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
4
4
  import { c as x } from "./_commonjsHelpers-c5d32002.js";
5
- import { E as G } from "./_-734c9d50.js";
6
- import { F as D } from "./Field-b76d82cb.js";
7
- var K = {}, C = {}, S = {}, te = x && x.__awaiter || function(e, n, t, i) {
8
- function r(a) {
9
- return a instanceof t ? a : new t(function(o) {
10
- o(a);
5
+ import { E as G } from "./_-8772cf9a.js";
6
+ import { F as D } from "./Field-ff599d13.js";
7
+ var K = {}, C = {}, S = {}, te = x && x.__awaiter || function(e, n, a, i) {
8
+ function r(t) {
9
+ return t instanceof a ? t : new a(function(o) {
10
+ o(t);
11
11
  });
12
12
  }
13
- return new (t || (t = Promise))(function(a, o) {
13
+ return new (a || (a = Promise))(function(t, o) {
14
14
  function c(u) {
15
15
  try {
16
16
  l(i.next(u));
@@ -26,16 +26,16 @@ var K = {}, C = {}, S = {}, te = x && x.__awaiter || function(e, n, t, i) {
26
26
  }
27
27
  }
28
28
  function l(u) {
29
- u.done ? a(u.value) : r(u.value).then(c, d);
29
+ u.done ? t(u.value) : r(u.value).then(c, d);
30
30
  }
31
31
  l((i = i.apply(e, n || [])).next());
32
32
  });
33
33
  }, ae = x && x.__generator || function(e, n) {
34
- var t = { label: 0, sent: function() {
35
- if (a[0] & 1)
36
- throw a[1];
37
- return a[1];
38
- }, trys: [], ops: [] }, i, r, a, o;
34
+ var a = { label: 0, sent: function() {
35
+ if (t[0] & 1)
36
+ throw t[1];
37
+ return t[1];
38
+ }, trys: [], ops: [] }, i, r, t, o;
39
39
  return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
40
40
  return this;
41
41
  }), o;
@@ -47,48 +47,48 @@ var K = {}, C = {}, S = {}, te = x && x.__awaiter || function(e, n, t, i) {
47
47
  function d(l) {
48
48
  if (i)
49
49
  throw new TypeError("Generator is already executing.");
50
- for (; t; )
50
+ for (; a; )
51
51
  try {
52
- if (i = 1, r && (a = l[0] & 2 ? r.return : l[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, l[1])).done)
53
- return a;
54
- switch (r = 0, a && (l = [l[0] & 2, a.value]), l[0]) {
52
+ if (i = 1, r && (t = l[0] & 2 ? r.return : l[0] ? r.throw || ((t = r.return) && t.call(r), 0) : r.next) && !(t = t.call(r, l[1])).done)
53
+ return t;
54
+ switch (r = 0, t && (l = [l[0] & 2, t.value]), l[0]) {
55
55
  case 0:
56
56
  case 1:
57
- a = l;
57
+ t = l;
58
58
  break;
59
59
  case 4:
60
- return t.label++, { value: l[1], done: !1 };
60
+ return a.label++, { value: l[1], done: !1 };
61
61
  case 5:
62
- t.label++, r = l[1], l = [0];
62
+ a.label++, r = l[1], l = [0];
63
63
  continue;
64
64
  case 7:
65
- l = t.ops.pop(), t.trys.pop();
65
+ l = a.ops.pop(), a.trys.pop();
66
66
  continue;
67
67
  default:
68
- if (a = t.trys, !(a = a.length > 0 && a[a.length - 1]) && (l[0] === 6 || l[0] === 2)) {
69
- t = 0;
68
+ if (t = a.trys, !(t = t.length > 0 && t[t.length - 1]) && (l[0] === 6 || l[0] === 2)) {
69
+ a = 0;
70
70
  continue;
71
71
  }
72
- if (l[0] === 3 && (!a || l[1] > a[0] && l[1] < a[3])) {
73
- t.label = l[1];
72
+ if (l[0] === 3 && (!t || l[1] > t[0] && l[1] < t[3])) {
73
+ a.label = l[1];
74
74
  break;
75
75
  }
76
- if (l[0] === 6 && t.label < a[1]) {
77
- t.label = a[1], a = l;
76
+ if (l[0] === 6 && a.label < t[1]) {
77
+ a.label = t[1], t = l;
78
78
  break;
79
79
  }
80
- if (a && t.label < a[2]) {
81
- t.label = a[2], t.ops.push(l);
80
+ if (t && a.label < t[2]) {
81
+ a.label = t[2], a.ops.push(l);
82
82
  break;
83
83
  }
84
- a[2] && t.ops.pop(), t.trys.pop();
84
+ t[2] && a.ops.pop(), a.trys.pop();
85
85
  continue;
86
86
  }
87
- l = n.call(e, t);
87
+ l = n.call(e, a);
88
88
  } catch (u) {
89
89
  l = [6, u], r = 0;
90
90
  } finally {
91
- i = a = 0;
91
+ i = t = 0;
92
92
  }
93
93
  if (l[0] & 5)
94
94
  throw l[1];
@@ -98,12 +98,12 @@ var K = {}, C = {}, S = {}, te = x && x.__awaiter || function(e, n, t, i) {
98
98
  Object.defineProperty(S, "__esModule", { value: !0 });
99
99
  S.ReCaptchaInstance = void 0;
100
100
  var ne = function() {
101
- function e(n, t, i) {
102
- this.siteKey = n, this.recaptchaID = t, this.recaptcha = i, this.styleContainer = null;
101
+ function e(n, a, i) {
102
+ this.siteKey = n, this.recaptchaID = a, this.recaptcha = i, this.styleContainer = null;
103
103
  }
104
104
  return e.prototype.execute = function(n) {
105
105
  return te(this, void 0, void 0, function() {
106
- return ae(this, function(t) {
106
+ return ae(this, function(a) {
107
107
  return [2, this.recaptcha.enterprise ? this.recaptcha.enterprise.execute(this.recaptchaID, { action: n }) : this.recaptcha.execute(this.recaptchaID, { action: n })];
108
108
  });
109
109
  });
@@ -125,32 +125,32 @@ var ie = S, b;
125
125
  var z = function() {
126
126
  function e() {
127
127
  }
128
- return e.load = function(n, t) {
129
- if (t === void 0 && (t = {}), typeof document > "u")
128
+ return e.load = function(n, a) {
129
+ if (a === void 0 && (a = {}), typeof document > "u")
130
130
  return Promise.reject(new Error("This is a library for the browser!"));
131
131
  if (e.getLoadingState() === b.LOADED)
132
132
  return e.instance.getSiteKey() === n ? Promise.resolve(e.instance) : Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));
133
133
  if (e.getLoadingState() === b.LOADING)
134
- return n !== e.instanceSiteKey ? Promise.reject(new Error("reCAPTCHA already loaded with different site key!")) : new Promise(function(r, a) {
134
+ return n !== e.instanceSiteKey ? Promise.reject(new Error("reCAPTCHA already loaded with different site key!")) : new Promise(function(r, t) {
135
135
  e.successfulLoadingConsumers.push(function(o) {
136
136
  return r(o);
137
137
  }), e.errorLoadingRunnable.push(function(o) {
138
- return a(o);
138
+ return t(o);
139
139
  });
140
140
  });
141
141
  e.instanceSiteKey = n, e.setLoadingState(b.LOADING);
142
142
  var i = new e();
143
- return new Promise(function(r, a) {
144
- i.loadScript(n, t.useRecaptchaNet || !1, t.useEnterprise || !1, t.renderParameters ? t.renderParameters : {}, t.customUrl).then(function() {
143
+ return new Promise(function(r, t) {
144
+ i.loadScript(n, a.useRecaptchaNet || !1, a.useEnterprise || !1, a.renderParameters ? a.renderParameters : {}, a.customUrl).then(function() {
145
145
  e.setLoadingState(b.LOADED);
146
- var o = i.doExplicitRender(grecaptcha, n, t.explicitRenderParameters ? t.explicitRenderParameters : {}, t.useEnterprise || !1), c = new ie.ReCaptchaInstance(n, o, grecaptcha);
146
+ var o = i.doExplicitRender(grecaptcha, n, a.explicitRenderParameters ? a.explicitRenderParameters : {}, a.useEnterprise || !1), c = new ie.ReCaptchaInstance(n, o, grecaptcha);
147
147
  e.successfulLoadingConsumers.forEach(function(d) {
148
148
  return d(c);
149
- }), e.successfulLoadingConsumers = [], t.autoHideBadge && c.hideBadge(), e.instance = c, r(c);
149
+ }), e.successfulLoadingConsumers = [], a.autoHideBadge && c.hideBadge(), e.instance = c, r(c);
150
150
  }).catch(function(o) {
151
151
  e.errorLoadingRunnable.forEach(function(c) {
152
152
  return c(o);
153
- }), e.errorLoadingRunnable = [], a(o);
153
+ }), e.errorLoadingRunnable = [], t(o);
154
154
  });
155
155
  });
156
156
  }, e.getInstance = function() {
@@ -159,13 +159,13 @@ var z = function() {
159
159
  e.loadingState = n;
160
160
  }, e.getLoadingState = function() {
161
161
  return e.loadingState === null ? b.NOT_LOADED : e.loadingState;
162
- }, e.prototype.loadScript = function(n, t, i, r, a) {
162
+ }, e.prototype.loadScript = function(n, a, i, r, t) {
163
163
  var o = this;
164
- t === void 0 && (t = !1), i === void 0 && (i = !1), r === void 0 && (r = {}), a === void 0 && (a = "");
164
+ a === void 0 && (a = !1), i === void 0 && (i = !1), r === void 0 && (r = {}), t === void 0 && (t = "");
165
165
  var c = document.createElement("script");
166
166
  c.setAttribute("recaptcha-v3-script", "");
167
167
  var d = "https://www.google.com/recaptcha/api.js";
168
- t && (i ? d = "https://recaptcha.net/recaptcha/enterprise.js" : d = "https://recaptcha.net/recaptcha/api.js"), i && (d = "https://www.google.com/recaptcha/enterprise.js"), a && (d = a), r.render && (r.render = void 0);
168
+ a && (i ? d = "https://recaptcha.net/recaptcha/enterprise.js" : d = "https://recaptcha.net/recaptcha/api.js"), i && (d = "https://www.google.com/recaptcha/enterprise.js"), t && (d = t), r.render && (r.render = void 0);
169
169
  var l = this.buildQueryString(r);
170
170
  return c.src = d + "?render=explicit" + l, new Promise(function(u, y) {
171
171
  c.addEventListener("load", o.waitForScriptToLoad(function() {
@@ -175,31 +175,31 @@ var z = function() {
175
175
  }, document.head.appendChild(c);
176
176
  });
177
177
  }, e.prototype.buildQueryString = function(n) {
178
- var t = Object.keys(n);
179
- return t.length < 1 ? "" : "&" + Object.keys(n).filter(function(i) {
178
+ var a = Object.keys(n);
179
+ return a.length < 1 ? "" : "&" + Object.keys(n).filter(function(i) {
180
180
  return !!n[i];
181
181
  }).map(function(i) {
182
182
  return i + "=" + n[i];
183
183
  }).join("&");
184
- }, e.prototype.waitForScriptToLoad = function(n, t) {
184
+ }, e.prototype.waitForScriptToLoad = function(n, a) {
185
185
  var i = this;
186
186
  return function() {
187
187
  window.grecaptcha === void 0 ? setTimeout(function() {
188
- i.waitForScriptToLoad(n, t);
189
- }, e.SCRIPT_LOAD_DELAY) : t ? window.grecaptcha.enterprise.ready(function() {
188
+ i.waitForScriptToLoad(n, a);
189
+ }, e.SCRIPT_LOAD_DELAY) : a ? window.grecaptcha.enterprise.ready(function() {
190
190
  n();
191
191
  }) : window.grecaptcha.ready(function() {
192
192
  n();
193
193
  });
194
194
  };
195
- }, e.prototype.doExplicitRender = function(n, t, i, r) {
196
- var a = {
197
- sitekey: t,
195
+ }, e.prototype.doExplicitRender = function(n, a, i, r) {
196
+ var t = {
197
+ sitekey: a,
198
198
  badge: i.badge,
199
199
  size: i.size,
200
200
  tabindex: i.tabindex
201
201
  };
202
- return i.container ? r ? n.enterprise.render(i.container, a) : n.render(i.container, a) : r ? n.enterprise.render(a) : n.render(a);
202
+ return i.container ? r ? n.enterprise.render(i.container, t) : n.render(i.container, t) : r ? n.enterprise.render(t) : n.render(t);
203
203
  }, e.loadingState = null, e.instance = null, e.instanceSiteKey = null, e.successfulLoadingConsumers = [], e.errorLoadingRunnable = [], e.SCRIPT_LOAD_DELAY = 25, e;
204
204
  }();
205
205
  C.load = z.load;
@@ -212,9 +212,9 @@ C.getInstance = z.getInstance;
212
212
  } }), Object.defineProperty(e, "getInstance", { enumerable: !0, get: function() {
213
213
  return n.getInstance;
214
214
  } });
215
- var t = S;
215
+ var a = S;
216
216
  Object.defineProperty(e, "ReCaptchaInstance", { enumerable: !0, get: function() {
217
- return t.ReCaptchaInstance;
217
+ return a.ReCaptchaInstance;
218
218
  } });
219
219
  })(K);
220
220
  const le = /* @__PURE__ */ E({
@@ -222,14 +222,14 @@ const le = /* @__PURE__ */ E({
222
222
  emits: ["submit"],
223
223
  setup(e, { emit: n }) {
224
224
  const {
225
- recaptchaSiteKey: t
226
- } = R(M());
227
- async function i() {
228
- const a = await (await K.load(t.value)).execute("<action>");
229
- console.log(a), n("submit");
225
+ recaptchaSiteKey: a
226
+ } = R(M()), i = n;
227
+ async function r() {
228
+ const o = await (await K.load(a.value)).execute("<action>");
229
+ console.log(o), i("submit");
230
230
  }
231
- return (r, a) => (v(), k("form", { onSubmit: i }, [
232
- q(r.$slots, "default")
231
+ return (t, o) => (v(), k("form", { onSubmit: r }, [
232
+ q(t.$slots, "default")
233
233
  ], 32));
234
234
  }
235
235
  }), re = { id: "fresh-booking-availability-date-selection" }, oe = {
@@ -242,10 +242,10 @@ const le = /* @__PURE__ */ E({
242
242
  link: {}
243
243
  },
244
244
  setup(e) {
245
- const n = e, { t } = Y(), {
245
+ const { t: n } = Y(), a = e, {
246
246
  adults: i,
247
247
  children: r,
248
- arrivalDate: a,
248
+ arrivalDate: t,
249
249
  departureDate: o,
250
250
  location: c,
251
251
  isExpired: d
@@ -254,17 +254,17 @@ const le = /* @__PURE__ */ E({
254
254
  lastSelectableDateOffset: T,
255
255
  disableChildSelection: g,
256
256
  disableAdultSelection: _
257
- } = R(M()), I = J([]), pe = L(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (A.value - 1)))), me = L(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + T.value))), be = L(() => new Date((/* @__PURE__ */ new Date()).setDate(a.value.getDate() + A.value))), ye = L(() => new Date((/* @__PURE__ */ new Date()).setDate(a.value.getDate() + (T.value + 1)))), $ = L(() => !(!_ && i.value === 0));
257
+ } = R(M()), I = J([]), pe = L(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (A.value - 1)))), me = L(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + T.value))), be = L(() => new Date((/* @__PURE__ */ new Date()).setDate(t.value.getDate() + A.value))), ye = L(() => new Date((/* @__PURE__ */ new Date()).setDate(t.value.getDate() + (T.value + 1)))), $ = L(() => !(!_ && i.value === 0));
258
258
  function Q() {
259
- n.booking === !1 ? window.location.replace(n.link) : $.value && u();
259
+ a.booking === !1 ? window.location.replace(a.link) : $.value && u();
260
260
  }
261
- return j(a, (p) => {
261
+ return j(t, (p) => {
262
262
  const h = new Date(new Date(p).setDate(new Date(p).getDate() + 1));
263
263
  new Date(o.value) < h && (o.value = h);
264
264
  }), j(I, (p) => {
265
- a.value = p[0], o.value = p[1];
265
+ t.value = p[0], o.value = p[1];
266
266
  }), W(() => {
267
- d.value && n.booking && l(), I.value = [a.value, o.value];
267
+ d.value && a.booking && l(), I.value = [t.value, o.value];
268
268
  }), (p, h) => (v(), O(le, {
269
269
  id: "konnectio-availability-form",
270
270
  class: B({ reservation: p.booking }),
@@ -286,7 +286,7 @@ const le = /* @__PURE__ */ E({
286
286
  f(ee, {
287
287
  modelValue: I.value,
288
288
  "onUpdate:modelValue": h[1] || (h[1] = (m) => I.value = m),
289
- label: s(t)("availability.checkInOut"),
289
+ label: s(n)("availability.checkInOut"),
290
290
  "icon-type": "fas",
291
291
  "icon-placement": "label",
292
292
  "min-range": 1,
@@ -299,7 +299,7 @@ const le = /* @__PURE__ */ E({
299
299
  key: 0,
300
300
  modelValue: s(i),
301
301
  "onUpdate:modelValue": h[4] || (h[4] = (m) => P(i) ? i.value = m : null),
302
- label: s(t)("availability.adults"),
302
+ label: s(n)("availability.adults"),
303
303
  "icon-type": "fas",
304
304
  "icon-placement": "label",
305
305
  name: "adults",
@@ -309,7 +309,7 @@ const le = /* @__PURE__ */ E({
309
309
  key: 1,
310
310
  modelValue: s(r),
311
311
  "onUpdate:modelValue": h[5] || (h[5] = (m) => P(r) ? r.value = m : null),
312
- label: s(t)("availability.children"),
312
+ label: s(n)("availability.children"),
313
313
  "icon-type": "fas",
314
314
  "icon-placement": "label",
315
315
  name: "children",
@@ -318,7 +318,7 @@ const le = /* @__PURE__ */ E({
318
318
  ])) : w("", !0),
319
319
  V("li", ce, [
320
320
  f(Z, {
321
- label: s(t)("availability.buttonLabel"),
321
+ label: s(n)("availability.buttonLabel"),
322
322
  disabled: !$.value,
323
323
  "is-loading": s(y)
324
324
  }, null, 8, ["label", "disabled", "is-loading"])
@@ -344,7 +344,7 @@ const Le = /* @__PURE__ */ U(se, [["__scopeId", "data-v-61d87281"]]), ue = { cla
344
344
  view: { default: "hotel" }
345
345
  },
346
346
  setup(e) {
347
- return (n, t) => (v(), k("div", ue, [
347
+ return (n, a) => (v(), k("div", ue, [
348
348
  n.view === "both" ? (v(), k("div", de, [
349
349
  f(G, {
350
350
  height: "28px",
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),D=require("./DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs"),F=require("./NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs"),C=require("./_commonjsHelpers-6763f629.cjs"),L=require("./_-0895679a.cjs"),b=require("./Field-dcffacf2.cjs");var A={},g={},w={},B=C.commonjsGlobal&&C.commonjsGlobal.__awaiter||function(t,l,a,i){function o(n){return n instanceof a?n:new a(function(c){c(n)})}return new(a||(a=Promise))(function(n,c){function u(s){try{r(i.next(s))}catch(y){c(y)}}function d(s){try{r(i.throw(s))}catch(y){c(y)}}function r(s){s.done?n(s.value):o(s.value).then(u,d)}r((i=i.apply(t,l||[])).next())})},N=C.commonjsGlobal&&C.commonjsGlobal.__generator||function(t,l){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(r){return function(s){return d([r,s])}}function d(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(n=r[0]&2?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[r[0]&2,n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(r[0]===6&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=l.call(t,a)}catch(s){r=[6,s],o=0}finally{i=n=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(w,"__esModule",{value:!0});w.ReCaptchaInstance=void 0;var O=function(){function t(l,a,i){this.siteKey=l,this.recaptchaID=a,this.recaptcha=i,this.styleContainer=null}return t.prototype.execute=function(l){return B(this,void 0,void 0,function(){return N(this,function(a){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:l}):this.recaptcha.execute(this.recaptchaID,{action:l})]})})},t.prototype.getSiteKey=function(){return this.siteKey},t.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},t.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},t}();w.ReCaptchaInstance=O;Object.defineProperty(g,"__esModule",{value:!0});g.getInstance=g.load=void 0;var E=w,p;(function(t){t[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED"})(p||(p={}));var R=function(){function t(){}return t.load=function(l,a){if(a===void 0&&(a={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(t.getLoadingState()===p.LOADED)return t.instance.getSiteKey()===l?Promise.resolve(t.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(t.getLoadingState()===p.LOADING)return l!==t.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(o,n){t.successfulLoadingConsumers.push(function(c){return o(c)}),t.errorLoadingRunnable.push(function(c){return n(c)})});t.instanceSiteKey=l,t.setLoadingState(p.LOADING);var i=new t;return new Promise(function(o,n){i.loadScript(l,a.useRecaptchaNet||!1,a.useEnterprise||!1,a.renderParameters?a.renderParameters:{},a.customUrl).then(function(){t.setLoadingState(p.LOADED);var c=i.doExplicitRender(grecaptcha,l,a.explicitRenderParameters?a.explicitRenderParameters:{},a.useEnterprise||!1),u=new E.ReCaptchaInstance(l,c,grecaptcha);t.successfulLoadingConsumers.forEach(function(d){return d(u)}),t.successfulLoadingConsumers=[],a.autoHideBadge&&u.hideBadge(),t.instance=u,o(u)}).catch(function(c){t.errorLoadingRunnable.forEach(function(u){return u(c)}),t.errorLoadingRunnable=[],n(c)})})},t.getInstance=function(){return t.instance},t.setLoadingState=function(l){t.loadingState=l},t.getLoadingState=function(){return t.loadingState===null?p.NOT_LOADED:t.loadingState},t.prototype.loadScript=function(l,a,i,o,n){var c=this;a===void 0&&(a=!1),i===void 0&&(i=!1),o===void 0&&(o={}),n===void 0&&(n="");var u=document.createElement("script");u.setAttribute("recaptcha-v3-script","");var d="https://www.google.com/recaptcha/api.js";a&&(i?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js"),i&&(d="https://www.google.com/recaptcha/enterprise.js"),n&&(d=n),o.render&&(o.render=void 0);var r=this.buildQueryString(o);return u.src=d+"?render=explicit"+r,new Promise(function(s,y){u.addEventListener("load",c.waitForScriptToLoad(function(){s(u)},i),!1),u.onerror=function(k){t.setLoadingState(p.NOT_LOADED),y(k)},document.head.appendChild(u)})},t.prototype.buildQueryString=function(l){var a=Object.keys(l);return a.length<1?"":"&"+Object.keys(l).filter(function(i){return!!l[i]}).map(function(i){return i+"="+l[i]}).join("&")},t.prototype.waitForScriptToLoad=function(l,a){var i=this;return function(){window.grecaptcha===void 0?setTimeout(function(){i.waitForScriptToLoad(l,a)},t.SCRIPT_LOAD_DELAY):a?window.grecaptcha.enterprise.ready(function(){l()}):window.grecaptcha.ready(function(){l()})}},t.prototype.doExplicitRender=function(l,a,i,o){var n={sitekey:a,badge:i.badge,size:i.size,tabindex:i.tabindex};return i.container?o?l.enterprise.render(i.container,n):l.render(i.container,n):o?l.enterprise.render(n):l.render(n)},t.loadingState=null,t.instance=null,t.instanceSiteKey=null,t.successfulLoadingConsumers=[],t.errorLoadingRunnable=[],t.SCRIPT_LOAD_DELAY=25,t}();g.load=R.load;g.getInstance=R.getInstance;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ReCaptchaInstance=t.getInstance=t.load=void 0;var l=g;Object.defineProperty(t,"load",{enumerable:!0,get:function(){return l.load}}),Object.defineProperty(t,"getInstance",{enumerable:!0,get:function(){return l.getInstance}});var a=w;Object.defineProperty(t,"ReCaptchaInstance",{enumerable:!0,get:function(){return a.ReCaptchaInstance}})})(A);const T=e.defineComponent({__name:"_",emits:["submit"],setup(t,{emit:l}){const{recaptchaSiteKey:a}=e.storeToRefs(e.useUtilityStore()),i=l;async function o(){const c=await(await A.load(a.value)).execute("<action>");console.log(c),i("submit")}return(n,c)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:o},[e.renderSlot(n.$slots,"default")],32))}}),j={id:"fresh-booking-availability-date-selection"},P={key:0,id:"fresh-booking-availability-guest-selection"},$={id:"fresh-booking-availability-confirmation"},H=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(t){const{t:l}=e.useI18n(),a=t,{adults:i,children:o,arrivalDate:n,departureDate:c,location:u,isExpired:d}=e.storeToRefs(D.useAvailabilityStore()),{reset:r}=D.useAvailabilityStore(),{fetchAvailabilityData:s}=D.useHotelStore(),{areListingsLoading:y}=e.storeToRefs(D.useHotelStore()),{firstSelectableDateOffset:k,lastSelectableDateOffset:x,disableChildSelection:h,disableAdultSelection:m}=e.storeToRefs(e.useUtilityStore()),S=e.ref([]),Y=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(k.value-1)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+x.value))),W=e.computed(()=>new Date(new Date().setDate(n.value.getDate()+k.value))),X=e.computed(()=>new Date(new Date().setDate(n.value.getDate()+(x.value+1)))),V=e.computed(()=>!(!m&&i.value===0));function I(){a.booking===!1?window.location.replace(a.link):V.value&&s()}return e.watch(n,f=>{const _=new Date(new Date(f).setDate(new Date(f).getDate()+1));new Date(c.value)<_&&(c.value=_)}),e.watch(S,f=>{n.value=f[0],c.value=f[1]}),e.onMounted(()=>{d.value&&a.booking&&r(),S.value=[n.value,c.value]}),(f,_)=>(e.openBlock(),e.createBlock(T,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:f.booking}),onSubmit:I},{default:e.withCtx(()=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!f.booking},{"only-adult-guests":!e.unref(m)&&e.unref(h)},{"only-child-guests":!e.unref(h)&&e.unref(m)},{"no-guests":e.unref(m)&&e.unref(h)},{"all-guests":!e.unref(m)&&!e.unref(h)}])},[e.createBaseVNode("li",j,[e.createCommentVNode("",!0),e.createVNode(D._sfc_main,{modelValue:S.value,"onUpdate:modelValue":_[1]||(_[1]=v=>S.value=v),label:e.unref(l)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(m)||!e.unref(h)?(e.openBlock(),e.createElementBlock("li",P,[e.unref(m)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F._sfc_main,{key:0,modelValue:e.unref(i),"onUpdate:modelValue":_[4]||(_[4]=v=>e.isRef(i)?i.value=v:null),label:e.unref(l)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])),e.unref(h)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F._sfc_main,{key:1,modelValue:e.unref(o),"onUpdate:modelValue":_[5]||(_[5]=v=>e.isRef(o)?o.value=v:null),label:e.unref(l)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(e.Clickable,{label:e.unref(l)("availability.buttonLabel"),disabled:!V.value,"is-loading":e.unref(y)},null,8,["label","disabled","is-loading"])])],2)]),_:1},8,["class"]))}});const G=e._export_sfc(H,[["__scopeId","data-v-61d87281"]]),q={class:"availability-skeleton"},U={key:0,class:"availability-skeleton-navigation"},M={key:1,class:"availability-skeleton-hotel"},z={key:2,class:"availability-skeleton-event"},K=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(t){return(l,a)=>(e.openBlock(),e.createElementBlock("div",q,[l.view==="both"?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(L.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(L.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),l.view!=="event"?(e.openBlock(),e.createElementBlock("div",M,[e.createVNode(b.Field,{"with-icon":""}),e.createVNode(b.Field,{"with-icon":""}),e.createVNode(b.Field,{"with-icon":""}),e.createVNode(b.Field,{"with-icon":"","no-label":""})])):(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(b.Field,{"with-icon":""}),e.createVNode(b.Field,{"with-icon":"","no-label":""})]))]))}});const Q=e._export_sfc(K,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=Q;exports.HotelAvailabilityForm=G;