@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.
Files changed (75) hide show
  1. package/dist/{ActionField-79f8bfae.cjs → ActionField-43360bd2.cjs} +1 -1
  2. package/dist/{ActionField-054975da.js → ActionField-46bc1332.js} +2 -2
  3. package/dist/ActionField-46bc1332.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-c92fc1d1.cjs → AvailabilitySkeleton-0a70de37.cjs} +1 -1
  5. package/dist/{AvailabilitySkeleton-3e6890a1.js → AvailabilitySkeleton-f86f40b9.js} +5 -5
  6. package/dist/AvailabilitySkeleton-f86f40b9.js.br +0 -0
  7. package/dist/CheckoutWindow-046e2e84.js +202 -0
  8. package/dist/CheckoutWindow-046e2e84.js.br +0 -0
  9. package/dist/CheckoutWindow-a2dfaa01.cjs +1 -0
  10. package/dist/{DateField.vue_vue_type_style_index_0_lang-77ca2367.js → DateField.vue_vue_type_style_index_0_lang-10d7dd19.js} +3030 -3015
  11. package/dist/DateField.vue_vue_type_style_index_0_lang-10d7dd19.js.br +0 -0
  12. package/dist/DateField.vue_vue_type_style_index_0_lang-a4c0f28b.cjs +2 -0
  13. package/dist/{Field-73b09327.cjs → Field-0588c03e.cjs} +1 -1
  14. package/dist/{Field-dffa8f30.js → Field-a28f1e97.js} +2 -2
  15. package/dist/Field-a28f1e97.js.br +0 -0
  16. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-1108dcd6.cjs → NumberField.vue_vue_type_script_setup_true_lang-01f7e3ee.cjs} +1 -1
  17. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-3517aeda.js → NumberField.vue_vue_type_script_setup_true_lang-9edbbae0.js} +1 -1
  18. package/dist/NumberField.vue_vue_type_script_setup_true_lang-9edbbae0.js.br +0 -0
  19. package/dist/{SelectField.vue_vue_type_style_index_0_lang-9544cd25.cjs → SelectField.vue_vue_type_style_index_0_lang-88de73f4.cjs} +39 -39
  20. package/dist/{SelectField.vue_vue_type_style_index_0_lang-bc4ca9a5.js → SelectField.vue_vue_type_style_index_0_lang-fbce2406.js} +47 -46
  21. package/dist/SelectField.vue_vue_type_style_index_0_lang-fbce2406.js.br +0 -0
  22. package/dist/{ThankYou-d42a4e49.js → ThankYou-0b7441d8.js} +5371 -4370
  23. package/dist/ThankYou-0b7441d8.js.br +0 -0
  24. package/dist/ThankYou-2acb4fdf.cjs +59 -0
  25. package/dist/{_-b8fd5e7f.cjs → _-357f8de1.cjs} +1 -1
  26. package/dist/{_-f51b7e1b.js → _-5f328ff3.js} +1 -1
  27. package/dist/availability.cjs +1 -1
  28. package/dist/availability.js +7 -7
  29. package/dist/availability.js.br +0 -0
  30. package/dist/components/forms/ReservationForm.vue.d.ts +2 -1
  31. package/dist/components/forms/ReservationForm.vue.d.ts.map +1 -1
  32. package/dist/components/listings/Base.vue.d.ts +1 -1
  33. package/dist/components/side-panels/Base.vue.d.ts +1 -1
  34. package/dist/components/side-panels/ListingInfo.vue.d.ts +5 -0
  35. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +1 -0
  36. package/dist/components/side-panels/TermsOfService.vue.d.ts +5 -0
  37. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +1 -0
  38. package/dist/components/views/TermsOfService.vue.d.ts +1 -1
  39. package/dist/{event-0c5b54ea.js → event-7eca2398.js} +7 -7
  40. package/dist/event-7eca2398.js.br +0 -0
  41. package/dist/{event-6671499b.cjs → event-b8c5517e.cjs} +1 -1
  42. package/dist/event.cjs +1 -1
  43. package/dist/event.js +108 -109
  44. package/dist/event.js.br +0 -0
  45. package/dist/gift-card-validation.cjs +1 -1
  46. package/dist/gift-card-validation.js +3 -3
  47. package/dist/gift-card-validation.js.br +0 -0
  48. package/dist/gift-card.cjs +1 -1
  49. package/dist/gift-card.js +293 -301
  50. package/dist/gift-card.js.br +0 -0
  51. package/dist/hotel.cjs +8 -8
  52. package/dist/hotel.js +1633 -2070
  53. package/dist/hotel.js.br +0 -0
  54. package/dist/layouts/Hotel.vue.d.ts +5 -0
  55. package/dist/polyfill.cjs +1 -1
  56. package/dist/polyfill.js +1 -1
  57. package/dist/polyfill.js.br +0 -0
  58. package/dist/style.css +1 -1
  59. package/dist/style.css.br +0 -0
  60. package/package.json +6 -6
  61. package/dist/ActionField-054975da.js.br +0 -0
  62. package/dist/AvailabilitySkeleton-3e6890a1.js.br +0 -0
  63. package/dist/DateField.vue_vue_type_style_index_0_lang-56ca7795.cjs +0 -2
  64. package/dist/DateField.vue_vue_type_style_index_0_lang-77ca2367.js.br +0 -0
  65. package/dist/Field-dffa8f30.js.br +0 -0
  66. package/dist/NumberField.vue_vue_type_script_setup_true_lang-3517aeda.js.br +0 -0
  67. package/dist/SelectField.vue_vue_type_style_index_0_lang-bc4ca9a5.js.br +0 -0
  68. package/dist/ThankYou-d42a4e49.js.br +0 -0
  69. package/dist/ThankYou-da4c5f50.cjs +0 -54
  70. package/dist/components/modals/Terms.vue.d.ts +0 -4
  71. package/dist/components/modals/Terms.vue.d.ts.map +0 -1
  72. package/dist/event-0c5b54ea.js.br +0 -0
  73. package/dist/index-2920831d.cjs +0 -1
  74. package/dist/index-906997b4.js +0 -375
  75. package/dist/index-906997b4.js.br +0 -0
