@konnectio/core 4.0.25 → 4.0.26

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-7b136f91.cjs → ActionField-341a2fae.cjs} +1 -1
  2. package/dist/{ActionField-c9cef523.js → ActionField-e518ac9a.js} +2 -2
  3. package/dist/ActionField-e518ac9a.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-acc847fd.cjs → AvailabilitySkeleton-29c1edbb.cjs} +1 -1
  5. package/dist/{AvailabilitySkeleton-aa3bf6f1.js → AvailabilitySkeleton-52c00b2c.js} +5 -5
  6. package/dist/AvailabilitySkeleton-52c00b2c.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-0ac2a746.js → DateField.vue_vue_type_style_index_0_lang-7e9bf5a9.js} +2485 -2485
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-7e9bf5a9.js.br +0 -0
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-e3a9747e.cjs +5 -0
  10. package/dist/{Field-3cca7a7b.js → Field-a02a9614.js} +2 -2
  11. package/dist/Field-a02a9614.js.br +0 -0
  12. package/dist/{Field-5b40d0b6.cjs → Field-a3929646.cjs} +1 -1
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-659bf8ca.cjs → NumberField.vue_vue_type_script_setup_true_lang-0c2b2bf3.cjs} +1 -1
  14. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js → NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js} +2 -2
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js.br +0 -0
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-e150d886.js → SelectField.vue_vue_type_style_index_0_lang-b6764902.js} +14 -15
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-b6764902.js.br +0 -0
  18. package/dist/{SelectField.vue_vue_type_style_index_0_lang-cd37504c.cjs → SelectField.vue_vue_type_style_index_0_lang-cef08480.cjs} +10 -10
  19. package/dist/{ThankYou-eda0a413.cjs → ThankYou-0777df9a.cjs} +6 -6
  20. package/dist/{ThankYou-39341d0e.js → ThankYou-35cb92aa.js} +39 -36
  21. package/dist/ThankYou-35cb92aa.js.br +0 -0
  22. package/dist/{_-c8a00c38.js → _-6878c22f.js} +1 -1
  23. package/dist/_-6878c22f.js.br +0 -0
  24. package/dist/{_-b2f2bbb6.cjs → _-e84d1f5c.cjs} +1 -1
  25. package/dist/availability.cjs +1 -1
  26. package/dist/availability.js +7 -7
  27. package/dist/availability.js.br +0 -0
  28. package/dist/components/Gallery.vue.d.ts +4 -0
  29. package/dist/components/Gallery.vue.d.ts.map +1 -0
  30. package/dist/components/inputs/InputField.vue.d.ts +1 -1
  31. package/dist/components/listings/Hotel.vue.d.ts +1 -1
  32. package/dist/components/modals/Info.vue.d.ts +1 -1
  33. package/dist/{event-5ba52771.cjs → event-6a63c75b.cjs} +1 -1
  34. package/dist/{event-ee196721.js → event-9e559956.js} +9 -9
  35. package/dist/event-9e559956.js.br +0 -0
  36. package/dist/event.cjs +1 -1
  37. package/dist/event.js +8 -8
  38. package/dist/event.js.br +0 -0
  39. package/dist/gift-card-validation.cjs +1 -1
  40. package/dist/gift-card-validation.js +3 -3
  41. package/dist/gift-card-validation.js.br +0 -0
  42. package/dist/gift-card.cjs +1 -1
  43. package/dist/gift-card.js +5 -5
  44. package/dist/gift-card.js.br +0 -0
  45. package/dist/hotel.cjs +5 -5
  46. package/dist/hotel.js +1583 -1566
  47. package/dist/hotel.js.br +0 -0
  48. package/dist/{index-6ac9ac7c.js → index-96ff0142.js} +1 -1
  49. package/dist/index-96ff0142.js.br +0 -0
  50. package/dist/{index-69b5b9a3.cjs → index-af967975.cjs} +1 -1
  51. package/dist/polyfill.cjs +1 -1
  52. package/dist/polyfill.js +1 -1
  53. package/dist/polyfill.js.br +0 -0
  54. package/dist/store/event.d.ts +1 -1
  55. package/dist/store/hotel.d.ts +100 -94
  56. package/dist/store/utilities.d.ts +93 -93
  57. package/dist/style.css +1 -1
  58. package/dist/style.css.br +0 -0
  59. package/dist/types/index.d.ts +35 -0
  60. package/package.json +1 -1
  61. package/dist/ActionField-c9cef523.js.br +0 -0
  62. package/dist/AvailabilitySkeleton-aa3bf6f1.js.br +0 -0
  63. package/dist/DateField.vue_vue_type_style_index_0_lang-0ac2a746.js.br +0 -0
  64. package/dist/DateField.vue_vue_type_style_index_0_lang-c9bd7be5.cjs +0 -5
  65. package/dist/Field-3cca7a7b.js.br +0 -0
  66. package/dist/NumberField.vue_vue_type_script_setup_true_lang-30fd5382.js.br +0 -0
  67. package/dist/SelectField.vue_vue_type_style_index_0_lang-e150d886.js.br +0 -0
  68. package/dist/ThankYou-39341d0e.js.br +0 -0
  69. package/dist/_-c8a00c38.js.br +0 -0
  70. package/dist/event-ee196721.js.br +0 -0
  71. package/dist/index-6ac9ac7c.js.br +0 -0
