@konnectio/core 4.0.28 → 4.0.30

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 (68) hide show
  1. package/dist/{ActionField-487e86aa.cjs → ActionField-6a7fe182.cjs} +1 -1
  2. package/dist/{ActionField-20fd2fef.js → ActionField-6b24ed58.js} +2 -2
  3. package/dist/ActionField-6b24ed58.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-813806c7.js → AvailabilitySkeleton-7ec69b90.js} +5 -5
  5. package/dist/AvailabilitySkeleton-7ec69b90.js.br +0 -0
  6. package/dist/{AvailabilitySkeleton-ff721887.cjs → AvailabilitySkeleton-f2192dc6.cjs} +1 -1
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-3abac10d.js → DateField.vue_vue_type_style_index_0_lang-3a3692d1.js} +1 -1
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-3a3692d1.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-c80f334d.cjs → DateField.vue_vue_type_style_index_0_lang-96d1d3ea.cjs} +1 -1
  10. package/dist/{Field-79fc7dfa.js → Field-a129d337.js} +2 -2
  11. package/dist/Field-a129d337.js.br +0 -0
  12. package/dist/{Field-6b050caf.cjs → Field-c8804a60.cjs} +1 -1
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js → NumberField.vue_vue_type_script_setup_true_lang-5ff1722d.js} +1 -1
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-5ff1722d.js.br +0 -0
  15. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-1c0634a0.cjs → NumberField.vue_vue_type_script_setup_true_lang-d175c5f1.cjs} +1 -1
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-88cf98c9.cjs +860 -0
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-d631c22b.js → SelectField.vue_vue_type_style_index_0_lang-abafed2f.js} +13372 -12382
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-abafed2f.js.br +0 -0
  19. package/dist/{ThankYou-3ada7b03.cjs → ThankYou-af2a1b13.cjs} +6 -6
  20. package/dist/{ThankYou-9dd940b6.js → ThankYou-d644a014.js} +849 -848
  21. package/dist/ThankYou-d644a014.js.br +0 -0
  22. package/dist/{_-b36ce0a6.cjs → _-68bd35c5.cjs} +1 -1
  23. package/dist/{_-f9c3008a.js → _-c044a71c.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/forms/MultiStepForm.vue.d.ts +1 -1
  28. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  29. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +1 -1
  30. package/dist/components/listings/Base.vue.d.ts +1 -1
  31. package/dist/components/views/TermsOfService.vue.d.ts +1 -1
  32. package/dist/{event-69ba12c7.cjs → event-37706e7b.cjs} +1 -1
  33. package/dist/{event-16449760.js → event-6f45c906.js} +7 -7
  34. package/dist/event-6f45c906.js.br +0 -0
  35. package/dist/event.cjs +1 -1
  36. package/dist/event.js +8 -8
  37. package/dist/event.js.br +0 -0
  38. package/dist/gift-card-validation.cjs +1 -1
  39. package/dist/gift-card-validation.js +3 -3
  40. package/dist/gift-card-validation.js.br +0 -0
  41. package/dist/gift-card.cjs +1 -1
  42. package/dist/gift-card.js +254 -278
  43. package/dist/gift-card.js.br +0 -0
  44. package/dist/hotel.cjs +5 -5
  45. package/dist/hotel.js +815 -813
  46. package/dist/hotel.js.br +0 -0
  47. package/dist/index-27d2c768.cjs +1 -0
  48. package/dist/{index-ddf58f34.js → index-a5dc6e49.js} +77 -107
  49. package/dist/index-a5dc6e49.js.br +0 -0
  50. package/dist/polyfill.cjs +1 -1
  51. package/dist/polyfill.js +1 -1
  52. package/dist/polyfill.js.br +0 -0
  53. package/dist/store/hotel.d.ts +4 -1
  54. package/dist/store/tracking.d.ts +17 -2
  55. package/dist/style.css +1 -1
  56. package/dist/style.css.br +0 -0
  57. package/package.json +6 -4
  58. package/dist/ActionField-20fd2fef.js.br +0 -0
  59. package/dist/AvailabilitySkeleton-813806c7.js.br +0 -0
  60. package/dist/DateField.vue_vue_type_style_index_0_lang-3abac10d.js.br +0 -0
  61. package/dist/Field-79fc7dfa.js.br +0 -0
  62. package/dist/NumberField.vue_vue_type_script_setup_true_lang-13b2e6c5.js.br +0 -0
  63. package/dist/SelectField.vue_vue_type_style_index_0_lang-aa9c0c1a.cjs +0 -858
  64. package/dist/SelectField.vue_vue_type_style_index_0_lang-d631c22b.js.br +0 -0
  65. package/dist/ThankYou-9dd940b6.js.br +0 -0
  66. package/dist/event-16449760.js.br +0 -0
  67. package/dist/index-bf17dd6e.cjs +0 -1
  68. package/dist/index-ddf58f34.js.br +0 -0
package/dist/hotel.js.br CHANGED
Binary file
@@ -0,0 +1 @@
1
+ "use strict";const SelectField_vue_vue_type_style_index_0_lang=require("./SelectField.vue_vue_type_style_index_0_lang-88cf98c9.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,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-d631c22b.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-abafed2f.js";
2
2
  const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
3
3
  __name: "PhoneField",
4
4
  props: {
@@ -14,14 +14,14 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
14
14
  inputStyle: {}
15
15
  },
16
16
  emits: ["update:modelValue"],
17
- setup(e, { emit: s }) {
18
- const i = s, t = e, r = t.id || ranId(), n = ref("+45"), d = ref("");
19
- function h() {
20
- i("update:modelValue", `${n.value} ${d.value}`);
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
21
  }
22
22
  return onMounted(() => {
23
- if (t.modelValue) {
24
- const l = t.modelValue.split(" ");
23
+ if (i.modelValue) {
24
+ const l = i.modelValue.split(" ");
25
25
  n.value = l[0], d.value = l[1];
26
26
  }
27
27
  }), (l, p) => (openBlock(), createBlock(InputField, {
@@ -35,7 +35,7 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
35
35
  createBaseVNode("div", _hoisted_1$3, [
36
36
  createVNode(TextField, {
37
37
  modelValue: n.value,
38
- "onUpdate:modelValue": p[0] || (p[0] = (u) => n.value = u),
38
+ "onUpdate:modelValue": p[0] || (p[0] = (h) => n.value = h),
39
39
  type: "text",
40
40
  id: unref(ranId)(),
41
41
  name: "phone-code",
@@ -47,11 +47,11 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
47
47
  required: l.required,
48
48
  readonly: l.readonly,
49
49
  "input-style": l.inputStyle,
50
- onInput: p[1] || (p[1] = (u) => h())
50
+ onInput: p[1] || (p[1] = (h) => u())
51
51
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
52
52
  createVNode(TextField, {
53
53
  modelValue: d.value,
54
- "onUpdate:modelValue": p[2] || (p[2] = (u) => d.value = u),
54
+ "onUpdate:modelValue": p[2] || (p[2] = (h) => d.value = h),
55
55
  type: "number",
56
56
  name: "phone",
57
57
  autocomplete: "tel-national",
@@ -60,7 +60,7 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
60
60
  required: l.required,
61
61
  readonly: l.readonly,
62
62
  "input-style": l.inputStyle,
63
- onInput: p[3] || (p[3] = (u) => h())
63
+ onInput: p[3] || (p[3] = (h) => u())
64
64
  }, null, 8, ["modelValue", "id", "placeholder", "required", "readonly", "input-style"])
65
65
  ])
66
66
  ]),
@@ -83,12 +83,12 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
83
83
  val: {}
84
84
  },
85
85
  emits: ["update:modelValue"],
86
- setup(e, { emit: s }) {
87
- const i = e, t = s;
86
+ setup(e, { emit: t }) {
87
+ const s = e, i = t;
88
88
  function r() {
89
- i.readonly !== !0 && t(
89
+ s.readonly !== !0 && i(
90
90
  "update:modelValue",
91
- i.type === "radio" ? i.val : i.numeric ? i.modelValue ? 0 : 1 : !i.modelValue
91
+ s.type === "radio" ? s.val : s.numeric ? s.modelValue ? 0 : 1 : !s.modelValue
92
92
  );
93
93
  }
94
94
  return (n, d) => (openBlock(), createBlock(InputField, {
@@ -114,7 +114,7 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
114
114
  disabled: !!n.readonly,
115
115
  value: n.type === "radio" ? n.val : n.modelValue,
116
116
  checked: n.type === "radio" ? n.val === n.modelValue : !!n.modelValue,
117
- onChange: d[0] || (d[0] = (h) => r())
117
+ onChange: d[0] || (d[0] = (u) => r())
118
118
  }), null, 16, _hoisted_1$2),
119
119
  createBaseVNode("div", {
120
120
  class: normalizeClass([
@@ -124,7 +124,7 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
124
124
  tabindex: "0",
125
125
  style: normalizeStyle(n.inputStyle),
126
126
  "data-test": n.name,
127
- onKeyup: d[1] || (d[1] = withKeys((h) => r(), ["enter"]))
127
+ onKeyup: d[1] || (d[1] = withKeys((u) => r(), ["enter"]))
128
128
  }, null, 46, _hoisted_2$2),
129
129
  n.label ? (openBlock(), createElementBlock("div", {
130
130
  key: 0,
@@ -141,64 +141,34 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
141
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
142
  __name: "GoogleNotice",
143
143
  setup(e) {
144
- const { t: s } = useI18n();
145
- return (i, t) => (openBlock(), createElementBlock("span", null, [
146
- createTextVNode(toDisplayString(unref(s)("googleNotice")) + " ", 1),
147
- createBaseVNode("a", _hoisted_1$1, toDisplayString(unref(s)("googlePrivacyPolicy")), 1),
148
- createTextVNode(" " + toDisplayString(unref(s)("googleAnd")) + " ", 1),
149
- createBaseVNode("a", _hoisted_2$1, toDisplayString(unref(s)("googleTOS")), 1),
150
- createTextVNode(" " + toDisplayString(unref(s)("googleApply")) + ". ", 1)
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
151
  ]));
152
152
  }
153
153
  });
154
154
  function block0(e) {
155
- const s = e;
156
- s.__i18n = s.__i18n || [], s.__i18n.push({
155
+ const t = e;
156
+ t.__i18n = t.__i18n || [], t.__i18n.push({
157
157
  locale: "",
158
158
  resource: {
159
159
  da: {
160
- googleNotice: (i) => {
161
- const { normalize: t } = i;
162
- return t(["Denne side er beskyttet af reCAPTCHA og Google's"]);
163
- },
164
- googlePrivacyPolicy: (i) => {
165
- const { normalize: t } = i;
166
- return t(["Privatlivspolitik"]);
167
- },
168
- googleAnd: (i) => {
169
- const { normalize: t } = i;
170
- return t(["og"]);
171
- },
172
- googleTOS: (i) => {
173
- const { normalize: t } = i;
174
- return t(["Servicevilkår"]);
175
- },
176
- googleApply: (i) => {
177
- const { normalize: t } = i;
178
- return t(["er gældende"]);
179
- }
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" } }
180
165
  },
181
166
  en: {
182
- googleNotice: (i) => {
183
- const { normalize: t } = i;
184
- return t(["This site is protected by reCAPTCHA and the Google"]);
185
- },
186
- googlePrivacyPolicy: (i) => {
187
- const { normalize: t } = i;
188
- return t(["Privacy Policy"]);
189
- },
190
- googleAnd: (i) => {
191
- const { normalize: t } = i;
192
- return t(["and"]);
193
- },
194
- googleTOS: (i) => {
195
- const { normalize: t } = i;
196
- return t(["Terms of Service"]);
197
- },
198
- googleApply: (i) => {
199
- const { normalize: t } = i;
200
- return t(["apply"]);
201
- }
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" } }
202
172
  }
203
173
  }
204
174
  });
@@ -209,19 +179,19 @@ const _withScopeId = (e) => (pushScopeId("data-v-340cb9ce"), e = e(), popScopeId
209
179
  ], _sfc_main = /* @__PURE__ */ defineComponent({
210
180
  __name: "CheckoutWindow",
211
181
  setup(e) {
212
- const { paymentGatewayId: s } = storeToRefs(useUtilityStore());
182
+ const { paymentGatewayId: t } = storeToRefs(useUtilityStore());
213
183
  return onMounted(() => {
214
- const i = document.createElement("script"), t = document.createElement("script");
215
- i.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), t.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(i), document.head.appendChild(t);
216
- }), (i, t) => (openBlock(), createElementBlock("div", null, [
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, [
217
187
  createBaseVNode("div", {
218
188
  id: "fresh-booking-payment-checkout-wrapper",
219
- class: normalizeClass({ reePay: unref(s) === unref(PaymentGateway).ReePay })
189
+ class: normalizeClass({ reePay: unref(t) === unref(PaymentGateway).ReePay })
220
190
  }, _hoisted_2, 2)
221
191
  ]));
222
192
  }
223
193
  }), CheckoutWindow_vue_vue_type_style_index_0_scoped_340cb9ce_lang = "", CheckoutWindow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-340cb9ce"]]);
224
- var a = Object.defineProperty, c = (e, s, i) => s in e ? a(e, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[s] = i, o = (e, s, i) => (c(e, typeof s != "symbol" ? s + "" : s, i), i);
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);
225
195
  const namespace = "@@vue3-sticky-directive", events = [
226
196
  "resize",
227
197
  "scroll",
@@ -230,15 +200,15 @@ const namespace = "@@vue3-sticky-directive", events = [
230
200
  "touchend",
231
201
  "pageshow",
232
202
  "load"
233
- ], batchStyle = (e, s = {}, i = {}) => {
234
- for (let t in s)
235
- e.style[t] = s[t];
236
- for (let t in i)
237
- i[t] && !e.classList.contains(t) ? e.classList.add(t) : !i[t] && e.classList.contains(t) && e.classList.remove(t);
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);
238
208
  };
239
209
  class Sticky {
240
- constructor(e, s) {
241
- 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 = s, this.unSubscribers = [], this.isPending = !1, this.state = {
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 = {
242
212
  isTopSticky: null,
243
213
  isBottomSticky: null,
244
214
  height: null,
@@ -249,12 +219,12 @@ class Sticky {
249
219
  bottom: null,
250
220
  sticked: !1
251
221
  };
252
- const i = this.getAttribute("sticky-offset") || {}, t = this.getAttribute("sticky-side") || "top", r = this.getAttribute("sticky-z-index") || "10", n = this.getAttribute("on-stick") || null;
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;
253
223
  this.options = {
254
- topOffset: Number(i.top) || 0,
255
- bottomOffset: Number(i.bottom) || 0,
256
- shouldTopSticky: t === "top" || t === "both",
257
- shouldBottomSticky: t === "bottom" || t === "both",
224
+ topOffset: Number(s.top) || 0,
225
+ bottomOffset: Number(s.bottom) || 0,
226
+ shouldTopSticky: i === "top" || i === "both",
227
+ shouldBottomSticky: i === "bottom" || i === "both",
258
228
  zIndex: r,
259
229
  onStick: n
260
230
  };
@@ -262,11 +232,11 @@ class Sticky {
262
232
  doBind() {
263
233
  if (this.unSubscribers.length > 0)
264
234
  return;
265
- const { el: e, vm: s } = this;
266
- s.$nextTick(() => {
267
- this.placeholderEl = document.createElement("div"), this.containerEl = this.getContainerEl(), e.parentElement.insertBefore(this.placeholderEl, e), events.forEach((i) => {
268
- const t = this.update.bind(this);
269
- this.unSubscribers.push(() => window.removeEventListener(i, t)), this.unSubscribers.push(() => this.containerEl.removeEventListener(i, t)), window.addEventListener(i, t, { passive: !0 }), this.containerEl.addEventListener(i, t, { passive: !0 });
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 });
270
240
  });
271
241
  });
272
242
  }
@@ -281,14 +251,14 @@ class Sticky {
281
251
  isTopSticky() {
282
252
  if (!this.options.shouldTopSticky)
283
253
  return !1;
284
- const e = this.state.placeholderElRect.top, s = this.state.containerElRect.bottom, i = this.options.topOffset, t = this.options.bottomOffset;
285
- return e <= i && s >= t;
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;
286
256
  }
287
257
  isBottomSticky() {
288
258
  if (!this.options.shouldBottomSticky)
289
259
  return !1;
290
- const e = window.innerHeight - this.state.placeholderElRect.top - this.state.height, s = window.innerHeight - this.state.containerElRect.top, i = this.options.topOffset, t = this.options.bottomOffset;
291
- return e <= t && s >= i;
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;
292
262
  }
293
263
  recomputeState() {
294
264
  this.state = Object.assign({}, this.state, {
@@ -309,35 +279,35 @@ class Sticky {
309
279
  updateElements() {
310
280
  const e = {
311
281
  paddingTop: 0
312
- }, s = {
282
+ }, t = {
313
283
  position: "static",
314
284
  top: "auto",
315
285
  bottom: "auto",
316
286
  left: "auto",
317
287
  width: "auto",
318
288
  zIndex: this.options.zIndex
319
- }, i = {
289
+ }, s = {
320
290
  "vue-sticky-placeholder": !0
321
- }, t = {
291
+ }, i = {
322
292
  "vue-sticky-el": !0,
323
293
  "top-sticky": !1,
324
294
  "bottom-sticky": !1
325
295
  };
326
296
  if (this.state.isTopSticky) {
327
- s.position = "fixed", s.top = this.options.topOffset + "px", s.left = this.state.xOffset + "px", s.width = this.state.width + "px";
297
+ t.position = "fixed", t.top = this.options.topOffset + "px", t.left = this.state.xOffset + "px", t.width = this.state.width + "px";
328
298
  const r = this.state.containerElRect.bottom - this.state.height - this.options.bottomOffset - this.options.topOffset;
329
- r < 0 && (s.top = r + this.options.topOffset + "px"), e.paddingTop = this.state.height + "px", t["top-sticky"] = !0;
299
+ r < 0 && (t.top = r + this.options.topOffset + "px"), e.paddingTop = this.state.height + "px", i["top-sticky"] = !0;
330
300
  } else if (this.state.isBottomSticky) {
331
- s.position = "fixed", s.bottom = this.options.bottomOffset + "px", s.left = this.state.xOffset + "px", s.width = this.state.width + "px";
301
+ t.position = "fixed", t.bottom = this.options.bottomOffset + "px", t.left = this.state.xOffset + "px", t.width = this.state.width + "px";
332
302
  const r = window.innerHeight - this.state.containerElRect.top - this.state.height - this.options.bottomOffset - this.options.topOffset;
333
- r < 0 && (s.bottom = r + this.options.bottomOffset + "px"), e.paddingTop = this.state.height + "px", t["bottom-sticky"] = !0;
303
+ r < 0 && (t.bottom = r + this.options.bottomOffset + "px"), e.paddingTop = this.state.height + "px", i["bottom-sticky"] = !0;
334
304
  } else
335
305
  e.paddingTop = 0;
336
- batchStyle(this.el, s, t), batchStyle(this.placeholderEl, e, i), this.fireEvents();
306
+ batchStyle(this.el, t, i), batchStyle(this.placeholderEl, e, s), this.fireEvents();
337
307
  }
338
308
  resetElement() {
339
- ["position", "top", "bottom", "left", "width", "zIndex"].forEach((s) => {
340
- this.el.style.removeProperty(s);
309
+ ["position", "top", "bottom", "left", "width", "zIndex"].forEach((t) => {
310
+ this.el.style.removeProperty(t);
341
311
  }), this.el.classList.remove("bottom-sticky", "top-sticky");
342
312
  const { parentElement: e } = this.placeholderEl;
343
313
  e && e.removeChild(this.placeholderEl);
@@ -382,14 +352,14 @@ class Sticky {
382
352
  }
383
353
  }
384
354
  const Sticky$1 = {
385
- mounted(e, s) {
386
- (typeof s.value > "u" || s.value) && (e[namespace] = new Sticky(e, s.instance), e[namespace].doBind());
355
+ mounted(e, t) {
356
+ (typeof t.value > "u" || t.value) && (e[namespace] = new Sticky(e, t.instance), e[namespace].doBind());
387
357
  },
388
358
  unmounted(e) {
389
359
  e[namespace] && (e[namespace].doUnbind(), e[namespace] = void 0);
390
360
  },
391
- updated(e, s) {
392
- typeof s.value > "u" || s.value ? (e[namespace] || (e[namespace] = new Sticky(e, s.instance)), e[namespace].doBind()) : e[namespace] && e[namespace].doUnbind();
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();
393
363
  }
394
364
  }, StickyPlugin = {
395
365
  install(e) {
Binary file