@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.
- package/dist/ActionField-23ce1b2a.cjs +1 -0
- package/dist/{ActionField-68f65af4.js → ActionField-311942d2.js} +21 -21
- package/dist/ActionField-311942d2.js.br +0 -0
- package/dist/{AvailabilitySkeleton-c48588e4.js → AvailabilitySkeleton-2dfbb28e.js} +80 -80
- package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
- package/dist/AvailabilitySkeleton-7d9e2680.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-b6694990.cjs → DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs} +3 -3
- package/dist/{DateField.vue_vue_type_style_index_0_lang-87ddfed8.js → DateField.vue_vue_type_style_index_0_lang-ec35955b.js} +1816 -1820
- package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
- package/dist/{Field-d926807f.cjs → Field-dcffacf2.cjs} +1 -1
- package/dist/{Field-b76d82cb.js → Field-ff599d13.js} +2 -2
- package/dist/Field-ff599d13.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js → NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js} +28 -28
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +802 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-c973d794.js → SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js} +7754 -7718
- package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
- package/dist/TextField-6f7e37d9.cjs +54 -0
- package/dist/{TextField-8f6e5ef5.js → TextField-cd93b966.js} +3241 -3241
- package/dist/TextField-cd93b966.js.br +0 -0
- package/dist/{ThankYou-8ae535bf.cjs → ThankYou-3d74a6dc.cjs} +2 -2
- package/dist/{ThankYou-2f3c4efe.js → ThankYou-c1878478.js} +48 -47
- package/dist/ThankYou-c1878478.js.br +0 -0
- package/dist/{_-3cff5490.cjs → _-0895679a.cjs} +1 -1
- package/dist/{_-734c9d50.js → _-8772cf9a.js} +1 -1
- package/dist/_-8772cf9a.js.br +0 -0
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/{event-e08d0178.js → event-60e076f2.js} +36 -36
- package/dist/event-60e076f2.js.br +0 -0
- package/dist/event-8e90a6e3.cjs +1 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +98 -98
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +4 -4
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +192 -192
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1406 -1395
- package/dist/hotel.js.br +0 -0
- package/dist/index-345407fb.cjs +1 -0
- package/dist/{index-c28f52d1.js → index-b5d8f4fc.js} +83 -83
- package/dist/index-b5d8f4fc.js.br +0 -0
- package/dist/polyfill.cjs +4 -4
- package/dist/polyfill.js +3311 -3398
- package/dist/polyfill.js.br +0 -0
- package/dist/store/payment.d.ts +1 -1
- package/package.json +6 -6
- package/dist/ActionField-68f65af4.js.br +0 -0
- package/dist/ActionField-ab9c01ab.cjs +0 -1
- package/dist/AvailabilitySkeleton-c48588e4.js.br +0 -0
- package/dist/AvailabilitySkeleton-ca6cf6b6.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-87ddfed8.js.br +0 -0
- package/dist/Field-b76d82cb.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs +0 -806
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js.br +0 -0
- package/dist/TextField-528ca68c.cjs +0 -54
- package/dist/TextField-8f6e5ef5.js.br +0 -0
- package/dist/ThankYou-2f3c4efe.js.br +0 -0
- package/dist/_-734c9d50.js.br +0 -0
- package/dist/event-4662e27c.cjs +0 -1
- package/dist/event-e08d0178.js.br +0 -0
- package/dist/index-a46a0876.cjs +0 -1
- 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-
|
|
2
|
-
import { T as TextField } from "./TextField-
|
|
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(
|
|
16
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
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,
|
|
34
|
+
return new Promise(function(i, s) {
|
|
35
35
|
if (!(typeof document > "u")) {
|
|
36
|
-
var
|
|
37
|
-
if (
|
|
38
|
-
var
|
|
39
|
-
|
|
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
|
-
|
|
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),
|
|
46
|
-
i[
|
|
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
|
|
50
|
-
if (!(!isPlainObject(t) || !isPlainObject(
|
|
51
|
-
for (var
|
|
52
|
-
isPlainObject(
|
|
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(),
|
|
111
|
-
query.apply(void 0, ["config",
|
|
112
|
-
query.apply(void 0, ["config",
|
|
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(
|
|
119
|
-
return assignGlobalProperty(
|
|
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,
|
|
131
|
-
t.send_to == null && Array.isArray(i) && i.length && (t.send_to = i.map(function(
|
|
132
|
-
return
|
|
133
|
-
}).concat(
|
|
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,
|
|
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:
|
|
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,
|
|
218
|
-
if (!(
|
|
219
|
-
var
|
|
220
|
-
if (isFunction(
|
|
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
|
-
})),
|
|
224
|
-
screenview(
|
|
223
|
+
})), r) {
|
|
224
|
+
screenview(u);
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
|
-
pageview(
|
|
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
|
|
237
|
-
addConfiguration(), !isRouteExcluded(
|
|
238
|
-
}), i.afterEach(function(
|
|
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(
|
|
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,
|
|
246
|
-
if (registerGlobals(),
|
|
247
|
-
return load("".concat(
|
|
248
|
-
preconnectOrigin:
|
|
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(
|
|
253
|
-
return n && n(
|
|
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 =
|
|
275
|
+
const n = t, i = e, s = i.id || ranId(), r = ref("+45"), l = ref("");
|
|
276
276
|
function u() {
|
|
277
|
-
|
|
277
|
+
n("update:modelValue", `${r.value} ${l.value}`);
|
|
278
278
|
}
|
|
279
279
|
return onMounted(() => {
|
|
280
|
-
if (
|
|
281
|
-
const
|
|
282
|
-
r.value =
|
|
280
|
+
if (i.modelValue) {
|
|
281
|
+
const p = i.modelValue.split(" ");
|
|
282
|
+
r.value = p[0], l.value = p[1];
|
|
283
283
|
}
|
|
284
|
-
}), (
|
|
285
|
-
label:
|
|
286
|
-
id: unref(
|
|
284
|
+
}), (p, d) => (openBlock(), createBlock(InputField, {
|
|
285
|
+
label: p.label,
|
|
286
|
+
id: unref(s),
|
|
287
287
|
type: "phone",
|
|
288
|
-
required:
|
|
289
|
-
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":
|
|
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:
|
|
301
|
-
"icon-color":
|
|
302
|
-
"icon-type":
|
|
300
|
+
icon: p.icon,
|
|
301
|
+
"icon-color": p.iconColor,
|
|
302
|
+
"icon-type": p.iconType,
|
|
303
303
|
placeholder: "+45",
|
|
304
|
-
required:
|
|
305
|
-
readonly:
|
|
306
|
-
"input-style":
|
|
307
|
-
onInput:
|
|
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:
|
|
311
|
-
"onUpdate:modelValue":
|
|
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(
|
|
316
|
-
placeholder:
|
|
317
|
-
required:
|
|
318
|
-
readonly:
|
|
319
|
-
"input-style":
|
|
320
|
-
onInput:
|
|
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
|
|
346
|
-
n.readonly !== !0 &&
|
|
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,
|
|
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:
|
|
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:
|
|
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",
|
|
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:
|
|
516
|
-
onStick:
|
|
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
|
|
586
|
-
|
|
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
|
|
590
|
-
|
|
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
|