PageSourceSearch

https://www.rozmova.me/_next/static/chunks/6150-123d2ebd43a3c81b.js

js rozmova.me collected 2026-10-02 15:07:36 UTC 27,912 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6150],{14290:function(n,e,t){t.d(e,{Q:function(){return m}});var r=t(31549),i=t(84934),o=t(44194),l=t(43727),a=t(75894),d=t(67958);function s(){let n=(0,l._)(["\n  display: flex;\n  width: 100%;\n  gap: 8px;\n\n  input {\n    display: none;\n  }\n  @media screen and (max-width: ","px) {\n    display: grid;\n    grid-template-columns: ",";\n  }\n"]);return s=function(){return n},n}function c(){let n=(0,l._)(["\n  color: ",";\n  margin-top: 4px;\n"]);return c=function(){return n},n}function u(){let n=(0,l._)(["\n  display: flex;\n  gap: 8px;\n  justify-content: center;\n  align-items: center;\n  padding: 0 16px;\n  height: 44px;\n  background-color: ",";\n  border: 1px solid ",";\n  border-radius: 12px;\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 20px;\n  cursor: pointer;\n  input:checked + & {\n    background-color: ",";\n    border-color: ",";\n  }\n"]);return u=function(){return n},n}function p(){let n=(0,l._)(["\n  .radio-select-label {\n    margin-bottom: 8px;\n  }\n"]);return p=function(){return n},n}let f=d.ZP.div.withConfig({componentId:"sc-d8259835-0"})(s(),a.Gh,n=>{let{$columns:e}=n;return"repeat(".concat(e,",1fr)")}),h=(0,d.ZP)(i.Z).withConfig({componentId:"sc-d8259835-1"})(c(),n=>n.theme.palette.system.red),x=d.ZP.label.withConfig({componentId:"sc-d8259835-2"})(u(),n=>n.theme.palette.basics.white,n=>n.theme.palette.separator,n=>n.theme.palette.background.primary,n=>n.theme.palette.action.primary),g=d.ZP.div.withConfig({componentId:"sc-d8259835-3"})(p()),m=n=>{let{label:e,error:t,options:l,inputProps:a,value:d,equal:s,columns:c=2}=n,u=(0,o.useId)();return(0,r.jsxs)(g,{children:[e&&(0,r.jsx)(i.Z,{className:"radio-select-label",variant:"body2",fontWeight:600,children:e}),(0,r.jsx)(f,{$columns:c,children:l.map(n=>{let{value:e,label:t,icon:i}=n,o=u+e;return(0,r.jsxs)("div",{style:{flexGrow:s?1:0},children:[(0,r.jsx)("input",{...a,checked:e===d,id:o,type:"radio",value:e}),(0,r.jsxs)(x,{htmlFor:o,children:[i,t]})]},e)})}),!!t&&(0,r.jsx)(h,{variant:"description",children:t})]})}},76150:function(n,e,t){t.d(e,{K:function(){return n5}});var r=t(31549),i=t(69142),o=t(14290),l=t(64832),a=t.n(l),d=t(44194),s=t(2375),c=t(51119),u=t(99313),p=t(29298),f=t(2623),h=t(32772),x=t(43727),g=t(67958),m=t(88448);function b(){let n=(0,x._)(["\n  color: ",";\n  text-align: center;\n"]);return b=function(){return n},n}function v(){let n=(0,x._)(["\n  color: ",";\n  text-align: center;\n"]);return v=function(){return n},n}let y=(0,g.ZP)(m.Z).withConfig({componentId:"sc-76e831b6-0"})(b(),n=>{let{theme:e}=n;return e.tokens.text.secondary}),w=(0,g.ZP)(m.Z).withConfig({componentId:"sc-76e831b6-1"})(v(),n=>{let{theme:e}=n;return e.tokens.text.primary}),k=n=>{let{therapyType:e,therapyFormat:t,duration:i,timeslot:o}=n,{t:l}=(0,h.$)(),{formatDate:a,timezone:d}=(0,p.e)(),s=[t?l(t):null,e?l("therapyType.".concat(e,"Therapy")):null,i?"".concat(i," ").concat(l("min")):null].filter(Boolean).join(", "),c=o?[a(o,"D MMMM, HH:mm"),(0,f.xi)(d)].filter(Boolean).join(" "):void 0;return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(y,{variant:"caption",children:s}),c&&(0,r.jsx)(w,{variant:"body-small-medium",children:c})]})},C=n=>{let{updatePeriod:e=1e3}=n,[t,r]=(0,d.useState)(a()());return(0,d.useEffect)(()=>{let n=setInterval(()=>r(a()()),e);return()=>clearInterval(n)},[e]),{clock:t}};function j(){let n=(0,x._)(["\n  color: ",";\n  text-align: center;\n"]);return j=function(){return n},n}let _=(0,g.ZP)(m.Z).withConfig({componentId:"sc-37214afc-0"})(j(),n=>{let{theme:e}=n;return e.tokens.text.secondary}),I=(0,d.memo)(()=>{let{formatDate:n,formatTimezone:e,timezone:t}=(0,p.e)(),{clock:i}=C({updatePeriod:5e3});return(0,r.jsx)(_,{variant:"caption",children:"".concat(e(t),", ").concat(n(i,"HH:mm"))})}),Z=n=>(0,r.jsxs)("svg",{width:93,height:93,viewBox:"0 0 93 93",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,r.jsx)("path",{d:"M70.9956 75.1154C86.5083 59.6023 86.5078 34.4509 70.9947 18.9383C55.4815 3.42568 30.3302 3.42612 14.8176 18.9393C-0.695053 34.4524 -0.694614 59.6038 14.8185 75.1164C30.3317 90.629 55.483 90.6286 70.9956 75.1154Z",fill:"#767676"}),(0,r.jsx)("path",{d:"M77.1822 74.4357C92.6948 58.9226 92.6943 33.7712 77.1812 18.2586C61.668 2.746 36.5167 2.74643 21.0041 18.2596C5.49147 33.7727 5.49191 58.9241 21.0051 74.4367C36.5182 89.9493 61.6696 89.9489 77.1822 74.4357Z",fill:"#ADADAD"}),(0,r.jsx)("path",{d:"M81.7167 44.6471C82.7508 54.0304 79.9388 62.95 74.536 69.8356C69.0433 75.7733 61.4613 79.8383 52.7858 80.7905C33.6885 82.8863 16.5025 69.1342 14.4024 50.076C13.366 40.6715 16.197 31.7282 21.6275 24.8322C21.6365 24.8197 21.6474 24.8087 21.66 24.7997C27.143 18.9061 34.6934 14.8809 43.3333 13.9326C62.4309 11.8371 79.6166 25.5892 81.7167 44.6471Z",fill:"#FDFDFD"}),(0,r.jsx)("path",{d:"M48.4168 47.5901C48.2439 47.5899 48.0772 47.5233 47.9484 47.403C47.8197 47.2826 47.7379 47.117 47.7189 46.9378L46.2327 32.8414C46.2226 32.7458 46.2307 32.649 46.2565 32.5567C46.2822 32.4643 46.3252 32.3781 46.3829 32.3031C46.4406 32.228 46.5119 32.1656 46.5927 32.1193C46.6736 32.073 46.7624 32.0437 46.854 32.0332C46.9457 32.0227 47.0385 32.0311 47.127 32.058C47.2156 32.0848 47.2982 32.1296 47.3702 32.1898C47.4421 32.25 47.502 32.3244 47.5464 32.4087C47.5908 32.493 47.6188 32.5856 47.6289 32.6812L49.0381 46.0496L63.7568 44.3616C63.8486 44.3506 63.9415 44.3587 64.0302 44.3854C64.1189 44.4121 64.2017 44.4569 64.2738 44.5171C64.3458 44.5774 64.4057 44.6519 64.45 44.7365C64.4943 44.821 64.522 44.9138 64.5317 45.0096C64.5418 45.1052 64.5338 45.202 64.508 45.2944C64.4823 45.3868 64.4393 45.4729 64.3816 45.548C64.3239 45.623 64.2526 45.6855 64.1717 45.7318C64.0909 45.7781 64.0021 45.8073 63.9104 45.8178L48.4935 47.5861C48.468 47.5887 48.4424 47.59 48.4168 47.5901Z",fill:"#828282"})]});function P(){let n=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 10px;\n  width: 100%;\n  padding: 20px 16px;\n  border-radius: 12px;\n  background: ",";\n"]);return P=function(){return n},n}function M(){let n=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 8px;\n"]);return M=function(){return n},n}let S=g.ZP.div.withConfig({componentId:"sc-b10b6278-0"})(P(),n=>{let{theme:e}=n;return e.tokens.background.primary}),F=g.ZP.div.withConfig({componentId:"sc-b10b6278-1"})(M()),z=n=>{let{title:e,description:t,action:i,withIllustration:o=!0}=n,{t:l}=(0,h.$)();return(0,r.jsxs)(S,{children:[o?(0,r.jsx)(Z,{}):null,(0,r.jsx)(F,{children:e||t?(0,r.jsxs)(r.Fragment,{children:[e?(0,r.jsx)(m.Z,{variant:"body-small",textAlign:"center",children:e}):null,t?(0,r.jsx)(m.Z,{variant:"body-small",textAlign:"center",children:t}):null]}):(0,r.jsx)(m.Z,{variant:"body-small",textAlign:"center",children:l("noTime")}
1)}),i]})};var D=t(11826),L=t.n(D),R=t(91307),T=t.n(R);a().extend(T()),a().extend(L());let $=["morning","afternoon","evening"],E=n=>[...n].sort((n,e)=>a()(n.date).valueOf()-a()(e.date).valueOf()),Y=(n,e)=>{let t;return E(n).filter(n=>{let r=a()(n.date).tz(e);return(null==t||!t.isSame(r,"day"))&&(t=r,!0)}).map(n=>a()(n.date).tz(e))},G=(n,e,t,r)=>{if(!n.length)return[];let i=[...n];return r&&!i.some(n=>{let{date:e}=n;return e===r})&&i.push({date:r,therapyFormat:i[0].therapyFormat,fake:!0,nearestFake:!0}),i.filter(n=>a()(n.date).tz(t).isSame(e,"day")).sort((n,e)=>n.date.localeCompare(e.date))},H=(n,e)=>{let t=E(n),r=[],i=0;for(;i<t.length;){let n=t[i].date,o=a()(n).tz(e).startOf("day").add(14,"day"),l=t.slice(i).filter(n=>a()(n.date).isBefore(o));r.push(l),i+=l.length}return r},N=(n,e)=>{let t=a()(n.date).tz(e).hour();return t<12?"morning":t<=17?"afternoon":"evening"},O=(n,e)=>{let t={morning:[],afternoon:[],evening:[]};for(let r of n)t[N(r,e)].push(r);return $.map(n=>({timeOfDay:n,slots:t[n]})).filter(n=>{let{slots:e}=n;return e.length>0})};var A=t(36497);function B(){let n=(0,x._)(["\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  margin: 0;\n  opacity: 0;\n  pointer-events: none;\n"]);return B=function(){return n},n}function U(){let n=(0,x._)(["\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 68px;\n  height: 44px;\n  border-radius: 12px;\n  background-color: ",";\n  color: ",";\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 20px;\n  cursor: pointer;\n  transition:\n    background-color 0.15s ease,\n    color 0.15s ease;\n\n  &:hover {\n    background-color: ",";\n  }\n\n  ",":checked + & {\n    background-color: ",";\n    color: ",";\n\n    &:hover {\n      background-color: ",";\n    }\n  }\n\n  ",":focus-visible + & {\n    box-shadow: inset 0 0 0 2px ",";\n  }\n\n  ",":disabled + & {\n    background-color: ",";\n    color: ",";\n    cursor: default;\n  }\n\n  @media screen and (max-width: ","px) {\n    width: auto;\n  }\n"]);return U=function(){return n},n}let Q=g.ZP.input.withConfig({componentId:"sc-5a34e397-0"})(B()),W=g.ZP.label.withConfig({componentId:"sc-5a34e397-1"})(U(),n=>{let{theme:e}=n;return e.tokens.background.brand.secondary},n=>{let{theme:e}=n;return e.tokens.text.tertiary},n=>{let{theme:e}=n;return e.tokens.background.brand.muted},Q,n=>{let{theme:e}=n;return e.tokens.background.brand.primary},n=>{let{theme:e}=n;return e.tokens.text.inverse},n=>{let{theme:e}=n;return e.tokens.background.brand.hover},Q,n=>{let{theme:e}=n;return e.tokens.border.brand.primary},Q,n=>{let{theme:e}=n;return e.tokens.background.secondary},n=>{let{theme:e}=n;return e.tokens.text.disabled},A.G),q=n=>{let{id:e,name:t,value:i,label:o,checked:l,disabled:a,onSelect:d,children:s,isNearestFake:c}=n;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q,{id:e,name:t,type:"radio",value:i,checked:l,disabled:a,onChange:n=>d(n.target.value)}),(0,r.jsxs)(W,{htmlFor:e,"data-nearest-fake":c?"":void 0,children:[s,o]})]})};function V(){let n=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n"]);return V=function(){return n},n}function K(){let n=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n"]);return K=function(){return n},n}function J(){let n=(0,x._)(["\n  color: ",";\n"]);return J=function(){return n},n}function X(){let n=(0,x._)(["\n  display: flex;\n  flex-wrap: wrap;\n  gap: 10px;\n\n  @media screen and (max-width: ","px) {\n    display: grid;\n    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));\n  }\n"]);return X=function(){return n},n}function nn(){let n=(0,x._)(["\n  0% { opacity: 0; visibility: hidden; }\n  50% { opacity: 1; visibility: visible; }\n  100% { opacity: 0; visibility: hidden; }\n"]);return nn=function(){return n},n}function ne(){let n=(0,x._)(["\n  position: absolute;\n  z-index: 1;\n  bottom: -58px;\n  padding: 8px;\n  border-radius: 8px;\n  background-color: ",";\n  color: ",";\n  font-size: 12px;\n  line-height: 18px;\n  text-align: center;\n  opacity: 0;\n  animation: ",' 3s forwards 3s;\n\n  &:before {\n    position: absolute;\n    content: "";\n    bottom: 97%;\n    left: calc(50% - 4px);\n    border-bottom: 4px solid transparent;
1\n    border-top: 4px solid transparent;\n    border-right: 6px solid ',";\n    transform: rotate(90deg);\n  }\n"]);return ne=function(){return n},n}let nt=g.ZP.div.withConfig({componentId:"sc-524c04b2-0"})(V()),nr=g.ZP.div.withConfig({componentId:"sc-524c04b2-1"})(K()),ni=(0,g.ZP)(m.Z).withConfig({componentId:"sc-524c04b2-2"})(J(),n=>{let{theme:e}=n;return e.tokens.text.secondary}),no=g.ZP.div.withConfig({componentId:"sc-524c04b2-3"})(X(),A.G),nl=(0,g.F4)(nn()),na=g.ZP.div.withConfig({componentId:"sc-524c04b2-4"})(ne(),n=>{let{theme:e}=n;return e.tokens.background.contrast},n=>{let{theme:e}=n;return e.tokens.text.inverse},nl,n=>{let{theme:e}=n;return e.tokens.background.contrast}),nd=n=>{let{timeslots:e,selectedTimeslot:t,onSelect:i,bookedSlotLabel:o,onNearestFakeView:l}=n,{t:a}=(0,h.$)(),{formatDate:s,timezone:c}=(0,p.e)(),u=(0,d.useId)(),f=(0,d.useMemo)(()=>O(e,c),[e,c]),x=(0,d.useRef)(null),g=(0,d.useRef)(!1),m=(0,d.useMemo)(()=>{var n;return null===(n=e.find(n=>{let{nearestFake:e}=n;return e}))||void 0===n?void 0:n.date},[e]);return(0,d.useEffect)(()=>{var n;if(!m||!l||g.current)return;let e=null===(n=x.current)||void 0===n?void 0:n.querySelector("[data-nearest-fake]");if(!e)return;let t=new IntersectionObserver(n=>{let[e]=n;e.isIntersecting&&!g.current&&(g.current=!0,l(m),t.disconnect())},{threshold:.1});return t.observe(e),()=>t.disconnect()},[m,l]),(0,r.jsx)(nt,{ref:x,children:f.map(n=>{let{timeOfDay:e,slots:l}=n;return(0,r.jsxs)(nr,{children:[(0,r.jsx)(ni,{variant:"label-uppercase-small",children:a("timeOfDay.".concat(e))}),(0,r.jsx)(no,{children:l.map(n=>{let{date:e,fake:l,nearestFake:a}=n;return(0,r.jsx)(q,{id:e+u,name:u,value:e,label:s(e,"HH:mm"),checked:e===t,disabled:l,onSelect:i,isNearestFake:a,children:l&&o?(0,r.jsx)(na,{onClick:n=>n.stopPropagation(),children:o}):null},e)})})]},e)})})};var ns=t(50718),nc=t(42509);let nu=n=>{let{size:e=24,color:t,title:i,titleId:o,style:l,...a}=n,d={width:e,height:e,"aria-hidden":!i||void 0,style:t?{color:t,...l}:l,...a};return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":o,...d,children:[i?(0,r.jsx)("title",{id:o,children:i}):null,(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6364 6.26361C15.9879 6.61508 15.9879 7.18493 15.6364 7.5364L11.1728 12L15.6364 16.4636C15.9879 16.8151 15.9879 17.3849 15.6364 17.7364C15.2849 18.0879 14.7151 18.0879 14.3636 17.7364L9.2636 12.6364C8.91213 12.2849 8.91213 11.715 9.26361 11.3636L14.3636 6.2636C14.7151 5.91213 15.2849 5.91213 15.6364 6.26361Z",fill:"currentColor"})]})},np=n=>{let{size:e=24,color:t,title:i,titleId:o,style:l,...a}=n,d={width:e,height:e,"aria-hidden":!i||void 0,style:t?{color:t,...l}:l,...a};return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":o,...d,children:[i?(0,r.jsx)("title",{id:o,children:i}):null,(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.26363 6.26361C8.91215 6.61508 8.91216 7.18493 9.26363 7.5364L13.7272 12L9.26363 16.4636C8.91215 16.8151 8.91216 17.3849 9.26363 17.7364C9.6151 18.0879 10.185 18.0879 10.5364 17.7364L15.6364 12.6364C15.9879 12.2849 15.9879 11.715 15.6364 11.3636L10.5364 6.2636C10.1849 5.91213 9.6151 5.91213 9.26363 6.26361Z",fill:"currentColor"})]})};function nf(){let n=(0,x._)(["\n  display: grid;\n  grid-template-columns: 16px 1fr 16px;\n  align-items: center;\n\n  .swiper {\n    max-width: 100%;\n    width: 100%;\n  }\n"]);return nf=function(){return n},n}function nh(){let n=(0,x._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-shrink: 0;\n  transition: opacity 0.15s ease;\n"]);return nh=function(){return n},n}function nx(){let n=(0,x._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0;\n  border: none;\n  background: none;\n  cursor: pointer;\n\n  &:disabled {\n    cursor: default;\n  }\n\n  svg {\n    width: 16px;\n    height: 24px;\n    color: ",";\n  }\n"]);return nx=function(){return n},n}function ng(){let n=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 6px;\n  width: 100%;\n  height: 48px;\n  padding: 0;\n  border: none;\n  background: none;\n  cursor: pointer;\n  text-wrap: nowrap;\n  border-bottom: 2px solid\n    ",";\n  color: ",";\n  opacity: ",";\n\n  &:hover {\n    border-bottom-color: ",";\n  }\n"]);return ng=function(){return n},n}function nm(){let n=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  flex: 1;\n  align-items: center;\n  justify-content: center;\n  gap: 0;\n  padding: 11px 8px;\n  font-size: 14px;\n  line-height: 20px;\n  text-align: center;\n"]);return nm=function(){return n},n}function nb(){let n=(0,x._)(["\n  font-weight: 600;\n"]);return nb=function(){return n},n}function nv(){let n=(0,x._)(["\n  font-weight: 500;\n"]);return nv=function(){return n},n}let ny=g.ZP.div.withConfig({componentId:"sc-af4eff10-0"})(nf()),nw=g.ZP.div.withConfig({componentId:"sc-af4eff10-1"})(nh()),nk=g.ZP.button.withConfig({componentId:"sc-af4eff10-2"})(nx(),n=>{let{theme:e}=n;return e.tokens.icon.brand.primary}),nC=g.ZP.button.withConfig({componentId:"sc-af4eff10-3"})(ng(),n=>{let{theme:e,$selected:t}=n;return t?e.tokens.border.brand.primary:e.tokens.border.disabled},n=>{let{theme:e,$selected:t}=n;return t?e.tokens.text.primary:e.tokens.text.secondary},n=>{let{$selected:e}=n;return e?1:.7},n=>{let{theme:e}=n;return e.tokens.border.brand.hover}),nj=g.ZP.span.withConfig({componentId:"sc-af4eff10-4"})(nm()),n_=g.ZP.span.withConfig({componentId:"sc-af4eff10-5"}
1)(nb()),nI=g.ZP.span.withConfig({componentId:"sc-af4eff10-6"})(nv());t(11250),a().extend(T()),a().extend(L());let nZ=n=>{let{days:e,selectedDay:t,onChange:i,slidesCount:o,dateFormat:l}=n,s=(0,d.useRef)(null),[c,u]=(0,d.useState)(!0),[f,x]=(0,d.useState)(!0),g=(0,d.useCallback)(()=>{var n;let e=null===(n=s.current)||void 0===n?void 0:n.swiper;e&&(x(e.isBeginning),u(e.isEnd))},[]),m=()=>{var n;return null===(n=s.current)||void 0===n?void 0:n.swiper.slideNext()},b=()=>{var n;return null===(n=s.current)||void 0===n?void 0:n.swiper.slidePrev()};(0,d.useEffect)(()=>{g()},[g,e,o]);let{formatDate:v,timezone:y}=(0,p.e)(),{t:w}=(0,h.$)(),k=n=>{let e=a()().tz(y).startOf("day");return n.isSame(e,"day")?w("today"):n.isSame(e.add(1,"day"),"day")?w("tomorrow"):(0,ns.f)(v(n,"dddd"))};return(0,r.jsxs)(ny,{children:[(0,r.jsx)(nw,{style:{opacity:f?0:1},children:(0,r.jsx)(nk,{type:"button",onClick:b,disabled:f,"aria-label":w("previousDays"),children:(0,r.jsx)(nu,{})})}),(0,r.jsx)(nc.tq,{ref:s,slidesPerView:o,slidesPerGroup:o,onSwiper:g,onSlideChange:g,onResize:g,onUpdate:g,children:e.map((n,e)=>(0,r.jsx)(nc.o5,{children:(0,r.jsx)(nC,{type:"button",$selected:t?n.isSame(t,"day"):0===e,onClick:()=>i(n,e),children:(0,r.jsxs)(nj,{children:[(0,r.jsx)(n_,{children:k(n)}),(0,r.jsx)(nI,{children:v(n,l)})]})})},n.toString()))}),(0,r.jsx)(nw,{style:{opacity:c?0:1},children:(0,r.jsx)(nk,{type:"button",onClick:m,disabled:c,"aria-label":w("nextDays"),children:(0,r.jsx)(np,{})})})]})};function nP(){let n=(0,x._)(["\n  display: grid;\n  grid-template-columns: ",";\n  gap: 8px;\n"]);return nP=function(){return n},n}function nM(){let n=(0,x._)(["\n  padding: 6px 4px;\n  border-radius: 8px;\n  border: 1px solid\n    ",";\n  background-color: ",";\n  color: ",";\n  opacity: ",";\n  font-size: 12px;\n  font-weight: 500;\n  line-height: 16px;\n  text-align: center;\n  cursor: pointer;\n"]);return nM=function(){return n},n}let nS=n=>n<=2?110:3===n?105:69,nF=g.ZP.div.withConfig({componentId:"sc-4372839e-0"})(nP(),n=>{let{$count:e}=n;return"repeat(auto-fill, minmax(".concat(nS(e),"px, 1fr))")}),nz=g.ZP.button.withConfig({componentId:"sc-4372839e-1"})(nM(),n=>{let{$active:e,theme:t}=n;return e?t.tokens.border.tertiary:t.tokens.border.disabled},n=>{let{$active:e,theme:t}=n;return e?t.tokens.background.default:"transparent"},n=>{let{$active:e,theme:t}=n;return e?t.tokens.text.primary:t.tokens.text.tertiary},n=>{let{$active:e}=n;return e?1:.7}),nD=n=>{let{timeslotsRanges:e,rangeIndex:t,onChangeRangeIndex:i}=n,{formatDate:o}=(0,p.e)();return(0,r.jsx)(nF,{$count:e.length,children:e.map((n,e)=>{let l=o(n[0].date,"D MMM"),a=o(n[n.length-1].date,"D MMM");return(0,r.jsxs)(nz,{type:"button",$active:t===e,onClick:()=>i(e),children:[l," - ",a]},l)})})};function nL(){let n=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  max-width: 100%;\n  width: 100%;\n\n  ","\n\n  ","\n\n  @media screen and (max-width: ","px) {\n    gap: 10px;\n\n    ","\n  }\n"]);return nL=function(){return n},n}function nR(){let n=(0,x._)(["\n  display: flex;\n  width: 100%;\n\n  ","\n"]);return nR=function(){return n},n}function nT(){let n=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n"]);return nT=function(){return n},n}function n$(){let n=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n  padding-bottom: 4px;\n\n  ","\n"]);return n$=function(){return n},n}function nE(){let n=(0,x._)(["\n  display: flex;\n  flex: 1 1 auto;\n  flex-direction: column;\n  justify-content: center;\n"]);return nE=function(){return n},n}function nY(){let n=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n  padding-top: 8px;\n\n  ",", "," {\n    text-align: left;\n  }\n\n  @media screen and (max-width: ","px) {\n    ",", "," {\n      text-align: center;\n    }\n  }\n"]);return nY=function(){return n},n}let nG=g.ZP.div.withConfig({componentId:"sc-3831aaf4-0"})(nL(),n=>{let{$fillHeight:e}=n;return e&&"\n    /* Grows into the free space, never shrinks below the slots it holds. */\n    flex: 1 0 auto;\n  "},n=>{let{$withWrapper:e,theme:t}=n;return e&&"\n    border-radius: 16px;\n    border: 1px solid ".concat(t.tokens.border.disabled,";\n    background: ").concat(t.tokens.background.default,";\n    padding: 16px;\n  ")},A.G,n=>{let{$withWrapper:e}=n;return e&&"\n      border-radius: 12px;\n      padding: 16px;\n    "}),nH=g.ZP.div.withConfig({componentId:"sc-3831aaf4-1"})(nR(),n=>{let{$fillHeight:e}=n;return e&&"\n    flex: 1 1 auto;\n    min-height: 0;\n  "}),nN=g.ZP.div.withConfig({componentId:"sc-3831aaf4-2"})(nT()),nO=g.ZP.div.withConfig({componentId:"sc-3831aaf4-3"})(n$(),n=>{let{$sticky:e,theme:t}=n;return e&&"\n    position: sticky;\n    top: 0;\n    z-index: 1;\n    background: ".concat(t.tokens.background.default,";\n  ")}),nA=g.ZP.div.withConfig({componentId:"sc-3831aaf4-4"})(nE()),nB=g.ZP.div.withConfig({componentId:"sc-3831aaf4-5"})(nY(),y,w,A.G,y,w),nU=(0,d.memo)((0,d.forwardRef)((n,e)=>{let{timeslots:t,isLoading:i,title:o,withWrapper:l=!0,formatSwitcher:f,serviceInfo:h,renderSubmit:x,emptyState:g,bookedSlotLabel:b,withRanges:v=!0,stickyHeader:y=!1,fillHeight:w=!1,forceMobile:C,defaultTimeslot:j,nearestTimeslot:_,onCh
1angeTimeslot:Z,onClick:P,analytics:M}=n,{isMobile:S}=(0,c.d)(),{trackEvent:F}=(0,u.z)(),{timezone:D}=(0,p.e)(),[L,R]=(0,d.useState)(0),[T,$]=(0,d.useState)(),E=(0,d.useMemo)(()=>H(t,D),[t,D]),N=(0,d.useMemo)(()=>v?E[L]||[]:t,[v,t,E,L]),O=(0,d.useMemo)(()=>Y(N,D),[N,D]),[A,B]=(0,d.useState)(O[0]),U=A&&O.some(n=>n.isSame(A,"day"))?A:O[0];(0,d.useEffect)(()=>{let n=Y(N,D);B(e=>e&&n.some(n=>n.isSame(e,"day"))?e:n[0]),T&&!N.some(n=>{let{date:e}=n;return e===T})&&($(void 0),null==Z||Z(void 0))},[N,D,T,Z]);let Q=(0,d.useMemo)(()=>U?G(N,U,D,_):[],[N,U,D,_]),W=(0,d.useRef)(null),q=(0,d.useRef)(!1),V=(0,d.useCallback)(n=>{W.current=n,"function"==typeof e?e(n):e&&(e.current=n)},[e]);(0,d.useEffect)(()=>{let n=W.current;if(!n||i||!M||q.current)return;let e=new IntersectionObserver(n=>{let[r]=n;if(r.isIntersecting&&!q.current){var i,o;q.current=!0,F("calendar_view",{nearest_slot:null!==(o=null===(i=t[0])||void 0===i?void 0:i.date)&&void 0!==o?o:null,therapist_id:String(M.therapistId),page_type:M.pageType||"",user_type:M.userType||"potential",therapy_format:M.therapyFormat,therapy_type:M.therapyType,is_therapist_visible:!M.therapistIsHidden,currency:M.currency,price:M.price,empty_state:!t.length}),e.disconnect()}},{threshold:.1});return e.observe(n),()=>e.disconnect()},[i,t,M,F]);let K=(0,d.useCallback)(n=>{F("nearest_time_fomo",{date_and_time:n,page_type:(null==M?void 0:M.pageType)||""})},[F,null==M?void 0:M.pageType]),J=n=>{n&&M&&F("timeslot_click",{therapist_id:String(M.therapistId),time:n}),$(n),null==Z||Z(n)},X=n=>{M&&F("date_click",{therapist_id:String(M.therapistId),date:n.format("YYYY-MM-DD")}),B(n),J()},nn=n=>{if(M){let e=E[n],t=(null==e?void 0:e.length)?"".concat(a()(e[0].date).format("YYYY-MM-DD")," - ").concat(a()(e[e.length-1].date).format("YYYY-MM-DD")):"";F("week_click",{therapist_id:String(M.therapistId),week_range:t})}R(n)},ne=(0,d.useRef)();return((0,d.useEffect)(()=>{if(j&&ne.current!==j&&t.some(n=>{let{date:e}=n;return e===j})){if(ne.current=j,v){let n=E.findIndex(n=>n.some(n=>{let{date:e}=n;return e===j}));n>=0&&R(n)}$(j),B(a()(j).tz(D)),null==Z||Z(j)}},[j,t,E,v,D,Z]),i)?(0,r.jsx)(nH,{ref:V,$fillHeight:w,children:(0,r.jsx)(s.Z,{height:w?"100%":260,containerClassName:"rls-flex-1"})}):(0,r.jsxs)(nG,{ref:V,id:"timeslots-element",onClick:P,$withWrapper:l,$fillHeight:w,children:[o?(0,r.jsx)(nN,{children:(0,r.jsx)(m.Z,{variant:"h4",children:o})}):null,f,O.length?(0,r.jsxs)(nO,{$sticky:y,children:[v&&E.length>1?(0,r.jsx)(nD,{timeslotsRanges:E,rangeIndex:L,onChangeRangeIndex:nn}):null,(0,r.jsx)(nZ,{days:O,selectedDay:U,onChange:X,slidesCount:C||S?3:4,dateFormat:"D MMM"}),Q.length?(0,r.jsx)(I,{}):null]}):null,Q.length?(0,r.jsx)(nd,{timeslots:Q,selectedTimeslot:T,onSelect:J,bookedSlotLabel:b,onNearestFakeView:M?K:void 0}):(0,r.jsx)(nA,{children:(0,r.jsx)(z,{...g})}),h||x?(0,r.jsxs)(nB,{children:[h?(0,r.jsx)(k,{...h,timeslot:T}):null,null==x?void 0:x(T)]}):null]})}));var nQ=t(55655),nW=t(55406),nq=t(13888),nV=t(23665),nK=t(86243),nJ=t.n(nK);let nX=(0,r.jsx)(nJ(),{src:"/images/online.png",alt:"online-format",width:24,height:24}),n0=(0,r.jsx)(nJ(),{src:"/images/offline.png",alt:"offline-format",width:24,height:24}),n1=(n,e)=>n.map(n=>({value:n,label:e("therapyFormat.".concat(n)),icon:n===nV.zc.OFFLINE?n0:nX}));var n4=t(75894);function n6(){let n=(0,x._)(["\n  width: fit-content;\n  display: flex;\n  gap: 8px;\n  justify-content: center;\n  align-items: center;\n  padding: 0 16px;\n  height: 44px;\n  background-color: ",";\n  border: 1px solid ",";\n  color: ",";\n  border-radius: 12px;\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 20px;\n  @media screen and (max-width: ","px) {\n    width: 100%;\n  }\n"]);return n6=function(){return n},n}function n3(){let n=(0,x._)(["\n  .arrange-btn {\n    display: block;\n    font-size: 16px;\n    font-weight: 600;\n    line-height: 100%;\n    width: 100%;\n    @media screen and (min-width: ","px) {\n      width: 266px;\n    }\n  }\n"]);return n3=function(){return n},n}let n2=g.ZP.div.withConfig({componentId:"sc-6390101f-0"})(n6(),n=>{let{theme:e}=n;return e.tokens.background.default},n=>{let{theme:e}=n;return e.tokens.border.disabled},n=>{let{theme:e}=n;return e.tokens.text.secondary},n4.Gh),n8=g.ZP.div.withConfig({componentId:"sc-6390101f-1"})(n3(),n4.Gh),n5=(0,d.forwardRef)((n,e)=>{var t,l,a;let{timeslots:s,therapyType:c,formats:u,onArrange:p,onChangeTimeslot:f,forcedTherapyFormat:h,onChangeFormat:x,therapistId:g,pageType:m,isTimeslotsLoading:b,sessionPrice:v,services:y,therapistIsHidden:w,hideSummary:k}=n,{t:C}=(0,nq.$)(),j=(0,nW.U)(),_=(0,d.useMemo)(()=>n1(u,C),[C,u]),[I,Z]=(0,d.useState)(h||_[0].value);(0,d.useEffect)(()=>{Z(h||_[0].value)},[h,_]),(0,d.useEffect)(()=>{null==x||x(I)},[I]);let P=(0,d.useMemo)(()=>s.filter(n=>(0,nQ.Qs)(n,I)),[s,I]),M=(0,d.useMemo)(()=>{var n;return null===(n=null==y?void 0:y.find(n=>n.therapyType===c))||void 0===n?void 0:n.duration},[y,c]),S=h?null:(0,r.jsxs)(r.Fragment,{children:[_.length>
11&&(0,r.jsx)(o.Q,{options:_,inputProps:{onChange:n=>Z(n.target.value)},value:I}),1===_.length&&(0,r.jsxs)(n2,{children:[_[0].icon," ",C("booking.therapistWorkOnly")," ",C("sessionInfo.".concat(_[0].value)).toLowerCase()]})]});return(0,r.jsx)(nU,{ref:e,timeslots:P,isLoading:b,title:C("preferredTime"),formatSwitcher:S,serviceInfo:k?void 0:{therapyFormat:I,therapyType:c,duration:M},onChangeTimeslot:n=>null==f?void 0:f(n,I),emptyState:{description:C("noTimeAvailable")},renderSubmit:p?n=>(0,r.jsx)(n8,{children:(0,r.jsx)(i.k,{variant:"filled",size:"large",className:"arrange-btn desktop",onClick:()=>p(n,I),disabled:!n,children:n?C("buttons.book"):C("validation.selectTimeslot")})}):void 0,analytics:{therapistId:g||"",therapyFormat:I,therapyType:c,pageType:m,userType:"potential",therapistIsHidden:w,currency:j.id.toUpperCase(),price:null!==(a=null!=v?v:null==y?void 0:null===(t=y[0])||void 0===t?void 0:null===(l=t.prices)||void 0===l?void 0:l[j.id])&&void 0!==a?a:0}})})},50718:function(n,e,t){t.d(e,{f:function(){return r}});let r=n=>n?n.charAt(0).toUpperCase()+n.slice(1):""}}]);

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.