@konnectio/core 4.0.39 → 4.0.40

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 (73) hide show
  1. package/dist/{ActionField-b2dd3217.cjs → ActionField-33ba228b.cjs} +1 -1
  2. package/dist/{ActionField-60b4ebb2.js → ActionField-ce9af539.js} +2 -2
  3. package/dist/ActionField-ce9af539.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-8f2cb769.js → AvailabilitySkeleton-487e3a2a.js} +28 -28
  5. package/dist/AvailabilitySkeleton-487e3a2a.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-959fb7c6.cjs +1 -0
  7. package/dist/DateField.vue_vue_type_style_index_0_lang-4d72d3b1.cjs +2 -0
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-dbdaef35.js +8539 -0
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-dbdaef35.js.br +0 -0
  10. package/dist/{Field-03c61aee.cjs → Field-3b931fce.cjs} +1 -1
  11. package/dist/{Field-19640674.js → Field-6603f54c.js} +2 -2
  12. package/dist/Field-6603f54c.js.br +0 -0
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-ada222c7.js → NumberField.vue_vue_type_script_setup_true_lang-23d1fa57.js} +1 -1
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-23d1fa57.js.br +0 -0
  15. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-b3e83a4d.cjs → NumberField.vue_vue_type_script_setup_true_lang-bedb3288.cjs} +1 -1
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-9b78302d.js → SelectField.vue_vue_type_style_index_0_lang-342d05ad.js} +7572 -7558
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-342d05ad.js.br +0 -0
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-af2d2c7c.cjs +861 -0
  19. package/dist/{ThankYou-2313373f.cjs → ThankYou-3a3c3984.cjs} +6 -6
  20. package/dist/{ThankYou-18bef897.js → ThankYou-812bee60.js} +687 -685
  21. package/dist/ThankYou-812bee60.js.br +0 -0
  22. package/dist/{_-e6cecc7f.cjs → _-74b1365b.cjs} +1 -1
  23. package/dist/{_-6e1eca9d.js → _-7dca6f46.js} +1 -1
  24. package/dist/availability.cjs +1 -1
  25. package/dist/availability.js +7 -7
  26. package/dist/availability.js.br +0 -0
  27. package/dist/components/listings/Base.vue.d.ts +1 -1
  28. package/dist/components/listings/Template.vue.d.ts +5 -0
  29. package/dist/components/listings/Template.vue.d.ts.map +1 -0
  30. package/dist/components/side-panels/Base.vue.d.ts +5 -0
  31. package/dist/components/side-panels/Base.vue.d.ts.map +1 -0
  32. package/dist/components/side-panels/Template.vue.d.ts +4 -0
  33. package/dist/components/side-panels/Template.vue.d.ts.map +1 -0
  34. package/dist/{event-d848bde5.cjs → event-13b95ff7.cjs} +1 -1
  35. package/dist/{event-6e2cdb77.js → event-c569e301.js} +7 -7
  36. package/dist/event-c569e301.js.br +0 -0
  37. package/dist/event.cjs +1 -1
  38. package/dist/event.js +8 -8
  39. package/dist/event.js.br +0 -0
  40. package/dist/gift-card-validation.cjs +1 -1
  41. package/dist/gift-card-validation.js +3 -3
  42. package/dist/gift-card-validation.js.br +0 -0
  43. package/dist/gift-card.cjs +1 -1
  44. package/dist/gift-card.js +5 -5
  45. package/dist/gift-card.js.br +0 -0
  46. package/dist/hotel.cjs +8 -5
  47. package/dist/hotel.js +2699 -1775
  48. package/dist/hotel.js.br +0 -0
  49. package/dist/{index-8abf7dfc.js → index-2d4ba4ce.js} +1 -1
  50. package/dist/index-2d4ba4ce.js.br +0 -0
  51. package/dist/{index-9663f159.cjs → index-61dd1f61.cjs} +1 -1
  52. package/dist/polyfill.cjs +1 -1
  53. package/dist/polyfill.js +1 -1
  54. package/dist/polyfill.js.br +0 -0
  55. package/dist/store/hotel.d.ts +4 -7
  56. package/dist/store/utilities.d.ts +7 -4
  57. package/dist/style.css +1 -1
  58. package/dist/style.css.br +0 -0
  59. package/dist/types/index.d.ts +1 -1
  60. package/package.json +15 -15
  61. package/dist/ActionField-60b4ebb2.js.br +0 -0
  62. package/dist/AvailabilitySkeleton-8f2cb769.js.br +0 -0
  63. package/dist/AvailabilitySkeleton-dca8b252.cjs +0 -1
  64. package/dist/DateField.vue_vue_type_style_index_0_lang-cabe193e.js +0 -8503
  65. package/dist/DateField.vue_vue_type_style_index_0_lang-cabe193e.js.br +0 -0
  66. package/dist/DateField.vue_vue_type_style_index_0_lang-e4bf6579.cjs +0 -2
  67. package/dist/Field-19640674.js.br +0 -0
  68. package/dist/NumberField.vue_vue_type_script_setup_true_lang-ada222c7.js.br +0 -0
  69. package/dist/SelectField.vue_vue_type_style_index_0_lang-1dc998e0.cjs +0 -860
  70. package/dist/SelectField.vue_vue_type_style_index_0_lang-9b78302d.js.br +0 -0
  71. package/dist/ThankYou-18bef897.js.br +0 -0
  72. package/dist/event-6e2cdb77.js.br +0 -0
  73. package/dist/index-8abf7dfc.js.br +0 -0
