@konnectio/core 4.0.41 → 4.0.43
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-79f8bfae.cjs → ActionField-43360bd2.cjs} +1 -1
- package/dist/{ActionField-054975da.js → ActionField-46bc1332.js} +2 -2
- package/dist/ActionField-46bc1332.js.br +0 -0
- package/dist/{AvailabilitySkeleton-c92fc1d1.cjs → AvailabilitySkeleton-0a70de37.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-3e6890a1.js → AvailabilitySkeleton-f86f40b9.js} +5 -5
- package/dist/AvailabilitySkeleton-f86f40b9.js.br +0 -0
- package/dist/CheckoutWindow-046e2e84.js +202 -0
- package/dist/CheckoutWindow-046e2e84.js.br +0 -0
- package/dist/CheckoutWindow-a2dfaa01.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-77ca2367.js → DateField.vue_vue_type_style_index_0_lang-10d7dd19.js} +3030 -3015
- package/dist/DateField.vue_vue_type_style_index_0_lang-10d7dd19.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-a4c0f28b.cjs +2 -0
- package/dist/{Field-73b09327.cjs → Field-0588c03e.cjs} +1 -1
- package/dist/{Field-dffa8f30.js → Field-a28f1e97.js} +2 -2
- package/dist/Field-a28f1e97.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-1108dcd6.cjs → NumberField.vue_vue_type_script_setup_true_lang-01f7e3ee.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-3517aeda.js → NumberField.vue_vue_type_script_setup_true_lang-9edbbae0.js} +1 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-9edbbae0.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-9544cd25.cjs → SelectField.vue_vue_type_style_index_0_lang-88de73f4.cjs} +39 -39
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-bc4ca9a5.js → SelectField.vue_vue_type_style_index_0_lang-fbce2406.js} +47 -46
- package/dist/SelectField.vue_vue_type_style_index_0_lang-fbce2406.js.br +0 -0
- package/dist/{ThankYou-d42a4e49.js → ThankYou-0b7441d8.js} +5371 -4370
- package/dist/ThankYou-0b7441d8.js.br +0 -0
- package/dist/ThankYou-2acb4fdf.cjs +59 -0
- package/dist/{_-b8fd5e7f.cjs → _-357f8de1.cjs} +1 -1
- package/dist/{_-f51b7e1b.js → _-5f328ff3.js} +1 -1
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/ReservationForm.vue.d.ts +2 -1
- package/dist/components/forms/ReservationForm.vue.d.ts.map +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/side-panels/Base.vue.d.ts +1 -1
- package/dist/components/side-panels/ListingInfo.vue.d.ts +5 -0
- package/dist/components/side-panels/ListingInfo.vue.d.ts.map +1 -0
- package/dist/components/side-panels/TermsOfService.vue.d.ts +5 -0
- package/dist/components/side-panels/TermsOfService.vue.d.ts.map +1 -0
- package/dist/components/views/TermsOfService.vue.d.ts +1 -1
- package/dist/{event-0c5b54ea.js → event-7eca2398.js} +7 -7
- package/dist/event-7eca2398.js.br +0 -0
- package/dist/{event-6671499b.cjs → event-b8c5517e.cjs} +1 -1
- package/dist/event.cjs +1 -1
- package/dist/event.js +108 -109
- 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 +293 -301
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +8 -8
- package/dist/hotel.js +1633 -2070
- package/dist/hotel.js.br +0 -0
- package/dist/layouts/Hotel.vue.d.ts +5 -0
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +6 -6
- package/dist/ActionField-054975da.js.br +0 -0
- package/dist/AvailabilitySkeleton-3e6890a1.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-56ca7795.cjs +0 -2
- package/dist/DateField.vue_vue_type_style_index_0_lang-77ca2367.js.br +0 -0
- package/dist/Field-dffa8f30.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-3517aeda.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-bc4ca9a5.js.br +0 -0
- package/dist/ThankYou-d42a4e49.js.br +0 -0
- package/dist/ThankYou-da4c5f50.cjs +0 -54
- package/dist/components/modals/Terms.vue.d.ts +0 -4
- package/dist/components/modals/Terms.vue.d.ts.map +0 -1
- package/dist/event-0c5b54ea.js.br +0 -0
- package/dist/index-2920831d.cjs +0 -1
- package/dist/index-906997b4.js +0 -375
- package/dist/index-906997b4.js.br +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-88de73f4.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-01f7e3ee.cjs"),y={class:"fresh-booking-action-field"},f=l.defineComponent({__name:"ActionField",props:{modelValue:{},label:{},buttonLabel:{},buttonIcon:{},buttonIconColor:{},buttonDisabled:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},name:{},id:{},type:{default:"text"},placeholder:{},icon:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},data:{},action:{},minValue:{},maxValue:{},isLoading:{type:Boolean,default:!1}},emits:["update:modelValue","action"],setup(s,{emit:p}){const i=p,t=s,n=t.id||l.ranId();function u(e){i("update:modelValue",e)}const d=l.computed({get:()=>t.modelValue,set:e=>u(e)}),r=l.computed({get:()=>t.modelValue,set:e=>u(e)});function 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(l._sfc_main,{key:0,modelValue:d.value,"onUpdate:modelValue":o[0]||(o[0]=a=>d.value=a),id:l.unref(n),options:e.data,name:e.name,required:e.required,placeholder:e.placeholder},null,8,["modelValue","id","options","name","required","placeholder"])):e.type==="number"?(l.openBlock(),l.createBlock(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(l.TextField,{key:2,modelValue:d.value,"onUpdate:modelValue":o[2]||(o[2]=a=>d.value=a),id:l.unref(n),name:e.name,required:e.required,placeholder:e.placeholder},null,8,["modelValue","id","name","required","placeholder"])),l.createVNode(l.Clickable,{"data-test":`${e.name}Submit`,icon:e.buttonIcon,label:e.buttonLabel,"icon-color":e.buttonIconColor,styling:e.action,type:"button","is-loading":e.isLoading,disabled:e.buttonDisabled,secondary:e.secondary,onClickEvent:o[3]||(o[3]=a=>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-ad281c18"]]);exports.ActionField=b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as b, l as V, f as m, m as d, n as i, w as v, A as q, B as g, q as t, T as k, p as B, C as I, I as C, _ as A } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { k as b, l as V, f as m, m as d, n as i, w as v, A as q, B as g, q as t, T as k, p as B, C as I, I as C, _ as A } from "./SelectField.vue_vue_type_style_index_0_lang-fbce2406.js";
|
|
2
|
+
import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-9edbbae0.js";
|
|
3
3
|
const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ b({
|
|
4
4
|
__name: "ActionField",
|
|
5
5
|
props: {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-88de73f4.cjs"),E=require("./DateField.vue_vue_type_style_index_0_lang-a4c0f28b.cjs"),V=require("./NumberField.vue_vue_type_script_setup_true_lang-01f7e3ee.cjs"),x=require("./_-357f8de1.cjs"),_=require("./Field-0588c03e.cjs"),B=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(v,{emit:l}){const n=e.ref(!1),o=l,u=v,{verifyRecaptcha:r}=e.useUtilityStore();function c(){n.value=!0,r({callback:p,type:u.type}).then(()=>n.value=!1)}function p(){o("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(c,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:n.value})],32))}}),U={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},L={key:1,id:"fresh-booking-availability-guest-selection"},H={id:"fresh-booking-availability-confirmation"},q=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(v){const{t:l}=e.useI18n(),n=v,{adults:o,children:u,arrivalDate:r,departureDate:c,location:p,isExpired:y}=e.storeToRefs(e.useAvailabilityStore()),{reset:k}=e.useAvailabilityStore(),{fetchAvailabilityData:w}=e.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:m}=e.storeToRefs(e.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),N=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(g.value-1)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+D.value))),K=e.computed(()=>new Date(new Date().setDate(r.value.getDate()+g.value))),A=e.computed(()=>new Date(new Date().setDate(r.value.getDate()+(D.value+1)))),b=e.computed(()=>!(!s&&o.value===0)),C=e.computed(()=>typeof n.link!="string");function R(){if(n.booking===!1)if(C.value){const i=e.getUserLanguage();n.link[i]?window.location.replace(n.link[i]):n.link.en?window.location.replace(n.link.en):console.log("Sprog understøttes ikke")}else window.location.replace(n.link);else b.value&&w()}return e.watch(r,i=>{const t=new Date(new Date(i).setDate(new Date(i).getDate()+1));new Date(c.value)<t&&(c.value=t)}),e.watch(f,i=>{r.value=i[0],c.value=i[1]}),e.onMounted(()=>{y.value&&k(),f.value=[r.value,c.value]}),(i,t)=>(e.openBlock(),e.createBlock(B,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:R},{default:e.withCtx(({isLoading:h})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-booking-page":i.booking},{"only-adult-guests":!e.unref(s)&&e.unref(d)},{"only-child-guests":!e.unref(d)&&e.unref(s)},{"no-guests":e.unref(s)&&e.unref(d)},{"all-guests":!e.unref(s)&&!e.unref(d)},{"has-location":e.unref(m)}])},[e.unref(m)?(e.openBlock(),e.createElementBlock("li",U,[e.createVNode(e._sfc_main,{modelValue:e.unref(p),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(p)?p.value=a:null),label:e.unref(l)("general.location"),icon:"location-dot","icon-type":"fas","icon-placement":"label",options:e.unref(S),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(E._sfc_main,{modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=a=>f.value=a),label:e.unref(l)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,"min-date":N.value,"max-date":A.value,range:""},null,8,["modelValue","label","min-date","max-date"]),e.createCommentVNode("",!0)]),!e.unref(s)||!e.unref(d)?(e.openBlock(),e.createElementBlock("li",L,[e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(m)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(o),"onUpdate:modelValue":t[4]||(t[4]=a=>e.isRef(o)?o.value=a:null),label:e.unref(l)("availability.adults"),description:e.unref(l)("general.adultAgeRange"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label","description"])):(e.openBlock(),e.createBlock(V._sfc_main,{key:1,modelValue:e.unref(o),"onUpdate:modelValue":t[5]||(t[5]=a=>e.isRef(o)?o.value=a:null),label:e.unref(l)("availability.adults"),description:e.unref(l)("general.adultAgeRange"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label","description"]))],64)),e.unref(d)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(m)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(u),"onUpdate:modelValue":t[6]||(t[6]=a=>e.isRef(u)?u.value=a:null),label:e.unref(l)("availability.children"),description:e.unref(l)("general.childAgeRange"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label","description"])):(e.openBlock(),e.createBlock(V._sfc_main,{key:1,modelValue:e.unref(u),"onUpdate:modelValue":t[7]||(t[7]=a=>e.isRef(u)?u.value=a:null),label:e.unref(l)("availability.children"),description:e.unref(l)("general.childAgeRange"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label","description"]))],64))])):e.createCommentVNode("",!0),e.createBaseVNode("li",H,[i.booking?(e.openBlock(),e.createBlock(e.Clickable,{key:0,type:"submit",icon:"search","icon-type":"fas",disabled:!b.value,"is-loading":e.unref(F)||h},null,8,["disabled","is-loading"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,type:"submit",label:e.unref(l)("availability.buttonLabel"),disabled:!b.value,"is-loading":h},null,8,["label","disabled","is-loading"]))])],2)]),_:1},8,["class"]))}});const T=e._export_sfc(q,[["__scopeId","data-v-a901e79d"]]),I={class:"availability-skeleton"},z={key:0,class:"availability-skeleton-navigation"},O={key:1,class:"availability-skeleton-hotel"},M={key:2,class:"availability-skeleton-event"},j=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(v){return(l,n)=>(e.openBlock(),e.createElementBlock("div",I,[l.view==="both"?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(x.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(x.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),l.view!=="event"?(e.openBlock(),e.createElementBlock("div",O,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})])):(e.openBlock(),e.createElementBlock("div",M,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const G=e._export_sfc(j,[["__scopeId","data-v-d044752e"]]);exports.AvailabilitySkeleton=G;exports.HotelAvailabilityForm=T;exports._sfc_main=B;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { k as S, r as z, c as M, m as l, v as u, aa as Y, L as Z, D as ee, s as A, ab as C, ac as F, f, a1 as H, o as ae, n as p, w as le, A as $, q as e, p as s, G as g, B as te, x as _, a2 as E, T as N, C as I, y as O, i as ie, _ as G } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { E as q } from "./_-
|
|
5
|
-
import { F as y } from "./Field-
|
|
1
|
+
import { k as S, r as z, c as M, m as l, v as u, aa as Y, L as Z, D as ee, s as A, ab as C, ac as F, f, a1 as H, o as ae, n as p, w as le, A as $, q as e, p as s, G as g, B as te, x as _, a2 as E, T as N, C as I, y as O, i as ie, _ as G } from "./SelectField.vue_vue_type_style_index_0_lang-fbce2406.js";
|
|
2
|
+
import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-10d7dd19.js";
|
|
3
|
+
import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-9edbbae0.js";
|
|
4
|
+
import { E as q } from "./_-5f328ff3.js";
|
|
5
|
+
import { F as y } from "./Field-a28f1e97.js";
|
|
6
6
|
const oe = /* @__PURE__ */ S({
|
|
7
7
|
__name: "_",
|
|
8
8
|
props: {
|
|
Binary file
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { k as g, l as k, r as _, o as S, m as p, n as $, w as A, A as d, p as V, q as i, T as C, I as B, _ as v, ai as I, y as h, aj as T, ak as w, v as b, F as u, x as P, D as N, a5 as f, s as F, c as G, al as j, P as D, Q as E } from "./SelectField.vue_vue_type_style_index_0_lang-fbce2406.js";
|
|
2
|
+
const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ g({
|
|
3
|
+
__name: "PhoneField",
|
|
4
|
+
props: {
|
|
5
|
+
modelValue: {},
|
|
6
|
+
label: {},
|
|
7
|
+
id: {},
|
|
8
|
+
placeholder: {},
|
|
9
|
+
icon: { default: "phone-office" },
|
|
10
|
+
iconColor: {},
|
|
11
|
+
iconType: { default: "fal" },
|
|
12
|
+
required: { type: Boolean, default: !1 },
|
|
13
|
+
readonly: { type: Boolean, default: !1 },
|
|
14
|
+
inputStyle: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:modelValue"],
|
|
17
|
+
setup(a, { emit: l }) {
|
|
18
|
+
const t = l, n = a, c = n.id || k(), e = _("+45"), s = _("");
|
|
19
|
+
function m() {
|
|
20
|
+
t("update:modelValue", `${e.value} ${s.value}`);
|
|
21
|
+
}
|
|
22
|
+
return S(() => {
|
|
23
|
+
if (n.modelValue) {
|
|
24
|
+
const o = n.modelValue.split(" ");
|
|
25
|
+
e.value = o[0], s.value = o[1];
|
|
26
|
+
}
|
|
27
|
+
}), (o, r) => (p(), $(B, {
|
|
28
|
+
label: o.label,
|
|
29
|
+
id: i(c),
|
|
30
|
+
type: "phone",
|
|
31
|
+
required: o.required,
|
|
32
|
+
readonly: o.readonly
|
|
33
|
+
}, {
|
|
34
|
+
default: A(() => [
|
|
35
|
+
d("div", O, [
|
|
36
|
+
V(C, {
|
|
37
|
+
modelValue: e.value,
|
|
38
|
+
"onUpdate:modelValue": r[0] || (r[0] = (y) => e.value = y),
|
|
39
|
+
type: "text",
|
|
40
|
+
id: i(k)(),
|
|
41
|
+
name: "phone-code",
|
|
42
|
+
autocomplete: "tel-country-code",
|
|
43
|
+
icon: o.icon,
|
|
44
|
+
"icon-color": o.iconColor,
|
|
45
|
+
"icon-type": o.iconType,
|
|
46
|
+
placeholder: "+45",
|
|
47
|
+
required: o.required,
|
|
48
|
+
readonly: o.readonly,
|
|
49
|
+
"input-style": o.inputStyle,
|
|
50
|
+
onInput: r[1] || (r[1] = (y) => m())
|
|
51
|
+
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
|
|
52
|
+
V(C, {
|
|
53
|
+
modelValue: s.value,
|
|
54
|
+
"onUpdate:modelValue": r[2] || (r[2] = (y) => s.value = y),
|
|
55
|
+
type: "number",
|
|
56
|
+
name: "phone",
|
|
57
|
+
autocomplete: "tel-national",
|
|
58
|
+
id: i(c),
|
|
59
|
+
placeholder: o.placeholder,
|
|
60
|
+
required: o.required,
|
|
61
|
+
readonly: o.readonly,
|
|
62
|
+
"input-style": o.inputStyle,
|
|
63
|
+
onInput: r[3] || (r[3] = (y) => m())
|
|
64
|
+
}, null, 8, ["modelValue", "id", "placeholder", "required", "readonly", "input-style"])
|
|
65
|
+
])
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["label", "id", "required", "readonly"]));
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const x = /* @__PURE__ */ v(U, [["__scopeId", "data-v-5cd094ab"]]), W = ["required", "type", "name", "readonly", "disabled", "value", "checked"], z = ["data-test"], H = { key: 0 }, K = /* @__PURE__ */ g({
|
|
72
|
+
__name: "Checkbox",
|
|
73
|
+
props: {
|
|
74
|
+
modelValue: { type: [String, Boolean, Number] },
|
|
75
|
+
numeric: { type: Boolean, default: !1 },
|
|
76
|
+
checked: { type: Boolean, default: !1 },
|
|
77
|
+
label: {},
|
|
78
|
+
price: {},
|
|
79
|
+
name: {},
|
|
80
|
+
readonly: { type: Boolean, default: !1 },
|
|
81
|
+
type: { default: "checkbox" },
|
|
82
|
+
required: { type: Boolean, default: !1 },
|
|
83
|
+
inputStyle: {},
|
|
84
|
+
val: {}
|
|
85
|
+
},
|
|
86
|
+
emits: ["update:modelValue"],
|
|
87
|
+
setup(a, { emit: l }) {
|
|
88
|
+
const t = a, n = l;
|
|
89
|
+
function c() {
|
|
90
|
+
t.readonly !== !0 && n(
|
|
91
|
+
"update:modelValue",
|
|
92
|
+
t.type === "radio" ? t.val : t.numeric ? t.modelValue ? 0 : 1 : !t.modelValue
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
return (e, s) => (p(), $(B, {
|
|
96
|
+
required: e.required,
|
|
97
|
+
type: e.type,
|
|
98
|
+
readonly: e.readonly
|
|
99
|
+
}, {
|
|
100
|
+
default: A(() => [
|
|
101
|
+
d("label", {
|
|
102
|
+
class: h([
|
|
103
|
+
"fresh-booking-click-box-container",
|
|
104
|
+
{ "is-readonly": e.readonly },
|
|
105
|
+
{ "has-label": e.label },
|
|
106
|
+
e.type === "radio" ? "radio" : "checkbox"
|
|
107
|
+
])
|
|
108
|
+
}, [
|
|
109
|
+
d("input", I(e.$attrs, {
|
|
110
|
+
required: !!e.required,
|
|
111
|
+
type: e.type,
|
|
112
|
+
name: e.name,
|
|
113
|
+
class: "hidden",
|
|
114
|
+
readonly: !!e.readonly,
|
|
115
|
+
disabled: !!e.readonly,
|
|
116
|
+
value: e.type === "radio" ? e.val : e.modelValue,
|
|
117
|
+
checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue,
|
|
118
|
+
onChange: s[0] || (s[0] = (m) => c())
|
|
119
|
+
}), null, 16, W),
|
|
120
|
+
d("div", {
|
|
121
|
+
class: h([
|
|
122
|
+
"fresh-booking-click-box",
|
|
123
|
+
{ checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue }
|
|
124
|
+
]),
|
|
125
|
+
tabindex: "0",
|
|
126
|
+
style: T(e.inputStyle),
|
|
127
|
+
"data-test": e.name,
|
|
128
|
+
onKeyup: s[1] || (s[1] = w((m) => c(), ["enter"]))
|
|
129
|
+
}, null, 46, z),
|
|
130
|
+
e.label ? (p(), b("div", {
|
|
131
|
+
key: 0,
|
|
132
|
+
class: h(["fresh-booking-click-box-label", { "with-price": e.price }])
|
|
133
|
+
}, [
|
|
134
|
+
d("span", null, u(e.label), 1),
|
|
135
|
+
e.price ? (p(), b("span", H, u(e.price), 1)) : P("", !0)
|
|
136
|
+
], 2)) : P("", !0)
|
|
137
|
+
], 2)
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}, 8, ["required", "type", "readonly"]));
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
const ee = /* @__PURE__ */ v(K, [["__scopeId", "data-v-7ef656cb"]]), M = { href: "https://policies.google.com/privacy" }, R = { href: "https://policies.google.com/terms" }, Q = /* @__PURE__ */ g({
|
|
144
|
+
__name: "GoogleNotice",
|
|
145
|
+
setup(a) {
|
|
146
|
+
const { t: l } = N();
|
|
147
|
+
return (t, n) => (p(), b("span", null, [
|
|
148
|
+
f(u(i(l)("googleNotice")) + " ", 1),
|
|
149
|
+
d("a", M, u(i(l)("googlePrivacyPolicy")), 1),
|
|
150
|
+
f(" " + u(i(l)("googleAnd")) + " ", 1),
|
|
151
|
+
d("a", R, u(i(l)("googleTOS")), 1),
|
|
152
|
+
f(" " + u(i(l)("googleApply")) + ". ", 1)
|
|
153
|
+
]));
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
function q(a) {
|
|
157
|
+
const l = a;
|
|
158
|
+
l.__i18n = l.__i18n || [], l.__i18n.push({
|
|
159
|
+
locale: "",
|
|
160
|
+
resource: {
|
|
161
|
+
da: {
|
|
162
|
+
googleNotice: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Denne side er beskyttet af reCAPTCHA og Google's" } },
|
|
163
|
+
googlePrivacyPolicy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Privatlivspolitik" } },
|
|
164
|
+
googleAnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "og" } },
|
|
165
|
+
googleTOS: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Servicevilkår" } },
|
|
166
|
+
googleApply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "er gældende" } }
|
|
167
|
+
},
|
|
168
|
+
en: {
|
|
169
|
+
googleNotice: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "This site is protected by reCAPTCHA and the Google" } },
|
|
170
|
+
googlePrivacyPolicy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Privacy Policy" } },
|
|
171
|
+
googleAnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "and" } },
|
|
172
|
+
googleTOS: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Terms of Service" } },
|
|
173
|
+
googleApply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "apply" } }
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
typeof q == "function" && q(Q);
|
|
179
|
+
const J = (a) => (D("data-v-340cb9ce"), a = a(), E(), a), L = /* @__PURE__ */ J(() => /* @__PURE__ */ d("div", { id: "fresh-booking-payment-checkout" }, null, -1)), X = [
|
|
180
|
+
L
|
|
181
|
+
], Y = /* @__PURE__ */ g({
|
|
182
|
+
__name: "CheckoutWindow",
|
|
183
|
+
setup(a) {
|
|
184
|
+
const { paymentGatewayId: l } = F(G());
|
|
185
|
+
return S(() => {
|
|
186
|
+
const t = document.createElement("script"), n = document.createElement("script");
|
|
187
|
+
t.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), n.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(t), document.head.appendChild(n);
|
|
188
|
+
}), (t, n) => (p(), b("div", null, [
|
|
189
|
+
d("div", {
|
|
190
|
+
id: "fresh-booking-payment-checkout-wrapper",
|
|
191
|
+
class: h({ reePay: i(l) === i(j).ReePay })
|
|
192
|
+
}, X, 2)
|
|
193
|
+
]));
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
const oe = /* @__PURE__ */ v(Y, [["__scopeId", "data-v-340cb9ce"]]);
|
|
197
|
+
export {
|
|
198
|
+
ee as C,
|
|
199
|
+
x as P,
|
|
200
|
+
Q as _,
|
|
201
|
+
oe as a
|
|
202
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-88de73f4.cjs"),m={class:"fresh-booking-phone-input"},f=e.defineComponent({__name:"PhoneField",props:{modelValue:{},label:{},id:{},placeholder:{},icon:{default:"phone-office"},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputStyle:{}},emits:["update:modelValue"],setup(a,{emit:l}){const n=l,i=a,s=i.id||e.ranId(),o=e.ref("+45"),d=e.ref("");function p(){n("update:modelValue",`${o.value} ${d.value}`)}return e.onMounted(()=>{if(i.modelValue){const t=i.modelValue.split(" ");o.value=t[0],d.value=t[1]}}),(t,r)=>(e.openBlock(),e.createBlock(e.InputField,{label:t.label,id:e.unref(s),type:"phone",required:t.required,readonly:t.readonly},{default:e.withCtx(()=>[e.createBaseVNode("div",m,[e.createVNode(e.TextField,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=u=>o.value=u),type:"text",id:e.unref(e.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:t.icon,"icon-color":t.iconColor,"icon-type":t.iconType,placeholder:"+45",required:t.required,readonly:t.readonly,"input-style":t.inputStyle,onInput:r[1]||(r[1]=u=>p())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),e.createVNode(e.TextField,{modelValue:d.value,"onUpdate:modelValue":r[2]||(r[2]=u=>d.value=u),type:"number",name:"phone",autocomplete:"tel-national",id:e.unref(s),placeholder:t.placeholder,required:t.required,readonly:t.readonly,"input-style":t.inputStyle,onInput:r[3]||(r[3]=u=>p())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}});const h=e._export_sfc(f,[["__scopeId","data-v-5cd094ab"]]),g=["required","type","name","readonly","disabled","value","checked"],b=["data-test"],v={key:0},k=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:[String,Boolean,Number]},numeric:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},label:{},price:{},name:{},readonly:{type:Boolean,default:!1},type:{default:"checkbox"},required:{type:Boolean,default:!1},inputStyle:{},val:{}},emits:["update:modelValue"],setup(a,{emit:l}){const n=a,i=l;function s(){n.readonly!==!0&&i("update:modelValue",n.type==="radio"?n.val:n.numeric?n.modelValue?0:1:!n.modelValue)}return(o,d)=>(e.openBlock(),e.createBlock(e.InputField,{required:o.required,type:o.type,readonly:o.readonly},{default:e.withCtx(()=>[e.createBaseVNode("label",{class:e.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":o.readonly},{"has-label":o.label},o.type==="radio"?"radio":"checkbox"])},[e.createBaseVNode("input",e.mergeProps(o.$attrs,{required:!!o.required,type:o.type,name:o.name,class:"hidden",readonly:!!o.readonly,disabled:!!o.readonly,value:o.type==="radio"?o.val:o.modelValue,checked:o.type==="radio"?o.val===o.modelValue:!!o.modelValue,onChange:d[0]||(d[0]=p=>s())}),null,16,g),e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-click-box",{checked:o.type==="radio"?o.val===o.modelValue:!!o.modelValue}]),tabindex:"0",style:e.normalizeStyle(o.inputStyle),"data-test":o.name,onKeyup:d[1]||(d[1]=e.withKeys(p=>s(),["enter"]))},null,46,b),o.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["fresh-booking-click-box-label",{"with-price":o.price}])},[e.createBaseVNode("span",null,e.toDisplayString(o.label),1),o.price?(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(o.price),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}});const _=e._export_sfc(k,[["__scopeId","data-v-7ef656cb"]]),V={href:"https://policies.google.com/privacy"},C={href:"https://policies.google.com/terms"},y=e.defineComponent({__name:"GoogleNotice",setup(a){const{t:l}=e.useI18n();return(n,i)=>(e.openBlock(),e.createElementBlock("span",null,[e.createTextVNode(e.toDisplayString(e.unref(l)("googleNotice"))+" ",1),e.createBaseVNode("a",V,e.toDisplayString(e.unref(l)("googlePrivacyPolicy")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("googleAnd"))+" ",1),e.createBaseVNode("a",C,e.toDisplayString(e.unref(l)("googleTOS")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("googleApply"))+". ",1)]))}});function c(a){const l=a;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{da:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"Denne side er beskyttet af reCAPTCHA og Google's"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privatlivspolitik"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"og"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Servicevilkår"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"er gældende"}}},en:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"This site is protected by reCAPTCHA and the Google"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privacy Policy"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"and"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Terms of Service"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"apply"}}}}})}typeof c=="function"&&c(y);const B=a=>(e.pushScopeId("data-v-340cb9ce"),a=a(),e.popScopeId(),a),S=B(()=>e.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),N=[S],P=e.defineComponent({__name:"CheckoutWindow",setup(a){const{paymentGatewayId:l}=e.storeToRefs(e.useUtilityStore());return e.onMounted(()=>{const n=document.createElement("script"),i=document.createElement("script");n.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),i.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(n),document.head.appendChild(i)}),(n,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:e.normalizeClass({reePay:e.unref(l)===e.unref(e.PaymentGateway).ReePay})},N,2)]))}});const q=e._export_sfc(P,[["__scopeId","data-v-340cb9ce"]]);exports.Checkbox=_;exports.CheckoutWindow=q;exports.PhoneField=h;exports._sfc_main=y;
|