1"use strict";(self.webpackChunktelemdnow_patient_frontend_v2=self.webpackChunktelemdnow_patient_frontend_v2||[]).push([[7231],{50828:function(e,t,i){i.r(t),i.d(t,{default:function(){return N}});var n=i(1413),o=i(59434),a=i(66106),r=i(30914),s=i(17456),c=i(43705),l=i(13754),d=i(87888),f=i(33674),h=i(44910),p=i(20559),u=i(5149),m="styles_card__tHNCo",x="styles_cardImage__G1fv+",v="styles_title_icon__yNHVO",g=i(80184),y=d.Z.Meta,j=function(){var e=(0,p.$)(),t=(0,o.v9)(u.p1);return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:m,children:[(0,g.jsx)("img",{className:x,alt:"example",src:null!==t&&void 0!==t&&t.dashboardImage?null===t||void 0===t?void 0:t.dashboardImage:"/assets/images/StartNewOrder.jpg"}),(0,g.jsx)(y,{title:(0,g.jsxs)("div",{className:v,children:[(0,g.jsx)(f.pF,{color:"#A3ACBA"}),(0,g.jsx)(h.x,{type:"m-heading",children:e("dashboard.newVisitCardTitle","Patient Portal")})]}),description:(0,g.jsx)(h.x,{type:"sf-body",children:e("dashboard.newVisitCardDescription","Access and manage your medical records, securely communicate with healthcare providers, and conveniently view test results,providing you with a comprehensive and streamlined healthcare experience.")})})]})})},b=i(7503),_=i(36623),N=function(){var e=(0,o.v9)(u.$_),t=(0,o.v9)(_.UH),i=(0,o.v9)(u.vh),d=(0,p.$)(),f="aff::b3b5c422-0620-4868-83bc-d7bcfad6ac30"===(null===i||void 0===i?void 0:i.id),h="".concat(null===t||void 0===t?void 0:t.firstName.charAt(0).toUpperCase()).concat(null===t||void 0===t?void 0:t.firstName.slice(1).toLowerCase());return(0,g.jsxs)(l.Z,{titleProps:{description:d("dashboard.description","This is your personal dashboard on {{appName}}. Here you\u2019ll find all the information regarding your medical consultations.",{appName:e.appName}),title:d("dashboard.title","Welcome, {{formattedName}}",{formattedName:h}),linkHref:"#"},children:[(0,g.jsxs)(a.Z,{gutter:[30,16],children:[(0,g.jsx)(r.Z,(0,n.Z)((0,n.Z)({},f?{xs:24,sm:24,md:24,lg:24,xl:24}:s.j),{},{children:(0,g.jsx)(j,{})})),!f&&(0,g.jsx)(r.Z,(0,n.Z)((0,n.Z)({},s.j),{},{children:(0,g.jsx)(c.c,{dashboard:!0})}))]}),!f&&(0,g.jsx)(b._,{title:d("dashboard.resentConsultations","Recent Consultations"),preview:!0})]})}},43705:function(e,t,i){i.d(t,{c:function(){return b}});var n=i(1413),o=i(4942),a=i(93433),r=i(59434),s=i(81694),c=i.n(s),l=i(33674),d=i(44910),f=i(56833),h=i(45540),p=i(62961),u=i(20559),m={"notification-wrapper":"styles_notification-wrapper__MOpoO","notification-wrapper-dashboard":"styles_notification-wrapper-dashboard__0Jl9i","notification-wrapper-dashboard__empty":"styles_notification-wrapper-dashboard__empty__s9PrX","notification-wrapper-notificationPage":"styles_notification-wrapper-notificationPage__qXxeX",title:"styles_title__BGe0w","notification-list":"styles_notification-list__V1cUX","dismiss-text":"styles_dismiss-text__ylTSV","notification-card":"styles_notification-card__wSQ+Y","middle-content":"styles_middle-content__MeXD4","right-side":"styles_right-side__P+Pag","text-dismiss":"styles_text-dismiss__5Kw+U","single-notification-card":"styles_single-notification-card__Z6NkA","datetime-separator":"styles_datetime-separator__c5HCR","cancel-icon":"styles_cancel-icon__Sfv+y"},x=i(80184),v=function(e){var t,i,n=(0,u.$)();return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:m["notification-card"],children:[(0,x.jsx)("div",{className:"iconCustom_notification dashboard_notifications",children:(0,x.jsx)(l.sh,{color:e.dashboard?"#A3ACBA":p.dW,width:15,height:19})}),(0,x.jsxs)("div",{className:m["middle-content"],children:[(0,x.jsx)(d.x,{type:"sf-body-emphasized",color:e.dashboard?"text-primary":"default",children:e.title}),(0,x.jsx)(d.x,{type:"sf-body-condensed",color:e.dashboard?"text-primary":"default",children:e.description}),(null===(t=e.data)||void 0===t?void 0:t.order)&&(0,x.jsxs)(d.x,{type:"sf-body-condensed",color:e.dashboard?"text-primary":"default",children:[n("notifications.details","The detailed information on the product can be found in the Education tab or on the")," ",(0,x.jsx)(d.x,{component:"a",href:"/visits/".concat(null===(i=e.data)||void 0===i?void 0:i.order),type:"sf-body-condensed",color:"text-primary",children:"order"}),"."]}),(0,x.jsx)(d.x,{color:"theme-dark",type:"sf-body-emphasized",children:e.action})]}),(0,x.jsxs)("div",{className:m["right-side"],children:[(0,x.jsx)("div",{onClick:function(){return e.closeNotification(e.id)},style:{cursor:"pointer"},children:(0,x.jsx)(f.Z,{width:12.6,height:12.6,color:p.dW})}),(0,x.jsx)(d.x,{type:"sf-caption",color:e.dashboard?"text-primary":"default",className:m["notification-body__timeAgo"],children:(0,h.Z)(e.createdAt).fromNow()})]})]})})}
1,g=i(89882),y=function(e){var t=e.width,i=void 0===t?56:t,n=e.height,o=void 0===n?56:n,a=e.className,r=void 0===a?"":a,s=e.circleColor,c=void 0===s?p.y8:s,l=e.color,d=void 0===l?p.Ow:l;return(0,x.jsxs)("svg",{width:i,height:o,className:r,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,x.jsx)("circle",{cx:"28",cy:"28",r:"28",fill:c}),(0,x.jsx)("path",{d:"M39.421 32.2217L37.1875 29.9587V22.4875C37.1875 17.4134 33.0741 13.3 28 13.3C22.9259 13.3 18.8125 17.4134 18.8125 22.4875V29.9587L16.579 32.2217C16.2396 32.5656 16.0493 33.0293 16.0493 33.5125C16.0493 34.5273 16.872 35.35 17.8868 35.35H38.1132C38.5964 35.35 39.0601 35.1597 39.404 34.8203C40.1262 34.1074 40.1339 32.944 39.421 32.2217Z",fill:d}),(0,x.jsx)("path",{d:"M28 42.7C30.2224 42.7 32.0762 41.1218 32.5019 39.025H23.4981C23.9238 41.1218 25.7776 42.7 28 42.7Z",fill:d})]})},j=function(e){var t=e.id,i=e.title,n=e.description,o=e.action,a=e.createdAt,r=e.closeNotification,s=e.data,c=(0,u.$)();return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:m["single-notification-card"],children:[(0,x.jsx)("div",{className:"iconCustom_notification",children:(0,x.jsx)(y,{})}),(0,x.jsxs)("div",{className:m["middle-content"],children:[(0,x.jsxs)(d.x,{type:"sf-caption",color:"default",className:m["notification-body__timeAgo"],children:[(0,x.jsx)("span",{children:(0,h.Z)(a).format("MMM D, YYYY")}),(0,x.jsx)("span",{className:m["datetime-separator"],children:"|"}),(0,x.jsx)("span",{children:(0,h.Z)(a).format("h:mmA")})]}),(0,x.jsx)(d.x,{type:"sf-body-emphasized",color:"default",children:i}),(0,x.jsx)(d.x,{type:"sf-body-condensed",color:"default",children:n}),(null===s||void 0===s?void 0:s.order)&&(0,x.jsxs)(d.x,{type:"sf-body-condensed",color:"default",children:[c("notifications.details","The detailed information on the product can be found in the Education tab or on the")," ",(0,x.jsx)(d.x,{component:"a",href:"/visits/".concat(null===s||void 0===s?void 0:s.order),type:"sf-body-condensed",color:"text-primary",children:"order"}),"."]}),(0,x.jsx)(d.x,{color:"theme-dark",type:"sf-body-emphasized",children:o})]}),(0,x.jsx)("div",{onClick:function(){return r(t)},className:m["cancel-icon"],children:(0,x.jsx)(l.FB,{width:12.6,height:12.6,color:p.dW})})]})})},b=function(e){var t,i=e.dashboard,s=(0,r.I0)(),l=(0,r.v9)(g.Sj),f=(0,u.$)(),h=(0,a.Z)(l).sort((function(e,t){return new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()})),p=function(e){s((0,g.Rx)({id:e}))},y=function(){s((0,g.ug)())};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:c()((t={},(0,o.Z)(t,m["notification-wrapper-dashboard"],i),(0,o.Z)(t,m["notification-wrapper-notificationPage"],!i),(0,o.Z)(t,m["notification-wrapper-dashboard__empty"],!(null!==l&&void 0!==l&&l.length)),t)),children:i?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:m.title,children:(0,x.jsx)(d.x,{color:"text-primary",type:"m-heading-3",children:f("notifications.title","Notifications")})}),(0,x.jsx)("ul",{className:m["notification-list"],children:null!==l&&void 0!==l&&l.length?h.map((function(e){return(0,x.jsx)("li",{children:(0,x.jsx)(v,(0,n.Z)((0,n.Z)({dashboard:i},e),{},{closeNotification:p}))},e.id)})):(0,x.jsx)(d.x,{color:"text-secondary",children:f("notifications.empty","No Notifications...")})}),(0,x.jsx)("div",{className:m["dismiss-text"],children:l&&l.length>0&&(0,x.jsx)(d.x,{color:"text-secondary",type:"sf-body-medium-two",onClick:y,className:m["text-dismiss"],children:f("notifications.dismissAll","Dismiss All")})})]}):null!==l&&void 0!==l&&l.length?h.map((function(e){return(0,x.jsx)(j,(0,n.Z)((0,n.Z)({},e),{},{closeNotification:p}),e.id)})):(0,x.jsx)(d.x,{color:"text-secondary",children:f("notifications.empty","No Notifications...")})}),!i&&(0,x.jsx)("div",{className:m["dismiss-text"],children:l&&l.length>0&&(0,x.jsx)(d.x,{color:"text-secondary",type:"sf-body-medium-two",onClick:y,className:m["text-dismiss"],children:f("notifications.dismissAll","Dismiss All")})})]})}},13754:function(e,t,i){i.d(t,{Z:function(){return g}});
1var n=i(1413),o=i(59434),a=i(62961),r=i(44910),s=i(33674),c=i(25121),l=i(5149),d=i(73447),f="styles_header__1ozGC",h="styles_header_top__OIBYC",p="styles_titleWithIcon__7DPCM",u="styles_page_header_logo__3P+f0",m=i(80184),x=function(e){var t=e.title,i=e.description,n=e.hasBackBtn,x=void 0!==n&&n,v=e.linkDescription,g=e.linkHref,y=e.needRel,j=void 0===y||y,b=(0,o.v9)(l.$_);return(0,m.jsxs)("div",{className:f,children:[(0,m.jsxs)("div",{className:(0,d.A)(h,"header-page"),children:[(0,m.jsxs)("div",{children:[(0,m.jsxs)(r.x,{className:p,type:"sf-caption-emphasized",color:"text-secondary",upperCase:!0,children:[(0,m.jsx)(s.Ik,{color:"#A3ACBA",width:12,height:12}),b.logoWithName?(0,m.jsx)("img",{src:b.logo,alt:"".concat(b.appName," Logo"),className:(0,d.A)(u,"page-header-logo")}):b.appName]}),(0,m.jsx)(r.x,{type:"m-section-bold",color:"text-primary",className:"title-weight",children:t})]}),x&&(0,m.jsx)(c.xE,{})]}),(0,m.jsx)(r.x,{type:"sf-body",color:"text-secondary",children:i}),v&&(0,m.jsxs)(r.x,{target:"_blank",rel:j?"noopener noreferrer":null,component:"a",type:"m-body-emphasized",href:g,className:p,color:"theme-dark",children:[v,(0,m.jsx)(s.O1,{color:a.Hx,width:12,height:12})]})]})},v="styles_content__CqUQ4",g=function(e){var t=e.children,i=e.titleProps,o=e.className,a=void 0===o?"":o;return(0,m.jsxs)("div",{className:a,children:[(0,m.jsx)(x,(0,n.Z)({},i)),(0,m.jsx)("div",{className:v,children:Array.isArray(t)?null===t||void 0===t?void 0:t.map((function(e,t){return(0,m.jsx)("div",{children:e},t)})):(0,m.jsx)("div",{children:t})})]})}},45540:function(e,t,i){var n=i(97892),o=i.n(n),a=i(83027),r=i.n(a),s=i(12712),c=i.n(s),l=i(40130),d=i.n(l),f=i(93666),h=i.n(f),p=i(70776),u=i.n(p),m=i(18808),x=i.n(m),v=i(14036),g=i.n(v),y=i(54334),j=i.n(y),b=i(39216),_=i.n(b),N=i(34834),Z=i.n(N),C=(i(69466),i(52563),i(16818)),w=i.n(C),S=i(45511),z=i(15198);o().extend(r()),o().extend(c()),o().extend(d()),o().extend(h()),o().extend(x()),o().extend(u()),o().extend(j()),o().extend(g()),o().extend(_()),o().extend(Z()),o().locale((0,S.PM)(S.ad)||z.wb.EN),o().extend(w()),t.Z=o()},60922:function(e,t,i){i.d(t,{Z:function(){return r}});var n=i(60732),o=i(72791);function a(e,t,i){return"boolean"===typeof e?e:void 0===t?!!i:!1!==t&&null!==t}function r(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.createElement(n.Z,null),s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=a(e,t,s);if(!c)return[!1,null];var l="boolean"===typeof t||void 0===t||null===t?r:t;return[!0,i?i(l):l]}},49367:function(e,t,i){i.d(t,{C:function(){return E}});var n=i(4942),o=i(29439),a=i(72791),r=i(19809),s=i.n(r),c=i(37226),l=i(88834),d=i(70635),f=i(71929),h=i(84107),p=i(52832),u=a.createContext({}),m=i(8086),x=i(67521),v=i(96562),g=i(89922),y=function(e){var t,i,o=e.antCls,a=e.componentCls,r=e.iconCls,s=e.avatarBg,c=e.avatarColor,l=e.containerSize,d=e.containerSizeLG,f=e.containerSizeSM,h=e.textFontSize,p=e.textFontSizeLG,u=e.textFontSizeSM,v=e.borderRadius,g=e.borderRadiusLG,y=e.borderRadiusSM,j=e.lineWidth,b=e.lineType,_=e.calc,N=function(e,t,i){var o;return o={width:e,height:e,lineHeight:(0,m.unit)(_(e).sub(_(j).mul(2)).equal()),borderRadius:"50%"},(0,n.Z)(o,"&".concat(a,"-square"),{borderRadius:i}),(0,n.Z)(o,"".concat(a,"-string"),{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"}),(0,n.Z)(o,"&".concat(a,"-icon"),(0,n.Z)({fontSize:t},"> ".concat(r),{margin:0})),o};return(0,n.Z)({},a,Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(e)),(t={position:"relative",display:"inline-block",overflow:"hidden",color:c,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:s,border:"".concat((0,m.unit)(j)," ").concat(b," transparent")},(0,n.Z)(t,"&-image",{background:"transparent"}),(0,n.Z)(t,"".concat(o,"-image-img"),{display:"block"}),t)),N(l,h,v)),(i={},(0,n.Z)(i,"&-lg",Object.assign({},N(d,p,g))),(0,n.Z)(i,"&-sm",Object.assign({},N(f,u,y))),(0,n.Z)(i,"> img",{display:"block",width:"100%",height:"100%",objectFit:"cover"}),i)))},j=function(e){var t,i,o=e.componentCls,a=e.groupBorderColor,r=e.groupOverlapping,s=e.groupSpace;return i={},(0,n.Z)(i,"".concat(o,"-group"),(t={display:"inline-flex"},(0,n.Z)(t,"".concat(o),{borderColor:a}),(0,n.Z)(t,"> *:not(:first-child)",{marginInlineStart:r}),t)),(0,n.Z)(i,"".concat(o,"-group-popover"),(0,n.Z)({},"".concat(o," + ").concat(o),{marginInlineStart:s})),i},b=(0,v.I$)("Avatar",(function(e){var t=e.colorTextLightSolid,i=e.colorTextPlaceholder,n=(0,g.TS)(e,{avatarBg:i,avatarColor:t});return[y(n),j(n)]}),(function(e){var t=e.controlHeight,i=e.controlHeightLG,n=e.controlHeightSM,o=e.fontSize,a=e.fontSizeLG,r=e.fontSizeXL,s=e.fontSizeHeading3,c=e.marginXS,l=e.marginXXS,d=e.colorBorderBg;
1return{containerSize:t,containerSizeLG:i,containerSizeSM:n,textFontSize:Math.round((a+r)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:l,groupOverlapping:-c,groupBorderColor:d}})),_=i(67838),N=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i},Z=function(e,t){var i,r,m=a.useState(1),x=(0,o.Z)(m,2),v=x[0],g=x[1],y=a.useState(!1),j=(0,o.Z)(y,2),Z=j[0],C=j[1],w=a.useState(!0),S=(0,o.Z)(w,2),z=S[0],O=S[1],k=a.useRef(null),A=a.useRef(null),E=(0,l.sQ)(t,k),P=a.useContext(f.E_),M=P.getPrefixCls,H=P.avatar,B=a.useContext(u),T=function(){if(A.current&&k.current){var t=A.current.offsetWidth,i=k.current.offsetWidth;if(0!==t&&0!==i){var n=e.gap,o=void 0===n?4:n;2*o<i&&g(i-2*o<t?(i-2*o)/t:1)}}};a.useEffect((function(){C(!0)}),[]),a.useEffect((function(){O(!0),g(1)}),[e.src]),a.useEffect(T,[e.gap]);var F,L=e.prefixCls,R=e.shape,G=e.size,I=e.src,W=e.srcSet,X=e.icon,D=e.className,V=e.rootClassName,$=e.alt,Y=e.draggable,U=e.children,q=e.crossOrigin,Q=N(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),J=(0,h.Z)((function(e){var t,i;return null!==(i=null!==(t=null!==G&&void 0!==G?G:null===B||void 0===B?void 0:B.size)&&void 0!==t?t:e)&&void 0!==i?i:"default"})),K=Object.keys("object"===typeof J&&J||{}).some((function(e){return["xs","sm","md","lg","xl","xxl"].includes(e)})),ee=(0,p.Z)(K),te=a.useMemo((function(){if("object"!==typeof J)return{};var e=d.c4.find((function(e){return ee[e]})),t=J[e];return t?{width:t,height:t,lineHeight:"".concat(t,"px"),fontSize:t&&(X||U)?t/2:18}:{}}),[ee,J]),ie=M("avatar",L),ne=(0,_.Z)(ie),oe=b(ie,ne),ae=(0,o.Z)(oe,3),re=ae[0],se=ae[1],ce=ae[2],le=s()((i={},(0,n.Z)(i,"".concat(ie,"-lg"),"large"===J),(0,n.Z)(i,"".concat(ie,"-sm"),"small"===J),i)),de=a.isValidElement(I),fe=R||(null===B||void 0===B?void 0:B.shape)||"circle",he=s()(ie,le,null===H||void 0===H?void 0:H.className,"".concat(ie,"-").concat(fe),(r={},(0,n.Z)(r,"".concat(ie,"-image"),de||I&&z),(0,n.Z)(r,"".concat(ie,"-icon"),!!X),r),ce,ne,D,V,se),pe="number"===typeof J?{width:J,height:J,lineHeight:"".concat(J,"px"),fontSize:X?J/2:18}:{};if("string"===typeof I&&z)F=a.createElement("img",{src:I,draggable:Y,srcSet:W,onError:function(){var t=e.onError;!1!==(null===t||void 0===t?void 0:t())&&O(!1)},alt:$,crossOrigin:q});else if(de)F=I;else if(X)F=X;else if(Z||1!==v){var ue="scale(".concat(v,") translateX(-50%)"),me={msTransform:ue,WebkitTransform:ue,transform:ue},xe="number"===typeof J?{lineHeight:"".concat(J,"px")}:{};F=a.createElement(c.default,{onResize:T},a.createElement("span",{className:"".concat(ie,"-string"),ref:A,style:Object.assign(Object.assign({},xe),me)},U))}else F=a.createElement("span",{className:"".concat(ie,"-string"),style:{opacity:0},ref:A},U);return delete Q.onError,delete Q.gap,re(a.createElement("span",Object.assign({},Q,{style:Object.assign(Object.assign(Object.assign(Object.assign({},pe),te),null===H||void 0===H?void 0:H.style),Q.style),className:he,ref:E}),F))};var C=a.forwardRef(Z),w=i(85501),S=i(13403),z=i(61113),O=function(e){var t=a.useContext(u),i=t.size,n=t.shape,o=a.useMemo((function(){return{size:e.size||i,shape:e.shape||n}}),[e.size,e.shape,i,n]);return a.createElement(u.Provider,{value:o},e.children)},k=function(e){var t=a.useContext(f.E_),i=t.getPrefixCls,r=t.direction,c=e.prefixCls,l=e.className,d=e.rootClassName,h=e.style,p=e.maxCount,u=e.maxStyle,m=e.size,x=e.shape,v=e.maxPopoverPlacement,g=void 0===v?"top":v,y=e.maxPopoverTrigger,j=void 0===y?"hover":y,N=e.children,Z=i("avatar",c),k="".concat(Z,"-group"),A=(0,_.Z)(Z),E=b(Z,A),P=(0,o.Z)(E,3),M=P[0],H=P[1],B=P[2],T=s()(k,(0,n.Z)({},"".concat(k,"-rtl"),"rtl"===r),B,A,l,d,H),F=(0,w.Z)(N).map((function(e,t){return(0,z.Tm)(e,{key:"avatar-key-".concat(t)})})),L=F.length;if(p&&p<L){var R=F.slice(0,p),G=F.slice(p,L);return R.push(a.createElement(S.Z,{key:"avatar-popover-key",content:G,trigger:j,placement:g,overlayClassName:"".concat(k,"-popover")},a.createElement(C,{style:u},"+".concat(L-p)))),M(a.createElement(O,{shape:x,size:m},a.createElement("div",{className:T,style:h},R)))}return M(a.createElement(O,{shape:x,size:m},a.createElement("div",{className:T,style:h},F)))},A=C;A.Group=k;var E=A},30914:function(e,t,i){var n=i(89752);t.Z=n.Z}}]); 2//# sourceMappingURL=7231.4679b259.chunk.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.