1"use strict";(self.webpackChunkpocketdoc_web=self.webpackChunkpocketdoc_web||[]).push([[5871],{76197:function(e,t,n){var r=n(64467),i=n(80296),a=n(96540),o=n(12669);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}t.A=function(e){var t=e.count,n=e.render,c=e.initialValues,s=e.onValueChange,u=function(e){for(var t=[],n=0;n<e;n++)t.push((0,a.useRef)(null));return t}(t),d=(0,a.useState)(c||{}),m=(0,i.A)(d,2),p=m[0],f=m[1];(0,o.Ij)(function(){f(c||{})},[c]),(0,o.Ij)(function(){s(Object.values(p).join(""))},[p]);return a.createElement(a.Fragment,null,u.map(function(e,i){var o=n(e,i),c=a.cloneElement(o,{value:p[i]||"",onChange:function(e){return function(e,n){var i=e.currentTarget.value;if(i.length===t){for(var a={},o=i.split("").slice(0,t),c=0;c<t;c++)a[c]=o[c];f(a)}else f(function(e){return l(l({},e),{},(0,r.A)({},n,i||""))})}(e,i)},onKeyDown:function(e){var t;return function(e,t,n){var i,a,o=e.key,c=e.ctrlKey,s=e.metaKey;if(!("v"===o&&s||"v"===o&&c)){if("Backspace"!==o&&!/^[A-Za-z\d]{1}$/.test(o))return e.preventDefault();if("Backspace"!==o){var d=null===(i=u[t])||void 0===i?void 0:i.current;d&&(d.value=o,f(function(e){return l(l({},e),{},(0,r.A)({},t,o))})),n&&n(e);var m=null===(a=u[t+1])||void 0===a?void 0:a.current;m&&setTimeout(function(){return m.focus()},25)}}}(e,i,null===(t=o.props)||void 0===t?void 0:t.onKeyDown)},onKeyDownCapture:function(e){var t;return function(e,t,n){var i;"Backspace"===e.key&&(n&&n(e),t>0&&!p[t]&&(null!==(i=u[t-1])&&void 0!==i&&i.current&&u[t-1].current.focus(),f(function(e){return l(l({},e),{},(0,r.A)({},t-1,""))})))}(e,i,null===(t=o.props)||void 0===t?void 0:t.onKeyDownCapture)},onPaste:function(e){return function(e){e.preventDefault();for(var n=e.clipboardData.getData("text").split("").slice(0,t),r={},i=0;i<t;i++)r[i]=n[i];f(r)}(e)}});return a.createElement(a.Fragment,{key:"linked_input_".concat(i)},c)}))}},28439:function(e,t,n){n.d(t,{A:function(){return x}});var r=n(80296),i=n(67881),a=n(96540),o=n(86532),c=n(69332),l=n(65088),s=n(24240),u=n(89223),d=n(10467),m=n(54756),p=n.n(m),f=n(98765),g=n(15510),w=function(){var e=(0,d.A)(p().mark(function e(t){var n,r;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,f.Ay.post("/api/auth/patient/email-otp",{email:t});case 1:if(n=e.sent,(r=n.data).success){e.next=2;break}throw(0,g.vt)(r.msg||"An unexpected error occurred while sending your code.",n);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),h=n(76197),v=n(14740),y={0:"",1:"",2:"",3:"",4:"",5:""},x=function(e){var t=e.showLogo,n=e.defaultEmail,i=e.sendTo,s=(0,a.useState)(""),d=(0,r.A)(s,2),m=d[0],p=d[1],f=(0,a.useState)(""),x=(0,r.A)(f,2),_=x[0],j=x[1],M=(0,a.useState)(""),$=(0,r.A)(M,2),D=$[0],z=$[1],P=(0,a.useState)(null!=n?n:""),R=(0,r.A)(P,2),W=R[0],L=R[1],B=(0,a.useState)(!1),X=(0,r.A)(B,2),F=X[0],Y=X[1],K=(0,a.useState)(!1),V=(0,r.A)(K,2),q=V[0],H=V[1],N=(0,a.useState)(!1),G=(0,r.A)(N,2),Q=G[0],U=G[1],Z=(0,v.E9)(function(e){return e.authenticateWithOTPEmail}),J=function(e){var t=e.email;L(t),U(!0),w(t).catch(function(e){l.Cp(e),U(!1),p((0,g.kT)(e))}).then(function(){z(""),Y(!0)}).finally(function(){U(!1),Y(!1)})};return(0,a.useEffect)(function(){J({email:W})},[]),a.createElement(A,null,m&&a.createElement(o.A,{isSingleAction:!0,title:"Oops!",onClick:function(){return p("")}},m),a.createElement(b,null,t&&a.createElement(c.A,null),a.createElement("h1",null,"Check your email")),a.createElement(E,null,a.createElement(k,null,"We've emailed a code to ",W,", please enter it below:"),a.createElement(S,null,a.createElement(h.A,{initialValues:F?y:{},count:6,render:function(e){return a.createElement(C,{autoComplete:"one-time-code",inputMode:"numeric",ref:e,maxLength:1})},onValueChange:j})),a.createElement(T,{onClick:function(){_.length<6?p("Please enter the six digit code sent to ".concat(W)):(H(!0),Z({email:W,code:_}).catch(function(e){l.Cp(e),z((0,g.kT)(e))}).then(function(){i&&window.location.replace("/".concat(i||""))}).finally(function(){H(!1)}))},color:"green",size:"large"},q?a.createElement(u.y$,{size:"small",white:!0}):a.createElement("p",null,"Login")),a.createElement(I,{onClick:function(){J({email:W})},color:"gray",size:"large"},Q?a.createElement(u.y$,{size:"small",white:!0}):a.createElement("p",null,"Re-send code"))),D&&a.createElement(O,null,D))},A=(0,i.Ay)("div")({maxWidth:"28rem",alignItems:"center"}),b=(0,i.Ay)("div")({marginTop:"1rem",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}),E=(0,i.Ay)("div")({marginTop:"1.5rem"}),k=(0,i.Ay)("p")({marginTop:"1rem",marginBottom:"1rem",fontSize:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}),S=(0,i.Ay)("div")({display:"grid",gridTemplateColumns:"repeat(6, minmax(0, 1fr))",gap:"0.25rem","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))",padding:"1rem","@media (min-width: 768px)":{gap:"1rem"}}),C=(0,i.Ay)(u.pd)({paddingLeft:"0.75rem !important",paddingRight:"0.75rem !important",textAlign:"center",fontSize:"1.5rem !important",fontWeight:"500"}),T=(0,i.Ay)(s.$)({marginTop:"1.5rem",display:"flex",height:"3rem",width:"100%",alignItems:"center",justifyContent:"center"}),I=(0,i.Ay)(s.$)({marginTop:"1.5rem",display:"flex",height:"3rem",width:"100%",alignItems:"center",justifyContent:"center"}),O=(0,i.Ay)("p").withConfig({componentId:"sc-m5jilh-0"})({marginTop:"0.5rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity, 1))"})},58885:function(e,t,n){var r=n(80296),i=n(67881),a=n(96540),o=n(14740),c=n(89223),l=n(65088),s=n(7993);t.A=function(e){var t=e.loader,n=e.children,i=(0,o.O$)(function(e){return e.tokens}),d=(0,o.O$)(function(e){return e.patient}),m=(0,o.E9)(function(e){return e}),p=m.authenticateWithToken,f=m.logout,g=(0,a.useState)(i.jwt&&!d),w=(0,r.A)(g,2),h=w[0],v=w[1];return(0,a.useEffect)(function(){!i.jwt||null!=d&&d._id?v(!1):p().catch(function(e){var t,n;401!==(null===(t=e.response)||void 0===t?void 0:t.status)&&403!==(null===(n=e.response)||void 0===n?void 0:n.status)&&l.Cp(e),f()}).then(function(){return v(!1)})},[]),a.createElement(s.A,null,h?t||a.createElement(u,null,a.createElement(c.y$,{size:"large"})):a.createElement(a.Fragment,null,n))};var u=(0,i.Ay)("div").withConfig({componentId:"sc-4onidf-0"})({marginTop:"2.5rem",display:"flex",alignItems:"center",justifyContent:"center"})}
1,99163:function(e,t,n){var r,i=n(80296),a=n(57528),o=n(67881),c=n(96540),l=n(89223),s=n(39023),u=n(25381),d=n(84445),m=n(14740),p=n(15510),f=n(65088),g=n(54625),w=n(20145),h=n(90380),v=n(28439),y=o.Ay.div(r||(r=(0,a.A)(["\n ",";\n max-width: 36rem;\n"])),{position:"relative",marginLeft:"auto",marginRight:"auto",height:"100%",width:"100%",overflowY:"auto",overflowX:"hidden",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"2rem",paddingBottom:"2rem"});t.A=function(e){var t,n=e.sendTo,r=(0,c.useState)(""),a=(0,i.A)(r,2),o=a[0],g=a[1],w=(0,m.E9)(function(e){return e.authenticateWithCredentials}),_=(0,c.useRef)(null),j="".concat(h.mb)+(n?"?sendTo=".concat(n):""),M=(0,c.useState)(!1),$=(0,i.A)(M,2),D=$[0],z=$[1];return c.createElement(y,null,D?c.createElement(v.A,{defaultEmail:null===(t=_.current)||void 0===t?void 0:t.values.email}):c.createElement(c.Fragment,null,c.createElement(x,null,c.createElement(A,null,"Sign In")),c.createElement(s.l1,{onSubmit:function(e,t){var n=e.email,r=e.password,i=t.setSubmitting;w({email:n,password:r}).catch(function(e){var t;400!==(null===(t=e.response)||void 0===t?void 0:t.status)&&f.Cp(e),i(!1),g((0,p.kT)(e))})},initialValues:{email:"",password:""},validationSchema:(0,u.Ik)().shape({email:(0,u.Yj)().email("Please enter a valid email address.").required("Please enter a valid email address."),password:(0,u.Yj)().required("Please enter your account password.")}),innerRef:_},function(e){var t=e.isSubmitting;return c.createElement(s.lV,null,c.createElement(d.A,{name:"email",type:"email",placeholder:"Email",disabled:t}),c.createElement(b,null,c.createElement(E,null,c.createElement(d.A,{disabled:t,name:"password",type:"password",placeholder:"Password"})),c.createElement(k,{to:j},"Forgot?")),o&&c.createElement(S,null,"Invalid email / password combination. ",o," Please try again or ",c.createElement(C,{to:h.mb},c.createElement("u",null,c.createElement("b",null,"Reset password")))," or ",c.createElement(T,{onClick:function(){z(!0)}},c.createElement("b",null,"Receive a one-time code")),"."),c.createElement(I,{color:"green",size:"large"},t?c.createElement(l.y$,{size:"small",white:!0}):c.createElement("p",null," Sign In with PocketDoc ")),c.createElement(O,{to:h.c7,color:"secondary"},"New to PocketDoc?",c.createElement("br",null),"Schedule an appointment!"))})))};var x=(0,o.Ay)("div")({marginBottom:"1rem",textAlign:"center"}),A=(0,o.Ay)("p")({fontSize:"1.875rem",fontWeight:"500"}),b=(0,o.Ay)("div")({marginTop:"1.5rem",display:"flex",alignItems:"center"}),E=(0,o.Ay)("div")({flex:"1 1 0%"}),k=(0,o.Ay)(g.N_)({cursor:"pointer",paddingLeft:"1.5rem",paddingRight:"1.5rem",fontSize:"0.875rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))",transitionProperty:"background-color, border-color, color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms","&:hover":{"--tw-text-opacity":"1",color:"rgb(51 170 133 / var(--tw-text-opacity, 1))"}}),S=(0,o.Ay)("div")({marginTop:"1rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity, 1))"}),C=(0,o.Ay)(g.N_)({"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity, 1))","&:hover":{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity, 1))"}}),T=(0,o.Ay)("span")({cursor:"pointer"}),I=(0,o.Ay)(l.$n)({marginTop:"1.5rem",display:"flex",height:"3rem",width:"100%",alignItems:"center",justifyContent:"center"}),O=(0,o.Ay)(w.A).withConfig({componentId:"sc-1emh6gn-0"})({marginTop:"1rem",display:"block","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity, 1))","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"})},5384:function(e,t,n){n.r(t),n.d(t,{default:function(){return Be}});var r,i,a,o,c,l,s,u,d,m,p,f,g=n(67881),w=n(58885),h=n(24986),v=n(61849),y=n(21966),x=n(10467),A=n(54756),b=n.n(A),E=n(98765),k=function(){var e=(0,x.A)(b().mark(function e(t){var n,r,i;return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t||!t.seenAt){e.next=1;break}return e.abrupt("return",t);case 1:return e.next=2,E.Ay.put("/api/patient/".concat(t.patientId,"/messages/").concat(t._id));case 2:return n=e.sent,r=n.data,i=r.message,e.abrupt("return",i);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),S=k,C=function(){var e=(0,x.A)(b().mark(function e(t){var n,r,i;return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,E.Ay.get("/api/patient/".concat(t,"/messages"));case 1:return n=e.sent,r=n.data,i=r.messages,e.abrupt("return",i);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),T=C,I={selectedMessage:null,messages:[],setSelectedMessage:(0,v.XI)(function(e,t){e.selectedMessage=t}),setMessages:(0,v.XI)(function(e,t){e.messages=t}),selectMessage:(0,v.PQ)(function(){var e=(0,x.A)(b().mark(function e(t,n,r){var i,a,o;return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=r.getState,!n.seenAt){e.next=1;break}t.setSelectedMessage(n),e.next=3;break;case 1:return e.next=2,S(n);case 2:a=e.sent,o=i().messages.map(function(e){return e._id===a._id?a:e}),t.setMessages(o),t.setSelectedMessage(a);case 3:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}()),clearMessages:(0,v.XI)(function(e){e.selectedMessage=null,e.messages=[]}),fetchMessages:(0,v.PQ)(function(){var e=(0,x.A)(b().mark(function e(t,n){var r;return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,T(n);case 1:if(r=e.sent){e.next=2;break}return t.setMessages([]),e.abrupt("return");case 2:r.sort(function(e,t){var n=new Date(e.createdAt),r=new Date(t.createdAt);return n.valueOf()-r.valueOf()}),t.setMessages(r);case 3:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()),error:"",setError:(0,v.XI)(function(e,t){e.error=t}),autoLogged:!1,setAutoLogged:(0,v.XI)(function(e,t){e.autoLogged=t})},O=I,_=(0,v.rn)(O,{compose:(0,y.tY)({name:"MessagesStore"})}),j=n(54625),M=n(96540),$=n(57528),D=n(14740),z=n(99163),P=n(45458),R=n(15510),W=n(95533),L=function(e){var t=e.seen,n=e.active;return M.createElement(B,{$_css:[{height:"0.5rem",width:"0.5rem",borderRadius:"0.5rem"},t?{visibility:"hidden"}:"",n?{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))"}:{"--tw-bg-opacity":"1",backgroundColor:"rgb(245 82 108 / var(--tw-bg-opacity, 1))"}]})},B=(0,g.Ay)("div").withConfig({componentId:"sc-1gaq0rg-0"})(["",""],function(e){return e.$_css}),X=n(35044),F=n(66188),Y=n(48066),K=g.Ay.div(r||(r=(0,$.A)(["\n ",";\n"])),{zIndex:"10",display:"flex",height:"100%",width:"100vw",flexDirection:"column","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))","@media (min-width: 640px)":{width:"16rem"},"@media (min-width: 768px)":{width:"20rem"}}),V=function(e,t){var n=(0,W.A)(e).goto(""),r=t?(0,W.A)(t).goto(""):W.A.now().goto(""),i=r.since(n).diff;if(n.epoch>r.epoch)return n.format("{time}");var a=r.clone().startOf("day"),o=n.clone().startOf("day"),c=a.since(o).diff;return 0===c.years&&0===c.months&&1===c.days?"Yesterday":n.year()===r.year()?0===i.months&&0===i.days?n.format("{time}"):n.unixFmt("M/d"):n.unixFmt("M/d/yy")},q=function(){var e=_.useStoreState(function(e){return e.selectedMessage}),t=_.useStoreState(function(e){return e.messages}),n=_.useStoreActions(function(e){return e.selectMessage}),r=_.useStoreActions(function(e){return e.setError}),i=_.useStoreActions(function(e){return e.clearMessages}),a=(0,D.E9)(function(e){return e.logout});return M.createElement(K,null,M.createElement(H,null,M.createElement(N,null,M.createElement(G,{type:"button",color:"secondary",onClick:function(){return a(),void i()}},M.createElement(Q,null,M.createElement(U,{icon:F.GxD}),M.createElement(Z,{$_css:[{fontWeight:"500"},{lineHeight:"1.125rem"}]},"Logout")))),M.createElement("div",null,M.createElement(J,null,"Inbox"),M.createElement(ee,null,t.length," ",1===t.length?"Message ":"Messages ","(",t.filter(function(e){return!e.seenAt}).length," New)"))),M.createElement(te,null,(0,P.A)(t).reverse().map(function(t,i){var a=(null==e?void 0:e._id)===(null==t?void 0:t._id),o=t.seenAt;return M.createElement(ne,{key:i}
1,M.createElement(re,{onClick:function(){n(t).catch(function(e){r((0,R.kT)(e))})},$_css2:[{margin:"0",display:"flex",width:"100%",flexDirection:"row",alignItems:"center",borderRadius:"0.5rem",padding:"1rem",textAlign:"left"},a&&{"@media (min-width: 640px)":{"--tw-bg-opacity":"1",backgroundColor:"rgb(31 41 55 / var(--tw-bg-opacity, 1))"}}]},M.createElement(ie,null,M.createElement(L,{seen:!!o,active:a})),M.createElement(ae,null,M.createElement(oe,null,M.createElement(ce,{$_css3:[{marginRight:"1rem",flexShrink:"1",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"700"},!o&&{"--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity, 1))"},a&&{"@media (min-width: 640px)":{"--tw-text-opacity":"1",color:"rgb(243 244 246 / var(--tw-text-opacity, 1))"}}]},(0,X.U)(null==t?void 0:t.serviceArea)),M.createElement(le,{$_css4:[{marginLeft:"auto",fontSize:"0.875rem"},a&&{"@media (min-width: 640px)":{"--tw-text-opacity":"1",color:"rgb(243 244 246 / var(--tw-text-opacity, 1))"}}]},V(t.createdAt))),M.createElement(se,{$_css5:[{marginRight:"1rem",flexShrink:"1",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"500"},a&&{"@media (min-width: 640px)":{"--tw-text-opacity":"1",color:"rgb(243 244 246 / var(--tw-text-opacity, 1))"}}]},t.subject),M.createElement(ue,{$_css6:[{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!o&&{"--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"},a&&{"@media (min-width: 640px)":{"--tw-text-opacity":"1",color:"rgb(243 244 246 / var(--tw-text-opacity, 1))"}}]},t.body))))})))},H=(0,g.Ay)("div")({paddingBottom:"0.5rem"}),N=(0,g.Ay)("div")({display:"flex"}),G=(0,g.Ay)("button")({marginLeft:"auto",marginRight:"0.5rem",padding:"0.5rem","&:hover":{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity, 1))"}}),Q=(0,g.Ay)("div")({display:"flex"}),U=(0,g.Ay)(Y.A)({marginRight:"0.25rem",height:"1rem"}),Z=(0,g.Ay)("p")(i||(i=(0,$.A)(["",""])),function(e){return e.$_css}),J=(0,g.Ay)("p")({textAlign:"center",fontSize:"1.25rem",fontWeight:"700",lineHeight:"1"}),ee=(0,g.Ay)("p")({textAlign:"center",fontSize:"0.875rem"}),te=(0,g.Ay)("div")({overflowY:"scroll",paddingBottom:"1rem","--tw-shadow":"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)","--tw-shadow-colored":"inset 0 2px 4px 0 var(--tw-sha
1dow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}),ne=(0,g.Ay)("div")({width:"100%",padding:"0.25rem","@media (min-width: 640px)":{padding:"0.75rem"}}),re=(0,g.Ay)("button")(a||(a=(0,$.A)(["",""])),function(e){return e.$_css2}),ie=(0,g.Ay)("div")({marginRight:"0.5rem"}),ae=(0,g.Ay)("div")({flex:"1 1 0%",overflow:"hidden"}),oe=(0,g.Ay)("div")({display:"flex"}),ce=(0,g.Ay)("p")(o||(o=(0,$.A)(["",""])),function(e){return e.$_css3}),le=(0,g.Ay)("p")(c||(c=(0,$.A)(["",""])),function(e){return e.$_css4}),se=(0,g.Ay)("p")(l||(l=(0,$.A)(["",""])),function(e){return e.$_css5}),ue=(0,g.Ay)("p").withConfig({componentId:"sc-5fm6fv-0"})(["",""],function(e){return e.$_css6}),de=n(80296),me=n(98784),pe=(0,g.i7)(["0%{transform:translateX(100%);}100%{transform:translateX(0%);}"]),fe=(0,g.i7)(["0%{transform:translateX(0%);}100%{transform:translateX(100%);}"]),ge=g.Ay.div(s||(s=(0,$.A)(["\n ",";\n ","\n @media (max-width: 639px) {\n animation: ",";\n }\n"])),{position:"absolute",top:"0",display:"flex",height:"100%",width:"100%",flex:"1 1 0%",flexDirection:"column","--tw-bg-opacity":"1",backgroundColor:"rgb(229 231 235 / var(--tw-bg-opacity, 1))","--tw-shadow":"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-sha
1dow-color), 0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)","@media (min-width: 640px)":{position:"static",width:"auto","--tw-shadow":"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)","--tw-shadow-colored":"inset 0 2px 4px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}},function(e){return e.viewable?{visibility:"visible",zIndex:"30"}:{visibility:"hidden","@media (min-width: 640px)":{visibility:"visible"}}},function(e){return e.viewable?e.hide?(0,g.AH)([""," 300ms ease-in"],fe):(0,g.AH)([""," 300ms ease-out"],pe):"none"}),we=g.Ay.div(u||(u=(0,$.A)(["\n &:not(:first-child) {\n ",";\n }\n"])),{marginTop:"1rem"}),he=g.Ay.p(d||(d=(0,$.A)(["\n ",";\n"])),{lineHeight:"1.625"}),ve=g.Ay.div(m||(m=(0,$.A)(["\n ",";\n ",";\n max-height: 100%;\n overflow: hidden;\n"])),{display:"flex",height:"100%",flexDirection:"column","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity, 1))",padding:"1rem","--tw-shadow":"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-sha
1dow-color), 0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)","@media (min-width: 640px)":{margin:"1rem",height:"auto",borderRadius:"0.5rem",padding:"2rem"}},function(e){return e.viewable?"visible":{visibility:"hidden"}}),ye=function(){var e=_.useStoreState(function(e){return e.selectedMessage}),t=_.useStoreActions(function(e){return e.setSelectedMessage}),n=(null==e?void 0:e.subject)||"",r=(null==e?void 0:e.body)||"",i=(0,W.A)(null==e?void 0:e.createdAt).goto(""),a=(0,M.useState)(!1),o=(0,de.A)(a,2),c=o[0],l=o[1],s=(0,M.useState)(!1),u=(0,de.A)(s,2),d=u[0],m=u[1],p=(0,M.useState)(!1),f=(0,de.A)(p,2),g=f[0],w=f[1];(0,M.useEffect)(function(){m(!!e)},[e]);return M.createElement(ge,{viewable:d,hide:g},M.createElement(ve,{viewable:d,hide:g},M.createElement(xe,{onClick:function(){return w(!0),void setTimeout(function(){t(null),w(!1)},300)}},M.createElement(Ae,{icon:F.Wzs}),M.createElement(be,null,"Back")),M.createElement(Ee,null,M.createElement(ke,null,(0,X.U)(null==e?void 0:e.serviceArea)),!c&&M.createElement(Se,{onClick:function(){return l(!0)}},e&&"".concat(V(e.createdAt)))),c&&M.createElement(Ce,{onClick:function(){return l(!1)}},"".concat(i.format("{day} {month} {date}, {year} at {time}"))),M.createElement(Te,null,M.createElement(Ie,null,n)),M.createElement(Oe,null,M.createElement(_e,null,"".concat(i.format("{day} {month} {date}, {year} at {time}")))),M.createElement(me.A,{componentDecorator:function(e,t,n){return M.createElement("a",{target:"blank",href:e,key:n},t)}},M.createElement(je,null,r?r.split("\n\n").filter(function(e){return e.length>0}).map(function(e,t){return M.createElement(we,{key:t},e.split("\n").filter(function(e){return e.length>0}).map(function(e,t){return M.createElement(he,{key:"".concat(t)},e.trim())}))}):""))))},xe=(0,g.Ay)("button")({display:"flex",width:"3rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(66 153 225 / var(--tw-text-opacity, 1))","@media (min-width: 640px)":{display:"none"}}),Ae=(0,g.Ay)(Y.A)({height:"1.5rem",width:"1rem"}),be=(0,g.Ay)("span")({marginLeft:"0.25rem"}),Ee=(0,g.Ay)("div")({marginTop:"0.5rem",display:"flex",paddingBottom:"0.25rem","@media (min-width: 640px)":{marginTop:"0"}}),ke=(0,g.Ay)("p")({fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity, 1))"}),Se=(0,g.Ay)("p")({marginLeft:"auto","@media (min-width: 640px)":{display:"none"}}),Ce=(0,g.Ay)("p")({paddingBottom:"0.25rem"}),Te=(0,g.Ay)("div")({paddingBottom:"0.25rem"}),Ie=(0,g.Ay)("p")({fontSize:"1.125rem",fontWeight:"700","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity, 1))","@media (min-width: 640px)":{fontSize:"1.25rem"}}),Oe=(0,g.Ay)("div")({display:"none",paddingBottom:"1rem","@media (min-width: 640px)":{display:"block"}}),_e=(0,g.Ay)("p")({fontSize:"0.75rem","@media (min-width: 640px)":{fontSize:"0.875rem"}}),je=(0,g.Ay)("div").withConfig({componentId:"sc-rm6n2x-0"})({flexGrow:"1",overflowY:"scroll",borderTopWidth:"2px","--tw-border-opacity":"1",borderColor:"rgb(107 114 128 / var(--tw-border-opacity, 1))",padding:"0.5rem"}),Me=n(86532),$e=g.Ay.div(p||(p=(0,$.A)(["\n ",";\n max-width: 100vw;\n"])),{position:"relative",display:"flex",height:"100%",flexDirection:"column",overflowX:"hidden"}),De=function(){var e=(0,D.O$)(function(e){var t;return null===(t=e.patient)||void 0===t?void 0:t._id}),t=(0,D.E9)(function(e){return e.logout}),n=_.useStoreActions(function(e){return e.fetchMessages}),r=_.useStoreActions(function(e){return e.clearMessages}),i=_.useStoreActions(function(e){return e.setError}),a=_.useStoreState(function(e){return e.error});return(0,M.useEffect)(function(){e?n(e):(t(),r())},[]),M.createElement($e,null,a&&M.createElement(Me.A,{isSingleAction:!0,title:"Oops!",onClick:function(){return i("")}},"There was an error processing that request: ",a),M.createElement(ze,null,M.createElement(q,null),M.createElement(ye,null)))},ze=(0,g.Ay)("div").withConfig({componentId:"sc-1tk0wlv-0"})({position:"relative",display:"flex",height:"100%"}),Pe=n(32551),Re=n(89223),We=g.Ay.div.withConfig({componentId:"sc-4edl1a-0"}
1)(["height:calc(100vh - 4rem);",";"],Re.C9.sm(f||(f=(0,$.A)(["\n height: calc(100vh - 5rem);\n "])))),Le=function(){var e=(0,D.O$)(function(e){var t;return null===(t=e.patient)||void 0===t?void 0:t._id});return M.createElement(Pe.A,null,M.createElement(We,null,e?M.createElement(De,null):M.createElement(z.A,{sendTo:"messages"})))},Be=function(){return M.createElement(w.A,{loader:M.createElement(Xe,{background:!0})},M.createElement(_.Provider,null,M.createElement(j.qh,{path:"/messages",exact:!0},M.createElement(Le,null))))},Xe=(0,g.Ay)(h.A).withConfig({componentId:"sc-1do3x2r-0"})({height:"100vh","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))"})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.