1try{!function(){var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8c4b476f-1e52-45f6-94ab-5063a664396a",e._sentryDebugIdIdentifier="sentry-dbid-8c4b476f-1e52-45f6-94ab-5063a664396a")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9909],{7670:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/clinicInvitePatients",function(){return i(23647)}])},23647:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>F,default:()=>H});var n=i(37876),r=i(59803),o=i(39955),a=i(91921),s=i(82736),l=i(87365),c=i(11913),d=i(14232),h=i(38061),u=i(5377),m=i(53869),p=i(46676),g=i(96491),x=i(5728),y=i(79514),f=i(79736),b=i(51362),j=i(30763),T=i(82285),w=i(38890),k=i(3297),v=i(88992),I=i(13810),_=i(17319),S=i(91636),N=i(45449),D=i(59040),C=i(29781),E=i(46748),O=i(53602),z=i(47082),W=i(60513);let G=W.z.object({patientName:W.z.string(),patientType:W.z.string(),signOff:W.z.string()}),L=e=>{let t,{t:i}=(0,c.Bd)(),{colorMode:s}=(0,h.G6)(),{user:l,session:W,status:L}=(0,C.Ay)(),{data:P,error:$,loading:M}=(0,k.OI)({variables:{clinicId:l?.clinicId??-1,userId:l?.realUserId??-1,inviterName:l?.name??"clinic",inviteeName:"patient"},skip:!l?.realUserId||!l?.clinicId}),A=(0,d.useMemo)(()=>{let e=P?.clinicInviteLink?.tokenShort,t=P?.clinicInviteLink?.goLink,i=t?.substring(0,t.indexOf(".com/")+4);return e?`${i}/go/${e}`:"https://get.gluroo.com"},[P?.clinicInviteLink?.goLink,P?.clinicInviteLink?.tokenShort]);if(!(0,N.fL)())try{t=JSON.parse(sessionStorage.getItem("clinicOnboarding")??""),E.aD.info("clinicSignUp sessionStorage.clinicOnboarding = "+(0,_.JS)(t))}catch(e){}(0,u.d)();let F=(0,v.mN)({resolver:(0,I.u)(G)}),{errors:H,isSubmitting:R,isValid:J,isDirty:V}=F.formState,Y=(0,v.FH)({control:F.control,name:"patientName"}),B=(0,v.FH)({control:F.control,name:"patientType"}),U=(0,v.FH)({control:F.control,name:"signOff"});(0,d.useCallback)(()=>{(0,N.fL)()||sessionStorage.setItem("invitePatientForm",(0,_.JS)(F.getValues()))},[F]);let X=(0,d.useMemo)(()=>{let e=(Y?.trim()?i("Dear nameTrim",{nameTrim:Y?.trim()}):i("Dear patient",{}))+", ",t=i("Our practice is now using Gluroo httpsgluroocom a secure easytouse mobile app and platform that helps us manage your care better together",{}),n="With Gluroo, you can record your blood sugar readings (with a glucometer or a Dexcom or Libre CGM), track your medications, and log food and exercise.";(B?.startsWith("T1D")||B?.endsWith("_Insulin"))&&(n+=i("You can log insulin doses either manually or automatically with supported smart pens and pumps",{})),"T1D_Child"==B&&(n=i("Gluroo lets you track your childs data in real time from your own phone",{}));let r=i("Gluroo runs on Android and iPhones and helps organize all of your diabetes data and gives you control over who you share it with",{}),o=i("To get started please click on the link below to join our practice on Gluroo",{})+": ",a=U?.trim()?U:i("Thank you",{});return`${e} 2 3${t} 4 5${n} 6 7${r} 8 9${o} 10 11${A} 12 13${a}`},[A,Y,B,U,i]);return(0,n.jsx)(v.Op,{...F,children:(0,n.jsxs)("form",{children:[(0,n.jsxs)(m.MJ,{isInvalid:!!H.patientName,minWidth:"30em",maxWidth:"40em",children:[(0,n.jsx)(p.l,{mt:2,color:"text",children:i("Patient name")}),(0,n.jsx)(g.p,{id:"patientName",autoCapitalize:"words",color:"text",maxWidth:"24em",placeholder:"Leave blank for generic greeting",...F.register("patientName")}),(0,n.jsx)(x.Wt,{children:H.patientName?.message}),(0,n.jsx)(o.a,{my:8}),(0,n.jsx)(p.l,{mt:2,color:"text",children:i("Patient type")}),(0,n.jsx)(y.z,{defaultValue:F.getValues("patientType"),children:(0,n.jsxs)(f.z,{spacing:"64px",align:"flex-start",children:[(0,n.jsxs)(b.T,{align:"flex-start",children:[(0,n.jsx)(j.s,{...F.register("patientType"),value:"T2D_Insulin",children:i("Type 2 with insulin")}),(0,n.jsx)(j.s,{...F.register("patientType"),value:"T2D",children:i("Type 2")})]}),(0,n.jsxs)(b.T,{align:"flex-start",children:[(0,n.jsx)(j.s,{...F.register("patientType"),value:"T1D_Adult",children:i("Type 1 Adult")}),(0,n.jsx)(j.s,{...F.register("patientType"),value:"T1D_Minor",children:i("Type 1 Minor")}),(0,n.jsx)(j.s,{...F.register("patientType"),value:"T1D_Child",children:i("Type 1 Child")})]})]})}),(0,n.jsx)(o.a,{my:4}),(0,n.jsx)(p.l,{mt:2,color:"text",children:i("Your closing")}),(0,n.jsx)(T.T,{id:"signOff",autoCapitalize:"sentences",color:"text",placeholder:"Thanks!",...F.register("signOff")}),(0,n.jsx)(x.Wt,{children:H.patientName?.message}),(0,n.jsx)(o.a,{my:8})]}),(0,n.jsx)(o.a,{my:16}),(0,n.jsx)(w.$,{leftIcon:(0,n.jsx)(z.kn0,{}),mb:2,fontSize:18,fontFamily:"'DM Sans', sans-serif",shadow:"none",backgroundColor:"primary5",borderWidth:0,color:"background",_hover:{background:"primary3"},onClick:()=>{X&&navigator?.clipboard?.writeText(X).catch(D.kg)},children:i("Copy Message")}),(0,n.jsx)(a.E,{whiteSpace:"pre-line",maxWidth:"40em",style:{border:"2px s
13olid black",borderRadius:10,padding:"12px"},children:X}),(0,n.jsx)(r.s,{direction:"row",justify:"center",align:"center",mt:16,children:(0,n.jsx)(S.k,{href:"/home",label:"Done inviting patients for now",variant:"reverse",icon:O.rQ8})})]})})};var P=i(22029),$=i(78007),M=i(27403),A=i(89099),F=!0;let H=()=>{let{t:e}=(0,c.Bd)(),{colorMode:t,themeColors:i}=(0,P.FG)();return(0,A.useRouter)(),(0,d.useEffect)(()=>{sessionStorage.removeItem("clinicOnboardingDoRedirect")},[]),(0,n.jsx)($.A,{whichScreen:"CLINIC_INVITE_PATIENTS",children:(0,n.jsx)(r.s,{direction:"row",children:(0,n.jsxs)(r.s,{justifyContent:"center",alignItems:"center",top:0,width:"full",direction:"column",bg:i.background,color:"white",px:6,py:8,children:[(0,n.jsx)(o.a,{mb:8,children:(0,n.jsx)(M.g,{includeRoo:!0,height:64,linkHome:"apphome"})}),(0,n.jsx)(a.E,{marginTop:-5,marginBottom:8,fontSize:22,color:"text",children:e("Simplify Diabetes Togethertm")}),(0,n.jsx)(o.a,{mb:4}),(0,n.jsx)(s.D,{children:e("Invite Patients")}),(0,n.jsx)(a.E,{fontSize:16,mt:4,maxWidth:"40em",children:e("Next you invite patients to use Gluroo and share give you access to their health data The below will help you create an email to paste into your EHR messaging solution so that your patients know the invitation is from you")}),(0,n.jsxs)(a.E,{fontSize:16,mt:4,maxWidth:"40em",children:[(0,n.jsx)("b",{children:e("This form runs only inside your browser")}),e("You are")," ",(0,n.jsx)("em",{children:e("not")})," ",e("sharing patient data with Gluroo Your patients, when they accept the invitation, will make a personal decision to share with you the data that they connect and create with Gluroo")]}),(0,n.jsx)(o.a,{mb:4}),(0,n.jsx)(L,{}),(0,n.jsx)(l.h,{})]})})})}}},e=>{e.O(0,[3371,1167,8690,4355,4386,6472,6514,8236,3826,2746,1613,2165,9219,8007,636,6593,8792],()=>e(e.s=7670)),_N_E=e.O()}]);
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.