1import{u as f,w as D,x as z,y as B,g as L,ax as O,_ as p,r as P,j as e,t as H,z as r,ar as d,aw as I,N as V,aa as k,I as F,Q as Y,aG as E,aH as x,V as G}from"./index-Ba5x2QVK.js";import{C as Q}from"./success-DXtqsWKN.js";import{A as R,F as U}from"./FinancialAssistanceModal-35XnTq32.js";import{n as _,s as $}from"./appointmentSelector-C8fwNuKK.js";import{T as q}from"./ShowSlotListingByService-BGBrjPpD.js";import"./TriageQuestionnaireRegistrationContainer-DD2D7YES.js";import"./index-CdHAzZXF.js";import"./DescriptionComponent-BY_CcamP.js";import"./calendar-empty-9cF4SWqI.js";import"./StateDescriptionScreen-DOoiqNSU.js";import"./formatErrorMessage-BebLn3kD.js";import"./form-BwVQ8j7O.js";import"./request-form-DAj-Bp2F.js";import"./index-CIgKKhPx.js";import"./index-CjX5232D.js";import"./index-CoBGeWf3.js";import"./index-Dcr8iWjF.js";import"./MobileStickyFooter-B4125FCe.js";import"./index-CRm-aGqA.js";import"./useNavigateInternalRequestForm-B0WkD3aW.js";import"./systemSettingsKey-BCUzCxG8.js";import"./index-CNnIpRwJ.js";import"./selector-C8vA2GzH.js";import"./index-CtiSkMXN.js";import"./useReloadNativeApi-CyXRmCYb.js";import"./index-CYPrZey_.js";import"./questionnaire-MUZveCCm.js";import"./validateIsNumber-BZuUy_DI.js";import"./form-rules-DBhjJu5r.js";import"./index-BrEeQElA.js";import"./validateNric-CjhNoSSU.js";import"./validatePhoneNumber-XAvhYRzd.js";import"./validatePostalCode-CvMQUtRC.js";import"./makeNew-DwquW_z-.js";import"./form-rules-CulKiD7I.js";import"./search-icon-FN5u1EK8.js";import"./compareStrings-BvSZ_pFp.js";import"./index-C_mgvDFA.js";import"./isHaveError-Lyi9DjB1.js";import"./appointment-dedicated-PPmXEREZ.js";import"./formatListStyleAsHtml-0azDkRSW.js";import"./useHandleNewPatientForAppointment-DkeSz9iH.js";import"./useNewPatient-ZM178U9O.js";import"./useValidShVideoConsultService-BDYdmIAI.js";import"./getLocationsBySearchKey-DIrntjMt.js";const{Text:a}=H,J=()=>{const{t:i}=f(),u=D(),h=z(),{memberIdentifier:g}=B(),{sourceApp:m,isMobileView:j,isSharedServiceView:b}=L(),N=O(),{selectedLocation:t,selectedServiceType:o,successResponse:y}=p(_),n=p($),{AppointmentType:v,AppointmentTypeMessage:A,Location:l,Specialty:C,Start:s}=y??{},c=P.useMemo(()=>o?.ServicesByOrganization.find(M=>M?.Organization===t?.OrganizationCode),[t?.OrganizationCode,o?.ServicesByOrganization]),T=()=>l?`SingHealth Polyclinics - ${l}`:"",S=()=>{E({endDate:n?.slots?.[0]?.endDateTime??"",id:n?.slots?.[0]?.id??N,location:m===x.HB?T():t?.Name??"",startDate:n?.slots?.[0]?.startDateTime??"",title:m===x.HB?C??"":o?.Name??""})},w=()=>{h(k.clearFinalConfirmMessage()),u(F(Y,{mid:g??""}),{replace:!0})};return e.jsxs("div",{className:d("relative flex flex-col flex-1 gap-4"),children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex h-[315px] flex-col items-center justify-center bg-theme-500",children:[e.jsx("img",{alt:"",className:"absolute top-10 w-20",src:Q}),e.jsx("div",{className:"px-3 text-center text-2xl font-bold",children:i("appointment.appointmentMadeSuccess")})]}),e.jsx("div",{className:"z-card mt-[-80px] flex flex-col items-center gap-2",children:e.jsxs("div",{className:"flex w-[90%] flex-col justify-between gap-x-4 rounded-2xl bg-white px-4 py-6 md:w-[70%]",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("div",{className:"flex gap-4",children:[!!s&&e.jsxs("div",{className:"flex h-fit min-w-[3.475rem] flex-col items-center justify-center rounded-2xl bg-primary-cyan py-[0.2rem] text-center",children:[e.jsx(a,{className:"flex h-7 items-center text-2xl font-bold text-theme-700",children:r(s,"DD")}),e.jsx(a,{className:"pb-[2px] text-xs font-semibold text-theme-700",children:r(s,"MMM")}),e.jsx(a,{className:"pb-[2px] text-xs font-semibold text-theme-700",children:r(s,"YYYY")})]}),e.jsxs("div",{className:d("flex flex-col gap-1",(j||b)&&"mr-1.5"),children:[e.jsx(a,{className:"text-base font-semibold md:text-lg",children:c?.DisplayName||c?.Name||""}),!!s&&e.jsx(a,{className:"text-sm font-semibold text-secondary-blue-400 md:text-base",children:r(s,"ddd, h:mm A")})]})]}),e.jsx("img",{alt:"provider",className:"size-12 object-contain",src:I(t?.LogoCode)})]}),e.jsx("div",{className:"mt-4",children:e.jsx(q,{appointment:{},description:A,isDashboardView:!1,isUpcomingAppointment:!1,isVideoConsult:!1,name:v})})]})})]}),e.jsx("div",{className:"mb-4 mt-auto px-4",children:e.jsx(V,{cancelText:e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx("img",{alt:"add calendar",src:R}),e.jsx("span",{className:"ml-2 font-bold",children:i("appointment.button.addToCalendar")})]}),handleCancel:S,handleSubmit:w,okText:i("appointment.button.viewAppointment")})}),e.jsx(U,{clusterCode:t?.ClusterCode??"",groupCode:t?.GroupCode??"",visitType:
1o?.ServicesByOrganization?.[0]?.ServiceType??""})]})},Ee=()=>{const{t:i}=f();return e.jsx(G,{breadcrumbs:{portal:{breadcrumbsDetails:[{title:"Appointments"}]}},title:i("appointment.breadcrumbs.newAppointment"),children:e.jsx("div",{className:"flex flex-1 flex-col",children:e.jsx(J,{})})})};export{Ee as default};
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.