@konnectio/core 4.0.10 → 4.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/ActionField-23ce1b2a.cjs +1 -0
  2. package/dist/{ActionField-68f65af4.js → ActionField-311942d2.js} +21 -21
  3. package/dist/ActionField-311942d2.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-c48588e4.js → AvailabilitySkeleton-2dfbb28e.js} +80 -80
  5. package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-7d9e2680.cjs +1 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-b6694990.cjs → DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs} +3 -3
  8. package/dist/{DateField.vue_vue_type_style_index_0_lang-87ddfed8.js → DateField.vue_vue_type_style_index_0_lang-ec35955b.js} +1816 -1820
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
  10. package/dist/{Field-d926807f.cjs → Field-dcffacf2.cjs} +1 -1
  11. package/dist/{Field-b76d82cb.js → Field-ff599d13.js} +2 -2
  12. package/dist/Field-ff599d13.js.br +0 -0
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js → NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js} +28 -28
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs +1 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +802 -0
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-c973d794.js → SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js} +7754 -7718
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
  19. package/dist/TextField-6f7e37d9.cjs +54 -0
  20. package/dist/{TextField-8f6e5ef5.js → TextField-cd93b966.js} +3241 -3241
  21. package/dist/TextField-cd93b966.js.br +0 -0
  22. package/dist/{ThankYou-8ae535bf.cjs → ThankYou-3d74a6dc.cjs} +2 -2
  23. package/dist/{ThankYou-2f3c4efe.js → ThankYou-c1878478.js} +48 -47
  24. package/dist/ThankYou-c1878478.js.br +0 -0
  25. package/dist/{_-3cff5490.cjs → _-0895679a.cjs} +1 -1
  26. package/dist/{_-734c9d50.js → _-8772cf9a.js} +1 -1
  27. package/dist/_-8772cf9a.js.br +0 -0
  28. package/dist/availability.cjs +1 -1
  29. package/dist/availability.js +7 -7
  30. package/dist/availability.js.br +0 -0
  31. package/dist/{event-e08d0178.js → event-60e076f2.js} +36 -36
  32. package/dist/event-60e076f2.js.br +0 -0
  33. package/dist/event-8e90a6e3.cjs +1 -0
  34. package/dist/event.cjs +1 -1
  35. package/dist/event.js +98 -98
  36. package/dist/event.js.br +0 -0
  37. package/dist/gift-card-validation.cjs +1 -1
  38. package/dist/gift-card-validation.js +4 -4
  39. package/dist/gift-card-validation.js.br +0 -0
  40. package/dist/gift-card.cjs +1 -1
  41. package/dist/gift-card.js +192 -192
  42. package/dist/gift-card.js.br +0 -0
  43. package/dist/hotel.cjs +5 -5
  44. package/dist/hotel.js +1406 -1395
  45. package/dist/hotel.js.br +0 -0
  46. package/dist/index-345407fb.cjs +1 -0
  47. package/dist/{index-c28f52d1.js → index-b5d8f4fc.js} +83 -83
  48. package/dist/index-b5d8f4fc.js.br +0 -0
  49. package/dist/polyfill.cjs +4 -4
  50. package/dist/polyfill.js +3311 -3398
  51. package/dist/polyfill.js.br +0 -0
  52. package/dist/store/payment.d.ts +1 -1
  53. package/package.json +6 -6
  54. package/dist/ActionField-68f65af4.js.br +0 -0
  55. package/dist/ActionField-ab9c01ab.cjs +0 -1
  56. package/dist/AvailabilitySkeleton-c48588e4.js.br +0 -0
  57. package/dist/AvailabilitySkeleton-ca6cf6b6.cjs +0 -1
  58. package/dist/DateField.vue_vue_type_style_index_0_lang-87ddfed8.js.br +0 -0
  59. package/dist/Field-b76d82cb.js.br +0 -0
  60. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js.br +0 -0
  61. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs +0 -1
  62. package/dist/SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs +0 -806
  63. package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js.br +0 -0
  64. package/dist/TextField-528ca68c.cjs +0 -54
  65. package/dist/TextField-8f6e5ef5.js.br +0 -0
  66. package/dist/ThankYou-2f3c4efe.js.br +0 -0
  67. package/dist/_-734c9d50.js.br +0 -0
  68. package/dist/event-4662e27c.cjs +0 -1
  69. package/dist/event-e08d0178.js.br +0 -0
  70. package/dist/index-a46a0876.cjs +0 -1
  71. package/dist/index-c28f52d1.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-4755fb8a.cjs"),TextField=require("./TextField-6f7e37d9.cjs");function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(i){_defineProperty(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var load=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(i,r){if(!(typeof document>"u")){var l=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");if(s.async=!0,s.src=t,s.defer=n.defer,n.preconnectOrigin){var u=document.createElement("link");u.href=n.preconnectOrigin,u.rel="preconnect",l.appendChild(u)}l.appendChild(s),s.onload=i,s.onerror=r}})},mergeDeep=function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(!i.length)return t;var l=i.shift();if(!(!SelectField_vue_vue_type_style_index_0_lang.isPlainObject(t)||!SelectField_vue_vue_type_style_index_0_lang.isPlainObject(l))){for(var s in l)SelectField_vue_vue_type_style_index_0_lang.isPlainObject(l[s])?(t[s]||Object.assign(t,_defineProperty({},s,{})),e(t[s],l[s])):Object.assign(t,_defineProperty({},s,l[s]));return e.apply(void 0,[t].concat(i))}},isBrowser=function(){return!(typeof window>"u"||typeof document>"u")},warn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;isBrowser()},validateScreenviewShape=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return warn('Missing "appName" property inside the plugin options.',t.app_name==null),warn('Missing "name" property in the route.',t.screen_name==null),t};function getPathWithBase(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e.split("/"),i=t.split("/");return n[0]===""&&t[t.length-1]==="/"&&n.shift(),i.join("/")+n.join("/")}var getDefaultParams=function(){return{bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}}},params={},setOptions=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=getDefaultParams();params=mergeDeep(n,t)},getOptions=function(){return params},query=function(){var e,t=getOptions(),n=t.globalObjectName;!isBrowser()||typeof window[n]>"u"||(e=window)[n].apply(e,arguments)},config=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=getOptions(),r=i.config,l=i.includes;query.apply(void 0,["config",r.id].concat(t)),Array.isArray(l)&&l.forEach(function(s){query.apply(void 0,["config",s.id].concat(t))})},assignGlobalProperty=function(t,n){isBrowser()&&(window["ga-disable-".concat(t)]=n)},disable=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=getOptions(),n=t.config,i=t.includes;assignGlobalProperty(n.id,e),Array.isArray(i)&&i.forEach(function(r){return assignGlobalProperty(r.id,e)})},optOut=function(){disable(!0)},optIn=function(){disable(!1)},router,setRouter=function(t){router=t},getRouter=function(){return router},event=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=getOptions(),i=n.includes,r=n.defaultGroupName;t.send_to==null&&Array.isArray(i)&&i.length&&(t.send_to=i.map(function(l){return l.id}).concat(r)),query("event",e,t)},pageview=function(e){if(isBrowser()){var t;if(typeof e=="string")t={page_path:e};else if(e.path||e.fullPath){var n=getOptions(),i=n.pageTrackerUseFullPath,r=n.pageTrackerPrependBase,l=getRouter(),s=l&&l.options.base,u=i?e.fullPath:e.path;t=_objectSpread2(_objectSpread2({},e.name&&{page_title:e.name}),{},{page_path:r?getPathWithBase(u,s):u})}else t=e;t.page_location==null&&(t.page_location=window.location.href),t.send_page_view==null&&(t.send_page_view=!0),event("page_view",t)}},screenview=function(e){var t=getOptions(),n=t.appName;if(e){var i;typeof e=="string"?i={screen_name:e}:i=e,i.app_name=i.app_name||n,event("screen_view",i)}},exception=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];event.apply(void 0,["exception"].concat(t))},linker=function(e){config("linker",e)},time=function(e){event("timing_complete",e)},set=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];query.apply(void 0,["set"].concat(t))},refund=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];event.apply(void 0,["refund"].concat(t))},purchase=function(e){event("purchase",e)},customMap=function(e){config({custom_map:e})},api=Object.freeze({__proto__:null,query,config,optOut,optIn,pageview,screenview,exception,linker,time,set,refund,purchase,customMap,event}),attachApi=function(t){t.config.globalProperties.$gtag=api},registerGlobals=function(){if(isBrowser()){var e=getOptions(),t=e.enabled,n=e.globalObjectName,i=e.globalDataLayerName;return window[n]==null&&(window[i]=window[i]||[],window[n]=function(){window[i].push(arguments)}),window[n]("js",new Date),t||optOut(),window[n]}},mergeDefaultParams=function(t){return _objectSpread2({send_page_view:!1},t)},addConfiguration=function(){var e=getOptions(),t=e.config,n=e.includes;query("config",t.id,mergeDefaultParams(t.params)),Array.isArray(n)&&n.forEach(function(i){query("config",i.id,mergeDefaultParams(i.params))})},track=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=getOptions(),i=n.appName,r=n.pageTrackerTemplate,l=n.pageTrackerScreenviewEnabled,s=n.pageTrackerSkipSamePath;if(!(s&&e.path===t.path)){var u=e;if(SelectField_vue_vue_type_style_index_0_lang.isFunction(r)?u=r(e,t):l&&(u=validateScreenviewShape({app_name:i,screen_name:e.name})),l){screenview(u);return}pageview(u)}},isRouteExcluded=function(t){var n=getOptions(),i=n.pageTrackerExcludedRoutes;return i.includes(t.path)||i.includes(t.name)},addRoutesTracker=function(){var e=getOptions(),t=e.onBeforeTrack,n=e.onAfterTrack,i=getRouter();i.isReady().then(function(){SelectField_vue_vue_type_style_index_0_lang.nextTick().then(function(){var r=i.currentRoute;addConfiguration(),!isRouteExcluded(r.value)&&track(r.value)}),i.afterEach(function(r,l){SelectField_vue_vue_type_style_index_0_lang.nextTick().then(function(){isRouteExcluded(r)||(SelectField_vue_vue_type_style_index_0_lang.isFunction(t)&&t(r,l),track(r,l),SelectField_vue_vue_type_style_index_0_lang.isFunction(n)&&n(r,l))})})})},bootstrap=function(){var e=getOptions(),t=e.onReady,n=e.onError,i=e.globalObjectName,r=e.globalDataLayerName,l=e.config,s=e.customResourceURL,u=e.customPreconnectOrigin,_=e.deferScriptLoad,d=e.pageTrackerEnabled,p=e.disableScriptLoad,v=!!(d&&getRouter());if(registerGlobals(),v?addRoutesTracker():addConfiguration(),!p)return load("".concat(s,"?id=").concat(l.id,"&l=").concat(r),{preconnectOrigin:u,defer:_}).then(function(){t&&t(window[i])}).catch(function(g){return n&&n(g),g})},install=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;attachApi(t),setOptions(n),setRouter(i),getOptions().bootstrap&&bootstrap()};const _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 n=t,i=e,r=i.id||SelectField_vue_vue_type_style_index_0_lang.ranId(),l=SelectField_vue_vue_type_style_index_0_lang.ref("+45"),s=SelectField_vue_vue_type_style_index_0_lang.ref("");function u(){n("update:modelValue",`${l.value} ${s.value}`)}return SelectField_vue_vue_type_style_index_0_lang.onMounted(()=>{if(i.modelValue){const _=i.modelValue.split(" ");l.value=_[0],s.value=_[1]}}),(_,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,{label:_.label,id:SelectField_vue_vue_type_style_index_0_lang.unref(r),type:"phone",required:_.required,readonly:_.readonly},{default:SelectField_vue_vue_type_style_index_0_lang.withCtx(()=>[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("div",_hoisted_1$3,[SelectField_vue_vue_type_style_index_0_lang.createVNode(TextField.TextField,{modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=p=>l.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:_.icon,"icon-color":_.iconColor,"icon-type":_.iconType,placeholder:"+45",required:_.required,readonly:_.readonly,"input-style":_.inputStyle,onInput:d[1]||(d[1]=p=>u())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),SelectField_vue_vue_type_style_index_0_lang.createVNode(TextField.TextField,{modelValue:s.value,"onUpdate:modelValue":d[2]||(d[2]=p=>s.value=p),type:"number",name:"phone",autocomplete:"tel-national",id:SelectField_vue_vue_type_style_index_0_lang.unref(r),placeholder:_.placeholder,required:_.required,readonly:_.readonly,"input-style":_.inputStyle,onInput:d[3]||(d[3]=p=>u())},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 n=e,i=t;function r(){n.readonly!==!0&&i("update:modelValue",n.type==="radio"?n.val:n.numeric?n.modelValue?0:1:!n.modelValue)}return(l,s)=>(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:l.required,type:l.type,readonly:l.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":l.readonly},{"has-label":l.label},l.type==="radio"?"radio":"checkbox"])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("input",SelectField_vue_vue_type_style_index_0_lang.mergeProps(l.$attrs,{required:!!l.required,type:l.type,name:l.name,class:"hidden",readonly:!!l.readonly,disabled:!!l.readonly,value:l.type==="radio"?l.val:l.modelValue,checked:l.type==="radio"?l.val===l.modelValue:!!l.modelValue,onChange:s[0]||(s[0]=u=>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:l.type==="radio"?l.val===l.modelValue:!!l.modelValue}]),tabindex:"0",style:SelectField_vue_vue_type_style_index_0_lang.normalizeStyle(l.inputStyle),"data-test":l.name,onKeyup:s[1]||(s[1]=SelectField_vue_vue_type_style_index_0_lang.withKeys(u=>r(),["enter"]))},null,46,_hoisted_2$2),l.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":l.price}])},[SelectField_vue_vue_type_style_index_0_lang.createBaseVNode("span",null,SelectField_vue_vue_type_style_index_0_lang.toDisplayString(l.label),1),l.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(l.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(n,i)=>(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:n=>{const{normalize:i}=n;return i(["Denne side er beskyttet af reCAPTCHA og Google's"])},googlePrivacyPolicy:n=>{const{normalize:i}=n;return i(["Privatlivspolitik"])},googleAnd:n=>{const{normalize:i}=n;return i(["og"])},googleTOS:n=>{const{normalize:i}=n;return i(["Servicevilkår"])},googleApply:n=>{const{normalize:i}=n;return i(["er gældende"])}},en:{googleNotice:n=>{const{normalize:i}=n;return i(["This site is protected by reCAPTCHA and the Google"])},googlePrivacyPolicy:n=>{const{normalize:i}=n;return i(["Privacy Policy"])},googleAnd:n=>{const{normalize:i}=n;return i(["and"])},googleTOS:n=>{const{normalize:i}=n;return i(["Terms of Service"])},googleApply:n=>{const{normalize:i}=n;return i(["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 n=document.createElement("script"),i=document.createElement("script");n.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),i.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(n),document.head.appendChild(i)}),(n,i)=>(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,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t,n)=>(c(e,typeof t!="symbol"?t+"":t,n),n);const namespace="@@vue3-sticky-directive",events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],batchStyle=(e,t={},n={})=>{for(let i in t)e.style[i]=t[i];for(let i in n)n[i]&&!e.classList.contains(i)?e.classList.add(i):!n[i]&&e.classList.contains(i)&&e.classList.remove(i)};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 n=this.getAttribute("sticky-offset")||{},i=this.getAttribute("sticky-side")||"top",r=this.getAttribute("sticky-z-index")||"10",l=this.getAttribute("on-stick")||null;this.options={topOffset:Number(n.top)||0,bottomOffset:Number(n.bottom)||0,shouldTopSticky:i==="top"||i==="both",shouldBottomSticky:i==="bottom"||i==="both",zIndex:r,onStick:l}}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(n=>{const i=this.update.bind(this);this.unSubscribers.push(()=>window.removeEventListener(n,i)),this.unSubscribers.push(()=>this.containerEl.removeEventListener(n,i)),window.addEventListener(n,i,{passive:!0}),this.containerEl.addEventListener(n,i,{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,n=this.options.topOffset,i=this.options.bottomOffset;return e<=n&&t>=i}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,n=this.options.topOffset,i=this.options.bottomOffset;return e<=i&&t>=n}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},n={"vue-sticky-placeholder":!0},i={"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 r=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;r<0&&(t.top=r+this.options.topOffset+"px"),e.paddingTop=this.state.height+"px",i["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 r=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;r<0&&(t.bottom=r+this.options.bottomOffset+"px"),e.paddingTop=this.state.height+"px",i["bottom-sticky"]=!0}else e.paddingTop=0;batchStyle(this.el,t,i),batchStyle(this.placeholderEl,e,n),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;exports.event=event;exports.install=install;exports.setOptions=setOptions;
@@ -1,5 +1,5 @@
1
- import { ae as isPlainObject, af as nextTick, ag as isFunction, h as defineComponent, j as ranId, r as ref, o as onMounted, k as openBlock, l as createBlock, w as withCtx, x as createBaseVNode, m as createVNode, n as unref, I as InputField, _ as _export_sfc, ah as mergeProps, v as normalizeClass, ai as normalizeStyle, aj as withKeys, q as createElementBlock, z as toDisplayString, t as createCommentVNode, y as useI18n, a3 as createTextVNode, s as storeToRefs, a as useUtilityStore, Q as PaymentGateway, K as pushScopeId, L as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-c973d794.js";
2
- import { T as TextField } from "./TextField-8f6e5ef5.js";
1
+ import { ae as isPlainObject, af as nextTick, ag as isFunction, h as defineComponent, j as ranId, r as ref, o as onMounted, k as openBlock, l as createBlock, w as withCtx, x as createBaseVNode, m as createVNode, n as unref, I as InputField, _ as _export_sfc, ah as mergeProps, v as normalizeClass, ai as normalizeStyle, aj as withKeys, q as createElementBlock, z as toDisplayString, t as createCommentVNode, y as useI18n, a3 as createTextVNode, s as storeToRefs, a as useUtilityStore, Q as PaymentGateway, K as pushScopeId, L as popScopeId } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
2
+ import { T as TextField } from "./TextField-cd93b966.js";
3
3
  function _defineProperty(e, t, n) {
4
4
  return t in e ? Object.defineProperty(e, t, {
5
5
  value: n,
@@ -12,8 +12,8 @@ function ownKeys(e, t) {
12
12
  var n = Object.keys(e);
13
13
  if (Object.getOwnPropertySymbols) {
14
14
  var i = Object.getOwnPropertySymbols(e);
15
- t && (i = i.filter(function(r) {
16
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
15
+ t && (i = i.filter(function(s) {
16
+ return Object.getOwnPropertyDescriptor(e, s).enumerable;
17
17
  })), n.push.apply(n, i);
18
18
  }
19
19
  return n;
@@ -31,25 +31,25 @@ function _objectSpread2(e) {
31
31
  }
32
32
  var load = function(t) {
33
33
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
34
- return new Promise(function(i, r) {
34
+ return new Promise(function(i, s) {
35
35
  if (!(typeof document > "u")) {
36
- var s = document.head || document.getElementsByTagName("head")[0], u = document.createElement("script");
37
- if (u.async = !0, u.src = t, u.defer = n.defer, n.preconnectOrigin) {
38
- var l = document.createElement("link");
39
- l.href = n.preconnectOrigin, l.rel = "preconnect", s.appendChild(l);
36
+ var r = document.head || document.getElementsByTagName("head")[0], l = document.createElement("script");
37
+ if (l.async = !0, l.src = t, l.defer = n.defer, n.preconnectOrigin) {
38
+ var u = document.createElement("link");
39
+ u.href = n.preconnectOrigin, u.rel = "preconnect", r.appendChild(u);
40
40
  }
41
- s.appendChild(u), u.onload = i, u.onerror = r;
41
+ r.appendChild(l), l.onload = i, l.onerror = s;
42
42
  }
43
43
  });
44
44
  }, mergeDeep = function e(t) {
45
- for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
46
- i[r - 1] = arguments[r];
45
+ for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
46
+ i[s - 1] = arguments[s];
47
47
  if (!i.length)
48
48
  return t;
49
- var s = i.shift();
50
- if (!(!isPlainObject(t) || !isPlainObject(s))) {
51
- for (var u in s)
52
- isPlainObject(s[u]) ? (t[u] || Object.assign(t, _defineProperty({}, u, {})), e(t[u], s[u])) : Object.assign(t, _defineProperty({}, u, s[u]));
49
+ var r = i.shift();
50
+ if (!(!isPlainObject(t) || !isPlainObject(r))) {
51
+ for (var l in r)
52
+ isPlainObject(r[l]) ? (t[l] || Object.assign(t, _defineProperty({}, l, {})), e(t[l], r[l])) : Object.assign(t, _defineProperty({}, l, r[l]));
53
53
  return e.apply(void 0, [t].concat(i));
54
54
  }
55
55
  }, isBrowser = function() {
@@ -107,16 +107,16 @@ var getDefaultParams = function() {
107
107
  }, config = function() {
108
108
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
109
109
  t[n] = arguments[n];
110
- var i = getOptions(), r = i.config, s = i.includes;
111
- query.apply(void 0, ["config", r.id].concat(t)), Array.isArray(s) && s.forEach(function(u) {
112
- query.apply(void 0, ["config", u.id].concat(t));
110
+ var i = getOptions(), s = i.config, r = i.includes;
111
+ query.apply(void 0, ["config", s.id].concat(t)), Array.isArray(r) && r.forEach(function(l) {
112
+ query.apply(void 0, ["config", l.id].concat(t));
113
113
  });
114
114
  }, assignGlobalProperty = function(t, n) {
115
115
  isBrowser() && (window["ga-disable-".concat(t)] = n);
116
116
  }, disable = function() {
117
117
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = getOptions(), n = t.config, i = t.includes;
118
- assignGlobalProperty(n.id, e), Array.isArray(i) && i.forEach(function(r) {
119
- return assignGlobalProperty(r.id, e);
118
+ assignGlobalProperty(n.id, e), Array.isArray(i) && i.forEach(function(s) {
119
+ return assignGlobalProperty(s.id, e);
120
120
  });
121
121
  }, optOut = function() {
122
122
  disable(!0);
@@ -127,10 +127,10 @@ var getDefaultParams = function() {
127
127
  }, getRouter = function() {
128
128
  return router;
129
129
  }, event = function(e) {
130
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = getOptions(), i = n.includes, r = n.defaultGroupName;
131
- t.send_to == null && Array.isArray(i) && i.length && (t.send_to = i.map(function(s) {
132
- return s.id;
133
- }).concat(r)), query("event", e, t);
130
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = getOptions(), i = n.includes, s = n.defaultGroupName;
131
+ t.send_to == null && Array.isArray(i) && i.length && (t.send_to = i.map(function(r) {
132
+ return r.id;
133
+ }).concat(s)), query("event", e, t);
134
134
  }, pageview = function(e) {
135
135
  if (isBrowser()) {
136
136
  var t;
@@ -139,11 +139,11 @@ var getDefaultParams = function() {
139
139
  page_path: e
140
140
  };
141
141
  else if (e.path || e.fullPath) {
142
- var n = getOptions(), i = n.pageTrackerUseFullPath, r = n.pageTrackerPrependBase, s = getRouter(), u = s && s.options.base, l = i ? e.fullPath : e.path;
142
+ var n = getOptions(), i = n.pageTrackerUseFullPath, s = n.pageTrackerPrependBase, r = getRouter(), l = r && r.options.base, u = i ? e.fullPath : e.path;
143
143
  t = _objectSpread2(_objectSpread2({}, e.name && {
144
144
  page_title: e.name
145
145
  }), {}, {
146
- page_path: r ? getPathWithBase(l, u) : l
146
+ page_path: s ? getPathWithBase(u, l) : u
147
147
  });
148
148
  } else
149
149
  t = e;
@@ -214,17 +214,17 @@ var getDefaultParams = function() {
214
214
  query("config", i.id, mergeDefaultParams(i.params));
215
215
  });
216
216
  }, track = function() {
217
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = getOptions(), i = n.appName, r = n.pageTrackerTemplate, s = n.pageTrackerScreenviewEnabled, u = n.pageTrackerSkipSamePath;
218
- if (!(u && e.path === t.path)) {
219
- var l = e;
220
- if (isFunction(r) ? l = r(e, t) : s && (l = validateScreenviewShape({
217
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = getOptions(), i = n.appName, s = n.pageTrackerTemplate, r = n.pageTrackerScreenviewEnabled, l = n.pageTrackerSkipSamePath;
218
+ if (!(l && e.path === t.path)) {
219
+ var u = e;
220
+ if (isFunction(s) ? u = s(e, t) : r && (u = validateScreenviewShape({
221
221
  app_name: i,
222
222
  screen_name: e.name
223
- })), s) {
224
- screenview(l);
223
+ })), r) {
224
+ screenview(u);
225
225
  return;
226
226
  }
227
- pageview(l);
227
+ pageview(u);
228
228
  }
229
229
  }, isRouteExcluded = function(t) {
230
230
  var n = getOptions(), i = n.pageTrackerExcludedRoutes;
@@ -233,24 +233,24 @@ var getDefaultParams = function() {
233
233
  var e = getOptions(), t = e.onBeforeTrack, n = e.onAfterTrack, i = getRouter();
234
234
  i.isReady().then(function() {
235
235
  nextTick().then(function() {
236
- var r = i.currentRoute;
237
- addConfiguration(), !isRouteExcluded(r.value) && track(r.value);
238
- }), i.afterEach(function(r, s) {
236
+ var s = i.currentRoute;
237
+ addConfiguration(), !isRouteExcluded(s.value) && track(s.value);
238
+ }), i.afterEach(function(s, r) {
239
239
  nextTick().then(function() {
240
- isRouteExcluded(r) || (isFunction(t) && t(r, s), track(r, s), isFunction(n) && n(r, s));
240
+ isRouteExcluded(s) || (isFunction(t) && t(s, r), track(s, r), isFunction(n) && n(s, r));
241
241
  });
242
242
  });
243
243
  });
244
244
  }, bootstrap = function() {
245
- var e = getOptions(), t = e.onReady, n = e.onError, i = e.globalObjectName, r = e.globalDataLayerName, s = e.config, u = e.customResourceURL, l = e.customPreconnectOrigin, p = e.deferScriptLoad, d = e.pageTrackerEnabled, h = e.disableScriptLoad, g = !!(d && getRouter());
246
- if (registerGlobals(), g ? addRoutesTracker() : addConfiguration(), !h)
247
- return load("".concat(u, "?id=").concat(s.id, "&l=").concat(r), {
248
- preconnectOrigin: l,
245
+ var e = getOptions(), t = e.onReady, n = e.onError, i = e.globalObjectName, s = e.globalDataLayerName, r = e.config, l = e.customResourceURL, u = e.customPreconnectOrigin, p = e.deferScriptLoad, d = e.pageTrackerEnabled, f = e.disableScriptLoad, m = !!(d && getRouter());
246
+ if (registerGlobals(), m ? addRoutesTracker() : addConfiguration(), !f)
247
+ return load("".concat(l, "?id=").concat(r.id, "&l=").concat(s), {
248
+ preconnectOrigin: u,
249
249
  defer: p
250
250
  }).then(function() {
251
251
  t && t(window[i]);
252
- }).catch(function(f) {
253
- return n && n(f), f;
252
+ }).catch(function(h) {
253
+ return n && n(h), h;
254
254
  });
255
255
  }, install = function(t) {
256
256
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 ? arguments[2] : void 0;
@@ -272,52 +272,52 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
272
272
  },
273
273
  emits: ["update:modelValue"],
274
274
  setup(e, { emit: t }) {
275
- const n = e, i = n.id || ranId(), r = ref("+45"), s = ref("");
275
+ const n = t, i = e, s = i.id || ranId(), r = ref("+45"), l = ref("");
276
276
  function u() {
277
- t("update:modelValue", `${r.value} ${s.value}`);
277
+ n("update:modelValue", `${r.value} ${l.value}`);
278
278
  }
279
279
  return onMounted(() => {
280
- if (n.modelValue) {
281
- const l = n.modelValue.split(" ");
282
- r.value = l[0], s.value = l[1];
280
+ if (i.modelValue) {
281
+ const p = i.modelValue.split(" ");
282
+ r.value = p[0], l.value = p[1];
283
283
  }
284
- }), (l, p) => (openBlock(), createBlock(InputField, {
285
- label: l.label,
286
- id: unref(i),
284
+ }), (p, d) => (openBlock(), createBlock(InputField, {
285
+ label: p.label,
286
+ id: unref(s),
287
287
  type: "phone",
288
- required: l.required,
289
- readonly: l.readonly
288
+ required: p.required,
289
+ readonly: p.readonly
290
290
  }, {
291
291
  default: withCtx(() => [
292
292
  createBaseVNode("div", _hoisted_1$3, [
293
293
  createVNode(TextField, {
294
294
  modelValue: r.value,
295
- "onUpdate:modelValue": p[0] || (p[0] = (d) => r.value = d),
295
+ "onUpdate:modelValue": d[0] || (d[0] = (f) => r.value = f),
296
296
  type: "text",
297
297
  id: unref(ranId)(),
298
298
  name: "phone-code",
299
299
  autocomplete: "tel-country-code",
300
- icon: l.icon,
301
- "icon-color": l.iconColor,
302
- "icon-type": l.iconType,
300
+ icon: p.icon,
301
+ "icon-color": p.iconColor,
302
+ "icon-type": p.iconType,
303
303
  placeholder: "+45",
304
- required: l.required,
305
- readonly: l.readonly,
306
- "input-style": l.inputStyle,
307
- onInput: p[1] || (p[1] = (d) => u())
304
+ required: p.required,
305
+ readonly: p.readonly,
306
+ "input-style": p.inputStyle,
307
+ onInput: d[1] || (d[1] = (f) => u())
308
308
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
309
309
  createVNode(TextField, {
310
- modelValue: s.value,
311
- "onUpdate:modelValue": p[2] || (p[2] = (d) => s.value = d),
310
+ modelValue: l.value,
311
+ "onUpdate:modelValue": d[2] || (d[2] = (f) => l.value = f),
312
312
  type: "number",
313
313
  name: "phone",
314
314
  autocomplete: "tel-national",
315
- id: unref(i),
316
- placeholder: l.placeholder,
317
- required: l.required,
318
- readonly: l.readonly,
319
- "input-style": l.inputStyle,
320
- onInput: p[3] || (p[3] = (d) => u())
315
+ id: unref(s),
316
+ placeholder: p.placeholder,
317
+ required: p.required,
318
+ readonly: p.readonly,
319
+ "input-style": p.inputStyle,
320
+ onInput: d[3] || (d[3] = (f) => u())
321
321
  }, null, 8, ["modelValue", "id", "placeholder", "required", "readonly", "input-style"])
322
322
  ])
323
323
  ]),
@@ -341,14 +341,14 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
341
341
  },
342
342
  emits: ["update:modelValue"],
343
343
  setup(e, { emit: t }) {
344
- const n = e;
345
- function i() {
346
- n.readonly !== !0 && t(
344
+ const n = e, i = t;
345
+ function s() {
346
+ n.readonly !== !0 && i(
347
347
  "update:modelValue",
348
348
  n.type === "radio" ? n.val : n.numeric ? n.modelValue ? 0 : 1 : !n.modelValue
349
349
  );
350
350
  }
351
- return (r, s) => (openBlock(), createBlock(InputField, {
351
+ return (r, l) => (openBlock(), createBlock(InputField, {
352
352
  required: r.required,
353
353
  type: r.type,
354
354
  readonly: r.readonly
@@ -371,7 +371,7 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
371
371
  disabled: !!r.readonly,
372
372
  value: r.type === "radio" ? r.val : r.modelValue,
373
373
  checked: r.type === "radio" ? r.val === r.modelValue : !!r.modelValue,
374
- onChange: s[0] || (s[0] = (u) => i())
374
+ onChange: l[0] || (l[0] = (u) => s())
375
375
  }), null, 16, _hoisted_1$2),
376
376
  createBaseVNode("div", {
377
377
  class: normalizeClass([
@@ -381,7 +381,7 @@ const _hoisted_1$3 = { class: "fresh-booking-phone-input" }, _sfc_main$3 = /* @_
381
381
  tabindex: "0",
382
382
  style: normalizeStyle(r.inputStyle),
383
383
  "data-test": r.name,
384
- onKeyup: s[1] || (s[1] = withKeys((u) => i(), ["enter"]))
384
+ onKeyup: l[1] || (l[1] = withKeys((u) => s(), ["enter"]))
385
385
  }, null, 46, _hoisted_2$2),
386
386
  r.label ? (openBlock(), createElementBlock("div", {
387
387
  key: 0,
@@ -506,14 +506,14 @@ class Sticky {
506
506
  bottom: null,
507
507
  sticked: !1
508
508
  };
509
- const n = this.getAttribute("sticky-offset") || {}, i = this.getAttribute("sticky-side") || "top", r = this.getAttribute("sticky-z-index") || "10", s = this.getAttribute("on-stick") || null;
509
+ const n = this.getAttribute("sticky-offset") || {}, i = this.getAttribute("sticky-side") || "top", s = this.getAttribute("sticky-z-index") || "10", r = this.getAttribute("on-stick") || null;
510
510
  this.options = {
511
511
  topOffset: Number(n.top) || 0,
512
512
  bottomOffset: Number(n.bottom) || 0,
513
513
  shouldTopSticky: i === "top" || i === "both",
514
514
  shouldBottomSticky: i === "bottom" || i === "both",
515
- zIndex: r,
516
- onStick: s
515
+ zIndex: s,
516
+ onStick: r
517
517
  };
518
518
  }
519
519
  doBind() {
@@ -582,12 +582,12 @@ class Sticky {
582
582
  };
583
583
  if (this.state.isTopSticky) {
584
584
  t.position = "fixed", t.top = this.options.topOffset + "px", t.left = this.state.xOffset + "px", t.width = this.state.width + "px";
585
- const r = this.state.containerElRect.bottom - this.state.height - this.options.bottomOffset - this.options.topOffset;
586
- r < 0 && (t.top = r + this.options.topOffset + "px"), e.paddingTop = this.state.height + "px", i["top-sticky"] = !0;
585
+ const s = this.state.containerElRect.bottom - this.state.height - this.options.bottomOffset - this.options.topOffset;
586
+ s < 0 && (t.top = s + this.options.topOffset + "px"), e.paddingTop = this.state.height + "px", i["top-sticky"] = !0;
587
587
  } else if (this.state.isBottomSticky) {
588
588
  t.position = "fixed", t.bottom = this.options.bottomOffset + "px", t.left = this.state.xOffset + "px", t.width = this.state.width + "px";
589
- const r = window.innerHeight - this.state.containerElRect.top - this.state.height - this.options.bottomOffset - this.options.topOffset;
590
- r < 0 && (t.bottom = r + this.options.bottomOffset + "px"), e.paddingTop = this.state.height + "px", i["bottom-sticky"] = !0;
589
+ const s = window.innerHeight - this.state.containerElRect.top - this.state.height - this.options.bottomOffset - this.options.topOffset;
590
+ s < 0 && (t.bottom = s + this.options.bottomOffset + "px"), e.paddingTop = this.state.height + "px", i["bottom-sticky"] = !0;
591
591
  } else
592
592
  e.paddingTop = 0;
593
593
  batchStyle(this.el, t, i), batchStyle(this.placeholderEl, e, n), this.fireEvents();
Binary file