1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54130],{8367:function(e,t,n){"use strict";n.d(t,{F:function(){return l}});var a,r=n(61943),s=n(6486),i=n(17262),l=(a=(0,r._)(function*(e,t){var n=(0,i.S)(e);return(yield s.eE.get("".concat("/clinic/api/GlobalSearch","?").concat(n),{headers:t})).data.value}),function(e,t){return a.apply(this,arguments)})},29980:function(e,t,n){"use strict";n.d(t,{$j:function(){return o},ZS:function(){return d},vW:function(){return u}});var a,r,s,i=n(61943),l=n(6486),c="geo/api/Geo";(0,i._)(function*(e){var t=new URLSearchParams(Object.entries(e));return(yield l.eE.get("".concat(c,"/nearest?").concat(t))).data});var o=(a=(0,i._)(function*(e){var t=new URLSearchParams(Object.entries(e));return(yield l.eE.get("".concat(c,"/nearest_by_agent?").concat(t))).data}),function(e){return a.apply(this,arguments)}),u=(r=(0,i._)(function*(){return(yield l.eE.get("".concat(c,"/fromIP"))).data.value}),function(){return r.apply(this,arguments)}),d=(s=(0,i._)(function*(e){return(yield l.eE.post("".concat(c,"/addGeoInfo"),e)).data.value}),function(e){return s.apply(this,arguments)})},21987:function(e,t,n){"use strict";n.d(t,{BT:function(){return D},H9:function(){return C},HG:function(){return S},Im:function(){return b},JN:function(){return A},MV:function(){return I},Y7:function(){return Z},f6:function(){return P},h6:function(){return L},q5:function(){return w},sl:function(){return N},vB:function(){return B},wl:function(){return k}});var a,r,s,i,l,c,o,u,d,h,v,m,g,p,f=n(61943),y=n(6486),x=n(38472),_=n(17262),j="order/api/Order",C=(a=(0,f._)(function*(e){p&&p.cancel(),p=x.Z.CancelToken.source();var t,n=yield y.eE.post("".concat(j,"/preRegister"),e,{cancelToken:p.token,headers:y.LT});return null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.value}),function(e){return a.apply(this,arguments)}),Z=(r=(0,f._)(function*(e){p&&p.cancel(),p=x.Z.CancelToken.source();var t=yield y.eE.post("".concat(j,"/preRegister"),e,{cancelToken:p.token,headers:y.LT});return null==t?void 0:t.data}),function(e){return r.apply(this,arguments)}),k=(s=(0,f._)(function*(e,t){return(yield y.eE.post("".concat(j,"/payByCash?OrderId=").concat(e,"&amount=").concat(t))).data.value}),function(e,t){return s.apply(this,arguments)}),N=(i=(0,f._)(function*(e){var t=new URLSearchParams(Object.entries(e));return(yield y.eE.put("".concat(j,"/cancel?").concat(t))).data}),function(e){return i.apply(this,arguments)}),b=(l=(0,f._)(function*(e){return(yield y.eE.get("".concat(j,"/cancelPreRegister?id=").concat(e))).data}),function(e){return l.apply(this,arguments)}),w=(c=(0,f._)(function*(e){var t=(0,_.S)(e);return(yield y.eE.get("".concat(j,"/sPagedByUser?").concat(t),{headers:y.LT})).data}),function(e){return c.apply(this,arguments)}),S=(o=(0,f._)(function*(e){return(yield y.eE.get("".concat(j,"/byId?id=").concat(e))).data}),function(e){return o.apply(this,arguments)}),I=(u=(0,f._)(function*(e){var t;return null===(t=(yield y.Ml.get("".concat(j,"/freeDetails?OrderId=").concat(e))).data)||void 0===t?void 0:t.value}),function(e){return u.apply(this,arguments)}),D=(d=(0,f._)(function*(e){return(yield y.eE.post("".concat(j,"/register"),e)).data}),function(e){return d.apply(this,arguments)}),A=(h=(0,f._)(function*(e){var t,n=yield y.eE.post("".concat(j,"/preRegisterReferral"),e,{headers:y.LT});return null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.value}),function(e){return h.apply(this,arguments)}),L=(v=(0,f._)(function*(e){return(yield y.eE.get("".concat(j,"/findByProviderOrderId"),{params:e})).data}),function(e){return v.apply(this,arguments)});(0,f._)(function*(e){return(yield y.eE.get("".concat(j,"/nurseOrder"),{params:e})).data});var P=(m=(0,f._)(function*(e){var t=(0,_.S)(e);
1return(yield y.eE.get("".concat(j,"/nurseOrderCount?").concat(t))).data}),function(e){return m.apply(this,arguments)}),B=(g=(0,f._)(function*(){return(yield y.eE.get("".concat(j,"/HasNewWithoutInterpretations"))).data.value}),function(){return g.apply(this,arguments)})},75564:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(99441),r=n(48132);function s(){var e,t,s=(0,a.sJ)(r.z),i=n.g.countryParams,l=null!=s?s:i;return{currency:(null==l?void 0:null===(t=l.params)||void 0===t?void 0:null===(e=t.find(e=>"currency"===e.paramCode))||void 0===e?void 0:e.paramValue)||"â¸"}}},80570:function(e,t,n){"use strict";var a=n(57437),r=n(80134),s=n(75564),i=n(78845),l=n(98596),c=n(77395),o=n(56800),u=n.n(o),d=n(59902),h=n(53871),v=n(1134),m=n(2265),g=n(99441),p=n(60730);n(8111),t.Z=e=>{var t,{analyse:n,itemAction:o,font:f,icon:y,cls:x,removeBorder:_,isCheckup:j,hidePrice:C,readOnly:Z,isSearching:k}=e,N=(0,v.qM)(),b=(0,i.Z)(),w=(0,l.Z)(),S=(0,g.sJ)(p.uZ),I=(0,m.useRef)(),{currency:D}=(0,s.Z)(),A=null===(t=n.optional)||void 0===t?void 0:t.find(e=>"OldPrice"===e.key);return(0,a.jsxs)("section",{ref:I,className:"AnalyseCard__itemParent ".concat(x||""),style:{marginTop:Z?16:void 0},onClick:()=>{Z||b(d.Z.analyses.service({code:"".concat(n.code,"-").concat((0,h.Ro)(n.name)),provider:n.provider}))},children:[(0,a.jsxs)("div",{className:u()("AnalyseCard__item",{readonly:Z}),children:[(0,a.jsx)(r.Z,{link:Z?void 0:w(d.Z.analyses.service({code:"".concat(n.code,"-").concat((0,h.Ro)(n.name)),provider:n.provider})),children:(0,a.jsxs)("div",{className:"AnalyseCard__item-left",children:[(0,a.jsx)("h3",{className:"typography-".concat(f," name"),children:n.name}),n.notAnExit&&(0,a.jsxs)("span",{className:"onlyOnLab typography-".concat(f),children:["*",N("youCanOnlyTakeItInLaboratory")]})]})}),(0,a.jsxs)("div",{className:"AnalyseCard__item-right",children:[A&&(0,a.jsxs)("span",{className:"AnalyseCard__item-sale typography-".concat(f),children:[(0,h.rH)(Number(A.value))," ",D]}),!C&&(0,a.jsxs)("span",{className:u()("AnalyseCard__item-price typography-".concat(f),{sale:!!A}),children:[(0,h.rH)(n.amount)," ",D]}),"cart"===y?(0,a.jsx)("div",{onClick:e=>{e.stopPropagation(),o&&o(n,e,I)},className:u()("cart-icon",{active:S.some(e=>e.code===n.code),align:k&&!j}),children:S.some(e=>e.code===n.code)?(0,a.jsx)(c.zm,{}):(0,a.jsx)(c.Bx,{})}):"remove"===y?(0,a.jsx)("div",{className:"remove-icon",onClick:e=>{e.stopPropagation(),o&&o(n,e,I)},children:(0,a.jsx)(c.t,{})}):null]})]}),!_&&(0,a.jsx)("hr",{})]},n.id)}},99:function(e,t,n){"use strict";var a=n(57437),r=n(80006),s=n(53871),i=n(66648),l=n(2265);n(94339),t.Z=l.memo(e=>{var{id:t,src:n,clx:c="",width:o,height:u,name:d}=e,h=n||(t?(0,s.Q4)({id:t}):r.default.src),[v,m]=(0,l.useState)(h);return(0,a.jsx)("div",{className:"avatar ".concat(c),children:(0,a.jsx)(i.default,{alt:null!=d?d:"avatar",src:v,width:null!=o?o:r.default.width,height:null!=u?u:r.default.height,onError:()=>{m(r.default.src)}})})})},82788:function(e,t,n){"use strict";var a=n(57437);t.Z=e=>{var{darkLvl:t="0.2",action:n,zIndex:r}=e;return(0,a.jsx)("div",{onClick:()=>n?n():null,style:{background:"#000000",opacity:t,position:"fixed",width:"100vw",height:"100vh",zIndex:null!=r?r:"100",top:0,left:0}})}},12638:function(e,t,n){"use strict";var a=n(57437);t.Z=e=>{var{icon:t,clx:n,disabled:r=!1,action:s=()=>null,focused:i=!1}=e;return(0,a.jsx)("button",{className:"iconButton ".concat(n||""," iconButton__").concat(i?"focused":"unfocused"),disabled:r,onClick:s,children:t})}},99383:function(e,t,n){"use strict";var a=n(57437),r=n(80134),s=n(92576),i=n(78845),l=n(98596);n(2265),n(30727),t.Z=e=>{var{id:t,text:n,action:c,type:o="button",size:u="medium",variant:d="contained",color:h="primary",startIcon:v,endIcon:m,loading:g=!1,fullWidth:p=!1,disabled:f=!1,href:y,target:x,rel:_,clx:j,link:C,"data-a":Z}=e,k=(0,l.Z)(),N=(0,i.Z)(),b="button button__".concat(h," ").concat(f?"button__disabled":"button__active"," ").concat(g?"button__loading":"button__notLoading_".concat(d+"-"+h)," button__").concat(u," ").concat(p?"button__fullWidth":""," button__").concat(d+"-"+h," ").concat(j||""),w=(0,a.jsxs)(a.Fragment,{children:[v&&v,n&&(0,a.jsx)("span",{className:"button__text",children:n}),m&&m]});return y?(0,a.jsx)(s.K,{id:t,href:k(y),rel:_||"",target:x||"",className:b,"data-a":Z,children:w}):(0,a.jsx)("button",{"aria-label":n,"data-a":Z,id:t,type:o,className:b,disabled:!!g||f,onClick:e=>{!g&&c&&c(e),C&&N(C.route,{locale:!1})},children:C&&!f?(0,a.jsx)(r.Z,{link:C.route,prefetch:C.prefetch,ariaLabel:C.ariaLabel,children:w}):w})}},18229:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var a=n(57437),r=n(53110),s=n(69452),i=n(99441),l=n(58810);n(37763);var c=e=>{var{isClickable:t}=e,n=(0,s.Z)(),c=(0,i.sJ)(l.s);return c&&(0,a.jsxs)("div",{onClick:()=>t&&n({isClosable:!0,status:"selectRegion"}),className:"selectNewLocation",children:[(0,a.jsx)("img",{src:r.Z.src,alt:"location"}),(0,a.jsxs)("p",{className:"typography-subtitle1",children:[c.country,c.city?", ".concat(c.city):""]})]})},o=n(92576),u=n(78845),d=n(98596),h=n(77395),v={src:"/_next/static/media/qomek-coin.c93ef272.svg"},m=n(92672),g=n(59902),p=n(53871),f=n(63405),y=n(35646),x=n(78198),_=n(1134),j=n(44213),C=n(2265),Z=n(24839),k=n(64950),N=n(78619),b=n(99),w=n(715);n(99994);var S=()=>((0,_.qM)(),(0,i.sJ)(w.sq),(0,a.jsx)(a.Fragment,{}));n(18961);var I=e=>{var{type:t,needMenu:n}=e,r=(0,_.qM)();(0,x.Z)(m.mediaQueriesConstants.minSmallDesktop);var s=(0,x.Z)(m.mediaQueriesConstants.maxMobile),l=(0,u.Z)(),w=(0,y.Z)(),I=(0,f.Z)(),D=(0,d.Z)(),A=(0,i.sJ)(k.eA),L=(0,i.sJ)(N.a9),P=(0,i.sJ)(Z.C),B=(0,i.Zl)(k.ub),E=(0,i.Zl)(k.ir),F=(0,i.Zl)(k.Wk),T=(0,i.Zl)(k.Bn),R=(0,i.Zl)(k.xu),U=()=>{R(!0)},M={title:r(A!==j.cU.client?"actionLoginPatient":(null==P?void 0:P.role)===j.cU.nurse?"actionLoginNurse":"actionLoginDoctor"),action:U},q={title:r(A!==j.cU.client?"actionLoginPatient":(null==P?void 0:P.role)===j.cU.nurse?"actionLoginNurse":"actionLoginDoctor"),action:U},J=[{title:r("profileSettings"),action:()=>l(g.Z.common.profile.edit())},{title:r(A===j.cU.doctor?"myTemplates":"myGroups"),action:A===j.cU.doctor?()=>{F(g.Z.doctor.templates()),s&&l(g.Z.selectProvider())}:()=>l(g.Z.common.profile.myGroup())},{title:r("paymentMethods"),action:()=>E("view")},{title:r("contactUsSection"),action:()=>l(g.Z.common.profile.contacts())},{title:r("faq"),action:()=>l(g.Z.common.profile.faq())},(null==L?void 0:L.role)===j.cU.client?q:M],O=(0,C.useRef)(null),[H,z]=(0,C.useState)(!1);return(0,C.useEffect)(()=>{var e=e=>{O.current&&!O.current.contains(e.target)&&z(!1)};return H&&document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[H]),(0,C.useEffect)(()=>{var e=document.querySelector("#QomekBonusesIcon");e&&(e.classList.add("AnimatedBonuses"),setTimeout(()=>{e&&e.classList.remove("AnimatedBonuses")},1e3))},[I]),(0,a.jsxs)("div",{className:"profileCard profileCard__".concat(t),children:[(0,a.jsx)(o.K,{href:D(g.Z.common.profile.root()),className:"typography-subtitle1",children:(0,a.jsx)(b.Z,{id:null==L?void 0:L.avatarPath})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"profileCard__top",children:["header"===t?(0,a.jsx)(o.K,{href:D(g.Z.common.profile.root()),className:"typography-subtitle1",children:(0,p.Fb)((null==L?void 0:L.firstName)||"",(null==L?void 0:L.lastName)||"")}):(0,a.jsx)("h3",{className:"typography-h2",children:(0,p.Fb)((null==L?void 0:L.firstName)||"",(null==L?void 0:L.lastName)||"")}),n&&(0,a.jsx)("span",{style:{transform:"rotate(".concat(H?"-180deg":"0",")"),transition:"0.2s"},ref:O,onClick:()=>z(!H),children:(0,a.jsx)("i",{className:"ri-arrow-down-s-line"})})]}),(0,a.jsxs)("div",{className:"profileCard__row",children:[A!==j.cU.client?(0,a.jsx)(S,{}):(0,a.jsxs)("div",{style:{cursor:"pointer"},className:"profileCard__bonuses",onClick:()=>T(!0),children:[(0,a.jsx)("img",{id:"QomekBonusesIcon",src:v.src,alt:"bonuses"}),(0,a.jsxs)("p",{className:"typography-subtitle1",children:[r("bonuses")," ",I]})]}),!n&&(0,a.jsx)(c,{isClickable:!1})]})]}),n&&H&&(0,a.jsxs)("div",{className:"profileCard__menu",children:[J.map((e,t)=>(0,a.jsx)("div",{className:"profileCard__menu_item",children:(0,a.jsx)("p",{className:"typography-subtitle1",onClick:()=>{z(!1),e.action()},children:e.title})},t)),(0,a.jsxs)("button",{onClick:()=>{B({action:w})},className:"profileCard__menu_item typography-subtitle1",children:[(0,a.jsx)(h.iz,{}),r("actionLogout")]})]})]})}},32748:function(e,t,n){"use strict";var a=n(57437),r=n(77395),s=n(56800),i=n.n(s),l=n(53103),c=n(1134),o=n(99441),u=n(78619);n(26804),t.Z=e=>{var{placeholder:t,name:n,onChange:s,onReset:d,autoComplete:h,defaultValue:v,autoFocus:m,onClick:g,loader:p,className:f,value:y}=e,x=(0,c.qM)(),_=(0,o.sJ)(u.a9);return(0,a.jsxs)("label",{className:i()("searchInput",f,{searchInput__large:!!_}),onClick:g,children:[(0,a.jsx)("button",{children:(0,a.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{stroke:"#FD385B",strokeWidth:"1.5",strokeMiterlimit:"10",d:"M12.0909 3.5C10.3918 3.5 8.7308 4.00385 7.31804 4.94782C5.90528 5.8918 4.80417 7.23351 4.15394 8.80328C3.50372 10.3731 3.33359 12.1004 3.66507 13.7669C3.99655 15.4333 4.81476 16.9641 6.01621 18.1655C7.21766 19.367 8.74841 20.1852 10.4149 20.5166C12.0813 20.8481 13.8087 20.678 15.3784 20.0278C16.9482 19.3776 18.2899 18.2764 19.2339 16.8637C20.1779 15.4509 20.6817 13.79 20.6817 12.0909C20.6816 9.81247 19.7764 7.62743 18.1654 6.01636C16.5543 4.4053 14.3693 3.50015 12.0909 3.5Z"}),(0,a.jsx)("path",{d:"M18.5 18.5L24.4998 24.4998",stroke:"#FD385B",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round"})]})}
1),(0,a.jsx)("input",{type:"text",onChange:s,name:n||"new-search",defaultValue:v,value:y,autoFocus:m,autoComplete:h||"new-search",placeholder:t||x("search")||""}),!p&&d&&!!(null==y?void 0:y.length)&&(0,a.jsx)("div",{className:"searchInput__close",onClick:d,children:(0,a.jsx)(r.Fm,{})}),p&&(0,a.jsx)("div",{style:{width:"17.5px"},children:(0,a.jsx)(l.Z,{window:!1,size:"super-small"})})]})}},46735:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var a={getDrugsByFilter:"getDrugsByFilter",getDrugByCode:"getDrugByCode",getDiseasesByFilter:"getDiseasesByFilter",getDiseaseByCode:"getDiseaseByCode",getDiseaseCategories:"getDiseaseCategories",getDiseaseSections:"getDiseaseSections",currentProfileCards:"currentProfileCards",getInsuranceParamsForAccident:"getInsuranceParamsForAccident",getInsuranceParamsForMST:"getInsuranceParamsForMST",calculateInsuranceForMST:"calculateInsuranceForMST",getAnalyses:"getAnalyses",getPrices:"getPrices",getNursePrices:"getNursePrices",findSpecialist:"findSpecialist",getApplicationByServiceCode:"getApplicationByServiceCode",globalSearchByClinic:"globalSearchByClinic",getClinicsCards:"getClinicsCards",preRegisterOrder:"preRegisterOrder",getInsuranceOrders:"getInsuranceOrders",searchSpecialistSchedule:"searchSpecialistSchedule",getApplicationDocumentRefs:"getApplicationDocumentRefs",geoFromIP:"geoFromIP",getUserHealthIndicators:"getUserHealthIndicators",getAllHumanParts:"getAllHumanParts",checkUserHealthIndicators:"checkUserHealthIndicators",getHasNewWithoutInterpretations:"getHasNewWithoutInterpretations",getOrnamentOrder:"getOrnamentOrder",getUserHealthIndicatorsExplainerDetail:"getUserHealthIndicatorsExplainerDetail",getBiomarkersInfo:"getBiomarkersInfo",getFileById:"getFileById",getBlogArticles:"getBlogArticles",getBlogTags:"getBlogTags",getFileWithoutBearer:"getFileWithoutBearer",getDocumentByType:"getDocumentByType",getBlogArticlesByFilters:"getBlogArticlesByFilters",getSpecializations:"getSpecializations",getDynamicRowApplicationByRole:"getDynamicRowApplicationByRole",getClinics:"getClinics",getAnswerAndQuestions:"getAnswerAndQuestions",getCurrentProfile:"getCurrentProfile",getCountryParams:"getCountryParams",getDoctorPrograms:"getDoctorPrograms",getDoctorProgramById:"getDoctorProgramById",getDoctorAppProfile:"getDoctorAppProfile",getSubscriptionByDoctorProgramId:"getSubscriptionByDoctorProgramId",getDoctorAppUserSelectGoal:"getDoctorAppUserSelectGoal",getDoctorAppUserSelectGoalByUserId:"getDoctorAppUserSelectGoalByUserId",getDoctorAppUserSelectTaskByUserId:"getDoctorAppUserSelectTaskByUserId",getDoctorProgramGoalById:"getDoctorProgramGoalById",getDoctorAppUserSelectGoalByPrgoramId:"getDoctorAppUserSelectGoalByPrgoramId",getOrderResultsById:"getOrderResultsById",getProfileOrders:"getProfileOrders",getCustomUserCheckupByUser:"getCustomUserCheckupByUser",getLaboratories:"getLaboratories",getCurrentProfileGroup:"getCurrentProfileGroup",getEssentialViewResults:"getEssentialViewResults",getUserCheckup:"getUserCheckup",getServiceCodeToOrnamentCode:"getServiceCodeToOrnamentCode",getInsuranceCertificate:"getInsuranceCertificate",getInsuranceIsActive:"getInsuranceIsActive",findUserByUserId:"findUserByUserId",getInsuranceRisksTypes:"getInsuranceRisksTypes",getInsuranceClaimDetails:"getInsuranceClaimDetails",getLabResultsHistory:"getLabResultsHistory",getAssayPrices:"getAssayPrices"}},9723:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var a=n(2265);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,[n,r]=(0,a.useState)(e);return(0,a.useEffect)(()=>{var n=setTimeout(()=>{r(e)},t);return()=>clearTimeout(n)},[e,t]),n}},63405:function(e,t,n){"use strict";var a=n(61247),r=n(2265),s=n(99441),i=n(40135),l=n(58810);t.Z=function(){var{withUpdate:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.sJ)(l.s),[n,c]=(0,s.FV)(i.R),[o,u]=(0,r.useState)(0);return(0,r.useEffect)(()=>{e&&(0,a.O)(null==t?void 0:t.countryCode).then(e=>c(e))},[]),(0,r.useEffect)(()=>{var e,a;u(null!==(a=null===(e=n.find(e=>e.countryCode===(null==t?void 0:t.countryCode)))||void 0===e?void 0:e.balance)&&void 0!==a?a:0)},[t,n]),o}},35646:function(e,t,n){"use strict";var a=n(78845),r=n(53871),s=n(62007),i=n(89555),l=n(99441),c=n(4988),o=n(92672),u=n(24839),d=n(68847),h=n(40135),v=n(22952),m=n(715),g=n(76465),p=n(2962),f=n(56269),y=n(78619),x=n(20389);t.Z=()=>{(0,a.Z)();var{handleSetSessionRole:e}=(0,x.Z)(),t=(0,l.Zl)(y.a9),n=(0,l.Zl)(d.sq),_=(0,l.Zl)(y.T7),j=(0,l.Zl)(y.zE),C=(0,l.Zl)(f.gd),Z=(0,l.Zl)(f.eR),k=(0,l.Zl)(h.R),N=(0,l.Zl)(u.C),b=(0,l.Zl)(g.S),w=(0,l.Zl)(v.KY),S=(0,l.Zl)(c.kw),I=(0,l.Zl)(m.sq),D=(0,l.Zl)(h.L),A=(0,l.Zl)(y.Fc),L=(0,l.Zl)(p.Jq),P=(0,l.Zl)(m._e),B=(0,i.useQueryClient)();return function(){var a=!(arguments.length>0)||void 0===arguments[0]||arguments[0];a&&S(!0),B.clear(),B.invalidateQueries(),n(null),t(null),k([]),N(null),j(""),_([]),P(null),C([]),b([]),w([]),A([]),Z([]),L([]),D({}),I(0),e(null),(0,r.dZ)(o.LS_CREDENTIALS_KEY),(0,s.o$)(o.LS_CREDENTIALS_KEY),(0,s.o$)(o.LS_PHONE_NUMBER_KEY),
1(0,r.dZ)("role"),(0,r.dZ)("sessionRole"),sessionStorage.clear(),a&&window.open("/","_self")}}},20716:function(e,t,n){"use strict";var a=n(61943),r=n(51920),s=n(87029),i=n(99441),l=n(21987),c=n(33834);t.Z=()=>{var e,t=(0,i.sJ)(c.ng);return e=(0,a._)(function*(e){return yield(0,l.H9)((0,s._)((0,r._)({},e),{campaignCode:t&&t.value?t.value.code:e.campaignCode}))}),function(t){return e.apply(this,arguments)}}},17262:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var a=e=>Object.entries(e).map(e=>{var[t,n]=e;return Array.isArray(n)?n.map(e=>"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))).join("&"):"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n))}).join("&")},81948:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var a=n(57437),r=n(92576),s=n(37044),i=n(17889),l=n(78845),c=n(98596),o=n(77395),u=n(56800),d=n.n(u),h=n(41348),v=n(92672),m=n(1134),g=n(88178),p=n(44213),f=n(16463),y=n(2265),x=n(69208),_=n(99441),j=n(61943),C=n(51920),Z=n(87029),k=n(61247),N={src:"/_next/static/media/emptyCart.1254ed42.svg",height:97,width:97,blurWidth:0,blurHeight:0},b=n(80570),w=n(99383),S=n(59902),I=n(53871),D=n(38836),A=n(20716),L=n(66648),P=n(62358),B=n(60730),E=n(58810),F=n(2962),T=n(78619);n(88969);var R=e=>{var t,n,s,i,{setIsOpenCart:o}=e,u=(0,m.qM)(),d=(0,l.Z)(),h=(0,A.Z)(),g=(0,c.Z)(),p=(0,_.sJ)(B.uZ);(0,_.sJ)(F.kz);var f=(0,_.sJ)(T.a9),[x,R]=(0,_.FV)(B.uZ),[U,M]=(0,_.FV)(B.b5),q=(0,_.sJ)(E.s),[J,O]=(0,y.useState)(!1),[H,z]=(0,y.useState)(null),[K,Q]=(0,y.useState)(null);(0,y.useEffect)(()=>{for(var e=function(e){if(t.every(t=>(null==t?void 0:t.code)!==n[e].code)){var a;(null===(a=n[e])||void 0===a?void 0:a.amount)&&t.push(n[e])}},t=[],n=x.map(e=>e.additionalServices).flat(),a=0;a<n.length;a++)e(a);M(t)},[x]),(0,y.useEffect)(()=>{(null==H?void 0:H.total)?(0,k.i)({sum:null==H?void 0:H.total,provider:H.provider,providerType:H.providerType}).then(e=>Q(e)):Q(null)},[null==H?void 0:H.total]),(0,y.useEffect)(()=>{var e;(e=(0,j._)(function*(){O(!0);var e="true"===(0,I.G)(v.SS_IS_HEALTH_ASSESSMENT_ENABLED),t=yield h({id:"",additionalService:[],campaignCode:"",language:(0,P.W)(),couponCode:"",inHouse:!1,regionCode:q.regionCode,userId:f.userId,services:x,deviceId:crypto.randomUUID(),useInterpretation:e});(null==t?void 0:t.selectedServices)&&q&&(0,D.Rc)({totalPrice:null==t?void 0:t.total,services:null==t?void 0:t.selectedServices,userAddress:q}),z(t),O(!1)}),function(){return e.apply(this,arguments)})()},[]);var W=(t=(0,j._)(function*(e){x.some(t=>t.code===e.code)?R(t=>t.filter(t=>t.code!==(null==e?void 0:e.code))):R([...x,e])}),function(e){return t.apply(this,arguments)}),G=(n=(0,j._)(function*(){H&&(O(!0),R([]),o(!1),(null==H?void 0:H.selectedServices)&&q&&(0,D.EU)({totalPrice:null==H?void 0:H.total,type:"Analyse",services:null==H?void 0:H.selectedServices,userAddress:q,isForAnotherPatient:!1}),d(S.Z.client.cart.order({type:"order",orderId:H.id})))}),function(){return n.apply(this,arguments)});return(0,a.jsxs)("div",{className:"DesktopCart",children:[(0,a.jsx)("h3",{className:"typography-h4",children:u("selectedOrdersList")}),p.length?(0,a.jsxs)("div",{className:"DesktopCart__cartItems",children:[(0,a.jsxs)("div",{className:"DesktopCart__row",children:[p.map(e=>(0,a.jsx)(b.Z,{analyse:e,itemAction:()=>W(e),font:"subtitle1",icon:"remove",cls:"element_animated DesktopCart__analyse",readOnly:!0},"price".concat(e.code))),null==H?void 0:H.additionalServices.map(e=>(0,a.jsx)(b.Z,{icon:"none",font:"subtitle1",analyse:e,itemAction:()=>null,cls:"DesktopCart__analyse",readOnly:!0},"additionalPrice".concat(e.code)))]}),(null==H?void 0:null===(s=H.campaign)||void 0===s?void 0:s.value)&&(0,a.jsxs)("div",{className:"DesktopCart__cartItems__sale",children:[(0,a.jsx)("p",{children:u("discount")}),(0,a.jsxs)("h5",{children:[null==H?void 0:null===(i=H.campaign)||void 0===i?void 0:i.value,(null==H?void 0:H.campaign.isFixed)?(0,I.fe)():"%"]})]}),!!(null==H?void 0:H.total)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"DesktopCart__cartItems_price",children:[(0,a.jsxs)("span",{className:"typography-h5",children:[u("total"),":"]}),(0,a.jsxs)("span",{className:"typography-h5 price",children:[(null==H?void 0:H.total)?(0,I.rH)(null==H?void 0:H.total):null==H?void 0:H.total," ",(0,I.fe)()]})]}),null!==K&&K>0&&(0,a.jsx)("div",{className:"typography-subtitle2 DesktopCart__cartItems_bonuses",children:"+".concat((0,I.uf)(K,!0)," ").concat(u("bonuses").toLowerCase())})]}),(0,a.jsx)(w.Z,{loading:J,action:G,text:u("actionToPay"),size:"small"})]}):(0,a.jsxs)("div",{className:"DesktopCart__emptyCart",children:[(0,a.jsx)(L.default,(0,Z._)((0,C._)({},N),{src:N,alt:"cart"})),(0,a.jsx)("h4",{className:"typography-h5 secondary-light",children:u("servicesNotSelectedError")})]}),(0,a.jsx)(r.K,{onClick:()=>o(!1),className:"DesktopCart__navLink",href:g(S.Z.client.cart.root
1()),children:(0,a.jsx)("span",{className:"typography-subtitle2",children:u("actionGoToOrders")})})]})},U=n(64950),M=n(4988),q=()=>{var e=(0,m.qM)(),t=[{title:e("all"),icon:(0,a.jsx)(o.qv,{}),value:"all"},{title:e("orders"),icon:(0,a.jsx)(o.DE,{}),value:g.a.order},{title:e("forSpecialists"),icon:(0,a.jsx)(o.pF,{}),value:g.a.application}],[n,r]=(0,y.useState)("all");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.Z,{className:"messagesContent__menu",horizontal:!0,vertical:!1,children:t.map((e,t)=>(0,a.jsxs)("button",{className:n===e.value?"messagesContent__menu_active":"messagesContent__menu_disabled",onClick:()=>r(e.value),children:[e.icon,e.title]},t))}),(0,a.jsx)(h.Z,{show:!0,activeCategory:n})]})},J=()=>{var e=(0,f.usePathname)(),t=(0,m.qM)(),n=(0,y.useRef)(null),r=(0,y.useRef)(null),[s,i]=(0,y.useState)(!1),[l]=(0,_.FV)(B.uZ);return(0,y.useEffect)(()=>{var e=e=>{var t,a;r.current&&!r.current.contains(e.target)&&n.current&&!n.current.contains(e.target)&&(null==e?void 0:null===(a=e.target)||void 0===a?void 0:null===(t=a.parentNode)||void 0===t?void 0:t.className)!=="remove-icon"&&(null==e?void 0:e.target.tagName)!=="path"&&i(!1)};return s&&document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[s]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{id:"desktopCartForCards",className:"navigationAuthed__item typography-h5 ".concat(s||e.includes("cart")?"active":""),onClick:()=>i(!s),ref:n,children:[(0,a.jsx)(o.w7,{cart:l.length?(0,a.jsx)("span",{className:"cartCount",children:l.length}):""}),(0,a.jsx)("span",{children:t("cart")})]}),s&&(0,a.jsx)("div",{ref:r,children:(0,a.jsx)(R,{setIsOpenCart:i})})]})},O=e=>{var{navigationsAuthed:t,role:n}=e,s=(0,m.qM)(),i=(0,c.Z)(),l=(0,y.useRef)(null),u=(0,y.useRef)(null),h=(0,f.usePathname)(),v=(0,_.sJ)(U.eA),g=(0,_.sJ)(M.cA),[x,j]=(0,y.useState)(!1),C=null!=n?n:v,Z=(0,_.Zl)(U.xu);return(0,y.useEffect)(()=>{var e=e=>{l.current&&!l.current.contains(e.target)&&u.current&&!u.current.contains(e.target)&&j(!1)};return x&&document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[x,C]),(0,a.jsxs)("div",{className:"navigationAuthed",children:[t.map((e,t)=>(null==e?void 0:e.link)?(0,a.jsxs)(r.K,{className:d()("navigationAuthed__item","typography-h5",{active:h===i(null==e?void 0:e.link)}),href:"downloadApp"===e.type?"":i(null==e?void 0:e.link),prefetch:!1,onClick:()=>{if("downloadApp"===e.type){Z(!0);return}},children:[e.icon,e.title]},t):(0,a.jsxs)("div",{style:{cursor:"pointer"},className:"navigationAuthed__item typography-h5",onClick:()=>{if("downloadApp"===e.type){Z(!0);return}},children:[e.icon,e.title]},t)),C===p.cU.client&&"default"===g&&(0,a.jsx)(J,{}),(0,a.jsxs)("div",{ref:u,onClick:()=>j(e=>!e),className:"navigationAuthed__item typography-h5 ".concat(x?"active":""),children:[(0,a.jsx)(o.sh,{}),(0,a.jsx)("span",{children:s("notifications")})]}),x&&(0,a.jsx)("div",{className:"messagesContent",ref:l,children:(0,a.jsx)(q,{})})]})},H=e=>{var{navigationsAuthed:t,role:n,type:o="default"}=e,u=(0,f.usePathname)(),h=(0,m.qM)(),g=(0,l.Z)(),p=(0,c.Z)(),y=(0,_.sJ)(T.a9),x=(0,_.Zl)(U.xu),j="halsa"===o?(0,v.navigationsHalsaHeader)():(0,v.navigationsNewLanding)(),C=(0,i.Z)(),Z=e=>"/"===e?u.split("/").length<=3:u.includes(e);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{when:"minDesktop",children:y?(0,a.jsx)(O,{navigationsAuthed:t,role:n}):(0,a.jsx)("div",{className:d()("navigation",{halsa:"halsa"===o}),children:j.map((e,t)=>{var n;return(0,a.jsxs)("div",{className:"navigation__item",children:[e.items?(0,a.jsxs)("p",{children:[h(e.title),e.items&&(0,a.jsx)("i",{className:"ri-arrow-down-s-line"})]}
1):(0,a.jsx)(r.K,{className:"typography-h6",href:p(e.link),prefetch:!1,children:(0,a.jsx)("span",{style:{color:Z(e.link)?"#FD385B":void 0},children:h(e.title)})}),(0,a.jsx)("div",{className:d()("navigation__item_modal",{hidden:!e.items}),children:null==e?void 0:null===(n=e.items)||void 0===n?void 0:n.filter(e=>!e.disabled||!C).map((e,t)=>(0,a.jsx)("p",{style:{color:Z(null==e?void 0:e.link)?"#FD385B":void 0},className:"typography-subtitle1",onClick:()=>g(null==e?void 0:e.link),children:h(e.title)},t))})]},t)})})}),(0,a.jsx)(s.Z,{when:"maxSmallDesktop",children:(0,a.jsx)("div",{className:"navigationAuthed",children:t.map((e,t)=>(0,a.jsxs)(r.K,{className:d()("navigationAuthed__item","typography-h5",{active:u===p(null==e?void 0:e.link)}),href:"downloadApp"===e.type?"":p(e.link),prefetch:!1,onClick:()=>{if("downloadApp"===e.type){x(!0);return}},children:[e.icon,e.title]},t))})})]})}},54130:function(e,t,n){"use strict";n.d(t,{Z:function(){return er}});var a=n(57437),r=n(37044),s=n(56800),i=n.n(s),l=n(16463),c=n(99441),o=n(4988),u=n(92576),d=n(78845),h=n(98596),v=n(87320),m=n(77395),g=n(99383),p=n(59902),f=n(12638);n(88745);var y=()=>{var e=(0,d.Z)();return(0,a.jsx)(f.Z,{action:()=>e(p.Z.common.messages()),clx:"notificationIconButton",icon:(0,a.jsx)(m.sh,{})})},x=n(18229),_=n(92672),j=n(53871),C=n(59026),Z=n(78198),k=n(69452),N=n(1134),b=n(66648),w=n(58810),S=n(64950),I=n(78619),D=n(61943),A=n(8367),L=n(32748),P=n(2265),B=(e,t)=>{(0,P.useEffect)(()=>{var n,a,r=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return null===(n=document)||void 0===n||n.addEventListener("mousedown",r),null===(a=document)||void 0===a||a.addEventListener("touchstart",r),()=>{var e,t;null===(e=document)||void 0===e||e.removeEventListener("mousedown",r),null===(t=document)||void 0===t||t.removeEventListener("touchstart",r)}},[e,t])},E=n(9723),F=n(62358),T=n(2962);n(23126);var R=e=>{var t,{onlyClinic:n}=e,r=(0,N.qM)(),[s,i]=(0,P.useState)(""),l=(0,E.N)(s,800),o=(0,c.sJ)(T.$U),u=(0,c.sJ)(w.s),h=(0,d.Z)(),v=(0,P.useRef)(null),[g,f]=(0,P.useState)(!1),[y,x]=(0,P.useState)(!1),[_,C]=(0,P.useState)(null),[Z,k]=(0,P.useState)(!1),b=null!==(t=o[(null==u?void 0:u.countryCode)||""])&&void 0!==t?t:[];function S(){return(S=(0,D._)(function*(){k(!0),x(!0);var e=yield(0,A.F)({strQuery:l,onlyClinic:n},{country:null==u?void 0:u.countryCode,language:(0,F.W)()});C(t=>t?[...t,...e]:e),f(!0),x(!1)})).apply(this,arguments)}B(v,()=>{f(!1)});var I=(e,t)=>{switch(e){case"Specialization":return r("specialization");case"Specialist":return r("doctors");case"Clinic":return r("clinics");case"Service":if(n)return r("services");if("Lab"===t)return r("analyses");return"Doctor"===t?r("doctorServices"):r("clinicServices")}},R=e=>{var t,n,{type:a,entityId:r,entityName:s,entityType:i}=e;switch(f(!1),a){case"Specialization":return p.Z.clinic.specializationDetails({specId:"".concat((0,j.Ro)(s),"-").concat(r)});case"Specialist":return p.Z.clinic.doctorDetails({profileId:"".concat((0,j.Ro)(s),"-").concat(r)});case"Clinic":return p.Z.clinic.clinicDetails({clinicId:"".concat((0,j.Ro)(s),"-").concat(r)});case"Service":if("Lab"===i)return p.Z.analyses.service({code:"".concat(r,"-").concat((0,j.Ro)(s)),provider:null!==(n=null==b?void 0:null===(t=b[0])||void 0===t?void 0:t.code)&&void 0!==n?n:"service"});return"Doctor"===i?"".concat(p.Z.clinic.doctors(),"?code=").concat(r):"".concat(p.Z.clinic.clinics(),"?code=").concat(r);default:return""}};(0,P.useEffect)(()=>{f(!1),C(null),l&&function(){S.apply(this,arguments)}()},[l]);var U=e=>{var{entityName:t,type:n}=e;return"Specialist"===n?t.split(",").join(", "):t};return(0,a.jsxs)("div",{className:"search-input",children:[(0,a.jsx)(L.Z,{name:"new-search",autoComplete:"new-search",onChange:e=>{i(e.target.value)},loader:y,onClick:()=>{f(!0)}}),g&&_&&(0,a.jsx)("div",{className:"globalSearch",ref:v,children:(null==_?void 0:_.length)&&_?null==_?void 0:_.map(e=>(0,a.jsxs)("div",{onClick:()=>{h(R({type:e.type,entityId:e.entityId,entityName:e.entityName,entityType:e.entityType}))},className:"globalSearch__card",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(m.IT,{}),(0,a.jsx)("p",{className:"globalSearch__card__title",children:U({entityName:e.entityName,type:e.type})})]}),(0,a.jsx)("p",{className:"globalSearch__card__ghost",children:I(e.type,e.entityType)})]},e.entityId)):Z&&l&&(0,a.jsxs)("div",{className:"globalSearch__notFound",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"132",height:"132",viewBox:"0 0 132 132",fill:"none",children:(0,a.jsx)("path",{d:"M85.4187 91.5908L85.1069 91.2789L84.7586 91.5494C76.3815 98.0529 65.8408
1101.119 55.2823 100.125C44.7238 99.1299 34.9413 94.1486 27.9263 86.195C20.9113 78.2413 17.1911 67.9132 17.5231 57.3131C17.8551 46.7131 22.2144 36.638 29.7134 29.139C37.2125 21.64 47.2875 17.2807 57.8876 16.9487C68.4876 16.6167 78.8157 20.3368 86.7694 27.3518C94.7231 34.3669 99.7043 44.1494 100.699 54.7078C101.694 65.2663 98.6273 75.807 92.1238 84.1841L91.8534 84.5325L92.1652 84.8443L113.542 106.221L113.548 106.227L113.554 106.233C114.023 106.67 114.399 107.197 114.66 107.782C114.921 108.368 115.062 109 115.073 109.641C115.084 110.282 114.966 110.919 114.726 111.513C114.486 112.108 114.129 112.648 113.675 113.101C113.222 113.554 112.682 113.912 112.088 114.152C111.493 114.392 110.857 114.51 110.216 114.498C109.575 114.487 108.943 114.347 108.357 114.086C107.771 113.825 107.244 113.449 106.807 112.98L106.801 112.973L106.795 112.967L85.4187 91.5908ZM81.9189 81.3374C87.9455 75.3108 91.3312 67.137 91.3312 58.6142C91.3312 50.0913 87.9455 41.9175 81.9189 35.8909C75.8923 29.8643 67.7185 26.4786 59.1956 26.4786C50.6727 26.4786 42.4989 29.8643 36.4724 35.8909C30.4458 41.9175 27.0601 50.0913 27.0601 58.6142C27.0601 67.137 30.4458 75.3108 36.4724 81.3374C42.4989 87.364 50.6727 90.7497 59.1956 90.7497C67.7185 90.7497 75.8923 87.364 81.9189 81.3374Z",fill:"white",stroke:"#FD385B"})}),(0,a.jsx)("p",{className:"globalSearch__notFoundText",children:r("errorClinicsNotFound")})]})})]})},U=n(81948),M=n(19778),q=()=>{var e,t=(0,c.Zl)(S.dF),n=(0,P.useRef)(null),[r,s]=(0,P.useState)(!1),i=null!==(e=(0,j.$o)("country"))&&void 0!==e?e:(0,C.qH)(),l=(0,c.sJ)(S.dF),o=()=>{for(var e=0;e<_.languages.length;e++)if(_.languages[e].value===l)return _.languages[e];return _.languages[0]},[u,d]=(0,P.useState)(o()),h=e=>{t(e.value),d(e),s(!1)};return(0,P.useEffect)(()=>{d(o())},[l]),(0,P.useEffect)(()=>{var e,t=e=>{n.current&&!n.current.contains(e.target)&&s(!1)};return r&&(null===(e=document)||void 0===e||e.addEventListener("click",t)),()=>{var e;null===(e=document)||void 0===e||e.removeEventListener("click",t)}},[r]),(0,a.jsxs)("div",{onClick:()=>s(!r),className:"languageSelect",ref:n,children:[(0,a.jsxs)("div",{className:"languageSelect__item languageSelect__selected languageSelect__selected_".concat(r?"open":"closed"),children:[(0,a.jsx)("p",{className:"typography-subtitle2",children:u.title}),(0,a.jsx)("i",{style:{transform:"rotate(".concat(r?"-180deg":"0",")")},className:"ri-arrow-down-s-line"})]}),r&&(0,a.jsx)("div",{className:"languageSelect__disabled languageSelect__item_".concat(r?"open":"closed"),children:_.languages.filter(e=>{var t;return e.value!=u.value&&!(null===(t=M.av[i])||void 0===t?void 0:t.has(e.value))}).map((e,t)=>(0,a.jsx)("div",{onClick:()=>h(e),className:"languageSelect__item",children:(0,a.jsx)("p",{className:"typography-subtitle2",children:e.title})},t))})]})},J=e=>{var{role:t}=e,n=(0,N.qM)(),s=(0,d.Z)();(0,c.Zl)(S.Km);var i=(0,Z.Z)(_.mediaQueriesConstants.maxMobile),l=(0,c.Zl)(S.Wk),o=(0,c.sJ)(I.a9),f=(0,c.sJ)(S.eA),D=(0,c.sJ)(w.s),A=null!=t?t:f,L=(0,k.Z)(),P=(0,h.Z)(),B=[{title:n("clinic"),link:p.Z.clinic.root(),icon:(0,a.jsx)(m.tv,{})},{title:n("history"),link:p.Z.common.history.root(),icon:(0,a.jsx)(m.F_,{})}],E=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(u.K,{className:"header__logo",href:P(o?p.Z.common.dashboard():p.Z.landing),prefetch:!1,children:(0,a.jsx)(b.default,{width:40,height:40,className:"logo",src:v.default.src,alt:"logo"})})});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"header__left",children:[E,(0,a.jsx)(r.Z,{when:"minDesktop",children:(0,a.jsx)(U.Z,{navigationsAuthed:B,role:t})})]}),(0,a.jsxs)("div",{className:"header__right",children:[!i&&o&&"doctor"===A&&(0,a.jsx)(g.Z,{action:()=>{l(p.Z.doctor.referrals()),i&&s(p.Z.selectProvider())},text:n("actionAddReferral"),endIcon:(0,a.jsx)(m.pw,{}),clx:"header__right_add"}),(0,a.jsx)(R,{onlyClinic:!0}),(0,a.jsx)(q,{}),!o&&(0,a.jsxs)("div",{className:"header__right_address",onClick:()=>{L({isClosable:!0,status:"doctor"===f||"nurse"===f?"selectRegion":"selectCountry"})},children:[(0,a.jsxs)(r.Z,{when:"minLargeTablet",children:[(0,C.Fh)(n,null==D?void 0:D.countryCode.toLowerCase())||n("country"),", ",(null==D?void 0:D.city)||n("city")]}),(0,a.jsx)(m.qQ,{})]}),i&&o&&"client"===A&&(0,a.jsx)(y,{}),o?i?(0,a.jsx)(g.Z,{size:"small",text:n("actionDownloadApp"),variant:"outlined",action:()=>(0,j.xg)((0,j.o9)()),target:"_blank",rel:"noreferrer"}):(0,a.jsx)(x.Z,{type:"header",needMenu:!0}):(0,a.jsx)(a.Fragment,{})]})]})},O=n(17889),H=n(60730),z=n(29980),K=n(46735),Q=n(89555),W=n(29586),G=n.n(W);function V(){var e,t=(0,N.qM)(),[n,s]=(0,P.useState)(!0),i=(0,c.sJ)(S.dF),l=(0,c.Zl)(o.RN),{data:u}=(0,Q.useQuery)([K.J.geoFromIP],z.vW);if(!n||!u||!(null==u?void 0:u.city)||!(null==u?void 0:u.cityCode)||!(null==u?void 0:u.countryCode)||(null==u?void 0:null===(e=u.cityCode)||void 0===e?void 0:e.toLowerCase())===M.Cm.code)return null;var d=()=>
1{if(u&&u.countryCode&&u.cityCode){var e=document.querySelector("body");null==e||e.classList.add("page-transition"),l(!0);var t="/".concat(u.countryCode.toLowerCase(),"-").concat(i,"/").concat(u.cityCode.toLowerCase());window.open(t,"_self")}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Z,{when:"minTablet",children:(0,a.jsxs)("div",{className:G().popup,onClick:e=>{e.stopPropagation()},children:[(0,a.jsxs)("p",{className:G().title,children:[t("yourCity")," ",null==u?void 0:u.city,"?"]}),(0,a.jsxs)("div",{className:G().buttons,children:[(0,a.jsx)(g.Z,{text:t("actionYes"),action:d}),(0,a.jsx)(g.Z,{text:t("actionKeepCurrent"),variant:"outlined",action:()=>{s(!1)}})]})]})}),(0,a.jsx)(r.Z,{when:"maxMobile",children:(0,a.jsxs)("div",{className:G().mobilePopup,onClick:e=>{e.stopPropagation()},children:[(0,a.jsx)("div",{className:G().currentCity,children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:G().currentCity_text,children:t("currentRegion")}),(0,a.jsxs)("div",{className:G().currentCity_city,children:[(0,a.jsx)(m.qQ,{}),M.Cm.name]})]})}),(0,a.jsxs)("p",{className:G().title,children:[t("yourCity")," ",null==u?void 0:u.city,"?"]}),(0,a.jsxs)("div",{className:G().buttons,children:[(0,a.jsx)(g.Z,{text:t("actionYes"),action:d}),(0,a.jsx)(g.Z,{text:t("actionKeepCurrent"),variant:"outlined",action:()=>{s(!1)}})]})]})})]})}var Y=n(82788);n(18131);var $=n(92591),X=n.n($),ee=e=>[{title:e("home"),path:p.Z.landing},{title:e("aboutUs"),path:p.Z.aboutUs()},{title:e("collaboration"),path:p.Z.partner.root()},{title:e("articlesAndNews"),path:p.Z.blog.root()},{title:e("healthAssessment"),path:p.Z.healthAssessment.root()},{title:e("vitamins"),path:p.Z.halsa.root()},{title:e("faq"),path:p.Z.common.profile.faq()}];function et(e){var t,{isShowBurger:n,setIsShowBurger:r}=e,s=(0,l.usePathname)(),o=(0,P.useRef)(null),u=(0,N.qM)(),h=(0,d.Z)(),v=(0,c.Zl)(S.Km),p=(0,c.sJ)(S.eA),f=(0,k.Z)(),y=(0,c.sJ)(w.s),x=(0,c.Zl)(S.dF),Z=null!==(t=(0,j.$o)("country"))&&void 0!==t?t:(0,C.qH)(),b=(0,c.sJ)(S.dF),I=(0,O.Z)(),[D,A]=(0,P.useState)((()=>{for(var e=0;e<_.languages.length;e++)if(_.languages[e].value===b)return _.languages[e];return _.languages[0]})()),L=e=>{r(!1),x(e.value),A(e)},B=e=>"/"===e?s.split("/").length<=3:s.includes(e);return(0,P.useEffect)(()=>{var e=document.querySelector("main");return n?(document.documentElement.style.overflow="hidden",e&&(e.style.zIndex=String(5),e.style.position="relative")):(e&&(e.style.zIndex="unset",e.style.position="static"),document.documentElement.style.overflow="auto"),()=>{e&&(e.style.zIndex="unset",e.style.position="static"),document.documentElement.style.overflow="auto"}},[n]),(0,a.jsxs)(a.Fragment,{children:[n&&(0,a.jsx)(Y.Z,{darkLvl:"0",zIndex:"-1",action:()=>{r(!1)}}),(0,a.jsx)("img",{className:X().burger,src:"/_next/static/media/burger.4d704e08.svg",onClick:()=>{r(!n)},alt:"menu"}),(0,a.jsxs)("div",{ref:o,className:i()(X().burger_modal,{[X().open]:n}),children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:X().head,children:[I&&(0,a.jsxs)("div",{className:"header__left_address",style:{margin:0},onClick:()=>{r(!1),f({isClosable:!0,status:"doctor"===p||"nurse"===p?"selectRegion":"selectCountry"})},children:["/"===s&&(0,a.jsx)(V,{}),(0,a.jsx)(m.qQ,{color:"#12175D"}),(null==y?void 0:y.city)||u("city")]}),(0,a.jsx)("div",{onClick:()=>{r(!1)},children:(0,a.jsx)(m.Tw,{})})]}),(0,a.jsx)("div",{className:X().pages,children:ee(u).map(e=>(0,a.jsx)("p",{className:i()(X().page,{[X().active]:B(e.path)}),onClick:()=>h(e.path),children:e.title},e.title))})]}),(0,a.jsxs)("div",{className:X().bottom,children:[(0,a.jsxs)("div",{className:X().languages,children:[(0,a.jsx)("p",{children:u("langauge")}),(0,a.jsx)("div",{className:X().languages_list,children:_.languages.filter(e=>{var t;return!(null===(t=M.av[Z])||void 0===t?void 0:t.has(e.value))}).map((e,t)=>(0,a.jsx)("div",{onClick:()=>L(e),className:i()(X().languages_item,{[X().active]:e.value===D.value}),children:e.title},t))})]}),(0,a.jsx)(g.Z,{text:u("actionLogin"),action:()=>{r(!1),v("login")}})]})]})]})}var en=e=>{var t,{role:n}=e,s=(0,N.qM)(),i=(0,d.Z)(),o=(0,l.usePathname)(),f=(0,c.Zl)(S.Km),D=(0,Z.Z)(_.mediaQueriesConstants.maxMobile),A=(0,c.Zl)(S.Wk),L=(0,c.sJ)(I.a9),B=(0,c.sJ)(S.eA),[E]=(0,c.FV)(H.uZ),F=(0,h.Z)(),T=(0,k.Z)(),M=(0,c.sJ)(w.s),J=null!=n?n:B,z=(0,O.Z)(),[K,Q]=(0,P.useState)(!1),W="/"===o,G=[{title:s("home"),link:p.Z.common.dashboard(),icon:(0,a.jsx)(m.tv,{})},{title:s("history"),link:p.Z.common.history.root(),icon:(0,a.jsx)(m.F_,{})}],Y=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(u.K,{className:"header__logo",href:F(L?p.Z.common.dashboard():p.Z.landing),prefetch:!1,children:(0,a.jsx)(b.default,{width:40,height:40,className:"logo",src:v.default.src,alt:"logo"})})}),$=()=>{f("login")},X=()=>{T({isClosable:!0,status:"doctor"===B||"nurse"===B?"selectRegion":"selectCountry"})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"header__left",children:[Y,(0,a.jsx)(r.Z,{when:"minDesktop",children:(0,a.jsx)(U.Z,{navigationsAuthed:G,role:n})}),!L&&z&&!K&&(0,a.jsx)(r.Z,{when:"maxMobile",children:(0,a.jsxs)("div",{className:"header__left_address",onClick:X,children:[W&&(0,a.jsx)(V,{}),(0,a.jsx)(m.qQ,{color:"#12175D"}),(null==M?void 0:M.city)||"ÐоÑод"]})})]}),(0,a.jsxs)("div",{className:"header__right",children:[L&&("doctor"===J||"nurse"===J)&&(0,a.jsx)(r.Z,{when:"minTablet",children:(0,a.jsx)(g.Z,{action:()=>{A(p.Z.doctor.referrals()),D&&i(p.Z.selectProvider())},text:s("actionAddReferral"),endIcon:(0,a.jsx)(m.pw,{}),clx:"header__right_add"})}),L&&"client"===J&&(0,a.jsx)(r.Z,{when:"minTablet",children:(0,a.jsx)(R,{onlyClinic:!1})}),L?(0,a.jsx)(q,{}):(0,a.jsx)(r.Z,{when:"minTablet",children:(0,a.jsx)(q,{})}),L&&"client"===J&&(0,a.jsx)(r.Z,{when:"maxMobile",children:(0,a.jsx)(y,{})}),!L&&z&&(0,a.jsx)(r.Z,{when:"minTablet",children:(0,a.jsxs)("div",{className:"header__right_address",onClick:X,children:[(0,C.Fh)(s,null==M?void 0:null===(t=M.countryCode)||void 0===t?void 0:t.toLowerCase())||s("country"),", ",(null==M?void 0:M.city)||s("city"),(0,a.jsx)(m.qQ,{}),W&&(0,a.jsx)(V,{})]})}),L?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Z,{when:"minTablet",children:(0,a.jsx)(x.Z,{type:"header",needMenu:!0})}),(0,a.jsx)(r.Z,{when:"maxMobile",children:(0,a.jsx)(g.Z,{clx:"downloadBtn",size:"small",text:s("actionDownload"),variant:"outlined",action:()=>(0,j.xg)((0,j.o9)()),target:"_blank",rel:"noreferrer"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Z,{when:"minTablet",children:(0,a.jsx)("button",{"aria-label":"go to cart",className:"header__right_cart ".concat((null==E?void 0:E.length)?"active_cart":""),"data-count":null==E?void 0:E.length,onClick:$,children:(0,a.jsx)(m.Bx,{color:(null==E?void 0:E.length)?"#ffffff"
1:void 0})})}),(0,a.jsx)("button",{onClick:$,className:"header__right_login",children:s("actionLogin")}),(0,a.jsx)(r.Z,{when:"maxMobile",children:(0,a.jsx)(et,{isShowBurger:K,setIsShowBurger:Q})})]})]})]})},ea=e=>{var t,{role:n}=e,s=(0,N.qM)(),i=(0,l.usePathname)();(0,c.Zl)(S.Km);var o=(0,c.sJ)(I.a9),d=(0,c.sJ)(S.eA),v=(0,h.Z)(),g=(0,k.Z)(),f=(0,c.sJ)(w.s),y=(0,O.Z)(),[_,j]=(0,P.useState)(!1),Z=[{title:s("home"),link:p.Z.common.dashboard(),icon:(0,a.jsx)(m.tv,{})},{title:s("history"),link:p.Z.common.history.root(),icon:(0,a.jsx)(m.F_,{})}],D=(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(u.K,{className:"header__halsaLogo",href:v(o?p.Z.common.dashboard():p.Z.landing),prefetch:!1,children:[(0,a.jsx)(r.Z,{when:"maxMobile",children:(0,a.jsx)(b.default,{width:152,height:42,className:"logo",src:"/_next/static/media/halsaLogoSmall.86cd6cb1.svg",alt:"logo"})}),(0,a.jsx)(r.Z,{when:"minTablet",children:(0,a.jsx)(b.default,{width:305,height:42,className:"logo",src:"/_next/static/media/halsa.237be6eb.svg",alt:"logo"})})]})});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"header__left",children:[D,(0,a.jsx)(r.Z,{when:"minDesktop",children:(0,a.jsx)(U.Z,{navigationsAuthed:Z,role:n,type:"halsa"})})]}),(0,a.jsxs)("div",{className:"header__right",children:[(0,a.jsx)(q,{}),!o&&y&&(0,a.jsx)(r.Z,{when:"minLargeTablet",children:(0,a.jsxs)("div",{className:"header__right_address",onClick:()=>{g({isClosable:!0,status:"doctor"===d||"nurse"===d?"selectRegion":"selectCountry"})},children:[(0,C.Fh)(s,null==f?void 0:null===(t=f.countryCode)||void 0===t?void 0:t.toLowerCase())||s("country"),", ",(null==f?void 0:f.city)||s("city"),(0,a.jsx)(m.qQ,{}),"/"===i&&(0,a.jsx)(V,{})]})}),o?(0,a.jsx)(r.Z,{when:"minLargeTablet",children:(0,a.jsx)(x.Z,{type:"header",needMenu:!0})}):(0,a.jsx)(a.Fragment,{})]})]})},er=e=>{var{role:t,showBottomLine:n=!1,fixedHeader:s}=e,u=(0,c.sJ)(o.cA),d=(0,l.usePathname)(),h=d.includes("halsa")||d.includes("special-offer");return(0,a.jsx)("header",{className:i()("header",{header_bottomLine:n,fixedHeader:s,small:h}),id:"header",children:(0,a.jsxs)("div",{className:"container",children:["default"===u&&(0,a.jsx)("div",{className:"header__row",children:(0,a.jsx)(en,{role:t})}),"halsa"===u&&(0,a.jsx)("div",{className:"header__row",children:(0,a.jsx)(ea,{role:t})}),(0,a.jsx)(r.Z,{when:"maxTablet",children:(0,a.jsx)("div",{className:"header__row",children:"clinic"===u&&(0,a.jsx)(en,{role:t})})}),(0,a.jsx)(r.Z,{when:"minLargeTablet",children:(0,a.jsx)("div",{className:"header__row",children:"clinic"===u&&(0,a.jsx)(J,{role:t})})})]})})}},68847:function(e,t,n){"use strict";n.d(t,{Ni:function(){return l},sq:function(){return i},vh:function(){return s}});var a=n(53871),r=n(99441),s=(0,r.cn)({key:"resendCode",default:null}),i=(0,r.cn)({key:"credentials",default:(0,a.dr)()}),l=(0,r.cn)({key:"isWebViewTokenSetState",default:!1})},33834:function(e,t,n){"use strict";n.d(t,{QO:function(){return s},bm:function(){return i},ng:function(){return r}});var a=n(99441),r=(0,a.cn)({key:"campaignState",default:null}),s=(0,a.cn)({key:"currentPromocodeState",default:null}),i=(0,a.cn)({key:"allCouponsState",default:null})},22952:function(e,t,n){"use strict";n.d(t,{KY:function(){return r},SD:function(){return c},eE:function(){return l},gI:function(){return s},gW:function(){return i}});var a=n(99441),r=(0,a.cn)({key:"currentProfileTemplates",default:[]}),s=(0,a.cn)({key:"referralDetails",default:null}),i=(0,a.cn)({key:"consultationDetails",default:null}),l=(0,a.cn)({key:"offlineConsultationDetails",default:null});(0,a.cn)({key:"priceGroups",default:{}}),(0,a.cn)({key:"clinicDetails",default:null}),(0,a.cn)({key:"specialistDetails",default:null}),(0,a.cn)({key:"cachedClinics",default:[]});var c=(0,a.cn)({key:"doctorAppointmentModal",default:null})},715:function(e,t,n){"use strict";n.d(t,{DQ:function(){return i},_e:function(){return r},dr:function(){return s},eq:function(){return h},lZ:function(){return d},sq:function(){return o},vj:function(){return c},yA:function(){return l},zr:function(){return u}});var a=n(99441),r=(0,a.cn)({key:"stories",default:null}),s=(0,a.cn)({key:"partners",default:null}),i=(0,a.cn)({key:"banners",default:null}),l=(0,a.cn)({key:"clinicTopBanners",default:null}),c=(0,a.cn)({key:"news",default:null}),o=(0,a.cn)({key:"currentProfileRating",default:0}),u=(0,a.cn)({key:"contentDetails",default:null}),d=(0,a.cn)({key:"education",default:null}
1),h=(0,a.cn)({key:"educationDetails",default:null})},76465:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var a=(0,n(99441).cn)({key:"currentProfileDocuments",default:[]})},56269:function(e,t,n){"use strict";n.d(t,{Uy:function(){return i},eR:function(){return s},gd:function(){return r},hS:function(){return l},wK:function(){return c},zp:function(){return o}});var a=n(99441),r=(0,a.cn)({key:"currentProfileCards",default:[]}),s=(0,a.cn)({key:"currentProfilePayboxCards",default:[]}),i=(0,a.cn)({key:"kaspiLink",default:null}),l=(0,a.cn)({key:"paymeLink",default:null}),c=(0,a.cn)({key:"mbankLink",default:null}),o=(0,a.cn)({key:"goodooBanks",default:[]})},37763:function(){},8111:function(){},94339:function(){},30727:function(){},88745:function(){},18961:function(){},26804:function(){},99994:function(){},88969:function(){},23126:function(){},18131:function(){},29586:function(e){e.exports={popup:"styles_popup__V1M_C",title:"styles_title__uQTw2",buttons:"styles_buttons__9R7Fd",mobilePopup:"styles_mobilePopup__r68Rf",currentCity:"styles_currentCity__g20Pa",currentCity_text:"styles_currentCity_text__MWvYK",currentCity_city:"styles_currentCity_city__3QvlE"}},92591:function(e){e.exports={burger:"styles_burger___JW7d",burger_modal:"styles_burger_modal__cZ7Fl",open:"styles_open__OTX7i",head:"styles_head__FkmOT",pages:"styles_pages__7ilT_",active:"styles_active__7_9_f",bottom:"styles_bottom__5TaHZ",languages:"styles_languages__TLogG",languages_list:"styles_languages_list__w9D1Z",languages_item:"styles_languages_item__fRocT"}},87320:function(e,t,n){"use strict";n.r(t),t.default={src:"/_next/static/media/logo.f8f62391.svg",height:48,width:48,blurWidth:0,blurHeight:0}},80006:function(e,t,n){"use strict";n.r(t),t.default={src:"/_next/static/media/avatar.900f544f.svg",height:100,width:100,blurWidth:0,blurHeight:0}},53110:function(e,t){"use strict";t.Z={src:"/_next/static/media/location-secondary.b27114c2.svg",height:19,width:13,blurWidth:0,blurHeight:0}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.