PageSourceSearch

https://app.grantedhealth.com/_next/static/chunks/pages/shadow-login-c8aef9fc33b66d29.js

js grantedhealth.com collected 2026-09-25 02:59:21 UTC 17,226 bytes, 10 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"medbillai-web@2ffd4a7"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a34feb7d-a7ae-4f48-9368-f4bfa08cc1d8",e._sentryDebugIdIdentifier="sentry-dbid-a34feb7d-a7ae-4f48-9368-f4bfa08cc1d8")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2296],{10645:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,Fk:()=>y,Oj:()=>p,QG:()=>f,U8:()=>h,m_:()=>g,os:()=>m,qZ:()=>b});var n=r(60072),o=r(87371),a=r(57272),s=r(67978),i=r(28078),l=r(77141),d=r(17732),c=r(81803);let u=(0,o.I)(a.j,{size:"$5",backgroundColor:"$surface0",zIndex:2,justifyContent:"center",alignItems:"center",mb:"$3.5",variants:{whiteShadow:{true:{backgroundColor:"$surface2",shadowColor:"black",shadowOffset:{height:4,width:0},shadowRadius:4,shadowOpacity:.08},false:{}}}}),h=(0,o.I)(s.lW,{height:"$3",width:"$3",alignItems:"center",justifyContent:"center",borderRadius:"$3",backgroundColor:"$surface0"});(0,o.I)(s.Se,{position:"absolute",left:0,right:0,bottom:0,transform:[{translateY:0}],justifyContent:"flex-end",alignItems:"center"}),(0,o.I)(s.Se,{position:"absolute",left:0,right:0,bottom:0,top:0,justifyContent:"center",alignItems:"center",transition:"bouncyTight",enterStyle:{opacity:0,scale:.5},exitStyle:{opacity:0}}),(0,o.I)(s.lW,{opacity:1,scale:1,position:"absolute",left:0,right:0,top:0,bottom:0,f:1,jc:"center",ai:"center"});let f={shadowOffset:{width:0,height:2},shadowOpacity:.08,shadowRadius:4,shadowColor:"black",pressStyle:{scale:.95},transition:"bouncyTight"},y=(0,o.I)(s.lW,{cursor:"pointer",gap:"$2",px:"$3",py:"$2",borderWidth:c.T,borderColor:"$borderDefault",backgroundColor:"$surface2",borderRadius:"$10",justifyContent:"center",alignItems:"center",shadowOffset:{width:0,height:2},shadowOpacity:.08,shadowRadius:4,shadowColor:"black",hoverStyle:{backgroundColor:"$surface2Hover",borderColor:"$borderDefaultHover"},pressStyle:{backgroundColor:"$surface2Hover",borderColor:"$borderDefaultHover",scale:.95},transition:"bouncyTight"}),g=(0,o.I)(s.lW,{justifyContent:"space-between",alignItems:"center",gap:"$2",px:"$3",py:"$2",borderRadius:"$10",borderWidth:c.T,borderColor:"$color4",backgroundColor:"$color3"});(0,o.I)(i.$,{name:"StyledMultiActionButton",unstyled:!0,cursor:"pointer",borderRadius:"$10",height:"$6",flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingRight:"$4",paddingLeft:"$3",backgroundColor:"$surface2",borderWidth:1,borderColor:"$borderDefault",transition:"bouncyTight",hoverStyle:{backgroundColor:"$surface2Hover",borderColor:"$borderDefaultHover"},pressStyle:{backgroundColor:"$surface2Hover",borderColor:"$borderDefaultHover",shadowColor:d.i3,shadowOpacity:.8,shadowRadius:14,scale:.98},variants:{selected:{true:{borderColor:"$borderIntense",shadowOffset:{width:0,height:4},shadowColor:"black",shadowOpacity:.08,shadowRadius:8,hoverStyle:{borderColor:"$borderIntense"},pressStyle:{borderColor:"$borderIntense"}}}}}),(0,o.I)(i.$,{name:"StyledNextActionButton",unstyled:!0,cursor:"pointer",br:"$10",height:"$6",width:"$7",transition:"bouncyTight",justifyContent:"center",alignItems:"center",backgroundColor:"$surfaceStrong",hoverStyle:{backgroundColor:"$surfaceStrongHover"},pressStyle:{backgroundColor:"$surfaceStrongHover",scale:.98}});let b=(0,o.I)(l.Ss2,{position:"absolute",left:8,top:8,width:16,height:16,zIndex:1}),p=(0,o.I)(s.lW,{render:"button",unstyled:!0,width:"100%",height:"100%",cursor:"pointer",backgroundColor:"transparent",position:"relative",overflow:"hidden"}),x=(0,o.I)(i.$,{unstyled:!0,flexDirection:"row",alignItems:"center",justifyContent:"center",cursor:"pointer",margin:0,borderWidth:1,borderColor:"$borderDefault",backgroundColor:"$surface2",borderRadius:"$10",height:50,animateOnly:["backgroundColor","borderColor","opacity"],paddingHorizontal:"$sp2",hoverStyle:{borderColor:"$borderDefaultHover",backgroundColor:"$surface2Hover"},pressStyle:{margin:0,borderWidth:2,borderColor:"$borderDefaultHover",backgroundColor:"$surface2Hover",scale:.98}
1,variants:{tone:{default:{},negative:{borderColor:"$borderNegative",hoverStyle:{borderColor:"$borderNegativeHover",backgroundColor:"$surface2Hover"},pressStyle:{borderColor:"$borderNegativeHover",backgroundColor:"$surface2Hover"}}},selected:{true:{margin:0,borderWidth:2,borderColor:"$borderIntense",backgroundColor:"$surface2",hoverStyle:{borderColor:"$borderIntense"},pressStyle:{borderColor:"$borderIntense"}}}},defaultVariants:{tone:"default"}}),m=({children:e,...t})=>(0,n.jsx)(x,{...t,"data-sentry-element":"StyledSelectButtonInner","data-sentry-component":"StyledSelectButton","data-sentry-source-file":"GeneralStyledComponents.tsx",children:(0,n.jsx)(i.$.Text,{color:"negative"===t.tone?"$textNegative":"$textDefault",size:"$4","data-sentry-element":"Button.Text","data-sentry-source-file":"GeneralStyledComponents.tsx",children:e})});(0,o.I)(s.lW,{height:8,width:"100%",backgroundColor:"$gray5",borderRadius:2}),r(29177)},21424:(e,t,r)=>{"use strict";r.d(t,{i:()=>f});var n=r(60072),o=r(10983),a=r(60004),s=r(48782),i=r(72838),l=r(43171),d=r(36119),c=r(82230),u=r(24577),h=r(88510);let f=e=>{let{isReady:t,isAuthenticated:r,setIntendedPath:f,user:y}=(0,s.A)(),{replace:g,pathname:b,query:p,isReady:x}=(0,o.useRouter)(),m=(0,a.useRef)(null),{setIsSignUpOnboarding:w}=(0,l.s)(),S=(0,c.I7)({skip:!r});if(!t||!x)return(0,n.jsx)(h.N,{});if(!r){if(m.current!==b){m.current=b;let e="string"==typeof p.anonToken?p.anonToken:null;if(e&&(d.LO.set("token",e),w(!0)),"/"!==b&&!i.p_.includes(b)){let{anonToken:e,...t}=p;f((0,u.mR)(b,t))}g((0,u.$6)())}return(0,n.jsx)(h.N,{})}let $=function({user:e,pathname:t,hasPendingNateraIntake:r}){let n=e=>t===e||t.startsWith(`${e}/`)?null:e;return e?.isShadow?null:r?n((0,u.IF)()):e?.partner&&null===e.acceptedTermsAt?n((0,u.XF)()):null}({user:y,pathname:b,hasPendingNateraIntake:S});return($||(m.current=null),$)?(m.current!==b&&(m.current=b,"/"===b||i.p_.includes(b)||$===(0,u.IF)()||f((0,u.mR)(b,p)),g($)),(0,n.jsx)(h.N,{})):r&&i.p_.includes(b)?(m.current!==b&&(m.current=b,g((0,u.j_)())),(0,n.jsx)(h.N,{})):(0,n.jsx)(n.Fragment,{children:e.children})}},27033:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(60004),o=r(23162),a=r(93692),s=r(60072);let i=(0,a.S)((0,n.memo)(function(e){let{color:t="black",size:r=24,...n}=e;return(0,s.jsxs)(o.BS,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,s.jsx)(o.wA,{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",stroke:t}),(0,s.jsx)(o.wA,{d:"m9 12 2 2 4-4",stroke:t})]})}))},29177:()=>{},36064:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/shadow-login",function(){return r(60908)}])},56168:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(98924),o=r(87371),a=r(77141),s=r(89034);let i=(0,o.I)(a.Ss2,{name:"Separator",variants:{unstyled:{false:{borderColor:"$backgroundFocus",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5}},vertical:{true:{y:0,x:-.5,height:n.HZ?"initial":"auto",maxHeight:n.HZ?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}},defaultVariants:{unstyled:"1"===s.env.TAMAGUI_HEADLESS}})},60376:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>e},60908:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var n=r(60072),o=r(76316),a=r.n(o),s=r(94131),i=r(5018),l=r(1511);let d=({children:e})=>(0,n.jsxs)(s.Se,{f:1,ai:"center","data-sentry-element":"YStack","data-sentry-component":"AuthLayout","data-sentry-source-file":"layout.web.tsx",children:[(0,n.jsx)(i.F,{"data-sentry-element":"BackgroundRadialGrantedGradient","data-sentry-source-file":"layout.web.tsx"}),(0,n.jsx)(s.Se,{zIndex:40,mt:"$10",height:"$10","data-sentry-element":"YStack","data-sentry-source-file":"layout.web.tsx",children:(0,n.jsx)(l.z8,{height:100,width:100,"data-sentry-element":"GrantedLogo","data-sentry-source-file":"layout.web.tsx"})}),(0,n.jsx)(s.Se,{f:1,justifyContent:"flex-start",alignItems:"center",pt:"$10",px:"$4.5",maxWidth:600,width:"100%","data-sentry-element":"YStack","data-sentry-source-file":"layout.web.tsx",children:(0,n.jsx)(s.Se,{boxSh
1adow:"0px 5px 6px $shadowColor",br:"$8",width:"100%","data-sentry-element":"YStack","data-sentry-source-file":"layout.web.tsx",children:(0,n.jsx)(s.Se,{gap:"$3",justifyContent:"center",backgroundColor:"$background",borderWidth:1,borderColor:"$strokeSecondary",p:"$9",$sm:{p:"$4"},br:"$8",alignItems:"center",width:"100%","data-sentry-element":"YStack","data-sentry-source-file":"layout.web.tsx",children:e})})})]});var c=r(60004),u=r(56615),h=r(20984),f=r(68312),y=r(96126),g=r(22350),b=r(98924),p=r(66212),x=r(45851),m=r(88510),w=r(80706),S=r(24577),$=r(62274),j=r(48782),k=r(16288);let C=y.Ik({email:g.UQ.text.email().describe("Enter the email address of another user")}),v=b.HZ?$.Lp:$.qM,I=()=>{let{showAlert:e}=(0,k.Zz)(),{shadowLogin:t,isReady:r,user:o}=(0,j.A)(),{replace:a}=(0,f.r)(),[i,l]=(0,c.useState)(!1),[d,y]=(0,c.useState)(!1),[b,$]=(0,c.useState)(!0);(0,c.useEffect)(()=>{r&&b&&(o?.isAdmin||i?$(!1):a((0,S.kJ)()))},[r,b,a,i,o?.isAdmin]);let I=(0,u.mN)(),H=async({email:r})=>{let n;l(!0);try{n=await t(r)}catch(t){console.error("Unexpected error from server for shadow login",t),e({type:"error",message:"Unexpected error from server, please try again."}),l(!1);return}if(!n){e({type:"error",message:"Empty response from server, please try again or skip."}),l(!1);return}(0,g.S7)(I,n)?l(!1):"AuthUser"===n.__typename?y(!0):(console.error("Unexpected response from server for shadow login",n),e({type:"error",message:"Unexpected response from server, please try again."}))},_=(0,h.i)({href:(0,S.j_)()});return d&&o?.profile?.email?(0,n.jsxs)(v,{centerHorizontal:!0,children:[(0,n.jsx)(p.F_,{children:"Shadow Login"}),(0,n.jsxs)(p.fz,{children:["You are now logged in as ",(0,n.jsx)(p.EY,{bold:!0,children:o.profile.email}),"!"]}),(0,n.jsx)(p.fz,{children:"Please exercise extreme caution not to invoke actions on the user's behalf - unless they have specifically requested that you do so."}),(0,n.jsx)(x.lV,{onPress:()=>a((0,S.j_)()),children:"Continue"})]}):b?(0,n.jsx)(m.N,{}):(0,n.jsx)(v,{centerHorizontal:!0,"data-sentry-element":"ScreenViewComponent","data-sentry-component":"ShadowLoginScreen","data-sentry-source-file":"shadow-login.tsx",children:(0,n.jsx)(u.Op,{...I,"data-sentry-element":"FormProvider","data-sentry-source-file":"shadow-login.tsx",children:(0,n.jsx)(g.q,{form:I,schema:C,formProps:{},onSubmit:H,props:{},renderAfter:({submit:e})=>(0,n.jsx)(x.lV,{disabled:i,onPress:()=>e(),children:"Shadow Login"}),"data-sentry-element":"SchemaForm","data-sentry-source-file":"shadow-login.tsx",children:e=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(s.Se,{gap:"$3",children:[(0,n.jsx)(p.F_,{children:"Shadow Login"}),(0,n.jsx)(x.lV,{..._,my:"$3",children:"Skip Shadow Login"}),(0,n.jsx)(w.Zp,{theme:"red",children:(0,n.jsx)(w.Zp.Header,{children:(0,n.jsx)(s.Se,{gap:"$2",children:(0,n.jsx)(p.fz,{children:"Please read the instructions carefully!"})})})}),(0,n.jsx)(p.fz,{children:"You are currently logged in as an administrative user. You have the option to shadow login as another user. This is helpful for debugging reported issues, or to see what a user sees."}),(0,n.jsx)(p.fz,{children:"If you do not wish to shadow login, you can skip this step using the button above, and continue into the application as yourself."}),(0,n.jsx)(p.fz,{children:"If you continue with the shadow login, then everything you do after this screen will be as the shadowed user. You will not be able to return to your own account until you log out again. You must exercise extreme caution not to invoke actions on the user's behalf - unless they have specifically requested that you do so."}),Object.values(e)]})})})})})};var H=r(21424);let _=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a(),{"data-sentry-element":"Head","data-sentry-source-file":"shadow-login.tsx",children:(0,n.jsx)("title",{children:"Shadow Login"})}),(0,n.jsx)(I,{"data-sentry-element":"ShadowLoginScreen","data-sentry-source-file":"shadow-login.tsx"})]});_.getLayout=e=>(0,n.jsx)(H.i,{children:(0,n.jsx)(d,{children:e})});let R=_},62274:(e,t,r)=>{"use strict";r.d(t,{Lp:()=>b,O:()=>p,YJ:()=>x,qM:()=>g});var n=r(60072),o=r(60004),a=r(55761),s=r(87371),i=r(94131),l=r(98924),d=r
1(84875),c=r(67429),u=r(5018),h=r(52570),f=r(25496);let y=(0,s.I)(i.Se,{name:"ScreenStack",p:"$3",gap:"$3",alignItems:"stretch",variants:{centerHorizontal:{true:{alignSelf:"center"}},centerVertical:{true:{justifyContent:"center"}},centerContent:{true:{alignItems:"center"}},extraPadding:{true:{p:"$6",$gtSm:{p:"$8"}}},noPadding:{true:{p:0,$gtSm:{p:0}}}}}),g=({children:e,disableScroll:t=!1,extraPadding:r=!1,noPadding:s=!1,centerVertical:f=!1,centerHorizontal:g=!1,centerContent:b=!1,widthLimit:p=!0,backgroundColor:x,scrollViewProps:m,scrollViewContainerProps:w,stackProps:S,renderBefore:$,renderAfter:j,contentRefreshOffset:k=0,backgroundRadialGradient:C=!1,backgroundRadialGradientProps:v,onRefresh:I})=>{let H,{height:_,fontScale:R}=(0,a.useWindowDimensions)(),[W,T]=(0,o.useState)(!1),D=async()=>{if(I){T(!0);try{await I()}catch(e){c.$.captureException(e)}finally{T(!1)}}};return p&&("number"==typeof p?H=p:l.HZ&&!0===p&&(H=600)),(0,n.jsxs)(n.Fragment,{children:[C?(0,n.jsx)(u.F,{...v}):null,(0,n.jsxs)(d.B,{keyboardShouldPersistTaps:"handled",scrollEnabled:!!(_<=800||R>1.1)||!t,centerContent:f,contentContainerStyle:{display:"flex",flexDirection:"column",alignItems:"stretch",flexGrow:1,...w},backgroundColor:x,width:"100%",fg:1,refreshControl:I?(0,n.jsx)(a.RefreshControl,{refreshing:W,onRefresh:D,progressViewOffset:k}):void 0,...m,"data-sentry-element":"ScrollView","data-sentry-source-file":"ScreenView.tsx",children:[l.HZ?null:(0,n.jsx)(i.Se,{fg:0,children:(0,n.jsx)(h.G,{})}),$??null,(0,n.jsx)(y,{centerHorizontal:g,centerVertical:f,centerContent:b,extraPadding:r,noPadding:s,width:"100%",fg:1,maxWidth:H,backgroundColor:x,...S,"data-sentry-element":"ScreenStack","data-sentry-source-file":"ScreenView.tsx",children:e}),j?(0,n.jsx)(y,{maxWidth:H,width:"100%",centerHorizontal:g,extraPadding:r,noPadding:s,py:"$0",children:j}):null]})]})},b=e=>(0,n.jsx)(g,{centerVertical:!0,...e,"data-sentry-element":"ScreenView","data-sentry-component":"ScreenViewCenter","data-sentry-source-file":"ScreenView.tsx"}),p=e=>(0,n.jsx)(g,{renderBefore:(0,n.jsx)(i.lW,{flexGrow:1,flexShrink:1,maxHeight:100}),stackProps:{flexGrow:4,flexShrink:0},...e,"data-sentry-element":"ScreenView","data-sentry-component":"ScreenViewTopThird","data-sentry-source-file":"ScreenView.tsx"}),x=e=>{let{stackProps:t,...r}=e;return(0,n.jsx)(g,{backgroundRadialGradient:!0,centerHorizontal:!0,extraPadding:!0,disableScroll:!0,renderBefore:(0,n.jsx)(i.lW,{minHeight:"10%",$short:{minHeight:"2%"}}),stackProps:{px:"$8",gap:"$6",$short:{gap:"$2",px:"$4"},pt:f.k,...t},...r,"data-sentry-element":"ScreenView","data-sentry-component":"ScreenViewShadowCircle","data-sentry-source-file":"ScreenView.tsx"})}},82230:(e,t,r)=>{"use strict";r.d(t,{I7:()=>l,JM:()=>u,m2:()=>c});var n=r(82910),o=r(45994),a=r(93899),s=r(17859);let i=(0,o.J)(`
2  query PendingNateraIntake {
3    hasPendingNateraIntake
4  }
5`);function l({skip:e}){let{data:t}=(0,n.IT)(i,{skip:e,context:(0,s.Q)("caller")});return t?.hasPendingNateraIntake}let d=(0,o.J)(`
6  query NateraIntakeResume {
7    nateraIntakeResumeDestination
8  }
9`);function c({skip:e}){let{data:t,error:r}=(0,n.IT)(d,{skip:e,fetchPolicy:"no-cache",context:(0,s.Q)("caller")});return r?"activation":t?t.nateraIntakeResumeDestination===a.DS8.HOME?"home":"activation":void 0}function u(e){e.writeQuery({query:i,data:{__typename:"Query",hasPendingNateraIntake:!1}})}},88510:(e,t,r)=>{"use strict";r.d(t,{N:()=>d,v:()=>c});var n=r(60072),o=r(55761),a=r(98924),s=r(60376),i=r(74264),l=r(94131);let d=({viewportFloor:e,...t})=>(0,n.jsx)(l.Se,{flex:1,justifyContent:"center",alignItems:"center",role:"progressbar",minHeight:e&&a.HZ?(0,s.A)("100dvh"):void 0,...t,"data-sentry-element":"YStack","data-sentry-component":"FullscreenSpinner","data-sentry-source-file":"FullscreenSpinner.tsx",children:(0,n.jsx)(i.a,{"data-sentry-element":"Loader","data-sentry-source-file":"FullscreenSpinner.tsx"})}),c=({heightOffset:e,overlayColor:t,stackProps:r})=>{let s=o.Dimensions.get("window").width,d=o.Dimensions.get("window").height;return(0,n.jsx)(l.Se,{flex:1,justifyContent:"center",alignItems:"center",height:a.HZ?"100%":d,width:a.HZ?"100%":s,backgroundColor:t,zIndex:1e3,opacity:1,position:"absolute",role:"progressbar",...r,"data-sentry-element":"YStack","data-sentry-component":"FullscreenSpinnerOverlay","data-sentry-source-file":"FullscreenSpinner.tsx",children:(0,n.jsx)(l.Se,{position:e?"relative":void 0,y:e||void 0,"data-sentry-element":"YStack","data-sentry-source-file":"FullscreenSpinner.tsx",children:(0,n.jsx)(i.a,{"data-sentry-element":"Loader","data-sentry-source-file":"FullscreenSpinner.tsx"})})})}}},e=>{e.O(0,[5023,2182,5898,3068,3170,1101,2350,636,6593,8792],()=>e(e.s=36064)),_N_E=e.O()}]);
10//# sourceMappingURL=shadow-login-c8aef9fc33b66d29.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.