(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1203],{27145:function(e,t,n){Promise.resolve().then(n.bind(n,10575)),Promise.resolve().then(n.t.bind(n,24649,23)),Promise.resolve().then(n.t.bind(n,46321,23)),Promise.resolve().then(n.t.bind(n,85827,23)),Promise.resolve().then(n.t.bind(n,99641,23)),Promise.resolve().then(n.bind(n,31602)),Promise.resolve().then(n.bind(n,17626)),Promise.resolve().then(n.bind(n,23987)),Promise.resolve().then(n.bind(n,92255)),Promise.resolve().then(n.bind(n,49849))},40377:function(e,t,n){"use strict";n.d(t,{g:function(){return s},j:function(){return i}});var o=n(66808);let i=(0,o.Z)({typography:{fontFamily:"var(--openSans),Roboto,Helvetica,Arial,sans-serif"},palette:{primary:{main:"#151F6D"},secondary:{main:"#d0e4ff"}},components:{MuiButton:{styleOverrides:{root:{minWidth:0}}}},buttons:{primary:{color:"#151F6D",textColor:"#ffffff",digitalMeReportColor:"rgba(4, 39, 75, 0.5)",hover:"#007afe"},secondary:{color:"#0243EC",textColor:"#ffffff",hover:"#007afe"},action:{color:"#d0e4ff",textColor:"#0f67fe",hover:"#1d2264"},actionSecondary:{color:"#dce1e8",textColor:"#242e49",hover:"#1d2264"},menu:{unselected:"#10152C",selected:"#007afe"},card:{hover:"#8ac2ff"}},box:{shadow:"rgba(0, 0, 0, 0.2) 0px 2px 4px -1px, rgba(0, 0, 0, 0.14) 0px 4px 5px 0px, rgba(0, 0, 0, 0.12) 0px 1px 10px 0px",borderRadius:"15px"},backgrounds:{light:"#f2f5f9",medium:"#d6e9ff",dark:"#151f6d",gradient:"linear-gradient(to bottom, #151F6D, #0f1752, #000D2F)"},borders:{light:"#c3d9fe",medium:"#b8bbc2",dark:"#0f67fe",radius:"50px"},lineHeight:{margin:"30px"},text:{result:"#007afe",evaluation:"#1f71fe",title:"#151f6d",normal:"#151f6d",dark:"#10152C",subTitle:"#2a2b2d",paragraph:"#646470"}}),a=(0,o.Z)(i,{components:{MuiButton:{styleOverrides:{root:{minWidth:0}}}},buttons:{primary:{color:"#003a79",digitalMeReportColor:"rgba(4, 39, 75, 0.5)",hover:"#020079",textColor:"#ffffff"},secondary:{color:"#151f6d",textColor:"#ffffff",hover:"#007afe"},action:{color:"#d0e4ff",textColor:"#0f67fe",hover:"#1d2264"},actionSecondary:{color:"#dce1e8",textColor:"#242e49",hover:"#1d2264"},menu:{unselected:"#10152C",selected:"#007afe"},card:{hover:"#8ac2ff"}},box:{shadow:"rgba(0, 0, 0, 0.2) 0px 2px 4px -1px, rgba(0, 0, 0, 0.14) 0px 4px 5px 0px, rgba(0, 0, 0, 0.12) 0px 1px 10px 0px",borderRadius:"15px"},backgrounds:{light:"#f2f5f9",medium:"#d6e9ff",dark:"#003a79",gradient:"#003a79"},borders:{light:"#c3d9fe",medium:"#b8bbc2",dark:"#0f67fe",radius:"50px"},text:{result:"#007afe",title:"#003a79",normal:"#003a79",dark:"#10152C",subTitle:"#2a2b2d",paragraph:"#646470"},footer:{logo:{src:"logo/ISP-logo.png",alt:"Intesa Sanpaolo RBM Salute - Intesa Sanpaolo Assicura"},title:{it:"Disclaimer",en:"Disclaimer"},text:{it:"Il possessore del documento riconosce consapevolmente che:\n(i) la valutazione fisica \xe8 un servizio fornito esclusivamente da Capsula S.r.l. e non sostituisce in alcuno modo l’attivit\xe0 diagnostica medico-legale\n(ii) \xe8 esclusa qualsivoglia responsabilit\xe0 a vario titolo imputabile al Gruppo Intesa Sanpaolo Vita S.p.A. e/o ad altra societ\xe0 ad esso riconducibile.",en:"The holder of the document knowingly acknowledges that:\n(i) the physical assessment is a service provided exclusively by Capsula S.r.l. and does not replace in any way the medical-legal diagnostic activity\n(ii) is excluded any liability of any kind attributable to the Intesa Sanpaolo Vita S.p.A. Group and/or to another company attributable to it."},background:"#161616"},topImage:{showBaseImage:!1,headerHeight:120,logoPosition:"top left",logo:"logo/ISP-logo.png",numberOfBreaks:7}}),l=(0,o.Z)(i,{components:{MuiButton:{styleOverrides:{root:{minWidth:0}}}},buttons:{primary:{color:"#003F72",digitalMeReportColor:"rgba(4, 39, 75, 0.5)",hover:"#0094D4",textColor:"#E2DFDB"},secondary:{color:"#151f6d",textColor:"#E2DFDB",hover:"#007afe"},action:{color:"#d0e4ff",textColor:"#0f67fe",hover:"#1d2264"},actionSecondary:{color:"#dce1e8",textColor:"#242e49",hover:"#1d2264"},menu:{unselected:"#10152C",selected:"#007afe"},card:{hover:"#8ac2ff"}},box:{shadow:"rgba(0, 0, 0, 0.2) 0px 2px 4px -1px, rgba(0, 0, 0, 0.14) 0px 4px 5px 0px, rgba(0, 0, 0, 0.12) 0px 1px 10px 0px",borderRadius:"15px"},backgrounds:{light:"#f2f5f9",medium:"#d6e9ff",dark:"#003F72",gradient:"linear-gradient(90deg, #a6d2db 0%, #f2f5f9 25%, #f2f5f9 75%, #c7e5e5 100%)"},borders:{light:"#c3d9fe",medium:"#b8bbc2",dark:"#0f67fe",radius:"50px",testCards:{physical:"#0094D4",mobile:"#FF7700"}},text:{result:"#0094D4",title:"#534C46",normal:"#72665B",dark:"#534C46",subTitle:"#72665B",paragraph:"#938880"},topImage:{headerHeight:100,logoPosition:"top right",fullWidth:!0,showBaseImage:!1,logo:"logo/mcme-logo-2.png",numberOfBreaks:7}}),r=i,s=()=>r},45403:function(e,t,n){"use strict";n.d(t,{Gg:function(){return i},k:function(){return a}}),n(83079);var o=n(12119);(0,o.$)("d3fe7c5e63d41d64f4825752a70df9892d2b59d2");var i=(0,o.$)("afdcf227cf52419ce73fb2291e91bbead1c87173"),a=(0,o.$)("15ff3d6b4063fe08572417970f2add147bac72eb");(0,o.$)("b7af7b97c091c175617f1f2b098b3d01cd0defb3")},44665:function(e,t,n){"use strict";n.d(t,{KE:function(){return u},Uv:function(){return l},Xi:function(){return i},_v:function(){return s},c3:function(){return r},uI:function(){return d},ux:function(){return c},x0:function(){return a}}),n(83079);var o=n(12119),i=(0,o.$)("0a87113ba20b99a2c7037bdddda3ce8f9117c25e"),a=(0,o.$)("f65922317d4a77f4de95eb7851ef4e71b27ab086"),l=(0,o.$)("2fa8e2023db1642b699880f0dc664a499ffc27f9"),r=(0,o.$)("b5ef231ac1e252e851b2305588539dcd12df68f2"),s=(0,o.$)("0cdd1a3c81c96dade755e488a75538005f55132f"),c=(0,o.$)("014fb648c796b3819d0c7b76dbfb85b0918f5510");(0,o.$)("6fdb41a1fcd8602ace3e70af186bb4a00b871ea6");var d=(0,o.$)("40ca03d4058c4b25c7b8ea0e02d2133d3f793f7c"),u=(0,o.$)("b1e65fa4726c5f668326ad69eedf499493dc838e")},31618:function(e,t,n){"use strict";n.d(t,{Eg:function(){return d},ZP:function(){return c},vp:function(){return u}});var o=n(2265),i=n(83337),a=n(52635),l=n(72947),r=n(3324),s=n(64684);function c(e){let t=(0,i.CG)(s.Dg),n=(0,i.CG)(a.V5),c=(0,i.CG)(l.em),d=(0,i.CG)(l.D),u=(0,i.CG)(l.Bg),p=(0,i.TL)(),f=(0,o.useCallback)((e,t)=>p(r.uP.initSurvey({checkupBundleId:e,checkupModelId:t})),[p]),m=(0,o.useCallback)(e=>e?p(r.uP.checkCurrentSurvey({checkupBundleId:e})):void 0,[p]),v=(0,o.useMemo)(()=>{var e;if(!d)return[];let o=[];return null===(e=t[d])||void 0===e||e.questionsOrder.flat().forEach(e=>{n.includes(d+"-"+e)||o.push({key:d,questionKey:e})}),o},[d,n,t]),h=(0,o.useCallback)(()=>{c<v.length-1&&p((0,l.Z$)({}))},[c,p,v.length]),b=(0,o.useCallback)(()=>{c>0&&p((0,l.Lx)({}))},[c,p]),g=(0,o.useMemo)(()=>v[null!=c?c:0],[c,v]),y=(0,o.useMemo)(()=>{if(g)return(null==g?void 0:g.key)+"-"+g.questionKey},[g]),x=(0,o.useMemo)(()=>v.length,[v.length]),k=(0,o.useMemo)(()=>["surveyPersonalDataCheck","surveySleepCheck","surveyPhysicalActivityCheck","surveyStressCheck"].filter(e=>{var t;return u&&!(null===(t=u[e])||void 0===t?void 0:t.id)}),[u]),j=!!k.length;return(0,o.useMemo)(()=>({questionsOrder:v,currentRawQuestion:g,currentRawQuestionHash:y,checkCurrentSurvey:m,initSurvey:f,nextQuestion:h,prevQuestion:b,currentQuestionIndex:c,totalQuestions:x,pendingCheckups:k,hasPendingCheckups:j}),[v,g,y,f,h,b,m,c,x,k,j])}let d=e=>{let t=(0,i.CG)(s.Dg),[n,o]=e.split("-");return t[n].questions[o]},u=e=>{var t,n,o,a;let[r,s]=e.split("-");return null===(a=(0,i.CG)(l.Bg))||void 0===a?void 0:null===(o=a[r])||void 0===o?void 0:null===(n=o.questions)||void 0===n?void 0:null===(t=n[s].answer)||void 0===t?void 0:t.value}},31602:function(e,t,n){"use strict";n.r(t);var o=n(57437),i=n(8101),a=n(63804),l=n(35389);t.default=()=>(0,o.jsxs)(a.Z,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:!0,children:[(0,o.jsx)(l.Z,{color:"inherit",size:80,style:{position:"absolute",top:"calc(50% - 40px)"}}),(0,o.jsx)(i.E,{src:"/images/favicon/capsula-60.png",alt:"capsulaLogo",width:60,height:60,style:{position:"absolute",top:"calc(50% - 30px)"}})]})},3070:function(e,t,n){"use strict";n(91361);var o=n(2265),i=n(83337),a=n(52635);t.Z=()=>{let[e,t]=(0,o.useState)(),n=(0,i.TL)();return(0,o.useEffect)(()=>{t(document.getElementsByTagName("pwa-install")[0]);let e=document.getElementsByTagName("pwa-install")[0];null==e||e.addEventListener("pwa-install-available-event",e=>{n((0,a.EL)({available:!0}))})},[n]),(0,o.useMemo)(()=>e,[e])}},61079:function(e,t,n){"use strict";n.d(t,{Ah:function(){return i},ET:function(){return a},sm:function(){return l}});let o=(0,n(1455).oM)({name:"checkupBundles",initialState:{},reducers:{createCheckupBundle:(e,t)=>{if(t.payload&&t.payload.id){var n;let o=JSON.parse(null!==(n=localStorage.getItem("old"))&&void 0!==n?n:"{}");!localStorage.getItem("alreadyLoadedOld")&&Object.keys(o).length>0&&(localStorage.setItem("alreadyLoadedOld","true"),Object.keys(o).forEach(t=>{e[t]=o[t]})),e[t.payload.id]=t.payload}},delCheckupBundle:(e,t)=>{delete e[t.payload]}}}),{createCheckupBundle:i,delCheckupBundle:a}=o.actions,l=e=>e.checkupBundles;t.ZP=o.reducer},52635:function(e,t,n){"use strict";n.d(t,{Ag:function(){return s},Dg:function(){return r},EC:function(){return f},EL:function(){return c},Jq:function(){return m},Lw:function(){return i},Mu:function(){return u},V5:function(){return p},dn:function(){return d},y:function(){return a}});let o=(0,n(1455).oM)({name:"navigation",initialState:{tab:0,surveySlidesRemoved:[]},reducers:{setCurrentTab:(e,t)=>{e.tab=t.payload},removedSurveySlide:(e,t)=>{e.surveySlidesRemoved.push(t.payload)},addedSurveySlide:(e,t)=>{e.surveySlidesRemoved=e.surveySlidesRemoved.filter(e=>e!==t.payload)},resetRemovedSurveySlides:e=>{e.surveySlidesRemoved=[]},saveSurveyReturnPoint:(e,t)=>{e.returnUrlAfterSurvey=t.payload.url,e.returnUrlAfterSurveyLabel=t.payload.label},setPwaInstallerAvailable:(e,t)=>{e.pwaInstallerAvailable=t.payload.available},setPwaInstallerDismissed:(e,t)=>{e.pwaInstallerDismissed=t.payload.dismissed},setLamiAuth:(e,t)=>{e.lamiAuth=t.payload}}}),{setCurrentTab:i,removedSurveySlide:a,resetRemovedSurveySlides:l,addedSurveySlide:r,saveSurveyReturnPoint:s,setPwaInstallerAvailable:c,setPwaInstallerDismissed:d,setLamiAuth:u}=o.actions,p=e=>e.navigation.surveySlidesRemoved,f=e=>e.navigation.pwaInstallerAvailable&&!e.navigation.pwaInstallerDismissed,m=e=>{var t;return null===(t=e.navigation.lamiAuth)||void 0===t?void 0:t.token};t.ZP=o.reducer},17626:function(e,t,n){"use strict";n.d(t,{default:function(){return j}});var o=n(57437),i=n(10260),a=n(40377),l=n(2265),r=n(68575),s=n(1455);let c=(0,s.oM)({name:"strings",initialState:{strings:{},language:{locale:"it",name:"Italiano",flag:"/images/it-flag.png"},languageVersion:{}},reducers:{setLanguage:(e,t)=>{e.language=t.payload},setStrings:(e,t)=>{e.strings=t.payload.strings},setLanguageVersion:(e,t)=>{e.languageVersion=t.payload}}}),{setLanguage:d,setStrings:u,setLanguageVersion:p}=c.actions;var f=c.reducer,m=n(61079),v=n(89378),h=n(52635),b=n(72947),g=n(64684);let y="persistedReduxState",x={};x=JSON.parse(localStorage.getItem(y)||"{}");let k=(0,s.xC)({reducer:{strings:f,checkupBundles:m.ZP,session:v.ZP,navigation:h.ZP,survey:b.ZP,surveyModel:g.ZP},preloadedState:x});k.subscribe(()=>{let e=k.getState();localStorage.setItem(y,JSON.stringify({strings:e.strings,checkupBundles:e.checkupBundles,session:e.session,navigation:e.navigation,survey:e.survey,surveyModel:e.surveyModel}))});var j=function(e){let{children:t}=e,[n,s]=(0,l.useState)((0,a.g)()),[c,d]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{d(!0),s((0,a.g)())},[]),(0,o.jsx)(r.zt,{store:k,children:c&&(0,o.jsx)(i.a,{theme:n,children:t})})}},89378:function(e,t,n){"use strict";n.d(t,{NW:function(){return i},Ov:function(){return a},Wu:function(){return l}});let o=(0,n(1455).oM)({name:"session",initialState:{checkupBundleId:void 0,age:void 0,genre:void 0,date:void 0,stationId:void 0,businessId:void 0,language:void 0},reducers:{sessionSet:(e,t)=>{if(t.payload.checkupBundleId){var n,o;e.checkupBundleId=t.payload.checkupBundleId,e.age=t.payload.age,e.genre=t.payload.genre,e.date=t.payload.date,e.stationId=t.payload.stationId,e.businessId=t.payload.businessId,e.language=null===(n=t.payload)||void 0===n?void 0:n.language,e.date8601=null===(o=t.payload)||void 0===o?void 0:o.date8601}},clearSession:(e,t)=>{e.checkupBundleId=void 0,e.age=void 0,e.genre=void 0,e.date=void 0,e.stationId=void 0,e.businessId=void 0,e.date8601=void 0}}}),{sessionSet:i,clearSession:a}=o.actions,l=e=>e.session;t.ZP=o.reducer},3324:function(e,t,n){"use strict";n.d(t,{uP:function(){return r}});var o=n(1455),i=n(44665),a=n(64684),l=n(72947);let r={initSurvey:(0,o.hg)("survey/init",async(e,t)=>{var n;let{checkupBundleId:o,checkupModelId:r}=e,{getState:s,dispatch:c}=t,d=await (0,i.ux)(o),u=await (0,i._v)(r);c((0,l.d7)(d)),u.checkupModelId||(u.checkupModelId=u.id);let p=0,f=null===(n=s().survey.lastSurveyAnswer)||void 0===n?void 0:n[r];if(f){let e=s().navigation.surveySlidesRemoved,t=u.questionsOrder[0].filter(t=>(null==u||u.questionsOrder[0][null==u?void 0:u.questionsOrder[0].findIndex(e=>e===f)],!e.includes("".concat(r,"-").concat(t)))).findIndex(e=>"".concat(r,"-").concat(e)==="".concat(r,"-").concat(f));t>-1&&(p=t)}return c((0,l.Hc)({checkupModel:u,initialQuestionIndex:p})),c((0,a.Lf)(u)),c((0,l.Si)({checkupModelId:r})),d}),checkCurrentSurvey:(0,o.hg)("survey/check",async(e,t)=>{let{checkupBundleId:n}=e,{getState:o,dispatch:a}=t,r=await (0,i.ux)(n);if(r){var s;(null===(s=o().survey.checkupBundle)||void 0===s?void 0:s.id)!==r.id&&a((0,l.lz)()),a((0,l.d7)(r))}else a((0,l.cn)())}),submitSurvey:(0,o.hg)("survey/submit",async(e,t)=>{var n,o,a;let{checkupModelId:l}=e,{getState:r,dispatch:s}=t,c=null===(a=r())||void 0===a?void 0:null===(o=a.survey)||void 0===o?void 0:null===(n=o.checkupModels)||void 0===n?void 0:n[l],d=r().survey.checkupBundle;if(d&&c)return await (0,i.Uv)(c,d.language,d.id,d.businessId)})}},64684:function(e,t,n){"use strict";n.d(t,{Dg:function(){return s},Lf:function(){return l}});var o=n(1455);let i={},a=(0,o.oM)({name:"surveyModelSlice",initialState:i,reducers:{setSurveyModel:(e,t)=>{var n;t.payload.checkupModelId||(t.payload.checkupModelId=t.payload.id),e[null!==(n=t.payload.checkupModelId)&&void 0!==n?n:t.payload.id]=t.payload},delSurveyModel:()=>i}}),{setSurveyModel:l,delSurveyModel:r}=a.actions,s=e=>e.surveyModel;t.ZP=a.reducer},23987:function(e,t,n){"use strict";n.d(t,{Cookies:function(){return r}});var o=n(57437),i=n(50341),a=n(2265);let l=e=>{let t=null!==(l=i.MW[e])&&void 0!==l?l:i.MW.en,n=document.querySelector('script[src*="https://cs.iubenda.com/cookie-solution/confs/js/'.concat(i.MW[e],'.js"')),o=document.querySelector('script[src*="https://cdn.iubenda.com/cookie_solution/iubenda_cs/"'),a=document.querySelector("#iubenda-cs-banner");window._iub&&(window._iub=null,n&&(null===(r=n.parentNode)||void 0===r||r.removeChild(n)),o&&(null===(s=o.parentNode)||void 0===s||s.removeChild(o)),a&&(null===(c=a.parentNode)||void 0===c||c.removeChild(a))),window._iub={csConfiguration:{countryDetection:!0,reloadOnConsent:!0,askConsentAtCookiePolicyUpdate:!0,perPurposeConsent:!0,lang:e,siteId:2264640,floatingPreferencesButtonDisplay:"bottom-right",consentOnContinuedBrowsing:!1,cookiePolicyId:t,banner:{acceptButtonDisplay:!0,closeButtonRejects:!0,customizeButtonDisplay:!0,rejectButtonDisplay:!0,position:"float-bottom-left"}}};var l,r,s,c,d,u=document.querySelector('script[src*="iubenda_cs.js"]');u&&(null===(d=u.parentNode)||void 0===d||d.removeChild(u));let p=document.createElement("script");p.type="text/javascript",p.src="//cdn.iubenda.com/cs/iubenda_cs.js",document.head.appendChild(p);let f=new MutationObserver(()=>{let e=document.querySelector(".iubenda-tp-btn.iubenda-cs-preferences-link");e&&(e.style.setProperty("position","fixed","important"),e.style.setProperty("bottom","65px","important"),e.style.setProperty("z-index","20","important"),f.disconnect())});f.observe(document.body,{childList:!0,subtree:!0})},r=e=>{let{language:t}=e;return(0,a.useEffect)(()=>{l(t)},[t]),(0,o.jsx)(o.Fragment,{})}},8101:function(e,t,n){"use strict";n.d(t,{E:function(){return r}});var o=n(45008),i=n(16210),a=n(33145);function l(){let e=(0,o._)(["\n  position: absolute;\n  left: 0px;\n  top: 10px;\n  opacity: 0.2;\n  filter: blur(2px);\n"]);return l=function(){return e},e}let r=(0,i.ZP)(a.default)("\n  object-fit: contain;\n");(0,i.ZP)(r)(l())},50341:function(e,t,n){"use strict";n.d(t,{MW:function(){return p},pu:function(){return v}});var o=n(45008),i=n(57437),a=n(16210),l=n(94013),r=n(62069),s=n(42268),c=n(45075),d=n(2265);function u(){let e=(0,o._)(["\n    color: white;\n    border-radius: 0px;\n    border: 1px solid white;\n    border-radius: 5px;\n    background-color: transparent;\n    width: 5rem;\n    font-size: 0.6rem;\n    &:hover {\n      background-color: transparent;\n    }\n  "]);return u=function(){return e},e}let p={it:parseInt("68976020"),en:parseInt("68776426"),de:parseInt("29912762"),el:parseInt("21084067")},f={it:"Privacy Policy",en:"Privacy Policy",de:"Datenschutzerkl\xe4rung",el:"Πολιτική απορρήτου"},m={it:"Privacy Policy",en:"Privacy Policy",de:"Cookie-Richtlinie",el:"Πολιτική cookie"},v=e=>{var t,n,o,v;let{locale:h}=e,b=(0,a.ZP)(l.Z)(u());return(0,d.useEffect)(()=>{let e=document.createElement("script");e.src="https://cdn.iubenda.com/iubenda.js",e.async=!0,document.body.appendChild(e)},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.ZP,{item:!0,gap:2,children:(0,i.jsx)(b,{variant:"contained",size:"small",startIcon:(0,i.jsx)(c.Z,{}),href:"https://www.iubenda.com/privacy-policy/".concat(null!==(t=p[h])&&void 0!==t?t:p.en),className:"iubenda-nostyle no-brand btn btn-sm btn-ghost text-secondary-content iubenda-noiframe iubenda-embed iubenda-noiframe",title:"".concat(null!==(n=f[h])&&void 0!==n?n:f.en),children:"PRIVACY"})}),(0,i.jsx)(r.ZP,{item:!0,children:(0,i.jsx)(b,{variant:"contained",size:"small",startIcon:(0,i.jsx)(s.Z,{}),href:"https://www.iubenda.com/privacy-policy/".concat(null!==(o=p[h])&&void 0!==o?o:p.en,"/cookie-policy"),className:"iubenda-nostyle no-brand btn btn-sm btn-ghost text-secondary-content iubenda-noiframe iubenda-embed iubenda-noiframe",title:"".concat(null!==(v=m[h])&&void 0!==v?v:m.en),children:"COOKIE"})})]})}},92255:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var o=n(57437),i=n(8444),a=n(58414),l=n(96207),r=n(14599),s=n(78693),c=n(94013),d=n(2265),u=n(3070),p=n(83337),f=n(52635),m=n(33145),v=n(977);let h=e=>{if(e){var t,n;e.isAppleDesktopPlatform||e.isAppleMobilePlatform?null===(t=e.showDialog)||void 0===t||t.call(e):null===(n=e.install)||void 0===n||n.call(e)}};t.default=()=>{let e=(0,u.Z)(),[t,n]=(0,d.useState)(!1),[b,g]=(0,d.useState)(null),y=(0,p.CG)(f.EC),x=(0,v.E)(),k=(0,p.TL)();(0,d.useEffect)(()=>{y&&setTimeout(()=>{n(!0),setTimeout(()=>{n(!1)},7e3)},1e4)},[y]);let j=(e,t)=>{"clickaway"!==t&&(n(!1),k((0,f.dn)({dismissed:!0})))};return y&&!(null==e?void 0:e.isUnderStandaloneMode)&&(null==e?void 0:e.isInstallAvailable)?(0,o.jsx)(i.Z,{open:t,anchorOrigin:{vertical:"top",horizontal:"center"},onTouchStart:e=>{g(e.touches[0].clientY)},onTouchMove:e=>{null!==b&&b-e.changedTouches[0].clientY>=50&&j(e)},TransitionComponent:a.Z,children:(0,o.jsx)(l.Z,{elevation:20,sx:{px:"4%",py:"3%",width:"98vw",borderRadius:"0.7rem"},children:(0,o.jsxs)(r.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[(0,o.jsxs)(r.Z,{direction:"row",gap:1,children:[(0,o.jsx)(m.default,{src:"/images/logo/capsula-logo-minimal.png",alt:"logo-capsula",width:40,height:40,style:{objectFit:"contain"}}),(0,o.jsxs)(r.Z,{children:[(0,o.jsx)(s.Z,{children:x.get("common.myCapsula.install.cta")}),(0,o.jsx)(s.Z,{sx:{color:"gray",fontSize:"0.8rem"},children:x.get("common.myCapsula.install.cta.subTitle")})]})]}),(0,o.jsx)(c.Z,{variant:"text",color:"primary",size:"small",onClick:()=>h(e),sx:{borderRadius:"0.7rem"},children:x.get("common.myCapsula.install.confirm")})]})})}):(0,o.jsx)(o.Fragment,{})}},49849:function(e,t,n){"use strict";n.d(t,{default:function(){return eo}});var o=n(57437),i=n(63476),a=n(2265),l=n(71821),r=n(59258),s=n(16210),c=n(52635),d=n(96207),u=n(15273),p=n(8350),f=n(73261),m=n(11741),v=n(53431),h=n(67051),b=n(22796),g=n(45075),y=n(42268),x=n(9033),k=n(45008),j=n(85968),C=n(10020),Z=n(93877),P=n(42187),w=n(14599),S=n(41327),I=n(19990),M=n(33145),B=n(19166),L=n(977),E=n(42586);function D(){let e=(0,k._)(["\n    /* margin: 5rem 0; */\n    width: 100%;\n  "]);return D=function(){return e},e}var A=e=>{let{onLanguageSwitched:t}=e,n=(0,i.jD)(),a=(0,E.useLocale)(),l=(0,i.tv)(),r=B.k,s=I.Mj.filter(e=>r.includes(e.locale)),c=s.find(e=>e.locale===a),d=(0,L.E)(),u=e=>{let o=s.find(t=>{if(t.locale===e)return t});c&&l.replace(n,{locale:o.locale}),null==t||t()},p=j.Z.div(D()),f=e=>{u(e)};return(0,o.jsx)(p,{children:(0,o.jsxs)(S.Z,{sx:{width:"100%"},children:[(0,o.jsx)(C.Z,{id:"demo-simple-select-label",children:d.get("common.myCapsula.setting.setLanguage")}),(0,o.jsx)(Z.Z,{labelId:"demo-simple-select-label",id:"demo-simple-select",value:null==c?void 0:c.locale,label:d.get("common.myCapsula.setting.setLanguage"),children:s.map(e=>(0,o.jsx)(P.Z,{value:e.locale,onClick:()=>{f(e.locale)},children:(0,o.jsxs)(w.Z,{direction:"row",width:"100%",gap:5,children:[(0,o.jsx)(M.default,{src:e.flag,width:23,height:23,alt:e.locale}),e.name]})},e.locale))})]})})},O=n(31691),R=n(58414),F=n(50341),T=n(3070),z=n(92255),N=n(90704);let _=(0,s.ZP)(d.Z)(e=>{let{theme:t}=e;return{width:"100vw",position:"fixed",overflow:"auto",top:0,zIndex:200}});function W(e){var t,n;let{anchor:l,open:r,onClose:s}=e,[c,d]=(0,a.useState)(!1),k=(0,T.Z)(),j=(0,i.tv)();(0,i.jD)();let C=(0,L.E)(),Z=(0,E.useLocale)();(0,O.Z)(),(0,a.useEffect)(()=>{d(r);let e=document.createElement("script");e.src="https://cdn.iubenda.com/iubenda.js",e.async=!0,document.body.appendChild(e)},[r]);let P=e=>t=>{("keydown"!==t.type||"Tab"!==t.key&&"Shift"!==t.key)&&(e||s(),d(e))};return(0,o.jsx)(R.Z,{in:c,direction:"up",mountOnEnter:!0,unmountOnExit:!0,children:(0,o.jsx)(_,{onClick:P(!1),onKeyDown:P(!1),elevation:4,children:(0,o.jsxs)(w.Z,{gap:2,sx:{width:"top"===l||"bottom"===l?"auto":250,padding:"5%",height:"calc(100vh - 57px)"},role:"presentation",onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()},children:[(0,o.jsx)(A,{onLanguageSwitched:()=>{d(!1),s()}}),(0,o.jsx)(p.Z,{}),(0,o.jsx)(u.Z,{children:(0,o.jsx)(f.ZP,{disablePadding:!0,onClick:()=>{j.push("/session"),d(!1),s()},children:(0,o.jsxs)(m.Z,{children:[(0,o.jsx)(v.Z,{children:(0,o.jsx)(N.Z,{})}),(0,o.jsx)(h.Z,{primary:C.get("common.myCapsula.sessionPage.menu")})]})},"session")}),(0,o.jsx)(p.Z,{}),(0,o.jsxs)(u.Z,{children:[(0,o.jsx)(f.ZP,{disablePadding:!0,onClick:()=>{j.push("/about"),d(!1),s()},children:(0,o.jsxs)(m.Z,{children:[(0,o.jsx)(v.Z,{children:(0,o.jsx)(b.Z,{})}),(0,o.jsx)(h.Z,{primary:"About"})]})},"about"),(0,o.jsx)(f.ZP,{disablePadding:!0,children:(0,o.jsxs)(m.Z,{component:"a",href:"https://www.iubenda.com/privacy-policy/".concat(null!==(t=F.MW[Z])&&void 0!==t?t:F.MW.en),className:"iubenda-nostyle no-brand btn btn-sm btn-ghost text-secondary-content iubenda-noiframe iubenda-embed iubenda-noiframe",title:"Privacy Policy",children:[(0,o.jsx)(v.Z,{id:"privacy-policy-button",children:(0,o.jsx)(g.Z,{id:"privacy-policy-button"})}),(0,o.jsx)(h.Z,{id:"privacy-policy-button",primary:"Privacy Policy"})]})},"privacy"),(0,o.jsx)(f.ZP,{id:"cookie-policy-button",disablePadding:!0,children:(0,o.jsxs)(m.Z,{component:"a",href:"https://www.iubenda.com/privacy-policy/".concat(null!==(n=F.MW[Z])&&void 0!==n?n:F.MW.en,"/cookie-policy"),className:"iubenda-nostyle no-brand btn btn-sm btn-ghost text-secondary-content iubenda-noiframe iubenda-embed iubenda-noiframe",title:"Cookie Policy",children:[(0,o.jsx)(v.Z,{id:"cookie-policy-button",children:(0,o.jsx)(y.Z,{id:"cookie-policy-button"})}),(0,o.jsx)(h.Z,{id:"cookie-policy-button",primary:"Cookie Policy"})]})},"cookie")]}),(0,o.jsx)(p.Z,{}),(0,o.jsx)(w.Z,{children:(0,o.jsx)(u.Z,{children:(0,o.jsx)(f.ZP,{disablePadding:!0,onClick:()=>{!(null==k?void 0:k.isUnderStandaloneMode)&&(null==k?void 0:k.isInstallAvailable)&&(0,z.s)(k)},children:(0,o.jsxs)(m.Z,{children:[(0,o.jsx)(v.Z,{children:(0,o.jsx)(x.Z,{})}),(0,o.jsx)(h.Z,{primary:C.get("common.myCapsula.install.confirm.app")})]})},"PWA")})})]})})})}var q=n(15117),$=n(61079),G=n(83337),U=n(89378),K=n(31618),V=n(45403),H=n(72947),J=n(24673),Y=n(99376);let X=e=>{let{src:t,alt:n}=e;return(0,o.jsx)(M.default,{src:t,alt:n,width:24,height:23})},Q=(0,s.ZP)(l.Z)(e=>{let{theme:t}=e;return{color:t.buttons.menu.unselected,marginLeft:-8,marginRight:-8}}),ee=(0,s.ZP)(r.Z)(e=>{let{theme:t}=e;return{backgroundColor:t.backgrounds.light,height:"100%"}}),et=(0,s.ZP)(Q)(e=>{let{theme:t}=e;return{"&.Mui-selected":{color:t.buttons.menu.selected},"&:not(.Mui-selected)":{color:t.buttons.menu.unselected},paddingBottom:"18px"}}),en=(0,s.ZP)(d.Z)(e=>{let{theme:t}=e;return{position:"fixed",bottom:0,left:0,right:0,zIndex:201,boxShadow:"5px 2px 10px 3px rgba(0,0,0,0.4)",height:"66px"}});var eo=()=>{let[e,t]=(0,a.useState)(0),n=(0,i.tv)(),l=(0,Y.useParams)(),r=(0,i.jD)(),s=(0,Y.useSearchParams)(),d=(0,G.TL)(),u=(0,G.CG)(U.Wu),{checkCurrentSurvey:p}=(0,K.ZP)(),f=(0,L.E)(),m=(0,a.useCallback)(async e=>{if(e&&"checkups"!==e&&u.checkupBundleId!==e){if(await (0,V.Gg)(e)){let o=await (0,V.k)(e);if(null==o?void 0:o.id){var t,n;let e=(0,I.YS)(o),{checkupList:i,id:a,updateDate:l,stationId:r,businessId:s,language:c}=e;d((0,$.Ah)(e)),d((0,U.NW)({checkupBundleId:a,age:null===(t=i[0])||void 0===t?void 0:t.age,genre:null===(n=i[0])||void 0===n?void 0:n.genre,date:l,stationId:r,businessId:s,language:c}))}}else d((0,H.cn)())}p(e)},[p,d,u.checkupBundleId]),v=(0,a.useCallback)(e=>s.get("id")||l.checkupBundleId||u.checkupBundleId||e,[l.checkupBundleId,s,u.checkupBundleId]),h=(e,o)=>{switch(d((0,c.Lw)(o)),o){case 1:n.push("/dashboard/".concat(v("checkups"))),b(r.split("/")[1]);break;case 2:n.push("/digitalMe/".concat(v("checkups"),"?showAnimation=true")),b(r.split("/")[1]);break;case 3:n.push("/services/".concat(v("checkups"))),b(r.split("/")[1]);break;case 4:d((0,c.Lw)(o));break;default:n.push("/?id=".concat(v(""))),b(r.split("/")[1])}t(o)},b=(0,a.useCallback)(e=>{let n;"dashboard"===e?n=1:"digitalMe"===e?n=2:"services"===e?n=3:e||(n=0),t(n),d((0,c.Lw)(n))},[d]);return(0,a.useEffect)(()=>{b(r.split("/")[1])},[r,b]),(0,a.useEffect)(()=>{m(v("checkups"))},[m,r,v]),(0,a.useEffect)(()=>{n.prefetch("/dashboard/".concat(v("checkups")),{kind:J.PrefetchKind.FULL}),n.prefetch("/digitalMe/".concat(v("checkups"),"?showAnimation=true"),{kind:J.PrefetchKind.FULL}),n.prefetch("/services/".concat(v("checkups")),{kind:J.PrefetchKind.FULL}),n.prefetch("/?id=".concat(v("")),{kind:J.PrefetchKind.FULL})},[v,n]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(en,{children:(0,o.jsxs)(ee,{showLabels:!0,value:e,children:[(0,o.jsx)(et,{label:f.get("common.myCapsula.menuLabel.home"),icon:0===e?(0,o.jsx)(X,{src:"/images/menu/selected/home.png",alt:"homeIcon"}):(0,o.jsx)(X,{src:"/images/menu/unselected/home.png",alt:"homeIcon"}),onClick:()=>{h(void 0,0)}}),(0,o.jsx)(et,{label:f.get("common.myCapsula.menuLabel.tests"),icon:1===e?(0,o.jsx)(X,{src:"/images/menu/selected/test.png",alt:"testIcon"}):(0,o.jsx)(X,{src:"/images/menu/unselected/test.png",alt:"testIcon"}),onClick:()=>{h(void 0,1)}}),(0,o.jsx)(et,{label:f.get("common.myCapsula.menuLabel.digitalMe"),icon:2===e?(0,o.jsx)(X,{src:"/images/menu/selected/digitalMe.png",alt:"digitalMeIcon"}):(0,o.jsx)(X,{src:"/images/menu/unselected/digitalMe.png",alt:"digitalMeIcon"}),onClick:()=>{h(void 0,2)}}),(0,o.jsx)(et,{label:f.get("common.myCapsula.menuLabel.services"),icon:3===e?(0,o.jsx)(X,{src:"/images/menu/selected/services.png",alt:"servicesIcon"}):(0,o.jsx)(X,{src:"/images/menu/unselected/services.png",alt:"servicesIcon"}),onClick:()=>{h(void 0,3)}}),(0,o.jsx)(et,{label:f.get("common.myCapsula.menuLabel.".concat(4===e?"close":"more")),icon:4!==e?(0,o.jsx)(X,{src:"/images/menu/unselected/other.png",alt:"otherIcon"}):(0,o.jsx)(q.Z,{fontSize:"medium"}),onClick:()=>{4===e?b(r.split("/")[1]):h(void 0,4)}})]})}),(0,o.jsx)(W,{anchor:"top",open:4===e,onClose:()=>{b(r.split("/")[1])}})]})}},24649:function(){}},function(e){e.O(0,[551,6143,3649,8569,3145,1496,2324,7668,3732,4369,3897,6128,8444,3261,138,2087,2971,2117,1744],function(){return e(e.s=27145)}),_N_E=e.O()}]);