@konnectio/core 4.0.9 → 4.0.10
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-f3d5b218.js → ActionField-68f65af4.js} +4 -4
- package/dist/ActionField-68f65af4.js.br +0 -0
- package/dist/ActionField-ab9c01ab.cjs +1 -0
- package/dist/AvailabilitySkeleton-c48588e4.js +382 -0
- package/dist/AvailabilitySkeleton-c48588e4.js.br +0 -0
- package/dist/AvailabilitySkeleton-ca6cf6b6.cjs +1 -0
- package/dist/{payment-cce506b8.js → DateField.vue_vue_type_style_index_0_lang-87ddfed8.js} +3216 -2953
- package/dist/DateField.vue_vue_type_style_index_0_lang-87ddfed8.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-b6694990.cjs +5 -0
- package/dist/Field-b76d82cb.js +42 -0
- package/dist/Field-b76d82cb.js.br +0 -0
- package/dist/Field-d926807f.cjs +1 -0
- package/dist/{applyGiftCard-dea77ba6.js → NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js} +59 -59
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs +806 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js +19169 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js.br +0 -0
- package/dist/{TextField-99e69631.cjs → TextField-528ca68c.cjs} +1 -1
- package/dist/{TextField-b8f4462a.js → TextField-8f6e5ef5.js} +139 -137
- package/dist/TextField-8f6e5ef5.js.br +0 -0
- package/dist/ThankYou-2f3c4efe.js +11777 -0
- package/dist/ThankYou-2f3c4efe.js.br +0 -0
- package/dist/ThankYou-8ae535bf.cjs +54 -0
- package/dist/_-3cff5490.cjs +1 -0
- package/dist/_-734c9d50.js +82 -0
- package/dist/_-734c9d50.js.br +0 -0
- package/dist/assets/typescript/mixins.d.ts +1 -4
- package/dist/availability.cjs +2 -2
- package/dist/availability.js +94 -142
- package/dist/availability.js.br +0 -0
- package/dist/components/Icon.vue.d.ts +1 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelReservationForm.vue.d.ts +4 -0
- package/dist/components/forms/HotelReservationForm.vue.d.ts.map +1 -0
- package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/forms/_.vue.d.ts +4 -0
- package/dist/components/forms/_.vue.d.ts.map +1 -0
- package/dist/components/inputs/InputField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Event.vue.d.ts +1 -1
- package/dist/components/listings/{Test.vue.d.ts → Hotel.vue.d.ts} +3 -3
- package/dist/components/listings/Hotel.vue.d.ts.map +1 -0
- package/dist/components/modals/Info.vue.d.ts +1 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +1 -1
- package/dist/components/skeletons/Field.vue.d.ts +1 -1
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -1
- package/dist/components/{side-panels/Hotel.vue.d.ts → skeletons/Sidebar.vue.d.ts} +3 -3
- package/dist/components/skeletons/Sidebar.vue.d.ts.map +1 -0
- package/dist/components/skeletons/_.vue.d.ts +1 -1
- package/dist/components/views/CheckoutWindow.vue.d.ts +1 -1
- package/dist/components/views/TermsOfService.vue.d.ts +1 -1
- package/dist/components/views/ThankYou.vue.d.ts +1 -1
- package/dist/event-4662e27c.cjs +1 -0
- package/dist/{event-a9067cf5.js → event-e08d0178.js} +37 -37
- package/dist/event-e08d0178.js.br +0 -0
- package/dist/event.cjs +1 -2
- package/dist/event.js +402 -706
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +72 -126
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +302 -390
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +2215 -2229
- package/dist/hotel.js.br +0 -0
- package/dist/{index-ec04c269.cjs → index-a46a0876.cjs} +1 -1
- package/dist/{index-d080b5a0.js → index-c28f52d1.js} +32 -14
- package/dist/index-c28f52d1.js.br +0 -0
- package/dist/layouts/Availability.vue.d.ts +20 -67
- package/dist/layouts/Event.vue.d.ts +16 -242
- package/dist/layouts/GiftCard.vue.d.ts +29 -280
- package/dist/layouts/GiftCardValidation.vue.d.ts +16 -226
- package/dist/layouts/Hotel.vue.d.ts +33 -378
- package/dist/layouts/_.vue.d.ts +31 -20
- package/dist/polyfill.cjs +4 -4
- package/dist/polyfill.js +1586 -1575
- package/dist/polyfill.js.br +0 -0
- package/dist/store/availability.d.ts +1 -1
- package/dist/store/giftCard.d.ts +3 -3
- package/dist/store/hotel.d.ts +318 -204
- package/dist/store/tracking.d.ts +6 -14
- package/dist/store/utilities.d.ts +87 -81
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +44 -8
- package/package.json +21 -21
- package/dist/ActionField-b87d2fd7.cjs +0 -1
- package/dist/ActionField-f3d5b218.js.br +0 -0
- package/dist/AvailabilitySkeleton-019ec202.js +0 -150
- package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
- package/dist/AvailabilitySkeleton-e288f5be.cjs +0 -1
- package/dist/Field-21bb32d7.cjs +0 -1
- package/dist/Field-6bfeedce.js +0 -59
- package/dist/Field-6bfeedce.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js +0 -17193
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +0 -797
- package/dist/TextField-b8f4462a.js.br +0 -0
- package/dist/ThankYou-add684c1.cjs +0 -66
- package/dist/ThankYou-edbf753b.js +0 -14279
- package/dist/ThankYou-edbf753b.js.br +0 -0
- package/dist/applyGiftCard-c21f13ac.cjs +0 -1
- package/dist/applyGiftCard-dea77ba6.js.br +0 -0
- package/dist/components/forms/ReservationFormTest.vue.d.ts +0 -5
- package/dist/components/forms/ReservationFormTest.vue.d.ts.map +0 -1
- package/dist/components/listings/Test.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Base.vue.d.ts +0 -5
- package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Hotel.vue.d.ts.map +0 -1
- package/dist/event-2c6a2138.cjs +0 -1
- package/dist/event-a9067cf5.js.br +0 -0
- package/dist/index-d080b5a0.js.br +0 -0
- package/dist/payment-95b2392a.cjs +0 -2
- package/dist/payment-cce506b8.js.br +0 -0
package/dist/style.css.br
CHANGED
|
Binary file
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,41 @@ export type Translatable = string;
|
|
|
2
2
|
export type Timer = undefined | number;
|
|
3
3
|
export type Name = [number, string];
|
|
4
4
|
export type metaDataType = 'none' | 'event' | 'gift-card' | 'hotel';
|
|
5
|
+
export interface KonnectioStyling {
|
|
6
|
+
accentColor?: string;
|
|
7
|
+
buttonBackground?: string;
|
|
8
|
+
buttonBorder?: string | null;
|
|
9
|
+
buttonBorderRadius?: string;
|
|
10
|
+
buttonColor?: string;
|
|
11
|
+
buttonFontFamily?: string;
|
|
12
|
+
buttonFontSize?: string;
|
|
13
|
+
buttonFontWeight?: string;
|
|
14
|
+
buttonIconColor?: string;
|
|
15
|
+
buttonTextTransform?: string;
|
|
16
|
+
dangerColor?: string;
|
|
17
|
+
fontColor?: string;
|
|
18
|
+
fontFamily?: string;
|
|
19
|
+
fontSize?: string;
|
|
20
|
+
grayColor?: string;
|
|
21
|
+
headerColor?: string;
|
|
22
|
+
inputBackground?: string;
|
|
23
|
+
inputBorder?: string;
|
|
24
|
+
inputBorderRadius?: string;
|
|
25
|
+
inputBorderWidth?: string;
|
|
26
|
+
inputFontColor?: string;
|
|
27
|
+
labelFontWeight?: string;
|
|
28
|
+
labelPadding?: string;
|
|
29
|
+
labelFontSize?: string;
|
|
30
|
+
linkColor?: string;
|
|
31
|
+
loadingColor?: string;
|
|
32
|
+
panelBackground?: string;
|
|
33
|
+
panelBorder?: string | null;
|
|
34
|
+
panelBorderRadius?: string;
|
|
35
|
+
panelPadding?: string;
|
|
36
|
+
panelInnerPadding?: string;
|
|
37
|
+
panelShadow?: string;
|
|
38
|
+
successColor?: string;
|
|
39
|
+
}
|
|
5
40
|
export interface Time {
|
|
6
41
|
hours: number | string;
|
|
7
42
|
minutes: number | string;
|
|
@@ -144,7 +179,7 @@ export interface Alert {
|
|
|
144
179
|
domain: string;
|
|
145
180
|
}
|
|
146
181
|
export interface Option {
|
|
147
|
-
[key: string]: string | number | null;
|
|
182
|
+
[key: string]: string | number | boolean | null;
|
|
148
183
|
}
|
|
149
184
|
export interface Offer {
|
|
150
185
|
adultsMin: number;
|
|
@@ -373,7 +408,7 @@ export interface OctopusCreateReservationResponse {
|
|
|
373
408
|
export interface OctopusGuest {
|
|
374
409
|
travellingFor?: string;
|
|
375
410
|
title?: Translatable;
|
|
376
|
-
guestID
|
|
411
|
+
guestID?: number;
|
|
377
412
|
name: string;
|
|
378
413
|
email: string;
|
|
379
414
|
firmName?: string;
|
|
@@ -382,7 +417,7 @@ export interface OctopusGuest {
|
|
|
382
417
|
address1?: string;
|
|
383
418
|
postal?: string;
|
|
384
419
|
city?: string;
|
|
385
|
-
newsmails
|
|
420
|
+
newsmails?: boolean;
|
|
386
421
|
}
|
|
387
422
|
export interface OctopusSelectedRoom {
|
|
388
423
|
templateID?: number;
|
|
@@ -498,7 +533,7 @@ export interface AvailableRoomAddon {
|
|
|
498
533
|
export interface RoomAddon {
|
|
499
534
|
addonID: number;
|
|
500
535
|
cardinality?: number;
|
|
501
|
-
id
|
|
536
|
+
id?: number;
|
|
502
537
|
maximumNumber?: number;
|
|
503
538
|
name?: string;
|
|
504
539
|
price?: number;
|
|
@@ -558,9 +593,9 @@ export interface RoomFacility {
|
|
|
558
593
|
roomGroupID: number;
|
|
559
594
|
}
|
|
560
595
|
export interface FreshBookingImage {
|
|
561
|
-
large: string
|
|
562
|
-
medium: string
|
|
563
|
-
thumb: string
|
|
596
|
+
large: string;
|
|
597
|
+
medium: string;
|
|
598
|
+
thumb: string;
|
|
564
599
|
url: string;
|
|
565
600
|
}
|
|
566
601
|
export interface Country {
|
|
@@ -568,9 +603,10 @@ export interface Country {
|
|
|
568
603
|
iso: string;
|
|
569
604
|
name: string;
|
|
570
605
|
}
|
|
571
|
-
interface HotelAddon {
|
|
606
|
+
export interface HotelAddon {
|
|
572
607
|
id: number;
|
|
573
608
|
maximumNumber: number;
|
|
609
|
+
quantityStrategy: QuantityStrategy;
|
|
574
610
|
name: string;
|
|
575
611
|
price: number;
|
|
576
612
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.10",
|
|
4
4
|
"author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
|
|
5
5
|
"homepage": "https://konnectio.dk",
|
|
6
6
|
"description": "Konnectio Core Frontend Integration.",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"prod": "vite build",
|
|
21
21
|
"watch": "vite build --watch --mode development",
|
|
22
22
|
"production": "vue-tsc --noEmit && vite build --mode production",
|
|
23
|
-
"staging": "vue-tsc --noEmit && vite build --mode staging
|
|
23
|
+
"staging": "vue-tsc --noEmit && vite build --mode staging",
|
|
24
24
|
"analysis": "vue-tsc --noEmit",
|
|
25
25
|
"preview": "vite preview",
|
|
26
26
|
"e2e": "cypress open"
|
|
@@ -36,16 +36,18 @@
|
|
|
36
36
|
"@fortawesome/pro-solid-svg-icons": "6.4.2",
|
|
37
37
|
"@fortawesome/vue-fontawesome": "3.0.3",
|
|
38
38
|
"@intlify/unplugin-vue-i18n": "1.0.1",
|
|
39
|
+
"@unhead/vue": "1.7.4",
|
|
39
40
|
"@vuepic/vue-datepicker": "6.0.3",
|
|
40
41
|
"@vueup/vue-quill": "1.2.0",
|
|
41
42
|
"@vueuse/core": "10.5.0",
|
|
42
43
|
"axios": "1.5.1",
|
|
43
|
-
"core-js": "3.33.
|
|
44
|
+
"core-js": "3.33.1",
|
|
44
45
|
"cqfill": "0.6.1",
|
|
45
46
|
"dotenv": "16.3.1",
|
|
46
47
|
"floating-vue": "2.0.0-beta.24",
|
|
47
|
-
"pinia": "2.1.
|
|
48
|
-
"postcss": "8.4.
|
|
48
|
+
"pinia": "2.1.7",
|
|
49
|
+
"postcss": "8.4.31",
|
|
50
|
+
"recaptcha-v3": "1.10.0",
|
|
49
51
|
"regenerator-runtime": "0.14.0",
|
|
50
52
|
"vue": "3.3.4",
|
|
51
53
|
"vue-final-modal": "4.4.5",
|
|
@@ -53,36 +55,34 @@
|
|
|
53
55
|
"vue-i18n": "9.3.0",
|
|
54
56
|
"vue-inner-image-zoom": "2.0.0",
|
|
55
57
|
"vue-masonry": "0.16.0",
|
|
56
|
-
"vue-recaptcha": "3.0.0-alpha.6",
|
|
57
|
-
"vue-recaptcha-v3": "2.0.1",
|
|
58
58
|
"vue-select": "4.0.0-beta.6",
|
|
59
|
-
"vue-snip": "2.0.1",
|
|
60
59
|
"vue3-side-panel": "1.2.0",
|
|
61
|
-
"vue3-sticky-directive": "0.0.2"
|
|
60
|
+
"vue3-sticky-directive": "0.0.2",
|
|
61
|
+
"vue3-text-clamp": "0.1.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@babel/eslint-parser": "7.22.15",
|
|
65
65
|
"@kucrut/vite-for-wp": "0.5.2",
|
|
66
66
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
67
|
-
"@types/node": "20.
|
|
67
|
+
"@types/node": "20.8.4",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
69
69
|
"@typescript-eslint/parser": "5.62.0",
|
|
70
|
-
"@vitejs/plugin-vue": "4.
|
|
71
|
-
"@vue/eslint-config-typescript": "
|
|
70
|
+
"@vitejs/plugin-vue": "4.4.0",
|
|
71
|
+
"@vue/eslint-config-typescript": "12.0.0",
|
|
72
72
|
"@vue/test-utils": "2.4.1",
|
|
73
73
|
"cross-env": "7.0.3",
|
|
74
|
-
"cypress": "
|
|
75
|
-
"eslint": "8.
|
|
74
|
+
"cypress": "13.3.0",
|
|
75
|
+
"eslint": "8.51.0",
|
|
76
76
|
"eslint-plugin-vue": "9.17.0",
|
|
77
|
-
"rollup-plugin-typescript2": "
|
|
78
|
-
"sass": "1.
|
|
77
|
+
"rollup-plugin-typescript2": "0.36.0",
|
|
78
|
+
"sass": "1.69.5",
|
|
79
79
|
"ts-node": "10.9.1",
|
|
80
|
-
"tslib": "
|
|
81
|
-
"typescript": "
|
|
82
|
-
"vite": "4.
|
|
80
|
+
"tslib": "2.6.2",
|
|
81
|
+
"typescript": "5.2.2",
|
|
82
|
+
"vite": "4.5.0",
|
|
83
83
|
"vite-plugin-compression": "0.5.1",
|
|
84
|
-
"vite-plugin-dts": "
|
|
85
|
-
"vue-tsc": "1.8.
|
|
84
|
+
"vite-plugin-dts": "3.6.0",
|
|
85
|
+
"vue-tsc": "1.8.22"
|
|
86
86
|
},
|
|
87
87
|
"contributors": [
|
|
88
88
|
{
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs"),s=require("./TextField-99e69631.cjs"),m=require("./applyGiftCard-c21f13ac.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(p,{emit:i}){const t=p,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 c(){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(s._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(m._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(s.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=>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 b=l._export_sfc(f,[["__scopeId","data-v-07d4466b"]]);exports.ActionField=b;
|
|
Binary file
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { h as F, t as O, s as V, a as R, r as q, c as _, P as x, o as z, k as i, y as r, q as k, D as u, m as a, n as e, l as A, x as S, C as L, Q as C, _ as H } from "./SelectField.vue_vue_type_style_index_0_lang-701aecad.js";
|
|
2
|
-
import { a as $, _ as M } from "./payment-cce506b8.js";
|
|
3
|
-
import { _ as B } from "./applyGiftCard-dea77ba6.js";
|
|
4
|
-
import { E, F as c } from "./Field-6bfeedce.js";
|
|
5
|
-
const P = { id: "fresh-booking-availability-date-selection" }, Q = {
|
|
6
|
-
key: 0,
|
|
7
|
-
id: "fresh-booking-availability-guest-selection"
|
|
8
|
-
}, T = { id: "fresh-booking-availability-confirmation" }, j = /* @__PURE__ */ F({
|
|
9
|
-
__name: "HotelAvailabilityForm",
|
|
10
|
-
props: {
|
|
11
|
-
booking: { type: Boolean, default: !1 },
|
|
12
|
-
link: {}
|
|
13
|
-
},
|
|
14
|
-
setup(h) {
|
|
15
|
-
const n = h, { t: d } = O(), {
|
|
16
|
-
adults: m,
|
|
17
|
-
children: y,
|
|
18
|
-
arrivalDate: v,
|
|
19
|
-
departureDate: p,
|
|
20
|
-
location: Y,
|
|
21
|
-
isExpired: I
|
|
22
|
-
} = V($()), { reset: U } = $(), {
|
|
23
|
-
firstSelectableDateOffset: w,
|
|
24
|
-
lastSelectableDateOffset: D,
|
|
25
|
-
disableChildSelection: s,
|
|
26
|
-
disableAdultSelection: o
|
|
27
|
-
} = V(R()), f = q([]);
|
|
28
|
-
_(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (w.value - 1)))), _(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + D.value))), _(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + w.value))), _(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + (D.value + 1))));
|
|
29
|
-
const g = _(() => !(!o && m.value === 0));
|
|
30
|
-
function N() {
|
|
31
|
-
n.booking === !1 ? window.location.replace(n.link) : g.value && window.location.reload();
|
|
32
|
-
}
|
|
33
|
-
return x(v, (l) => {
|
|
34
|
-
const t = new Date(new Date(l).setDate(new Date(l).getDate() + 1));
|
|
35
|
-
new Date(p.value) < t && (p.value = t);
|
|
36
|
-
}), x(f, (l) => {
|
|
37
|
-
v.value = l[0], p.value = l[1];
|
|
38
|
-
}), z(() => {
|
|
39
|
-
I.value && n.booking && U(), f.value = [v.value, p.value];
|
|
40
|
-
}), (l, t) => (i(), r("form", {
|
|
41
|
-
id: "fresh-booking-availability-form",
|
|
42
|
-
class: C({ reservation: l.booking })
|
|
43
|
-
}, [
|
|
44
|
-
k("ul", {
|
|
45
|
-
id: "fresh-booking-availability-form-content",
|
|
46
|
-
class: C([
|
|
47
|
-
{ "is-not-booking-page": !l.booking },
|
|
48
|
-
{ "only-adult-guests": !e(o) && e(s) },
|
|
49
|
-
{ "only-child-guests": !e(s) && e(o) },
|
|
50
|
-
{ "no-guests": e(o) && e(s) },
|
|
51
|
-
{ "all-guests": !e(o) && !e(s) }
|
|
52
|
-
])
|
|
53
|
-
}, [
|
|
54
|
-
k("li", P, [
|
|
55
|
-
u("", !0),
|
|
56
|
-
a(M, {
|
|
57
|
-
modelValue: f.value,
|
|
58
|
-
"onUpdate:modelValue": t[1] || (t[1] = (b) => f.value = b),
|
|
59
|
-
label: e(d)("availability.checkInOut"),
|
|
60
|
-
"icon-type": "fas",
|
|
61
|
-
"icon-placement": "label",
|
|
62
|
-
"min-range": 1,
|
|
63
|
-
range: ""
|
|
64
|
-
}, null, 8, ["modelValue", "label"]),
|
|
65
|
-
u("", !0)
|
|
66
|
-
]),
|
|
67
|
-
!e(o) || !e(s) ? (i(), r("li", Q, [
|
|
68
|
-
e(o) ? u("", !0) : (i(), A(B, {
|
|
69
|
-
key: 0,
|
|
70
|
-
modelValue: e(m),
|
|
71
|
-
"onUpdate:modelValue": t[4] || (t[4] = (b) => S(m) ? m.value = b : null),
|
|
72
|
-
label: e(d)("availability.adults"),
|
|
73
|
-
"icon-type": "fas",
|
|
74
|
-
"icon-placement": "label",
|
|
75
|
-
name: "adults",
|
|
76
|
-
icon: "male"
|
|
77
|
-
}, null, 8, ["modelValue", "label"])),
|
|
78
|
-
e(s) ? u("", !0) : (i(), A(B, {
|
|
79
|
-
key: 1,
|
|
80
|
-
modelValue: e(y),
|
|
81
|
-
"onUpdate:modelValue": t[5] || (t[5] = (b) => S(y) ? y.value = b : null),
|
|
82
|
-
label: e(d)("availability.children"),
|
|
83
|
-
"icon-type": "fas",
|
|
84
|
-
"icon-placement": "label",
|
|
85
|
-
name: "children",
|
|
86
|
-
icon: "child"
|
|
87
|
-
}, null, 8, ["modelValue", "label"]))
|
|
88
|
-
])) : u("", !0),
|
|
89
|
-
k("li", T, [
|
|
90
|
-
a(L, {
|
|
91
|
-
label: e(d)("availability.buttonLabel"),
|
|
92
|
-
disabled: !g.value,
|
|
93
|
-
onClickEvent: N
|
|
94
|
-
}, null, 8, ["label", "disabled"])
|
|
95
|
-
])
|
|
96
|
-
], 2)
|
|
97
|
-
], 2));
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
const le = /* @__PURE__ */ H(j, [["__scopeId", "data-v-c19d5469"]]), G = { class: "availability-skeleton" }, J = {
|
|
101
|
-
key: 0,
|
|
102
|
-
class: "availability-skeleton-navigation"
|
|
103
|
-
}, K = {
|
|
104
|
-
key: 1,
|
|
105
|
-
class: "availability-skeleton-hotel"
|
|
106
|
-
}, W = {
|
|
107
|
-
key: 2,
|
|
108
|
-
class: "availability-skeleton-event"
|
|
109
|
-
}, X = /* @__PURE__ */ F({
|
|
110
|
-
__name: "AvailabilitySkeleton",
|
|
111
|
-
props: {
|
|
112
|
-
view: { default: "hotel" }
|
|
113
|
-
},
|
|
114
|
-
setup(h) {
|
|
115
|
-
return (n, d) => (i(), r("div", G, [
|
|
116
|
-
n.view === "both" ? (i(), r("div", J, [
|
|
117
|
-
a(E, {
|
|
118
|
-
height: "28px",
|
|
119
|
-
width: "60px",
|
|
120
|
-
"border-radius": "20px"
|
|
121
|
-
}),
|
|
122
|
-
a(E, {
|
|
123
|
-
height: "28px",
|
|
124
|
-
width: "60px",
|
|
125
|
-
"border-radius": "20px"
|
|
126
|
-
})
|
|
127
|
-
])) : u("", !0),
|
|
128
|
-
n.view !== "event" ? (i(), r("div", K, [
|
|
129
|
-
a(c, { "with-icon": "" }),
|
|
130
|
-
a(c, { "with-icon": "" }),
|
|
131
|
-
a(c, { "with-icon": "" }),
|
|
132
|
-
a(c, {
|
|
133
|
-
"with-icon": "",
|
|
134
|
-
"no-label": ""
|
|
135
|
-
})
|
|
136
|
-
])) : (i(), r("div", W, [
|
|
137
|
-
a(c, { "with-icon": "" }),
|
|
138
|
-
a(c, {
|
|
139
|
-
"with-icon": "",
|
|
140
|
-
"no-label": ""
|
|
141
|
-
})
|
|
142
|
-
]))
|
|
143
|
-
]));
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
const ie = /* @__PURE__ */ H(X, [["__scopeId", "data-v-2c3e37a4"]]);
|
|
147
|
-
export {
|
|
148
|
-
ie as A,
|
|
149
|
-
le as H
|
|
150
|
-
};
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs"),f=require("./payment-95b2392a.cjs"),y=require("./applyGiftCard-c21f13ac.cjs"),a=require("./Field-21bb32d7.cjs"),D={id:"fresh-booking-availability-date-selection"},V={key:0,id:"fresh-booking-availability-guest-selection"},B={id:"fresh-booking-availability-confirmation"},N=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(b){const i=b,{t:s}=e.useI18n(),{adults:u,children:m,arrivalDate:c,departureDate:d,location:R,isExpired:h}=e.storeToRefs(f.useAvailabilityStore()),{reset:w}=f.useAvailabilityStore(),{firstSelectableDateOffset:p,lastSelectableDateOffset:_,disableChildSelection:n,disableAdultSelection:o}=e.storeToRefs(e.useUtilityStore()),v=e.ref([]);e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(p.value-1)))),e.computed(()=>new Date(new Date().setDate(new Date().getDate()+_.value))),e.computed(()=>new Date(new Date().setDate(c.value.getDate()+p.value))),e.computed(()=>new Date(new Date().setDate(c.value.getDate()+(_.value+1))));const k=e.computed(()=>!(!o&&u.value===0));function g(){i.booking===!1?window.location.replace(i.link):k.value&&window.location.reload()}return e.watch(c,l=>{const t=new Date(new Date(l).setDate(new Date(l).getDate()+1));new Date(d.value)<t&&(d.value=t)}),e.watch(v,l=>{c.value=l[0],d.value=l[1]}),e.onMounted(()=>{h.value&&i.booking&&w(),v.value=[c.value,d.value]}),(l,t)=>(e.openBlock(),e.createElementBlock("form",{id:"fresh-booking-availability-form",class:e.normalizeClass({reservation:l.booking})},[e.createBaseVNode("ul",{id:"fresh-booking-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!l.booking},{"only-adult-guests":!e.unref(o)&&e.unref(n)},{"only-child-guests":!e.unref(n)&&e.unref(o)},{"no-guests":e.unref(o)&&e.unref(n)},{"all-guests":!e.unref(o)&&!e.unref(n)}])},[e.createBaseVNode("li",D,[e.createCommentVNode("",!0),e.createVNode(f._sfc_main,{modelValue:v.value,"onUpdate:modelValue":t[1]||(t[1]=r=>v.value=r),label:e.unref(s)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(o)||!e.unref(n)?(e.openBlock(),e.createElementBlock("li",V,[e.unref(o)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y._sfc_main,{key:0,modelValue:e.unref(u),"onUpdate:modelValue":t[4]||(t[4]=r=>e.isRef(u)?u.value=r:null),label:e.unref(s)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])),e.unref(n)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y._sfc_main,{key:1,modelValue:e.unref(m),"onUpdate:modelValue":t[5]||(t[5]=r=>e.isRef(m)?m.value=r:null),label:e.unref(s)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))])):e.createCommentVNode("",!0),e.createBaseVNode("li",B,[e.createVNode(e.Clickable,{label:e.unref(s)("availability.buttonLabel"),disabled:!k.value,onClickEvent:g},null,8,["label","disabled"])])],2)],2))}});const C=e._export_sfc(N,[["__scopeId","data-v-c19d5469"]]),A={class:"availability-skeleton"},F={key:0,class:"availability-skeleton-navigation"},S={key:1,class:"availability-skeleton-hotel"},x={key:2,class:"availability-skeleton-event"},E=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(b){return(i,s)=>(e.openBlock(),e.createElementBlock("div",A,[i.view==="both"?(e.openBlock(),e.createElementBlock("div",F,[e.createVNode(a.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(a.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),i.view!=="event"?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(a.Field,{"with-icon":""}),e.createVNode(a.Field,{"with-icon":""}),e.createVNode(a.Field,{"with-icon":""}),e.createVNode(a.Field,{"with-icon":"","no-label":""})])):(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(a.Field,{"with-icon":""}),e.createVNode(a.Field,{"with-icon":"","no-label":""})]))]))}});const q=e._export_sfc(E,[["__scopeId","data-v-2c3e37a4"]]);exports.AvailabilitySkeleton=q;exports.HotelAvailabilityForm=C;
|
package/dist/Field-21bb32d7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs"),s={class:"placeholder"},n=e.defineComponent({__name:"_",props:{area:{default:"unset"},height:{default:"100%"},width:{default:"100%"},borderRadius:{default:"3px"}},setup(a){return e.useCssVars(t=>({"165163ce":t.area,"95e5fab6":t.width,"5a774fb0":t.height,f6a883c2:t.borderRadius})),(t,l)=>(e.openBlock(),e.createElementBlock("div",s))}});const o=e._export_sfc(n,[["__scopeId","data-v-1c1931a4"]]),_={key:0,class:"skeleton-field-label"},c={key:1},d=e.defineComponent({__name:"Field",props:{withIcon:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1},isTextArea:{type:Boolean,default:!1}},setup(a){return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["skeleton-field",{"is-text-area":t.isTextArea}])},[t.noLabel?(e.openBlock(),e.createElementBlock("div",c)):(e.openBlock(),e.createElementBlock("div",_,[t.withIcon?(e.openBlock(),e.createBlock(o,{key:0,height:"15px",width:"15px"})):e.createCommentVNode("",!0),e.createVNode(o,{height:"15px",width:"30%"})])),e.createVNode(o,{height:t.isTextArea?"82px":"44px",width:"100%","border-radius":"6px"},null,8,["height"])],2))}});const i=e._export_sfc(d,[["__scopeId","data-v-4bff6dc8"]]);exports.Element=o;exports.Field=i;
|
package/dist/Field-6bfeedce.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { h as d, R as i, k as a, y as s, _ as l, l as r, D as c, m as o, Q as p } from "./SelectField.vue_vue_type_style_index_0_lang-701aecad.js";
|
|
2
|
-
const h = { class: "placeholder" }, f = /* @__PURE__ */ d({
|
|
3
|
-
__name: "_",
|
|
4
|
-
props: {
|
|
5
|
-
area: { default: "unset" },
|
|
6
|
-
height: { default: "100%" },
|
|
7
|
-
width: { default: "100%" },
|
|
8
|
-
borderRadius: { default: "3px" }
|
|
9
|
-
},
|
|
10
|
-
setup(_) {
|
|
11
|
-
return i((e) => ({
|
|
12
|
-
"165163ce": e.area,
|
|
13
|
-
"95e5fab6": e.width,
|
|
14
|
-
"5a774fb0": e.height,
|
|
15
|
-
f6a883c2: e.borderRadius
|
|
16
|
-
})), (e, n) => (a(), s("div", h));
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const t = /* @__PURE__ */ l(f, [["__scopeId", "data-v-1c1931a4"]]), u = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "skeleton-field-label"
|
|
22
|
-
}, m = { key: 1 }, y = /* @__PURE__ */ d({
|
|
23
|
-
__name: "Field",
|
|
24
|
-
props: {
|
|
25
|
-
withIcon: { type: Boolean, default: !1 },
|
|
26
|
-
noLabel: { type: Boolean, default: !1 },
|
|
27
|
-
isTextArea: { type: Boolean, default: !1 }
|
|
28
|
-
},
|
|
29
|
-
setup(_) {
|
|
30
|
-
return (e, n) => (a(), s("div", {
|
|
31
|
-
class: p([
|
|
32
|
-
"skeleton-field",
|
|
33
|
-
{ "is-text-area": e.isTextArea }
|
|
34
|
-
])
|
|
35
|
-
}, [
|
|
36
|
-
e.noLabel ? (a(), s("div", m)) : (a(), s("div", u, [
|
|
37
|
-
e.withIcon ? (a(), r(t, {
|
|
38
|
-
key: 0,
|
|
39
|
-
height: "15px",
|
|
40
|
-
width: "15px"
|
|
41
|
-
})) : c("", !0),
|
|
42
|
-
o(t, {
|
|
43
|
-
height: "15px",
|
|
44
|
-
width: "30%"
|
|
45
|
-
})
|
|
46
|
-
])),
|
|
47
|
-
o(t, {
|
|
48
|
-
height: e.isTextArea ? "82px" : "44px",
|
|
49
|
-
width: "100%",
|
|
50
|
-
"border-radius": "6px"
|
|
51
|
-
}, null, 8, ["height"])
|
|
52
|
-
], 2));
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
const v = /* @__PURE__ */ l(y, [["__scopeId", "data-v-4bff6dc8"]]);
|
|
56
|
-
export {
|
|
57
|
-
t as E,
|
|
58
|
-
v as F
|
|
59
|
-
};
|
|
Binary file
|