package/dist/hotel.js.br CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- import { k as defineComponent, l as ranId, r as ref, o as onMounted, m as openBlock, n as createBlock, w as withCtx, A as createBaseVNode, p as createVNode, q as unref, T as TextField, I as InputField, _ as _export_sfc, aj as mergeProps, y as normalizeClass, ak as normalizeStyle, al as withKeys, v as createElementBlock, F as toDisplayString, x as createCommentVNode, D as useI18n, a5 as createTextVNode, s as storeToRefs, c as useUtilityStore, am as PaymentGateway, P as pushScopeId, Q as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-9b78302d.js";
1
+ import { k as defineComponent, l as ranId, r as ref, o as onMounted, m as openBlock, n as createBlock, w as withCtx, A as createBaseVNode, p as createVNode, q as unref, T as TextField, I as InputField, _ as _export_sfc, aj as mergeProps, y as normalizeClass, ak as normalizeStyle, al as withKeys, v as createElementBlock, F as toDisplayString, x as createCommentVNode, D as useI18n, a5 as createTextVNode, s as storeToRefs, c as useUtilityStore, am as PaymentGateway, P as pushScopeId, Q as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-342d05ad.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-1dc998e0.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:t}){const i=t,l=e,_=l.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 r(){i("update:modelValue",`${n.value} ${d.value}`)}return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{if(l.modelValue){const s=l.modelValue.split(" ");n.value=s[0],d.value=s[1]}}),(s,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:s.label,id:SelectField_vue_vue_type_style_index_0_lang.unref(_),type:"phone",required:s.required,readonly:s.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]=p=>n.value=p),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:s.icon,"icon-color":s.iconColor,"icon-type":s.iconType,placeholder:"+45",required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[1]||(u[1]=p=>r())},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]=p=>d.value=p),type:"number",name:"phone",autocomplete:"tel-national",id:SelectField_vue_vue_type_style_index_0_lang.unref(_),placeholder:s.placeholder,required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[3]||(u[3]=p=>r())},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:t}){const i=e,l=t;function _(){i.readonly!==!0&&l("update:modelValue",i.type==="radio"?i.val:i.numeric?i.modelValue?0:1:!i.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]=r=>_())}),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(r=>_(),["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}=SelectField_vue_vue_type_style_index_0_lang.useI18n();return(i,l)=>(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(t)("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(t)("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(t)("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(t)("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(t)("googleApply"))+". ",1)]))}});function block0(e){const t=e;t.__i18n=t.__i18n||[],t.__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 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:t}=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 i=document.createElement("script"),l=document.createElement("script");i.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),l.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(i),document.head.appendChild(l)}),(i,l)=>(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(t)===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,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,o=(e,t,i)=>(c(e,typeof t!="symbol"?t+"":t,i),i);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,t={},i={})=>{for(let l in t)e.style[l]=t[l];for(let l in i)i[l]&&!e.classList.contains(l)?e.classList.add(l):!i[l]&&e.classList.contains(l)&&e.classList.remove(l)};class Sticky{constructor(e,t){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=t,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 i=this.getAttribute("sticky-offset")||{},l=this.getAttribute("sticky-side")||"top",_=this.getAttribute("sticky-z-index")||"10",n=this.getAttribute("on-stick")||null;this.options={topOffset:Number(i.top)||0,bottomOffset:Number(i.bottom)||0,shouldTopSticky:l==="top"||l==="both",shouldBottomSticky:l==="bottom"||l==="both",zIndex:_,onStick:n}}doBind(){if(this.unSubscribers.length>0)return;const{el:e,vm:t}=this;t.$nextTick(()=>{this.placeholderEl=document.createElement("div"),this.containerEl=this.getContainerEl(),e.parentElement.insertBefore(this.placeholderEl,e),events.forEach(i=>{const l=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(i,l)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(i,l)),window.addEventListener(i,l,{passive:!0}),this.containerEl.addEventListener(i,l,{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,t=this.state.containerElRect.bottom,i=this.options.topOffset,l=this.options.bottomOffset;return e<=i&&t>=l}isBottomSticky(){if(!this.options.shouldBottomSticky)return!1;const e=window.innerHeight-this.state.placeholderElRect.top-this.state.height,t=window.innerHeight-this.state.containerElRect.top,i=this.options.topOffset,l=this.options.bottomOffset;return e<=l&&t>=i}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},t={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:this.options.zIndex},i={"vue-sticky-placeholder":!0},l={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){t.position="fixed",t.top=this.options.topOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.top=_+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",l["top-sticky"]=!0}else if(this.state.isBottomSticky){t.position="fixed",t.bottom=this.options.bottomOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.bottom=_+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",l["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,t,l),batchStyle(this.placeholderEl,e,i),this.fireEvents()}resetElement(){["position","top","bottom","left","width","zIndex"].forEach(t=>{this.el.style.removeProperty(t)}),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,t){(typeof t.value>"u"||t.value)&&(e[namespace]=new Sticky(e,t.instance),e[namespace].doBind())},unmounted(e){e[namespace]&&(e[namespace].doUnbind(),e[namespace]=void 0)},updated(e,t){typeof t.value>"u"||t.value?(e[namespace]||(e[namespace]=new Sticky(e,t.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-af2d2c7c.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:t}){const i=t,l=e,_=l.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 r(){i("update:modelValue",`${n.value} ${d.value}`)}return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{if(l.modelValue){const s=l.modelValue.split(" ");n.value=s[0],d.value=s[1]}}),(s,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:s.label,id:SelectField_vue_vue_type_style_index_0_lang.unref(_),type:"phone",required:s.required,readonly:s.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]=p=>n.value=p),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:s.icon,"icon-color":s.iconColor,"icon-type":s.iconType,placeholder:"+45",required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[1]||(u[1]=p=>r())},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]=p=>d.value=p),type:"number",name:"phone",autocomplete:"tel-national",id:SelectField_vue_vue_type_style_index_0_lang.unref(_),placeholder:s.placeholder,required:s.required,readonly:s.readonly,"input-style":s.inputStyle,onInput:u[3]||(u[3]=p=>r())},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:t}){const i=e,l=t;function _(){i.readonly!==!0&&l("update:modelValue",i.type==="radio"?i.val:i.numeric?i.modelValue?0:1:!i.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]=r=>_())}),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(r=>_(),["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}=SelectField_vue_vue_type_style_index_0_lang.useI18n();return(i,l)=>(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(t)("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(t)("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(t)("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(t)("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(t)("googleApply"))+". ",1)]))}});function block0(e){const t=e;t.__i18n=t.__i18n||[],t.__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 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:t}=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 i=document.createElement("script"),l=document.createElement("script");i.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),l.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(i),document.head.appendChild(l)}),(i,l)=>(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(t)===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,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,o=(e,t,i)=>(c(e,typeof t!="symbol"?t+"":t,i),i);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,t={},i={})=>{for(let l in t)e.style[l]=t[l];for(let l in i)i[l]&&!e.classList.contains(l)?e.classList.add(l):!i[l]&&e.classList.contains(l)&&e.classList.remove(l)};class Sticky{constructor(e,t){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=t,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 i=this.getAttribute("sticky-offset")||{},l=this.getAttribute("sticky-side")||"top",_=this.getAttribute("sticky-z-index")||"10",n=this.getAttribute("on-stick")||null;this.options={topOffset:Number(i.top)||0,bottomOffset:Number(i.bottom)||0,shouldTopSticky:l==="top"||l==="both",shouldBottomSticky:l==="bottom"||l==="both",zIndex:_,onStick:n}}doBind(){if(this.unSubscribers.length>0)return;const{el:e,vm:t}=this;t.$nextTick(()=>{this.placeholderEl=document.createElement("div"),this.containerEl=this.getContainerEl(),e.parentElement.insertBefore(this.placeholderEl,e),events.forEach(i=>{const l=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(i,l)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(i,l)),window.addEventListener(i,l,{passive:!0}),this.containerEl.addEventListener(i,l,{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,t=this.state.containerElRect.bottom,i=this.options.topOffset,l=this.options.bottomOffset;return e<=i&&t>=l}isBottomSticky(){if(!this.options.shouldBottomSticky)return!1;const e=window.innerHeight-this.state.placeholderElRect.top-this.state.height,t=window.innerHeight-this.state.containerElRect.top,i=this.options.topOffset,l=this.options.bottomOffset;return e<=l&&t>=i}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},t={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:this.options.zIndex},i={"vue-sticky-placeholder":!0},l={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){t.position="fixed",t.top=this.options.topOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.top=_+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",l["top-sticky"]=!0}else if(this.state.isBottomSticky){t.position="fixed",t.bottom=this.options.bottomOffset+"px",t.left=this.state.xOffset+"px",t.width=this.state.width+"px";const _=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;_<0&&(t.bottom=_+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",l["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,t,l),batchStyle(this.placeholderEl,e,i),this.fireEvents()}resetElement(){["position","top","bottom","left","width","zIndex"].forEach(t=>{this.el.style.removeProperty(t)}),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,t){(typeof t.value>"u"||t.value)&&(e[namespace]=new Sticky(e,t.instance),e[namespace].doBind())},unmounted(e){e[namespace]&&(e[namespace].doUnbind(),e[namespace]=void 0)},updated(e,t){typeof t.value>"u"||t.value?(e[namespace]||(e[namespace]=new Sticky(e,t.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;