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]="1e3ac432-86d7-41d4-b7c3-84e69ccbbb80",e._sentryDebugIdIdentifier="sentry-dbid-1e3ac432-86d7-41d4-b7c3-84e69ccbbb80")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8162],{6309:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var n=r(60072),a=r(33522),i=r(94131);let s=({pdfUri:e})=>(0,n.jsx)("object",{data:e,type:"application/pdf",width:"100%",height:"100%","data-sentry-component":"PDFPreview","data-sentry-source-file":"PDFPreview.tsx",children:(0,n.jsx)("a",{href:e,children:"Download PDF"})}),o=({documentUrl:e})=>{let t=a.Gesture.Pan();return(0,n.jsx)(a.GestureHandlerRootView,{style:{flex:1},"data-sentry-element":"GestureHandlerRootView","data-sentry-component":"ReleaseSigned","data-sentry-source-file":"ReleaseSigned.tsx",children:(0,n.jsx)(i.Se,{width:"100%",flex:1,backgroundColor:"#f0f0f6","data-sentry-element":"YStack","data-sentry-source-file":"ReleaseSigned.tsx",children:(0,n.jsx)(a.GestureDetector,{gesture:t,"data-sentry-element":"GestureDetector","data-sentry-source-file":"ReleaseSigned.tsx",children:(0,n.jsx)(s,{pdfUri:e,"data-sentry-element":"PDFPreview","data-sentry-source-file":"ReleaseSigned.tsx"})})})})}},7317:(e,t,r)=>{"use strict";r.d(t,{u:()=>d,w:()=>l});var n=r(60072),a=r(60004),i=r(56168),s=r(87371),o=r(81803);let l=(0,s.I)(i.w,{borderColor:"$borderDefault",borderBottomWidth:o.T,variants:{vertical:{true:{borderRightWidth:o.T,borderBottomWidth:0}}}}),d=({separator:e,children:t})=>(0,n.jsx)(n.Fragment,{children:a.Children.toArray(t).map((t,r,i)=>(0,n.jsxs)(a.Fragment,{children:[t,r<i.length-1?e??(0,n.jsx)(l,{}):null]},r))})},10270:(e,t,r)=>{"use strict";r.d(t,{W:()=>c,p:()=>l});var n=r(87371),a=r(16922),i=r(24234),s=r(67978),o=r(89034);let l=(0,n.I)(s.Se,{name:"SwitchThumb",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",borderRadius:1e3}},size:{"...size":e=>{let t=d(e);return{height:t,width:t}}}},defaultVariants:{unstyled:"1"===o.env.TAMAGUI_HEADLESS}},{accept:{activeStyle:"style"}}),d=e=>Math.round(.65*(0,a.Wu)((0,i.YC)(e))),c=(0,n.I)(s.Se,{name:"Switch",render:"button",tabIndex:0,variants:{unstyled:{false:{borderRadius:1e3,backgroundColor:"$background",focusVisibleStyle:{outlineColor:"$outlineColor",outlineStyle:"solid",outlineWidth:2}}},size:{"...size":(e,{props:t})=>{if(t.unstyled)return;let r=d(e);return{height:r,minHeight:r,width:2*d(e)}}}},defaultVariants:{unstyled:"1"===o.env.TAMAGUI_HEADLESS}},{accept:{activeStyle:"style"}})},21957:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var n=r(60072),a=r(76316),i=r.n(a),s=r(55563),o=r(82910),l=r(65391),d=r(68312),c=r(45994),u=r(88510),b=r(57585),f=r(62274),m=r(17859),g=r(97626),p=r(94131),y=r(45851);let h=({onPress:e,children:t,stackProps:r})=>{let{bottom:a}=(0,g.O)();return(0,n.jsx)(p.lW,{position:"absolute",bottom:a+10,width:"100%",height:"$4",padding:"$4.5",zIndex:1e3,...r,"data-sentry-element":"XStack","data-sentry-component":"BottomPreviewButton","data-sentry-source-file":"BottomPreviewButton.tsx",children:(0,n.jsx)(y.lV,{onPress:e,width:"100%",height:"$4","data-sentry-element":"LoadingButton","data-sentry-source-file":"BottomPreviewButton.tsx",children:t})})};var v=r(6309),x=r(41231);let w=(0,c.J)(` 2 query GetSignedHipaaRelease($templateReleaseId: ID) { 3 me { 4 id 5 templateReleases(filter: { id: { eq: $templateReleaseId } }) { 6 id 7 grantedAt 8 document { 9 id 10 template { 11 id 12 displayName 13 default 14 organization { 15 slug 16 } 17 } 18 } 19 } 20 } 21 } 22`),$=(0,c.J)(` 23 query ViewReleaseDocument($input: ViewDocumentInput!) { 24 viewDocument(input: $input) { 25 documentId 26 documentUrl 27 } 28 } 29`),{useParam:S}=(0,l.S)();function j(){let[e]=S("templateReleaseId"),[t]=S("templateId");return t&&!e?(0,n.jsx)(I,{templateId:t}):(0,n.jsx)(k,{templateReleaseId:e,"data-sentry-element":"SignedReleasePreview","data-sentry-component":"ViewReleaseScreen","data-sentry-source-file":"view-release.t
29sx"})}function I({templateId:e}){let{back:t,replace:r}=(0,d.r)(),{loading:a,fileBase64:i}=(0,x.Ir)(e);if(a)return(0,n.jsx)(u.N,{});if(!i){console.error(`Error viewing unsigned template: templateId: ${e}`),r((0,b.hipaaReleaseErrorUrl)({viewPdfError:!0}));return}return(0,n.jsxs)(f.qM,{centerHorizontal:!0,widthLimit:!1,stackProps:{flex:1},"data-sentry-element":"ScreenView","data-sentry-component":"UnsignedTemplatePreview","data-sentry-source-file":"view-release.tsx",children:[(0,n.jsx)(x.ld,{fileBase64:i,"data-sentry-element":"TemplateFileViewer","data-sentry-source-file":"view-release.tsx"}),(0,n.jsx)(h,{onPress:()=>t(),stackProps:{"$platform-web":{mb:"$6"}},"data-sentry-element":"BottomPreviewButton","data-sentry-source-file":"view-release.tsx",children:"Exit"})]})}function k({templateReleaseId:e}){let t,{back:r,replace:a}=(0,d.r)(),{loading:i,data:s}=(0,o.IT)(w,{skip:!e,variables:{templateReleaseId:e},context:(0,m.Q)("caller")}),{documentId:l}=(t=s?.me?.templateReleases?.[0],{documentId:t?.grantedAt&&t?.document?.id?t.document.id:""}),{loading:c,data:g}=(0,o.IT)($,{skip:!l,variables:{input:{documentId:l}},fetchPolicy:"no-cache",context:(0,m.Q)("caller")});if(i||c)return(0,n.jsx)(u.N,{});if(!g?.viewDocument?.documentUrl){console.error(`Error viewing template release: documentId: ${l}`),a((0,b.hipaaReleaseErrorUrl)({viewPdfError:!0}));return}return(0,n.jsxs)(f.qM,{centerHorizontal:!0,widthLimit:!1,stackProps:{flex:1},"data-sentry-element":"ScreenView","data-sentry-component":"SignedReleasePreview","data-sentry-source-file":"view-release.tsx",children:[(0,n.jsx)(v.s,{documentUrl:g.viewDocument.documentUrl,"data-sentry-element":"ReleaseSigned","data-sentry-source-file":"view-release.tsx"}),(0,n.jsx)(h,{onPress:()=>r(),stackProps:{"$platform-web":{mb:"$6"}},"data-sentry-element":"BottomPreviewButton","data-sentry-source-file":"view-release.tsx",children:"Exit"})]})}var P=r(14766),C=r(21424);let T=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{"data-sentry-element":"Head","data-sentry-source-file":"index.tsx",children:(0,n.jsx)("title",{children:"HIPAA Release - View Release"})}),(0,n.jsx)(j,{"data-sentry-element":"ViewReleaseScreen","data-sentry-source-file":"index.tsx"})]});T.getLayout=e=>(0,n.jsx)(C.i,{children:(0,n.jsx)(s.m,{fullPage:!0,children:(0,n.jsx)(P.C,{children:e})})});let R=T},25279:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(60004),a=r(23162),i=r(93692),s=r(60072);let o=(0,i.S)((0,n.memo)(function(e){let{color:t="black",size:r=24,...n}=e;return(0,s.jsx)(a.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)(a.wA,{d:"m9 18 6-6-6-6",stroke:t})})}))},32206:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n=r(27996),a=r(89034);let i=(0,n.P)({active:!1,disabled:!1,frameWidth:void 0,size:void 0,unstyled:"1"===a.env.TAMAGUI_HEADLESS})},41231:(e,t,r)=>{"use strict";r.d(t,{Fz:()=>m,ld:()=>f,Ir:()=>b});var n=r(60072),a=r(82910),i=r(45994),s=r(72233),o=r(88510),l=r(94131),d=r(17859),c=r(6309);let u=(0,i.J)(` 30 query TemplateFile($input: TemplateFileInput!) { 31 templateFile(input: $input) { 32 ... on TemplateFile { 33 fileBase64 34 } 35 ... on FormError { 36 message 37 } 38 } 39 } 40`);function b(e){let{loading:t,data:r}=(0,a.IT)(u,{variables:{input:{templateId:e}},fetchPolicy:"no-cache",context:(0,d.Q)("caller")}),n=r?.templateFile;return{loading:t,fileBase64:n?.__typename==="TemplateFile"?n.fileBase64:void 0,errorMessage:n?.__typename==="FormError"?n.message??void 0:void 0}}function f({fileBase64:e}){let{url:t,error:r}={url:`data:application/pdf;base64,${e}`,error:null};return r?(0,n.jsx)(s.A,{status:"negative",title:"Couldn't load the agreement",message:r}):t?(0,n.jsx)(c.s,{documentUrl:t,"data-sentry-element":"ReleaseSigned","data-sentry-component":"TemplateFileViewer","data-sentry-source-file":"TemplateFilePreview.tsx"}):(0,n.jsx)(o.N,{})}function m({templateId:e}){let{loading:t,fileBase64:r,errorMessage:a}=b(e);return t?(0,n.jsx)(o.N,{}):r?(0,n.jsx)(l.Se,{flex:1,width:"100%","data-sentry-element":"YStack","data-sentry-component":"TemplateFilePreview","data-sentry-source-file":"TemplateFilePreview.tsx",children:(0,n.jsx)(f,{fileBase64:r,"data-sentry-element":"TemplateFileViewer","data-sentry-source-file":"TemplateFilePreview.tsx"})}):(0,n.jsx)(s.A,{status:"negative",title:"Couldn't load the agreement",message:a??"Please try again."})}},54298:(e,t,r)=>{"use strict";r.d(t,{V:()=>h});var n=r(16922),a=r(88792),i=r(98924),s=r(77141),o=r(29705),l=r(52086),d=r(98154),c=r(56963),u=r(60004),b=r(60072);let f=e=>{let{control:t,checked:r,bubbles:n=!0,...a}=e,i=u.useRef(null),s=(0,c.Z)(r);return u.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(s!==r&&t){let a=new Event("click",{bubbles:n});t.call(e,r),e.dispatchEvent(a)}},[s,r,n]),(0,b.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:i,style:{...e.style,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};var m=r(41106),g=r(32206),p=r(10270),y=r(89034);function h(e){let{Frame:t=p.W,Thumb:r=p.p}=e;t.staticConfig.context=g.t,r.staticConfig.context=g.t;let c=r.styleable(function(e,t){let{size:i,unstyled:s,activeStyle:o,...l}=e,{unstyled:d,size:c,active:f,disabled:m,frameWidth:p=0}=g.t.useStyledContext(),h="1"===y.env.TAMAGUI_HEADLESS||(s??d??!1),v=i??c??"$true",x=u.useRef(f).current,w=(0,n.Wu)(e.width||v,"size"),[$,S]=u.useState("number"==typeof w?w:0),j=p-$,I=x?f?0:-j:f?j:0;return(0,b.jsx)(r,{ref:t,unstyled:h,...!1===h&&{size:v},alignSelf:x?"flex-end":"flex-start",x:I,onLayout:(0,a.m)(e.onLayout,e=>{S(e.nativeEvent.layout.width)}),disabled:m,...l,...f&&o})}),h=t.styleable(function(e,r){var n;let{native:o,nativeProps:c,checked:p,defaultChecked:y,onCheckedChange:h,activeStyle:v,unstyled:x,activeTheme:w,...$}=e,[S,j]=(0,m.i)({prop:p,defaultProp:y||!1,onChange:h,transition:!0}),I=u.useContext(g.t.context),[k,P]=u.useState(0),{switchProps:C,bubbleInput:T,switchRef:R}=function(e,[t,r],n){{let{disabled:s,name:o,value:c,required:m}=e,g=u.useRef(!1),[p,y]=u.useState(null),h=(0,l.sC)(n,y),v=!!i.HZ&&(!p||!!p.closest("form")),x=(0,d.vd)(p),w=e["aria-labelledby"]||e.labeledBy||x;return{switchProps:{role:"switch","aria-checked":t,...i.HZ?{tabIndex:s?void 0:0,"data-state":t?"checked":"unchecked","data-disabled":s?"":void 0,disabled:s}:{},"aria-labelledby":w,onPress:(0,a.m)(e.onPress,e=>{r(e=>!e),i.HZ&&v&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})},switchRef:h,bubbleInput:i.HZ&&v?(0,b.jsx)(f,{control:p,bubbles:!g.current,name:o,value:c,checked:t,required:m,disabled:s,style:{transform:"translateX(-100%)"}}):null}}}($,[S,j],r),E=($.id,n=$.disabled,null);if(E)return E;let _=$.disabled,H=I.unstyled??x??!1;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.t.Provider,{size:I.size??$.size??"$true",unstyled:H,active:S,disabled:_,frameWidth:k,children:(0,b.jsx)(t,{ref:R,render:"button",theme:w??null,...i.HZ&&{type:"button"},...!H&&{size:I.size??$.size??"$true"},unstyled:H,...$,...C,disabled:_,...S&&{...!H&&!v&&{backgroundColor:"$backgroundActive"},...v},children:(0,b.jsx)(s.Ss2,{alignSelf:"stretch",flex:1,onLayout:e=>{let t=e.nativeEvent.layout.width;t!==k&&P(t)},children:$.children})})}),T]})},{disableTheme:!0});return(0,o.u)(h,{Thumb:c})}},63735:(e,t,r)=>{"use strict";r.d(t,{d:()=>v});
40var n=r(60072),a=r(60004),i=r(87371),s=r(10270),o=r(54298),l=r(32206),d=r(29705),c=r(74788),u=r(36903),b=r(45447);let f=(0,i.I)(s.W,{overflow:"hidden",padding:"$sp0.25",cursor:"pointer",variants:{unstyled:{false:{backgroundColor:"$surface0Hover",focusVisibleStyle:{outlineWidth:u.a0.border3,outlineColor:"$borderIntense",outlineStyle:"solid",outlineOffset:1}}},size:{"...size":()=>({width:"$si6",height:"$si4",minHeight:"$si4"})},disabled:{true:{backgroundColor:"$bgDisabled",opacity:1,cursor:"not-allowed"}}}}),m=(0,i.I)(s.p,{alignItems:"center",justifyContent:"center",variants:{unstyled:{false:{backgroundColor:"$surface2"}},size:{"...size":()=>({width:28,height:28})}}}),g=(0,o.V)({Frame:f,Thumb:m}),p=()=>{let{active:e,disabled:t}=l.t.useStyledContext();return e?(0,n.jsx)(b.I,{icon:c.J,size:"$iconSmall",color:t?"$iconMuted":"$iconDefault",strokeWidth:2.5,"data-sentry-element":"Icon","data-sentry-component":"ThumbIcon","data-sentry-source-file":"Switch.tsx"}):null};p.displayName="SwitchThumbIcon";let y=a.forwardRef((e,t)=>(0,n.jsx)(g.Thumb,{transition:"bouncyTight",width:"$si4",...e,ref:t}));y.displayName="SwitchThumb";let h=a.forwardRef((e,t)=>{let r=a.useRef(null),i=a.useCallback(e=>{(r.current=e,"function"==typeof t)?t(e):null!=t&&(t.current=e)},[t]);return a.useEffect(()=>{let t=r.current;if(null!=t&&"u">typeof HTMLElement&&t instanceof HTMLElement){if(!1===e.focusable||-1===e.tabIndex){t.tabIndex=-1;return}"number"==typeof e.tabIndex&&(t.tabIndex=e.tabIndex)}}),(0,n.jsx)(g,{transition:"quick",animateOnly:["backgroundColor"],activeStyle:{backgroundColor:e.disabled?"$bgDisabled":"$surfaceStrong"},...e,ref:i})});h.displayName="Switch";let v=(0,d.u)(h,{Thumb:y,ThumbIcon:p});r(87119)},67305:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/hipaa-release-preview",function(){return r(21957)}])},72233:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(60072),a=r(87371),i=r(67978),s=r(84474),o=r(91818),l=r(48728),d=r(45447),c=r(74263),u=r(97656),b=r(94363),f=r(66212);let m={neutral:{bg:"$surface0",bgHover:"$surface0Hover",border:"$borderDefault",text:"$textDefault",icon:"$iconDefault"},positive:{bg:"$bgPositive",bgHover:"$bgPositiveHover",border:"$borderPositive",text:"$textPositiveStrong",icon:"$iconPositive"},negative:{bg:"$bgNegative",bgHover:"$bgNegativeHover",border:"$borderNegative",text:"$textNegativeStrong",icon:"$iconNegative"},warning:{bg:"$bgWarning",bgHover:"$bgWarningHover",border:"$borderWarning",text:"$textWarningStrong",icon:"$iconWarning"},info:{bg:"$bgAccent",bgHover:"$bgAccentHover",border:"$borderAccent",text:"$textAccentStrong",icon:"$iconAccent"}},g=(0,a.I)(i.Se,{name:"AlertBar",borderWidth:1,borderRadius:"$br2",padding:"$sp1.5",variants:{status:{neutral:{backgroundColor:m.neutral.bg,borderColor:m.neutral.border},positive:{backgroundColor:m.positive.bg,borderColor:m.positive.border},negative:{backgroundColor:m.negative.bg,borderColor:m.negative.border},warning:{backgroundColor:m.warning.bg,borderColor:m.warning.border},info:{backgroundColor:m.info.bg,borderColor:m.info.border}},shadow:o.r,bordered:{true:{},false:{borderWidth:0}},prominent:{true:{padding:"$sp2"},false:{}}},defaultVariants:{status:"neutral"}}),p={...c.Mj,...c.sD},y=({title:e,message:t,icon:r,leading:a,button:i,trailingIcon:o,status:c="neutral",shadow:y,bordered:h=!0,prominent:v=!1,onPress:x,testID:w})=>{let $=m[c],S=(0,s.Qf)(),j=v&&S.gtXs?f.Km:f.M7,{isInteractive:I,renderTag:k,interactiveProps:P}=(0,u.k)({onPress:x}),C=r?(0,n.jsx)(d.I,{icon:r,size:"$iconLarge",color:$.icon}):a,T=i?(0,n.jsx)(l.$,{...i}):o?(0,n.jsx)(d.I,{icon:o,size:"$iconLarge",color:$.icon}):void 0,R=t?(0,n.jsx)(f.jz,{color:$.text,flexShrink:1,children:t}):void 0,E=I?{...p,hoverStyle:{backgroundColor:$.bgHover},pressStyle:{backgroundColor:$.bgHover,scale:.98}}:{};return(0,n.jsx)(g,{role:I?"button":"alert",status:c,shadow:y,bordered:h,prominent:v,testID:w,...E,...k?{render:k}:{},...P,"data-sentry-element":"StyledAlertBar","data-sentry-component":"AlertBar","data-sentry-source-file":"AlertBar.tsx",children:(0,n.jsx)(b.T,{leading:C&&v?(0,n.jsx)("div",{className:"is_View _pos-relative _mr-_gtXs_t-space-sp044693",children:C}):C,primary:e?(0,n.jsx)(j,{color:$.text,flexShrink:1,children:e}):R,secondary:e?R:void 0,rowTrailing:T&&v?(0,n.jsx)("div",{className:"is_View _pos-relative _ml-_gtXs_t-space-sp044693",children:T}):T,"data-sentry-element":"RowLayout","data-sentry-source-file":"AlertBar.tsx"})},k??"static")};r(89621)},87119:()=>{},89621:()=>{}},e=>{e.O(0,[2733,5023,151,7742,4841,1116,206,1025,7716,4766,636,6593,8792],()=>e(e.s=67305)),_N_E=e.O()}]); 41//# sourceMappingURL=hipaa-release-preview-18e559ba292b818f.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.