package/dist/hotel.js.br CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- import { h as defineComponent, j as ranId, r as ref, o as onMounted, k as openBlock, l as createBlock, w as withCtx, x as createBaseVNode, m as createVNode, n as unref, T as TextField, I as InputField, _ as _export_sfc, ai as mergeProps, v as normalizeClass, aj as normalizeStyle, ak as withKeys, q as createElementBlock, A as toDisplayString, t as createCommentVNode, z as useI18n, a5 as createTextVNode, s as storeToRefs, a as useUtilityStore, R as PaymentGateway, L as pushScopeId, M as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-e150d886.js";
1
+ import { h as defineComponent, j as ranId, r as ref, o as onMounted, k as openBlock, l as createBlock, w as withCtx, x as createBaseVNode, m as createVNode, n as unref, T as TextField, I as InputField, _ as _export_sfc, ai as mergeProps, v as normalizeClass, aj as normalizeStyle, ak as withKeys, q as createElementBlock, A as toDisplayString, t as createCommentVNode, z as useI18n, a5 as createTextVNode, s as storeToRefs, a as useUtilityStore, R as PaymentGateway, L as pushScopeId, M as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-b6764902.js";
2
2
  const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
3
3
  __name: "PhoneField",
4
4
  props: {
Binary file
@@ -1 +1 @@
1
- "use strict";const SelectField_vue_vue_type_style_index_0_lang=require("./SelectField.vue_vue_type_style_index_0_lang-cd37504c.cjs"),_hoisted_1$3={class:"fresh-booking-phone-input"},_sfc_main$3=SelectField_vue_vue_type_style_index_0_lang.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(e,{emit:i}){const l=i,t=e,s=t.id||SelectField_vue_vue_type_style_index_0_lang.ranId(),n=SelectField_vue_vue_type_style_index_0_lang.ref("+45"),d=SelectField_vue_vue_type_style_index_0_lang.ref("");function p(){l("update:modelValue",`${n.value} ${d.value}`)}return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{if(t.modelValue){const _=t.modelValue.split(" ");n.value=_[0],d.value=_[1]}}),(_,u)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{label:_.label,id:SelectField_vue_vue_type_style_index_0_lang.unref(s),type:"phone",required:_.required,readonly:_.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",_hoisted_1$3,[SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=r=>n.value=r),type:"text",id:SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:_.icon,"icon-color":_.iconColor,"icon-type":_.iconType,placeholder:"+45",required:_.required,readonly:_.readonly,"input-style":_.inputStyle,onInput:u[1]||(u[1]=r=>p())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:d.value,"onUpdate:modelValue":u[2]||(u[2]=r=>d.value=r),type:"number",name:"phone",autocomplete:"tel-national",id:SelectField_vue_vue_type_style_index_0_lang.unref(s),placeholder:_.placeholder,required:_.required,readonly:_.readonly,"input-style":_.inputStyle,onInput:u[3]||(u[3]=r=>p())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}}),PhoneField_vue_vue_type_style_index_0_scoped_5cd094ab_lang="",PhoneField=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$3,[["__scopeId","data-v-5cd094ab"]]),_hoisted_1$2=["required","type","name","readonly","disabled","value","checked"],_hoisted_2$2=["data-test"],_hoisted_3={key:0},_sfc_main$2=SelectField_vue_vue_type_style_index_0_lang.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(e,{emit:i}){const l=e,t=i;function s(){l.readonly!==!0&&t("update:modelValue",l.type==="radio"?l.val:l.numeric?l.modelValue?0:1:!l.modelValue)}return(n,d)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{required:n.required,type:n.type,readonly:n.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("label",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":n.readonly},{"has-label":n.label},n.type==="radio"?"radio":"checkbox"])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("input",SelectField_vue_vue_type_style_index_0_lang.mergeProps(n.$attrs,{required:!!n.required,type:n.type,name:n.name,class:"hidden",readonly:!!n.readonly,disabled:!!n.readonly,value:n.type==="radio"?n.val:n.modelValue,checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue,onChange:d[0]||(d[0]=p=>s())}),null,16,_hoisted_1$2),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box",{checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue}]),tabindex:"0",style:SelectField_vue_vue_type_style_index_0_lang.normalizeStyle(n.inputStyle),"data-test":n.name,onKeyup:d[1]||(d[1]=SelectField_vue_vue_type_style_index_0_lang.withKeys(p=>s(),["enter"]))},null,46,_hoisted_2$2),n.label?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",{key:0,class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-label",{"with-price":n.price}])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("span",null,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.label),1),n.price?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",_hoisted_3,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.price),1)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}}),Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang="",Checkbox=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$2,[["__scopeId","data-v-7ef656cb"]]),_hoisted_1$1={href:"https://policies.google.com/privacy"},_hoisted_2$1={href:"https://policies.google.com/terms"},_sfc_main$1=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"GoogleNotice",setup(e){const{t:i}=SelectField_vue_vue_type_style_index_0_lang.useI18n();return(l,t)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",null,[SelectField_vue_vue_type_style_index_0_lang.createTextVNode(SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(i)("googleNotice"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_1$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(i)("googlePrivacyPolicy")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(i)("googleAnd"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_2$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(i)("googleTOS")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(i)("googleApply"))+". ",1)]))}});function block0(e){const i=e;i.__i18n=i.__i18n||[],i.__i18n.push({locale:"",resource:{da:{googleNotice:l=>{const{normalize:t}=l;return t(["Denne side er beskyttet af reCAPTCHA og Google's"])},googlePrivacyPolicy:l=>{const{normalize:t}=l;return t(["Privatlivspolitik"])},googleAnd:l=>{const{normalize:t}=l;return t(["og"])},googleTOS:l=>{const{normalize:t}=l;return t(["Servicevilkår"])},googleApply:l=>{const{normalize:t}=l;return t(["er gældende"])}},en:{googleNotice:l=>{const{normalize:t}=l;return t(["This site is protected by reCAPTCHA and the Google"])},googlePrivacyPolicy:l=>{const{normalize:t}=l;return t(["Privacy Policy"])},googleAnd:l=>{const{normalize:t}=l;return t(["and"])},googleTOS:l=>{const{normalize:t}=l;return t(["Terms of Service"])},googleApply:l=>{const{normalize:t}=l;return t(["apply"])}}}})}typeof block0=="function"&&block0(_sfc_main$1);const _withScopeId=e=>(SelectField_vue_vue_type_style_index_0_lang.pushScopeId("data-v-340cb9ce"),e=e(),SelectField_vue_vue_type_style_index_0_lang.popScopeId(),e),_hoisted_1=_withScopeId(()=>SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),_hoisted_2=[_hoisted_1],_sfc_main=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"CheckoutWindow",setup(e){const{paymentGatewayId:i}=SelectField_vue_vue_type_style_index_0_lang.storeToRefs(SelectField_vue_vue_type_style_index_0_lang.useUtilityStore());return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{const l=document.createElement("script"),t=document.createElement("script");l.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),t.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(l),document.head.appendChild(t)}),(l,t)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",null,[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass({reePay:SelectField_vue_vue_type_style_index_0_lang.unref(i)===SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.PaymentGateway).ReePay})},_hoisted_2,2)]))}}),CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang="",CheckoutWindow=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main,[["__scopeId","data-v-340cb9ce"]]);var a=Object.defineProperty,c=(e,i,l)=>i in e?a(e,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[i]=l,o=(e,i,l)=>(c(e,typeof i!="symbol"?i+"":i,l),l);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,i={},l={})=>{for(let t in i)e.style[t]=i[t];for(let t in l)l[t]&&!e.classList.contains(t)?e.classList.add(t):!l[t]&&e.classList.contains(t)&&e.classList.remove(t)};class Sticky{constructor(e,i){o(this,"el"),o(this,"vm"),o(this,"unSubscribers"),o(this,"isPending"),o(this,"state"),o(this,"lastState"),o(this,"options"),o(this,"placeholderEl"),o(this,"containerEl"),this.el=e,this.vm=i,this.unSubscribers=[],this.isPending=!1,this.state={isTopSticky:null,isBottomSticky:null,height:null,width:null,xOffset:null},this.lastState={top:null,bottom:null,sticked:!1};const l=this.getAttribute("sticky-offset")||{},t=this.getAttribute("sticky-side")||"top",s=this.getAttribute("sticky-z-index")||"10",n=this.getAttribute("on-stick")||null;this.options={topOffset:Number(l.top)||0,bottomOffset:Number(l.bottom)||0,shouldTopSticky:t==="top"||t==="both",shouldBottomSticky:t==="bottom"||t==="both",zIndex:s,onStick:n}}doBind(){if(this.unSubscribers.length>0)return;const{el:e,vm:i}=this;i.$nextTick(()=>{this.placeholderEl=document.createElement("div"),this.containerEl=this.getContainerEl(),e.parentElement.insertBefore(this.placeholderEl,e),events.forEach(l=>{const t=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(l,t)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(l,t)),window.addEventListener(l,t,{passive:!0}),this.containerEl.addEventListener(l,t,{passive:!0})})})}doUnbind(){this.unSubscribers.forEach(e=>e()),this.unSubscribers=[],this.resetElement()}update(){this.isPending||(requestAnimationFrame(()=>{this.isPending=!1,this.recomputeState(),this.updateElements()}),this.isPending=!0)}isTopSticky(){if(!this.options.shouldTopSticky)return!1;const e=this.state.placeholderElRect.top,i=this.state.containerElRect.bottom,l=this.options.topOffset,t=this.options.bottomOffset;return e<=l&&i>=t}isBottomSticky(){if(!this.options.shouldBottomSticky)return!1;const e=window.innerHeight-this.state.placeholderElRect.top-this.state.height,i=window.innerHeight-this.state.containerElRect.top,l=this.options.topOffset,t=this.options.bottomOffset;return e<=t&&i>=l}recomputeState(){this.state=Object.assign({},this.state,{height:this.getHeight(),width:this.getWidth(),xOffset:this.getXOffset(),placeholderElRect:this.getPlaceholderElRect(),containerElRect:this.getContainerElRect()}),this.state.isTopSticky=this.isTopSticky(),this.state.isBottomSticky=this.isBottomSticky()}fireEvents(){typeof this.options.onStick=="function"&&(this.lastState.top!==this.state.isTopSticky||this.lastState.bottom!==this.state.isBottomSticky||this.lastState.sticked!==(this.state.isTopSticky||this.state.isBottomSticky))&&(this.lastState={top:this.state.isTopSticky,bottom:this.state.isBottomSticky,sticked:this.state.isBottomSticky||this.state.isTopSticky},this.options.onStick(this.lastState))}updateElements(){const e={paddingTop:0},i={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:this.options.zIndex},l={"vue-sticky-placeholder":!0},t={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){i.position="fixed",i.top=this.options.topOffset+"px",i.left=this.state.xOffset+"px",i.width=this.state.width+"px";const s=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;s<0&&(i.top=s+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",t["top-sticky"]=!0}else if(this.state.isBottomSticky){i.position="fixed",i.bottom=this.options.bottomOffset+"px",i.left=this.state.xOffset+"px",i.width=this.state.width+"px";const s=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;s<0&&(i.bottom=s+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",t["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,i,t),batchStyle(this.placeholderEl,e,l),this.fireEvents()}resetElement(){["position","top","bottom","left","width","zIndex"].forEach(i=>{this.el.style.removeProperty(i)}),this.el.classList.remove("bottom-sticky","top-sticky");const{parentElement:e}=this.placeholderEl;e&&e.removeChild(this.placeholderEl)}getContainerEl(){let e=this.el.parentElement;for(;e&&e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1;){if(e.hasAttribute("sticky-container"))return e;e=e.parentElement}return this.el.parentElement}getXOffset(){return this.placeholderEl.getBoundingClientRect().left}getWidth(){return this.placeholderEl.getBoundingClientRect().width}getHeight(){return this.el.getBoundingClientRect().height}getPlaceholderElRect(){return this.placeholderEl.getBoundingClientRect()}getContainerElRect(){return this.containerEl.getBoundingClientRect()}getAttribute(name){const expr=this.el.getAttribute(name);let result;if(expr)if(this.vm[expr])result=this.vm[expr];else try{result=eval(`(${expr})`)}catch(e){result=expr}return result}}const Sticky$1={mounted(e,i){(typeof i.value>"u"||i.value)&&(e[namespace]=new Sticky(e,i.instance),e[namespace].doBind())},unmounted(e){e[namespace]&&(e[namespace].doUnbind(),e[namespace]=void 0)},updated(e,i){typeof i.value>"u"||i.value?(e[namespace]||(e[namespace]=new Sticky(e,i.instance)),e[namespace].doBind()):e[namespace]&&e[namespace].doUnbind()}},StickyPlugin={install(e){e.directive("Sticky",Sticky$1)}};exports.Checkbox=Checkbox;exports.CheckoutWindow=CheckoutWindow;exports.PhoneField=PhoneField;exports.StickyPlugin=StickyPlugin;exports._sfc_main=_sfc_main$1;
1
+ "use strict";const SelectField_vue_vue_type_style_index_0_lang=require("./SelectField.vue_vue_type_style_index_0_lang-cef08480.cjs"),_hoisted_1$3={class:"fresh-booking-phone-input"},_sfc_main$3=SelectField_vue_vue_type_style_index_0_lang.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(e,{emit:i}){const l=i,t=e,s=t.id||SelectField_vue_vue_type_style_index_0_lang.ranId(),n=SelectField_vue_vue_type_style_index_0_lang.ref("+45"),d=SelectField_vue_vue_type_style_index_0_lang.ref("");function p(){l("update:modelValue",`${n.value} ${d.value}`)}return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{if(t.modelValue){const _=t.modelValue.split(" ");n.value=_[0],d.value=_[1]}}),(_,u)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{label:_.label,id:SelectField_vue_vue_type_style_index_0_lang.unref(s),type:"phone",required:_.required,readonly:_.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",_hoisted_1$3,[SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=r=>n.value=r),type:"text",id:SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:_.icon,"icon-color":_.iconColor,"icon-type":_.iconType,placeholder:"+45",required:_.required,readonly:_.readonly,"input-style":_.inputStyle,onInput:u[1]||(u[1]=r=>p())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),SelectField_vue_vue_type_style_index_0_lang.createVNode(SelectField_vue_vue_type_style_index_0_lang.TextField,{modelValue:d.value,"onUpdate:modelValue":u[2]||(u[2]=r=>d.value=r),type:"number",name:"phone",autocomplete:"tel-national",id:SelectField_vue_vue_type_style_index_0_lang.unref(s),placeholder:_.placeholder,required:_.required,readonly:_.readonly,"input-style":_.inputStyle,onInput:u[3]||(u[3]=r=>p())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}}),PhoneField_vue_vue_type_style_index_0_scoped_5cd094ab_lang="",PhoneField=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$3,[["__scopeId","data-v-5cd094ab"]]),_hoisted_1$2=["required","type","name","readonly","disabled","value","checked"],_hoisted_2$2=["data-test"],_hoisted_3={key:0},_sfc_main$2=SelectField_vue_vue_type_style_index_0_lang.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(e,{emit:i}){const l=e,t=i;function s(){l.readonly!==!0&&t("update:modelValue",l.type==="radio"?l.val:l.numeric?l.modelValue?0:1:!l.modelValue)}return(n,d)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createBlock(SelectField_vue_vue_type_style_index_0_lang.InputField,{required:n.required,type:n.type,readonly:n.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("label",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":n.readonly},{"has-label":n.label},n.type==="radio"?"radio":"checkbox"])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("input",SelectField_vue_vue_type_style_index_0_lang.mergeProps(n.$attrs,{required:!!n.required,type:n.type,name:n.name,class:"hidden",readonly:!!n.readonly,disabled:!!n.readonly,value:n.type==="radio"?n.val:n.modelValue,checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue,onChange:d[0]||(d[0]=p=>s())}),null,16,_hoisted_1$2),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box",{checked:n.type==="radio"?n.val===n.modelValue:!!n.modelValue}]),tabindex:"0",style:SelectField_vue_vue_type_style_index_0_lang.normalizeStyle(n.inputStyle),"data-test":n.name,onKeyup:d[1]||(d[1]=SelectField_vue_vue_type_style_index_0_lang.withKeys(p=>s(),["enter"]))},null,46,_hoisted_2$2),n.label?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",{key:0,class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass(["fresh-booking-click-box-label",{"with-price":n.price}])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("span",null,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.label),1),n.price?(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",_hoisted_3,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(n.price),1)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)):SelectField_vue_vue_type_style_index_0_lang.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}}),Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang="",Checkbox=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main$2,[["__scopeId","data-v-7ef656cb"]]),_hoisted_1$1={href:"https://policies.google.com/privacy"},_hoisted_2$1={href:"https://policies.google.com/terms"},_sfc_main$1=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"GoogleNotice",setup(e){const{t:i}=SelectField_vue_vue_type_style_index_0_lang.useI18n();return(l,t)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("span",null,[SelectField_vue_vue_type_style_index_0_lang.createTextVNode(SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(i)("googleNotice"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_1$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(i)("googlePrivacyPolicy")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(i)("googleAnd"))+" ",1),SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("a",_hoisted_2$1,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(i)("googleTOS")),1),SelectField_vue_vue_type_style_index_0_lang.createTextVNode(" "+SelectField_vue_vue_type_style_index_0_lang.toDisplayString(SelectField_vue_vue_type_style_index_0_lang.unref(i)("googleApply"))+". ",1)]))}});function block0(e){const i=e;i.__i18n=i.__i18n||[],i.__i18n.push({locale:"",resource:{da:{googleNotice:l=>{const{normalize:t}=l;return t(["Denne side er beskyttet af reCAPTCHA og Google's"])},googlePrivacyPolicy:l=>{const{normalize:t}=l;return t(["Privatlivspolitik"])},googleAnd:l=>{const{normalize:t}=l;return t(["og"])},googleTOS:l=>{const{normalize:t}=l;return t(["Servicevilkår"])},googleApply:l=>{const{normalize:t}=l;return t(["er gældende"])}},en:{googleNotice:l=>{const{normalize:t}=l;return t(["This site is protected by reCAPTCHA and the Google"])},googlePrivacyPolicy:l=>{const{normalize:t}=l;return t(["Privacy Policy"])},googleAnd:l=>{const{normalize:t}=l;return t(["and"])},googleTOS:l=>{const{normalize:t}=l;return t(["Terms of Service"])},googleApply:l=>{const{normalize:t}=l;return t(["apply"])}}}})}typeof block0=="function"&&block0(_sfc_main$1);const _withScopeId=e=>(SelectField_vue_vue_type_style_index_0_lang.pushScopeId("data-v-340cb9ce"),e=e(),SelectField_vue_vue_type_style_index_0_lang.popScopeId(),e),_hoisted_1=_withScopeId(()=>SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),_hoisted_2=[_hoisted_1],_sfc_main=SelectField_vue_vue_type_style_index_0_lang.defineComponent({__name:"CheckoutWindow",setup(e){const{paymentGatewayId:i}=SelectField_vue_vue_type_style_index_0_lang.storeToRefs(SelectField_vue_vue_type_style_index_0_lang.useUtilityStore());return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{const l=document.createElement("script"),t=document.createElement("script");l.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),t.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(l),document.head.appendChild(t)}),(l,t)=>(SelectField_vue_vue_type_style_index_0_lang.openBlock(),SelectField_vue_vue_type_style_index_0_lang.createElementBlock("div",null,[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:SelectField_vue_vue_type_style_index_0_lang.normalizeClass({reePay:SelectField_vue_vue_type_style_index_0_lang.unref(i)===SelectField_vue_vue_type_style_index_0_lang.unref(SelectField_vue_vue_type_style_index_0_lang.PaymentGateway).ReePay})},_hoisted_2,2)]))}}),CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang="",CheckoutWindow=SelectField_vue_vue_type_style_index_0_lang._export_sfc(_sfc_main,[["__scopeId","data-v-340cb9ce"]]);var a=Object.defineProperty,c=(e,i,l)=>i in e?a(e,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[i]=l,o=(e,i,l)=>(c(e,typeof i!="symbol"?i+"":i,l),l);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,i={},l={})=>{for(let t in i)e.style[t]=i[t];for(let t in l)l[t]&&!e.classList.contains(t)?e.classList.add(t):!l[t]&&e.classList.contains(t)&&e.classList.remove(t)};class Sticky{constructor(e,i){o(this,"el"),o(this,"vm"),o(this,"unSubscribers"),o(this,"isPending"),o(this,"state"),o(this,"lastState"),o(this,"options"),o(this,"placeholderEl"),o(this,"containerEl"),this.el=e,this.vm=i,this.unSubscribers=[],this.isPending=!1,this.state={isTopSticky:null,isBottomSticky:null,height:null,width:null,xOffset:null},this.lastState={top:null,bottom:null,sticked:!1};const l=this.getAttribute("sticky-offset")||{},t=this.getAttribute("sticky-side")||"top",s=this.getAttribute("sticky-z-index")||"10",n=this.getAttribute("on-stick")||null;this.options={topOffset:Number(l.top)||0,bottomOffset:Number(l.bottom)||0,shouldTopSticky:t==="top"||t==="both",shouldBottomSticky:t==="bottom"||t==="both",zIndex:s,onStick:n}}doBind(){if(this.unSubscribers.length>0)return;const{el:e,vm:i}=this;i.$nextTick(()=>{this.placeholderEl=document.createElement("div"),this.containerEl=this.getContainerEl(),e.parentElement.insertBefore(this.placeholderEl,e),events.forEach(l=>{const t=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(l,t)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(l,t)),window.addEventListener(l,t,{passive:!0}),this.containerEl.addEventListener(l,t,{passive:!0})})})}doUnbind(){this.unSubscribers.forEach(e=>e()),this.unSubscribers=[],this.resetElement()}update(){this.isPending||(requestAnimationFrame(()=>{this.isPending=!1,this.recomputeState(),this.updateElements()}),this.isPending=!0)}isTopSticky(){if(!this.options.shouldTopSticky)return!1;const e=this.state.placeholderElRect.top,i=this.state.containerElRect.bottom,l=this.options.topOffset,t=this.options.bottomOffset;return e<=l&&i>=t}isBottomSticky(){if(!this.options.shouldBottomSticky)return!1;const e=window.innerHeight-this.state.placeholderElRect.top-this.state.height,i=window.innerHeight-this.state.containerElRect.top,l=this.options.topOffset,t=this.options.bottomOffset;return e<=t&&i>=l}recomputeState(){this.state=Object.assign({},this.state,{height:this.getHeight(),width:this.getWidth(),xOffset:this.getXOffset(),placeholderElRect:this.getPlaceholderElRect(),containerElRect:this.getContainerElRect()}),this.state.isTopSticky=this.isTopSticky(),this.state.isBottomSticky=this.isBottomSticky()}fireEvents(){typeof this.options.onStick=="function"&&(this.lastState.top!==this.state.isTopSticky||this.lastState.bottom!==this.state.isBottomSticky||this.lastState.sticked!==(this.state.isTopSticky||this.state.isBottomSticky))&&(this.lastState={top:this.state.isTopSticky,bottom:this.state.isBottomSticky,sticked:this.state.isBottomSticky||this.state.isTopSticky},this.options.onStick(this.lastState))}updateElements(){const e={paddingTop:0},i={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:this.options.zIndex},l={"vue-sticky-placeholder":!0},t={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){i.position="fixed",i.top=this.options.topOffset+"px",i.left=this.state.xOffset+"px",i.width=this.state.width+"px";const s=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;s<0&&(i.top=s+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",t["top-sticky"]=!0}else if(this.state.isBottomSticky){i.position="fixed",i.bottom=this.options.bottomOffset+"px",i.left=this.state.xOffset+"px",i.width=this.state.width+"px";const s=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;s<0&&(i.bottom=s+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",t["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,i,t),batchStyle(this.placeholderEl,e,l),this.fireEvents()}resetElement(){["position","top","bottom","left","width","zIndex"].forEach(i=>{this.el.style.removeProperty(i)}),this.el.classList.remove("bottom-sticky","top-sticky");const{parentElement:e}=this.placeholderEl;e&&e.removeChild(this.placeholderEl)}getContainerEl(){let e=this.el.parentElement;for(;e&&e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1;){if(e.hasAttribute("sticky-container"))return e;e=e.parentElement}return this.el.parentElement}getXOffset(){return this.placeholderEl.getBoundingClientRect().left}getWidth(){return this.placeholderEl.getBoundingClientRect().width}getHeight(){return this.el.getBoundingClientRect().height}getPlaceholderElRect(){return this.placeholderEl.getBoundingClientRect()}getContainerElRect(){return this.containerEl.getBoundingClientRect()}getAttribute(name){const expr=this.el.getAttribute(name);let result;if(expr)if(this.vm[expr])result=this.vm[expr];else try{result=eval(`(${expr})`)}catch(e){result=expr}return result}}const Sticky$1={mounted(e,i){(typeof i.value>"u"||i.value)&&(e[namespace]=new Sticky(e,i.instance),e[namespace].doBind())},unmounted(e){e[namespace]&&(e[namespace].doUnbind(),e[namespace]=void 0)},updated(e,i){typeof i.value>"u"||i.value?(e[namespace]||(e[namespace]=new Sticky(e,i.instance)),e[namespace].doBind()):e[namespace]&&e[namespace].doUnbind()}},StickyPlugin={install(e){e.directive("Sticky",Sticky$1)}};exports.Checkbox=Checkbox;exports.CheckoutWindow=CheckoutWindow;exports.PhoneField=PhoneField;exports.StickyPlugin=StickyPlugin;exports._sfc_main=_sfc_main$1;