1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7365],{8049:(e,t,a)=>{a.d(t,{J:()=>c});var n=a(54568),r=a(7620),l=a(88594),i=a(54616),s=a(826);let o=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(l.b,{ref:t,className:(0,s.cn)(o(),a),...r})});c.displayName=l.b.displayName},48779:(e,t,a)=>{a.d(t,{q:()=>s});var n=a(54568),r=a(8049),l=a(84113),i=a(826);function s(e){let{id:t,checked:a,readOnly:s=!1,alwaysOn:o=!1,disabled:c=!1,onCheckedChange:d,className:u,error:v}=e,m=s||c,p=!!o||a;return(0,n.jsxs)("div",{className:(0,i.cn)("flex flex-col gap-1.5",u),children:[(0,n.jsxs)("div",{className:(0,i.cn)("flex items-start gap-2",s&&"pointer-events-none"),children:[(0,n.jsx)("input",{id:t,type:"checkbox",checked:p,readOnly:s,disabled:c,required:o,"aria-required":o||void 0,tabIndex:s?-1:void 0,onChange:e=>{if(o){null==d||d(!0);return}m||null==d||d(e.target.checked)},className:"mt-0.5 h-4 w-4 shrink-0 rounded border-cyan-600 accent-cyan-600 text-cyan-600 focus:ring-cyan-500 dark:border-cyan-500 dark:accent-cyan-500","aria-label":l.lQ}),(0,n.jsx)(r.J,{htmlFor:t,className:(0,i.cn)("text-sm font-normal leading-snug text-gray-800 dark:text-gray-300",m?"cursor-default":"cursor-pointer"),children:l.lQ})]}),v?(0,n.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:v}):null]})}},67365:(e,t,a)=>{a.r(t),a.d(t,{NotificationBannerContent:()=>A});
1var n=a(54568),r=a(7620),l=a(27541),i=a(26829),s=a(46118),o=a(98099);let c={info:{bg:"bg-cyan-50",text:"text-cyan-800",icon:"text-cyan-600"},warning:{bg:"bg-amber-50",text:"text-amber-800",icon:"text-amber-600"},error:{bg:"bg-red-50",text:"text-red-800",icon:"text-red-600"},success:{bg:"bg-emerald-50",text:"text-emerald-800",icon:"text-emerald-600"}};function d(e){let{message:t,actionLabel:a="Review",onAction:r,variant:l="warning",backgroundColor:i,accentColor:d,icon:u,asChild:v=!1}=e,m=c[l],p=v?s.DX:"div";return(0,n.jsxs)(p,{className:"\n flex w-full max-w-full min-w-0 flex-col gap-3\n rounded-[10px] px-4 py-3\n shadow-[0px_10px_20px_rgba(0,0,0,0.1)]\n sm:flex-row sm:flex-wrap sm:items-center sm:justify-between sm:px-5\n md:px-8 md:py-[10px]\n ".concat(i?"":m.bg,"\n "),style:i?{backgroundColor:i}:void 0,children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center",children:[null!=u?u:(0,n.jsx)(o.A,{className:"mt-0.5 shrink-0 size-5 sm:mt-0 ".concat(d?"":m.icon),style:d?{color:d}:void 0,"aria-hidden":!0}),(0,n.jsx)("p",{className:"m-0 min-w-0 flex-1 break-words text-sm leading-snug md:text-base ".concat(d?"":m.text),style:d?{color:d}:void 0,children:t})]}),r&&a&&(0,n.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),r()},className:"\n w-full shrink-0 rounded px-3 py-2 text-sm font-medium text-white\n transition-colors hover:opacity-90 sm:w-auto sm:self-center sm:px-2 sm:py-1.5\n ".concat(d?"":"bg-amber-600","\n "),style:d?{backgroundColor:d}:void 0,children:a})]})}var u=a(6241),v=a(58597),m=a(89387),p=a(8049),x=a(92779),g=a(84969);function h(e){let{label:t,value:a,placeholder:r}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-1.5 w-full",children:[(0,n.jsx)(p.J,{className:"text-sm text-gray-700 dark:text-gray-300",children:t}),(0,n.jsx)("input",{value:null!=a?a:"",disabled:!0,placeholder:null!=r?r:"Not Specified",className:"w-full h-[45px] px-3 border border-gray-200 dark:border-gray-600 rounded bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 placeholder:text-gray-400"})]})}function f(e){var t,a,l;let{open:i,onClose:s,careSeekerId:o,careSeeker:c,onSuccess:d}=e,[f,y]=(0,r.useState)(""),[b,j]=(0,r.useState)(null),[N,w]=(0,r.useState)(!1),[_,k]=(0,r.useState)(!1),{toast:C}=(0,g.dj)(),{mutateAsync:E}=(0,u.AM)(),{mutateAsync:A}=(0,u.Fs)(),I=async e=>{if(e.preventDefault(),j(null),!f.trim())return void C({title:"Error",description:"Please enter a nickname.",variant:"destructive"});if(f.trim().length>7)return void C({title:"Error",description:"Nickname must be 7 characters or less.",variant:"destructive"});if(!/^[a-zA-Z0-9]+$/.test(f.trim()))return void C({title:"Error",description:"Nickname must contain only letters and numbers.",variant:"destructive"});w(!0);try{await E({relationshipId:o,data:{nickName:f.trim()}}),C({title:"Success",description:"Care receiver invitation accepted successfully."}),y(""),j(null),null==d||d(),s()}catch(l){let e="Failed to accept invitation.";if(l instanceof Error)e=l.message;else if(l&&"object"==typeof l){var t,a,n,r;e=(null==(a=l.response)||null==(t=a.data)?void 0:t.error)||(null==(r=l.response)||null==(n=r.data)?void 0:n.message)||l.message||e}j(e),C({title:"Error",description:e,variant:"destructive"})}finally{w(!1)}};return(0,n.jsx)(v.lG,{open:i,onOpenChange:s,children:(0,n.jsxs)(v.Cf,{className:"bg-white dark:bg-gray-900 rounded-[20px] p-6 max-w-[600px] max-h-[90vh] flex flex-col",children:[(0,n.jsx)(v.c7,{className:"shrink-0",children:(0,n.jsx)(v.L3,{className:"text-black dark:text-white font-semibold text-lg",children:"Care Receiver Request"})}),(0,n.jsx)("p",{className:"text-sm text-gray-700 dark:text-gray-300 mb-4 mt-2 shrink-0",children:"Please provide your acceptance on being a Caregiver for the below Care Receiver."}),(0,n.jsxs)("form",{onSubmit:I,className:"flex flex-col gap-4 flex-1 min-h-0 flex overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto overflow-x-hidden px-1 space-y-4 flex flex-col items-start",children:[(0,n.jsx)(h,{label:"First Name",value:null==c?void 0:c.firstName}),(0,n.jsx)(h,{label:"Last Name",value:null==c?void 0:c.lastName}),(0,n.jsx)(h,{label:"email",value:null==c?void 0:c.email}),(0,n.jsx)(h,{label:"Date of Birth",value:(e=>{if(e)try{let t=new Date(e);if(Number.isNaN(t.getTime()))return e;return t.toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"numeric"}).replace(/\//g,"-")}catch(t){return e}})(null!=(t=null==c?void 0:c.dob)?t:null==c?void 0:c.dateOfBirth),placeholder:"dd-mm-yyyy"}),(0,n.jsx)(h,{label:"Gender",value:(e=>{if(!e)return"Not Specified";let t={M:"Male",F:"Female",O:"Other"},a=e.trim(),n=a.toUpperCase();if(t[n])return t[n];let r=a.toLowerCase();return"male"===r?"Male":"female"===r?"Female":"other"===r||"others"===r?"Other":a})(null==c?void 0:c.gender)}),(0,n.jsx)(h,{label:"Phone",value:(a=null==c?void 0:c.phone,l=null==c?void 0:c.countryCode,a?l?"+".concat(l," ").concat(a):a:"Not Specified")}),(0,n.jsx)(h,{label:"Permitted to",value:null==c?void 0:c.permittedTo}),(0,n.jsxs)("div",{className:"flex flex-col gap-1.5 w-full",children:[(0,n.jsxs)(p.J,{className:"text-sm text-gray-700 dark:text-gray-300",children:["Add Nickname ",(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsx)(x.p,{value:f,onChange:e=>{j(null);let t=e.target.value.replace(/[^a-zA-Z0-9]/g,"");t.length<=7&&y(t)},placeholder:"Not Specified",className:"w-full min-w-0 h-[45px]",maxLength:7,required:!0}),b&&(0,n.jsx)("p",{className:"text-sm text-red-500",role:"alert",children:b})]})]}),(0,n.jsxs)("div",{className:"flex justify-center gap-3 pt-4 shrink-0 border-t border-gray-200 dark:border-gray-700",children:[(0,n.jsx)(m.$,{type:"button",variant:"outline",className:"border-cyan-500 text-cyan-500 hover:bg-cyan-600/10",onClick:async()=>{k(!0);try{await A(o),C({title:"Success",description:"Invitation rejected successfully."}),y(""),s()}catch(n){let a="Failed to reject invitation.";if(n instanceof Error)a=n.message;else if(n&&"object"==typeof n){var e,t;a=(null==(t=n.response)||null==(e=t.data)?void 0:e.message)||n.message||a}C({title:"Error",description:a,variant:"destructive"})}finally{k(!1)}},disabled:N||_,children:_?"Rejecting...":"Reject"}),(0,n.jsx)(m.$,{type:"submit",disabled:N||_,className:"bg-cyan-600 hover:bg-cyan-700 text-white",children:N?"Accepting...":"Accept"})]})]})]})})}var y=a(48779),b=a(84113);function j(e){let{label:t,value:a}=e;return(0,n.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,n.jsx)(p.J,{className:"w-[115px] text-right text-sm text-gray-700 dark:text-gray-300 shrink-0",children:t}),(0,n.jsx)("input",{value:null!=a?a:"Not Specified",disabled:!0,className:"flex-1 max-w-[350px] h-[45px] px-3 border border-gray-200 dark:border-gray-600 rounded bg-gray-50 dark:bg-gray-800 text-gray-600 dark:text-gray-400"})]})}function N(e){var t,a,l;let{open:i,onClose:s,relationshipId:o,caregiver:c,onSuccess:d}=e,[x,h]=(0,r.useState)(!0),[f,N]=(0,r.useState)(!1),[w,_]=(0,r.useState)(null),[k,C]=(0,r.useState)(!1),[E,A]=(0,r.useState)(!1),{toast:I}=(0,g.dj)(),{mutateAsync:S}=(0,u.W)(),{mutateAsync:R}=(0,u.zi)(),F=async e=>{if(e.preventDefault(),!x)return void I({title:"Error",description:"Please select at least one permission.",variant:"destructive"});if(!f)return void I({title:"Error",description:"Please accept Terms and Conditions.",variant:"destructive"});C(!0),_(null);try{let e=(0,b.Be)(x);
1await S({relationshipId:o,data:{viewDashboard:e.viewDashboard,uploadImages:e.uploadImages,shareReport:e.shareReport,termsAndConditions:!0}}),I({title:"Success",description:"Caregiver invitation accepted successfully."}),h(!0),N(!1),_(null),null==d||d(),s()}catch(l){let e="Failed to accept invitation.";if(l instanceof Error)e=l.message;else if(l&&"object"==typeof l){var t,a,n,r;e=(null==(a=l.response)||null==(t=a.data)?void 0:t.error)||(null==(r=l.response)||null==(n=r.data)?void 0:n.message)||l.message||e}_(e),I({title:"Error",description:e,variant:"destructive"})}finally{C(!1)}};return(0,n.jsx)(v.lG,{open:i,onOpenChange:s,children:(0,n.jsxs)(v.Cf,{className:"bg-white dark:bg-gray-900 rounded-[20px] p-6 max-w-[600px] max-h-[calc(100dvh-2rem)] flex flex-col overflow-hidden top-[5%] translate-y-0 sm:top-[50%] sm:translate-y-[-50%]",children:[(0,n.jsx)(v.c7,{className:"shrink-0",children:(0,n.jsx)(v.L3,{className:"text-black dark:text-white font-semibold text-lg",children:"Accept Caregiver's invitation"})}),(0,n.jsx)("p",{className:"text-sm text-gray-700 dark:text-gray-300 mb-4 mt-2 shrink-0",children:"Please provide your acceptance on being a Care Receiver to below Caregiver."}),(0,n.jsxs)("form",{onSubmit:F,className:"flex flex-col gap-4 flex-1 min-h-0 flex overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto overflow-x-hidden px-1 space-y-4 flex flex-col items-start",children:[(0,n.jsx)(j,{label:"First Name",value:null==c?void 0:c.firstName}),(0,n.jsx)(j,{label:"Last Name",value:null==c?void 0:c.lastName}),(0,n.jsx)(j,{label:"email",value:null==c?void 0:c.email}),(0,n.jsx)(j,{label:"Date of Birth",value:(e=>{if(!e)return"Not Specified";try{let t=new Date(e);if(Number.isNaN(t.getTime()))return e;return t.toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"numeric"}).replace(/\//g,"-")}catch(t){return e}})(null!=(t=null==c?void 0:c.dob)?t:null==c?void 0:c.dateOfBirth)}),(0,n.jsx)(j,{label:"Gender",value:(e=>{if(!e)return"Not Specified";let t={M:"Male",F:"Female",O:"Other"},a=e.trim(),n=a.toUpperCase();if(t[n])return t[n];let r=a.toLowerCase();return"male"===r?"Male":"female"===r?"Female":"other"===r||"others"===r?"Other":a})(null==c?void 0:c.gender)}),(0,n.jsx)(j,{label:"Phone",value:(a=null==c?void 0:c.phone,l=null==c?void 0:c.countryCode,a?l?"+".concat(l," ").concat(a):a:"Not Specified")}),(0,n.jsx)("div",{className:"w-full flex flex-col items-center",children:(0,n.jsx)(y.q,{id:"accept-care-receiver-permissions",checked:x,onCheckedChange:h})}),(0,n.jsxs)("div",{className:"flex items-center space-x-2 pt-2 w-full justify-center",children:[(0,n.jsx)("input",{type:"checkbox",id:"termsAndConditions",checked:f,onChange:e=>N(e.target.checked),className:"w-4 h-4 mr-2 rounded border-gray-300 text-cyan-500 focus:ring-cyan-500",required:!0}),(0,n.jsxs)(p.J,{htmlFor:"termsAndConditions",className:"text-sm text-gray-700 dark:text-gray-300 cursor-pointer",children:["I read and accept"," ",(0,n.jsx)("span",{className:"text-cyan-500 cursor-pointer hover:underline",children:"Terms & Conditions"}),(0,n.jsx)("span",{className:"text-red-500",children:" *"})]})]}),w&&(0,n.jsx)("p",{className:"text-sm text-red-500 w-full text-center",role:"alert",children:w})]}),(0,n.jsxs)("div",{className:"flex gap-3 justify-center pt-4 shrink-0 border-t border-gray-200 dark:border-gray-700 pt-4 mt-2",children:[(0,n.jsx)(m.$,{type:"button",variant:"outline",className:"border-cyan-500 text-cyan-500 hover:bg-cyan-600/10",onClick:async()=>{A(!0);try{await R(o),I({title:"Success",description:"Invitation declined successfully."}),h(!0),N(!1),null==d||d(),s()}catch(l){let r="Failed to decline invitation.";if(l instanceof Error)r=l.message;else if(l&&"object"==typeof l){var e,t,a,n;r=(null==(t=l.response)||null==(e=t.data)?void 0:e.error)||(null==(n=l.response)||null==(a=n.data)?void 0:a.message)||l.message||r}I({title:"Error",description:r,variant:"destructive"})}finally{A(!1)}},disabled:k||E,children:E?"Declining...":"Decline"}),(0,n.jsx)(m.$,{type:"submit",disabled:k||E,className:"bg-cyan-600 hover:bg-cyan-700 text-white",children:k?"Accepting...":"Accept"})]})]})]})})}let w={UT_ECG_REVIEW_MANAGER:"Review Manager",UT_ECG_REVIEWER:"Reviewer",UT_MANUAL_READER_SPECIALIST:"Manual Reader"};function _(e){var t,a;let{open:r,onOpenChange:l,invitation:i,onSuccess:s}=e,{toast:o}=(0,g.dj)(),{mutateAsync:c,isPending:d}=(0,u.zD)(),p=i?"".concat(null!=(t=w[i.category])?t:i.category," Request"):"Invitation Request",x=i?"You have been invited to be a ".concat(null!=(a=w[i.category])?a:i.category,", please accept."):"",h=async()=>
1{if(i)try{await c((e=>{if(!i)throw Error("No invitation");let t={invitation_id:i.invitation_id,invitationStatus:1,category:i.category};return i.email?t.email=i.email:(t.phone=i.phone,t.countryCode=i.countryCode),i.managerUserId&&(t.managerUserId=i.managerUserId),t})(0)),o({title:"Invitation accepted successfully"}),l(!1),null==s||s()}catch(n){var e,t;let a=n&&"object"==typeof n&&"response"in n?null==(t=n.response)||null==(e=t.data)?void 0:e.detail:null;o({title:null!=a?a:"Failed to accept invitation",variant:"destructive"})}};return(0,n.jsx)(v.lG,{open:r,onOpenChange:()=>{d||l(!1)},children:(0,n.jsxs)(v.Cf,{className:"sm:max-w-md rounded-lg",children:[(0,n.jsx)(v.c7,{children:(0,n.jsx)(v.L3,{className:"text-xl font-bold",children:p})}),(0,n.jsxs)("div",{className:"border-t pt-4",children:[(0,n.jsx)("p",{className:"text-center text-sm text-muted-foreground mb-6",children:x}),(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(m.$,{onClick:h,disabled:d,className:"bg-cyan-600 hover:bg-cyan-800 text-white uppercase font-medium",children:d?"Acceptingâ¦":"ACCEPT"})})]})]})})}let k="UT_ECG_REVIEW_MANAGER",C="UT_ECG_REVIEWER",E="UT_MANUAL_READER_SPECIALIST";function A(){var e,t,a,s,o,c,v,m,p,x,h,y,b,j,w,A,I,S,R;let F=function(){let e=(0,l.usePathname)(),t=localStorage.getItem("role");return!!((null==e?void 0:e.startsWith("/patient"))&&"Patient"===t)}(),{data:D,isLoading:U,refetch:P}=(0,u.H5)({enabled:F}),q=F?D:void 0,{toast:M}=(0,g.dj)(),{mutateAsync:T}=(0,u.Fs)(),{mutateAsync:L}=(0,u.zi)(),[O,G]=(0,r.useState)({open:!1,invitation:null}),[B,Y]=(0,r.useState)({open:!1,invitationId:0}),[W,z]=(0,r.useState)({open:!1,invitationId:0});if(U)return null;let J=null!=(c=null==q||null==(e=q.count)?void 0:e.caregiver)?c:0,$=null!=(v=null==q||null==(t=q.count)?void 0:t.care_receiver)?v:0,V=J+$+(null!=(m=null==q||null==(a=q.count)?void 0:a.reviewer)?m:0),Q=(null!=(p=null==q?void 0:q.has_pending)?p:V>0)||V>0,Z=(null!=(x=null==q||null==(s=q.pending_as_caregiver)?void 0:s.length)?x:0)>0,H=(null!=(h=null==q||null==(o=q.pending_as_care_receiver)?void 0:o.length)?h:0)>0,X=[...null!=(S=null==(I=q)?void 0:I.pending_staff_invitations)?S:[],...(null!=(R=null==I?void 0:I.pending_reviewer_invitations)?R:[]).map(e=>{var t,a,n,r,l;return{invitation_id:e.invitation_id,category:(null==(t=e.user_type)?void 0:t.internal_code)&&"UT_USER"!==e.user_type.internal_code?e.user_type.internal_code:"reviewer"===e.type?C:"",email:null!=(n=e.email)?n:void 0,phone:null!=(r=e.phone)?r:void 0,countryCode:null!=(l=e.country_code)?l:void 0,managerUserId:null==(a=e.invited_by)?void 0:a.id}})],K=null!=(y=null==q?void 0:q.categories)?y:[],ee=(null!=(b=null==q?void 0:q.pending_reviewer_invitations)?b:[]).some(e=>{var t;if("reviewer"!==e.type)return!1;let a=null==(t=e.user_type)?void 0:t.internal_code;return a!==k&&a!==E&&(!a||"UT_USER"===a||a===C)&&(!a||"UT_USER"===a||a===C)}),et=null!=(j=X.find(e=>e.category===k))?j:null,ea=null!=(w=X.find(e=>e.category===C))?w:null,en=null!=(A=X.find(e=>e.category===E))?A:null,er=null!=et||K.includes(k),el=null!=ea||K.includes(C)||ee,ei=null!=en||K.includes(E),es=er||el||ei;if(!Q&&!es)return null;let eo={actionLabel:"REVIEW",variant:"warning",backgroundColor:"#FAFDE3",accentColor:"#BFA700"},ec={...eo,backgroundColor:"#FCF9EE",icon:(0,n.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[#BFA700]","aria-hidden":!0,children:(0,n.jsx)(i.A,{className:"h-4 w-4 text-white"})})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex w-full min-w-0 max-w-full flex-col gap-2",children:[Z&&(0,n.jsx)(d,{message:J>1?"You have ".concat(J," pending requests from care receiver(s). You can choose to accept or reject."):"You have a pending request from care receiver. You can choose to accept or reject.",onAction:()=>{var e;if(z({open:!1,invitationId:0}),!(null==q||null==(e=q.pending_as_caregiver)?void 0:e[0]))return;let t=q.pending_as_caregiver[0];Y({open:!0,invitationId:t.id,careSeekerName:t.care_receiver_name||t.care_receiver_email})},...eo}),H&&(0,n.jsx)(d,{message:$>1?"You have ".concat($," pending requests to be a care receiver. You can choose to accept or reject."):"You have a pending request to be a care receiver. You can choose to accept or reject.",onAction:()=>{var e;if(Y({open:!1,invitationId:0}),!(null==q||null==(e=q.pending_as_care_receiver)?void 0:e[0]))return;let t=q.pending_as_care_receiver[0];z({open:!0,invitationId:t.id,caregiverName:t.caregiver_name||t.caregiver_email,nickName:t.nick_name})},...eo}),er&&(0,n.jsx)(d,{message:"You have a pending request to be a Review Manager, please accept.",onAction:()=>{et?G({open:!0,invitation:et}):M({title:"Invitation details not available. Please try again later.",variant:"destructive"})},...ec}),el&&(0,n.jsx)(d,{message:"You have a pending request to be a Reviewer, please accept.",onAction:()=>{ea?G({open:!0,invitation:ea}):M({title:"Invitation details not available. Please try again later.",variant:"destructive"})},...ec}),ei&&(0,n.jsx)(d,{message:"You have a pending request to be a Manual Reader, please accept.",onAction:()=>{en?G({open:!0,invitation:en}):M({title:"Invitation details not available. Please try again later.",variant:"destructive"})},...ec})]}),(0,n.jsx)(_,{open:O.open,onOpenChange:e=>{e||G({open:!1,invitation:null})},invitation:O.invitation,onSuccess:P}),B.open&&(0,n.jsx)(f,{open:B.open,onClose:()=>{Y({open:!1,invitationId:0})},careSeekerId:B.invitationId,careSeeker:(()=>{var e,t,a,n,r;let l=null==q||null==(e=q.pending_as_caregiver)?void 0:e.find(e=>e.id===B.invitationId);if(!l)return;let i=(null!=(t=l.care_receiver_name)?t:"").trim().split(/\s+/);return{firstName:i[0],lastName:i.slice(1).join(" "),email:l.care_receiver_email,phone:l.phone,dob:null!=(a=l.dob)?a:void 0,dateOfBirth:null!=(n=l.dob)?n:void 0,gender:null!=(r=l.gender)?r:void 0,permissions:l.permissions}})()}),W.open&&(0,n.jsx)(N,{open:W.open,onClose:()=>{z({open:!1,invitationId:0})},relationshipId:W.invitationId,caregiver:(()=>{var e,t,a,n,r;let l=null==q||null==(e=q.pending_as_care_receiver)?void 0:e.find(e=>e.id===W.invitationId);if(!l)return;let i=(null!=(t=l.caregiver_name)?t:"").trim().split(/\s+/);return{firstName:i[0],lastName:i.slice(1).join(" "),email:l.caregiver_email,phone:l.phone,dob:null!=(a=l.dob)?a:void 0,dateOfBirth:null!=(n=l.dob)?n:void 0,gender:null!=(r=l.gender)?r:void 0}})()})]})}},88594:(e,t,a)=>{a.d(t,{b:()=>s});var n=a(7620),r=a(60421),l=a(54568),i=n.forwardRef((e,t)=>
1(0,l.jsx)(r.sG.label,{...e,ref:t,onMouseDown:t=>{var a;t.target.closest("button, input, select, textarea")||(null==(a=e.onMouseDown)||a.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var s=i},98099:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(15021).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])}}]);
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.