1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[130],{7944:(e,s,t)=>{t.d(s,{A:()=>y,o:()=>g});var a=t(5155),r=t(7088),i=t(2115),l=t(9219),n=t(4928),d=t(1719),o=t(1466),c=t(6710),m=t(1837),x=t(7600),h=t(6678),p=t(4995),u=t(3541);let f=void 0===globalThis.window?r.A:globalThis.window,g=[{name:"Emergency Prescription",slug:"/emergency-prescription"},{name:"Contraception (POC, COC, EHC)",slug:"/nhs/contraception"},{name:"Covid & Flu Vaccinations",slug:"/nhs/covid-flu"}],j=[{label:"Private Services",href:"/services",hasDropdown:!0},{label:"NHS Services",href:"/nhs/contraception",nhsDropdown:!0},{label:"Aesthetics",href:"/services/aesthetics"},{label:"App",href:"/app"},{label:"Blog",href:"/blog"},{label:"About Us",href:"/about"},{label:"Contact",href:"/contact"}],y=()=>{let e=((0,n.md)(u.GS)||[]).filter(e=>!e.comingSoon).map(e=>({slug:e.slug||e.id,name:e.displayName||e.name})),[s,t]=(0,i.useState)(!1),[r,y]=(0,i.useState)(!1),[v,N]=(0,i.useState)(!1),[b,w]=(0,i.useState)(!1),k=(0,i.useRef)(null),A=(0,i.useRef)(null),S=(0,p.A)(),C=()=>{k.current&&clearTimeout(k.current),N(!0)},P=()=>{k.current&&clearTimeout(k.current),k.current=setTimeout(()=>N(!1),120)},E=()=>{A.current&&clearTimeout(A.current),w(!0)},D=()=>{A.current&&clearTimeout(A.current),A.current=setTimeout(()=>w(!1),120)};return(0,i.useEffect)(()=>()=>{k.current&&clearTimeout(k.current),A.current&&clearTimeout(A.current)},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{isOpen:r,onClose:()=>y(!1)}),(0,a.jsx)(x.A,{isOpen:s,onClose:()=>t(!1)}),(0,a.jsx)("header",{className:"sticky top-0 bg-secondary border-b border-white/10",style:{zIndex:2147483e3,isolation:"isolate"},children:(0,a.jsxs)("div",{className:"container-wide py-4 flex items-center justify-between",children:[(0,a.jsx)(l.Link,{to:"/",className:"flex items-center",children:(0,a.jsx)("div",{className:"h-10 w-[160px] flex items-center",children:(0,a.jsx)("img",{src:m,alt:"Sidley Pharmacy & Clinics",className:"h-full w-auto"})})}),(0,a.jsx)("nav",{className:"hidden min-[1100px]:flex items-center gap-8",children:j.map(s=>s.hasDropdown?(0,a.jsxs)("div",{className:"relative",onMouseEnter:C,onMouseLeave:P,children:[(0,a.jsxs)(l.Link,{to:s.href,className:"flex items-center gap-1 text-base font-medium text-white/80 hover:text-white transition-colors","aria-haspopup":"true","aria-expanded":v,children:[s.label,(0,a.jsx)(d.A,{className:"h-4 w-4 transition-transform ".concat(v?"rotate-180":"")})]}),v&&(0,a.jsx)("div",{className:"absolute left-1/2 top-full z-50 -translate-x-1/2 pt-3",onMouseEnter:C,onMouseLeave:P,children:(0,a.jsxs)("div",{className:"w-[480px] max-w-[calc(100vw-2rem)] max-h-[calc(100vh-8rem)] overflow-y-auto rounded-2xl border border-white/10 bg-secondary/95 backdrop-blur-md shadow-2xl p-3 grid grid-cols-2 gap-1",children:[e.map(e=>(0,a.jsx)(l.Link,{to:"/services/".concat(e.slug),className:"rounded-xl px-3 py-2.5 text-sm text-white/80 hover:bg-white/10 hover:text-white transition-colors",onClick:()=>N(!1),children:e.name},e.slug)),(0,a.jsx)(l.Link,{to:"/services",className:"col-span-2 mt-1 rounded-xl px-3 py-2.5 text-sm font-medium text-accent hover:bg-white/10 transition-colors",onClick:()=>N(!1),children:"View all services ->"})]})})]},s.label):s.nhsDropdown?(0,a.jsxs)("div",{className:"relative",onMouseEnter:E,onMouseLeave:D,children:[(0,a.jsxs)(l.Link,{to:s.href,className:"flex items-center gap-1 text-base font-medium text-white/80 hover:text-white transition-colors","aria-haspopup":"true","aria-expanded":b,children:[s.label,(0,a.jsx)(d.A,{className:"h-4 w-4 transition-transform ".concat(b?"rotate-180":"")})]}),b&&(0,a.jsx)("div",{className:"absolute left-1/2 top-full z-50 -translate-x-1/2 pt-3",onMouseEnter:E,onMouseLeave:D,children:(0,a.jsx)("div",{className:"w-[280px] rounded-2xl border border-white/10 bg-secondary/95 backdrop-blur-md shadow-2xl p-3 flex flex-col gap-1",children:g.map(e=>(0,a.jsx)(l.Link,{to:e.slug,className:"rounded-xl px-3 py-2.5 text-sm text-white/80 hover:bg-white/10 hover:text-white transition-colors",onClick:()=>w(!1),children:e.name},e.slug))})})]},s.label):(0,a.jsx)(l.Link,{to:s.href,className:"text-base font-medium text-white/80 hover:text-white transition-colors",children:s.label},s.label))}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsxs)("button",{onClick:()=>{S?y(!0):f.location.href="https://www.pharmappy.com/appInstall?ods=FP141"},className:"hidden min-[1100px]:inline-flex items-center gap-2 rounded-full border border-white/20 bg-white/10 px-6 py-3 text-white/90 transition-colors hover:bg-white/20 hover:text-white",children:[(0,a.jsx)(o.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"hidden text-sm font-medium min-[1300px]:inline",children:"My A
1ccount"})]}),(0,a.jsx)(l.Link,{to:"/services",className:"hidden sm:inline-flex items-center px-6 py-3 bg-primary text-primary-foreground text-base font-medium rounded-full hover:bg-primary/90 transition-colors",children:"Book"}),(0,a.jsx)("button",{onClick:()=>t(!0),className:"min-[1100px]:hidden p-2 text-white",children:(0,a.jsx)(c.A,{className:"w-6 h-6"})})]})]})})]})}},6892:(e,s,t)=>{t.r(s),t.d(s,{default:()=>eE});var a=t(5155),r=t(7088),i=t(2115),l=t(3919);let n=void 0===globalThis.document?l.A:globalThis.document,d=()=>{(0,i.useEffect)(()=>{let e=n.createElement("meta");return e.name="robots",e.content="noindex, nofollow",n.head.appendChild(e),()=>{n.head.removeChild(e)}},[])};var o=t(9219),c=t(4452),m=t(7944),x=t(1603),h=t(8867),p=t(476);let u=e=>{let{currentStep:s,steps:t}=e;return(0,a.jsx)("div",{className:"flex items-center justify-between max-w-lg mx-auto",children:t.map((e,r)=>{let i=r+1,l=i<s,n=i===s;return(0,a.jsxs)("div",{className:"flex items-center flex-1 last:flex-initial",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("div",{className:(0,p.cn)("w-10 h-10 rounded-full flex items-center justify-center font-semibold text-sm transition-all duration-300",l&&"bg-primary text-primary-foreground shadow-md shadow-primary/25",n&&"bg-primary text-primary-foreground ring-[3px] ring-primary/20 shadow-lg shadow-primary/20",!l&&!n&&"bg-muted text-muted-foreground"),children:l?(0,a.jsx)(h.A,{className:"w-5 h-5",strokeWidth:2.5}):i}),(0,a.jsx)("span",{className:(0,p.cn)("text-xs mt-2 hidden md:block font-medium transition-colors",n?"text-primary":l?"text-secondary":"text-muted-foreground"),children:e})]}),r<t.length-1&&(0,a.jsx)("div",{className:"flex-1 mx-3 mt-[-1.25rem] md:mt-[-0.5rem]",children:(0,a.jsx)("div",{className:(0,p.cn)("h-[2px] w-full rounded-full transition-colors duration-300",i<s?"bg-primary":"bg-border")})})]},e)})})};var f=t(4522),g=t(6103),j=t(2066),y=t(5381),v=t(98),N=t(4839),b=t(3239),w=t(6889),k=t(3817),A=t(865);let S={"travel-clinic":f.A,"ear-wax-removal":g.A,"covid-flu":j.A,"weight-loss":y.A,aesthetics:v.A,"occupational-health":N.A},C=e=>{var s;let{service:t}=e,r=S[t.id]||t.icon||b.A,i=t.displayName||t.name;return(0,a.jsxs)("div",{className:"bg-gradient-to-r from-primary/5 to-accent/5 rounded-2xl p-6 border border-primary/10",children:[(0,a.jsxs)("div",{className:"flex items-start gap-4",children:[(0,a.jsx)("div",{className:"w-14 h-14 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0",children:(0,a.jsx)(r,{className:"w-7 h-7 text-primary"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"font-display font-semibold text-secondary text-lg",children:i}),t.bookingTagline&&(0,a.jsx)("p",{className:"text-primary font-medium text-sm mt-0.5",children:t.bookingTagline}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground mt-1.5 leading-relaxed",children:t.bookingDescription||t.description||(null===(s=t.page)||void 0===s?void 0:s.seoDescription)||""})]})]}),(0,a.jsx)("div",{className:"flex items-center mt-4 pt-4 border-t border-primary/10 text-xs text-muted-foreground",children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(w.A,{className:"w-3.5 h-3.5 text-primary"}),(0,a.jsx)("span",{children:"Same-Day Available"})]}),(0,a.jsx)("div",{className:"h-3 w-px bg-border"}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(k.A,{className:"w-3.5 h-3.5 text-primary"}),(0,a.jsx)("span",{children:"GPhC Registered"})]}),(0,a.jsx)("div",{className:"h-3 w-px bg-border"}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(A.A,{className:"w-3.5 h-3.5 fill-accent text-accent"}),(0,a.jsx)("span",{children:"4.9 Rating"})]})]})})]})},P=i.forwardRef((e,s)=>{let{className:t,type:r,...i}=e;return(0,a.jsx)("input",{type:r,className:(0,p.cn)("flex h-12 w-full rounded-xl border border-input bg-background px-4 py-3 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground
1/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:border-primary/50 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...i})});P.displayName="Input";var E=t(6195);let D=(0,t(1027).F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),T=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(E.b,{ref:s,className:(0,p.cn)(D(),t),...r})});T.displayName=E.b.displayName;var F=t(8751),M=t(9053),L=t(8686),I=t(2187),Y=t(1719),_=t(1902);let B=I.bL;I.YJ;let R=I.WT,z=i.forwardRef((e,s)=>{let{className:t,children:r,...i}=e;return(0,a.jsxs)(I.l9,{ref:s,className:(0,p.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...i,children:[r,(0,a.jsx)(I.In,{asChild:!0,children:(0,a.jsx)(Y.A,{className:"h-4 w-4 opacity-50"})})]})});z.displayName=I.l9.displayName;let O=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(I.PP,{ref:s,className:(0,p.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(_.A,{className:"h-4 w-4"})})});O.displayName=I.PP.displayName;let G=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(I.wn,{ref:s,className:(0,p.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,a.jsx)(Y.A,{className:"h-4 w-4"})})});G.displayName=I.wn.displayName;let $=i.forwardRef((e,s)=>{let{className:t,children:r,position:i="popper",...l}=e;return(0,a.jsx)(I.ZL,{children:(0,a.jsxs)(I.UC,{ref:s,className:(0,p.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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","popper"===i&&"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:i,...l,children:[(0,a.jsx)(O,{}),(0,a.jsx)(I.LM,{className:(0,p.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,a.jsx)(G,{})]})})});$.displayName=I.UC.displayName,i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(I.JU,{ref:s,className:(0,p.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...r})}).displayName=I.JU.displayName;let U=i.forwardRef((e,s)=>{let{className:t,children:r,...i}=e;return(0,a.jsxs)(I.q7,{ref:s,className:(0,p.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t),...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(I.VF,{children:(0,a.jsx)(h.A,{className:"h-4 w-4"})})}),(0,a.jsx)(I.p4,{children:r})]})});U.displayName=I.q7.displayName,i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(I.wv,{ref:s,className:(0,p.cn)("-mx-1 my-1 h-px bg-muted",t),...r})}).displayName=I.wv.displayName;let q=e=>{let s=e.replace(/\D/g,"");return s.length<=2?s:s.length<=4?"".concat(s.slice(0,2),"/").concat(s.slice(2)):"".concat(s.slice(0,2),"/").concat(s.slice(2,4),"/").concat(s.slice(4,8))},J=e=>{let{data:s,onUpdate:t,onNext:r,isSubmitting:l,submitError:n}=e,[d,o]=(0,i.useState)({}),c=(e,a)=>{"dob"===e&&(a=q(a)),t({...s,[e]:a}),d[e]&&o(s=>({...s,[e]:void 0}))},m=()=>{let e={};return s.firstName.trim()?s.firstName.length>50&&(e.firstName="First name must be less than 50 characters"):e.firstName="First name is required",s.lastName.trim()?s.lastName.length>50&&(e.lastName="Last name must be less than 50 characters"):e.lastName="Last name is required",s.gender||(e.gender="Please select a gender"),s.dob?/^\d{2}\/\d{2}\/\d{4}$/.test(s.dob)||(e.dob="Use DD/MM/YYYY format"):e.dob="Date of birth is required",s.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s.email)||(e.email="Invalid email address"):e.email="Email is required",s.phone.trim()?s.phone.replace(/\D/g,"").length<10&&(e.phone="Enter a valid phone number"):e.phone="Phone number is required",s.postcode.trim()?s.postcode.length>10&&(e.postcode="Postcode must be less than 10 characters"):e.postcode="Postcode is required",o(e),0===Object.keys(e).length};return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(T,{htmlFor:"firstName",children:"First Name *"}),(0,a.jsx)(P,{id:"firstName",value:s.firstName,onChange:e=>c("firstName",e.target.value),placeholder:"Enter your first name",className:d.firstName?"border-destructive":""}),d.firstName&&(0,a.jsx)("p",{className:"text-sm text-destructive",children:d.firstName})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(T,{htmlFor:"lastName",children:"Last Name *"}),(0,a.jsx)(P,{id:"lastName",value:s.lastName,onChange:e=>c("lastName",e.target.value),placeholder:"Enter your last name",className:d.lastName?"border-destructive":""}),d.lastName&&(0,a.jsx)("p",{className:"text-sm text-destructive",children:d.lastName})]})]}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(T,{htmlFor:"gender",children:"Gender *"}),(0,a.jsxs)(B,{value:s.gender,onValueChange:e=>c("gender",e),children:[(0,a.jsx)(z,{className:d.gender?"border-destructive":"",children:(0,a.jsx)(R,{placeholder:"Select gender"})}),(0,a.jsxs)($,{children:[(0,a.jsx)(U,{value:"male",children:"Male"}),(0,a.jsx)(U,{value:"female",children:"Female"}),(0,a.jsx)(U,{value:"other",children:"Other"}),(0,a.jsx)(U,{value:"prefer-not-to-say",children:"Prefer not to say"})]})]}),d.gender&&(0,a.jsx)("p",{className:"text-sm text-destructive",children:d.gender})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(T,{htmlFor:"dob",children:"Date of Birth *"}),(0,a.jsx)(P,{id:"dob",value:s.dob,onChange:e=>c("dob",e.target.value),placeholder:"DD/MM/YYYY",maxLength:10,className:d.dob?"border-destructive":""}),d.dob&&(0,a.jsx)("p",{className:"text-sm text-destructive",children:d.dob})]})]}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(T,{htmlFor:"email",children:"Email Address *"}),(0,a.jsx)(P,{id:"email",type:"email",value:s.email,onChange:e=>c("email",e.target.value),placeholder:"[email protected]",className:d.email?"border-destructive":""}),d.email&&(0,a.jsx)("p",{className:"text-sm text-destructive",children:d.email})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(T,{htmlFor:"phone",children:"Phone Number *"}),(0,a.jsx)(P,{id:"phone",type:"tel",value:s.phone,onChange:e=>c("phone",e.target.value),placeholder:"07xxx xxxxxx",className:d.p
1hone?"border-destructive":""}),d.phone&&(0,a.jsx)("p",{className:"text-sm text-destructive",children:d.phone})]})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(T,{htmlFor:"postcode",children:"Postcode *"}),(0,a.jsx)(P,{id:"postcode",value:s.postcode,onChange:e=>c("postcode",e.target.value),placeholder:"Enter your postcode",className:"max-w-xs ".concat(d.postcode?"border-destructive":"")}),d.postcode&&(0,a.jsx)("p",{className:"text-sm text-destructive",children:d.postcode})]}),n&&(0,a.jsx)("div",{className:"p-3 rounded-xl bg-destructive/10 border border-destructive/20 text-destructive text-sm",children:n}),(0,a.jsxs)("div",{className:"pt-6 space-y-3",children:[(0,a.jsxs)(F.$,{onClick:()=>{m()&&r()},size:"lg",disabled:l,className:"w-full rounded-full text-base py-6 gap-2 shadow-lg shadow-primary/20 hover:shadow-xl hover:shadow-primary/25 transition-all",children:[l?"Submitting...":"Continue to Date & Time",!l&&(0,a.jsx)(M.A,{className:"w-5 h-5"})]}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground text-center flex items-center justify-center gap-1.5",children:[(0,a.jsx)(L.A,{className:"w-3 h-3"}),"Your information is secure and never shared"]})]})]})};var V=t(3518),Z=t(6967),H=t(830);function W(e){let{className:s,classNames:t,showOutsideDays:r=!0,...i}=e;return(0,a.jsx)(H.hv,{showOutsideDays:r,className:(0,p.cn)("p-3",s),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:(0,p.cn)((0,F.r)({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 focus-within:relative focus-within:z-20",day:(0,p.cn)((0,F.r)({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:e=>{let{...s}=e;return(0,a.jsx)(V.A,{className:"h-4 w-4"})},IconRight:e=>{let{...s}=e;return(0,a.jsx)(Z.A,{className:"h-4 w-4"})}},...i})}W.displayName="Calendar";var K=t(6695),Q=t(7813),X=t(32),ee=t(4505),es=t(366),et=t(7364),ea=t(3541);function er(e){return"string"==typeof e?e:e&&"object"==typeof e&&(e.time||e.timeSlot||e.startTime||e.label)||null}let ei=e=>{let{selectedDate:s,selectedTime:t,onDateChange:r,onTimeChange:l,onNext:n,onBack:d,service:o,onPharmacyIDChange:c}=e,[m,x]=(0,i.useState)(""),[h,u]=(0,i.useState)([]),[f,g]=(0,i.useState)(!1),[j,y]=(0,i.useState)("");(0,i.useEffect)(()=>{if(!s){u([]),y("");return}(async()=>{g(!0),y(""),u([]),l("");try{let e=o.verseID||"",t=await fetch("https://webhandler.pharmappy.com/api/getPharmacyForService",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({date:"".concat(s.getFullYear(),"-").concat(String(s.getMonth()+1).padStart(2,"0"),"-").concat(String(s.getDate()).padStart(2,"0"),"T12:00:00.000Z"),verseID:e,websiteID:ea.uZ})}),a=await t.json();if(!t.ok)throw Error(a.message||"Failed to fetch available times.");
1u((a.slots||[]).map(er).filter(Boolean)),c(a.pharmacyID||""),a.slots&&0!==a.slots.length||y("No available appointment slots on this date. Please try another day.")}catch(e){y(e.message||"Failed to load available times. Please try again.")}finally{g(!1)}})()},[s]);let v=s&&t,N=e=>e.time||e.label||e,b=e=>parseInt(N(e).split(":")[0]||"0"),w=h.filter(e=>12>b(e)),k=h.filter(e=>b(e)>=12&&16>b(e)),A=h.filter(e=>b(e)>=16),S=(e,s)=>0===s.length?null:(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-sm font-medium text-muted-foreground mb-3",children:e}),(0,a.jsx)("div",{className:"grid grid-cols-4 gap-2",children:s.map((e,s)=>{let r=N(e);return(0,a.jsx)("button",{onClick:()=>{l(r),x("")},className:(0,p.cn)("px-3 py-2.5 rounded-xl text-sm font-medium transition-all duration-200",t===r?"bg-primary text-primary-foreground shadow-md shadow-primary/20":"bg-muted hover:bg-primary/10 hover:text-primary text-secondary"),children:r},s)})})]});return(0,a.jsxs)("div",{className:"space-y-8",children:[(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 gap-8",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-display font-semibold text-secondary mb-4",children:"Select a Date"}),(0,a.jsx)("div",{className:"bg-muted rounded-2xl p-4 inline-block",children:(0,a.jsx)(W,{mode:"single",selected:s,onSelect:e=>{r(e),x("")},disabled:e=>(0,K.Y)(e,(0,Q.o)(new Date)),className:"pointer-events-auto"})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-display font-semibold text-secondary mb-4",children:"Select a Time"}),s?(0,a.jsx)("div",{className:"space-y-6",children:f?(0,a.jsxs)("div",{className:"bg-muted rounded-2xl p-8 text-center",children:[(0,a.jsx)(ee.A,{className:"w-8 h-8 text-primary mx-auto mb-3 animate-spin"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"Loading available times..."})]}):j?(0,a.jsxs)("div",{className:"bg-muted rounded-2xl p-8 text-center",children:[(0,a.jsx)(es.A,{className:"w-8 h-8 text-muted-foreground/40 mx-auto mb-3"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:j})]}):(0,a.jsxs)(a.Fragment,{children:[S("Morning",w),S("Afternoon",k),S("Evening",A)]})}):(0,a.jsxs)("div",{className:"bg-muted rounded-2xl p-8 text-center",children:[(0,a.jsx)(es.A,{className:"w-8 h-8 text-muted-foreground/40 mx-auto mb-3"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"Select a date to view available time slots"})]})]})]}),v&&(0,a.jsx)("div",{className:"bg-primary/5 rounded-xl p-4 border border-primary/10",children:(0,a.jsxs)("p",{className:"text-secondary flex items-center gap-2",children:[(0,a.jsx)(es.A,{className:"w-4 h-4 text-primary"}),(0,a.jsx)("span",{className:"font-medium",children:"Selected:"})," ",(0,X.GP)(s,"EEEE, MMMM d, yyyy")," at ",t]})}),m&&(0,a.jsx)("p",{className:"text-destructive text-sm",children:m}),(0,a.jsxs)("div",{className:"flex flex-col-reverse sm:flex-row gap-3 pt-4",children:[(0,a.jsxs)(F.$,{variant:"outline",onClick:d,size:"lg",className:"rounded-full gap-2",children:[(0,a.jsx)(et.A,{className:"w-4 h-4"}),"Back"]}),(0,a.jsxs)(F.$,{onClick:()=>{if(!s){x("Please select a date");return}if(!t){x("Please select a time slot");return}x(""),n()},size:"lg",className:(0,p.cn)("sm:flex-1 rounded-full text-base py-4 gap-2 transition-all",v?"shadow-lg shadow-primary/20 hover:shadow-xl hover:shadow-primary/25":"opacity-80"),children:["Continue to Review",(0,a.jsx)(M.A,{className:"w-5 h-5"})]})]})]})};var el=t(6352);let en=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(el.bL,{ref:s,className:(0,p.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...r,children:(0,a.jsx)(el.C1,{className:(0,p.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(h.A,{className:"h-4 w-4"})})})});en.displayName=el.bL.displayName;var ed=t(872);let eo={male:"Male",female:"Female",other:"Other","prefer-not-to-say":"Prefer not to say"},ec=e=>{let{service:s,personalInfo:t,selectedDate:r,selectedTime:l,onEdit:n,onConfirm:d,onBack:c,isSubmitting:m,submitError:x}=e,[h,p]=(0,i.useState)(!1);return(0,a.jsxs)("div",{className:"space-y-8",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,a.jsx)("h3",{className:"font-display font-semibold text-secondary",children:"Service"})}),(0,a.jsx)(C,{service:s})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h3",{className:"font-display font-semibold text-secondary",children:"Personal Details"}),(0,a.jsxs)(F.$,{variant:"ghost",size:"sm",onClick:()=>n(1),className:"gap-2 text-primary",children:[(0,a.jsx)(ed.A,{className:"w-4 h-4"}),"Edit"]})]}),(0,a.jsx)("div",{className:"bg-muted rounded-2xl p-6 space-y-3",children:(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Full Name"}),(0,a.jsxs)("p",{className:"font-medium text-secondary",children:[t.firstName," ",t.lastName]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Gender"}),(0,a.jsx)("p",{className:"font-medium text-secondary",children:eo[t.gender]||t.gender})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Date of Birth"}),(0,a.jsx)("p",{className:"font-medium text-secondary",children:t.dob})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,a.jsx)("p",{className:"font-medium text-secondary",children:t.email})]}),t.phone&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Phone"}),(0,a.jsx)("p",{className:"font-medium text-secondary",children:t.phone})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Postcode"}),(0,a.jsx)("p",{className:"font-medium text-secondary",children:t.postcode})]})]})})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h3",{className:"font-display font-semibold text-secondary",children:"Appointment Date & Time"}),(0,a.jsxs)(F.$,{variant:"ghost",size:"sm",onClick:()=>n(2),className:"gap-2 text-primary",children:[(0,a.jsx)(ed.A,{className:"w-4 h-4"}),"Edit"]})]}),(0,a.jsx)("div",{className:"bg-muted rounded-2xl p-6",children:(0,a.jsxs)("p",{className:"font-medium text-secondary",children:[(0,X.GP)(r,"EEEE, MMMM d, yyyy")," at ",l]})})]}),(0,a.jsxs)("div",{className:"flex items-start gap-3 p-4 rounded-xl bg-muted/50 border border-border",children:[(0,a.jsx)(en,{id:"terms",checked:h,onCheckedChange:e=>p(!0===e)}),(0,a.jsxs)("label",{htmlFor:"terms",className:"text-sm text-muted-foreground leading-relaxed cursor-pointer",children:["I have read and agree to the"," ",(0,a.jsx)(o.Link,{to:"/privacy-policy",target:"_blank",className:"text-primary underline hover:text-primary/80",children:"Terms & Conditions and Privacy Policy"})]})]}),x&&(0,a.jsx)("div",{className:"p-3 rounded-xl bg-destructive/10 border border-destructive/20 text-destructive text-sm",children:x}),(0,a.jsxs)("div",{className:"flex flex-col-reverse sm:flex-row gap-3 pt-4",children:[(0,a.jsxs)(F.$,{variant:"outline",onClick:c,size:"lg",className:"rounded-full gap-2",children:[(0,a.jsx)(et.A,{className:"w-4 h-4"}),"Back"]}),(0,a.jsxs)(F.$,{onClick:d,size:"lg",className:"sm:flex-1 rounded-full text-base py-6 gap-2 shadow-lg shadow-primary/20 hover:shadow-xl hover:shadow-
1primary/25 transition-all",disabled:!h||m,children:[(0,a.jsx)(b.A,{className:"w-5 h-5"}),m?"Confirming...":"Confirm Booking"]})]}),h&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground text-center flex items-center justify-center gap-1.5",children:[(0,a.jsx)(k.A,{className:"w-3 h-3 text-accent"}),"Free cancellation up to 24 hours before your appointment"]})]})};var em=t(6336),ex=t(6507);let eh=e=>{let{service:s,personalInfo:t,selectedDate:r,selectedTime:i}=e;return(0,a.jsxs)(c.PY.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"text-center space-y-8 py-8",children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)(c.PY.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},className:"w-20 h-20 rounded-full bg-accent/10 flex items-center justify-center",children:(0,a.jsx)(em.A,{className:"w-10 h-10 text-accent"})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-display font-bold text-secondary mb-2",children:"You're All Set!"}),(0,a.jsxs)("p",{className:"text-muted-foreground text-lg",children:["Thank you, ",t.firstName,". Your appointment is confirmed."]})]}),(0,a.jsxs)("div",{className:"bg-muted rounded-2xl p-6 max-w-md mx-auto text-left space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 pb-3 border-b border-border",children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:(()=>{var e;let t=null!==(e=s.icon)&&void 0!==e?e:em.A;return(0,a.jsx)(t,{className:"w-5 h-5 text-primary"})})()}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-semibold text-secondary",children:s.displayName||s.name}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"Sidley Pharmacy"})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(es.A,{className:"w-5 h-5 text-primary flex-shrink-0"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-secondary",children:(0,X.GP)(r,"EEEE, MMMM d, yyyy")}),(0,a.jsxs)("p",{className:"text-sm text-muted-foreground",children:["at ",i]})]})]}),(0,a.jsxs)("div",{className:"pt-3 border-t border-border",children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Confirmation sent to"}),(0,a.jsx)("p",{className:"font-medium text-secondary",children:t.email})]})]}),(0,a.jsx)("div",{className:"pt-4",children:(0,a.jsx)(F.$,{asChild:!0,size:"lg",className:"rounded-full gap-2 px-8",children:(0,a.jsxs)(o.Link,{to:"/",children:[(0,a.jsx)(ex.A,{className:"w-4 h-4"}),"Return to Home"]})})})]})};var ep=t(2649),eu=t(367),ef=t(1895),eg=t(4952),ej=t(798),ey=t(673);let ev={"travel-clinic":f.A,"ear-wax-removal":g.A,"covid-flu":j.A,"weight-loss":y.A,aesthetics:v.A,"occupational-health":N.A},eN={"travel-clinic":ep,"ear-wax-removal":eu,"covid-flu":ef,"weight-loss":eg,aesthetics:ej,"occupational-health":ey},eb=e=>{var s,t;let{service:r}=e,i=(null==r?void 0:r.id)||"",l=(null==r?void 0:r.displayName)||(null==r?void 0:r.name)||"",n=r?"/services/".concat(r.slug||r.id):"/services",d=(null==r?void 0:null===(t=r.images)||void 0===t?void 0:null===(s=t.generated)||void 0===s?void 0:s.hero)||eN[null==r?void 0:r.slug]||eN[i]||(null==r?void 0:r.imageUrl)||"",m=ev[i]||(null==r?void 0:r.icon)||b.A,x=!!r&&!!d;return(0,a.jsxs)("section",{className:"relative overflow-hidden",children:[x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url(".concat(d,")"),backgroundPosition:"center 40%"}}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-secondary/75 via-secondary/55 to-secondary/40"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-secondary/60 via-trans
1parent to-transparent"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-secondary"}),(0,a.jsx)("div",{className:"absolute top-0 right-0 w-[500px] h-[500px] rounded-full bg-primary/5 -translate-y-1/2 translate-x-1/3"}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 w-[300px] h-[300px] rounded-full bg-accent/5 translate-y-1/2 -translate-x-1/3"})]}),(0,a.jsxs)("div",{className:"container-wide relative z-10 pt-24 pb-8 md:pb-10",children:[(0,a.jsxs)(c.PY.nav,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.15},className:"flex items-center gap-2 text-xs text-white/40 mb-4",children:[(0,a.jsx)(o.Link,{to:"/",className:"hover:text-white/70 transition-colors",children:"Home"}),(0,a.jsx)("span",{children:"/"}),x&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Link,{to:n,className:"hover:text-white/70 transition-colors",children:l}),(0,a.jsx)("span",{children:"/"})]}),(0,a.jsx)("span",{className:"text-white/70",children:"Book Appointment"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-6",children:[(0,a.jsxs)("div",{className:"flex-1",children:[x&&m&&(0,a.jsxs)(c.PY.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.2},className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-white/10 border border-white/15 text-white/90 text-xs font-medium mb-3",children:[(0,a.jsx)(m,{className:"w-3.5 h-3.5 text-accent"}),l]}),(0,a.jsx)(c.PY.h1,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4,delay:.25},className:"text-2xl md:text-3xl lg:text-4xl font-display font-bold text-white leading-tight",children:x?(0,a.jsxs)(a.Fragment,{children:["Book Your ",(0,a.jsx)("span",{className:"text-accent",children:l})," Appointment"]}):"Book Your Appointment"})]}),(0,a.jsxs)(c.PY.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.4},className:"hidden md:flex items-center gap-4 text-white/60 text-xs",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[[void 0,void 0,void 0,void 0,void 0].map((e,s)=>(0,a.jsx)(A.A,{className:"w-3 h-3 fill-accent text-accent"},s)),(0,a.jsx)("span",{className:"ml-1",children:"4.9"})]}),(0,a.jsx)("div",{className:"h-3 w-px bg-white/20"}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(w.A,{className:"w-3 h-3"}),(0,a.jsx)("span",{children:"Same-Day"})]}),(0,a.jsx)("div",{className:"h-3 w-px bg-white/20"}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(k.A,{className:"w-3 h-3"}),(0,a.jsx)("span",{children:"GPhC Registered"})]})]})]})]})]})};var ew=t(4928),ek=t(1613),eA=t(2823);let eS=void 0===globalThis.sessionStorage?r.A.sessionStorage:globalThis.sessionStorage,eC=["Personal Info","Date & Time","Review","Confirmation"],eP={male:"m",female:"f",other:"i","prefer-not-to-say":"n"},eE=()=>{d();let[e,s]=(0,o.useSearchParams)(),t=e.get("service")||"",[r,l]=(0,i.useState)(1),[n,h]=(0,i.useState)(t),[p,f]=(0,i.useState)({firstName:"",lastName:"",gender:"",dob:"",email:"",phone:"",postcode:""}),[g,j]=(0,i.useState)(),[y,v]=(0,i.useState)(""),[N,b]=(0,i.useState)(""),[A,S]=(0,i.useState)(""),[P,E]=(0,i.useState)(!1),[D,T]=(0,i.useState)(""),F=(0,ew.md)(ea.GS),M=F.find(e=>e.id===n||e.slug===n);(0,i.useEffect)(()=>{t&&h(t)},[t]);let L=()=>l(e=>Math.max(e-1,1)),I=async()=>{E(!0),T("");try{let[e,s,t]=p.dob.split("/"),a="".concat(t,"-").concat(s,"-").concat(e),r=await fetch("https://webhandler.pharmappy.com/api/patientEntry",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({firstName:p.firstName.trim(),lastName:p.lastName.trim(),dateOfBirth:a,gender:eP[p.gender]||p.gender,postcode:p.postcode.trim(),email:p.email.trim(),phoneNumber:p.phone.trim()})}),i=await r.json();if(!r.ok)throw Error(i.message||"Failed to submit your details. Please try again.");if(!i.token)throw Error("Unable to verify your details. Please try again.");b(i.token),l(2)}catch(e){T(e.message||"Something went wrong. Please try again.")}finally{E(!1)}},Y=async()=>{if(M&&g){E(!0),T("");try{let e=g.getFullYear(),s=String(g.getMonth()+1).padStart(2,"0"),t=String(g.getDate()).padStart(2,"0"),a="".concat(e,"-").concat(s,"-").concat(t,"T00:00:00.000Z"),[r,i,n]=p.dob.split("/"),d="".concat(n,"-").concat(i,"-").concat(r),o=await fetch("https://webhandler.pharmappy.com/api/bookAppointment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:N,date:a,pharmacyID:A,pharmacyId:A,verseID:M.verseID||"",serviceID:M.serviceID||M.id,name:M.displayName||M.name,firstName:p.firstName,lastName:p.lastName,dateOfBirth:d,email:p.email,phoneNumber:p.phone.trim(),postCode:p.postcode.trim(),timeSlot:y,isGroupLead:!1,websiteID:ea.uZ})}),c=await o.json();if(!o.ok)throw Error(c.message||"Failed to confirm booking. Please try again.");eS.setItem("bookingSuccess",JSON.stringify({firstName:p.firstName,lastName:p.lastName,email:p.email,selectedDate:a,selectedTime:y,serviceName:M.name})),l(4)}catch(e){T(e.message||"Something went wrong. Please try again.")}finally{E(!1)}}},_=M?"Book ".concat(M.name," - Sidley Pharmacy"):"Book Appointment - Sidley Pharmacy",O=M?"Book your ".concat(M.name," appointment online at Sidley Pharmacy, Bexhill. Same-day appointments available."):"Book your healthcare appointment online at Sidley Pharmacy, Bexhill. Same-day appointments available.";return(0,a.jsxs)("div",{className:"min-h-screen bg-background",children:[(0,a.jsx)(ek.A,{title:_,description:O,canonical:"/booking"}),(0,a.jsx)(m.A,{}),(0,a.jsx)(eb,{service:M}),r<4&&(0,a.jsx)("div",{className:"bg-muted border-b border-border",children:(0,a.jsxs)("div",{className:"container-wide max-w-4xl py-3 flex items-center justify-center gap-6 md:gap-10 text-xs text-muted-foreground",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(w.A,{className:"w-3.5 h-3.5 text-primary"}),(0,a.jsx)("span",{children:"Takes 2 min"})]}),(0,a.jsx)("div",{className:"h-3 w-px bg-border"}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(eA.A,{className:"w-3.5 h-3.5 text-primary"}),(0,a.jsx)("span",{children:"No account needed"})]}),(0,a.jsx)("div",{className:"h-3 w-px bg-border"}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(k.A,{className:"w-3.5 h-3.5 text-primary"}
1),(0,a.jsx)("span",{children:"Free cancellation"})]})]})}),(0,a.jsx)("section",{className:"py-8 md:py-12",children:(0,a.jsxs)("div",{className:"container-wide max-w-4xl",children:[(0,a.jsx)("div",{className:"mb-8",children:(0,a.jsx)(u,{currentStep:r,steps:eC})}),r<4&&3!==r&&(0,a.jsx)("div",{className:"mb-6",children:M?(0,a.jsx)(C,{service:M}):(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("label",{className:"text-sm font-medium text-secondary",children:"Select a Service"}),(0,a.jsxs)(B,{value:n,onValueChange:e=>{h(e),s({service:e})},children:[(0,a.jsx)(z,{className:"w-full rounded-xl",children:(0,a.jsx)(R,{placeholder:"Choose a service"})}),(0,a.jsx)($,{children:F.map(e=>(0,a.jsx)(U,{value:e.id,children:e.displayName||e.name},e.id))})]})]})}),(0,a.jsxs)(c.PY.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{duration:.3,ease:[.25,1,.5,1]},children:[1===r&&(0,a.jsx)(J,{data:p,onUpdate:f,onNext:I,isSubmitting:P,submitError:D}),2===r&&M&&(0,a.jsx)(ei,{selectedDate:g,selectedTime:y,onDateChange:j,onT
1imeChange:v,onNext:()=>l(3),onBack:L,service:M,onPharmacyIDChange:S}),3===r&&M&&g&&(0,a.jsx)(ec,{service:M,personalInfo:p,selectedDate:g,selectedTime:y,onEdit:e=>l(e),onConfirm:Y,onBack:L,isSubmitting:P,submitError:D}),4===r&&M&&g&&(0,a.jsx)(eh,{service:M,personalInfo:p,selectedDate:g,selectedTime:y})]},r)]})}),(0,a.jsx)(x.A,{})]})}}}]);
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.