@@ -1,4 +0,0 @@
1
- import _sfc_main from "G:/.projects/konnectio-integration-core/src/components/modals/Terms.vue?vue&type=script&setup=true&lang.ts";
2
- export * from "G:/.projects/konnectio-integration-core/src/components/modals/Terms.vue?vue&type=script&setup=true&lang.ts";
3
- export default _sfc_main;
4
- //# sourceMappingURL=Terms.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Terms.vue.d.ts","sourceRoot":"","sources":["../../../src/components/modals/Terms.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,4GAA4G,CAAC;AACnI,cAAc,4GAA4G,CAAC;AAC3H,eAAe,SAAS,CAAC"}
Binary file
@@ -1 +0,0 @@
1
- "use strict";const SelectField_vue_vue_type_style_index_0_lang=require("./SelectField.vue_vue_type_style_index_0_lang-9544cd25.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,375 +0,0 @@
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-bc4ca9a5.js";
2
- const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
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(e, { emit: t }) {
18
- const s = t, i = e, r = i.id || ranId(), n = ref("+45"), d = ref("");
19
- function u() {
20
- s("update:modelValue", `${n.value} ${d.value}`);
21
- }
22
- return onMounted(() => {
23
- if (i.modelValue) {
24
- const l = i.modelValue.split(" ");
25
- n.value = l[0], d.value = l[1];
26
- }
27
- }), (l, p) => (openBlock(), createBlock(InputField, {
28
- label: l.label,
29
- id: unref(r),
30
- type: "phone",
31
- required: l.required,
32
- readonly: l.readonly
33
- }, {
34
- default: withCtx(() => [
35
- createBaseVNode("div", _hoisted_1$3, [
36
- createVNode(TextField, {
37
- modelValue: n.value,
38
- "onUpdate:modelValue": p[0] || (p[0] = (h) => n.value = h),
39
- type: "text",
40
- id: unref(ranId)(),
41
- name: "phone-code",
42
- autocomplete: "tel-country-code",
43
- icon: l.icon,
44
- "icon-color": l.iconColor,
45
- "icon-type": l.iconType,
46
- placeholder: "+45",
47
- required: l.required,
48
- readonly: l.readonly,
49
- "input-style": l.inputStyle,
50
- onInput: p[1] || (p[1] = (h) => u())
51
- }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
52
- createVNode(TextField, {
53
- modelValue: d.value,
54
- "onUpdate:modelValue": p[2] || (p[2] = (h) => d.value = h),
55
- type: "number",
56
- name: "phone",
57
- autocomplete: "tel-national",
58
- id: unref(r),
59
- placeholder: l.placeholder,
60
- required: l.required,
61
- readonly: l.readonly,
62
- "input-style": l.inputStyle,
63
- onInput: p[3] || (p[3] = (h) => u())
64
- }, null, 8, ["modelValue", "id", "placeholder", "required", "readonly", "input-style"])
65
- ])
66
- ]),
67
- _: 1
68
- }, 8, ["label", "id", "required", "readonly"]));
69
- }
70
- }), PhoneField_vue_vue_type_style_index_0_scoped_5cd094ab_lang = "", PhoneField = /* @__PURE__ */ _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 = /* @__PURE__ */ defineComponent({
71
- __name: "Checkbox",
72
- props: {
73
- modelValue: { type: [String, Boolean, Number] },
74
- numeric: { type: Boolean, default: !1 },
75
- checked: { type: Boolean, default: !1 },
76
- label: {},
77
- price: {},
78
- name: {},
79
- readonly: { type: Boolean, default: !1 },
80
- type: { default: "checkbox" },
81
- required: { type: Boolean, default: !1 },
82
- inputStyle: {},
83
- val: {}
84
- },
85
- emits: ["update:modelValue"],
86
- setup(e, { emit: t }) {
87
- const s = e, i = t;
88
- function r() {
89
- s.readonly !== !0 && i(
90
- "update:modelValue",
91
- s.type === "radio" ? s.val : s.numeric ? s.modelValue ? 0 : 1 : !s.modelValue
92
- );
93
- }
94
- return (n, d) => (openBlock(), createBlock(InputField, {
95
- required: n.required,
96
- type: n.type,
97
- readonly: n.readonly
98
- }, {
99
- default: withCtx(() => [
100
- createBaseVNode("label", {
101
- class: normalizeClass([
102
- "fresh-booking-click-box-container",
103
- { "is-readonly": n.readonly },
104
- { "has-label": n.label },
105
- n.type === "radio" ? "radio" : "checkbox"
106
- ])
107
- }, [
108
- createBaseVNode("input", mergeProps(n.$attrs, {
109
- required: !!n.required,
110
- type: n.type,
111
- name: n.name,
112
- class: "hidden",
113
- readonly: !!n.readonly,
114
- disabled: !!n.readonly,
115
- value: n.type === "radio" ? n.val : n.modelValue,
116
- checked: n.type === "radio" ? n.val === n.modelValue : !!n.modelValue,
117
- onChange: d[0] || (d[0] = (u) => r())
118
- }), null, 16, _hoisted_1$2),
119
- createBaseVNode("div", {
120
- class: normalizeClass([
121
- "fresh-booking-click-box",
122
- { checked: n.type === "radio" ? n.val === n.modelValue : !!n.modelValue }
123
- ]),
124
- tabindex: "0",
125
- style: normalizeStyle(n.inputStyle),
126
- "data-test": n.name,
127
- onKeyup: d[1] || (d[1] = withKeys((u) => r(), ["enter"]))
128
- }, null, 46, _hoisted_2$2),
129
- n.label ? (openBlock(), createElementBlock("div", {
130
- key: 0,
131
- class: normalizeClass(["fresh-booking-click-box-label", { "with-price": n.price }])
132
- }, [
133
- createBaseVNode("span", null, toDisplayString(n.label), 1),
134
- n.price ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(n.price), 1)) : createCommentVNode("", !0)
135
- ], 2)) : createCommentVNode("", !0)
136
- ], 2)
137
- ]),
138
- _: 1
139
- }, 8, ["required", "type", "readonly"]));
140
- }
141
- }), Checkbox_vue_vue_type_style_index_0_scoped_7ef656cb_lang = "", Checkbox = /* @__PURE__ */ _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 = /* @__PURE__ */ defineComponent({
142
- __name: "GoogleNotice",
143
- setup(e) {
144
- const { t } = useI18n();
145
- return (s, i) => (openBlock(), createElementBlock("span", null, [
146
- createTextVNode(toDisplayString(unref(t)("googleNotice")) + " ", 1),
147
- createBaseVNode("a", _hoisted_1$1, toDisplayString(unref(t)("googlePrivacyPolicy")), 1),
148
- createTextVNode(" " + toDisplayString(unref(t)("googleAnd")) + " ", 1),
149
- createBaseVNode("a", _hoisted_2$1, toDisplayString(unref(t)("googleTOS")), 1),
150
- createTextVNode(" " + toDisplayString(unref(t)("googleApply")) + ". ", 1)
151
- ]));
152
- }
153
- });
154
- function block0(e) {
155
- const t = e;
156
- t.__i18n = t.__i18n || [], t.__i18n.push({
157
- locale: "",
158
- resource: {
159
- da: {
160
- googleNotice: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Denne side er beskyttet af reCAPTCHA og Google's" } },
161
- googlePrivacyPolicy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Privatlivspolitik" } },
162
- googleAnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "og" } },
163
- googleTOS: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Servicevilkår" } },
164
- googleApply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "er gældende" } }
165
- },
166
- en: {
167
- googleNotice: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "This site is protected by reCAPTCHA and the Google" } },
168
- googlePrivacyPolicy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Privacy Policy" } },
169
- googleAnd: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "and" } },
170
- googleTOS: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Terms of Service" } },
171
- googleApply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "apply" } }
172
- }
173
- }
174
- });
175
- }
176
- typeof block0 == "function" && block0(_sfc_main$1);
177
- const _withScopeId = (e) => (pushScopeId("data-v-340cb9ce"), e = e(), popScopeId(), e), _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", { id: "fresh-booking-payment-checkout" }, null, -1)), _hoisted_2 = [
178
- _hoisted_1
179
- ], _sfc_main = /* @__PURE__ */ defineComponent({
180
- __name: "CheckoutWindow",
181
- setup(e) {
182
- const { paymentGatewayId: t } = storeToRefs(useUtilityStore());
183
- return onMounted(() => {
184
- const s = document.createElement("script"), i = document.createElement("script");
185
- s.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), i.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(s), document.head.appendChild(i);
186
- }), (s, i) => (openBlock(), createElementBlock("div", null, [
187
- createBaseVNode("div", {
188
- id: "fresh-booking-payment-checkout-wrapper",
189
- class: normalizeClass({ reePay: unref(t) === unref(PaymentGateway).ReePay })
190
- }, _hoisted_2, 2)
191
- ]));
192
- }
193
- }), CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang = "", CheckoutWindow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-340cb9ce"]]);
194
- var a = Object.defineProperty, c = (e, t, s) => t in e ? a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, o = (e, t, s) => (c(e, typeof t != "symbol" ? t + "" : t, s), s);
195
- const namespace = "@@vue3-sticky-directive", events = [
196
- "resize",
197
- "scroll",
198
- "touchstart",
199
- "touchmove",
200
- "touchend",
201
- "pageshow",
202
- "load"
203
- ], batchStyle = (e, t = {}, s = {}) => {
204
- for (let i in t)
205
- e.style[i] = t[i];
206
- for (let i in s)
207
- s[i] && !e.classList.contains(i) ? e.classList.add(i) : !s[i] && e.classList.contains(i) && e.classList.remove(i);
208
- };
209
- class Sticky {
210
- constructor(e, t) {
211
- 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 = {
212
- isTopSticky: null,
213
- isBottomSticky: null,
214
- height: null,
215
- width: null,
216
- xOffset: null
217
- }, this.lastState = {
218
- top: null,
219
- bottom: null,
220
- sticked: !1
221
- };
222
- const s = this.getAttribute("sticky-offset") || {}, i = this.getAttribute("sticky-side") || "top", r = this.getAttribute("sticky-z-index") || "10", n = this.getAttribute("on-stick") || null;
223
- this.options = {
224
- topOffset: Number(s.top) || 0,
225
- bottomOffset: Number(s.bottom) || 0,
226
- shouldTopSticky: i === "top" || i === "both",
227
- shouldBottomSticky: i === "bottom" || i === "both",
228
- zIndex: r,
229
- onStick: n
230
- };
231
- }
232
- doBind() {
233
- if (this.unSubscribers.length > 0)
234
- return;
235
- const { el: e, vm: t } = this;
236
- t.$nextTick(() => {
237
- this.placeholderEl = document.createElement("div"), this.containerEl = this.getContainerEl(), e.parentElement.insertBefore(this.placeholderEl, e), events.forEach((s) => {
238
- const i = this.update.bind(this);
239
- this.unSubscribers.push(() => window.removeEventListener(s, i)), this.unSubscribers.push(() => this.containerEl.removeEventListener(s, i)), window.addEventListener(s, i, { passive: !0 }), this.containerEl.addEventListener(s, i, { passive: !0 });
240
- });
241
- });
242
- }
243
- doUnbind() {
244
- this.unSubscribers.forEach((e) => e()), this.unSubscribers = [], this.resetElement();
245
- }
246
- update() {
247
- this.isPending || (requestAnimationFrame(() => {
248
- this.isPending = !1, this.recomputeState(), this.updateElements();
249
- }), this.isPending = !0);
250
- }
251
- isTopSticky() {
252
- if (!this.options.shouldTopSticky)
253
- return !1;
254
- const e = this.state.placeholderElRect.top, t = this.state.containerElRect.bottom, s = this.options.topOffset, i = this.options.bottomOffset;
255
- return e <= s && t >= i;
256
- }
257
- isBottomSticky() {
258
- if (!this.options.shouldBottomSticky)
259
- return !1;
260
- const e = window.innerHeight - this.state.placeholderElRect.top - this.state.height, t = window.innerHeight - this.state.containerElRect.top, s = this.options.topOffset, i = this.options.bottomOffset;
261
- return e <= i && t >= s;
262
- }
263
- recomputeState() {
264
- this.state = Object.assign({}, this.state, {
265
- height: this.getHeight(),
266
- width: this.getWidth(),
267
- xOffset: this.getXOffset(),
268
- placeholderElRect: this.getPlaceholderElRect(),
269
- containerElRect: this.getContainerElRect()
270
- }), this.state.isTopSticky = this.isTopSticky(), this.state.isBottomSticky = this.isBottomSticky();
271
- }
272
- fireEvents() {
273
- 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 = {
274
- top: this.state.isTopSticky,
275
- bottom: this.state.isBottomSticky,
276
- sticked: this.state.isBottomSticky || this.state.isTopSticky
277
- }, this.options.onStick(this.lastState));
278
- }
279
- updateElements() {
280
- const e = {
281
- paddingTop: 0
282
- }, t = {
283
- position: "static",
284
- top: "auto",
285
- bottom: "auto",
286
- left: "auto",
287
- width: "auto",
288
- zIndex: this.options.zIndex
289
- }, s = {
290
- "vue-sticky-placeholder": !0
291
- }, i = {
292
- "vue-sticky-el": !0,
293
- "top-sticky": !1,
294
- "bottom-sticky": !1
295
- };
296
- if (this.state.isTopSticky) {
297
- t.position = "fixed", t.top = this.options.topOffset + "px", t.left = this.state.xOffset + "px", t.width = this.state.width + "px";
298
- const r = this.state.containerElRect.bottom - this.state.height - this.options.bottomOffset - this.options.topOffset;
299
- r < 0 && (t.top = r + this.options.topOffset + "px"), e.paddingTop = this.state.height + "px", i["top-sticky"] = !0;
300
- } else if (this.state.isBottomSticky) {
301
- t.position = "fixed", t.bottom = this.options.bottomOffset + "px", t.left = this.state.xOffset + "px", t.width = this.state.width + "px";
302
- const r = window.innerHeight - this.state.containerElRect.top - this.state.height - this.options.bottomOffset - this.options.topOffset;
303
- r < 0 && (t.bottom = r + this.options.bottomOffset + "px"), e.paddingTop = this.state.height + "px", i["bottom-sticky"] = !0;
304
- } else
305
- e.paddingTop = 0;
306
- batchStyle(this.el, t, i), batchStyle(this.placeholderEl, e, s), this.fireEvents();
307
- }
308
- resetElement() {
309
- ["position", "top", "bottom", "left", "width", "zIndex"].forEach((t) => {
310
- this.el.style.removeProperty(t);
311
- }), this.el.classList.remove("bottom-sticky", "top-sticky");
312
- const { parentElement: e } = this.placeholderEl;
313
- e && e.removeChild(this.placeholderEl);
314
- }
315
- getContainerEl() {
316
- let e = this.el.parentElement;
317
- for (; e && e.tagName !== "HTML" && e.tagName !== "BODY" && e.nodeType === 1; ) {
318
- if (e.hasAttribute("sticky-container"))
319
- return e;
320
- e = e.parentElement;
321
- }
322
- return this.el.parentElement;
323
- }
324
- getXOffset() {
325
- return this.placeholderEl.getBoundingClientRect().left;
326
- }
327
- getWidth() {
328
- return this.placeholderEl.getBoundingClientRect().width;
329
- }
330
- getHeight() {
331
- return this.el.getBoundingClientRect().height;
332
- }
333
- getPlaceholderElRect() {
334
- return this.placeholderEl.getBoundingClientRect();
335
- }
336
- getContainerElRect() {
337
- return this.containerEl.getBoundingClientRect();
338
- }
339
- getAttribute(name) {
340
- const expr = this.el.getAttribute(name);
341
- let result;
342
- if (expr)
343
- if (this.vm[expr])
344
- result = this.vm[expr];
345
- else
346
- try {
347
- result = eval(`(${expr})`);
348
- } catch (e) {
349
- result = expr;
350
- }
351
- return result;
352
- }
353
- }
354
- const Sticky$1 = {
355
- mounted(e, t) {
356
- (typeof t.value > "u" || t.value) && (e[namespace] = new Sticky(e, t.instance), e[namespace].doBind());
357
- },
358
- unmounted(e) {
359
- e[namespace] && (e[namespace].doUnbind(), e[namespace] = void 0);
360
- },
361
- updated(e, t) {
362
- typeof t.value > "u" || t.value ? (e[namespace] || (e[namespace] = new Sticky(e, t.instance)), e[namespace].doBind()) : e[namespace] && e[namespace].doUnbind();
363
- }
364
- }, StickyPlugin = {
365
- install(e) {
366
- e.directive("Sticky", Sticky$1);
367
- }
368
- };
369
- export {
370
- Checkbox as C,
371
- PhoneField as P,
372
- StickyPlugin as S,
373
- _sfc_main$1 as _,
374
- CheckoutWindow as a
375
- };
Binary file