(self.webpackChunkbooking_front_app=self.webpackChunkbooking_front_app||[]).push([[524],{27604:function(e,t,r){"use strict";r.d(t,{a:function(){return y},d:function(){return b}});var n,i,o,a,s,u=r(13182),c=r(13901),l=r(104),f=r(22717);function p(e,t){for(var r=0;r{e.onreadystatechange=()=>{if(4===e.readyState)if(e.status>=200&&e.status<300){const r=(0,l.camelizeKeys)(JSON.parse(e.response));t(r)}else r(Error(JSON.stringify({status:e.status,statusText:e.statusText})))},e.open("GET",u.A.preload.token),e.withCredentials=!0,e.send()}))}},{key:"fetchAccessTokenFromUserCode",value:async function(e){return this.api.request({http:{url:"/token",method:"get",params:{grantType:u.A.api.grandType,userCode:e,clientId:u.A.api.clientId,clientSecret:u.A.api.clientSecret,scope:"client"}}})}},{key:"ssoAutoLogin",value:function(e,t){return this.autoLogin(`${u.A.sso.origin}?${(0,d.stringify)({[t]:e})}`)}},{key:"monolithAutoLogin",value:function(){return this.autoLogin(u.A.marketplace.socialConnect)}},{key:"autoLogin",value:function(e){const t=document.createElement("iframe");return t.src=e,t.height="0",new Promise((e=>{t.onload=()=>{t.remove(),e()},document.body.appendChild(t)}))}},{key:"ssoLogin",value:function(e){return new Promise((()=>{window.location.href=`${u.A.marketplace.socialConnect}?${(0,d.stringify)({_redirect:`${u.A.marketplace.origin}${e||window.location.pathname}`})}`}))}}])&&b(e.prototype,t),r&&b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),v=a.prototype,h="api",g=[i],w={configurable:!0,enumerable:!0,writable:!0,initializer:null},O={},Object.keys(w).forEach((function(e){O[e]=w[e]})),O.enumerable=!!O.enumerable,O.configurable=!!O.configurable,("value"in O||O.initializer)&&(O.writable=!0),O=g.slice().reverse().reduce((function(e,t){return t(v,h,e)||e}),O),P&&void 0!==O.initializer&&(O.value=O.initializer?O.initializer.call(P):void 0,O.initializer=void 0),s=void 0===O.initializer?(Object.defineProperty(v,h,O),null):O,o=a))||o);var v,h,g,w,P,O},72511:function(e,t,r){"use strict";r.d(t,{NH:function(){return q},Dt:function(){return L},co:function(){return V},eo:function(){return x}});var n=r(13951);const i="Patient is blocked by doctor",o="Patient is blocked by facility",a="Unable to perform booking",s="Service is required",u="Slot is not available with calendarId",c="Service is not available for calendarId";var l=r(80787),f=r(65517),p=r(22504);const d=new p.wQ.Entity(l.E.BOOKING,{},{processStrategy:f.Sl}),b=(new p.wQ.Array(d),new p.wQ.Entity(l.E.SLOT,{},{idAttribute:"start",processStrategy:f.Sl})),y=new p.wQ.Array(b),m=new p.wQ.Object({embedded:new p.wQ.Object({nearestSlotAfterDate:b}),items:y});var v=r(96490),h=r(25767);const g=new p.wQ.Entity(l.E.BOOKING,{doctor:v.L,addressService:h.dh},{processStrategy:f.Sl});new p.wQ.Array(g);var w,P,O,_,k,j=r(14953),S=r(20701),A=r(13901),E=r(4031),I=r(93987),C=r(43038),z=r(104),$=r(22717),D=r(12215),T=r.n(D),N=r(55373),R=r(99881);function B(e,t){for(var r=0;rt.statusCode===E.P.forbidden?(F+=1,F<=2?this.fetchVisit(e,!0):Promise.reject(Error(n.HT))):t.statusCode===E.P.notFound?Promise.reject(Error(n.SZ)):Promise.reject(t)))}}])&&B(e.prototype,t),r&&B(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),U=_.prototype,G="api",H=[P],Q={configurable:!0,enumerable:!0,writable:!0,initializer:null},K={},Object.keys(Q).forEach((function(e){K[e]=Q[e]})),K.enumerable=!!K.enumerable,K.configurable=!!K.configurable,("value"in K||K.initializer)&&(K.writable=!0),K=H.slice().reverse().reduce((function(e,t){return t(U,G,e)||e}),K),Y&&void 0!==K.initializer&&(K.value=K.initializer?K.initializer.call(Y):void 0,K.initializer=void 0),k=void 0===K.initializer?(Object.defineProperty(U,G,K),null):K,O=_))||O);var U,G,H,Q,Y,K},88848:function(e,t,r){"use strict";r.d(t,{j:function(){return _}});var n=r(13951),i=r(80787),o=r(65517),a=r(22504);const s=new a.wQ.Entity(i.E.USER,{},{processStrategy(e){return Object.keys(e).includes("name")&&(e.firstName=e.name||"",e.lastName=e.surname||"",delete Object.assign(e,{firstName:e.name||""}).name,delete Object.assign(e,{lastName:e.surname||""}).surname),(0,o.Sl)(e)}});new a.wQ.Array(s);var u,c,l,f,p,d=r(13901),b=r(4031),y=r(104),m=r(22717);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;te.statusCode===b.P.notFound?Promise.reject(Error(n.wv)):e.statusCode===b.P.unauthorized?Promise.reject(Error(n.Tz)):e.statusCode===b.P.badRequest?Promise.reject(Error(n.Fb)):e.statusCode===b.P.conflict?Promise.reject(Error(n.q9)):Promise.reject(e)))}},{key:"registerUser",value:function(e){return this.marketplace.request({http:{url:"/users",method:"post",data:e}})}},{key:"sendVerificationCode",value:function(e,t,r,i){return this.marketplace.request({http:{url:"/users/verification",method:"put",params:{requestSource:"booking-flow"},data:h({email:e,phone:t,secondarySender:r},i&&{reCaptchaToken:i}),headers:{exceptions:[b.P.internalServer,b.P.unauthorized]}}}).catch((e=>e.statusCode===b.P.badRequest?Promise.reject(Error(n.Fb)):e.statusCode===b.P.tooManyRequests?Promise.reject(Error(n.$5)):e.statusCode===b.P.unauthorized||e.statusCode===b.P.notFound?Promise.reject(Error(n._L)):e.statusCode===b.P.internalServer||e.statusCode===b.P.serviceUnavailable?Promise.reject(Error(n.fI)):e.statusCode===b.P.forbidden?Promise.reject(Error(n.KT)):Promise.reject(e)))}},{key:"checkVerificationCode",value:function(e,t,r){return this.marketplace.request({http:{url:"/users/verification",method:"post",data:{code:e,email:t,phone:r}}}).catch((e=>e.statusCode===b.P.conflict?Promise.reject(Error(n.kH)):e.statusCode===b.P.forbidden?Promise.reject(Error(n.by)):e.statusCode===b.P.notFound?Promise.reject(Error(n.JC)):Promise.reject(e)))}},{key:"validateNin",value:function(e){return this.marketplace.request({http:{url:"/booking/validation/nin",method:"post",data:e}}).catch((()=>Promise.reject(Error(n.Os))))}},{key:"validatePhoneNumber",value:function(e){return this.marketplace.request({http:{url:"/booking/validation/phone",method:"post",data:e}}).catch((()=>Promise.reject(Error(n.Fb))))}}])&&g(e.prototype,t),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),k=f.prototype,j="marketplace",S=[c],A={configurable:!0,enumerable:!0,writable:!0,initializer:null},I={},Object.keys(A).forEach((function(e){I[e]=A[e]})),I.enumerable=!!I.enumerable,I.configurable=!!I.configurable,("value"in I||I.initializer)&&(I.writable=!0),I=S.slice().reverse().reduce((function(e,t){return t(k,j,e)||e}),I),E&&void 0!==I.initializer&&(I.value=I.initializer?I.initializer.call(E):void 0,I.initializer=void 0),p=void 0===I.initializer?(Object.defineProperty(k,j,I),null):I,l=f))||l);var k,j,S,A,E,I},13951:function(e,t,r){"use strict";r.d(t,{$5:function(){return o},Fb:function(){return m},Gx:function(){return f},HT:function(){return l},JC:function(){return P},KT:function(){return a},Os:function(){return y},SZ:function(){return c},Tz:function(){return b},_L:function(){return g},a_:function(){return u},by:function(){return w},ek:function(){return O},fI:function(){return i},iX:function(){return n},kH:function(){return v},nJ:function(){return p},q9:function(){return d},qR:function(){return s},wv:function(){return h}});const n="CALL_CENTER_WRONG_PHONE_NUMBER",i="SMS_PROVIDER_ERROR",o="SMS_PROVIDER_NUMBER_BLOCKED",a="SMS_RECAPTCHA_INVALID_TOKEN",s="SERVICES_SLOT_JUST_BOOKED",u="SLOTS_BAD_REQUEST",c="SLOTS_BOOKED_VISIT_NOT_FOUND",l="SLOTS_BOOKED_VISIT_FORBIDDEN",f="SLOTS_SLOT_NOT_FOUND",p="SLOTS_INTERNAL_SERVER_ERROR",d="USER_ALREADY_LOGGED_IN",b="USER_HAS_NOT_VERIFIED_PHONE_NUMBER",y="USER_INVALID_NIN",m="USER_INVALID_PHONE_NUMBER",v="USER_INVALID_VERIFICATION_CODE",h="USER_NOT_EXIST",g="USER_PHONE_NUMBER_CONFLICT",w="USER_VERIFICATION_BLOCKED",P="USER_VERIFICATION_NOT_FOUND",O="PATIENT_IS_BLOCKED"},84715:function(e,t,r){"use strict";r.d(t,{Gb:function(){return i},pq:function(){return o},uX:function(){return n},vb:function(){return a}});let n=function(e){return e.chat="Chat",e.customVideo="CustomVideo",e.dpVideo="DpVideo",e.phone="Phone",e}({}),i=function(e){return e.onlyInsurance="insurance",e.onlyPrivate="private",e.privateAndInsurance="private_and_insurance",e}({}),o=function(e){return e.api="api",e.internal="internal",e.legacy="legacy",e.none="none",e}({}),a=function(e){return e.common="common_policy",e.custom="custom_policy",e}({})},13182:function(e,t,r){"use strict";r.d(t,{o:function(){return l}});var n=r(80787),i=r(65517),o=r(22504),a=r(87458);const s=new o.wQ.Entity(n.E.PAYMENT_METHOD),u=new o.wQ.Array(s),c=new o.wQ.Object({items:u}),l=new o.wQ.Entity(n.E.ADDRESS,{insuranceProviders:a.fr,paymentMethods:c},{processStrategy:i.Sl});new o.wQ.Array(l)},96490:function(e,t,r){"use strict";r.d(t,{L:function(){return u}});var n=r(80787),i=r(65517),o=r(22504);const a=new o.wQ.Entity(n.E.SPECIALIZATION),s=new o.wQ.Array(a),u=new o.wQ.Entity(n.E.DOCTOR,{specializations:s},{processStrategy:i.Sl});new o.wQ.Array(u)},80787:function(e,t,r){"use strict";r.d(t,{E:function(){return n}});const n={ADDRESS:"addresses",BOOKING:"bookings",DOCTOR:"doctors",INSURANCE_PLAN:"insurancePlans",INSURANCE_PROVIDER:"insuranceProviders",PAYMENT_METHOD:"paymentMethods",SERVICE:"services",SLOT:"slots",SPECIALIZATION:"specializations",USER:"users"}},87458:function(e,t,r){"use strict";r.d(t,{fr:function(){return l},IU:function(){return f}});var n=r(80787),i=r(65517),o=r(22504);const a=new o.wQ.Entity(n.E.INSURANCE_PLAN,{},{processStrategy:i.Sl}),s=new o.wQ.Array(a),u=["plans"];const c=new o.wQ.Entity(n.E.INSURANCE_PROVIDER,{plans:s},{processStrategy(e){const t=(0,i.Sl)(e),{plans:r}=t,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;ne?(S=j,Promise.resolve([b._G])):A()}}var E=r(4031),I=r(19944);let C=!1,z=[];var $={onFulfilled:void 0,onRejected:async function(e){const t=i.$t.resolve(d.A),r=e.response?.status,n=e.config,o=e.response?.data?.message||"",s=n?.headers?.exceptions;return s&&Object.values(s).includes(r)?Promise.reject(e):(o.includes("denied access")&&await t.ssoLogin(),r===E.P.unauthorized?(C||(C=!0,g.clearCredentials(),A(1).then((e=>I.l7.$emit(I.uP,e))).then((()=>z.forEach((({resolve:e})=>e())))).catch((e=>z.forEach((({reject:t})=>t(e))))).finally((()=>{C=!1,z=[]}))),new Promise(((e,t)=>z.push({resolve:e,reject:t}))).then((()=>f(n))).then((e=>a()(e))).catch((e=>Promise.reject(new E.j(e))))):(I.l7.$emit(I.rs,new E.j(e)),Promise.reject(e)))}};var D=r(11216);function T(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);rfunction({countryCode:e,currencyCode:t,price:r}){return new Intl.NumberFormat(e,{currency:t,style:"currency"}).format(r)}(function(e){for(var t=1;t{this.show=!1}),400)}}])}(Y.lD))||et;var ft,pt=lt,dt=(0,Ge.A)(pt,(function(){var e=this,t=e._self._c;e._self._setupProxy;return e.show?t("div",{staticClass:"d-flex justify-content-center align-items-center h-100 min-vh-100"},[t("dp-spinner",{attrs:{size:"lg"}})],1):e._e()}),[],!1,null,null,null).exports,bt=r(81403),yt=r(48802),mt=r(44676),vt=r(68497),ht=r(95369),gt=r(73729),wt=r(65319);function Pt(e,t){for(var r=0;r{this.goToRoute(e)}))}},{key:"onBack",value:function(){this.trackBackArrowClick(),this.shouldPreventLeaveBannerBeShown(),this.triggerPreventLeaveBanner||window.history.back()}},{key:"onLogoClicked",value:function(){this.trackLogoClick(),this.shouldPreventLeaveBannerBeShown(),this.confirmedOriginUrl=!0,this.triggerPreventLeaveBanner||this.goToRoute(this.config.marketplace.origin)}},{key:"onLeavePage",value:function(){this.confirmedOriginUrl?window.location.href=this.config.marketplace.origin:window.history.back()}},{key:"onLeaveBannerClose",value:function(){return this.triggerPreventLeaveBanner=!1,this.isBannerAlreadyShown=!0,!0}},{key:"goToRoute",value:function(e){this.$router.push({name:e,params:hn({},this.$router.currentRoute.params),query:this.$router.currentRoute.query})}},{key:"shouldPreventLeaveBannerBeShown",value:function(){const{name:e}=this.$route,t=e===ke.uM,r=this.prevRouteName!==ke.uM&&e===ke.rP;(t||r)&&!this.isBannerAlreadyShown?this.triggerPreventLeaveBanner=!0:this.triggerPreventLeaveBanner=!1}}])}((0,Y.Xe)(Jr)),ln=An(cn.prototype,"$address",[Zr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fn=An(cn.prototype,"$doctor",[en],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pn=An(cn.prototype,"$form",[tn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),dn=An(cn.prototype,"$rules",[rn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bn=An(cn.prototype,"config",[nn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),An(cn.prototype,"addressViewModel",[on],Object.getOwnPropertyDescriptor(cn.prototype,"addressViewModel"),cn.prototype),An(cn.prototype,"doctor",[an],Object.getOwnPropertyDescriptor(cn.prototype,"doctor"),cn.prototype),An(cn.prototype,"onPrevRouteNameChange",[sn],Object.getOwnPropertyDescriptor(cn.prototype,"onPrevRouteNameChange"),cn.prototype),un=cn))||un);var Cn=In,zn=(0,Ge.A)(Cn,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"d-flex flex-column layout-wrapper"},[t("prevent-patient-leave-banner",{attrs:{"address-id":e.addressId,"doctor-id":e.doctorId,"is-displayed":e.triggerPreventLeaveBanner},on:{goToLink:e.onLeavePage,onClose:e.onLeaveBannerClose}}),e._v(" "),e.isMobileApp?e._e():t("app-header",{attrs:{"facility-logo-url":e.facilityLogoUrl,"redirect-url":e.redirectUrl,"show-arrow":e.isBackArrowVisible},on:{back:e.onBack,logoClicked:e.onLogoClicked}}),e._v(" "),t("dp-progress",{attrs:{"max-val":100,"min-val":0,size:"sm",value:e.progressBarConfig}}),e._v(" "),t("div",{staticClass:"h-100 layout-content"},[t("dp-alert-logged-in-as-user"),e._v(" "),t("transition",{attrs:{mode:"out-in",name:"fade"}},[e._t("default")],2)],1),e._v(" "),t("app-footer")],1)}),[],!1,null,"db140310",null).exports,$n=r(15257),Dn=r(99881);function Tn(){const{cookiePro:{enabled:e,id:t,lang:r,autoblockUrl:i},device:{isMobileApp:o}}=n.A;if(!e||o)return;[{src:i,type:"text/javascript",async:"true",defer:"true"},{src:`//cookie-cdn.cookiepro.com/consent/${t}/otSDKStub.js?v=202211201558`,type:"text/javascript",async:"true",defer:"true",charset:"UTF-8","data-id":"onetrust-script","data-domain-script":t,"data-language":r}].forEach((e=>{const t=document.createElement("script");Object.keys(e).forEach((r=>{const n=e[r];n&&t.setAttribute(r,n)})),document.body.appendChild(t)}))}var Nn,Rn,Bn,Mn,xn,Vn,qn,Fn,Ln,Un=r(5103);function Gn(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Hn(e,t){for(var r=0;re.setAttribute("href",e.dataset.lazyloadHref))),this.$form.setQueryParamFacilityProfileId(this.queryParamFacilityId||"")}},{key:"queryParamFacilityId",get:function(){const{facility_id:e}=this.$router.currentRoute.query;return e&&e.toString()}},{key:"layout",get:function(){return this.$acl.hasRole(b._G)||this.httpError?.statusCode===E.P.internalServer?$n.G.error:this.$route.meta?.layout||$n.G.basic}},{key:"handleCookieProInit",value:function(){"complete"!==document.readyState?document.onreadystatechange=()=>{"complete"===document.readyState&&Tn()}:Tn()}},{key:"onUpdateAcl",value:function(e){this.$acl.setRoles(e)}},{key:"onAclChanged",value:function(){this.$acl.hasRole(b.tX)||this.$user.removeUserEntity()}},{key:"onError",value:function(e){this.httpError=e}}])}(Y.lD),qn=Wn(Vn.prototype,"config",[Rn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fn=Wn(Vn.prototype,"$user",[Bn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ln=Wn(Vn.prototype,"$form",[Mn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xn=Vn))||xn);var ei=Zn,ti=(0,Ge.A)(ei,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("dp-notifications"),e._v(" "),t("dp-dialogs-container"),e._v(" "),t("app-loader"),e._v(" "),t(e.layout,{tag:"component",attrs:{error:e.httpError}},[t("router-view")],1)],1)}),[],!1,null,null,null).exports,ri=r(45037);function ni(e,t,r){const i=(0,ke.aE)(new X.pK(e.routes)),o=V().parse(window.location.search,{ignoreQueryPrefix:!0}),a=null!==document.cookie.match("(^|;)\\s*dp_test\\s*=\\s*([^;]+)"),s="true"===o.disableGTM,u=function(e){const t=new we(e);return G.Ay.use(se.Ay,e),t.pushDataLayerInfo([{"gtm-block-pv":"1","booking-app":"1"}]),t}({id:n.A.gtm.id,enabled:r&&!s&&!a,debug:!r,isProduction:r,defaultEvent:"gaTriggerEvent",router:i}),c=function({roles:e,silentRuleFailure:t}){return new Pe.Ay({rules:_e,roles:e,silentRuleFailure:t})}({roles:t,silentRuleFailure:r}),{languageCode:l,currencyCode:f}=n.A.isoLocale,p=new X.v7({translations:e.translations,languageCode:l});Ae({countryCode:l.replace("_","-"),currencyCode:f});const d=new J.Ts({timeout:6e3,dismissible:!1}),b=new K.sI({animationTimeout:200});G.Ay.use(ne.Ay),G.Ay.use(X.qL,{i18n:p}),G.Ay.use(J.Ay),G.Ay.use(K.Ay),G.Ay.use(re.A,{breakpoints:te.f}),G.Ay.use(oe()),G.Ay.prototype.$validationErrorType="invalid",(0,ae.O)(De.A,i),function(e,t){W.locale(e,{weekdays:[t.translate("weekday.6"),t.translate("weekday.0"),t.translate("weekday.1"),t.translate("weekday.2"),t.translate("weekday.3"),t.translate("weekday.4"),t.translate("weekday.5")],weekdaysShort:[t.translate("weekday_short.6"),t.translate("weekday_short.0"),t.translate("weekday_short.1"),t.translate("weekday_short.2"),t.translate("weekday_short.3"),t.translate("weekday_short.4"),t.translate("weekday_short.5")],months:[t.translate("month.0"),t.translate("month.1"),t.translate("month.2"),t.translate("month.3"),t.translate("month.4"),t.translate("month.5"),t.translate("month.6"),t.translate("month.7"),t.translate("month.8"),t.translate("month.9"),t.translate("month.10"),t.translate("month.11")],monthsShort:[t.translate("month_short.0"),t.translate("month_short.1"),t.translate("month_short.2"),t.translate("month_short.3"),t.translate("month_short.4"),t.translate("month_short.5"),t.translate("month_short.6"),t.translate("month_short.7"),t.translate("month_short.8"),t.translate("month_short.9"),t.translate("month_short.10"),t.translate("month_short.11")]}),W.extend(ee())}(n.A.locale,p),(0,ri.rl)(i,c);return{app:new G.Ay({i18n:p,notifications:d,dialogs:b,gtm:u,acl:c,provide:{config:n.A},router:i,store:De.A,render:e=>e(ti)}),router:i}}const ii="df25c53698f0226e9c1e913d6f1fc19e8cf659d1",{dpI18n:oi,locale:ai}=dpApp;ii&&function(e,t){q.T({Vue:G.Ay,maxValueLength:1e3,dsn:"https://8a6d864e62984d5a9ae4777eef0b0ac5@sentry.io/287604",release:e,beforeBreadcrumb:e=>function(e){const t=["/users/verified-data"];if("xhr"===e.category){const r=e.data.url;if(!t.some((e=>r.includes(e))))return e;const n=r.split("?")[0];e.data.url=n}return e}(e),beforeSend:(e,t)=>"Timeout"===t.originalException?null:function(e){let t=null;for(let r=0;rfunction(e,t){const[r]=e?.exception?.values||[],{frames:n}=r?.stacktrace||{},{originalException:i}=t;return n&&i&&Q.some((e=>{if(!n.some((({filename:t})=>new RegExp(e).test(t||""))))return!1;const t=H.get(e)||[];return new RegExp(t.join("|")).test(i.toString())}))?null:e}(e,t),()=>function(e,t){const{originalException:r}=t;return r instanceof E.j&&U.some((e=>{const t=U.join("|").replace(/\s/g,"");if(new RegExp(t).test(`${r.statusCode}`)){const t=L.get(e)||[];return new RegExp(t.join("|")).test(r.message)}return!1}))?null:e}(e,t),()=>function(e,t){const{originalException:r}=t;return e.fingerprint||(e.fingerprint=[]),n.A.device.isMobileApp&&e.fingerprint.push("is_mobile_app"),r instanceof E.j&&r.statusCode&&e.fingerprint.push(`http_error_status_${r.statusCode}`),e}(e,t)]),denyUrls:[/.getsitecontrol\.com/i,/.googletagmanager\.com/i,/.hsleadflows\.net/i],ignoreErrors:[/evaluating 'window.webkit.messageHandlers.selectedDebugHandler.postMessage'/,/can't redefine non-configurable property 'userAgent'/]}),F.NA("locale",t)}(ii,ai),(async()=>{const e=function(){const e=(0,x.parse)(location.hash.replace("#","")),{isMobile:t,code:r,mobileOS:n}=(0,M.camelizeKeys)(e);return{isMobileApp:"true"===t,mobileAppCode:"string"==typeof r?r:void 0,mobileOS:n?`mobile_app_${n}`:void 0}}(),t=await B(e),{app:r,router:n}=ni(oi,t,true);n.onReady((()=>{r.$mount("#app")}))})()},90410:function(e,t,r){"use strict";r.d(t,{A:function(){return X}});var n=r(13951),i=r(69687),o=r(14953),a=r(20701),s=r(68497),u=r(50762),c=r(66594),l=r(95369),f=r(28373),p=r(43038);function d(e,t){for(var r=0;r\n ${this.$trans("error_page_unavailable_text_link")}\n `,t=`${this.$trans("error_page_unavailable_text")} ${e}`;this.$notifications.error("",t,{timeout:a.UE,dismissible:!0})}}])&&V(r.prototype,i),s&&V(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,s}(z.Ay),E=Q(A.prototype,"$slot",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=Q(A.prototype,"$user",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=Q(A.prototype,"$form",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q(A.prototype,"userViewModel",[j],Object.getOwnPropertyDescriptor(A.prototype,"userViewModel"),A.prototype),S=A))||S)},94755:function(e,t,r){"use strict";r.d(t,{A:function(){return C}});var n,i,o,a,s,u,c,l,f,p,d,b,y=r(68497),m=r(95369),v=r(74802),h=r.n(v),g=r(85471),w=r(36599),P=r(96579);function O(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function _(e,t){for(var r=0;rHt)),k=(0,R.A)(""),j=(0,R.A)(""),S=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),M(this,"cityName",A,this),M(this,"id",E,this),M(this,"name",I,this),M(this,"photo",C,this),M(this,"prefix",z,this),M(this,"gender",$,this),M(this,"specializations",D,this),M(this,"surname",T,this),M(this,"url",N,this)},(t=[{key:"avatar",get:function(){return this.photo?.smallUrl||""}},{key:"fullName",get:function(){return`${this.name} ${this.surname}`}},{key:"fullNameWithPrefix",get:function(){return`${this.prefix} ${this.name} ${this.surname}`}},{key:"mainSpecialization",get:function(){return 0===this.specializations.length?"":this.specializations[0].name}},{key:"shortSpecializationList",get:function(){return this.specializations.slice(0,3).map((({nameFemale:e,name:t})=>e&&this.gender===y.Female?e:t)).join(", ")}}])&&x(e.prototype,t),r&&x(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),A=q(S.prototype,"cityName",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=q(S.prototype,"id",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=q(S.prototype,"name",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=q(S.prototype,"photo",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=q(S.prototype,"prefix",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=q(S.prototype,"gender",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=q(S.prototype,"specializations",[O,_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=q(S.prototype,"surname",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=q(S.prototype,"url",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S);var L,U,G,H,Q;function Y(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function K(e,t){for(var r=0;re===this.name))}},{key:"showPaymentOptionalInfo",get:function(){return"payment_optional"===this.paymentFlow||"possibly_payment_required"===this.paymentFlow}},{key:"showPaymentRequiredInfo",get:function(){return"payment_required"===this.paymentFlow}},{key:"specializationId",get:function(){return this.specialization?.id||""}},{key:"isSelfPayerService",value:function(e){return!!e&&this.selfpayer}}])&&bt(e.prototype,t),r&&bt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),We=mt(Je.prototype,"description",[Re],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ze=mt(Je.prototype,"duration",[Be],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),et=mt(Je.prototype,"id",[Me],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tt=mt(Je.prototype,"serviceId",[xe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rt=mt(Je.prototype,"isDefault",[Ve],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nt=mt(Je.prototype,"isGratis",[qe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),it=mt(Je.prototype,"isPriceFrom",[Fe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ot=mt(Je.prototype,"insuranceProviderId",[Le],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),at=mt(Je.prototype,"name",[Ue],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),st=mt(Je.prototype,"price",[Ge],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ut=mt(Je.prototype,"priceDecimal",[He],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ct=mt(Je.prototype,"private",[Qe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lt=mt(Je.prototype,"selfpayer",[Ye],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ft=mt(Je.prototype,"specialization",[Ke],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pt=mt(Je.prototype,"paymentFlow",[Xe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Je);var gt,wt,Pt,Ot,_t,kt,jt,St,At;function Et(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function It(e,t){for(var r=0;r(0,$n.om)(Ne,e?.items??[]))),Ur=(0,R.A)(!1),Gr=(0,R.A)([]),Hr=(0,R.A)(null),Qr=(0,R.A)(""),Yr=(0,R.A)(""),Kr=(0,R.A)(!1),Xr=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Dn(this,"allowedPatients",Jr,this),Dn(this,"availableRemoteChannels",Wr,this),Dn(this,"bookingExtraFields",Zr,this),Dn(this,"cityName",en,this),Dn(this,"diagnosticIntegrated",tn,this),Dn(this,"districtName",rn,this),Dn(this,"directions",nn,this),Dn(this,"facilityId",on,this),Dn(this,"hasAdvancedScheduleConfigurationEnabled",an,this),Dn(this,"hasSlots",sn,this),Dn(this,"id",un,this),Dn(this,"insuranceProviders",cn,this),Dn(this,"insuranceSupport",ln,this),Dn(this,"integration",fn,this),Dn(this,"isAcceptingNewPatients",pn,this),Dn(this,"isOnlineOnly",dn,this),Dn(this,"name",bn,this),Dn(this,"nearestSlotDate",yn,this),Dn(this,"nonDoctor",mn,this),Dn(this,"onlinePayments",vn,this),Dn(this,"paymentInstructions",hn,this),Dn(this,"marketplacePaymentAccountType",gn,this),Dn(this,"marketplacePaymentShowPaymentPage",wn,this),Dn(this,"facility",Pn,this),Dn(this,"paymentMethods",On,this),Dn(this,"paymentsAfterVisit",_n,this),Dn(this,"phoneNumbers",kn,this),Dn(this,"refundPolicy",jn,this),Dn(this,"street",Sn,this),Dn(this,"timezone",An,this),Dn(this,"isBookingRequestEnabled",En,this)},(t=[{key:"filteredInsuranceProviders",get:function(){return this.insuranceProviders.filter(Boolean)}},{key:"fullName",get:function(){return[this.districtName,this.street,this.cityName].filter(Boolean).join(", ")}},{key:"acceptOnlyPrivateVisits",get:function(){return this.insuranceSupport===In.Gb.onlyPrivate}},{key:"insuranceState",get:function(){return{insuranceOnly:this.insuranceSupport===In.Gb.onlyInsurance,privateAndInsurances:this.insuranceSupport===In.Gb.privateAndInsurance,privateOnly:this.insuranceSupport===In.Gb.onlyPrivate}}},{key:"paymentMethodsList",get:function(){return this.paymentMethods.map((({name:e})=>e)).join(", ")}},{key:"phoneNumber",get:function(){return this.phoneNumbers[0]}},{key:"hasPaymentsEnabled",get:function(){return!!this.marketplacePaymentAccountType}},{key:"hasPaymentMethods",get:function(){return this.hasPaymentsEnabled||this.paymentMethods.length>0}},{key:"displayStripePaymentInfo",get:function(){return!this.paymentsAfterVisit&&this.hasPaymentsEnabled}},{key:"diagnosticProfileUrl",get:function(){const e=new URLSearchParams(window.location.search),t=Object.fromEntries(e.entries()).returnUrl;return"string"==typeof t&&this.diagnosticIntegrated&&/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/.test(t)?atob(t):""}},{key:"isIntegratedAddress",get:function(){const e=[In.pq.api,In.pq.internal,In.pq.legacy];return!!this.integration&&e.includes(this.integration)}},{key:"filterServicesByInsuranceEnabled",get:function(){const{filterServicesByInsurance:e}=Cn.A.app;return!this.isIntegratedAddress&&e}},{key:"allowedPatientsInfo",value:function(e){const{isAcceptingAdults:t,isAcceptingChildren:r}=this.allowedPatients;return t&&r?e.isAcceptingEveryone:t&&!r?e.isAcceptingAdultsOnly:!t&&r?e.isAcceptingChildrenOnly:null}},{key:"paymentInfo",value:function(e){const t=this.paymentMethods.length>0?`(${this.paymentMethodsList})`:"";return(this.isOnlineOnly||this.hasPaymentsEnabled)&&this.paymentsAfterVisit?`${e.payAfterConsultation} ${t}`:this.isOnlineOnly&&this.hasPaymentsEnabled?`${e.payBeforeConsultation} ${t}`:this.paymentMethodsList}}])&&Tn(e.prototype,t),r&&Tn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),Jr=Rn(Xr.prototype,"allowedPatients",[hr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wr=Rn(Xr.prototype,"availableRemoteChannels",[gr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zr=Rn(Xr.prototype,"bookingExtraFields",[wr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),en=Rn(Xr.prototype,"cityName",[Pr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tn=Rn(Xr.prototype,"diagnosticIntegrated",[Or],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rn=Rn(Xr.prototype,"districtName",[_r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nn=Rn(Xr.prototype,"directions",[kr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),on=Rn(Xr.prototype,"facilityId",[jr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),an=Rn(Xr.prototype,"hasAdvancedScheduleConfigurationEnabled",[Sr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sn=Rn(Xr.prototype,"hasSlots",[Ar],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),un=Rn(Xr.prototype,"id",[Er],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cn=Rn(Xr.prototype,"insuranceProviders",[Ir],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ln=Rn(Xr.prototype,"insuranceSupport",[Cr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fn=Rn(Xr.prototype,"integration",[zr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pn=Rn(Xr.prototype,"isAcceptingNewPatients",[$r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),dn=Rn(Xr.prototype,"isOnlineOnly",[Dr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bn=Rn(Xr.prototype,"name",[Tr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yn=Rn(Xr.prototype,"nearestSlotDate",[Nr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mn=Rn(Xr.prototype,"nonDoctor",[Rr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vn=Rn(Xr.prototype,"onlinePayments",[Br],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hn=Rn(Xr.prototype,"paymentInstructions",[Mr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gn=Rn(Xr.prototype,"marketplacePaymentAccountType",[xr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wn=Rn(Xr.prototype,"marketplacePaymentShowPaymentPage",[Vr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pn=Rn(Xr.prototype,"facility",[qr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),On=Rn(Xr.prototype,"paymentMethods",[Fr,Lr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_n=Rn(Xr.prototype,"paymentsAfterVisit",[Ur],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kn=Rn(Xr.prototype,"phoneNumbers",[Gr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jn=Rn(Xr.prototype,"refundPolicy",[Hr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sn=Rn(Xr.prototype,"street",[Qr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),An=Rn(Xr.prototype,"timezone",[Yr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),En=Rn(Xr.prototype,"isBookingRequestEnabled",[Kr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xr)},14953:function(e,t,r){"use strict";function n(e,t){for(var r=0;r{if(t.hasRole(i._G))return o(!1);e.meta?.requireAuth&&!t.hasRole(i.tX)&&await r.ssoLogin(e.fullPath);const a=e.meta?.acl;if(a&&a.length>0){a.some((e=>t.can(e)))||await r.ssoLogin(e.fullPath)}return o()}))}var s=r(38066);function u(e,t,r){return t.name===s.EG||t.name===s.Gq?r({name:s.q2}):r()}var c=r(68497);async function l(e,t,r){return c.ec.smsAttempt?r():r({name:s.rP,params:e.params})}var f=r(14953);function p(){window.location.href=f.A.marketplace.origin}},38066:function(e,t,r){"use strict";r.d(t,{cV:function(){return bo},lK:function(){return yo},rP:function(){return po},bm:function(){return mo},Gq:function(){return go},uM:function(){return wo},EG:function(){return ho},q2:function(){return Po},aE:function(){return Oo}});var n=r(27604),i=r(13951),o=r(13182),a=r(96490),s=r(14970),u=r(90410),c=r(94755),l=r(12889),f=r(69687),p=r(20701),d=r(58229),b=r(27195),y=r(78442),m=r(37460),v=r(75024),h=r(61496),g=r(68497),w=r(85455),P=r(9917),O=r(46288),_=r(86789),k=r(26378),j=r(95369),S=r(28373),A=r(19944);var E,I,C,z,$,D,T,N,R,B,M,x,V,q,F,L,U,G,H,Q,Y,K,X,J,W,Z,ee,te,re,ne,ie,oe,ae,se,ue=r(53470),ce=r(93987),le=r(43038),fe=r(12215),pe=r.n(fe),de=r(67193),be=r.n(de),ye=r(96579),me=r(31868),ve=r(53707),he=r(22882),ge=r(66594),we=r(5103);function Pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;tr.includes(e))))return await this.openSsoModal(!0),Promise.reject();try{const i=await this.$user.checkNotLoggedInUser({email:r,name:e,phone:n,surname:t,source:p.u2});return this.$acl.setRoles(i),Promise.resolve()}catch(e){return e?.message===i.Tz?(await this.openSsoModal(),Promise.reject()):e?.message===i.Fb?(this.handleApiErrors(g.V5.PHONE,this.$form.phone),Promise.reject()):Promise.reject(e)}}},{key:"bookVisit",value:async function(){try{return this.isBookingRequest?await this.requestSlot():await this.bookSlot(),Promise.resolve()}catch(e){return e?.message===i.Gx?(this.handleSlotNotFoundError(),Promise.reject()):Promise.reject(e)}}},{key:"processBooking",value:async function(){const{phone:e,smsConfirmed:t}=this.$form;if(this.$acl.can(he.I1)||this.$user.isProvidedPhoneVerified(e)||t)return this.bookVisit();try{return await this.sendVerificationsSms(),await this.$router.push({name:yo,params:this.$route.params,query:this.$router.currentRoute.query}),Promise.resolve()}catch(e){return e?.message===i.Fb?(this.handleApiErrors(g.V5.PHONE,this.$form.phone),Promise.reject()):Promise.reject(e)}}},{key:"clearBookingFromSsoStorage",value:function(){this.possibleBookingFromSso&&(this.$gtm.pushEvent({action:b.g.startSessionLoginSuccess.action,category:b.g.startSessionLoginSuccess.category}),$e.removeItem(p.X))}},{key:"sendVerificationsSms",value:async function(){const{email:e,phone:t}=this.$form,{reCaptchaEnabled:r}=this.config.app,{isMobileApp:n}=this.config.device;let o=await we.A.getReCaptchaToken();try{this.$form.resetSmsAttempt(),!r||n||o||(o=await we.A.getReCaptchaToken());const{responseCode:i}=await this.$user.sendVerificationCode({email:e,phone:t,reCaptchaToken:o});if(i&&Number(i)>0){const e=3===Number(i)?this.$trans("error_verfication_country"):this.$trans("error_verfication_generic");this.$notifications.error("",e,{timeout:p.UE,dismissible:!0}),(0,ce.A)(Error(`[SEND_VERIFICATION_RESPONSE_CODE]: ${i}`),.1)}return this.$form.setSmsAttempt(),Promise.resolve()}catch(e){return e?.message===i.Fb?(this.$form.setApiErrors({[g.V5.PHONE]:t}),Promise.reject()):e?.message===i.fI?(this.$gtm.pushErrorInfo(p.XP.verificationSendProviderError,this.addressId),this.$form.setSmsAttempt(),Promise.resolve()):e?.message===i._L?(await this.openSsoModal(),Promise.reject()):e?.message===i.$5?(this.$gtm.pushErrorInfo(p.XP.verificationSendBlockedNumberError,this.addressId),Promise.reject()):e?.message===i.KT?(this.sendVerificationSmsAttempt+=1,this.sendVerificationSmsAttempt<=2?this.sendVerificationsSms():(this.handleErrorMessageForInternalError(),Promise.reject())):Promise.reject(e)}}},{key:"fetchBookingQuestions",value:async function(){if(this.config.app.showBookingAdditionalQuestions&&this.addressId)try{await this.$rules.fetchQuestions(this.bookingRulesPayload)}catch(e){(0,ce.A)(e)}}},{key:"fetchBookingRules",value:async function(){if(this.addressId)try{await this.$rules.fetchRules(this.bookingRulesPayload)}catch(e){(0,ce.A)(e)}finally{this.bookingRulesLoaded=!0}}},{key:"fetchDoctor",value:async function(){const{doctorId:e}=this;e&&await this.$doctor.fetchDoctor(e)}},{key:"fetchAddress",value:async function(){const{addressId:e,doctorId:t}=this;t&&e&&await this.$address.fetchAddress(this.addressPayload)}},{key:"fetchData",value:async function(){this.bookingSuccessRouteActive||(await Promise.all([this.fetchDoctor(),this.fetchAddress(),this.fetchBookingQuestions()]),this.addressViewModel.hasPaymentsEnabled&&this.formServiceId&&await this.$service.fetchServicePayment(this.formServiceId),this.filtersPreselected?(this.config.app.showBookingRules&&!this.formAgreementId&&this.fetchBookingRules(),this.$form.setAddressHasStripeEnabled(this.addressViewModel.hasPaymentsEnabled),this.$form.setIsOnlineVisit(this.addressViewModel.isOnlineOnly),this.$form.setIsPaymentAfterVisit(this.addressViewModel.paymentsAfterVisit),this.$form.setShowPaymentPage(this.addressViewModel.marketplacePaymentShowPaymentPage),this.loading=!1):await this.redirectToFilters())}},{key:"setFormData",value:function(){if(this.$form.setShowCalendar(!1),!this.possibleBookingFromSso)return;const{serviceId:e,visitStart:t}=this,r=this.formServiceId,n=this.$form.visitStart;e!==r&&this.updateRouteParams({serviceId:r}),t!==n&&this.updateRouteParams({visitStart:n})}},{key:"checkHashParams",value:function(){this.$route.hash===p.U.changePhoneNumber&&this.scrollTo("#phone"),this.$route.hash===p.U.invalidPhoneNumber&&(A.l7.$emit(A.Ow),this.scrollTo("#phone")),this.$route.hash===p.U.calendarOpen&&this.handleSlotNotFoundError()}},{key:"updateRouteParams",value:function(e){const{currentRoute:t}=this.$router;this.$router.replace({params:Oe(Oe({},t.params),e),query:t.query})}},{key:"handleApiErrors",value:function(e,t){this.$form.setApiErrors({[e]:t}),this.scrollTo(`#${e}`)}},{key:"handleBookingFromReferral",value:function(){const e=$e.getItem(p.tD),{referred_by:t}=this.$router.currentRoute.query;t&&"string"==typeof t?this.setReferralComment(t):e&&0!==Object.keys(e).length&&e.doctorId===this.doctorId&&this.setReferralComment(e.doctorFullName)}},{key:"setReferralComment",value:function(e){const t=this.$trans("referral_source_doctor",{"{DoctorName2}":this.doctorViewModel.fullName,"{DoctorName1}":e});this.$form.setComment(t)}},{key:"toggleChangeDate",value:function(){this.$form.showCalendar||this.$mq!==ue.G.xs||this.scrollTo("#services-module"),this.$form.setShowCalendar(!this.$form.showCalendar)}},{key:"sendDataLayer",value:function(){this.$gtm.pushDataLayerInfo([{"gtm-is-logged-in":this.$acl.hasRole(m.tX)?"1":"0"},{"gtm-is-callcenter":this.$acl.can(he.I1)?"1":"0"},{"gtm-virtual-consultation-booking-flow":this.$form.isOnlineVisit?"1":"0"},{"gtm-doctor-name":this.doctorViewModel.fullName},{"gtm-url":window.location.href},{"gtm-specialization":this.doctorViewModel.mainSpecialization},{"gtm-doctor-photo":this.doctorViewModel.avatar},{"gtm-city":this.doctorViewModel.cityName},{"gtm-user-id":this.userViewModel.id},{"gtm-patient-app":this.config.device.isMobileApp?"1":0}])}},{key:"firstBookingStepGaEvent",value:function(e){this.$gtm.pushEvent({action:e,category:"Booking first step"})}},{key:"sendEcommerceEvent",value:function(){this.$gtm.pushEcommerceEvents(y.ky.CHECKOUT_1,{brand:this.doctorViewModel.cityName,category:this.doctorViewModel.mainSpecialization,addressId:this.addressId,id:this.$form.queryParamFacilityProfileId||this.doctorId,name:this.$form.queryParamFacilityProfileId?y.g3.FACILITY:y.g3.DOCTOR,step:1})}},{key:"handleSlotNotFoundError",value:async function(){await this.$router.push({name:wo,params:this.$route.params,hash:p.U.calendarOpen,query:this.$router.currentRoute.query})}},{key:"scrollTo",value:function(e){this.$scrollTo(e,300,{easing:"linear",offset:p.cV})}}])&&ke(r.prototype,o),a&&ke(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,a}((0,ye.Xe)(u.A,c.A,l.A,ve.A,me.A)),J=ze(X.prototype,"config",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=ze(X.prototype,"$address",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=ze(X.prototype,"$doctor",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=ze(X.prototype,"$form",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=ze(X.prototype,"$service",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=ze(X.prototype,"$user",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=ze(X.prototype,"$rules",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=ze(X.prototype,"doctorId",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=ze(X.prototype,"addressId",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=ze(X.prototype,"visitStart",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=ze(X.prototype,"serviceId",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ze(X.prototype,"doctorViewModel",[V],Object.getOwnPropertyDescriptor(X.prototype,"doctorViewModel"),X.prototype),ze(X.prototype,"addressViewModel",[q],Object.getOwnPropertyDescriptor(X.prototype,"addressViewModel"),X.prototype),ze(X.prototype,"insuranceProviderViewModel",[F],Object.getOwnPropertyDescriptor(X.prototype,"insuranceProviderViewModel"),X.prototype),ze(X.prototype,"insurancePlanViewModel",[L],Object.getOwnPropertyDescriptor(X.prototype,"insurancePlanViewModel"),X.prototype),ze(X.prototype,"selectedServiceViewModel",[U],Object.getOwnPropertyDescriptor(X.prototype,"selectedServiceViewModel"),X.prototype),ze(X.prototype,"userViewModel",[G],Object.getOwnPropertyDescriptor(X.prototype,"userViewModel"),X.prototype),ze(X.prototype,"onChangServiceId",[H],Object.getOwnPropertyDescriptor(X.prototype,"onChangServiceId"),X.prototype),ze(X.prototype,"onChangVisitStart",[Q],Object.getOwnPropertyDescriptor(X.prototype,"onChangVisitStart"),X.prototype),ze(X.prototype,"onBookingRulesLoaded",[Y],Object.getOwnPropertyDescriptor(X.prototype,"onBookingRulesLoaded"),X.prototype),K=X))||K),qe=r(14486),Fe=(0,qe.A)(Ve,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"container-md pt-0 pt-md-4"},[t("div",{staticClass:"row d-flex flex-column-reverse flex-md-row"},[t("div",{staticClass:"col-md-7 pt-2 pt-md-0 pr-1 pr-md-4"},[t("transition",{attrs:{mode:"out-in",name:"fade"}},[t("router-view",{attrs:{loading:e.loading,submitting:e.submitting},on:{submit:e.submit}})],1)],1),e._v(" "),t("div",{staticClass:"col-md-5"},[t("pre-booking-visit-details",{attrs:{address:e.addressViewModel,"change-date-button-hidden":!0,"data-test-id":"doctor-card",doctor:e.doctorViewModel,"is-grouped-slot":e.isGroupedSlot,"is-self-payer-service-selected":e.isSelfPayerServiceSelected,loading:e.loading,"selected-service":e.selectedServiceViewModel,"visit-start":e.visitStart},on:{changeDate:e.toggleChangeDate}})],1)])])}),[],!1,null,null,null).exports,Le=r(71738),Ue=r(71152),Ge=r(48802),He=r(66985);function Qe(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Ye(e,t){for(var r=0;rthis.$v.$touch()))}},{key:"validations",value:function(){return{formCallCenterId:{required:bt.mw}}}},{key:"onChange",value:function(e){this.isFormInvalid=e}},{key:"formCallCenterIdValidation",get:function(){return this.$validate("formCallCenterId",{required:"call_center_id_required"})}}])&&mt(r.prototype,n),i&&mt(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(ye.lD),st=Ot(at.prototype,"formCallCenterId",[rt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ut=Ot(at.prototype,"isFormInvalid",[nt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ot(at.prototype,"onChange",[it],Object.getOwnPropertyDescriptor(at.prototype,"onChange"),at.prototype),ot=at))||ot),xt=(0,qe.A)(Mt,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("label",[e._v("Call center id")]),e._v(" "),t("dp-input",{attrs:{label:"Call center id",validation:e.formCallCenterIdValidation},on:{blur:e.$v.formCallCenterId.$touch},model:{value:e.formCallCenterId,callback:function(t){e.formCallCenterId="string"==typeof t?t.trim():t},expression:"formCallCenterId"}},[e._v("\n *\n ")])],1)}),[],!1,null,null,null).exports,Vt=r(37054),qt=r(54566),Ft=r(20123),Lt=r(16512);function Ut(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Gt(e,t){for(var r=0;r{this.countries=e,this.setInitialData()}))}},{key:"onInputChange",value:function(e,t){t&&e!==this.value&&this.$emit("input",e)}},{key:"countriesViewModel",get:function(){return this.countries}},{key:"filteredCountries",get:function(){return this.countriesViewModel.filter((({name:e})=>e.toLowerCase().includes(this.search.toLowerCase())))}},{key:"inputPlaceholder",get:function(){const e=this.countriesViewModel.find((({code:e})=>e===this.code));return e?e.name:""}},{key:"phone",get:function(){return`${this.code}${this.number}`}},{key:"getNumberPrefix",value:function(e){return Zt.get(e)||""}},{key:"setInitialData",value:function(){const e=this.countriesViewModel.find((({code:e})=>this.value.includes(e)));e?(this.code=e.code,this.number=this.value.replace(e.code,"").trim()):(this.code=this.defaultPhonePrefix,this.number=this.value)}},{key:"chooseCountryCode",value:function(e){this.search="",this.code=e,this.number=this.getNumberPrefix(e)}}])&&Gt(n.prototype,i),o&&Gt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(ye.lD),Dt=Wt($t.prototype,"value",[kt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tt=Wt($t.prototype,"isDisabled",[jt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nt=Wt($t.prototype,"label",[St],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rt=Wt($t.prototype,"defaultPhonePrefix",[At],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=Wt($t.prototype,"validation",[Et],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt($t.prototype,"onInputChange",[It],Object.getOwnPropertyDescriptor($t.prototype,"onInputChange"),$t.prototype),Wt($t.prototype,"countriesViewModel",[Ct],Object.getOwnPropertyDescriptor($t.prototype,"countriesViewModel"),$t.prototype),zt=$t))||zt),_r=(0,qe.A)(Or,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"row"},[t("div",{staticClass:"col-3 pr-0"},[t("dp-dropdown",{attrs:{"data-test-id":"country-code-dropdown",disabled:e.isDisabled,scrollable:"","toggle-class":"btn btn-light btn-lg btn-block btn-custom","toggle-tag":"button"}},[t("template",{slot:"toggle"},[e._v("\n "+e._s(e.code)+"\n "),t("dp-icon-caret",{staticClass:"ml-0-5",attrs:{size:12}})],1),e._v(" "),t("div",{staticClass:"px-1-5 pt-1 pb-0"},[t("dp-input-default",{attrs:{"data-test-id":"country-code-input",placeholder:e.inputPlaceholder,size:"lg"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.preventDefault()}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),e._l(e.filteredCountries,(function({country:r,name:n,code:i}){return t("dp-dropdown-item",{key:r,attrs:{text:n},nativeOn:{click:function(t){return e.chooseCountryCode(i)}}})}))],2)],1),e._v(" "),t("div",{staticClass:"col-9"},[t("dp-input",{staticClass:"mb-0",attrs:{"data-test-id":"phone-number-input",disabled:e.isDisabled,"form-control-class":"inspectletIgnore",label:e.label,type:"tel",validation:e.validation},on:{blur:function(t){return e.$emit("blur")},keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.preventDefault()}},model:{value:e.number,callback:function(t){e.number=t},expression:"number"}})],1)])}),[],!1,null,"7a1206e0",null).exports,kr=r(50065);function jr(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Sr(e,t){for(var r=0;rthis.$v.$touch()))}},{key:"validations",value:function(){const e={formPhone:{required:bt.mw,phoneValidator:dt.lZ,apiValidator:(0,kr.A)(this.apiErrors?.phone)}};return this.emailInputHidden||(e.formEmail={required:bt.mw,email:bt.Rp}),this.confirmEmailVisible&&(e.formEmailConfirm={required:bt.mw,sameAsEmail:(0,bt.f4)("formEmail")}),this.formPhone.includes("+376")&&delete e.formPhone.phoneValidator,e}},{key:"onChange",value:function(e){this.isFormInvalid=e}},{key:"phonePrefix",get:function(){return this.config.isoLocale.phonePrefix}},{key:"confirmEmailVisible",get:function(){return!this.emailInputHidden&&this.config.app.showConfirmEmailField}},{key:"phoneNumberHint",get:function(){return this.isBookingRequest?this.$trans("booking_request_data_number_subtitle"):this.isPhoneVerified?this.$trans("booking_mobile_phone_hint_verified"):this.$trans("booking_mobile_phone_hint")}},{key:"emailHint",get:function(){return this.isBookingRequest?this.$trans("booking_request_data_email_subtitle"):this.$trans("booking_email_hint")}},{key:"emailLabel",get:function(){return this.isSomeoneElse?this.$trans("booking_your_email_someone_else"):this.$trans("booking_email")}},{key:"phoneLabel",get:function(){return`${this.isSomeoneElse?this.$trans("booking_your_mobile_phone_someone_else"):this.$trans("booking_mobile_phone")} *`}},{key:"formPhoneValidation",get:function(){return this.$validate("formPhone",{apiValidator:"booking_phone_invalid_foreign",phoneValidator:"booking_phone_invalid",required:"booking_phone_required"})}},{key:"formEmailValidation",get:function(){return this.$validate("formEmail",{email:"booking_email_invalid",required:"booking_email_required"})}},{key:"formEmailConfirmValidation",get:function(){return this.confirmEmailVisible?this.$validate("formEmailConfirm",{sameAsEmail:"booking_email_confirm_invalid",required:"booking_email_confirm_required"}):null}}])&&Sr(r.prototype,n),i&&Sr(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(ye.lD),dr=$r(pr.prototype,"config",[tr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),br=$r(pr.prototype,"isSomeoneElse",[rr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yr=$r(pr.prototype,"emailInputHidden",[nr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mr=$r(pr.prototype,"isPhoneVerified",[ir],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vr=$r(pr.prototype,"isBookingRequest",[or],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hr=$r(pr.prototype,"apiErrors",[ar],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gr=$r(pr.prototype,"formEmail",[sr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wr=$r(pr.prototype,"formPhone",[ur],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pr=$r(pr.prototype,"isFormInvalid",[cr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$r(pr.prototype,"onChange",[lr],Object.getOwnPropertyDescriptor(pr.prototype,"onChange"),pr.prototype),fr=pr))||fr),Yr=(0,qe.A)(Qr,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.isSomeoneElse?e._e():t("h4",{attrs:{"data-test-id":"contact-details-header"}},[e._v("\n "+e._s(e.$trans("booking_contact_details"))+" *\n ")]),e._v(" "),t("dp-phone",{attrs:{id:"phone","data-test-id":"mobile-phone-number-input","default-phone-prefix":e.phonePrefix,"is-disabled":e.config.isImpostor,label:e.phoneLabel,validation:e.formPhoneValidation},on:{blur:e.$v.formPhone.$touch,input:e.$v.formPhone.$reset},model:{value:e.formPhone,callback:function(t){e.formPhone="string"==typeof t?t.trim():t},expression:"formPhone"}}),e._v(" "),t("p",{staticClass:"text-muted mt-1",attrs:{"data-test-id":"entered-phone-info"}},[e._v("\n "+e._s(e.phoneNumberHint)+"\n ")]),e._v(" "),e.emailInputHidden?e._e():t("div",{staticClass:"mt-1"},[t("dp-input",{staticClass:"mb-0",attrs:{"data-test-id":"email-input","form-control-class":"inspectletIgnore",label:e.emailLabel,validation:e.formEmailValidation},on:{blur:e.$v.formEmail.$touch,input:e.$v.formEmail.$reset},model:{value:e.formEmail,callback:function(t){e.formEmail="string"==typeof t?t.trim():t},expression:"formEmail"}},[e._v("\n *\n ")])],1),e._v(" "),e.confirmEmailVisible?t("div",{staticClass:"mt-1-5"},[t("dp-input",{staticClass:"mb-0",attrs:{"data-test-id":"email-verification-input","form-control-class":"inspectletIgnore",label:e.$trans("booking_email_confirm"),validation:e.formEmailConfirmValidation},on:{blur:e.$v.formEmailConfirm.$touch,input:e.$v.formEmailConfirm.$reset,paste:function(e){e.preventDefault()}},model:{value:e.formEmailConfirm,callback:function(t){e.formEmailConfirm="string"==typeof t?t.trim():t},expression:"formEmailConfirm"}},[e._v("\n *\n ")])],1):e._e(),e._v(" "),e.emailInputHidden?e._e():t("p",{staticClass:"text-muted mt-1",attrs:{"data-test-id":"email-hint"}},[e._v("\n "+e._s(e.emailHint)+"\n ")])],1)}),[],!1,null,null,null).exports;function Kr(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Xr(e,t){for(var r=0;rthis.$v.$touch()))}},{key:"validations",value:function(){return{formPatientAddressCity:{required:bt.mw},formPatientAddressStreet:{required:bt.mw},formPatientAddressNumber:{required:bt.mw},formPatientAddressPostalCode:{required:bt.mw}}}},{key:"onChange",value:function(e){this.isFormInvalid=e}},{key:"formPatientAddressCityValidation",get:function(){return this.$validate("formPatientAddressCity",{required:"booking_address_city_required"})}},{key:"formPatientAddressStreetValidation",get:function(){return this.$validate("formPatientAddressStreet",{required:"booking_address_street_required"})}},{key:"formPatientAddressNumberValidation",get:function(){return this.$validate("formPatientAddressNumber",{required:"booking_address_number_required"})}},{key:"formPatientAddressPostalCodeValidation",get:function(){return this.$validate("formPatientAddressPostalCode",{required:"booking_address_pd_required"})}}])&&Xr(r.prototype,n),i&&Xr(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(ye.lD),Fr=rn(qr.prototype,"formPatientAddressStreet",[Tr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lr=rn(qr.prototype,"formPatientAddressNumber",[Nr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ur=rn(qr.prototype,"formPatientAddressCity",[Rr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gr=rn(qr.prototype,"formPatientAddressPostalCode",[Br],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Hr=rn(qr.prototype,"isFormInvalid",[Mr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rn(qr.prototype,"onChange",[xr],Object.getOwnPropertyDescriptor(qr.prototype,"onChange"),qr.prototype),Vr=qr))||Vr);var on,an=nn,sn=(0,qe.A)(an,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"mt-5"},[t("h4",[e._v("\n "+e._s(e.$trans("booking_address_information"))+"\n ")]),e._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"col-9"},[t("dp-input",{attrs:{"form-control-class":"inspectletIgnore",label:e.$trans("booking_address_information_street"),validation:e.formPatientAddressStreetValidation},on:{blur:e.$v.formPatientAddressStreet.$touch},model:{value:e.formPatientAddressStreet,callback:function(t){e.formPatientAddressStreet="string"==typeof t?t.trim():t},expression:"formPatientAddressStreet"}},[e._v("\n *\n ")])],1),e._v(" "),t("div",{staticClass:"col-3"},[t("dp-input",{attrs:{"form-control-class":"inspectletIgnore",label:e.$trans("booking_address_information_number"),validation:e.formPatientAddressNumberValidation},on:{blur:e.$v.formPatientAddressNumber.$touch},model:{value:e.formPatientAddressNumber,callback:function(t){e.formPatientAddressNumber="string"==typeof t?t.trim():t},expression:"formPatientAddressNumber"}},[e._v("\n *\n ")])],1)]),e._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"col-3"},[t("dp-input",{attrs:{"form-control-class":"inspectletIgnore",label:e.$trans("booking_address_information_pd"),validation:e.formPatientAddressPostalCodeValidation},on:{blur:e.$v.formPatientAddressPostalCode.$touch},model:{value:e.formPatientAddressPostalCode,callback:function(t){e.formPatientAddressPostalCode="string"==typeof t?t.trim():t},expression:"formPatientAddressPostalCode"}},[e._v("\n *\n ")])],1),e._v(" "),t("div",{staticClass:"col-9"},[t("dp-input",{attrs:{"form-control-class":"inspectletIgnore",label:e.$trans("booking_address_information_city"),validation:e.formPatientAddressCityValidation},on:{blur:e.$v.formPatientAddressCity.$touch},model:{value:e.formPatientAddressCity,callback:function(t){e.formPatientAddressCity="string"==typeof t?t.trim():t},expression:"formPatientAddressCity"}},[e._v("\n *\n ")])],1)])])}),[],!1,null,null,null).exports,un=r(61897);function cn(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);rthis.$v.$touch()))}},{key:"validations",value:function(){return{formName:{required:bt.mw},formSurname:{required:bt.mw},formSomeoneName:{required:(0,bt.F5)((()=>this.isSomeoneElse))},formSomeoneSurname:{required:(0,bt.F5)((()=>this.isSomeoneElse))},formNin:{required:(0,bt.F5)((()=>this.ninRequired)),apiValidator:(0,kr.A)(this.apiErrors?.nin)},formGender:{required:(0,bt.F5)((()=>this.showGender))},formBirthDate:{required:(0,bt.F5)((()=>this.showBirthDate)),isInThePast:e=>!this.showBirthDate||(0,bt.F5)((()=>this.showBirthDate))(e)&&new Date(e){if(!this.showBirthDate)return!0;const t=(0,bt.F5)((()=>this.showBirthDate))(e),r=(new Date).setFullYear((new Date).getFullYear()-150);return t&&new Date(e)>new Date(r)}},formInsuranceNumber:{required:(0,bt.F5)((()=>this.insuranceNumberRequired))}}}},{key:"onChange",value:function(e){this.isFormInvalid=e}},{key:"header",get:function(){return this.isSomeoneElse?this.$trans("booking_contact_details_someone_else"):this.$trans("booking_patient_details")}},{key:"nameLabel",get:function(){return this.isSomeoneElse?this.$trans("booking_your_name_someone_else"):this.$trans("booking_patient_name")}},{key:"surnameLabel",get:function(){return this.isSomeoneElse?this.$trans("booking_your_surname_someone_else"):this.$trans("booking_patient_surname")}},{key:"ninLabel",get:function(){return this.isSomeoneElse?this.$trans("booking_patient_nin_someone_else"):this.$trans("booking_patient_nin")}},{key:"birthDateHeader",get:function(){return this.$trans("booking_patient_birth_date")}},{key:"insuranceNumberLabel",get:function(){return this.isSomeoneElse?this.$trans("booking_insurance_someone_else"):this.$trans("booking_insurance")}},{key:"genderOptions",get:function(){return[{value:g.im.FEMALE,text:this.$trans("booking_patient_gender_female")},{value:g.im.MALE,text:this.$trans("booking_patient_gender_male")}].concat(fi(this.showGenderOtherValue?[{value:g.im.OTHER,text:this.$trans("booking_patient_gender_other")}]:[]))}},{key:"showAdditionalFields",get:function(){return this.showNin||this.showGender||this.showBirthDate||this.showInsuranceNumber}},{key:"formSomeoneNameValidation",get:function(){return this.$validate("formSomeoneName",{required:"booking_someone_name_required"})}},{key:"formSomeoneSurnameValidation",get:function(){return this.$validate("formSomeoneSurname",{required:"booking_someone_surname_required"})}},{key:"formNameValidation",get:function(){return this.$validate("formName",{required:"booking_name_required"})}},{key:"formSurnameValidation",get:function(){return this.$validate("formSurname",{required:"booking_surname_required"})}},{key:"formNinValidation",get:function(){return this.$validate("formNin",{apiValidator:"booking_nin_invalid",required:"booking_nin_required"})}},{key:"formInsuranceNumberValidation",get:function(){return this.$validate("formInsuranceNumber",{required:"booking_insurance_required"})}},{key:"formGenderValidation",get:function(){return this.$validate("formGender",{required:"plz_select_your_gender"})}},{key:"formBirthDateValidation",get:function(){return this.$validate("formBirthDate",{required:"booking_birth_date_required",isInThePast:"booking_birth_date",isNotOlderThan150Years:"booking_birth_date"})}},{key:"areUserDataInputsDisabled",get:function(){return!this.$acl.can(he.I1)&&this.$acl.hasRole(m.tX)&&this.blockPatientNameInputs}},{key:"showNinHint",get:function(){return this.config.app.showNinHint}},{key:"ninHint",get:function(){return this.$trans("booking_patient_nin_hint")}}])&&bi(r.prototype,n),i&&bi(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(ye.lD),qn=wi(Vn.prototype,"config",[vn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fn=wi(Vn.prototype,"blockPatientNameInputs",[hn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ln=wi(Vn.prototype,"showNin",[gn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Un=wi(Vn.prototype,"showGender",[wn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gn=wi(Vn.prototype,"showGenderOtherValue",[Pn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Hn=wi(Vn.prototype,"showBirthDate",[On],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qn=wi(Vn.prototype,"showInsuranceNumber",[_n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yn=wi(Vn.prototype,"isSomeoneElse",[kn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kn=wi(Vn.prototype,"apiErrors",[jn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xn=wi(Vn.prototype,"ninRequired",[Sn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Jn=wi(Vn.prototype,"insuranceNumberRequired",[An],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wn=wi(Vn.prototype,"userSettingsLink",[En],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zn=wi(Vn.prototype,"formName",[In],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ei=wi(Vn.prototype,"formSurname",[Cn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ti=wi(Vn.prototype,"formSomeoneName",[zn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ri=wi(Vn.prototype,"formSomeoneSurname",[$n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ni=wi(Vn.prototype,"formNin",[Dn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ii=wi(Vn.prototype,"formInsuranceNumber",[Tn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oi=wi(Vn.prototype,"formBirthDate",[Nn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ai=wi(Vn.prototype,"formGender",[Rn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),si=wi(Vn.prototype,"isFormInvalid",[Bn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wi(Vn.prototype,"onChange",[Mn],Object.getOwnPropertyDescriptor(Vn.prototype,"onChange"),Vn.prototype),xn=Vn))||xn),Ki=(0,qe.A)(Yi,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.isSomeoneElse?t("div",{staticClass:"mb-5",attrs:{"data-test-id":"for-someone-else"}},[t("h4",{attrs:{"data-test-id":"patient-details-someone-else-heading"}},[e._v("\n "+e._s(e.$trans("booking_patient_details_someone_else"))+" *\n ")]),e._v(" "),t("dp-input",{attrs:{"data-test-id":"patient-name-someone-else","form-control-class":"inspectletIgnore",label:e.$trans("booking_patient_name_someone_else"),validation:e.formSomeoneNameValidation},on:{blur:e.$v.formSomeoneName.$touch},model:{value:e.formSomeoneName,callback:function(t){e.formSomeoneName="string"==typeof t?t.trim():t},expression:"formSomeoneName"}},[e._v("\n *\n ")]),e._v(" "),t("dp-input",{attrs:{"data-test-id":"patient-surname-someone-else","form-control-class":"inspectletIgnore",label:e.$trans("booking_patient_surname_someone_else"),validation:e.formSomeoneSurnameValidation},on:{blur:e.$v.formSomeoneSurname.$touch},model:{value:e.formSomeoneSurname,callback:function(t){e.formSomeoneSurname="string"==typeof t?t.trim():t},expression:"formSomeoneSurname"}},[e._v("\n *\n ")]),e._v(" "),t("dp-transition-expanded",[e.showAdditionalFields?t("div",{staticClass:"additional-fields"},[e.showBirthDate?t("h4",[e._v("\n "+e._s(e.birthDateHeader)+" *\n ")]):e._e(),e._v(" "),e.showBirthDate?t("dp-input",{attrs:{id:"birthDate","data-test-id":"patient-birth-date","form-control-class":"inspectletIgnore",type:"date",validation:e.formBirthDateValidation},on:{blur:e.$v.formBirthDate.$touch},model:{value:e.formBirthDate,callback:function(t){e.formBirthDate=t},expression:"formBirthDate"}}):e._e(),e._v(" "),e.showGender?t("dp-select",{attrs:{"data-test-id":"patient-gender",options:e.genderOptions,placeholder:e.$trans("booking_patient_gender"),validation:e.formGenderValidation},on:{blur:e.$v.formGender.$touch},model:{value:e.formGender,callback:function(t){e.formGender=t},expression:"formGender"}}):e._e(),e._v(" "),e.showNin?t("dp-input",{attrs:{id:"nin","form-control-class":"inspectletIgnore",label:e.ninLabel,validation:e.formNinValidation},on:{blur:e.$v.formNin.$touch},model:{value:e.formNin,callback:function(t){e.formNin="string"==typeof t?t.trim():t},expression:"formNin"}},[e._v("\n *\n ")]):e._e(),e._v(" "),e.showInsuranceNumber?t("dp-input",{attrs:{id:"insurance-number-someone-else","form-control-class":"inspectletIgnore",label:e.insuranceNumberLabel,validation:e.formInsuranceNumberValidation},on:{blur:e.$v.formInsuranceNumber.$touch},model:{value:e.formInsuranceNumber,callback:function(t){e.formInsuranceNumber="string"==typeof t?t.trim():t},expression:"formInsuranceNumber"}},[e.insuranceNumberRequired?t("span",[e._v("*")]):e._e()]):e._e()],1):e._e()])],1):e._e(),e._v(" "),t("div",[t("h4",{attrs:{"data-test-id":"personal-details-header"}},[e._v("\n "+e._s(e.header)+" *\n ")]),e._v(" "),t("dp-input",{attrs:{"data-test-id":"your-name-input",disabled:e.areUserDataInputsDisabled,"form-control-class":"inspectletIgnore",label:e.nameLabel,validation:e.formNameValidation},on:{blur:e.$v.formName.$touch},model:{value:e.formName,callback:function(t){e.formName="string"==typeof t?t.trim():t},expression:"formName"}},[e._v("\n *\n ")]),e._v(" "),t("dp-input",{attrs:{"data-test-id":"your-surname-input",disabled:e.areUserDataInputsDisabled,"form-control-class":"inspectletIgnore",label:e.surnameLabel,validation:e.formSurnameValidation},on:{blur:e.$v.formSurname.$touch},model:{value:e.formSurname,callback:function(t){e.formSurname="string"==typeof t?t.trim():t},expression:"formSurname"}},[e._v("\n *\n ")]),e._v(" "),e.areUserDataInputsDisabled?t("p",[e._v("\n "+e._s(e.$trans("booking_patient_details_hint"))+"\n "),t("a",{attrs:{href:e.userSettingsLink}},[e._v("\n "+e._s(e.$trans("booking_patient_details_hint_link"))+"\n ")])]):e._e(),e._v(" "),t("dp-transition-expanded",[!e.isSomeoneElse&&e.showAdditionalFields?t("div",{staticClass:"additional-fields"},[e.showBirthDate?t("h4",[e._v("\n "+e._s(e.birthDateHeader)+" *\n ")]):e._e(),e._v(" "),e.showBirthDate?t("dp-input",{attrs:{id:"birthDate","data-test-id":"patient-birth-date","form-control-class":"inspectletIgnore",type:"date",validation:e.formBirthDateValidation},on:{blur:e.$v.formBirthDate.$touch},model:{value:e.formBirthDate,callback:function(t){e.formBirthDate=t},expression:"formBirthDate"}}):e._e(),e._v(" "),e.showGender?t("dp-select",{attrs:{"data-test-id":"patient-gender",options:e.genderOptions,placeholder:e.$trans("booking_patient_gender"),validation:e.formGenderValidation},on:{blur:e.$v.formGender.$touch},model:{value:e.formGender,callback:function(t){e.formGender=t},expression:"formGender"}}):e._e(),e._v(" "),e.showNin?t("dp-input",{attrs:{id:"nin","form-control-class":"inspectletIgnore",label:e.ninLabel,validation:e.formNinValidation},on:{blur:e.$v.formNin.$touch},model:{value:e.formNin,callback:function(t){e.formNin="string"==typeof t?t.trim():t},expression:"formNin"}},[e.ninRequired?t("span",[e._v("*")]):e._e()]):e._e(),e._v(" "),e.showNinHint?t("p",{staticClass:"text-muted mt-1"},[e._v("\n "+e._s(e.ninHint)+"\n ")]):e._e(),e._v(" "),e.showInsuranceNumber?t("dp-input",{attrs:{id:"insurance-number","form-control-class":"inspectletIgnore",label:e.insuranceNumberLabel,validation:e.formInsuranceNumberValidation},on:{blur:e.$v.formInsuranceNumber.$touch},model:{value:e.formInsuranceNumber,callback:function(t){e.formInsuranceNumber="string"==typeof t?t.trim():t},expression:"formInsuranceNumber"}},[e.insuranceNumberRequired?t("span",[e._v("*")]):e._e()]):e._e()],1):e._e()])],1)])}),[],!1,null,"11e84d88",null).exports,Xi=r(78439);function Ji(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Wi(e,t){for(var r=0;rr.e(149).then(r.bind(r,7521)),beforeEnter:co.GI,meta:{progress:0}},{path:`/booking/${e.get("@BookVisitSlots")}/:doctorId/:addressId/:visitStart/:serviceId?`,name:wo,props:!0,component:()=>Promise.all([r.e(990),r.e(631)]).then(r.bind(r,60706)),meta:{progress:15}},{path:`/booking/${e.get("@BookVisit")}/:doctorId/:addressId/:visitStart/:serviceId?`,component:Fe,beforeEnter:co.OK,props:!0,children:[{path:"",name:po,props:!0,component:uo,meta:{gtmIgnore:!0,progress:25}},{path:`/booking/${e.get("@BookVisitAdditionalQuestions")}/:doctorId/:addressId/:visitStart/:serviceId`,name:bo,component:()=>r.e(694).then(r.bind(r,75985)),meta:{progress:30}}]},{path:`/booking/${e.get("@BookVisitConfirm")}/:doctorId/:addressId/:visitStart/:serviceId`,name:yo,props:!0,component:()=>r.e(116).then(r.bind(r,214)),beforeEnter:co.J8,meta:{gtmIgnore:!0,progress:50,acl:[he.vC,he.pJ]}},{path:"/booking/payments/:doctorId/:addressId/:bookedSlotId",redirect:{name:mo}},{path:`/booking/${e.get("@BookVisitPayment")}/:doctorId/:addressId/:bookedSlotId`,name:mo,props:!0,component:()=>Promise.all([r.e(990),r.e(646)]).then(r.bind(r,38191)),meta:{progress:75}},{path:`/booking/${e.get("@BookVisitPaymentFailed")}/:doctorId/:addressId/:bookedSlotId`,name:vo,props:!0,component:()=>Promise.all([r.e(990),r.e(801)]).then(r.bind(r,79759)),meta:{progress:75}},{path:`/booking/${e.get("@BookVisitSuccess")}/:doctorId/:addressId/:bookedSlotId`,name:ho,props:!0,component:()=>Promise.all([r.e(990),r.e(393)]).then(r.bind(r,52139)),meta:{progress:100}},{path:"/booking/request-success/:doctorId/:addressId/:visitStart/:serviceId",name:go,props:!0,component:()=>Promise.all([r.e(990),r.e(762)]).then(r.bind(r,88190)),meta:{progress:100}},{path:"*",meta:{layout:lo.G.error}}]})}},89505:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(65517),i=r(85471),o=r(95353),a=r(55410);i.Ay.use(o.Ay);const s="booking-flow",u=new a.Ay({key:s,storage:window.localStorage,reducer:e=>({FORM:e.FORM})}),c=new o.Ay.Store({plugins:[(0,n.Ay)(),u.plugin],strict:!1});t.A=c},75024:function(e,t,r){"use strict";r.d(t,{Ay:function(){return L}});var n,i,o,a,s,u=r(27604),c=r(80787),l=r(65517),f=r(32552),p=r(13901),d=r(99035),b=r(34778),y=r(87458),m=r(104),v=r(22717);function h(e,t){for(var r=0;rthis.context.rootGetters[l.fV](c.E.INSURANCE_PROVIDER,e)}},{key:"insurancePlanById",get:function(){return e=>this.context.rootGetters[l.fV](c.E.INSURANCE_PLAN,e)}},{key:"fetchAddressSuccess",value:function(e){this.currentAddress=e.result}},{key:"setIsVisibleOptimizeEvent",value:function(e){this.isVisible=e}},{key:"setVariantOptimizeEvent",value:function(e){this.variant=e}},{key:"fetchAddress",value:function(e){const{addressId:t,doctorId:r,scopes:n}=e;let i=[u.d.advancedConfigurationEnabled,u.d.allowedPatients,u.d.availableRemoteChannels,u.d.diagnosticIntegrated,u.d.directions,u.d.extraFields,u.d.insuranceSupport,u.d.integrationType,u.d.isAcceptingNewPatients,u.d.isPaymentAfterVisit,u.d.marketplacePaymentShowPaymentPage,u.d.onlineOnly,u.d.paymentAccountType,u.d.paymentInstructions,u.d.paymentMethods,u.d.refundPolicy,u.d.timezone,u.d.isBookingRequestEnabled];(0,d.A)()&&(i=i.concat([u.d.facility,u.d.facilityPhoto])),n&&(i=i.concat(n));const o={with:i};return q.fetchAddress(r,t,o)}},{key:"fetchInsuranceProviders",value:async function(e){const t=await F.fetchInsuranceProviders();return this.context.commit(l.i2,{entity:c.E.ADDRESS,key:e,payload:{insuranceProviders:t.result.items}},{root:!0}),t}}])}(b.hw),V(z.prototype,"fetchAddressSuccess",[b.sM],Object.getOwnPropertyDescriptor(z.prototype,"fetchAddressSuccess"),z.prototype),V(z.prototype,"setIsVisibleOptimizeEvent",[b.sM],Object.getOwnPropertyDescriptor(z.prototype,"setIsVisibleOptimizeEvent"),z.prototype),V(z.prototype,"setVariantOptimizeEvent",[b.sM],Object.getOwnPropertyDescriptor(z.prototype,"setVariantOptimizeEvent"),z.prototype),V(z.prototype,"fetchAddress",[E],Object.getOwnPropertyDescriptor(z.prototype,"fetchAddress"),z.prototype),V(z.prototype,"fetchInsuranceProviders",[I],Object.getOwnPropertyDescriptor(z.prototype,"fetchInsuranceProviders"),z.prototype),C=z))||C);(0,b.f_)(L)},61496:function(e,t,r){"use strict";r.d(t,{Ay:function(){return x}});var n,i,o,a,s,u=r(96490),c=r(13901),l=r(104),f=r(22717);function p(e,t){for(var r=0;r{const{patientAddressStreet:e,patientAddressNumber:t,patientAddressCity:r,patientAddressPostalCode:n}=this;return f(f(f(f({},e&&{street:e}),t&&{streetAdditional:t}),r&&{city:r}),n&&{zipcode:n})},t=Object.keys(e()).length>0;return f(f(f({patient:f(f(f(f(f(f({name:this.isSomeoneElse?this.someoneName:this.name,surname:this.isSomeoneElse?this.someoneSurname:this.surname,email:this.email,phone:this.phone,relation:this.isSomeoneElse?o.NH.other:o.NH.self},(()=>f({},this.nin&&{nin:this.nin}))()),(()=>f({},this.gender&&{gender:this.gender}))()),(()=>f({},this.birthDate&&{birthDate:this.birthDate}))()),(()=>f({},this.insuranceNumber&&{insuranceNumber:this.insuranceNumber}))()),t&&{patientAddress:f({},e())}),{},{userAgreements:(()=>f(f({},this.formDataProcessingTimestamp&&{generalConsent:this.formDataProcessingTimestamp>0}),this.formMarketingAgreement&&{generalMarketingAgreement:this.formMarketingAgreement}))()}),additionalQuestionAnswers:this.additionalQuestionsFormAnswers,addressServiceId:this.serviceId},(()=>f({},null!=this.serviceIsSelfPayer&&{selfpayer:this.serviceIsSelfPayer}))()),{},{agreementId:this.agreementId,isReturning:!this.formIsFirstVisit,isSuspectedCoronavirus:this.formHasCovidSymptoms,comment:this.isSomeoneElse?this.someoneElseComment:this.comment,sendNotifications:this.formMarketingAgreement,isFromBookingApp:!0,marketingAgreement:this.formMarketingAgreement},(()=>{const{insuranceProviderId:e,insurancePlanId:t}=this;return f(f({},e&&{insuranceProviderId:e}),t&&{insurancePlanId:t})})()),(()=>f({},this.callCenterId&&{callCenterId:this.callCenterId}))())}},{key:"setSmsConfirm",value:function(e){this.smsConfirmed=e}},{key:"setAddressHasStripeEnabled",value:function(e){this.addressHasStripeEnabled=e}},{key:"setContext",value:function(e){this.patientContext=e}},{key:"setServiceId",value:function(e){this.serviceId=e}},{key:"setServiceIsGratis",value:function(e){this.serviceIsGratis=e}},{key:"setServicePrice",value:function(e){this.servicePrice=e}},{key:"setServiceIsSelfPayer",value:function(e){this.serviceIsSelfPayer=e}},{key:"setHasNoInsurance",value:function(e){this.hasNoInsurance=e}},{key:"setInsuranceProviderId",value:function(e){this.insuranceProviderId=e||""}},{key:"setInsurancePlanId",value:function(e){this.insurancePlanId=e||""}},{key:"setIsOnlineVisit",value:function(e){this.isOnlineVisit=e}},{key:"setIsPaymentAfterVisit",value:function(e){this.isPaymentAfterVisit=e}},{key:"setShowPaymentPage",value:function(e){this.marketplacePaymentShowPaymentPage=e}},{key:"setIsSelectedSlotGrouped",value:function(e){this.isSelectedSlotGrouped=e}},{key:"setName",value:function(e){this.name=e}},{key:"setSurname",value:function(e){this.surname=e}},{key:"setAgreementId",value:function(e){this.agreementId=e}},{key:"setSomeoneName",value:function(e){this.someoneName=e}},{key:"setSomeoneSurname",value:function(e){this.someoneSurname=e}},{key:"setBirthDate",value:function(e){this.birthDate=e}},{key:"setPatientAddressStreet",value:function(e){this.patientAddressStreet=e}},{key:"setPatientAddressNumber",value:function(e){this.patientAddressNumber=e}},{key:"setPatientAddressCity",value:function(e){this.patientAddressCity=e}},{key:"setPatientAddressPostalCode",value:function(e){this.patientAddressPostalCode=e}},{key:"setNin",value:function(e){this.nin=e}},{key:"setInsuranceNumber",value:function(e){this.insuranceNumber=e}},{key:"setGender",value:function(e){this.gender=e}},{key:"setEmail",value:function(e){this.email=e}},{key:"setPhone",value:function(e){this.phone=e}},{key:"setCovidSymptoms",value:function(e){this.covidSymptoms=e}},{key:"setFirstVisit",value:function(e){this.firstVisit=e}},{key:"setComment",value:function(e){this.comment=e}},{key:"setAdditionalQuestionsFormAnswers",value:function(e){this.additionalQuestionsFormAnswers=JSON.parse(JSON.stringify(e))}},{key:"setVisitStart",value:function(e){this.visitStart=e}},{key:"setShowCalendar",value:function(e){this.showCalendar=e}},{key:"setDoctorId",value:function(e){this.doctorId=e}},{key:"setAddressId",value:function(e){this.addressId=e}},{key:"setSmsAttempt",value:function(){this.smsAttempt+=1}},{key:"resetSmsAttempt",value:function(){this.smsAttempt=0}},{key:"setApiErrors",value:function(e){this.apiErrors=f(f({},this.apiErrors),e)}},{key:"setCallCenterId",value:function(e){this.callCenterId=e}},{key:"clearAllApiErrors",value:function(){this.apiErrors=null}},{key:"clearApiErrors",value:function(e){this.apiErrors&&this.apiErrors[e]&&(this.apiErrors[e]="")}},{key:"setFormRulesTimestamp",value:function(e){this.formRulesTimestamp=e}},{key:"setFiltersPreselected",value:function(e){this.filtersPreselected=e}},{key:"setQueryParamFacilityProfileId",value:function(e){this.queryParamFacilityProfileId=e}},{key:"setFormDataProcessingTimestamp",value:function(e){this.formDataProcessingTimestamp=e}},{key:"setFormMarketingAgreement",value:function(e){this.formMarketingAgreement=e}},{key:"resetState",value:function(){this.additionalQuestionsFormAnswers=[],this.addressId="",this.addressHasStripeEnabled=!1,this.agreementId="",this.apiErrors=null,this.callCenterId="",this.comment="",this.covidSymptoms=O.EMPTY,this.doctorId="",this.email="",this.firstVisit=_.EMPTY,this.formDataProcessingTimestamp=0,this.formMarketingAgreement=!1,this.formRulesTimestamp=0,this.filtersPreselected=!1,this.gender=P.EMPTY,this.hasNoInsurance=!1,this.insurancePlanId="",this.insuranceProviderId="",this.isOnlineVisit=!1,this.isPaymentAfterVisit=!1,this.marketplacePaymentShowPaymentPage=!0,this.isSelectedSlotGrouped=null,this.name="",this.birthDate="",this.insuranceNumber="",this.nin="",this.patientContext=w.own,this.patientAddressStreet="",this.patientAddressNumber="",this.patientAddressCity="",this.patientAddressPostalCode="",this.phone="",this.serviceId="",this.serviceIsGratis=!1,this.servicePrice=null,this.serviceIsSelfPayer=null,this.showCalendar=!1,this.smsAttempt=0,this.someoneName="",this.someoneSurname="",this.surname="",this.visitStart="",this.smsConfirmed=!1,this.queryParamFacilityProfileId=""}}])&&p(r.prototype,n),i&&p(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(u.hw),g(i.prototype,"setSmsConfirm",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setSmsConfirm"),i.prototype),g(i.prototype,"setAddressHasStripeEnabled",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setAddressHasStripeEnabled"),i.prototype),g(i.prototype,"setContext",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setContext"),i.prototype),g(i.prototype,"setServiceId",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setServiceId"),i.prototype),g(i.prototype,"setServiceIsGratis",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setServiceIsGratis"),i.prototype),g(i.prototype,"setServicePrice",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setServicePrice"),i.prototype),g(i.prototype,"setServiceIsSelfPayer",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setServiceIsSelfPayer"),i.prototype),g(i.prototype,"setHasNoInsurance",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setHasNoInsurance"),i.prototype),g(i.prototype,"setInsuranceProviderId",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setInsuranceProviderId"),i.prototype),g(i.prototype,"setInsurancePlanId",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setInsurancePlanId"),i.prototype),g(i.prototype,"setIsOnlineVisit",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setIsOnlineVisit"),i.prototype),g(i.prototype,"setIsPaymentAfterVisit",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setIsPaymentAfterVisit"),i.prototype),g(i.prototype,"setShowPaymentPage",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setShowPaymentPage"),i.prototype),g(i.prototype,"setIsSelectedSlotGrouped",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setIsSelectedSlotGrouped"),i.prototype),g(i.prototype,"setName",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setName"),i.prototype),g(i.prototype,"setSurname",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setSurname"),i.prototype),g(i.prototype,"setAgreementId",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setAgreementId"),i.prototype),g(i.prototype,"setSomeoneName",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setSomeoneName"),i.prototype),g(i.prototype,"setSomeoneSurname",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setSomeoneSurname"),i.prototype),g(i.prototype,"setBirthDate",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setBirthDate"),i.prototype),g(i.prototype,"setPatientAddressStreet",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setPatientAddressStreet"),i.prototype),g(i.prototype,"setPatientAddressNumber",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setPatientAddressNumber"),i.prototype),g(i.prototype,"setPatientAddressCity",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setPatientAddressCity"),i.prototype),g(i.prototype,"setPatientAddressPostalCode",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setPatientAddressPostalCode"),i.prototype),g(i.prototype,"setNin",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setNin"),i.prototype),g(i.prototype,"setInsuranceNumber",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setInsuranceNumber"),i.prototype),g(i.prototype,"setGender",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setGender"),i.prototype),g(i.prototype,"setEmail",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setEmail"),i.prototype),g(i.prototype,"setPhone",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setPhone"),i.prototype),g(i.prototype,"setCovidSymptoms",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setCovidSymptoms"),i.prototype),g(i.prototype,"setFirstVisit",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setFirstVisit"),i.prototype),g(i.prototype,"setComment",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setComment"),i.prototype),g(i.prototype,"setAdditionalQuestionsFormAnswers",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setAdditionalQuestionsFormAnswers"),i.prototype),g(i.prototype,"setVisitStart",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setVisitStart"),i.prototype),g(i.prototype,"setShowCalendar",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setShowCalendar"),i.prototype),g(i.prototype,"setDoctorId",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setDoctorId"),i.prototype),g(i.prototype,"setAddressId",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setAddressId"),i.prototype),g(i.prototype,"setSmsAttempt",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setSmsAttempt"),i.prototype),g(i.prototype,"resetSmsAttempt",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"resetSmsAttempt"),i.prototype),g(i.prototype,"setApiErrors",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setApiErrors"),i.prototype),g(i.prototype,"setCallCenterId",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setCallCenterId"),i.prototype),g(i.prototype,"clearAllApiErrors",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"clearAllApiErrors"),i.prototype),g(i.prototype,"clearApiErrors",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"clearApiErrors"),i.prototype),g(i.prototype,"setFormRulesTimestamp",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setFormRulesTimestamp"),i.prototype),g(i.prototype,"setFiltersPreselected",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setFiltersPreselected"),i.prototype),g(i.prototype,"setQueryParamFacilityProfileId",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setQueryParamFacilityProfileId"),i.prototype),g(i.prototype,"setFormDataProcessingTimestamp",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setFormDataProcessingTimestamp"),i.prototype),g(i.prototype,"setFormMarketingAgreement",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"setFormMarketingAgreement"),i.prototype),g(i.prototype,"resetState",[u.sM],Object.getOwnPropertyDescriptor(i.prototype,"resetState"),i.prototype),n=i))||n;const A=(0,u.f_)(S)},85455:function(e,t,r){"use strict";r.d(t,{Ay:function(){return V}});var n,i,o,a,s,u=r(13901),c=r(104),l=r(22717);function f(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);re)))}},{key:"additionalBookingFields",get:function(){return this.bookingQuestions.filter((({featured:e})=>!1===e)).sort((({order:e},{order:t})=>e-t))}},{key:"isBirthDateRequired",get:function(){return this.requiredBookingQuestions.includes(P.birthDate)}},{key:"isInsuranceNumberRequired",get:function(){return this.requiredBookingQuestions.includes(P.insuranceNumber)}},{key:"isPersonalIdRequired",get:function(){return this.requiredBookingQuestions.includes(P.personalId)}},{key:"isGenderRequired",get:function(){return this.requiredBookingQuestions.includes(P.gender)}},{key:"isPatientAddressDataRequired",get:function(){return this.requiredBookingQuestions.includes(P.patientAddress)}},{key:"additionalQuestionsShown",get:function(){return this.additionalBookingFields.length>0}},{key:"fetchRulesSuccess",value:function(e){this.agreementId=e.guid,this.bookingRules=e.sentences}},{key:"fetchQuestionsSuccess",value:function(e){this.bookingQuestions=e}},{key:"resetState",value:function(){this.agreementId="",this.bookingRules=[],this.bookingQuestions=[]}},{key:"fetchRules",value:async function(e){try{const t=await x.fetchBookingRules(e);return Promise.resolve(t)}catch(e){return Promise.reject(e)}}},{key:"fetchQuestions",value:async function(e){try{const t=await x.fetchBookingQuestions(e);return Promise.resolve(t)}catch(e){return Promise.reject(e)}}}])}(A.hw),M(S.prototype,"fetchRulesSuccess",[A.sM],Object.getOwnPropertyDescriptor(S.prototype,"fetchRulesSuccess"),S.prototype),M(S.prototype,"fetchQuestionsSuccess",[A.sM],Object.getOwnPropertyDescriptor(S.prototype,"fetchQuestionsSuccess"),S.prototype),M(S.prototype,"resetState",[A.sM],Object.getOwnPropertyDescriptor(S.prototype,"resetState"),S.prototype),M(S.prototype,"fetchRules",[_],Object.getOwnPropertyDescriptor(S.prototype,"fetchRules"),S.prototype),M(S.prototype,"fetchQuestions",[k],Object.getOwnPropertyDescriptor(S.prototype,"fetchQuestions"),S.prototype),j=S))||j);(0,A.f_)(V)},9917:function(e,t,r){"use strict";r.d(t,{Ay:function(){return le}});var n,i,o,a,s,u=r(13901),c=r(104),l=r(22717);function f(e,t){for(var r=0;re.statusCode===T.P.notFound?Promise.reject(Error(w.qR)):Promise.reject(e)))}},{key:"fetchServicesFromCalendarApp",value:function(e,t,r){return this.api.request({http:{url:`/doctors/${e}/addresses/${t}/services/calendar`,method:"get",params:r,cache:!0},schema:A})}}])}(),$=function(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer?(Object.defineProperty(e,t,o),null):o}(z.prototype,"api",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=z))||C);var x,V,q,F,L,U,G,H,Q=r(14953),Y=r(65517),K=r(32552),X=r(34778),J=r(89505);function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;te.map((e=>this.context.rootGetters[Y.fV](P.E.SERVICE,e))).filter(Boolean)}},{key:"services",get:function(){return this.servicesByIds(this.allServicesIds)}},{key:"availableServices",get:function(){return this.servicesByIds(this.allAvailableServicesIds)}},{key:"otherServices",get:function(){const e=this.allAvailableServicesIds,t=this.allServicesIds.filter((t=>!e.includes(t)));return this.servicesByIds(t)}},{key:"formattedServiceId",get:function(){return e=>{const{filterServicesByInsurance:t}=Q.A.app,r=J.A.getters["FORM/storeInsuranceProviderId"];return t&&r?`${e}-${r}`:e}}},{key:"service",get:function(){return e=>this.context.rootGetters[Y.fV](P.E.SERVICE,this.formattedServiceId(e))}},{key:"fetchServicesSuccess",value:function(e){this.currentServices=e.result.items}},{key:"fetchAvailableServicesSuccess",value:function(e){this.currentAvailableServices=e.result.items}},{key:"fetchServicesFromCalendarAppSuccess",value:function(e){this.currentServices=e.result}},{key:"fetchAvailableServicesFromCalendarAppSuccess",value:function(e){this.currentAvailableServices=e.result}},{key:"fetchServices",value:async function(e){const{doctorId:t,addressId:r,calendar:n}=e,i={filters:Z({},n&&{calendar:!0}),with:[B.durations,B.isGratis,B.specialization,B.customName]};return ce.fetchServices(t,r,i)}},{key:"fetchAvailableServices",value:async function(e){const{doctorId:t,addressId:r,visitStart:n}=e,i={start:n,filters:{calendar:!0},with:[B.durations,B.isGratis,B.specialization,B.customName]};return ce.fetchServices(t,r,i)}},{key:"fetchServicesFromCalendarApp",value:async function(e){const{doctorId:t,addressId:r}=e;return ce.fetchServicesFromCalendarApp(t,r)}},{key:"fetchAvailableServicesFromCalendarApp",value:async function(e){const{doctorId:t,addressId:r,visitStart:n}=e,i={start:n};return ce.fetchServicesFromCalendarApp(t,r,i)}},{key:"fetchServicePayment",value:async function(e){const t=this.formattedServiceId(e),r=await ue.fetchServicePayment(e);return this.context.commit(Y.i2,{entity:P.E.SERVICE,key:t,payload:r},{root:!0}),r}}])}(X.hw),se(H.prototype,"fetchServicesSuccess",[X.sM],Object.getOwnPropertyDescriptor(H.prototype,"fetchServicesSuccess"),H.prototype),se(H.prototype,"fetchAvailableServicesSuccess",[X.sM],Object.getOwnPropertyDescriptor(H.prototype,"fetchAvailableServicesSuccess"),H.prototype),se(H.prototype,"fetchServicesFromCalendarAppSuccess",[X.sM],Object.getOwnPropertyDescriptor(H.prototype,"fetchServicesFromCalendarAppSuccess"),H.prototype),se(H.prototype,"fetchAvailableServicesFromCalendarAppSuccess",[X.sM],Object.getOwnPropertyDescriptor(H.prototype,"fetchAvailableServicesFromCalendarAppSuccess"),H.prototype),se(H.prototype,"fetchServices",[V],Object.getOwnPropertyDescriptor(H.prototype,"fetchServices"),H.prototype),se(H.prototype,"fetchAvailableServices",[q],Object.getOwnPropertyDescriptor(H.prototype,"fetchAvailableServices"),H.prototype),se(H.prototype,"fetchServicesFromCalendarApp",[F],Object.getOwnPropertyDescriptor(H.prototype,"fetchServicesFromCalendarApp"),H.prototype),se(H.prototype,"fetchAvailableServicesFromCalendarApp",[L],Object.getOwnPropertyDescriptor(H.prototype,"fetchAvailableServicesFromCalendarApp"),H.prototype),se(H.prototype,"fetchServicePayment",[U],Object.getOwnPropertyDescriptor(H.prototype,"fetchServicePayment"),H.prototype),G=H))||G);(0,X.f_)(le)},50762:function(e,t,r){"use strict";r.d(t,{Ay:function(){return C}});var n,i,o,a,s,u,c,l,f=r(72511),p=r(80787),d=r(65517),b=r(32552),y=r(13901),m=r(34778),v=r(89505),h=r(68497);function g(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rthis.context.rootGetters[d.Hd](p.E.SLOT,e,!0).filter(Boolean)}},{key:"slotById",get:function(){return e=>this.context.rootGetters[d.fV](p.E.SLOT,e)}},{key:"bookedSlotById",get:function(){return e=>this.context.rootGetters[d.fV](p.E.BOOKING,e)}},{key:"fetchSlotsSuccess",value:function(e){this.currentSlots=e?.result?.items,this.nearestSlotAfterDate=e?.result?.embedded?.nearestSlotAfterDate||null}},{key:"fetchVisitSuccess",value:function(e){this.bookedVisit=e.result}},{key:"fetchSlots",value:async function(e){const{doctorId:t,addressId:r,start:n,end:i,addressServiceId:o,firstVisit:a,formInsuranceProviderId:s,withAdvancedFilters:u,withBooked:c,withHasInsuranceParam:l}=e,p=!!s,d=a===h.VM.YES?1:0,b={addressServiceId:o};u&&(b.isNewPatient=d,l&&(b.hasInsurance=p?1:0),p&&(b.insuranceProviderId=s));const y={start:n,end:i,addressServiceId:o,includingSaasOnlyCalendar:!0,filters:b,with:[f.co.nearestSlotAfterEnd].concat(g(c?[f.co.withBooked]:[]))};return I.fetchSlots(t,r,y)}},{key:"fetchVisit",value:async function(e){return I.fetchVisit(e)}},{key:"bookSlot",value:async function(e){return I.bookSlot(e)}},{key:"requestSlot",value:async function(e){return I.requestSlot(e)}},{key:"removeBookedSlotEntity",value:function(e){const t=this.context.rootGetters[d.fV](p.E.SLOT,e,!0),r={entity:p.E.SLOT,key:e};t&&this.context.commit(d.qP,r,{root:!0})}}])&&P(r.prototype,n),i&&P(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(m.hw),E(l.prototype,"fetchSlotsSuccess",[m.sM],Object.getOwnPropertyDescriptor(l.prototype,"fetchSlotsSuccess"),l.prototype),E(l.prototype,"fetchVisitSuccess",[m.sM],Object.getOwnPropertyDescriptor(l.prototype,"fetchVisitSuccess"),l.prototype),E(l.prototype,"fetchSlots",[i],Object.getOwnPropertyDescriptor(l.prototype,"fetchSlots"),l.prototype),E(l.prototype,"fetchVisit",[o],Object.getOwnPropertyDescriptor(l.prototype,"fetchVisit"),l.prototype),E(l.prototype,"bookSlot",[a],Object.getOwnPropertyDescriptor(l.prototype,"bookSlot"),l.prototype),E(l.prototype,"requestSlot",[s],Object.getOwnPropertyDescriptor(l.prototype,"requestSlot"),l.prototype),E(l.prototype,"removeBookedSlotEntity",[u],Object.getOwnPropertyDescriptor(l.prototype,"removeBookedSlotEntity"),l.prototype),c=l))||c);(0,m.f_)(C)},46288:function(e,t,r){"use strict";r.d(t,{Ay:function(){return R},LU:function(){return B}});var n,i,o,a,s,u,c,l,f,p,d,b,y,m=r(82722),v=r(88848),h=r(13951),g=r(80787),w=r(65517),P=r(37460),O=r(86661),_=r(32552),k=r(13901),j=r(34778),S=r(89505);function A(e,t){for(var r=0;r!(!this.currentUser?.isPhoneVerified||this.currentUser?.phone!==e)}},{key:"fetchUserSuccess",value:function(e){this.currentUserId=e.result}},{key:"resetState",value:function(){this.currentUserId=null}},{key:"fetchUser",value:async function(){return N.fetchUser()}},{key:"checkNotLoggedInUser",value:async function(e){try{return await N.checkIfUserHasVerifiedData(e),Promise.resolve([P.X3])}catch(t){return t.message===h.wv?this.createUser(e):t.message===h.q9?(0,O.A)():Promise.reject(t)}}},{key:"validateNin",value:async function(e){return N.validateNin(e)}},{key:"validatePhoneNumber",value:async function(e){return N.validatePhoneNumber(e)}},{key:"createUser",value:async function(e){try{const{token:t,type:r}=await N.registerUser(e);return this.recreateUserSession({token:t,type:r})}catch(e){return Promise.reject(e)}}},{key:"sendVerificationCode",value:async function({email:e,phone:t,secondarySender:r,reCaptchaToken:n}){return N.sendVerificationCode(e,t,r,n)}},{key:"checkVerificationCode",value:async function(e){const{email:t,phone:r,code:n}=e;try{const{autoLoginRedirect:e,token:i,type:o}=await N.checkVerificationCode(n,t,r);return e&&i&&o?this.recreateUserSession({token:i,type:o}):Promise.resolve()}catch(e){return Promise.reject(e)}}},{key:"recreateUserSession",value:async function({token:e,type:t}){try{return await T.ssoAutoLogin(e,t),await T.monolithAutoLogin(),(0,O.A)()}catch(e){return Promise.reject(e)}}},{key:"loggedIn",value:async function(e){return T.ssoLogin(e)}},{key:"removeUserEntity",value:function(){this.currentUserId&&(this.context.commit(w.qP,{entity:g.E.USER,key:this.currentUserId},{root:!0}),this.resetState())}}])&&A(r.prototype,n),i&&A(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(j.hw),D(y.prototype,"fetchUserSuccess",[j.sM],Object.getOwnPropertyDescriptor(y.prototype,"fetchUserSuccess"),y.prototype),D(y.prototype,"resetState",[j.sM],Object.getOwnPropertyDescriptor(y.prototype,"resetState"),y.prototype),D(y.prototype,"fetchUser",[i],Object.getOwnPropertyDescriptor(y.prototype,"fetchUser"),y.prototype),D(y.prototype,"checkNotLoggedInUser",[o],Object.getOwnPropertyDescriptor(y.prototype,"checkNotLoggedInUser"),y.prototype),D(y.prototype,"validateNin",[a],Object.getOwnPropertyDescriptor(y.prototype,"validateNin"),y.prototype),D(y.prototype,"validatePhoneNumber",[s],Object.getOwnPropertyDescriptor(y.prototype,"validatePhoneNumber"),y.prototype),D(y.prototype,"createUser",[u],Object.getOwnPropertyDescriptor(y.prototype,"createUser"),y.prototype),D(y.prototype,"sendVerificationCode",[c],Object.getOwnPropertyDescriptor(y.prototype,"sendVerificationCode"),y.prototype),D(y.prototype,"checkVerificationCode",[l],Object.getOwnPropertyDescriptor(y.prototype,"checkVerificationCode"),y.prototype),D(y.prototype,"recreateUserSession",[f],Object.getOwnPropertyDescriptor(y.prototype,"recreateUserSession"),y.prototype),D(y.prototype,"loggedIn",[p],Object.getOwnPropertyDescriptor(y.prototype,"loggedIn"),y.prototype),D(y.prototype,"removeUserEntity",[d],Object.getOwnPropertyDescriptor(y.prototype,"removeUserEntity"),y.prototype),b=y))||b);const B=(0,j.f_)(R)},86789:function(e,t,r){"use strict";r.d(t,{A:function(){return u}});var n=r(20701),i=r(2564),o=r(66594),a=r(4598);const s=new o.A(localStorage);function u(e,t){if(t)return;const{addressId:r,doctorId:o,url:u,visitStart:c}=e,l=(0,a.A)(c);s.setItem(n.fE,{addressId:r,doctorId:o,url:u,visitDay:(0,i.Y)(l,"DD MMMM YYYY, dddd"),visitHours:(0,i.Y)(l,"HH:mm"),visitSlotDate:(0,i.Y)(l,"YYYYMMDDHHmmss"),visitSlotDateWithTimezone:c})}},15257:function(e,t,r){"use strict";r.d(t,{G:function(){return i},x:function(){return n}});const n=()=>r.e(841).then(r.bind(r,77101));let i=function(e){return e.basic="basic-layout",e.error="error-layout",e}({})},26378:function(e,t,r){"use strict";r.d(t,{KC:function(){return p},Kf:function(){return i},N3:function(){return a},R6:function(){return o},SG:function(){return n},Uv:function(){return c},WX:function(){return s},br:function(){return l},in:function(){return f},zL:function(){return u}});const n=()=>Promise.all([r.e(990),r.e(996)]).then(r.bind(r,45951)),i=()=>Promise.all([r.e(990),r.e(50)]).then(r.bind(r,96677)),o=()=>Promise.all([r.e(990),r.e(919)]).then(r.bind(r,92330)),a=()=>r.e(945).then(r.bind(r,60606)),s=()=>r.e(358).then(r.bind(r,94685)),u=()=>r.e(359).then(r.bind(r,59212)),c=()=>r.e(548).then(r.bind(r,64348)),l=()=>Promise.all([r.e(990),r.e(431)]).then(r.bind(r,30207)),f=()=>r.e(542).then(r.bind(r,92615)),p=()=>Promise.all([r.e(990),r.e(972)]).then(r.bind(r,21668))},99881:function(e,t,r){"use strict";r.d(t,{iV:function(){return y},zO:function(){return b},gn:function(){return d}});var n=[{entityType:"doctor",utmSourceFormat:/^widget-doctor-\d+$/,outputBookingSource:"doctor-widget"},{entityType:"facility",utmSourceFormat:/^widget-facility-\d+$/,outputBookingSource:"facility-widget"},{utmSourceFormat:/^website$/,outputBookingSource:"website"},{utmSourceFormat:/^dp-phone$/,outputBookingSource:"dp-phone"},{utmSourceFormat:/^poster$/,outputBookingSource:"poster",customParamsMap:{entityType:"utm_medium",entityId:"utm_campaign"}}],i=r(66594),o=r(55373),a=r.n(o);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c="booking-source",l="web",f=new i.A(localStorage),p=a().parse(window.location.search,{ignoreQueryPrefix:!0});function d(){const{utm_campaign:e,utm_content:t,utm_id:r,utm_source:n,utm_medium:i}=p;if("string"!=typeof n)return;const o={campaign:e||"",content:t||"",source:n,medium:i||"",entityId:r||"",timestamp:Date.now()};f.setItem(c,o)}function b(e,t){const r=f.getItem(c);if(!r)return null;const{entityId:i,source:o,medium:a}=r,d=(b=o,n.find((({utmSourceFormat:e})=>e.test(b))));var b;if(!d)return null;const y=function(e){const{customParamsMap:t}=e;if(!t)return null;const r=Object.entries(t).map((([e,t])=>[e,p[t]||""]));return Object.fromEntries(r)}(d),m=e===y?.entityId||e===i?1:0,v=function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);rt.startsWith(e)));if(!t)return;return this.getItem(t[0])}catch(e){return}}},{key:"setItem",value:function(e,t){try{return this.storage.setItem(e,JSON.stringify(t)),this}catch(e){return}}},{key:"removeItem",value:function(e){this.storage.removeItem(e)}},{key:"extendObjectItem",value:function(e,t){const r=this.getItem(e);"object"==typeof r&&this.setItem(e,n(n({},r),t))}},{key:"clear",value:function(){this.storage.clear()}}])&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();t.A=s},4598:function(e,t,r){"use strict";function n(e){return e.slice(0,19)}r.d(t,{A:function(){return n}})},37823:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});var n=r(54776),i=r(65128);function o(e,t){const r=(0,n.v)(t),o=(0,i.d)((({value:t})=>t??e));return function(e,t){r(e,t),o(e,t)}}},32552:function(e,t,r){"use strict";r.d(t,{A:function(){return s}});var n=r(65517),i=r(34778);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e={}){const t=(0,i.rc)(function(e){for(var t=1;t{const o=t=>(0,i.f_)(e,t);r.computed||(r.computed={}),r.computed[n]=function(){return t?o():o(this.$store)}}))}},28373:function(e,t,r){"use strict";r.d(t,{A:function(){return a}});var n=r(50675),i=r(22504),o=r(36599);function a(e,t){return(0,o.u1)(((r,o)=>{const a=r.computed[o];r.computed[o]=function(){const r=a.get.apply(this);let o=null;return r&&t&&(o=(0,i.NU)(r,t,this.$store.state.entities)),(0,n.om)(e,o||r||{},{excludeExtraneousValues:!0})}}))}},13901:function(e,t,r){"use strict";r.d(t,{$t:function(){return O},H6:function(){return g},gr:function(){return P},Fn:function(){return w}});var n,i=r(89492),o=r(4031),a=r(72505),s=r.n(a),u=r(18831),c=r(104),l=r(22504),f=r(55373),p=r.n(f);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;tp().stringify(e,{arrayFormat:"brackets"})}r.data&&(r.data=t?r.data:(0,u.decamelizeKeys)(r.data));try{const e=await this.client(r),t=(0,u.camelizeKeys)(e.data);return void 0===n&&202===e.status&&e.headers.response_code?b(b({},t),{},{responseCode:e.headers.response_code}):void 0===n?t:b({},(0,l.S8)(t,n))}catch(e){return Promise.reject(new o.j(e))}}}])&&y(e.prototype,t),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}())||n;const g="MARKETPLACE_API_CLIENT",w="SSO_OAUTH_API_CLIENT",P="SAAS_API_CLIENT",O=new i.m;O.bind(g).to(h).inSingletonScope(),O.bind(w).to(h).inSingletonScope(),O.bind(P).to(h).inSingletonScope()},4031:function(e,t,r){"use strict";function n(e,t){for(var r=0;re!==t))}},{key:"triggerCallbacks",value:function(e){this.events[e.event].forEach((t=>t(e.data)))}}])&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}());window.mobileAppMessageInterface=function(e){a.triggerCallbacks(e)},t.A=a},5103:function(e,t,r){"use strict";r.d(t,{A:function(){return u}});var n=r(36590),i=r(93987);function o(e,t){for(var r=0;rt)break;(0,n.Cp)(e);break}}}},43038:function(e,t,r){"use strict";r.d(t,{Wg:function(){return a},vJ:function(){return u},z$:function(){return s}});var n=r(20701),i=r(12215),o=r.n(i);function a(e,t){const{query:r,params:i}=e,{utm_source:a,utm_medium:s}=r;if("string"!=typeof a)return;const u=(a.match(/\d+$/)||[]).pop(),c=/^widget-doctor-\d+$/.test(a)&&u===i.doctorId,l=/^widget-facility-\d+$/.test(a)&&u===t;if([n.o0,n.BP].includes(a)){const e=new Map([[n.BP,n.L_],[n.o0,n.o0]]).get(a);return o().set(n.Q1,u),void o().set(n.so,e)}if(c||l){const e=c?n.rO:n.NC;o().set(n.Q1,u),o().set(n.so,e),o().set(n.Ps,s)}}function s(){const e=o().get(n.so);if(!e)return null;return new Map([[n.rO,n.Zi],[n.NC,n.F$],[n.L_,n.L_],[n.o0,n.o0]]).get(e)||null}function u(){[n.Q1,n.so,n.Ps].forEach((e=>{o().remove(e)}))}},50065:function(e,t,r){"use strict";var n=r(33278);t.A=e=>n._$.withParams({type:"isEqual",value:e},(t=>!n._$.req(t)||t!==e))},99035:function(e,t,r){"use strict";function n(){return"true"===new URLSearchParams(window.location.search).get("white_label")}r.d(t,{A:function(){return n}})},93346:function(){},81403:function(e,t,r){"use strict";r.d(t,{A:function(){return k}});var n,i,o,a,s,u=r(73004),c=r(96579);function l(e,t){for(var r=0;r0?"active":"","custom-dp-input"]}}])&&a(r.prototype,n),i&&a(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(o.lD))||n;var d=p,b=(0,r(14486).A)(d,undefined,undefined,!1,null,"4aa0464c",null).exports},83578:function(e,t,r){"use strict";r.d(t,{A:function(){return d}});var n,i=r(96579);function o(e,t){for(var r=0;r{e.style.height=r}))},leave(e){const{height:t}=getComputedStyle(e);e.style.height=t,setTimeout((()=>{e.style.height="0"}))}}},t.children)}}])&&o(r.prototype,n),i&&o(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(i.lD))||n;var p=f,d=(0,r(14486).A)(p,undefined,undefined,!1,null,"e39f0010",null).exports},21213:function(e,t,r){"use strict";r.d(t,{A:function(){return N}});var n,i,o,a,s,u,c,l,f,p,d,b,y,m,v,h,g=r(83578),w=r(64993),P=r(91019),O=r(48802),_=r(76648),k=r(19944),j=r(96579);function S(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function A(e,t){for(var r=0;r({})}),o=(0,f.pF)("dataProcessing",{required:!0,type:Boolean}),n((s=function(e){function t(...e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(r=b(this,t,[].concat(e)),"validations",u,r),p(r,"formDataProcessing",c,r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),r=t,n&&d(r.prototype,n),i&&d(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(f.lD),u=g(s.prototype,"validations",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=g(s.prototype,"formDataProcessing",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s))||a);var P,O,_,k,j,S,A,E=w,I=r(14486),C=(0,I.A)(E,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("dp-checkbox",{attrs:{"data-test-id":"form-data-processing-checkbox",validation:e.validations.formDataProcessingValidation,value:"form-data-processing"},model:{value:e.formDataProcessing,callback:function(t){e.formDataProcessing=t},expression:"formDataProcessing"}},[e._v("\n * "+e._s(e.$trans("booking_new_health_data_checkbox"))+"\n\n "),t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.$emit("showDataProcessingModal")}}},[e._v("\n "+e._s(e.$trans("booking_new_health_data_checkbox_link"))+"\n ")])])}),[],!1,null,null,null).exports;function z(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function $(e,t){for(var r=0;r({})}),le=(0,f.kv)({required:!0,type:Boolean}),fe=(0,f.kv)({required:!0,type:Boolean}),pe=(0,f.pF)("dataProcessing",{required:!0,type:Boolean}),de=(0,f.pF)("marketingAgreement",{required:!0,type:Boolean}),ae((ye=function(e){function t(...e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Se(r=Ee(this,t,[].concat(e)),"config",me,r),Se(r,"isOnlineOnly",ve,r),Se(r,"validations",he,r),Se(r,"hasDataProcessingAgreement",ge,r),Se(r,"hasMarketingAgreement",we,r),Se(r,"formDataProcessing",Pe,r),Se(r,"formMarketingAgreement",Oe,r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ze(e,t)}(t,e),function(e,t,r){return t&&Ae(e.prototype,t),r&&Ae(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"privacyPolicyUrl",get:function(){return this.config.marketplace.privacyPolicy}},{key:"showModal",value:function(e,t){this.$dialogs.open(je.N3,{title:e,content:t},{ignoreUncaught:!0})}},{key:"showDataProcessingModal",value:function(){this.showModal(this.$trans("booking_new_health_data_modal_title"),this.$trans("booking_new_health_data_modal",{"%{privacy_url}":this.privacyPolicyUrl}))}},{key:"showMarketingModal",value:function(){this.showModal(this.$trans("booking_new_communications_modal_title"),this.$trans("booking_new_communications_modal",{"%{privacy_url}":this.privacyPolicyUrl}))}},{key:"showTechnicalFacilitationModal",value:function(){this.showModal(this.$trans("booking_new_technical_facilitation_modal_title"),this.$trans("booking_new_technical_facilitation_modal"))}},{key:"showSpecialistPolicyModal",value:function(){this.showModal("",this.$trans("booking-specialist-policy-modal"))}}])}(f.lD),me=De(ye.prototype,"config",[se],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=De(ye.prototype,"isOnlineOnly",[ue],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=De(ye.prototype,"validations",[ce],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=De(ye.prototype,"hasDataProcessingAgreement",[le],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=De(ye.prototype,"hasMarketingAgreement",[fe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pe=De(ye.prototype,"formDataProcessing",[pe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=De(ye.prototype,"formMarketingAgreement",[de],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=ye))||be);var Ne,Re,Be,Me,xe,Ve,qe,Fe=Te,Le=(0,I.A)(Fe,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.hasDataProcessingAgreement?e._e():t("general-consent",{staticClass:"mt-2",attrs:{"data-processing":e.formDataProcessing,validations:e.validations},on:{"update:dataProcessing":function(t){e.formDataProcessing=t},"update:data-processing":function(t){e.formDataProcessing=t},showDataProcessingModal:e.showDataProcessingModal}}),e._v(" "),e.hasMarketingAgreement?e._e():t("marketing-agreement",{staticClass:"mt-2",attrs:{"marketing-agreement":e.formMarketingAgreement},on:{"update:marketingAgreement":function(t){e.formMarketingAgreement=t},"update:marketing-agreement":function(t){e.formMarketingAgreement=t},showMarketingModal:e.showMarketingModal}}),e._v(" "),t("legal-notes",{attrs:{"is-online-only":e.isOnlineOnly},on:{showTechnicalFacilitationModal:e.showTechnicalFacilitationModal}})],1)}),[],!1,null,null,null).exports,Ue=r(61046),Ge=r(91449);function He(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Qe(e,t){for(var r=0;r({})}),Be=(0,f.pF)("hasCovidSymptoms",{required:!0,type:String}),Ne((xe=function(e){function t(...e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),He(r=Ye(this,t,[].concat(e)),"validation",Ve,r),He(r,"formHasCovidSymptoms",qe,r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Je(e,t)}(t,e),function(e,t,r){return t&&Qe(e.prototype,t),r&&Qe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(f.lD),Ve=Ze(xe.prototype,"validation",[Re],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qe=Ze(xe.prototype,"formHasCovidSymptoms",[Be],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Me=xe))||Me);var tt,rt,nt,it,ot,at,st,ut,ct,lt=et,ft=(0,I.A)(lt,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("h4",{staticClass:"mb-0",attrs:{"data-test-id":"covid-symptoms-header"}},[e._v("\n "+e._s(e.$trans("booking_covid_symptoms"))+"\n ")]),e._v(" "),t("dp-radio",{attrs:{"data-test-id":"covid-symptoms-yes-radio-button",inline:"",label:e.$trans("booking_covid_symptoms_yes"),value:"true"},model:{value:e.formHasCovidSymptoms,callback:function(t){e.formHasCovidSymptoms=t},expression:"formHasCovidSymptoms"}}),e._v(" "),t("dp-radio",{attrs:{"data-test-id":"covid-symptoms-no-radio-button",inline:"",label:e.$trans("booking_covid_symptoms_no"),value:"false"},model:{value:e.formHasCovidSymptoms,callback:function(t){e.formHasCovidSymptoms=t},expression:"formHasCovidSymptoms"}}),e._v(" "),t("dp-input",{attrs:{"form-control-class":"d-none",validation:e.validation}})],1)}),[],!1,null,null,null).exports,pt=r(67544);function dt(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function bt(e,t){for(var r=0;r({})}),nt=(0,f.kv)({required:!1,type:Boolean,default:!1}),it=(0,f.pF)("comment",{required:!0,type:String}),tt((at=function(e){function t(...e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),dt(r=yt(this,t,[].concat(e)),"validation",st,r),dt(r,"isGeneralPractitionerInItaly",ut,r),dt(r,"formComment",ct,r),function(e,t,r){(t=gt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(r,"commentLengthLimit",255),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ht(e,t)}(t,e),function(e,t,r){return t&&bt(e.prototype,t),r&&bt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"charactersCounter",get:function(){const e=this.commentLengthLimit-this.formComment.length;return this.$trans("booking_comment_limit_characters",{"%{currentCount}":e})}},{key:"commentLabel",get:function(){const e=this.$trans("booking_comment");return this.isGeneralPractitionerInItaly?`${e} *`:e}}])}(f.lD),st=wt(at.prototype,"validation",[rt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ut=wt(at.prototype,"isGeneralPractitionerInItaly",[nt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ct=wt(at.prototype,"formComment",[it],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ot=at))||ot);var Ot,_t,kt,jt,St,At,Et,It,Ct,zt,$t,Dt,Tt,Nt,Rt,Bt,Mt,xt,Vt,qt,Ft,Lt,Ut,Gt,Ht,Qt,Yt,Kt,Xt,Jt,Wt=Pt,Zt=(0,I.A)(Wt,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("h4",{attrs:{"data-test-id":"comment-text-area-header"}},[e._v("\n "+e._s(e.commentLabel)+"\n ")]),e._v(" "),t("dp-textarea",{staticClass:"m-0",attrs:{"data-test-id":"comment-text-area","form-control-class":"inspectletIgnore",maxlength:e.commentLengthLimit,placeholder:e.$trans("booking_comment_placeholder"),validation:e.validation},on:{blur:function(t){return e.$emit("blur")},input:function(t){return e.$emit("input")}},model:{value:e.formComment,callback:function(t){e.formComment="string"==typeof t?t.trim():t},expression:"formComment"}}),e._v(" "),e.formComment.length>0?t("p",{staticClass:"text-placeholder small mt-0-5"},[e._v("\n "+e._s(e.charactersCounter)+"\n ")]):e._e(),e._v(" "),e.isGeneralPractitionerInItaly?t("p",{staticClass:"mt-1 text-muted"},[e._v("\n "+e._s(e.$trans("booking_comment_hint"))+"\n ")]):e._e()],1)}),[],!1,null,null,null).exports,er=r(69687),tr=r(58229),rr=r(76648),nr=r(52610),ir=r(33278),or=r(46288),ar=r(95369),sr=r(19944),ur=r(74353),cr=r.n(ur);function lr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fr(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function pr(e,t){for(var r=0;rthis.$v.$touch())),this.hasDataProcessingAgreement&&(this.formDataProcessingTimestamp=this.getTimestamp(!0))}},{key:"validations",value:function(){const e=function(e){for(var t=1;tthis.isCommentRequired))},formHasCovidSymptoms:{required:(0,ir.F5)((()=>this.showCovidQuestion))}},!this.hasDataProcessingAgreement&&{formDataProcessing:{checked:nr.KD}});return e}},{key:"onChange",value:function(e){this.isFormInvalid=e}},{key:"addressLoaded",get:function(){return!!this.address.id}},{key:"formDataProcessingValidation",get:function(){return this.hasDataProcessingAgreement?{}:this.$validate("formDataProcessing",{checked:this.isBookingRequest?"booking_request_error_gdpr":"booking_consent_required"})}},{key:"formHasCovidSymptomsValidation",get:function(){return this.$validate("formHasCovidSymptoms",{required:"booking_yes_no"})}},{key:"formCommentValidation",get:function(){return this.$validate("formComment",{required:"booking_comment_error"})}},{key:"formDataProcessing",get:function(){return this.formDataProcessingTimestamp>Date.now()},set:function(e){this.formDataProcessingTimestamp=this.getTimestamp(e)}},{key:"isItaly",get:function(){return this.config.locale===tr.K.it}},{key:"isGeneralPractitionerInItaly",get:function(){return!!this.isItaly&&this.doctor.specializations.some((({id:e})=>"62"===e))}},{key:"isCommentRequired",get:function(){return!this.commentHidden&&this.isGeneralPractitionerInItaly}},{key:"showCovidQuestion",get:function(){return!this.address.isOnlineOnly&&this.config.app.showCovidSymptomsField}},{key:"formAgreementsValidations",get:function(){return{formDataProcessingValidation:this.formDataProcessingValidation}}},{key:"getTimestamp",value:function(e){return e?cr()().add(1,"m").valueOf():0}}])}(f.lD),xt=gr(Mt.prototype,"config",[_t],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=gr(Mt.prototype,"address",[kt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qt=gr(Mt.prototype,"doctor",[jt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ft=gr(Mt.prototype,"commentHidden",[St],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lt=gr(Mt.prototype,"isBookingRequest",[At],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ut=gr(Mt.prototype,"hasDataProcessingAgreement",[Et],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gt=gr(Mt.prototype,"hasMarketingAgreement",[It],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=gr(Mt.prototype,"formHasCovidSymptoms",[Ct],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qt=gr(Mt.prototype,"formComment",[zt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yt=gr(Mt.prototype,"isFormInvalid",[$t],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kt=gr(Mt.prototype,"formDataProcessingTimestamp",[Dt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xt=gr(Mt.prototype,"formMarketingAgreement",[Tt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Jt=gr(Mt.prototype,"$user",[Nt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gr(Mt.prototype,"onChange",[Rt],Object.getOwnPropertyDescriptor(Mt.prototype,"onChange"),Mt.prototype),Bt=Mt))||Bt);var Pr=wr,Or=(0,I.A)(Pr,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.addressLoaded&&e.showCovidQuestion?t("covid-question-form-field",{staticClass:"mt-5",attrs:{"has-covid-symptoms":e.formHasCovidSymptoms,validation:e.formHasCovidSymptomsValidation},on:{"update:hasCovidSymptoms":function(t){e.formHasCovidSymptoms=t},"update:has-covid-symptoms":function(t){e.formHasCovidSymptoms=t}}}):e._e(),e._v(" "),e.commentHidden?e._e():t("info-for-doctor-form-field",{staticClass:"mt-5",attrs:{comment:e.formComment,"is-general-practicioner-in-italy":e.isGeneralPractitionerInItaly,validation:e.formCommentValidation},on:{"update:comment":function(t){e.formComment=t},blur:e.$v.formComment.$touch,input:e.$v.formComment.$reset}}),e._v(" "),e.addressLoaded?[t("agreements-form-fields",{staticClass:"mt-5",attrs:{"data-processing":e.formDataProcessing,"has-data-processing-agreement":e.hasDataProcessingAgreement,"has-marketing-agreement":e.hasMarketingAgreement,"is-online-only":e.address.isOnlineOnly,"marketing-agreement":e.formMarketingAgreement,validations:e.formAgreementsValidations},on:{"update:dataProcessing":function(t){e.formDataProcessing=t},"update:data-processing":function(t){e.formDataProcessing=t},"update:marketingAgreement":function(t){e.formMarketingAgreement=t},"update:marketing-agreement":function(t){e.formMarketingAgreement=t}}}),e._v(" "),e.isBookingRequest?t("p",{staticClass:"mt-2"},[e._v("\n "+e._s(e.$trans("booking_request_data_legal"))+"\n ")]):e._e()]:t("div",{staticClass:"mt-5 text-center"},[t("dp-spinner")],1)],2)}),[],!1,null,null,null).exports},42634:function(){}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[461,990,96],(function(){return t(83107),t(61832),t(93346)}));e.O()}]);