@konnectio/core 4.0.22 → 4.0.24
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.
- package/dist/{ActionField-83fef1c1.cjs → ActionField-8ee667bd.cjs} +1 -1
- package/dist/{ActionField-4c47ccce.js → ActionField-b2ee8f91.js} +2 -2
- package/dist/ActionField-b2ee8f91.js.br +0 -0
- package/dist/AvailabilitySkeleton-16a3be88.js +227 -0
- package/dist/AvailabilitySkeleton-16a3be88.js.br +0 -0
- package/dist/AvailabilitySkeleton-83a2e2c6.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-efec37d7.cjs → DateField.vue_vue_type_style_index_0_lang-4caf9daf.cjs} +2 -2
- package/dist/{DateField.vue_vue_type_style_index_0_lang-6242a55d.js → DateField.vue_vue_type_style_index_0_lang-a4abbe86.js} +6 -6
- package/dist/DateField.vue_vue_type_style_index_0_lang-a4abbe86.js.br +0 -0
- package/dist/{Field-72b689c4.cjs → Field-877b4588.cjs} +1 -1
- package/dist/{Field-d3e306c7.js → Field-f5f98938.js} +2 -2
- package/dist/Field-f5f98938.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js → NumberField.vue_vue_type_script_setup_true_lang-5bf8b187.js} +2 -2
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-5bf8b187.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-53cff536.cjs → NumberField.vue_vue_type_script_setup_true_lang-f72da2f4.cjs} +1 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-727c44d8.cjs +855 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-b53d9177.js → SelectField.vue_vue_type_style_index_0_lang-f136675d.js} +8594 -8260
- package/dist/SelectField.vue_vue_type_style_index_0_lang-f136675d.js.br +0 -0
- package/dist/{ThankYou-ebdebf4e.js → ThankYou-58baa41d.js} +11 -11
- package/dist/ThankYou-58baa41d.js.br +0 -0
- package/dist/{ThankYou-98807e93.cjs → ThankYou-f027d958.cjs} +2 -2
- package/dist/{_-07462fdc.cjs → _-573e46fc.cjs} +1 -1
- package/dist/{_-f5b07fc1.js → _-e0a2fd6e.js} +1 -1
- package/dist/_-e0a2fd6e.js.br +0 -0
- package/dist/availability.cjs +2 -2
- package/dist/availability.js +62 -64
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/inputs/InputField.vue.d.ts +1 -1
- package/dist/components/inputs/grouped/NameField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Hotel.vue.d.ts +1 -1
- package/dist/{event-5c513f23.cjs → event-01f44344.cjs} +1 -1
- package/dist/{event-136853fa.js → event-3e48b8ad.js} +9 -9
- package/dist/event-3e48b8ad.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +18 -18
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +3 -3
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +12 -12
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1640 -1674
- package/dist/hotel.js.br +0 -0
- package/dist/index-68332b8a.cjs +1 -0
- package/dist/index-931022d3.js +405 -0
- package/dist/index-931022d3.js.br +0 -0
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/store/event.d.ts +1 -1
- package/dist/store/hotel.d.ts +1 -1
- package/dist/store/payment.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/ActionField-4c47ccce.js.br +0 -0
- package/dist/AvailabilitySkeleton-0e77a3ad.cjs +0 -1
- package/dist/AvailabilitySkeleton-6ba16e6b.js +0 -223
- package/dist/AvailabilitySkeleton-6ba16e6b.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-6242a55d.js.br +0 -0
- package/dist/Field-d3e306c7.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b53d9177.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-ed0ef984.cjs +0 -855
- package/dist/ThankYou-ebdebf4e.js.br +0 -0
- package/dist/_-f5b07fc1.js.br +0 -0
- package/dist/event-136853fa.js.br +0 -0
- package/dist/index-c407bc6f.cjs +0 -1
- package/dist/index-eab5c85f.js +0 -664
- package/dist/index-eab5c85f.js.br +0 -0
- package/dist/store/tracking.d.ts +0 -16
package/dist/style.css.br
CHANGED
|
Binary file
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type Name = [number, string];
|
|
|
4
4
|
export type metaDataType = 'none' | 'event' | 'gift-card' | 'hotel';
|
|
5
5
|
export interface KonnectioStyling {
|
|
6
6
|
accentColor?: string;
|
|
7
|
+
accentColorSecondary?: string;
|
|
7
8
|
buttonBackground?: string;
|
|
8
9
|
buttonBorder?: string | null;
|
|
9
10
|
buttonBorderRadius?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.24",
|
|
4
4
|
"author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
|
|
5
5
|
"homepage": "https://konnectio.dk",
|
|
6
6
|
"description": "Konnectio Core Frontend Integration.",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@typescript-eslint/parser": "6.10.0",
|
|
69
69
|
"@vitejs/plugin-vue": "4.4.1",
|
|
70
70
|
"@vue/eslint-config-typescript": "12.0.0",
|
|
71
|
-
"@vue/test-utils": "2.4.
|
|
71
|
+
"@vue/test-utils": "2.4.2",
|
|
72
72
|
"cross-env": "7.0.3",
|
|
73
73
|
"cypress": "13.5.1",
|
|
74
74
|
"eslint": "8.53.0",
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-ed0ef984.cjs"),b=require("./DateField.vue_vue_type_style_index_0_lang-efec37d7.cjs"),h=require("./NumberField.vue_vue_type_script_setup_true_lang-53cff536.cjs"),x=require("./_-07462fdc.cjs"),_=require("./Field-72b689c4.cjs"),E=["onSubmit"],w=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(m,{emit:n}){const l=e.ref(!1),o=n,u=m,{verifyRecaptcha:c}=e.useUtilityStore();function r(){l.value=!0,c({callback:v,type:u.type}).then(()=>l.value=!1)}function v(){o("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:l.value})],40,E))}}),R={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},L={key:1,id:"fresh-booking-availability-guest-selection"},U={id:"fresh-booking-availability-confirmation"},H=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(m){const{t:n}=e.useI18n(),l=m,{adults:o,children:u,arrivalDate:c,departureDate:r,location:v,isExpired:y}=e.storeToRefs(e.useAvailabilityStore()),{reset:k}=e.useAvailabilityStore(),{fetchAvailabilityData:B}=b.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:p}=e.storeToRefs(b.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),G=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(c.value.getDate()+g.value))),P=e.computed(()=>new Date(new Date().setDate(c.value.getDate()+(D.value+1)))),V=e.computed(()=>!(!s&&o.value===0)),N=e.computed(()=>typeof l.link!="string");function A(){if(l.booking===!1)if(N.value){const i=e.getUserLanguage();l.link[i]?window.location.replace(l.link[i]):l.link.en?window.location.replace(l.link.en):console.log("Sprog understøttes ikke")}else window.location.replace(l.link);else V.value&&B()}return e.watch(c,i=>{const t=new Date(new Date(i).setDate(new Date(i).getDate()+1));new Date(r.value)<t&&(r.value=t)}),e.watch(f,i=>{c.value=i[0],r.value=i[1]}),e.onMounted(()=>{y.value&&l.booking&&k(),f.value=[c.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(w,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:A},{default:e.withCtx(({isLoading:C})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-not-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(p)}])},[e.unref(p)?(e.openBlock(),e.createElementBlock("li",R,[e.createVNode(e._sfc_main,{modelValue:e.unref(v),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(v)?v.value=a:null),label:e.unref(n)("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(b._sfc_main,{modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=a=>f.value=a),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(d)?(e.openBlock(),e.createElementBlock("li",L,[e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(p)?(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(n)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])):(e.openBlock(),e.createBlock(h._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(n)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"]))],64)),e.unref(d)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(p)?(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(n)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"])):(e.openBlock(),e.createBlock(h._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(n)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))],64))])):e.createCommentVNode("",!0),e.createBaseVNode("li",U,[e.createVNode(e.Clickable,{type:"submit",label:e.unref(n)("availability.buttonLabel"),disabled:!V.value,"is-loading":e.unref(F)||C},null,8,["label","disabled","is-loading"])])],2)]),_:1},8,["class"]))}});const q=e._export_sfc(H,[["__scopeId","data-v-9287c752"]]),T={class:"availability-skeleton"},I={key:0,class:"availability-skeleton-navigation"},z={key:1,class:"availability-skeleton-hotel"},O={key:2,class:"availability-skeleton-event"},M=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(m){return(n,l)=>(e.openBlock(),e.createElementBlock("div",T,[n.view==="both"?(e.openBlock(),e.createElementBlock("div",I,[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),n.view!=="event"?(e.openBlock(),e.createElementBlock("div",z,[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",O,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const j=e._export_sfc(M,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=j;exports.HotelAvailabilityForm=q;exports._sfc_main=w;
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { h as S, r as O, a as T, k as l, q as u, a9 as Q, H as W, z as X, s as x, aa as C, c as b, a1 as F, o as Y, l as D, w as Z, x as $, n as e, m as s, B as k, y as ee, t as _, a2 as H, T as R, C as ae, v as E, f as le, _ as q } from "./SelectField.vue_vue_type_style_index_0_lang-b53d9177.js";
|
|
2
|
-
import { u as N, _ as te } from "./DateField.vue_vue_type_style_index_0_lang-6242a55d.js";
|
|
3
|
-
import { _ as I } from "./NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js";
|
|
4
|
-
import { E as z } from "./_-f5b07fc1.js";
|
|
5
|
-
import { F as f } from "./Field-d3e306c7.js";
|
|
6
|
-
const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
7
|
-
__name: "_",
|
|
8
|
-
props: {
|
|
9
|
-
type: { default: "submit" }
|
|
10
|
-
},
|
|
11
|
-
emits: ["submit"],
|
|
12
|
-
setup(h, { emit: n }) {
|
|
13
|
-
const t = O(!1), r = n, c = h, { verifyRecaptcha: d } = T();
|
|
14
|
-
function v() {
|
|
15
|
-
t.value = !0, d({
|
|
16
|
-
callback: y,
|
|
17
|
-
type: c.type
|
|
18
|
-
}).then(() => t.value = !1);
|
|
19
|
-
}
|
|
20
|
-
function y() {
|
|
21
|
-
r("submit");
|
|
22
|
-
}
|
|
23
|
-
return (V, A) => (l(), u("form", {
|
|
24
|
-
onSubmit: W(v, ["prevent"])
|
|
25
|
-
}, [
|
|
26
|
-
Q(V.$slots, "default", { isLoading: t.value })
|
|
27
|
-
], 40, ie));
|
|
28
|
-
}
|
|
29
|
-
}), oe = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "konnectio-availability-location"
|
|
32
|
-
}, se = { id: "fresh-booking-availability-date-selection" }, re = {
|
|
33
|
-
key: 1,
|
|
34
|
-
id: "fresh-booking-availability-guest-selection"
|
|
35
|
-
}, ue = { id: "fresh-booking-availability-confirmation" }, ce = /* @__PURE__ */ S({
|
|
36
|
-
__name: "HotelAvailabilityForm",
|
|
37
|
-
props: {
|
|
38
|
-
booking: { type: Boolean, default: !1 },
|
|
39
|
-
link: {}
|
|
40
|
-
},
|
|
41
|
-
setup(h) {
|
|
42
|
-
const { t: n } = X(), t = h, {
|
|
43
|
-
adults: r,
|
|
44
|
-
children: c,
|
|
45
|
-
arrivalDate: d,
|
|
46
|
-
departureDate: v,
|
|
47
|
-
location: y,
|
|
48
|
-
isExpired: V
|
|
49
|
-
} = x(C()), { reset: A } = C(), { fetchAvailabilityData: M } = N(), { areListingsLoading: j, hotelList: G, hasHotelList: g } = x(N()), {
|
|
50
|
-
firstSelectableDateOffset: L,
|
|
51
|
-
lastSelectableDateOffset: U,
|
|
52
|
-
disableChildSelection: p,
|
|
53
|
-
disableAdultSelection: m
|
|
54
|
-
} = x(T()), w = O([]), fe = b(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (L.value - 1)))), _e = b(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + U.value))), ye = b(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + L.value))), De = b(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (U.value + 1)))), B = b(() => !(!m && r.value === 0)), J = b(() => typeof t.link != "string");
|
|
55
|
-
function K() {
|
|
56
|
-
if (t.booking === !1)
|
|
57
|
-
if (J.value) {
|
|
58
|
-
const o = le();
|
|
59
|
-
t.link[o] ? window.location.replace(t.link[o]) : t.link.en ? window.location.replace(t.link.en) : console.log("Sprog understøttes ikke");
|
|
60
|
-
} else
|
|
61
|
-
window.location.replace(t.link);
|
|
62
|
-
else
|
|
63
|
-
B.value && M();
|
|
64
|
-
}
|
|
65
|
-
return F(d, (o) => {
|
|
66
|
-
const a = new Date(new Date(o).setDate(new Date(o).getDate() + 1));
|
|
67
|
-
new Date(v.value) < a && (v.value = a);
|
|
68
|
-
}), F(w, (o) => {
|
|
69
|
-
d.value = o[0], v.value = o[1];
|
|
70
|
-
}), Y(() => {
|
|
71
|
-
V.value && t.booking && A(), w.value = [d.value, v.value];
|
|
72
|
-
}), (o, a) => (l(), D(ne, {
|
|
73
|
-
id: "konnectio-availability-form",
|
|
74
|
-
class: E({ reservation: o.booking }),
|
|
75
|
-
type: "availability",
|
|
76
|
-
onSubmit: K
|
|
77
|
-
}, {
|
|
78
|
-
default: Z(({ isLoading: P }) => [
|
|
79
|
-
$("ul", {
|
|
80
|
-
id: "konnectio-availability-form-content",
|
|
81
|
-
class: E([
|
|
82
|
-
{ "is-not-booking-page": !o.booking },
|
|
83
|
-
{ "only-adult-guests": !e(m) && e(p) },
|
|
84
|
-
{ "only-child-guests": !e(p) && e(m) },
|
|
85
|
-
{ "no-guests": e(m) && e(p) },
|
|
86
|
-
{ "all-guests": !e(m) && !e(p) },
|
|
87
|
-
{ "has-location": e(g) }
|
|
88
|
-
])
|
|
89
|
-
}, [
|
|
90
|
-
e(g) ? (l(), u("li", oe, [
|
|
91
|
-
s(ee, {
|
|
92
|
-
modelValue: e(y),
|
|
93
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) => k(y) ? y.value = i : null),
|
|
94
|
-
label: e(n)("general.location"),
|
|
95
|
-
icon: "location-dot",
|
|
96
|
-
"icon-type": "fas",
|
|
97
|
-
"icon-placement": "label",
|
|
98
|
-
options: e(G),
|
|
99
|
-
searchable: !1
|
|
100
|
-
}, null, 8, ["modelValue", "label", "options"])
|
|
101
|
-
])) : _("", !0),
|
|
102
|
-
$("li", se, [
|
|
103
|
-
s(te, {
|
|
104
|
-
modelValue: w.value,
|
|
105
|
-
"onUpdate:modelValue": a[1] || (a[1] = (i) => w.value = i),
|
|
106
|
-
label: e(n)("availability.checkInOut"),
|
|
107
|
-
"icon-type": "fas",
|
|
108
|
-
"icon-placement": "label",
|
|
109
|
-
"min-range": 1,
|
|
110
|
-
range: ""
|
|
111
|
-
}, null, 8, ["modelValue", "label"]),
|
|
112
|
-
_("", !0)
|
|
113
|
-
]),
|
|
114
|
-
!e(m) || !e(p) ? (l(), u("li", re, [
|
|
115
|
-
e(m) ? _("", !0) : (l(), u(H, { key: 0 }, [
|
|
116
|
-
e(g) ? (l(), D(R, {
|
|
117
|
-
key: 0,
|
|
118
|
-
modelValue: e(r),
|
|
119
|
-
"onUpdate:modelValue": a[4] || (a[4] = (i) => k(r) ? r.value = i : null),
|
|
120
|
-
label: e(n)("availability.adults"),
|
|
121
|
-
"icon-type": "fas",
|
|
122
|
-
"icon-placement": "label",
|
|
123
|
-
name: "adults",
|
|
124
|
-
icon: "male"
|
|
125
|
-
}, null, 8, ["modelValue", "label"])) : (l(), D(I, {
|
|
126
|
-
key: 1,
|
|
127
|
-
modelValue: e(r),
|
|
128
|
-
"onUpdate:modelValue": a[5] || (a[5] = (i) => k(r) ? r.value = i : null),
|
|
129
|
-
label: e(n)("availability.adults"),
|
|
130
|
-
"icon-type": "fas",
|
|
131
|
-
"icon-placement": "label",
|
|
132
|
-
name: "adults",
|
|
133
|
-
icon: "male"
|
|
134
|
-
}, null, 8, ["modelValue", "label"]))
|
|
135
|
-
], 64)),
|
|
136
|
-
e(p) ? _("", !0) : (l(), u(H, { key: 1 }, [
|
|
137
|
-
e(g) ? (l(), D(R, {
|
|
138
|
-
key: 0,
|
|
139
|
-
modelValue: e(c),
|
|
140
|
-
"onUpdate:modelValue": a[6] || (a[6] = (i) => k(c) ? c.value = i : null),
|
|
141
|
-
label: e(n)("availability.children"),
|
|
142
|
-
"icon-type": "fas",
|
|
143
|
-
"icon-placement": "label",
|
|
144
|
-
name: "children",
|
|
145
|
-
icon: "child"
|
|
146
|
-
}, null, 8, ["modelValue", "label"])) : (l(), D(I, {
|
|
147
|
-
key: 1,
|
|
148
|
-
modelValue: e(c),
|
|
149
|
-
"onUpdate:modelValue": a[7] || (a[7] = (i) => k(c) ? c.value = i : null),
|
|
150
|
-
label: e(n)("availability.children"),
|
|
151
|
-
"icon-type": "fas",
|
|
152
|
-
"icon-placement": "label",
|
|
153
|
-
name: "children",
|
|
154
|
-
icon: "child"
|
|
155
|
-
}, null, 8, ["modelValue", "label"]))
|
|
156
|
-
], 64))
|
|
157
|
-
])) : _("", !0),
|
|
158
|
-
$("li", ue, [
|
|
159
|
-
s(ae, {
|
|
160
|
-
type: "submit",
|
|
161
|
-
label: e(n)("availability.buttonLabel"),
|
|
162
|
-
disabled: !B.value,
|
|
163
|
-
"is-loading": e(j) || P
|
|
164
|
-
}, null, 8, ["label", "disabled", "is-loading"])
|
|
165
|
-
])
|
|
166
|
-
], 2)
|
|
167
|
-
]),
|
|
168
|
-
_: 1
|
|
169
|
-
}, 8, ["class"]));
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
const xe = /* @__PURE__ */ q(ce, [["__scopeId", "data-v-9287c752"]]), de = { class: "availability-skeleton" }, me = {
|
|
173
|
-
key: 0,
|
|
174
|
-
class: "availability-skeleton-navigation"
|
|
175
|
-
}, ve = {
|
|
176
|
-
key: 1,
|
|
177
|
-
class: "availability-skeleton-hotel"
|
|
178
|
-
}, pe = {
|
|
179
|
-
key: 2,
|
|
180
|
-
class: "availability-skeleton-event"
|
|
181
|
-
}, be = /* @__PURE__ */ S({
|
|
182
|
-
__name: "AvailabilitySkeleton",
|
|
183
|
-
props: {
|
|
184
|
-
view: { default: "hotel" }
|
|
185
|
-
},
|
|
186
|
-
setup(h) {
|
|
187
|
-
return (n, t) => (l(), u("div", de, [
|
|
188
|
-
n.view === "both" ? (l(), u("div", me, [
|
|
189
|
-
s(z, {
|
|
190
|
-
height: "28px",
|
|
191
|
-
width: "60px",
|
|
192
|
-
"border-radius": "20px"
|
|
193
|
-
}),
|
|
194
|
-
s(z, {
|
|
195
|
-
height: "28px",
|
|
196
|
-
width: "60px",
|
|
197
|
-
"border-radius": "20px"
|
|
198
|
-
})
|
|
199
|
-
])) : _("", !0),
|
|
200
|
-
n.view !== "event" ? (l(), u("div", ve, [
|
|
201
|
-
s(f, { "with-icon": "" }),
|
|
202
|
-
s(f, { "with-icon": "" }),
|
|
203
|
-
s(f, { "with-icon": "" }),
|
|
204
|
-
s(f, {
|
|
205
|
-
"with-icon": "",
|
|
206
|
-
"no-label": ""
|
|
207
|
-
})
|
|
208
|
-
])) : (l(), u("div", pe, [
|
|
209
|
-
s(f, { "with-icon": "" }),
|
|
210
|
-
s(f, {
|
|
211
|
-
"with-icon": "",
|
|
212
|
-
"no-label": ""
|
|
213
|
-
})
|
|
214
|
-
]))
|
|
215
|
-
]));
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
const $e = /* @__PURE__ */ q(be, [["__scopeId", "data-v-c266ccbc"]]);
|
|
219
|
-
export {
|
|
220
|
-
$e as A,
|
|
221
|
-
xe as H,
|
|
222
|
-
ne as _
|
|
223
|
-
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|