PageSourceSearch

https://rethinktattoo.com/_next/static/chunks/2447-a5bff1a4b56e25d4.js

js rethinktattoo.com collected 2026-10-10 00:53:44 UTC 75,342 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2447],{1782:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(63249);function l(e){let{numberOfRows:t=4}=e,i=[...Array(t)];return(0,n.jsx)("div",{role:"status",className:"mt-4 animate-pulse space-y-2.5",children:i.map((e,t)=>(0,n.jsx)("div",{className:"flex w-full items-center space-y-2 space-x-2",children:(0,n.jsx)("div",{className:"h-5 w-full rounded-md bg-gray-200"})},t))})}},4972:(e,t,i)=>{i.d(t,{A:()=>x});var n=i(63249);i(53877);var l=i(14012),a=i(1782),s=i(90639),r=i(74474),o=i(75342),d=i(12938),c=i(50707),u=i(55767),m=i(24232);function x(e){var t,i,x,p;let{calendarSlots:g,onChangeCalendarDate:h,isLoading:v,onChangeSlot:f,selectedSlot:b,sectionHeadingSize:j="sm",id:y,navigatingSlotId:N,children:w}=e,k=(0,u.c3)("BokaComponent"),C=(0,m.Ym)(),S=!!(null==g?void 0:g.smartSlots);return(0,n.jsxs)(n.Fragment,{children:[g&&(0,n.jsx)("div",{id:y,children:(0,n.jsxs)("div",{className:"col-span-2",children:[(0,n.jsxs)("div",{className:"mb-2 flex items-start justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(l.D,{as:"p",size:j,className:"mb-0",children:k("title_Calendar")}),(0,n.jsxs)("p",{className:"mt-3 text-sm font-light text-stone-500",children:[k("Calendar_today"),": ",(e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(C).format(t)})(g.dateNow)]})]}),w]}),g&&(0,n.jsxs)("section",{children:[(0,n.jsx)(r.A,{calendarSlots:g,setDate:h}),(0,n.jsxs)("div",{className:"rounded-lg bg-white pb-4",children:[(0,n.jsx)("div",{className:"relative grid grid-cols-7 gap-1 lg:gap-2",children:(null==g||null==(t=g.result)?void 0:t.length)&&g.result.map(e=>(0,n.jsx)("div",{children:(0,n.jsx)(s.A,{calendarSlots:g,item:e})},e.dayOfMonth))}),(0,n.jsxs)("div",{className:"relative pt-3",children:[v&&(0,n.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center rounded-lg bg-white/70",children:(0,n.jsx)(d.A,{className:"h-6 w-6 animate-spin text-stone-400"})}),(0,n.jsx)("div",{className:(0,o.QP)("grid grid-cols-7 gap-1 lg:gap-2",v&&"opacity-40"),children:(null==g||null==(i=g.result)?void 0:i.length)&&g.result.map((e,t)=>(0,n.jsx)("div",{className:(0,o.QP)("px-1 py-2",t%2!=0?"bg-stone-100/30":"bg-stone-100/20"),children:(0,n.jsxs)("div",{className:"space-y-2 text-center",children:[e.isActive&&0===e.readySlots.length&&(0,n.jsx)("span",{className:"block w-full rounded-md p-1 text-xs text-red-300 ring-1 ring-stone-100 lg:p-2",children:k("Calendar_full")}),e.readySlots.map(e=>((e,t)=>{let i=N===e.startDateAndTime;return(0,n.jsx)("button",{onClick:()=>f({...e,slotSource:t}),value:e.startTime,disabled:i||v,className:(0,o.QP)((null==b?void 0:b.startDateAndTime)===e.startDateAndTime?"bg-primary scale-105 font-bold text-white":"scale-100 bg-white text-stone-800","hover:bg-primary","block w-full cursor-pointer rounded-md p-1 text-xs outline-none ring-1 ring-stone-200 transition-all hover:text-white hover:ring-stone-200 lg:p-2",i&&"cursor-not-allowed opacity-75"),children:i?(0,n.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,n.jsx)(d.A,{className:"h-3 w-3 animate-spin"}),(0,n.jsx)("span",{children:e.startTime})]}):e.startTime},e.startDateAndTime)})(e,S?"Suggested":void 0))]})},"slots-".concat(e.dayOfMonth)))})]})]}),!g.hasResults&&!v&&(0,n.jsxs)("div",{className:"mt-4 flex items-center justify-center gap-3 rounded-lg border-2 border-stone-400 bg-white p-3 text-left text-stone-500 md:mt-4 lg:text-center",children:[(0,n.jsx)(c.A,{className:"h-5 w-5"}),(0,n.jsxs)("p",{children:[k("Calendar_no_slots_week")," ",(0,n.jsx)("span",{className:"hover:text-primary font-bold underline hover:cursor-pointer",onClick:()=>{h(g.firstPossibleSlot.dateOnly)},children:null!=(p=null==(x=g.firstPossibleSlot)?void 0:x.dateString)?p:k("Calendar_missing_slot")})]})]})]})]})}),!g&&v&&(0,n.jsx)(a.A,{})]})}},12266:(e,t,i)=>{i.d(t,{$:()=>o,r:()=>r});var n=i(63249);i(53877);var l=i(42584),a=i(81948),s=i(63481);let r=(0,a.F)("inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 focus:ring-primary/50 ring-4 ring-primary/10 hover:ring-primary/25",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",white:"bg-white text-primary shadow-xs  hover:ring-4 hover:ring-primary/20"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",xl:"h-12 rounded-md px-8 has-[>svg]:px-6",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:i,size:a,asChild:o=!1,...d}=e,c=o?l.DX:"button";return(0,n.jsx)(c,{"data-slot":"button",className:(0,s.cn)(r({variant:i,size:a,className:t})),...d})}},14010:(e,t,i)=>{i.d(t,{p:()=>a});var n=i(63249);i(53877);var l=i(63481);function a(e){let{className:t,type:i,...a}=e;return(0,n.jsx)("input",{type:i,"data-slot":"input",className:(0,l.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...a})}},14012:(e,t,i)=>{i.d(t,{D:()=>a});var n=i(63249),l=i(20586);let a=e=>{let{as:t="h1",size:i="lg",children:a,className:s,color:r="",isBold:o=!0}=e;return(0,n.jsx)(t,{className:(0,l.A)("font-serif leading-snug tracking-normal",o?"font-semibold":"","xxs"===i&&"text-sm md:text-sm 2xl:text-base","xs"===i&&"text-base md:text-lg 2xl:text-xl","sm"===i&&"text-xl lg:text-2xl","md"===i&&"text-2xl md:text-3xl","lg"===i&&"text-4xl md:text-5xl","xl"===i&&"text-5xl md:text-6xl 2xl:text-7xl","title"===i&&"relative text-4xl md:text-6xl 2xl:text-7xl","custom"===i&&"",r||"text-stone-700",s),children:a})}},18730:(e,t,i)=>{i.d(t,{C6:()=>eF,Q7:()=>eN});var n=i(63249),l=i(55767),a=i(14012),s=i(12266),r=i(64677),o=i(41487),d=i(33164),c=i(2627),u=i(44430),m=i(56e3),x=i(97838),p=i(10668);function g(e){var t,i,x,g,v,f,b,j,y,N;let{state:w,locale:k,onContinue:C,className:S="",sectionHeadingSize:_}=e,D=(0,l.c3)("BokaComponent");function T(e){if(e.dayName)return e.dayName;let t=new Date(e.date);return Number.isNaN(t.getTime())?"":t.toLocaleDateString(k||"en-US",{weekday:"long"})}let A=()=>w.typeOfBehandling?w.typeOfBehandling.value===p.ServiceType.Consultation?"title_Step2Product_konsultation":"title_Step2Product_behanding":"";return(0,n.jsxs)("div",{className:"space-y-4 ".concat(S),children:[(0,n.jsx)(a.D,{as:"p",size:_,className:"text-stone-700",isBold:!0,children:D("Summary_title")}),(0,n.jsxs)("div",{className:"space-y-4 rounded-lg bg-white p-4 shadow-md",children:[(0,n.jsx)(h,{title:D("Summary_title_typeOfBooking"),icon:(0,n.jsx)(r.A,{className:"h-5 w-5"}),text:A()?D(A()):""}),(0,n.jsx)(h,{title:D("Summary_title_treatment"),icon:(0,n.jsx)(o.A,{className:"h-5 w-5"}),text:null==(t=w.product)?void 0:t.text,children:(null==w?void 0:w.product)&&(0,n.jsxs)("p",{className:"text-xs text-gray-500",children:[null==(i=w.product)?void 0:i.minutes," min"]})}),(null==w?void 0:w.product)&&(0,n.jsxs)(h,{title:D("Summary_title_price"),icon:(0,n.jsx)(d.A,{className:"h-5 w-5"}),text:(()=>{var e,t,i,n,l;if(!w.product)return"";if(null==(e=w.bookingDialog)?void 0:e.promoCode){if(null==(i=w.bookingDialog)||null==(t=i.promoCode)?void 0:t.discount.discountProcent){let e=(null==(l=w.bookingDialog)||null==(n=l.promoCode)?void 0:n.discount.discountProcent)*w.product.price.amount/100;return"".concat(w.product.price.amount-e," ").concat(w.product.price.currencyCodeText)}return"".concat(w.product.price.amount-w.bookingDialog.promoCode.discount.discountMoney.amount," ").concat(w.product.price.currencyCodeText)}return"".concat(w.product.price.amountFormatted)})(),children:[(null==(x=w.bookingDialog)?void 0:x.promoCode)&&(0,n.jsx)("p",{className:"text-sm text-gray-500 line-through",children:w.product.price.amountFormatted}),w.product&&(null==(g=w.product)?void 0:g.price.amount)!==0&&(0,n.jsx)("p",{className:"text-sm text-gray-500",children:D(w.isPrepayment?"Summary_title_price_payed_online":"Summary_title_price_payed_at_clinic")})]}),!(null==w||null==(v=w.product)?void 0:v.isDigital)&&(0,n.jsx)(h,{title:D("Summary_title_clinic"),icon:(0,n.jsx)(c.A,{className:"h-5 w-5"}),text:null==(f=w.clinic)?void 0:f.text,children:(null==w?void 0:w.clinic)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"text-sm text-gray-500",children:null==(b=w.clinic)?void 0:b.street}),(0,n.jsxs)("p",{className:"text-sm text-gray-500",children:[null==(j=w.clinic)?void 0:j.postalCode," ",null==(y=w.clinic)?void 0:y.city]})]})}),(0,n.jsx)(h,{title:D("Summary_title_date_time"),icon:(0,n.jsx)(u.A,{className:"h-5 w-5"}),text:w.selectedSlot?"".concat(null==(N=w.selectedSlot)?void 0:N.startTime):"",children:w.selectedSlot&&(0,n.jsxs)("p",{className:"text-sm text-gray-500",children:[w.selectedSlot.dateString,T(w.selectedSlot)&&" (".concat(T(w.selectedSlot),")")]})}),C&&(0,n.jsx)("div",{className:"pt-4",children:(0,n.jsxs)(s.$,{onClick:C,disabled:!w.selectedSlot,className:"w-full",variant:w.selectedSlot?"default":"outline",children:[D("Summary_Btn_Continue"),(0,n.jsx)(m.A,{className:"ml-2 h-4 w-4"})]})})]})]})}function h(e){let{title:t,text:i,icon:a,children:s}=e,r=(0,l.c3)("BokaComponent");return(0,n.jsxs)("div",{className:"border-b border-gray-100 pb-3 last:border-b-0 last:pb-0",children:[(0,n.jsx)("p",{className:"mb-2 text-xs font-semibold tracking-wide text-stone-500 uppercase",children:t}),i?(0,n.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,n.jsx)("div",{className:"text-primary flex-shrink-0",children:a}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("p",{className:"text-base font-medium text-gray-900",children:i}),s&&(0,n.jsx)("div",{className:"mt-1 space-y-1",children:s})]})]}):(0,n.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,n.jsx)(x.A,{className:"h-5 w-5 flex-shrink-0 text-orange-500"}),(0,n.jsx)("p",{className:"text-sm text-gray-500",children:r("not_selected")})]})]})}var v=i(53877),f=i(71272);function b(e){var t,i,a;let{state:s,locale:r,sectionHeadingSize:o}=e,[d,c]=(0,v.useState)(!1),u=(0,l.c3)("BokaComponent"),m=[null==(t=s.product)?void 0:t.text,null==(i=s.selectedSlot)?void 0:i.dateString,null==(a=s.selectedSlot)?void 0:a.startTime].filter(
1Boolean);return(0,n.jsxs)("div",{className:"md:hidden",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>c(!d),className:"flex w-full items-center justify-between rounded-lg border border-stone-200 bg-white p-3",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1 text-left",children:[(0,n.jsx)("p",{className:"text-xs font-semibold tracking-wide text-stone-500 uppercase",children:u("Summary_title")}),(0,n.jsx)("p",{className:"truncate text-sm text-gray-600",children:m.join(" \xb7 ")})]}),(0,n.jsx)(f.A,{className:"ml-2 h-5 w-5 flex-shrink-0 text-stone-400 transition-transform duration-200 ".concat(d?"rotate-180":"")})]}),d&&(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)(g,{state:s,locale:r,sectionHeadingSize:o})})]})}var j=i(52604),y=i(41856),N=i(28388),w=i(44527),k=i(93348),C=i(15313),S=i(67410),_=i(74642),D=i(74699),T=i(42735),A=i(98513),I=i(94915),P=i(91118),z=i(63144);function L(e){var t,i,a,s,r,o,d;let{text:c,icon:u,dialogOverlay:m=!0}=e,[x,p]=(0,v.useState)(!1),[g,h]=(0,v.useState)(""),{state:f,setBokaDialog:b}=(0,P.U)(C.$),{validatePromoCode:j,isLoading:y,errors:N}=(0,I.mx)(),w=(0,l.c3)("BookingDetails"),k=async(e,t)=>{await j(e,t,{handleError:e=>{h("")},handleSuccess:e=>{var i,n,l,a;b({firstName:(null==(i=f.bookingDialog)?void 0:i.firstName)||"",lastName:(null==(n=f.bookingDialog)?void 0:n.lastName)||"",email:(null==(l=f.bookingDialog)?void 0:l.email)||t,phone:(null==(a=f.bookingDialog)?void 0:a.phone)||"",promoCode:null!=e?e:void 0}),p(!1)}})};return(0,n.jsxs)(T.lG,{open:x,onOpenChange:p,modal:m,children:[(0,n.jsx)(T.zM,{asChild:!0,children:(0,n.jsxs)(_.C,{variant:"outline",size:"sm",className:"w-full md:w-[200px]",children:[(0,n.jsx)(D.I,{icon:u,outline:!(null==(t=f.bookingDialog)?void 0:t.promoCode),className:"".concat((null==(i=f.bookingDialog)?void 0:i.promoCode)?"text-primary":""," h-4 w-4")})," ",c]})}),(0,n.jsxs)(T.Cf,{children:[(0,n.jsx)(T.c7,{children:(0,n.jsx)(T.L3,{children:c})}),(0,n.jsxs)("div",{className:"py-4",children:[(0,n.jsx)(T.JU,{htmlFor:"promoCode",children:w("promoCode_modal_input_label")}),(0,n.jsx)(S.G,{className:"mt-4",id:"promoCode",name:"promoCode",placeholder:w("promoCode_modal_input_label"),type:"text",value:g,disabled:null==(a=f.bookingDialog)||!a.email,onChange:e=>h(e.target.value)}),(null==(s=f.bookingDialog)?void 0:s.promoCode)&&(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsxs)(_.C,{onClick:()=>{b({...f.bookingDialog,promoCode:void 0}),h(""),A.oR.info("Promo code removed")},size:"sm",className:"mt-2 bg-green-500 text-sm text-white",children:[(0,n.jsx)(z.A,{}),null==(r=f.bookingDialog.promoCode)?void 0:r.discount.resultReadable]})}),N&&(0,n.jsx)("div",{className:"mt-2 text-sm text-red-500",children:N}),!(null==(o=f.bookingDialog)?void 0:o.email)&&(0,n.jsx)("p",{className:"mt-2 text-sm text-red-500",children:"Enter email to be able to use promo code"}),(0,n.jsx)(_.C,{className:"mt-4",disabled:null==(d=f.bookingDialog)||!d.email,loading:y,size:"sm",onClick:()=>{var e;return k(g,(null==(e=f.bookingDialog)?void 0:e.email)||"")},children:w("promoCode_modal_btn_text")})]})]})]})}var B=i(54727);function E(e){var t,i,a;let{text:s,icon:r,dialogOverlay:o=!0}=e,[d,c]=(0,v.useState)(!1),[u,m]=(0,v.useState)(""),{state:x,setBokaDialog:p}=(0,P.U)(C.$),g=(0,l.c3)("BookingDetails");return(0,v.useEffect)(()=>{d||(u||p({...x.bookingDialog,note:void 0}),m(""))},[d]),(0,v.useEffect)(()=>{var e;(null==(e=x.bookingDialog)?void 0:e.note)&&m(x.bookingDialog.note)},[null==(t=x.bookingDialog)?void 0:t.note]),(0,n.jsxs)(T.lG,{open:d,onOpenChange:c,modal:o,children:[(0,n.jsx)(T.zM,{asChild:!0,children:(0,n.jsxs)(_.C,{variant:"outline",size:"sm",className:"w-full md:w-[200px]",children:[(0,n.jsx)(D.I,{icon:r,outline:null==(i=x.bookingDialog)||!i.note,className:"".concat((null==(a=x.bookingDialog)?void 0:a.note)?"text-primary":""," h-4 w-4")})," ",s]})}),(0,n.jsxs)(T.Cf,{children:[(0,n.jsx)(T.c7,{children:(0,n.jsx)(T.L3,{children:s})}),(0,n.jsxs)("div",{className:"py-4",children:[(0,n.jsx)(T.JU,{htmlFor:"promoCode",children:g("comment_modal_input_label")}),(0,n.jsx)(B.T,{className:"mt-4",value:u,onChange:e=>m(e.target.value)}),(0,n.jsx)(_.C,{className:"mt-4",size:"sm",onClick:()=>void(p({...x.bookingDialog,note:u}),c(!1)),children:g("commentButtonText")})]})]})]})}var O=i(85199),F=i(51464);let M=O.Ik({firstName:O.Yj().required("First name is required"),lastName:O.Yj().required("Last name is required"),email:O.Yj().email("Invalid email").required("Email is required"),phone:O.Yj().required("Phone number is required").test("is-valid-phone","Please enter a valid phone number",function(e){return!!e&&(0,F.g0)(e)})});var U=i(36393);let R={sm:"text-sm lg:text-base",base:"text-base lg:text-lg",lg:"text-lg lg:text-xl",xl
1:"text-base 2xl:text-3xl"},V={xs:"px-2 lg:px-2 py-1 lg:py-1",sm:"px-7 lg:px-10 py-1 lg:py-2",base:"px-6 lg:px-8 py-2 lg:py-3",lg:"px-7 lg:px-10 py-3 lg:py-4",xl:"px-7 2xl:px-16 py-3 2xl:py-4"},$={primary:"text-white",white:"text-primary","text-white":"text-white",text:"text-stone-700 hover:text-white dark:text-stone-200 dark:hover:text-white","primary-outlined":"text-primary hover:text-primary","white-outlined":"text-white hover:text-primary","dark-outlined":"text-stone-800 hover:text-white"},q={primary:"bg-primary hover:bg-primary/90 focus:ring-4 hover:ring-4 focus:outline-none focus:ring-primary/50 hover:ring-primary/25",white:"bg-white hover:bg-white/90 focus:ring-4 hover:ring-4 focus:outline-none focus:ring-primary/50 hover:ring-primary/25",text:"bg-light-button hover:bg-blue-500 dark:bg-gray-800 dark:hover:bg-blue-500","text-white":"bg-light-button hover:bg-white/25 dark:bg-gray-800 dark:hover:bg-blue-500","primary-outlined":"bg-transparent hover:bg-white","white-outlined":"bg-transparent hover:bg-white","dark-outlined":"bg-transparent hover:bg-stone-800 focus:ring-4 hover:ring-4 focus:outline-none focus:ring-stone-800/50 hover:ring-stone-800/25"},J={primary:"border-none",white:"border-none",text:"border-none","text-white":"border-none","primary-outlined":"border-2 border-primary","white-outlined":"border-2 border-white","dark-outlined":"border-2 border-stone-800"},G={xs:"h-4 w-4 text-current",sm:"h-5 w-5 text-current",base:"h-5 w-5 text-current",lg:"h-6 w-6 text-current",xl:"h-6 w-6 2xl:h-7 2xl:w-7 text-current"},H=e=>{let{type:t="primary",children:i,size:l="base",rounded:a=!1,className:s="",disabled:r=!1,imageList:o,setImageList:d,isBlock:c=!1,width:u,icon:m,iconOutline:x,isLoading:p}=e,g=r||p?"opacity-50 cursor-not-allowed":"transition ease-in-out duration-300 hover:cursor-pointer",h=["font-serif font-semibold h-10","flex items-center justify-center whitespace-nowrap",a?"rounded-full":"rounded-lg",R[l],J[t],p?"bg-stone-500  focus:outline-none ":q[t],$[t],V[l],g,m&&i?"space-x-3":""];s&&(h=[...h,...s.split(" ")]),c&&(h=[...h,"block w-full"]),u&&(h=[...h,u]);let f=v.useRef(null);return(0,n.jsxs)(n.Fragment,{children:[o&&o.length>0&&(0,n.jsx)("div",{className:"mt-4 mb-4 grid grid-cols-2 gap-4",children:o.map((e,t)=>(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(U.default,{alt:"ladda upp bild",src:URL.createObjectURL(e),width:300,height:300,className:"object-contain"}),(0,n.jsx)("button",{onClick:()=>(e=>{d([...o.slice(0,e),...o.slice(e+1)])})(t),className:"bg-primary absolute top-0 right-0 mt-1 mr-1 flex h-6 w-6 scale-100 items-center justify-center rounded-full text-white transition-all hover:scale-105 hover:bg-white hover:text-black",children:(0,n.jsx)(D.I,{className:"h-4 w-4",icon:"TrashIcon"})})]},t))}),(0,n.jsxs)("button",{className:h.join(" "),disabled:r,onClick:()=>{var e;null==(e=f.current)||e.click()},children:[(0,n.jsx)("span",{className:"",children:p?"Laddar...":i}),(0,n.jsx)("input",{multiple:!0,ref:f,type:"file",accept:"image/*",className:"hidden",onChange:function(e){let t=[];if(e.target.files&&e.target.files.length>0)for(let i of e.target.files)t.push(i);d([...null!=o?o:[],...t])}}),m&&(0,n.jsx)(D.I,{icon:m,className:G[l],outline:x})]})]})};function Y(e){var t;let{text:i,icon:a}=e,[s,r]=(0,v.useState)(!1),{state:o,setBokaDialog:d}=(0,P.U)(C.$),c=(0,l.c3)("BookingDetails"),u=()=>{var e;return(null==(e=o.bookingDialog)?void 0:e.images)&&Array.from(o.bookingDialog.images.keys()).length>0};return(0,n.jsxs)(T.lG,{open:s,onOpenChange:r,children:[(0,n.jsx)(T.zM,{asChild:!0,children:(0,n.jsxs)(_.C,{variant:"outline",size:"sm",className:"w-full md:w-[200px]",children:[(0,n.jsx)(D.I,{icon:a,outline:!u(),className:"".concat(u()?"text-primary":""," h-4 w-4")})," ",i]})}),(0,n.jsxs)(T.Cf,{children:[(0,n.jsx)(T.c7,{children:(0,n.jsx)(T.L3,{children:i})}),(0,n.jsx)("div",{className:"py-4",children:(0,n.jsx)(H,{isBlock:!1,imageList:null==(t=o.bookingDialog)?void 0:t.images,icon:"PhotoIcon",setImageList:e=>{d({...o.bookingDialog,images:e})},children:c("image_modal_btn_text")})})]})]})}var Z=i(80789);function Q(e){var t,i,a,s,r,o,d,c,u,m,x,p,g,h,f,b;let{session:D,locale:T,mode:A,onSubmit:I,isSubmitting:z,hidePromoCodeSelection:B=!1,hideImageUpload:O=!1,hideNoteField:F=!1,dialogOverlay:U=!0}=e,R=(0,l.c3)("BookingDetails"),V=(0,v.useRef)(null),$=(0,v.useRef)(void 0),[q,J]=(0,v.useState)(!1),G="0x4AAAAAADBGXkiJo_SG
1XpYR",{state:H,setBokaDialog:Q}=(0,P.U)(C.$),W={firstName:(null==(t=H.bookingDialog)?void 0:t.firstName)||(null==D||null==(a=D.data)||null==(i=a.user)?void 0:i.firstName)||"",lastName:(null==(s=H.bookingDialog)?void 0:s.lastName)||(null==D||null==(o=D.data)||null==(r=o.user)?void 0:r.lastName)||"",email:(null==(d=H.bookingDialog)?void 0:d.email)||(null==D||null==(u=D.data)||null==(c=u.user)?void 0:c.email)||"",phone:(null==(m=H.bookingDialog)?void 0:m.phone)||(null==D||null==(p=D.data)||null==(x=p.user)?void 0:x.phoneNumber)||"",promoCodeId:(null==(h=H.bookingDialog)||null==(g=h.promoCode)?void 0:g.id)||void 0,note:(null==(f=H.bookingDialog)?void 0:f.note)||void 0},X=(0,k.Wx)({initialValues:W,validationSchema:M,onSubmit:async e=>{var t,i,n,l;let{firstName:a,lastName:s,email:r,phone:o}=e;if(G&&!$.current)return void J(!0);I({firstName:a,lastName:s,email:r,phone:o,note:(null==(t=H.bookingDialog)?void 0:t.note)||void 0,promoCodeId:(null==(n=H.bookingDialog)||null==(i=n.promoCode)?void 0:i.id)||void 0,images:(null==(l=H.bookingDialog)?void 0:l.images)||void 0,turnstileToken:$.current})}});return(0,v.useEffect)(()=>{var e,t;Q({...X.values,promoCode:(null==(e=H.bookingDialog)?void 0:e.promoCode)||void 0,images:(null==(t=H.bookingDialog)?void 0:t.images)||void 0})},[X.values]),(0,n.jsx)("div",{className:"space-y-4",children:(0,n.jsxs)("form",{onSubmit:X.handleSubmit,className:"space-y-4",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(y.J,{htmlFor:"firstName",children:R("firstName")}),(0,n.jsx)(S.G,{id:"firstName",name:"firstName",placeholder:R("firstName"),icon:(0,n.jsx)(N.A,{}),iconPosition:"left",error:X.errors.firstName,value:X.values.firstName,onChange:X.handleChange})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(y.J,{htmlFor:"lastName",children:R("lastName")}),(0,n.jsx)(S.G,{id:"lastName",name:"lastName",placeholder:R("lastName"),icon:(0,n.jsx)(N.A,{}),iconPosition:"left",error:X.errors.lastName,value:X.values.lastName,onChange:X.handleChange})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(y.J,{htmlFor:"email",children:R("email")}),(0,n.jsx)(S.G,{id:"email",name:"email",placeholder:R("email"),icon:(0,n.jsx)(w.A,{}),iconPosition:"left",error:X.errors.email,value:X.values.email,onChange:X.handleChange})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(y.J,{htmlFor:"phone",children:R("phone")}),(0,n.jsx)(j.A,{value:X.values.phone,onChange:e=>X.setFieldValue("phone",e),onBlur:X.handleBlur,name:"phone",required:!0,placeholder:R("phone"),defaultCountry:{"sv-se":"SE","en-gb":"GB","da-dk":"DK","nl-nl":"NL",no:"NO",fi:"FI","et-ee":"EE"}[T]||"EE",errorMessage:X.errors.phone&&(X.touched.phone||X.submitCount>0)?X.errors.phone:void 0})]}),(null==(b=H.product)?void 0:b.isDigital)&&(0,n.jsx)("div",{className:"space-y-2",children:(0,n.jsx)("p",{className:"text-sm text-stone-500",children:R("imageHelperText")})}),!O&&(0,n.jsx)("div",{children:(0,n.jsx)(Y,{text:R("imageButtonText"),icon:"PhotoIcon"})}),!B&&(0,n.jsx)("div",{children:(0,n.jsx)(L,{text:R("promoCodeButtonText"),icon:"TagIcon",dialogOverlay:U})}),!F&&(0,n.jsx)("div",{children:(0,n.jsx)(E,{text:R("commentButtonText"),icon:"ChatBubbleLeftEllipsisIcon",dialogOverlay:U})}),G&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Z.Xs,{ref:V,siteKey:G,options:{size:"invisible"},onSuccess:e=>{$.current=e,J(!1)},onExpire:()=>{var e;$.current=void 0,null==(e=V.current)||e.reset()},onError:()=>{$.current=void 0,J(!0)}}),q&&(0,n.jsx)("p",{className:"text-sm text-red-500",children:R("captchaError")})]}),(0,n.jsx)(_.C,{size:"xl",loading:z,type:"submit",children:R("sheet"===A?"completeBookingButtonText":"gotToPaymentsButtonText")})]})})}var W=i(30300),X=i(40411),K=i(9266),ee=i(24232);function et(e){let{taken:t,sectionHeadingSize:i="md",onPick:a,onBack:s}=e,r=(0,l.c3)("BookingDetails"),o=(0,ee.Ym)(),d=e=>"".concat(new Intl.DateTimeFormat(o,{weekday:"short",day:"numeric",month:"short",timeZone:"UTC"}).format(new Date("".concat(e.date,"T00:00:00Z"))),", ").concat(e.startTime),c=d(t.slot),u=t.alternatives.length>0;return(0,n.jsxs)("div",{role:"alert",className:"space-y-4",children:[(0,n.jsx)(W.D,{size:i,as:"p",children:r("slot_taken_title")}),(0,n.jsx)("p",{className:"text-stone-600",children:r(u?"slot_taken_body":"slot_taken_none",{when:c})}),u&&(0,n.jsx)("ul",{className:"divide-y divide-stone-200 rounded-lg ring-1 ring-stone-200",children:t.alternatives.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)("button",{type:"button",onClick:()=>a(e),className:"hover:bg-primary flex w-full items-center justify-between p-4 text-left font-medium text-stone-800 transition-colors hover:text-white",children:[(0,n.jsx)("span",{children:d(e)}),(0,n.jsx)(K.A,{className:"h-4 w-4"})]})},e.startDateAndTime))}),(0,n.jsx)("button",{type:"button",onClick:s,className:"hover:text-primary text-sm font-bold underline",children:r("slot_taken_back")})]})}function ei(e){let{isOpen:t,onClose:i,state:a,locale:s,sectionHeadingSize:r="md",session:o,isSubmitting:d,onSubmit:c,hideImageUpload:u,hideNoteField:m,hidePromoCodeSelection:x,slotTaken:p,onPickAlternative:h}=e,v=(0,l.c3)("BookingDetails");return(0,n.jsx)(X.cj,{open:t,onOpenChange:e=>!e&&i(),children:(0,n.jsxs)(X.h,{side:"bottom",className:"h-[85dvh] max-h-[90dvh] overflow-y-auto rounded-t-2xl md:h-[800px] lg:rounded-t-sm",onOpenAutoFocus:e=>e.preventDefault(),children:[(0,n.jsx)(X.Fm,{className:"mx-auto max-w-6xl",children:(0,n.jsx)(X.qp,{className:"hidden"})}),(0,n.jsx)("div",{className:"mt-4",children:a.selectedSlot&&(0,n.jsx)("div",{className:"mx-auto max-w-6xl space-y-6",children:(0,n.jsxs)("div",{className:"grid grid-cols-1 gap-12 md:grid-cols-3",children:[(0,n.jsxs)("div",{className:"space-y-4 md:col-span-2",children:[p&&h&&(0,n.jsx)(et,{taken:p,sectionHeadingSize:r,onPick:h,onBack:i}),(0,n.jsxs)("div",{className:p?"hidden":"space-y-4",children:[(0,n.jsx)(W.D,{size:r,as:"p",children:v("title")}),(0,n.jsx)(b,{state:a,locale:s,sectionHeadingSize:r}),(0,n.jsx)("div",{className:"space-y-4 rounded-lg bg-white",children:(0,n.jsx)(Q,{session:o,locale:s,isSubmitting:d,onSubmit:c,hideImageUpload:u,hideNoteField:m,hidePromoCodeSelection:x,mode:"sheet"})})]})]}),(0,n.jsx)("div",{className:"space-y-2 md:col-span-1",children:(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(g,{state:a,locale:s,sectionHeadingSize:r})})})]})})})]})})}var en=i(23399),el=i(75994),ea=i(38118);function es(e){let{isOpen:t,setOpen:i,clinicModels:a}=e,[s,r]=(0,v.useState)(null),o=(0,l.c3)("BokaComponent"),d=(0,l.c3)("
1Common"),c=(0,ee.Ym)(),{setClinic:u,setSlot:m}=(0,P.U)(C.$),{digitalExpressSlots:x,isLoading:g}=(e=>{let{selectedCountry:t}=(0,P.U)(C.$),{appointmentService:i}=(0,v.useMemo)(()=>(0,p.createServices)({selectedCountry:null!=t?t:"sv-se"},""),[t]),{data:n,error:l}=(0,ea.Ay)(e?"digital-express-slots-".concat(t):null,()=>i.findBookingSlotsDigitalExpress(),{revalidateOnFocus:!1,dedupingInterval:1});return{digitalExpressSlots:n,isLoading:!l&&!n,isError:l}})(t),h=e=>{var t;r({slot:null==(t=e.optionalProps)?void 0:t.slot,radioValue:e.value})},f=o("DigitalExpress_label_next_today"),b=o("DigitalExpress_label_next_tomorrow"),j=(null==x?void 0:x.slots)?function(e,t,i,n){let l=new Map;for(let a of e){let e=l.get(a.date);e?e.slots.push(a):l.set(a.date,{label:function(e,t,i,n){if(e.isToday)return i;if(e.isTomorrow)return n;let l=new Date(e.date),a=new Intl.DateTimeFormat(t,{weekday:"long"}).format(l),s=l.getDate(),r=new Intl.DateTimeFormat(t,{month:"short"}).format(l).replace(".","");return"".concat(a," ").concat(s," ").concat(r)}(a,t,i,n),slots:[a]})}return l}(x.slots,c,f,b):new Map;return(0,n.jsx)(T.lG,{open:t,onOpenChange:i,children:(0,n.jsxs)(T.Cf,{className:"max-h-[90dvh]",children:[(0,n.jsx)(T.c7,{children:(0,n.jsx)(T.L3,{children:o("DigitalExpress_Modal_title")})}),g&&(0,n.jsx)(el.jt,{}),!g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"max-h-[70dvh] overflow-y-auto",children:[!(null==x?void 0:x.hasSlots)&&(0,n.jsx)("p",{className:"my-4",children:o("DigitalExpress_Modal_no_result_message")}),Array.from(j.entries()).map(e=>{var t;let[,{label:i,slots:l}]=e;return(0,n.jsxs)("section",{className:"mt-4",children:[(0,n.jsx)("p",{className:"mb-2 font-serif",children:i}),(0,n.jsx)(en.A,{setSelected:h,selectedValue:null!=(t=null==s?void 0:s.radioValue)?t:"",options:l.map(e=>({text:e.startTime,value:"".concat(e.date,"-").concat(e.startTime),disabled:!1,optionalProps:{slot:e}}))})]},i)}),(null==x?void 0:x.hasSlots)&&(0,n.jsx)("p",{className:"mt-4 text-sm text-stone-600",children:o("DigitalExpress_text_see_more_time_slots_text")})]}),(0,n.jsxs)("div",{className:"mt-2 flex justify-end gap-x-3",children:[(0,n.jsx)(el.Ce,{onClick:()=>i(!1),variant:"white",size:"sm",children:d("close")}),(0,n.jsx)(el.Ce,{onClick:()=>{var e;s&&(u(a.find(e=>e.internalName===s.slot.clinicInternalName)),m({date:(e=s.slot).date,dateString:e.dateString,
1startTime:e.startTime,endTime:e.endTime,clinicInternalName:e.clinicInternalName,start:e.startTime,end:e.endTime,startDateAndTime:"".concat(e.date,"T").concat(e.startTime),endDateAndTime:"".concat(e.date,"T").concat(e.endTime),timeBetween:"",dayName:e.dayLabel,dayNameShort:e.dayLabel,isExtraOpenDay:!1,interval:0,timeHasPassed:!1}),i(!1))},size:"sm",disabled:!s,children:d("book")})]})]})]})})}var er=i(20586),eo=i(78786),ed=i(99719),ec=i(15330),eu=i(32623),em=i(63481);function ex(e){let{...t}=e;return(0,n.jsx)(ed.bL,{"data-slot":"select",...t})}function ep(e){let{...t}=e;return(0,n.jsx)(ed.WT,{"data-slot":"select-value",...t})}function eg(e){let{className:t,size:i="default",children:l,...a}=e;return(0,n.jsxs)(ed.l9,{"data-slot":"select-trigger","data-size":i,className:(0,em.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...a,children:[l,(0,n.jsx)(ed.In,{asChild:!0,children:(0,n.jsx)(ec.A,{className:"size-4 opacity-50"})})]})}function eh(e){let{className:t,children:i,position:l="popper",...a}=e;return(0,n.jsx)(ed.ZL,{children:(0,n.jsxs)(ed.UC,{"data-slot":"select-content",className:(0,em.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...a,children:[(0,n.jsx)(ev,{}),(0,n.jsx)(ed.LM,{className:(0,em.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:i}),(0,n.jsx)(ef,{})]})})}function ev(e){let{className:t,...i}=e;return(0,n.jsx)(ed.PP,{"data-slot":"select-scroll-up-button",className:(0,em.cn)("flex cursor-default items-center justify-center py-1",t),...i,children:(0,n.jsx)(eu.A,{className:"size-4"})})}function ef(e){let{className:t,...i}=e;return(0,n.jsx)(ed.wn,{"data-slot":"select-scroll-down-button",className:(0,em.cn)("flex cursor-default items-center justify-center py-1",t),...i,children:(0,n.jsx)(ec.A,{className:"size-4"})})}function eb(e){let{clinics:t,onChangeCountry:i,selectedCountry:a}=e,{flagmap:s,countryNameMap:r,getFlagIconsFromLocale:o,enabledClinics:d}=(0,eo.A)(),c=t.reduce((e,t)=>{let i=t.culture?t.culture.toLocaleLowerCase():"unknown";return d.includes(i)&&(e[i]||(e[i]=[]),e[i].push(t)),e},{}),u=(0,l.c3)("BokaComponent"),m=()=>o(a);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsxs)(ex,{onValueChange:e=>i(e),children:[(0,n.jsxs)(eg,{className:"",children:[(0,n.jsx)(U.default,{src:m(),height:20,width:20,alt:"Selected country",className:"h-4 w-4 cursor-pointer rounded-full object-cover md:h-4 md:w-4"}),(0,n.jsx)(ep,{placeholder:u("title_change_country")})]}),(0,n.jsx)(eh,{className:"",children:Object.keys(c).map(e=>(0,n.jsx)(ed.eb,{value:e,className:"mb-1 px-4 hover:bg-stone-50",children:(0,n.jsxs)("div",{className:(0,er.A)("flex items-center gap-2 py-1",m()===s[e]&&"-mx-2 rounded-sm bg-stone-100 px-2"),children:[(0,n.jsx)(U.default,{src:s[e],height:20,width:20,alt:"Change launguage to ".concat(e),className:"h-4 w-4 cursor-pointer rounded-full object-cover md:h-4 md:w-4"}
1,e),r[e]]})},e))})]})})})}function ej(e){let{clinician:t,size:i=24,ringed:l}=e,a=l?"ring-2 ring-white":"";if(t.avatarUrl)return(0,n.jsx)(U.default,{src:t.avatarUrl,height:i,width:i,alt:t.firstName,className:(0,er.A)("rounded-full object-cover",a),style:{width:i,height:i}});let s=(t.firstName||"?").charAt(0).toUpperCase();return(0,n.jsx)("span",{"aria-label":t.firstName,className:(0,er.A)("bg-primary inline-flex shrink-0 items-center justify-center rounded-full font-semibold text-white",a),style:{width:i,height:i,fontSize:Math.round(.45*i)},children:s})}function ey(e){let{clinicians:t,size:i=24,max:l=2}=e,a=t.slice(0,l),s=t.length-a.length;return(0,n.jsxs)("div",{className:"flex -space-x-2",children:[a.map(e=>(0,n.jsx)(ej,{clinician:e,size:i,ringed:!0},e.id)),s>0&&(0,n.jsxs)("span",{className:"inline-flex shrink-0 items-center justify-center rounded-full bg-stone-200 font-semibold text-stone-700 ring-2 ring-white",style:{width:i,height:i,fontSize:Math.round(.4*i)},"aria-label":"+".concat(s),children:["+",s]})]})}function eN(e){let{clinicians:t,selectedClinician:i,onChangeClinician:a}=e,s=(0,l.c3)("BokaComponent");return(0,n.jsxs)("div",{className:"min-w-[140px] sm:min-w-[200px]",children:[(0,n.jsx)("label",{className:"mb-1 block text-[11px] font-medium tracking-wider text-stone-500 uppercase",children:s("selected_clinician")}),(0,n.jsxs)(ex,{value:(null==i?void 0:i.id)||"all",onValueChange:e=>{"all"===e?a(void 0):a(t.find(t=>t.id===e))},children:[(0,n.jsx)(eg,{className:"w-full",children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[i?(0,n.jsx)(ej,{clinician:i,size:24}):(0,n.jsx)(ey,{clinicians:t}),i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"hidden sm:inline",children:i.firstName}),(0,n.jsx)("span",{className:"sm:hidden",children:i.firstName.length>5?"".concat(i.firstName.slice(0,5),"..."):i.firstName})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"hidden sm:inline",children:s("all_clinicians")}),(0,n.jsx)("span",{className:"sm:hidden",children:s("all_clinicians_short")})]})]})}),(0,n.jsxs)(eh,{children:[(0,n.jsx)(ed.eb,{value:"all",className:"mb-1 px-4 hover:bg-stone-50",children:(0,n.jsxs)("div",{className:(0,er.A)("flex items-center gap-2 py-1",!i&&"-mx-2 rounded-sm bg-stone-100 px-2"),children:[(0,n.jsx)(ey,{clinicians:t}),s("all_clinicians")]})}),t.map(e=>(0,n.jsx)(ed.eb,{value:e.id,className:"mb-1 px-4 hover:bg-stone-50",children:(0,n.jsxs)("div",{className:(0,er.A)("flex items-center gap-2 py-1",(null==i?void 0:i.id)===e.id&&"-mx-2 rounded-sm bg-stone-100 px-2"),children:[(0,n.jsx)(ej,{clinician:e,size:24}),e.firstName]})},e.id))]})]})]})}var ew=i(10895);function ek(){return{scrollTo:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-200;setTimeout(()=>{ew.XG.scrollTo(e,{duration:700,delay:0,smooth:!0,offset:t})},150)},scrollToElement:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:700,i=()=>{let i=document.querySelector(e);if(i){let e=i.getBoundingClientRect().top+window.scrollY-t;return window.scrollTo({top:e,behavior:"smooth"}),!0}return!1};if(!i()){let e=0,t=setInterval(()=>{e++,(i()||e>=20)&&clearInterval(t)},50)}},scrollToTop:()=>{window.scrollTo({top:0,behavior:"smooth"})}}}var eC=i(53290),eS=i(55563);let e_=e=>60*Number(e.slice(0,2))+Number(e.slice(3,5)),eD=e=>Date.parse("".concat(e,"T00:00:00Z"))/864e5,eT=(e,t)=>e.date.localeCompare(t.date)||e.startTime.localeCompare(t.startTime);var eA=i(4972),eI=i(27695),eP=i(65524);function ez(e){let{productListFilteredByCulture:t,productModels:i,selectedProduct:a,onProductChange:s,productRenderStrategy:r="default"}=e,o=(0,l.c3)("BokaComponent"),d=e=>e?0===e.amount?o("free"):e.amountFormatted:"";return"pricingOptions"===r?(0,n.jsx)(en.A,{selectedValue:a?"".concat(a.id,":").concat(a.productPricingId):null,setSelected:e=>{let[t,n]=e.value.split(":");s(i.find(e=>e.id.toString()===t),Number(n))},options:t.flatMap(e=>{var t;return(null==(t=e.pricingOptions)?void 0:t.map(t=>({text:"".concat(t.displayName),value:"".concat(e.id,":").concat(t.id),description:d(t.basePrice)})))||[]})}):(0,n.jsx)(en.A,{selectedValue:(null==a?void 0:a.id.toString())||null,setSelected:e=>{var t;let n=i.find(t=>
1t.id.toString()===e.value),l=null==n||null==(t=n.singleSessionPricing)?void 0:t.id;s(n,l)},options:t.map(e=>{var t;return{text:e.friendlyNameWeb||e.name,value:e.id.toString(),description:d(null==(t=e.singleSessionPricing)?void 0:t.basePrice)}})})}var eL=i(41095);let eB=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{locale:t="sv-se",onSuccess:i,onError:n}=e,{state:l}=(0,P.U)(C.$),{paymentService:a}=(0,v.useMemo)(()=>(0,p.createServices)({selectedCountry:t},void 0),[t]),s=(0,eL.A)("create-web-checkout",async(e,t)=>{let{arg:i}=t;if(!l.clinic||!l.product)throw new p.ApiException(400,[],"Missing clinic or product information");return a.submitWebCheckout(i)},{throwOnError:!1,onSuccess(e){null==i||i(e)},onError(e){null==n||n(e)}});return{createCheckout:s.trigger,data:s.data,isLoading:s.isMutating,isError:!!s.error,error:s.error}};var eE=i(57242),eO=i(12538);function eF(e){return e.isolated?(0,n.jsx)(eM,{...e}):(0,n.jsx)(eU,{...e})}function eM(e){let{locale:t}=e,[i,l]=(0,v.useReducer)(eO.xw,{typeOfBehandling:void 0,product:void 0,clinic:void 0,selectedSlot:void 0,isReadyToFetch:!1,searchCalendarDate:void 0,isPrepayment:!1}),[a,s]=(0,v.useState)(null),[r,o]=(0,v.useState)([]),[d,c]=(0,v.useState)([]),[u,m]=(0,v.useState)([]),[x,p]=(0,v.useState)("sv-se"),[g,h]=(0,v.useState)([]),{enabledClinics:f}=(0,eo.A)(),b=(0,v.useCallback)(e=>{var t;let i=null!=(t=e.toLowerCase())?t:"";p(f.includes(i)?i:"sv-se")},[f]),j=(0,eO.EC)(l);(0,v.useEffect)(()=>{b(t)},[t,b]);let y={calendarSlots:a,setCalendarSlots:s,state:i,...j,clinicList:d,productList:r,setProductList:o,setClinicList:c,setTypeOfBehandlingList:h,typeOfBehandlingList:g,selectedCountry:x,setSelectedCountry:b,clinicianList:u,setClinicianList:m};return(0,n.jsx)(C.$.Provider,{value:y,children:(0,n.jsx)(eU,{...e})})}function eU(e){var t,i,a,s,r,o,d,c,u,m,x,h,f,b;let{locale:j,sectionHeadingSize:y="md",session:N,bookingTypes:w,defaultBookingType:k,serviceCategoryOptions:S,defaultServiceCategory:_,productFilter:D,hidePromoCodeSelection:T,hideImageUpload:I,hideNoteField:z,hideCountryClinicSelection:L,hideProductStep:B,autoSelectProduct:E,productRenderStrategy:O}=e,F=(0,P.U)(C.$),{products:M,clinics:U,isLoading:R,hasError:V,productModels:$,clinicModels:q}=function(e){let{locale:t,context:i}=e,n=i.selectedCountry||t,{productList:l,isLoading:a,isError:s}=(0,eS.V)(n),{clinicList:r,isLoading:o,isError:d}=(e=>{let{clinicService:t}=(0,v.useMemo)(()=>(0,p.createServices)({selectedCountry:e||"sv-se"},void 0),[e]),{data:i,error:n}=(0,ea.Ay)("clinic-list-".concat(e),()=>t.fetchClinics(),{revalidateOnFocus:!1,dedupingInterval:6e5});return{clinicList:i,isLoading:!n&&!i,isError:n}})(n),c=(0,v.useCallback)(e=>e.map(e=>{var t;return{id:e.id,text:e.friendlyNameWeb||e.name,value:e.internalName,description:"",isDigital:e.isDigital,productName:e.name,productType:e.productType,serviceType:null!=(t=e.serviceType)?t:e.productType===p.ProductType.CONSULTATION?p.ServiceType.Consultation:p.ServiceType.Treatment,serviceCategory:e.serviceCategory,price:e.price,culture:e.culture,minutes:e.minutes,internalName:e.internalName,pricingOptions:e.pricingOptions,singleSessionPricing:e.singleSessionPricing,packagePricingOptions:e.packagePricingOptions,unlimitedPricingOptions:e.unlimitedPricingOptions,hasMultiplePricingOptions:e.hasMultiplePricingOptions}}),[]),u=(0,v.useCallback)(e=>e.map(e=>{var t,i,n,l;return{id:e.id,text:e.name,value:e.internalName,description:(null==(t=e.address)?void 0:t.street)||"",street:(null==(i=e.address)?void 0:i.street)||"",postalCode:(null==(n=e.address)?void 0:n.postalCode)||"",city:(null==(l=e.address)?void 0:l.city)||"",avatarUrl:"",culture:e.culture,internalName:e.internalName}}),[]);return(0,v.useEffect)(()=>{if(l&&l.length>0&&i.setProductList){let e=c(l);i.setProductList(e)}},[l,i.setProductList,c]),(0,v.useEffect)(()=>{if(r&&r.length>0&&i.setClinicList){let e=u(r);i.setClinicList(e)}},[r,i.setClinicList,u]),{products:l,clinics:r,isLoadingProducts:a,isLoadingClinics:o,isLoading:a||o,productsError:s,clinicsError:d,hasError:s||d,productModels:i.productList,clinicModels:i.clinicList}}({locale:j,context:F}),{setProduct:J,setProductPricingId:G,setClinic:H,setClinician:Y,setClinicianList:Z,clinicianList:Q,state:X,setCalendarSlots:K,calendarSlots:ee,setSlot:et,setCalendarDate:el,selectedCountry:er,setSelectedCountry:eo,setTypeOfBehandling:ed,setServiceCategory:ec}=F,eu=(null==S?void 0:S.length)===1?S[0].value:void 0,em=(null!=(x=null==S?void 0:S.length)?x:0)>1&&!!X.typeOfBehandling,ex=!em||null!=X.serviceCategory,ep=null!=_?_:eu,eg=em?X.serviceCategory:null!=ep?ep:X.serviceCategory,{calendarSlots:eh,isLoading:ev,error:ef,refresh:ej}=function(e){let{state:t}=e,{selectedCountry:i}=(0,P.U)(C.$),{appointmentService:n}=(0,v.useMemo)(()=>(0,p.createServices)({selectedCountry:i},void 0),[i]),l=(0,v.useMemo)(()=>{var e,i;if(!t.clinic||!t.product||!t.isReadyToFetch)return null;let n=!t.searchCalendarDate;return["calendar-slots-v2",t.product.id.toString(),t.clinic.id.toString(),null!=(i=t.searchCalendarDate)?i:"",(null==(e=t.selectedClinician)?void 0:e.id)||"all",n?"true":"false"]},[t.clinic,t.product,t.searchCalendarDate,t.selectedClinician,t.isReadyToFetch]),a=async e=>{let[t,i,l,a,s,r]=e;return await n.findBookingSlotsV2(parseInt(i),l,a||void 0,"all"===s?void 0:s,"true"===r)},{data:s,error:r,isLoading:o,mutate:d}=(0,ea.Ay)(l,a,{revalidateOnFocus:!1,dedupingInterval:0,onError:e=>{A.oR.error(e.message)}});return{calendarSlots:s,isLoading:o,error:r,isReady:!!l,refresh:()=>{l&&d()}}}({state:X}),ey=function(e){var t,i,n;let{selectedCountry:l}=(0,P.U)(C.$),{appointmentService:a}=(0,v.useMemo)(()=>(0,p.createServices)({selectedCountry:l},void 0),[l]),[s,r]=(0,v.useState)(null),o=e.selectedSlot,d=null==(t=e.product)?void 0:t.id,c=null==(i=e.clinic)?void 0:i.id,u=null==(n=e.selectedClinician)?void 0:n.id,m=(0,v.useRef)(o);m.current=o,(0,v.useEffect)(()=>{r(e=>e&&(null==o?void 0:o.startDateAndTime)===e.slot.startDateAndTime?e:null)},[o]);let x=(0,v.useCallback)(async()=>{var e,t,i;let n=m.current;if(!n||!d||!c)return;let l=[];try{let e=await a.findBookingSlotsV2(d,c,(i=n.date,new Date(Date.parse("".concat(i,"T00:00:00Z"))+-2592e5).toISOString().slice(0,10)),u,!1,!0);l=(function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=eD(t.date),l=e_(t.time);return e.flatMap(e=>e.readySlots).filter(e=>!e.timeHasPassed&&(e.date!==t.date||e.startTime!==t.time)).map(e=>({slot:e,distance:180*Math.abs(eD(e.date)-n)+Math.abs(e_(e.startTime)-l)})).sort((e,t)=>
1e.distance-t.distance||eT(e.slot,t.slot)).slice(0,i).map(e=>{let{slot:t}=e;return t}).sort(eT)})(null!=(t=null==e?void 0:e.result)?t:[],{date:n.date,time:n.startTime}).map(e=>({...e,slotSource:n.slotSource?"Suggested":void 0}))}catch(e){}(null==(e=m.current)?void 0:e.startDateAndTime)===n.startDateAndTime&&r({slot:n,alternatives:l})},[a,d,c,u]),g=(0,v.useCallback)(async()=>{let e=m.current;if(e&&d&&c){try{let t=await a.checkSlot({productId:d,clinicId:c,clinicianId:u,date:e.date,time:e.startTime});if(t.available||"taken"!==t.reason)return}catch(e){return}await x()}},[a,d,c,u,x]);return{taken:s,markTaken:x,checkStillFree:g}}(X);!function(e){let{clinicId:t,firstDate:i,lastDate:n,onChange:l}=e,a=(0,v.useRef)(l);a.current=l,(0,v.useEffect)(()=>{let e="https://api-prod-sweden.beamadmin.app/api";if(!t||!i||!n||!e||"undefined"==typeof EventSource)return;let l=new URL("".concat(e.replace(/\/$/,""),"/v1/public/appointments/availability/stream"));l.searchParams.set("clinicId",t);let s=Date.parse("".concat(i,"T00:00:00Z"))-864e5,r=Date.parse("".concat(n,"T00:00:00Z"))+1728e5,o=null,d=!1,c=0,u=()=>{o=null,"visible"===document.visibilityState?a.current():d=!0},m=()=>{null===o&&(o=setTimeout(u,1e3))},x=new EventSource(l.toString());x.addEventListener("ready",()=>{(c+=1)>1&&m()}),x.addEventListener("availability",e=>{try{let{fromUtc:t,toUtc:i}=JSON.parse(e.data),n=t?Date.parse(t):NaN,l=i?Date.parse(i):NaN;if(!isNaN(n)&&!isNaN(l)&&(l<=s||n>=r))return}catch(e){}m()});let p=()=>{"visible"===document.visibilityState&&d&&(d=!1,a.current())};return document.addEventListener("visibilitychange",p),()=>{x.close(),null!==o&&clearTimeout(o),document.removeEventListener("visibilitychange",p)}},[t,i,n])}({clinicId:null==(t=X.clinic)?void 0:t.id,firstDate:null==ee||null==(a=ee.result)||null==(i=a[0])?void 0:i.date,lastDate:null==ee||null==(r=ee.result)||null==(s=r[ee.result.length-1])?void 0:s.date,onChange:()=>{ej(),"sheet"===e.mode&&X.selectedSlot&&ey.checkStillFree()}});let{clinicians:ew}=function(e){let{state:t}=e,{selectedCountry:i}=(0,P.U)(C.$),{appointmentService:n}=(0,v.useMemo)(()=>(0,p.createServices)({selectedCountry:i},void 0),[i]),l=(0,v.useMemo)(()=>t.clinic&&t.product?["available-clinicians",t.product.id.toString(),t.clinic.id.toString()]:null,[t.clinic,t.product]),a=async e=>{let[t,i,l]=e;return await n.getAvailableClinicians(parseInt(i),l)},{data:s,error:r,isLoading:o}=(0,ea.Ay)(l,a,{revalidateOnFocus:!1,dedupingInterval:6e4,onError:e=>{console.error("Error fetching clinicians:",e),A.oR.error("Failed to load available clinicians")}});return{clinicians:(0,v.useMemo)(()=>(null==s?void 0:s.clinicians)?s.clinicians.map(e=>({id:e.clinicianId,text:e.fullName,value:e.clinicianId,fullName:e.fullName,firstName:e.firstName,lastName:e.lastName,avatarUrl:e.avatarUrl})):[],[s]),isLoading:o,error:r,isReady:!!l}}({state:X});(0,v.useEffect)(()=>{ew&&ew.length>0?Z(ew):Z([])},[ew,Z]),(0,v.useEffect)(()=>{k&&!X.typeOfBehandling&&ed(k)},[k,X.typeOfBehandling,ed]),(0,v.useEffect)(()=>{null!=ep&&X.typeOfBehandling&&!em&&null==X.serviceCategory&&ec(ep)},[ep,X.typeOfBehandling,em,X.serviceCategory,ec]);let eO=(0,v.useMemo)(()=>D&&X.typeOfBehandling&&ex?(B||E?$.filter(e=>e.culture.toLowerCase()===(null!=er?er:j).toLowerCase()):$).filter(e=>e.serviceType===X.typeOfBehandling.value).filter(e=>null==eg||e.serviceCategory===eg).filter(D):[],[D,X.typeOfBehandling,ex,B,E,$,er,j,eg]);(0,v.useEffect)(()=>{if(D&&!X.product&&!R&&$.length>0){let t=eO[0];if(t){var e;let i=null==(e=t.singleSessionPricing)?void 0:e.id;J(t),G(i),E&&1===eO.length&&eV(!0)}}},[D,X.product,eO,R,$,J,G,E]);let{createAppointment:eF,isProcessing:eM}=(e=>{let{locale:t,onPaymentConfirmed:i,onSlotConflict:n}=e,{confirmPayment:l,isLoading:a}=(e=>{let{selectedCountry:t}=(0,P.U)(C.$),{paymentService:i}=(0,v.useMemo)(()=>(0,p.createServices)({selectedCountry:t},void 0),[t]),n=(0,eL.A)("confirm-booking",async(e,t)=>{let{arg:n}=t;return i.confirmPayment(n.paymentId,n.appointmentId)},{onSuccess(t){var i;null==e||null==(i=e.onSuccess)||i.call(e,t)},onError(t){var i;null==e||null==(i=e.onError)||i.call(e,t)}});return{confirmPayment:n.trigger,data:n.data,isLoading:n.isMutating,isError:!!n.error,error:n.error}})({onError:e=>{A.oR.error((0,eE.SU)(e,"An error occurred while confirming the payment"))},onSuccess:e=>{null==i||i({appointmentInfo:e.appointmentInfo})}}
1),{createCheckout:s,isLoading:r}=eB({locale:t,onSuccess:async e=>{if(e.appointmentId)try{var t;await l({paymentId:null!=(t=e.paymentId)?t:"",appointmentId:e.appointmentId})}catch(e){}},onError:async e=>{409===e.status&&await (null==n?void 0:n())||A.oR.error((0,eE.SU)(e,"An error occurred while creating booking"))}});return{createAppointment:async e=>{await s(e)},isSubmitting:r,isConfirming:a,isProcessing:r||a}})({locale:er||j,onPaymentConfirmed:"sheet"===e.mode?t=>{e.onBookingSuccess(t.appointmentInfo.id,t.appointmentInfo.isNewCustomer,t.appointmentInfo.clinicId,t.appointmentInfo.productId,{isConsultation:t.appointmentInfo.isConsultation,isDigital:t.appointmentInfo.isDigital,productInternalName:t.appointmentInfo.productInternalName})}:void 0,onSlotConflict:async()=>{if(ej(),"sheet"===e.mode&&X.selectedSlot)return await ey.markTaken(),!0;et(void 0)}});async function eU(t){var i,n;if(!X.selectedSlot||!X.clinic||!X.product)return void console.error("Missing required booking information");if(e.onBeforeCheckout&&!await e.onBeforeCheckout(t))return;let l={user:{firstName:t.firstName,lastName:t.lastName,email:t.email,phone:t.phone},clinicId:X.clinic.id,clinicianId:null==(i=X.selectedClinician)?void 0:i.id,productId:X.product.id,productPricingId:X.product.productPricingId,time:X.selectedSlot.startTime,date:X.selectedSlot.date,note:t.note,promoCodeId:t.promoCodeId,images:null==(n=X.bookingDialog)?void 0:n.images,turnstileToken:t.turnstileToken,slotSource:X.selectedSlot.slotSource,...(0,eI.Z_)()};await eF(l)}let[eR,eV]=(0,v.useState)(!1),[e$,eq]=(0,v.useState)(!1),[eJ,eG]=(0,v.useState)(null),eH=async t=>{if(et(t),"navigate"===e.mode){eG(t.startDateAndTime);try{await e.onNavigate(t)}finally{setTimeout(async()=>{eG(null)},4e3)}}};!function(e){let{loading:t,productModels:i,clinicModels:n,bookingTypes:l}=e,{state:a,setClinic:s,setProduct:r,setProductPricingId:o,setTypeOfBehandling:d,setSelectedCountry:c}=(0,P.U)(C.$),{scrollToElement:u}=ek(),m=(0,eC.useSearchParams)();(0,v.useEffect)(()=>{let e=(null==m?void 0:m.get("klinik"))||(null==m?void 0:m.get("clinic")),x=(null==m?void 0:m.get("produkt"))||(null==m?void 0:m.get("product"));if(!t&&e&&x&&i&&n&&l){let t=n.find(t=>t.internalName===e);if(t){c(t.culture);let e=i.find(e=>e.internalName===x&&e.culture===t.culture);if(e&&!a.product){let t=l.find(t=>t.value===e.serviceType);t&&!a.typeOfBehandling&&d(t),r(e),o(e.pricingOptions[0].id)}a.clinic||(s(t),setTimeout(()=>{u("#booking-module-calendar",100)},400))}}},[t,m,l,a.product,a.clinic,a.typeOfBehandling,d,o,r,s,n,i,u,c]),(0,v.useEffect)(()=>{if("konsultation"===(null==m?void 0:m.get("type"))&&l&&!a.typeOfBehandling){let e=l.find(e=>e.value===p.ServiceType.Consultation);e&&d(e)}},[m,l,a.typeOfBehandling,d])}({loading:R,productModels:$,clinicModels:q,bookingTypes:w}),(0,v.useEffect)(()=>{eh&&!ef&&K(eh)},[eh,ef,K]);let eY=(0,l.c3)("BokaComponent"),eZ=e=>{var t,i;let n=null!=(i=null!=(t=F.selectedCountry)?t:j)?i:"sv-se";return e.toLocaleLowerCase()===n.toLocaleLowerCase()},eQ=null!=(h=null==M?void 0:M.filter(e=>eZ(e.culture)).filter(e=>{var t;return e.serviceType===(null==(t=F.state.typeOfBehandling)?void 0:t.value)}).filter(e=>null==eg||e.serviceCategory===eg))?h:[],eW=null!=(f=null==U?void 0:U.filter(e=>eZ(e.culture)))?f:[],{scrollToElement:eX}=ek();return(0,n.jsxs)("div",{className:"mx-auto w-full px-1",children:[R?(0,n.jsx)(eP.j,{}):V?(0,n.jsx)("div",{className:"text-red-500",children:"Failed to load data. Please try again."}):U&&0!==U.length?(0,n.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",id:"booking-module-wrapper",children:[(0,n.jsxs)("section",{className:"col-span-2",children:[w.length>0&&(0,n.jsxs)("div",{className:"mb-12",children:[(0,n.jsx)(W.D,{as:"p",size:y,className:"mb-4 text-stone-700",isBold:!0,children:eY("title_Step1BehandlingsTyp")}),(0,n.jsx)(en.A,{selectedValue:(null==(o=X.typeOfBehandling)?void 0:o.value.toString())||null,setSelected:e=>{let t=w.find(t=>t.value===Number(e.value));J(void 0),ec(void 0),H(void 0),et(void 0),el(void 0),eV(!1),t&&ed(t)},options:w.map(e=>({text:e.text,value:e.value.toString(),description:e.description}))})]}),em&&(0,n.jsxs)("div",{className:"mb-12",children:[(0,n.jsx)(W.D,{as:"p",size:y,className:"mb-4 text-stone-700",isBold:!0,children:eY("title_StepServiceCategory")}),(0,n.jsx)(en.A,{selectedValue:null!=(b=null==(d=X.serviceCategory)?void 0:d.toString())?b:null,setSelected:e=>{J(void 0),H(void 0),et(void 0),el(void 0),eV(!1),ec(Number(e.value))},options:S.map(e=>({text:e.text,value:e.value.toString(),description:e.description}))})]}),X.typeOfBehandling&&ex&&!B&&!eR&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(W.D,{as:"p",size:y,className:"mb-4 text-stone-700",isBold:!0,children:eY((null==(c=X.typeOfBehandling)?void 0:c.value)===p.ServiceType.Consultation?"title_Step2Product_konsultation":"title_Step2Product_behanding")}),(0,n.jsx)("div",{className:"mb-12",children:(0,n.jsx)(ez,{productListFilteredByCulture:eQ,productModels:$,selectedProduct:X.product,onProductChange:(e,t)=>
1{var i;J(e),G(t),(null==e?void 0:e.isDigital)&&e.serviceType===p.ServiceType.Consultation&&eq(!0),(null==e?void 0:e.id)!==(null==(i=X.product)?void 0:i.id)&&(H(void 0),et(void 0),el(void 0)),e&&!e.isDigital&&setTimeout(()=>{eX("#booking-module-clinic",70)},100)},productRenderStrategy:O})})]}),X.product&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{id:"booking-module-clinic",className:"mb-4 flex items-center justify-between",children:[(0,n.jsx)(W.D,{size:y,as:"p",className:"",children:eY("title_Step3Clinic")}),!L&&(0,n.jsx)(eb,{clinics:q,selectedCountry:er,onChangeCountry:e=>{eo(e),J(void 0),H(void 0),eX("#booking-module-wrapper")}})]}),(0,n.jsx)(en.A,{selectedValue:(null==(u=X.clinic)?void 0:u.id.toString())||null,setSelected:e=>{let t=q.find(t=>t.id.toString()===e.value);if(!t)throw Error("Clinic not found");H(t),et(void 0),el(void 0),setTimeout(()=>{eX("#booking-module-calendar",70)},100)},options:eW.map(e=>{var t;return{text:e.name,value:e.id.toString(),description:null==(t=e.address)?void 0:t.street}})})]}),!X.product&&B&&ex&&0===eO.length&&(0,n.jsx)("div",{className:"mt-12 rounded-lg border-2 border-dashed border-gray-200 p-8 text-center",children:(0,n.jsx)("p",{className:"text-gray-500",children:eY("no_products_available")})}),!X.product&&!B&&0===w.length&&(0,n.jsx)("div",{className:"mt-12 rounded-lg border-2 border-dashed border-gray-200 p-8 text-center",children:(0,n.jsx)("p",{className:"text-gray-500",children:eY("select_product_to_continue")})}),X.product&&X.clinic&&(0,n.jsx)("div",{className:"mt-8",children:(0,n.jsx)(eA.A,{id:"booking-module-calendar",calendarSlots:ee,onChangeCalendarDate:e=>{el(e)},isLoading:ev,onChangeSlot:eH,selectedSlot:X.selectedSlot,sectionHeadingSize:y,navigatingSlotId:eJ,children:(null==(m=X.product)?void 0:m.id)&&X.clinic&&Q.length>0&&(0,n.jsx)(eN,{clinicians:Q,selectedClinician:X.selectedClinician,onChangeClinician:Y})})}),X.product&&!X.clinic&&(0,n.jsx)("div",{className:"mt-8 rounded-lg border-2 border-dashed border-gray-200 p-8 text-center",children:(0,n.jsx)("p",{className:"text-gray-500",children:eY("select_clinic_first_message")})})]}),(0,n.jsx)("section",{className:"col-span-1 hidden md:block",children:(0,n.jsx)("div",{className:"lg:sticky lg:top-28",children:(0,n.jsx)(g,{state:X,locale:j,sectionHeadingSize:y})})})]}):(0,n.jsx)("div",{className:"text-gray-500",children:"No clinics available"}),(0,n.jsx)(es,{isOpen:e$,setOpen:eq,clinicModels:q}),"sheet"===e.mode&&(0,n.jsx)(ei,{isOpen:!!X.selectedSlot,onClose:()=>et(void 0),state:X,locale:j,sectionHeadingSize:y,session:N,isSubmitting:eM,onSubmit:eU,hideImageUpload:I,hideNoteField:z,hidePromoCodeSelection:T,slotTaken:ey.taken,onPickAlternative:et})]})}},23399:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(63249),l=i(20586),a=i(92801);function s(e){let{options:t,selectedValue:i,setSelected:s,getTextFunc:o}=e;return(0,n.jsx)(n.Fragment,{children:!!t&&(0,n.jsx)(a.P.div,{variants:{hidden:{opacity:0,y:100},show:{opacity:1,y:0,transition:{staggerChildren:.1}}},initial:"hidden",animate:"show",children:t.map(e=>{var t;return(0,n.jsxs)(a.P.button,{variants:{hidden:{opacity:0},show:{opacity:1}},onClick:()=>{s(e)},disabled:e.disabled,value:e.value,className:(0,l.A)("mb-2 flex h-16 w-full items-center justify-between rounded-lg px-5 py-4 font-serif font-medium shadow-md focus:outline-none",(t=e.value,e.disabled?"cursor-not-allowed bg-black/10 text-gray-400 shadow-none":i===t?"cursor-pointer  bg-primary bg-opacity-75 text-white ring-2 ring-white ring-opacity-60 ring-offset-2 ring-offset-primaryDarken":"cursor-pointer bg-white hover:bg-stone-50")),children:[(0,n.jsxs)("div",{className:"flex items-center gap-x-4",children:[!!(null==e?void 0:e.avatarUrl)&&(0,n.jsx)("img",{src:null==e?void 0:e.avatarUrl,width:100,height:100,alt:e.text,className:(0,l.A)("h-10 w-10 rounded-full md:h-12 md:w-12")}),(0,n.jsxs)("div",{className:"flex flex-col items-start",children:[o?(0,n.jsx)("p",{children:o(e.value)}):(0,n.jsx)("p",{children:e.text}),(0,n.jsx)("p",{className:"text-left font-serif text-sm font-medium ".concat(i===e.value?"text-white":"text-gray-500"),children:e.description})]})]}),i===e.value&&(0,n.jsx)("div",{className:"ml-2 shrink-0 text-white",children:(0,n.jsx)(r,{className:"h-6 w-6"})})]},e.value)})})})}function r(e){return(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",...e,children:[(0,n.jsx)("circle",{cx:12,cy:12,r:12,fill:"#fff",opacity:"0.2"}),(0,n.jsx)("path",{d:"M7 13l3 3 7-7",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]})}},27695:(e,t,i)=>{i.d(t,{HC:()=>a,Z_:()=>s,Zl:()=>r});let n="ad_tracking_params",l=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gbraid","wbraid","gad_source","gad_campaignid","fbclid","fbp","msclkid","ttclid","li_fat_id"];function a(){let e=new URLSearchParams(window.location.search),t={};for(let i of l){let n=e.get(i);n&&(t[i]=n)}Object.keys(t).length>0&&sessionStorage.setItem(n,JSON.stringify(t))}function s(){let e={},t=sessionStorage.getItem(n);if(t)try{let i=JSON.parse(t);for(let t of l)i[t]&&(e[t]=i[t])}catch(e){}let i=o("_fbc");i&&(e.fbc=i);let a=o("_fbp");return a&&(e.fbp=a),e}function r(){let e=s(),t={};for(let i of l)i.startsWith("utm_")&&e[i]&&(t[i]=e[i]);return t}function o(e){if("undefined"==typeof document)return;let t=document.cookie.match(new RegExp("(?:^|; )".concat(e,"=([^;]*)")));return(null==t?void 0:t[1])?decodeURIComponent(t[1]):void 0}},30028:(e,t,i)=>{i.d(t,{Yq:()=>r,ZG:()=>o,jQ:()=>d});var n=i(63249),l=i(97564),a=i(20586),s=i(21786);let r="text-lg 2xl:text-xl 2xl:leading-relaxed";function o(e){let{textSize:t="",titleColor:i="",titleSize:r=null}=e;return{heading1:e=>{let{children:t}=e;return(0,n.jsx)(l.D,{as:"h1",size:"xl",className:(0,a.A)(i,"mb-7 mt-12 first:mt-0 last:mb-0"),children:t})},heading2:e=>{let{children:t}=e;return(0,n.jsx)(l.D,{as:"h2",size:r||"md",className:(0,a.A)(i,"mb-2 mt-12 first:mt-0"),children:t})},heading3:e=>{let{children:t}=e;return(0,n.jsx)(l.D,{as:"h3",size:"sm",className:(0,a.A)(i,"mb-7 mt-12 first:mt-0 last:mb-0"),children:t})},heading4:e=>{let{children:t}=e;return(0,n.jsx)(l.D,{as:"h4",size:"sm",className:(0,a.A)(i,"mb-7 mt-12 first:mt-0 last:mb-0"),children:t})},paragraph:e=>{let{children:i}=e;return(0,n.jsx)("p",{className:(0,a.A)(t,"mb-7 last:mb-0"),children:i})},oList:e=>{let{children:i}=e;return(0,n.jsx)("ol",{className:(0,a.A)("mb-7 ml-6 last:mb-0",t),children:i})},oListItem:e=>{let{children:i}=e;return(0,n.jsx)("li",{className:(0,a.A)("mb-2 list-decimal pl-1 last:mb-0 md:pl-2",t),children:i})},list:e=>{let{children:i}=e;return(0,n.jsx)("ul",{className:(0,a.A)(t,"mb-7 pl-8 last:mb-0 md:pl-8"),children:i})},listItem:e=>{let{children:i}=e;return(0,n.jsx)("li",{className:(0,a.A)("mb-1 mt-1 list-disc pl-1 last:mb-0 md:pl-2",t),children:i})},embed:e=>{let{node:t,key:i}=e;return(0,n.jsx)("div",{className:"w-full","data-oembed":t.oembed.embed_url,"data-oembed-type":t.oembed.type,"data-oembed-
1provider":t.oembed.provider_name,dangerouslySetInnerHTML:{__html:t.oembed.html.replace(/width="\d+"/,'class="w-full h-64 xl:h-96  mb-8"').replace(/height="\d+"/,"")}},i)},preformatted:e=>{let{children:t}=e;return(0,n.jsx)("pre",{className:"mb-7 rounded bg-stone-200 p-4 text-sm last:mb-0 md:p-8 md:text-lg",children:(0,n.jsx)("code",{className:"",children:t})})},strong:e=>{let{children:t}=e;return(0,n.jsx)("strong",{className:"font-semibold",children:t})},hyperlink:e=>{let{children:t,node:i}=e;return(0,n.jsx)(s.PrismicNextLink,{field:i.data,className:"text-primaryDarken underline decoration-1 underline-offset-2",children:t})}}}function d(e){let{size:t,applyTitleSize:i=!1}=e;return"sm"===t?o({textSize:"text-base lg:text-xl md:text-lg 2xl:text-2xl",titleSize:i?"sm":null}):"lg"===t?o({textSize:"text-lg lg:text-xl md:text-lg 2xl:text-2xl",titleSize:i?"lg":null}):"xl"===t?o({textSize:"text-xl lg:text-xl md:text-lg 2xl:text-4xl",titleSize:i?"xl":null}):o({textSize:r})}},30300:(e,t,i)=>{i.d(t,{D:()=>n.D});var n=i(14012)},40411:(e,t,i)=>{i.d(t,{Fm:()=>p,cj:()=>d,h:()=>x,qp:()=>g});var n=i(63249),l=i(53877),a=i(41647),s=i(81948),r=i(63144),o=i(63481);let d=a.bL;a.l9,a.bm;let c=a.ZL,u=l.forwardRef((e,t)=>{let{className:i,...l}=e;return(0,n.jsx)(a.hJ,{className:(0,o.cn)("bg-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50",i),...l,ref:t})});u.displayName=a.hJ.displayName;let m=(0,s.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),x=l.forwardRef((e,t)=>{let{side:i="right",className:l,children:s,...d}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(u,{}),(0,n.jsxs)(a.UC,{ref:t,className:(0,o.cn)(m({side:i}),l),...d,children:[s,(0,n.jsxs)(a.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[(0,n.jsx)(r.A,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=a.UC.displayName;let p=e=>{let{className:t,...i}=e;return(0,n.jsx)("div",{className:(0,o.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...i})};p.displayName="SheetHeader";let g=l.forwardRef((e,t)=>{let{className:i,...l}=e;return(0,n.jsx)(a.hE,{ref:t,className:(0,o.cn)("text-foreground text-lg font-semibold",i),...l})});g.displayName=a.hE.displayName,l.forwardRef((e,t)=>{let{className:i,...l}=e;return(0,n.jsx)(a.VY,{ref:t,className:(0,o.cn)("text-muted-foreground text-sm",i),...l})}).displayName=a.VY.displayName},41856:(e,t,i)=>{i.d(t,{J:()=>s});var n=i(63249);i(53877);var l=i(23332),a=i(63481);function s(e){let{className:t,...i}=e;return(0,n.jsx)(l.b,{"data-slot":"label",className:(0,a.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...i})}},42735:(e,t,i)=>{i.d(t,{$n:()=>n.$,lG:()=>o,Cf:()=>m,rr:()=>g,c7:()=>x,L3:()=>p,zM:()=>d,JU:()=>h.J,cj:()=>v.cj,h:()=>v.h,Fm:()=>v.Fm,qp:()=>v.qp});var n=i(12266),l=i(63249);i(53877);var a=i(41647),s=i(63144),r=i(63481);function o(e){let{...t}=e;return(0,l.jsx)(a.bL,{"data-slot":"dialog",...t})}function d(e){let{...t}=e;return(0,l.jsx)(a.l9,{"data-slot":"dialog-trigger",...t})}function c(e){let{...t}=e;return(0,l.jsx)(a.ZL,{"data-slot":"dialog-portal",...t})}function u(e){let{className:t,...i}=e;return(0,l.jsx)(a.hJ,{"data-slot":"dialog-overlay",className:(0,r.cn)("bg-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50",t),...i})}function m(e){let{className:t,children:i,showCloseButton:n=!0,...o}=e;return(0,l.jsxs)(c,{"data-slot":"dialog-portal",children:[(0,l.jsx)(u,{}),(0,l.jsxs)(a.UC,{"data-slot":"dialog-content",className:(0,r.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
1ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...o,children:[i,n&&(0,l.jsxs)(a.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,l.jsx)(s.A,{}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function x(e){let{className:t,...i}=e;return(0,l.jsx)("div",{"data-slot":"dialog-header",className:(0,r.cn)("flex flex-col gap-2 text-center sm:text-left",t),...i})}function p(e){let{className:t,...i}=e;return(0,l.jsx)(a.hE,{"data-slot":"dialog-title",className:(0,r.cn)("text-lg leading-none font-semibold",t),...i})}function g(e){let{className:t,...i}=e;return(0,l.jsx)(a.VY,{"data-slot":"dialog-description",className:(0,r.cn)("text-muted-foreground text-sm",t),...i})}i(14010);var h=i(41856),v=i(40411)},52604:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(63249),l=i(53877),a=i(51464);i(38396);var s=i(75342);let r=(0,l.forwardRef)((e,t)=>{let{value:i,onChange:r,defaultCountry:o,errorMessage:d,className:c,label:u,placeholder:m,name:x,disabled:p=!1,required:g=!1,onBlur:h}=e,v=!!d,f=(0,l.useCallback)(e=>{"function"==typeof r&&(r.length>0&&x?r(e):r(null!=e?e:""))},[r,x]);return(0,n.jsxs)("div",{className:(0,s.QP)("flex flex-col space-y-1",c),children:[u&&(0,n.jsxs)("label",{htmlFor:x,className:"block text-sm font-medium text-stone-700 first-letter:uppercase",children:[u,g&&(0,n.jsx)("span",{className:"ml-1 text-red-500",children:"*"})]}),(0,n.jsxs)("div",{className:"! relative mt-1 rounded-md",children:[(0,n.jsx)("style",{children:"\n            .PhoneInput {\n              height: 2.5rem;\n              display: flex;\n              align-items: center;\n            }\n            .PhoneInputInput {\n              flex: 1;\n              min-width: 0;\n              border: none !important;\n              outline: none !important;\n              height: 100%;\n              padding-left: 0.75rem;\n            }\n            .PhoneInputInput:focus,\n            .PhoneInputInput:focus-visible {\n              outline: none !important;\n              border: none !important;\n              box-shadow: none !important;\n            }\n            .PhoneInputCountrySelect:focus,\n            .PhoneInputCountrySelect:focus-visible {\n              outline: none !important;\n            }\n            .PhoneInputCountrySelect {\n              margin-right: 0.5rem;\n            }\n          "}),(0,n.jsx)(a.Ay,{ref:t,international:!0,defaultCountry:o,value:i,onChange:f,onBlur:h,disabled:p,placeholder:m,name:x,className:(0,s.QP)("border-input bg-background ring-offset-background file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",v&&"border-red-500 focus-visible:ring-red-500",p?"bg-gray-100 text-gray-500":"bg-stone-50")})]}),v&&d&&(0,n.jsx)("p",{className:"text-sm text-red-500",children:d})]})});r.displayName="PhoneNumberInput";let o=r},54727:(e,t,i)=>{i.d(t,{T:()=>a});var n=i(63249);i(53877);var l=i(63481);function a(e){let{className:t,...i}=e;return(0,n.jsx)("textarea",{"data-slot":"textarea",className:(0,l.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...i})}},55563:(e,t,i)=>{i.d(t,{V:()=>s});var n=i(38118),l=i(53877),a=i(10668);let s=e=>{let{productService:t}=(0,l.useMemo)(()=>(0,a.createServices)({selectedCountry:e||"sv-se"},void 0),[e]),{data:i,error:s}=(0,n.Ay)("product-list-".concat(e),()=>t.fetchProductsV2(),{revalidateOnFocus:!1,dedupingInterval:6e5});return{productList:i,isLoading:!s&&!i,isError:s}}},63481:(e,t,i)=>{i.d(t,{cn:()=>a});var n=i(20586),l=i(75342);function a(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return(0,l.QP)((0,n.$)(t))}},65524:(e,t,i)=>{i.d(t,{j:()=>n.A});var n=i(1782)},67410:(e,t,i)=>{i.d(t,{G:()=>r});var n=i(63249),l=i(53877),a=i(14010),s=i(63481);let r=l.forwardRef((e,t)=>
1{let{className:i,icon:l,iconPosition:r="left",error:o,...d}=e,c="left"===r,u="right"===r;return l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"relative",children:[c&&(0,n.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("div",{className:"h-5 w-5 text-gray-400",children:l})}),(0,n.jsx)(a.p,{className:(0,s.cn)("h-11 bg-stone-50",c&&"pl-10",u&&"pr-10",o&&"border-red-500 focus-visible:ring-red-500",i),...d,ref:t}),u&&(0,n.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:(0,n.jsx)("div",{className:"h-5 w-5 text-gray-400",children:l})})]}),o&&(0,n.jsx)("p",{className:"mt-1 text-sm text-red-600",children:o})]}):(0,n.jsx)(a.p,{className:i,...d,ref:t})});r.displayName="RethinkInput"},74474:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(63249),l=i(51867),a=i(6660),s=i(55767);function r(e){let{date:t,children:i,setDate:l}=e;return(0,n.jsx)("button",{className:"flex rounded-md border border-stone-300 bg-white px-3 py-1.5 font-sans text-xs transition-colors lg:text-sm ".concat(t?"cursor-pointer hover:bg-stone-50":"cursor-not-allowed text-gray-400"),disabled:!t,onClick:function(){t&&l(t)},children:(0,n.jsx)("span",{className:"flex items-center gap-1",children:i})})}function o(e){var t,i,o;let{calendarSlots:d,setDate:c}=e,u=(0,s.c3)("BokaComponent");return(0,n.jsxs)("div",{className:"mb-3 flex items-center justify-between py-3",children:[(0,n.jsxs)(r,{date:null==d?void 0:d.prevFirstDate,setDate:c,children:[(0,n.jsx)(l.A,{className:"h-4 w-4"}),u("Calendar_Btn_Prev")]}),(0,n.jsxs)("p",{className:"text-center font-serif text-base font-bold text-stone-800 lg:text-lg",children:[d.dayFirst," ",d.monthFirst!==d.monthLast?"".concat(null==(t=d.monthFirst)?void 0:t.substring(0,3)," - ").concat(d.dayLast," ").concat(null==(i=d.monthLast)?void 0:i.substring(0,3)):"- ".concat(d.dayLast," ").concat(null==(o=d.monthFirst)?void 0:o.substring(0,3))]}),(0,n.jsxs)(r,{setDate:c,date:null==d?void 0:d.nextFirstDate,children:[u("Calendar_Btn_Next"),(0,n.jsx)(a.A,{className:"h-4 w-4"})]})]})}},74642:(e,t,i)=>{i.d(t,{C:()=>r});var n=i(63249);i(53877);var l=i(12266),a=i(63481);let s=()=>(0,n.jsxs)("svg",{className:"size-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]});function r(e){let{children:t,loading:i,href:r,disabled:o,className:d,variant:c,size:u,asChild:m=!1,LinkComponent:x,...p}=e,g=o||i,h=(0,n.jsxs)(n.Fragment,{children:[i&&(0,n.jsx)(s,{}),t]});return r&&!g&&x?(0,n.jsx)(x,{href:r,className:(0,a.cn)((0,l.r)({variant:c,size:u,className:d})),children:h}):r&&!g?(0,n.jsx)("a",{href:r,className:(0,a.cn)((0,l.r)({variant:c,size:u,className:d})),children:h}):(0,n.jsx)(l.$,{className:d,variant:c,size:u,disabled:g,asChild:m,...p,children:h})}},75994:(e,t,i)=>{i.d(t,{Ce:()=>n.C,jt:()=>l.j}),i(4972),i(90639),i(74474),i(23399),i(67410);var n=i(74642);i(52604),i(74699),i(30300);var l=i(65524);i(42735),i(54727)},76384:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(63249),l=i(30028),a=i(70394);function s(e){let{field:t}=e,i=(0,l.jQ)({size:void 0});return(0,n.jsx)(a.$,{field:t,components:i})}},90639:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(63249),l=i(24232);function a(e){let{calendarSlots:t,item:i}=e,a=t.dateNow===i.date,s=new Date(i.date),r=(0,l.Ym)(),o=new Intl.DateTimeFormat(r,{weekday:"short"}).format(s).substring(0,3).toUpperCase(),d=new Intl.DateTimeFormat(r,{month:"short"}).format(s).replace(".","").toUpperCase();return(0,n.jsxs)("div",{className:"rounded-lg bg-stone-50 py-2 text-center",children:[(0,n.jsx)("p",{className:"text-xs font-semibold tracking-wide lg:text-sm ".concat(a?"text-primary":i.isActive?"text-stone-500":"text-stone-400"),children:o}),(0,n.jsx)("p",{className:"mb-1 font-serif text-2xl font-bold lg:text-3xl ".concat(a?"text-primary":i.isActive?"text-stone-800":"text-stone-400"),children:i.dayOfMonth}),(0,n.jsx)("p",{className:"text-[0.6rem] font-semibold tracking-wide lg:text-xs ".concat(a?"text-primary":i.isActive?"text-stone-500":"text-stone-400"),children:d})]})}},91118:(e,t,i)=>{i.d(t,{U:()=>l});var n=i(53877);function l(e){let t=(0,n.useContext)(e);if(!t)throw Error("useBokaContext must be used within a BokaProvi
1der");return t}}}]);

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.