<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&amp;&amp;(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="badea622-3abf-4814-8adf-dc97788b486c",e._sentryDebugIdIdentifier="sentry-dbid-badea622-3abf-4814-8adf-dc97788b486c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5565],{18377:function(e,n,t){"use strict";let o=(0,t(61354).Z)();n.Z=o},96752:function(e,n){"use strict";var t,o;n.c=void 0,(o=t||(t={})).FEMALE="female",o.MALE="male";class i{static parse(e){if(!d.test(e))throw Error("Not valid SSN format");let n=parseInt(e.substring(0,2),10),t=e.substring(2,4),o=e.charAt(6),i=parseInt(e.substring(4,6),10)+r.get(o),a=e.substring(7,10),l=e.substring(10,11),u=parseInt(a,10)%2?this.MALE:this.FEMALE,x=p(i,t);if(!c.get(t)||n&gt;x)throw Error("Not valid SSN");let _=parseInt(e.substring(0,6)+a,10),f=new Date(i,parseInt(t,10)-1,n,0,0,0,0),m=new Date;return{valid:l===s[_%31],sex:u,dateOfBirth:f,ageInYears:m.getFullYear()-f.getFullYear()-(h(f,m)?0:1)}}static validate(e){try{return this.parse(e).valid}catch(e){return!1}}static createWithAge(e){var n;if(e&lt;l||e&gt;u)throw Error(`Given age (${e}) is not between sensible age range of ${l} and ${u}`);let t=new Date,o=t.getFullYear()-e,i=`00${x(12)}`.substr(-2,2),c=function(e,n){let t=p(e,n);return`00${x(t)}`.substr(-2,2)}(o,i),d=x(800)+99;!h(new Date(o,Number(i)-1,Number(c)),t)&amp;&amp;(this.isLeapYear(o)&amp;&amp;"29"===c&amp;&amp;i===a&amp;&amp;(c="28"),o--);let _=[];r.forEach((e,n)=&gt;{e===100*Math.floor(o/100)&amp;&amp;_.push(n)});let f=_[Math.floor(Math.random()*_.length)],m=(n=o%=100)%100&lt;10?`0${n}`:n.toString(),g=s[parseInt(c+i+m+d,10)%31];return c+i+m+f+d+g}static isLeapYear(e){return e%4==0&amp;&amp;e%100!=0||e%400==0}}n.c=i,i.FEMALE=t.FEMALE,i.MALE=t.MALE;let r=new Map;r.set("F",2e3),r.set("E",2e3),r.set("D",2e3),r.set("C",2e3),r.set("B",2e3),r.set("A",2e3),r.set("U",1900),r.set("V",1900),r.set("W",1900),r.set("X",1900),r.set("Y",1900),r.set("-",1900),r.set("+",1800);let a="02",c=new Map;c.set("01",31),c.set("02",28),c.set("03",31),c.set("04",30),c.set("05",31),c.set("06",30),c.set("07",31),c.set("08",31),c.set("09",30),c.set("10",31),c.set("11",30),c.set("12",31);let s="0123456789ABCDEFHJKLMNPRSTUVWXY".split(""),l=1,u=200,d=/^(0[1-9]|[12]\d|3[01])(0[1-9]|1[0-2])([5-9]\d\+|\d\d[-U-Y]|[012]\d[A-F])\d{3}[\dA-Z]$/;function p(e,n){let t=c.get(n);return n===a&amp;&amp;i.isLeapYear(e)?t+1:t}function x(e){return Math.floor(Math.random()*e)+1}function h(e,n){return e.getMonth()&lt;n.getMonth()||e.getMonth()===n.getMonth()&amp;&amp;e.getDate()&lt;=n.getDate()}},21078:function(e,n,t){var o=t(62488),i=t(37285);e.exports=function e(n,t,r,a,c){var s=-1,l=n.length;for(r||(r=i),c||(c=[]);++s&lt;l;){var u=n[s];t&gt;0&amp;&amp;r(u)?t&gt;1?e(u,t-1,r,a,c):o(c,u):a||(c[c.length]=u)}return c}},69199:function(e,n,t){var o=t(89881),i=t(98612);e.exports=function(e,n){var t=-1,r=i(e)?Array(e.length):[];return o(e,function(e,o,i){r[++t]=n(e,o,i)}),r}},57406:function(e,n,t){var o=t(71811),i=t(10928),r=t(40292),a=t(40327);e.exports=function(e,n){return n=o(n,e),null==(e=r(e,n))||delete e[a(i(n))]}},60696:function(e,n,t){var o=t(68630);e.exports=function(e){return o(e)?void 0:e}},99021:function(e,n,t){var o=t(85564),i=t(45357),r=t(30061);e.exports=function(e){return r(i(e,void 0,o),e+"")}},37285:function(e,n,t){var o=t(62705),i=t(35694),r=t(1469),a=o?o.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||i(e)||!!(a&amp;&amp;e&amp;&amp;e[a])}},40292:function(e,n,t){var o=t(97786),i=t(14259);e.exports=function(e,n){return n.length&lt;2?e:o(e,i(n,0,-1))}},85564:function(e,n,t){var o=t(21078);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},68630:function(e,n,t){var o=t(44239),i=t(85924),r=t(37005),a=Object.prototype,c=Function.prototype.toString,s=a.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=o(e))return!1;var n=i(e);if(null===n)return!0;var t=s.call(n,"constructor")&amp;&amp;n.constructor;return"function"==typeof t&amp;&amp;t instanceof t&amp;&amp;c.call(t)==l}},10928:function(e){e.exports=function(e){var n=null==e?0:e.length;return n?e[n-1]:void 0}},35161:function(e,n,t){var o=t(29932),i=t(67206),r=t(69199),a=t(1469);e.exports=function(e,n){return(a(e)?o:r)(e,i(n,3))}},57557:function(e,n,t){var o=t(29932),i=t(85990),r=t(57406),a=t(71811),c=t(98363),s=t(60696),l=t(99021),u=t(46904),d=l(function(e,n){var t={};if(null==e)return t;var l=!1;n=o(n,function(n){return n=a(n,e),l||(l=n.length&gt;1),n}),c(e,u(e),t),l&amp;&amp;(t=i(t,7,s));for(var d=n.length;d--;)r(t,n[d]);return t});e.exports=d},69999:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/ajanvaraus/asiakkuus/[...mode]",function(){return t(15230)}])},97222:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var o=t(85893),i=t(60235),r=t(3514),a=t(51383);let c=(0,r.zo)("div")(e=&gt;{let{theme:n}=e;return{position:"relative",background:"url(/img/pihlajanmarjat_ylanurkka.svg) top left no-repeat",backgroundSize:"min(210px, 30vw) auto",marginBottom:n.spacing(-2),padding:"".concat(n.spacing(16)," 0"),textAlign:"center",flex:1,display:"flex",alignItems:"center","&amp;:before":{content:'""',display:"block",position:"absolute",inset:0,background:"url(/img/pihlajanmarjat_alanurkka.svg) bottom right no-repeat",backgroundSize:"min(319px, 40vw) auto",zIndex:-1}}}),s=(0,r.zo)("div")(e=&gt;{let{theme:n}=e;return{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",margin:"0 auto",padding:n.spacing(4)}});function l(e){let{title:n,buttonText:t,linkHref:r}=e;return(0,o.jsx)(c,{children:(0,o.jsxs)(s,{children:[(0,o.jsx)(a.ZT,{mb:6,variant:"h1",sx:{maxWidth:"19ch",hyphens:{xs:"auto",sm:"none"}},children:n}),(0,o.jsx)("div",{children:(0,o.jsx)(i.rU,{href:r||"/",passHref:!0,legacyBehavior:!0,children:(0,o.jsx)(a.zx,{variant:"contained",size:"large",children:t})})})]})})}},8403:function(e,n,t){"use strict";var o=t(82729),i=t(3514);function r(){let e=(0,o._)(["\n  display: flex;\n  flex-flow: row wrap;\n  flex: 1 1 100%;\n  justify-content: space-between;\n  margin: 0 auto;\n  position: relative;\n"]);return r=function(){return e},e}n.Z=(0,i.zo)("div")(r())},55026:function(e,n,t){"use strict";t.d(n,{u:function(){return i}});var o=t(85893);let i=(e,n)=&gt;t=&gt;{let i="function"==typeof n?n(t):n;return(0,o.jsx)(e,{...i,...t})}},15230:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return es},default:function(){return el}});var o,i,r=t(85893),a=t(67294),c=t(11163),s=t(51383),l=t(92729),u=t(14640),d=t(60235),p=t(30381),x=t.n(p),h=t(80129),_=t.n(h),f=t(18377),m=t(56529),g=t(99803),j=t(8403),b=t(78535);let v=()=&gt;{let e=(0,u.useTranslations)();return(0,r.jsx)(g.Z,{title:e("components.booking_search_occupational_health_care_info.title_comprehensive"),children:e("components.booking_search_occupational_health_care_info.message_comprehensive")})},y=()=&gt;{let e=(0,u.useTranslations)();return(0,r.jsx)(g.Z,{title:e("components.booking_search_occupational_health_care_info.title_by_law"),children:e("components.booking_search_occupational_health_care_info.message_by_law")})},k=()=&gt;{let e=(0,u.useTranslations)();return(0,r.jsx)(g.Z,{title:e("components.booking_result.corona_referral_title"),children:e("components.booking_result.corona_referral_text")})},w=()=&gt;{let e=(0,u.useTranslations)();return(0,r.jsx)(g.Z,{title:e("components.booking_search_occupational_health_care_info.title_special_contract"),children:e("components.booking_search_occupational_health_care_info.message_special_contract")})},A=()=&gt;{let e=(0,u.useTranslations)();return(0,r.jsx)(g.Z,{title:e("components.booking_search_occupational_health_care_info.title_online_booking_not_allowed"),children:e("components.booking_search_occupational_health_care_info.message_online_booking_not_allowed")})},I=()=&gt;{let e=(0,u.useTranslations)();return(0,r.jsx)(g.Z,{type:"warning",title:e("components.booking_search_occupational_health_care_info.title_no_contract"),children:e("components.booking_search_occupational_health_care_info.message_no_contract")})},S=e=&gt;{if(!e||e.contractNotFound)return(0,r.jsx)(I,{});let{scope:n,onlineBookingAllowed:t,onlineBookingDeniedByCode:o}=e;return o?(0,r.jsx)(A,{}):n===b.pn.COMPREHENSIVE&amp;&amp;t?(0,r.jsx)(v,{}):n===b.pn.REQUIRED_BY_LAW&amp;&amp;t?(0,r.jsx)(y,{}):(0,m.M$)(e)?(0,r.jsx)(w,{}):null};var T=e=&gt;{let{occupationalHealthContract:n}=e,t=S(n);return t&amp;&amp;(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Z,{sx:{"&amp; &gt; div":{width:"100%"}},children:t}),(null==n?void 0:n.hasCoronaReferral)&amp;&amp;(0,r.jsx)(f.Z,{my:2,children:(0,r.jsx)(k,{})})]})},C=t(22039),E=t(15112),Z=t(22378),O=t(66076),M=t(73342),z=t(83405),R=t(28246),D=t(20769),L=t(33165),B=t(51363),W=t(71601);let F=(0,B.ZP)(s.Xk)(e=&gt;{let{theme:n}=e;return{...n.typography.body2,textAlign:"center",color:n.palette.text.secondary,borderRadius:"5px",width:"100%"}});var P=e=&gt;{let{column1:n,column2:t,onSelected:o,dataId:i,disabled:a=!1,variant:c="paper",buttonIcon:l}=e;return(0,r.jsx)(s.hU,{disableRipple:!0,onClick:o,"data-testid":"quickfilter-".concat(i),sx:{width:"100%",padding:"paper"===c?1:0,..."plain"===c&amp;&amp;{"&amp;:focus &gt; .MuiPaper-root, &amp;:hover &gt; .MuiPaper-root, &amp;:active &gt; .MuiPaper-root":{backgroundColor:W.O9.grey100,borderColor:W.O9.grey310}}},disabled:a,children:(0,r.jsx)(F,{sx:{..."plain"===c&amp;&amp;{"&amp;.MuiPaper-root":{backgroundColor:"transparent",boxShadow:"none",borderBottomWidth:1,borderBottom:"1px solid",borderColor:"grey.300",borderRadius:0}}},children:(0,r.jsxs)(s.rj,{container:!0,paddingX:2,paddingY:2,direction:"row",alignItems:"center",children:[(0,r.jsxs)(s.rj,{container:!0,direction:"row",alignItems:"center",item:!0,xs:!0,children:[(0,r.jsxs)(s.rj,{container:!0,alignItems:"center",item:!0,xs:12,sm:!0,flexWrap:"nowrap",children:[(0,r.jsx)(s.xu,{marginX:1,sx:{"&amp; &gt; svg":{verticalAlign:"middle"}},children:n.icon}),(0,r.jsxs)(s.rj,{container:!0,direction:"column",item:!0,xs:!0,children:[(0,r.jsx)(s.ZT,{variant:"subtitle1",fontSize:"16px",textAlign:"left",children:n.title}),n.text&amp;&amp;(0,r.jsx)(s.ZT,{variant:"body2",textAlign:"left",whiteSpace:"break-spaces",children:n.text})]})]}),t&amp;&amp;(0,r.jsxs)(s.rj,{container:!0,alignItems:"center",item:!0,xs:12,sm:!0,padding:1,flexWrap:"nowrap",children:[(0,r.jsx)(s.xu,{marginRight:1,sx:{"&amp; &gt; svg":{verticalAlign:"middle"}},children:t.icon}),(0,r.jsx)(s.ZT,{variant:"body2",sx:{textAlign:"left",flexWrap:"wrap"},children:t.text})]})]}),!a&amp;&amp;(0,r.jsx)(s.rj,{item:!0,xs:"auto",children:(0,r.jsxs)(s.xu,{sx:{marginLeft:1},children:[void 0===l&amp;&amp;(0,r.jsx)(M.LZ,{size:32,lineWidth:"2px",color:"primary"}),l&amp;&amp;l]})})]})})})},Y=t(89428),N=t(37049),H=t(52798),q=t(7547),U=t(41609),$=t.n(U);(o=i||(i={})).KH="KH",o.SUORITE_HC="SUORITE_HC",o.PIPO="PIPO",o.KATTOH_HC="KATTOH_HC";let K=e=&gt;!$()(e)&amp;&amp;Object.values(i).includes(e);var X=t(40376);let V=e=&gt;{let{consultationReferralFilters:n,onlineBookingDenied:t,handleLinkSelected:o}=e,i=(0,u.useTranslations)(),a=(0,u.useLocale)();return 0===n.length?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.xu,{mt:3,children:(0,r.jsx)(s.ZT,{variant:"h5",textAlign:"center",children:t?i("components.booking_result.open_referrals"):i("components.booking_search_quick_booking_occupation.referral_shortcut_title")})}),t&amp;&amp;(0,r.jsx)(s.W2,{maxWidth:"sm",children:(0,r.jsx)(g.Z,{title:i("components.booking_search_occupational_health_care_info.title_referrals_by_phone"),children:i("components.booking_search_occupational_health_care_info.message_referrals_by_phone")})}),n.map((e,n)=&gt;e.practitioner||e.specialty?(0,r.jsx)(P,{column1:{icon:(0,r.jsx)(M.aA,{size:32,color:"secondary"}),title:i("components.booking_result.consultation_referral"),text:(0,N.TE)(e,a)},column2:{icon:(0,r.jsx)(M.uM,{size:24,color:"secondary"}),text:i("components.booking_result.referral_valid_until",{expirationDate:x()(e.expires).format("D.M.YYYY")})},onSelected:()=&gt;o(e,null),dataId:"consultationReferral",disabled:t},n):null)]})},G=()=&gt;{var e;let{push:n,query:t}=(0,c.useRouter)(),o=(0,u.useLocale)(),i=(0,u.useTranslations)(),{username:d,ssn:p}=(0,O.pg)(),{contract:x,isLoading:h}=(0,Z.$8)(),[_,f]=(0,a.useState)(!1),{response:g,isLoading:j}=(0,L.q$)({mode:l.AR.Occupational}),{defaults:v,isLoading:y}=(0,L.u2)({mode:l.AR.Occupational});if(y||h||j||_)return(0,r.jsx)(C.Z,{});let k=v.length&gt;0&amp;&amp;!(null==x?void 0:x.onlineBookingDeniedByCode),w=v.length&gt;0,A=K(null==x?void 0:null===(e=x.contractInfo)||void 0===e?void 0:e.contractType),I=v.find(e=&gt;e.type===Y.vA.Specialty&amp;&amp;e.id===m.Su),S=v.find(e=&gt;e.type===Y.vA.OccupationalTeamNurses),E=v.find(e=&gt;e.type===Y.vA.Appointment&amp;&amp;e.id===b.Vn.InfluenzaVaccination),B=v.filter(e=&gt;e.type===Y.vA.ConsultationReferral),W=function(){let e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{};delete t.mode,n({pathname:(0,q.yF)("/ajanvaraus/tyoterveys",o),query:{...t,...e}})},F=async()=&gt;{f(!0);try{let e=await new X.ZP(o).getOccupationalChat();e&amp;&amp;e.url?window.location.href=e.url:f(!1)}catch(e){f(!1)}},H=(e,n)=&gt;{let t={...(0,D.M$)(),search:e,location:n};W((0,R.IK)(t))};return(0,r.jsxs)(s.xu,{mt:3,maxWidth:630,width:"100%",children:[(0,r.jsx)(s.ZT,{align:"center",variant:"body2","data-testid":"username_p",children:d}),(0,r.jsx)(s.ZT,{align:"center",variant:"body2","data-testid":"ssn_p",children:"".concat((0,z.Jk)(null!=p?p:""))}),(0,r.jsxs)(s.xu,{my:2,children:[(0,r.jsx)(s.W2,{maxWidth:"sm",children:(0,r.jsx)(T,{occupationalHealthContract:x})}),k&amp;&amp;(0,r.jsxs)(s.Kq,{children:[(0,r.jsx)(s.rj,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",mt:1,children:(0,r.jsx)(s.zx,{variant:"contained",color:"primary",disabled:!w,onClick:()=&gt;W(),"data-testid":"show-times",children:i("components.booking_search_quick_booking_occupation.show_all_times")})}),(0,r.jsx)(V,{consultationReferralFilters:B,onlineBookingDenied:null==x?void 0:x.onlineBookingDeniedByCode,handleLinkSelected:H}),(0,r.jsx)(s.xu,{mt:3,children:(0,r.jsx)(s.ZT,{variant:"h5",textAlign:"center",children:i("components.booking_search_quick_booking_occupation.shortcut_title")})}),S&amp;&amp;(0,r.jsx)(P,{column1:{icon:(0,r.jsx)(M.qf,{size:32,color:"secondary"}),title:i("components.booking_result.phonetime_title"),text:i("components.occupational_links.own_nurse")},column2:{icon:(0,r.jsx)(M.k0,{size:32,color:"secondary"}),text:i("components.occupational_links.practitioner_callback")},onSelected:()=&gt;H(S,N.Hh),dataId:"callBack"}),A&amp;&amp;(0,r.jsx)(P,{column1:{icon:(0,r.jsx)(M.qf,{size:32,color:"secondary"}),title:i("components.occupational_links.chat_link_title")},column2:{icon:(0,r.jsx)(M.AT,{size:32,color:"secondary"}),text:i("components.occupational_links.chat_redirect_link")},onSelected:F,dataId:"visibaChat"}),I&amp;&amp;(0,r.jsx)(P,{column1:{icon:(0,r.jsx)(M._I,{size:32,color:"secondary"}),title:i("components.occupational_links.laboratory_booking")},column2:{icon:(0,r.jsx)(M._t,{size:32,color:"secondary"}),text:i("appointment_type_titles.normal_appointment_title")},onSelected:()=&gt;{var e;return H(I,null!==(e=g.mainOffice)&amp;&amp;void 0!==e?e:null)},dataId:"laboratory"}),S&amp;&amp;(0,r.jsx)(P,{column1:{icon:(0,r.jsx)(M.qf,{size:32,color:"secondary"}),title:i("components.occupational_links.booking_to_own_nurse"),text:i("components.occupational_links.own_nurse")},onSelected:()=&gt;H(S,null),dataId:"ownNurse"}),E&amp;&amp;(0,r.jsx)(P,{column1:{icon:(0,r.jsx)(M.qf,{size:32,color:"secondary"}),title:i("appointment_type_titles.influenza_vaccination_appointment_title")},column2:{icon:(0,r.jsx)(M._t,{size:32,color:"secondary"}),text:i("appointment_type_titles.normal_appointment_title")},onSelected:()=&gt;{var e;return H(E,null!==(e=g.mainOffice)&amp;&amp;void 0!==e?e:null)},dataId:"influenzaVaccination"})]}),(null==x?void 0:x.onlineBookingDeniedByCode)&amp;&amp;(0,r.jsx)(V,{consultationReferralFilters:B,onlineBookingDenied:x.onlineBookingDeniedByCode,handleLinkSelected:H})]})]})};var J=()=&gt;{let{query:e}=(0,c.useRouter)(),{isPrivateUserLoggedIn:n}=(0,O.pg)(),t=(0,u.useTranslations)(),{search:o,location:i}=e,a=o||i?"".concat(H.jw.booking.occupational,"?").concat(_().stringify({search:o,location:i})):H.jw.booking.clientSelection.occupational;return(0,r.jsx)(s.rj,{container:!0,justifyContent:"center",children:n?(0,r.jsx)(G,{}):(0,r.jsx)(E.Z,{path:a,messages:{loginText:t("components.booking_search_quick_booking_occupation.fill_your_info"),loginSubTitle:t("components.ident.select_identification_method")}})})},Q=t(86885),ee=t(90207),en=t(69181),et=e=&gt;{let{mode:n}=e,{query:t,push:o}=(0,c.useRouter)(),i=(0,u.useTranslations)(),[l,d]=(0,a.useState)(null),p=(0,u.useLocale)();return(0,a.useEffect)(()=&gt;{d(null)},[n]),(0,r.jsx)(s.rj,{container:!0,justifyContent:"center",children:(0,r.jsxs)(s.xu,{mt:4,children:[(0,r.jsx)(s.W2,{children:(0,r.jsx)(s.xu,{display:"flex",flexDirection:"row",children:(0,r.jsx)(s.xu,{display:"flex",children:(0,r.jsx)(s.ZT,{variant:"body1",align:"center",children:i("components.booking_preselection.title")})})})}),(0,r.jsx)(s.xu,{mt:5,children:(0,r.jsx)(s.ZT,{variant:"h6",align:"center",children:i("components.booking_preselection.location_select")})}),(0,r.jsx)(s.rj,{container:!0,justifyContent:"center",children:(0,r.jsxs)(s.xu,{mt:2,children:[(0,r.jsx)(s.xu,{maxWidth:320,m:1,children:(0,r.jsx)(Q.Z,{mode:n,location:l,onSelect:e=&gt;d(e)})}),(0,r.jsxs)(s.xu,{display:"flex",sx:{justifyContent:"initial"},children:[(0,r.jsx)(s.xu,{m:1,children:(0,r.jsx)(ee.Z,{location:l,onSelect:e=&gt;d(e),mode:n,context:"shortcut"})}),(0,r.jsx)(s.xu,{m:1,children:(0,r.jsx)(en.Z,{location:l,onSelect:e=&gt;d(e),mode:n,context:"shortcut"})})]})]})}),(0,r.jsx)(s.xu,{m:3,children:(0,r.jsx)(s.rj,{container:!0,justifyContent:"center",children:(0,r.jsx)(s.zx,{variant:"contained",color:"primary",disabled:!l,onClick:()=&gt;{let e=l?{location:"".concat(l.type,":").concat(l.id),search:null}:{};o({pathname:(0,q.yF)(H.jw.booking.private,p),query:{...t,...e}})},"data-testid":"show-times",children:i("components.booking_search_quick_booking_occupation.show_times")})})})]})})},eo=t(16746),ei=t(96012);function er(e){let{mode:n,label:t,disabled:o=!1}=e,{isMobileMode:i}=(0,eo.Gc)();return(0,r.jsx)(d.rU,{href:"".concat(H.jw.booking.clientSelection.root,"/").concat((0,ei.BP)(n)),passHref:!0,legacyBehavior:!0,prefetch:!1,children:(0,r.jsx)(s.OK,{sx:{fontSize:"14px",opacity:1,padding:i?1:2},label:t,disabled:o,tabIndex:0,"data-testid":n})})}var ea=e=&gt;{var n;let{mode:t}=e,o=(0,u.useTranslations)(),{isMobileMode:i}=(0,eo.Gc)(),{session:a}=(0,O.pg)(),c=null==a?void 0:null===(n=a.commonUser)||void 0===n?void 0:n.isLoggedIn,p=Object.values(l.AR).indexOf(t);return(0,r.jsxs)(s.xu,{children:[(0,r.jsxs)(s.W2,{maxWidth:"md",children:[(0,r.jsx)(s.xu,{p:1,children:(0,r.jsx)(d.rU,{href:"/",passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(s.xE,{children:o("components.appointment.buttons.back")})})}),(0,r.jsx)(s.xu,{mt:0,mb:2,children:(0,r.jsx)(s.ZT,{align:"center",variant:"h3",children:o("components.modes.select")})})]}),(0,r.jsx)(s.xu,{display:"flex",justifyContent:"center",m:1,children:(0,r.jsxs)(s.mQ,{value:p,indicatorColor:"primary",textColor:"primary",centered:!0,sx:{backgroundColor:W.O9.naturalWhite,["&amp; a:nth-of-type(".concat(p+1,")")]:{color:"primary.main"}},children:[(0,r.jsx)(er,{mode:l.AR.Private,label:o(i?"components.modes.private_mobile":"components.modes.private")}),(0,r.jsx)(er,{mode:l.AR.Occupational,label:o(i?"components.modes.occupational_mobile":"components.modes.occupational"),disabled:c})]})}),(0,r.jsx)(s.W2,{children:(0,r.jsx)(s.xu,{children:t===l.AR.Occupational?(0,r.jsx)(J,{}):(0,r.jsx)(et,{mode:t})})})]})},ec=t(73109),es=!0,el=e=&gt;{let{bookingStatus:n,mode:t,pageData:o}=e,i=(0,c.useRouter)(),{isCommonUserLoggedIn:s}=(0,O.pg)(),[u,d]=(0,a.useState)(!1);return(0,a.useEffect)(()=&gt;{if(s&amp;&amp;t===l.AR.Occupational){i.push("".concat(H.jw.booking.clientSelection.private));return}d(!0)},[s,t]),u?(0,r.jsx)(ec.Z,{bookingStatus:n,allowIndexing:!0,children:(0,r.jsx)(ea,{mode:t,pageData:o})}):null}},83405:function(e,n,t){"use strict";t.d(n,{Jk:function(){return r},aR:function(){return i},u9:function(){return a}});var o=t(96752);let i=e=&gt;{if(!o.c.validate(e))return!1;let n=e.indexOf("+")&gt;=0,t=o.c.parse(e).ageInYears;return!n&amp;&amp;t&gt;=0},r=e=&gt;e?e.slice(0,-4)+"x".repeat(4):"",a=e=&gt;o.c.parse(e).ageInYears&lt;18}},function(e){e.O(0,[8230,7443,4950,2888,9774,179],function(){return e(e.s=69999)}),_N_E=e.O()}]);</pre></body></html>