1import{a as z,d as nt,e as ko,f as rt}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-RQR7NAAO.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-MQDTVH5S.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-NLF3BMGC.js";import{b as Io,d as it}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-VRQAWBOI.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-WTDGRUJF.js";import{a as Co,b as et}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-FLMRUGPV.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-NABYWCKK.js";import{a as G,b as Ro}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-N6RASTLN.js";import{a as uo,b as ot}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-MICTJWWS.js";import{e as bo,f as yo,g as xo,h as So,i as tt,k as L,l as To}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-ZPQTSV5L.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-4S6CN57Q.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-W32ZHF3H.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-DQVILYDG.js";import{W as Zo}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-LF2ZNPJX.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-ENJGLQ5G.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-YIAT3PHQ.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-YOW2EIHB.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-UX6N37AO.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-ZZDBO6DJ.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-DLNBW3AS.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-RES5HBP6.js";import{a as b,b as n,c as B}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-L7HV5O5G.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-VQFBFWXW.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-HQHZVALX.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-YVLS7PMA.js";import{BA as fo,Do as q,E as Z,Ei as C,FK as k,I as Ho,Kh as R,Ki as io,MK as go,Pi as eo,Yh as Jo,Yk as j,Zk as Xo,an as U,ca as Ko,ji as Y,jn as no,kn as ro,kw as so,lw as ao,mw as po,ni as oo,nw as lo,ow as mo,pw as co,ui as A,vi as to}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-XG5PHUHU.js";import{a as Go,b as o,c as N}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-KQAYU5PA.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-U3KHWPVC.js";import{c as O}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-SYOZUNZQ.js";import{e as ho,f as Qo}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-KW7ZE24O.js";import"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-4M7H2BM6.js";import{b as I}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-64MNMPVU.js";import{e as T,h as a,l,m,n as d,p as c}from"https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/chunk-GI4H4HVL.js";var x,M,st,at,pt,lt,H,vo,wo=T(()=>{"use strict";l();m();d();c();x=a(I()),M=a(O());N();B();to();q();st=M.default.div.withConfig({componentId:"sc-1awj0q-0"})` 2 border-bottom: 1px solid ${o.borderLine}; 3 background-color: ${o.theWhiteAlbum}; 4 padding-bottom: 16px; 5`,at=M.default.h1.withConfig({componentId:"sc-1awj0q-1"})` 6 font-size: ${n.default}; 7 font-weight: normal; 8 color: ${o.theWhiteAlbum}; 9 font-family: ${b.medium}; 10 text-align: center; 11 background-color: ${o.seaBreeze}; 12 box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2); 13 text-transform: uppercase; 14 padding: 12px; 15 margin-bottom: 16px; 16`,pt=M.default.div.withConfig({componentId:"sc-1awj0q-2"})` 17 text-align: center; 18`,lt=M.default.div.withConfig({componentId:"sc-1awj0q-3"})` 19 color: ${o.lightText}; 20 font-size: ${n.mediumSmall}; 21 margin-bottom: 2px; 22`,H=class extends x.Component{constructor(){super(...arguments);this.render=()=>x.default.createElement(st,null,x.default.createElement(at,null,U(this.props.location)),x.default.createElement(pt,null,x.default.createElement(lt,null,x.default.createElement(A,{dateTime:this.props.booking.appointment_date,format:oo}))))}},vo=H});var e,p,mt,dt,ct,K,ft,ht,gt,ut,$o,bt,yt,Po,_o,xt,F,Ao,No=T(()=>{"use strict";l();m();d();c();e=a(I()),p=a(O());
22ot();N();B();go();fo();eo();tt();Ro();To();Xo();q();mt=p.default.div.withConfig({componentId:"sc-12gov8s-0"})` 23 margin-top: 8px; 24 padding: 24px; 25 border-top: 1px solid ${o.borderLine}; 26 border-bottom: 1px solid ${o.borderLine}; 27 background-color: ${o.theWhiteAlbum}; 28`,dt=p.default.h2.withConfig({componentId:"sc-12gov8s-1"})` 29 font-size: ${n.mediumLarge}; 30 font-weight: normal; 31 color: ${o.fadeToBlack}; 32 font-family: ${b.medium}; 33 margin-bottom: 8px; 34 text-align: center; 35`,ct=p.default.div.withConfig({componentId:"sc-12gov8s-2"})` 36 color: ${o.lightText}; 37 text-align: center; 38 font-size: ${n.mediumSmall}; 39 max-width: 275px; 40 margin: 0 auto 20px; 41`,K=p.default.div.withConfig({componentId:"sc-12gov8s-3"})` 42 color: ${o.lightText}; 43 font-size: ${n.mediumSmall}; 44`,ft=(0,p.default)(K).withConfig({componentId:"sc-12gov8s-4"})` 45 margin-top: 8px; 46`,ht=p.default.div.withConfig({componentId:"sc-12gov8s-5"})` 47 color: ${o.darkText}; 48 font-size: ${n.default}; 49`,gt=p.default.div.withConfig({componentId:"sc-12gov8s-6"})` 50 display: flex; 51 justify-content: space-between; 52 margin-top: 12px; 53 align-items: center; 54`,ut=(0,p.default)(K).withConfig({componentId:"sc-12gov8s-7"})` 55 flex-grow: 1; 56`,$o=(0,p.default)(L).withConfig({componentId:"sc-12gov8s-8"})` 57 width: 60px; 58 min-width: 60px; 59 padding: 6px; 60 height: 24px; 61 margin-left: 8px; 62 font-size: 12px; 63 text-transform: uppercase; 64 border-color: ${o.borderLine}; 65 ${t=>p.css` 66 background-color: ${t.enabled?o.darkText:o.theWhiteAlbum}; 67 color: ${t.enabled?o.theWhiteAlbum:o.blueMonday}; 68 &:hover { 69 background-color: ${t.enabled?o.darkText:o.theWhiteAlbum}; 70 } 71 &:disabled { 72 color: ${t.enabled?o.theWhiteAlbum:o.blueMonday}; 73 background-color: ${t.enabled?o.darkText:o.theWhiteAlbum}; 74 } 75 &:hover { 76 background-color: ${t.enabled?o.darkText:o.theWhiteAlbum}; 77 } 78 `} 79`,bt=p.default.div.withConfig({componentId:"sc-12gov8s-9"})` 80 margin-top: 16px; 81`,yt=p.default.div.withConfig({componentId:"sc-12gov8s-10"})` 82 margin-top: 16px; 83 text-align: center; 84`,Po="details-root",_o="input-root",xt=(0,p.default)(G).withConfig({componentId:"sc-12gov8s-11"})` 85 & .${Po} { 86 height: 50px; 87 padding: 20px 0; 88 } 89 90 & .${_o} { 91 height: 50px !important; 92 text-indent: 0; 93 padding: 10px 22px; 94 } 95`,F=class extends e.Component{constructor(i){super(i);this.getButtonState=()=>this.props.notes.submitting?yo:this.props.notes.error?xo:this.props.notes.result?So:bo;this.handleForm=i=>{if(i&&i.preventDefault(),!C(this.props.notes.result))return!1;k(mo);let s=this.props.form.getFieldsValue();return this.props.form.validateFields(h=>h?!1:this.props.saveNotes(this.props.booking.id,s.notes,this.state.hasPrescriptions,s.prescriptions)),!1};this.togglePrescriptions=i=>{this.setState({hasPrescriptions:i}),k(i?so:ao)};this.shouldShowReasonForVisit=()=>!j(this.props.booking.reason)&&!no(this.props.location)&&!ro(this.props.location);this.render=()=>{let{booking:i}=this.props,{getFieldDecorator:s}=this.props.form,h=this.props.notes.result||io,u=!C(h);return e.default.createElement(mt,null,e.default.createElement(dt,null,"Add Visit Notes"),e.default.createElement(ct,null,"Next time you visit a doctor you'll have all the information you need."),this.shouldShowReasonForVisit()&&e.default.createElement(e.default.Fragment,null,e.default.createElement(ft,null,"You visited the doctor for\u2026"),e.default.createElement(ht,null,e.default.createElement("span",{"data-testid":"t-pvs-reason"},i.reason))),e.default.createElement("form",{"data-testid":"t-form",onSubmit:this.handleForm},e.default.createElement(gt,null,e.default.createElement(ut,null,"Did you get a prescription?"),e.default.createElement("div",null,e.default.createElement($o,{"data-testid":"t-prescriptions-yes",disabled:u,enabled:this.state.hasPrescriptions===!0?1:0,onClick:()=>this.togglePrescriptions(!0),variation:"tertiary"},"Yes"),e.default.createElement($o,{disabled:u,enabled:this.state.hasPrescriptions===!1?1:0,onClick:()=>this.togglePrescriptions(!1),variation:"tertiary"},"No"))),this.state.hasPrescriptions&&(!u||!j(h.prescriptions))&&e.default.createElement("div",{"data-testid":"t-prescriptions"},s("prescriptions",{initialValue:h.prescriptions})(e.default.createElement(G,{disabled:u,fullWidth:!0,label:"Name of prescription(s)",onClick:()=>k(po)}))),e.default.createElement(bt,null,e.default.createElement(K,null,"What do you want to remember about your visit? (ex: diagnosis, recommendations, next steps)"),s("notes",{initialValue:h.notes})(e.default.createElement(xt,{classes:{inputInput:_o},disabled:u,fullWidth:!0,InputProps:{classes:{root:Po}},label:"Notes",multiline:!0,onClick:()=>k(lo)}))),e.default.createElement(yt,null,e.default.createElement(L,{animationEnabled:!0,status:this.getButtonState(),type:"submit"},"Save Notes"))))};let s=i.notes.result;this.state={hasPrescriptions:s?s.prescription_filled:null}}};F.defaultProps={notes:{}};Ao=uo()(F)});var S,_,St,Tt,It,Ct,kt,J,Oo,Bo=T(()=>{"use strict";l();m();d();c();S=a(I()),_=a(O());N();B();Qo();To();it();go();fo();q();St=_.default.div.withConfig({componentId:"sc-29zh3z-0"})` 96 border-bottom: 1px solid ${o.borderLine}; 97 border-top: 1px solid ${o.borderLine}; 98 background-color: ${o.theWhiteAlbum}; 99 margin: 8px 0 36px; 100 padding: 18px 0 36px; 101 text-align: center; 102`,Tt=_.default.h2.withConfig({componentId:"sc-29zh3z-1"})` 103 font-size: ${n.medium}; 104 font-weight: normal; 105 color: ${o.fadeToBlack}; 106 font-family: ${b.medium}; 107 margin-bottom: 16px; 108`,It=_.default.div.withConfig({componentId:"sc-29zh3z-2"})` 109 color: ${o.lightText}; 110 font-size: ${n.mediumSmall}; 111 padding: 0 36px; 112`,Ct=_.default.div.withConfig({componentId:"sc-29zh3z-3"})` 113 margin-top: 18px; 114`,kt=(0,_.default)(L).withConfig({componentId:"sc-29zh3z-4"})` 115 white-space: nowrap; 116`,J=class extends S.Component{constructor(){super(...arguments);this.handleClick=i=>{i&&i.preventDefault(),k(co),ho.push(Io(this.props.location))};this.render=()=>S.default.createElement(St,null,S.default.createElement(Tt,null,"Need to schedule a visit?"),S.default.createElement(It,null,"Easily book at ",U(this.props.location," ")," in seconds."),S.default.createElement(Ct,
116null,S.default.createElement(kt,{onClick:this.handleClick,variation:"tertiary"},"Book Again")))}},Oo=J});var r,f,X,vt,wt,$t,Pt,_t,Lo,zo,At,Nt,Ot,Bt,Lt,Q,Mo,Eo=T(()=>{"use strict";l();m();d();c();r=a(I()),f=a(O()),X=a(Ko());N();B();to();vt=f.default.div.withConfig({componentId:"sc-5934b7-0"})` 117 border-bottom: 1px solid ${o.borderLine}; 118 border-top: 1px solid ${o.borderLine}; 119 background-color: ${o.theWhiteAlbum}; 120 margin: 8px 0; 121 padding: 18px 0 36px; 122 text-align: center; 123`,wt=f.default.h2.withConfig({componentId:"sc-5934b7-1"})` 124 font-size: ${n.medium}; 125 font-weight: normal; 126 color: ${o.fadeToBlack}; 127 font-family: ${b.medium}; 128 margin-bottom: 16px; 129`,$t=f.default.div.withConfig({componentId:"sc-5934b7-2"})` 130 display: flex; 131 flex-direction: row; 132 justify-content: center; 133 align-items: center; 134 align-content: center; 135 margin: 0 36px; 136`,Pt=f.default.img.withConfig({componentId:"sc-5934b7-3"})` 137 flex-grow: 0; 138`,_t=f.default.div.withConfig({componentId:"sc-5934b7-4"})` 139 flex-grow: 0; 140 min-width: 150px; 141`,Lo=f.default.div.withConfig({componentId:"sc-5934b7-5"})` 142 margin-bottom: 12px; 143 text-align: left; 144 145 :nth-child(1) { 146 position: relative; 147 top: 7px; 148 left: 10px; 149 } 150 151 :nth-child(2) { 152 position: relative; 153 top: 25px; 154 left: 10px; 155 } 156`,zo=f.default.div.withConfig({componentId:"sc-5934b7-6"})` 157 color: ${o.lightText}; 158 font-size: ${n.mediumSmall}; 159`,At=f.default.div.withConfig({componentId:"sc-5934b7-7"})` 160 color: ${o.darkText}; 161 font-size: ${n.default}; 162`,Nt=f.default.div.withConfig({componentId:"sc-5934b7-8"})` 163 text-align: center; 164 border: 1px solid ${o.borderLine}; 165 padding: 16px; 166 width: 120px; 167 height: 120px; 168 box-sizing: border-box; 169 display: flex; 170 flex-direction: column; 171 justify-content: center; 172`,Ot=f.default.div.withConfig({componentId:"sc-5934b7-9"})` 173 color: ${o.lightText}; 174 font-size: ${n.small}; 175`,Bt=f.default.div.withConfig({componentId:"sc-5934b7-10"})` 176 color: ${o.mrBlueSky}; 177 font-size: ${n.hellaLarge}; 178`,Lt=f.default.div.withConfig({componentId:"sc-5934b7-11"})` 179 color: ${o.mrBlueSky}; 180 font-size: ${n.default}; 181`,Q=class extends r.Component{constructor(){super(...arguments);this.render=()=>{let i=this.props.booking.arrived_timestamp,s=this.props.booking.in_exam_room_timestamp;if(!i||!s)return null;let h=(0,X.default)(i),qo=(0,X.default)(s).diff(h,"minutes");return r.default.createElement(vt,null,r.default.createElement(wt,null,"Visit Summary"),r.default.createElement($t,null,r.default.createElement(Pt,{src:"/images/profile/timeline.svg",width:10}),r.default.createElement(_t,null,r.default.createElement(Lo,null,r.default.createElement(zo,null,"Arrived:"),r.default.createElement(At,null,r.default.createElement(A,{dateTime:i,format:Y}))),r.default.createElement(Lo,null,r.default.createElement(zo,null,"Visit Began:"),r.default.createElement(A,{dateTime:s,format:Y}))),r.default.createElement(Nt,null,r.default.createElement(Ot,null,"Wait time"),r.default.createElement(Bt,null,r.default.createElement("span",{"data-testid":"timeline-total"},qo)),r.default.createElement(Lt,null,"minutes"))))}}},Mo=Q});var g,W,Vo,zt,Mt,Et,D,Uo,Fo=T(()=>{"use strict";l();m();d();c();g=a(I()),W=a(O()),Vo=a(Zo());B();Jo();wo();No();Bo();Eo();rt();N();zt=(0,W.default)(Vo.default).withConfig({componentId:"sc-qhhbsx-0"})` 182 font-family: ${b.book}; 183 max-width: ${R}px; 184 margin: 0 auto; 185 font-size: ${n.default}; 186 padding: 16px 8px; 187`,Mt=W.default.div.withConfig({componentId:"sc-qhhbsx-1"})` 188 margin-top: 8px; 189 padding: 24px; 190 border-top: 1px solid ${o.borderLine}; 191 border-bottom: 1px solid ${o.borderLine}; 192 background-color: ${o.theWhiteAlbum}; 193`,Et=W.default.div.withConfig({componentId:"sc-qhhbsx-2"})` 194 color: ${o.lightText}; 195 text-align: center; 196 font-size: ${n.mediumSmall}; 197 max-width: 275px; 198 margin: 0 auto 20px; 199`,D=class extends g.Component{constructor(){super(...arguments);this.render=()=>g.default.createElement(zt,{item:!0,xs:12},g.default.createElement(vo,{booking:this.props.booking,location:this.props.location}),g.default.createElement(Ao,{booking:this.props.booking,location:this.props.location,notes:this.props.notes,saveNotes:this.props.saveNotes}),g.default.createElement(Mt,null,g.default.createElement(Et,null,"Add photos of prescription bottles, medical documents, doctor's notes and anything else you'd like to keep a record of."),g.default.createElement(ko,{accountId:this.props.booking.account_id,booking:this.props.booking,subtitle:`Add photos of prescription bottles, medical documents, doctor's notes and 200 anything else you'd like to keep a record of.`,userProfileId:this.props.booking.user_profile_id})),g.default.createElement(Mo,{booking:this.props.booking}),g.default.createElement(Oo,{location:this.props.location}))}};D.defaultProps={booking:{}};Uo=D});var V,Do,Vt,E,Wo,Yo=T(()=>{"use strict";l();m();d();c();V=a(I()),Do=a(Go());eo();et();Fo();Vt="Visit Summary",E=class extends V.Component{constructor(){super(...arguments);this.componentDidMount=()=>{this.context.setTitle(Vt),this.props.fetchData(this.props.bookingId)};this.componentWillUnmount=()=>this.props.clearNotes(this.props.bookingId);this.hasLoaded=()=>!C(this.props.booking)&&!C(this.props.location)&&!C(this.props.notes)&&!this.props.notes.fetching}render(){return this.hasLoaded()?V.default.createElement(Uo,{booking:this.props.booking,isModal:this.props.isModal,location:this.props.location,notes:this.props.notes,saveNotes:this.props.saveNotes}):V.default.createElement(Co,null)}};E.contextTypes={setTitle:Do.default.func.isRequired},E.defaultProps={isModal:!1};Wo=E});var jo,Ut,Ft,ae,Dt,pe,Wt=T(()=>{l();m();d();c();jo=a(I());Ho();Yo();nt();Ut=(t,y)=>({booking:t.account.booking,bookingImages:t.bookingImages,location:t.location,notes:t.bookingNotes[y.bookingId]}),Ft=(t,y)=>({fetchData:i=>{let{accountSummary:s,userProfileId:h}=y,u=s.id;t({type:z.FETCH_DATA,bookingId:i,accountId:u,userProfileId:h}),t({type:z.FETCH_BOOKING_NOTES,bookingId:i})},saveNotes:(i,s,h,u)=>{t({type:z.SAVE_BOOKING_NOTES,bookingId:i,notes:s,prescriptionFilled:h,prescriptions:u})},clearNotes:i=>t({type:z.CLEAR_BOOKING_NOTES,bookingId:i})}),ae=t=>({redirect:"/account/people"}),Dt=Z(Ut,Ft)(Wo),pe=t=>({chunks:["postVisitSummary"],component:jo.default.createElement(Dt,{bookingId:t.params.bookingId}),accountWrapper:{loginRequired:!1,nonBlocking:!0}})});Wt();export{Dt as ConnectedVisit,pe as default,ae as postVisitSummaryRedirectUrl};
201//# sourceMappingURL=https://assets.solvhealth.com/mapp-dev/2026-09-29-b125d39/postVisitSummary-XLMJ3JLM.js.map
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.