PageSourceSearch

https://app.grantedhealth.com/_next/static/chunks/pages/settings/receipts-18215da57fc708ed.js

js grantedhealth.com collected 2026-09-25 02:59:19 UTC 44,948 bytes, 51 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]="a9061c0e-f804-4189-be9a-35d8968bd91b",e._sentryDebugIdIdentifier="sentry-dbid-a9061c0e-f804-4189-be9a-35d8968bd91b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7909],{24:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});let n=(e,t="USD",r={minimumFractionDigits:2,maximumFractionDigits:2})=>new Intl.NumberFormat("en-US",{style:"currency",currency:t.toUpperCase(),minimumFractionDigits:r.minimumFractionDigits,maximumFractionDigits:r.maximumFractionDigits}).format(e)},1371:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n=r(60004),o=r(23162),s=r(93692),a=r(60072);let i=(0,s.S)((0,n.memo)(function(e){let{color:t="black",size:r=24,...n}=e;return(0,a.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,a.jsx)(o.rw,{width:"20",height:"14",x:"2",y:"5",rx:"2",stroke:t}),(0,a.jsx)(o.N1,{x1:"2",x2:"22",y1:"10",y2:"10",stroke:t})]})}))},8431:(e,t,r)=>{"use strict";r.d(t,{z:()=>l});var n=r(60072),o=r(60004),s=r(23162),a=r(93692);let i=e=>{let{color:t="black",size:r=24,...o}=e;return(0,n.jsxs)(s.BS,{width:r,height:167/226*r,viewBox:"0 0 226 167",fill:"none",...o,"data-sentry-element":"Svg","data-sentry-component":"Icon","data-sentry-source-file":"MasterCard.tsx",children:[(0,n.jsxs)(s.G,{"data-sentry-element":"G","data-sentry-source-file":"MasterCard.tsx",children:[(0,n.jsx)(s.rw,{x:"21.3229",y:"21.3229",width:"182.562",height:"124.354",rx:"14.5521",fill:"white",stroke:"#D9D9D9",strokeWidth:"2.64583","data-sentry-element":"Rect","data-sentry-source-file":"MasterCard.tsx"}),(0,n.jsx)(s.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M113.927 110.789C107.622 116.23 99.4425 119.515 90.5049 119.515C70.5624 119.515 54.3958 103.161 54.3958 82.9865C54.3958 62.8125 70.5624 46.4583 90.5049 46.4583C99.4425 46.4583 107.622 49.7431 113.927 55.1844C120.232 49.7431 128.412 46.4583 137.349 46.4583C157.292 46.4583 173.458 62.8126 173.458 82.9866C173.458 103.161 157.292 119.515 137.349 119.515C128.412 119.515 120.232 116.23 113.927 110.789Z",fill:"#ED0006","data-sentry-element":"Path","data-sentry-source-file":"MasterCard.tsx"}),(0,n.jsx)(s.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M113.927 110.789C121.691 104.089 126.614 94.1193 126.614 82.9865C126.614 71.8538 121.691 61.8843 113.927 55.1843C120.232 49.743 128.412 46.4583 137.349 46.4583C157.292 46.4583 173.458 62.8125 173.458 82.9865C173.458 103.161 157.292 119.515 137.349 119.515C128.412 119.515 120.232 116.23 113.927 110.789Z",fill:"#F9A000","data-sentry-element":"Path","data-sentry-source-file":"MasterCard.tsx"}),(0,n.jsx)(s.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M113.927 110.789C121.691 104.089 126.614 94.1193 126.614 82.9866C126.614 71.854 121.691 61.8845 113.927 55.1846C106.163 61.8845 101.24 71.854 101.24 82.9866C101.24 94.1193 106.163 104.089 113.927 110.789Z",fill:"#FF5E00","data-sentry-element":"Path","data-sentry-source-file":"MasterCard.tsx"})]}),(0,n.jsx)(s.lA,{"data-sentry-element":"Defs","data-sentry-source-file":"MasterCard.tsx"})]})};i.displayName="MasterCard";let l=(0,o.memo)((0,a.S)(i))},10645:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,Fk:()=>f,Oj:()=>x,QG:()=>y,U8:()=>h,m_:()=>m,os:()=>g,qZ:()=>p});var n=r(60072),o=r(87371),s=r(57272),a=r(67978),i=r(28078),l=r(77141),d=r(17732),c=r(81803);let u=(0,o.I)(s.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)(a.lW,{height:"$3",width:"$3",alignItems:"center",justifyContent:"center",borderRadius:"$3",backgroundColor:"$surface0"});(0,o.I)(a.Se,{position:"absolute",left:0,right:0,bottom:0,transform:[{translateY:0}],justifyContent:"flex-end",alignItems:"center"}),(0,o.I)(a.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}
1}),(0,o.I)(a.lW,{opacity:1,scale:1,position:"absolute",left:0,right:0,top:0,bottom:0,f:1,jc:"center",ai:"center"});let y={shadowOffset:{width:0,height:2},shadowOpacity:.08,shadowRadius:4,shadowColor:"black",pressStyle:{scale:.95},transition:"bouncyTight"},f=(0,o.I)(a.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"}),m=(0,o.I)(a.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 p=(0,o.I)(l.Ss2,{position:"absolute",left:8,top:8,width:16,height:16,zIndex:1}),x=(0,o.I)(a.lW,{render:"button",unstyled:!0,width:"100%",height:"100%",cursor:"pointer",backgroundColor:"transparent",position:"relative",overflow:"hidden"}),b=(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},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"}}),g=({children:e,...t})=>(0,n.jsx)(b,{...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)(a.lW,{height:8,width:"100%",backgroundColor:"$gray5",borderRadius:2}),r(29177)},14131:(e,t,r)=>{"use strict";let n;r.d(t,{t:()=>y});var o=r(36109),s=r(64170),a=r(60004),i=r(98924),l=r(49201),d=r(17859),c=r(67429),u=r(40546);let h=(0,u.J1)`
2  mutation CreateSetupIntent($input: CreateSetupIntentInput) {
3    createSetupIntent(input: $input) {
4      clientSecret
5    }
6  }
7`,y=({refetch:e,onSetupSucceeded:t,cardCollectionEventId:r})=>{let[u,y]=(0,a.useState)(!1),[f,m]=(0,a.useState)(null),p=(0,s.useStripe)(),x=(0,s.useElements)(),[b,g]=(0,a.useState)(!1),[C,v]=(0,a.useState)(null),[$,{data:S,loading:j}]=(0,o.n)(h,{context:(0,d.Q)("caller"),onCompleted:e=>{if(e.createSetupIntent.clientSecret){if(!p||!x)return void m("Missing Stripe setup. Please try again later.");y(!0)}}}),w=(0,a.useCallback)(()=>$(r?{variables:{input:{cardCollectionEventId:r}}}:void 0),[r,$]),k=S?.createSetupIntent.clientSecret,I=(0,a.useCallback)(async()=>
7{if(!p||!x||!k){m("Unable to update your payment information. Please try again later."),y(!1);return}g(!0),v(null);try{let o,{error:s}=await x.submit();if(s)return;let{error:a,setupIntent:d}=await p.confirmSetup({clientSecret:k,elements:x,confirmParams:{return_url:`${(o=window.location.origin,i.HZ||(o=o.replace("://localhost:",`://${function(){if(n)return n;let e=l.Ay.expoConfig?.hostUri;return(n=e?.split(":")[0])||(n="localhost"),n}()}:`)),o)}/stripe-redirect`},redirect:"if_required"});if(a){console.error("Stripe error confirming setup",a),"card_error"!==a.type&&"validation_error"!==a.type&&v(a.message??"We couldn't reach Stripe to save your card. Please try again.");return}let c=(({id:e,status:t,paymentMethodId:r})=>null==e||null==r||"succeeded"!==t&&"Succeeded"!==t?null:{setupIntentId:e,paymentMethodId:r})({id:d?.id,status:d?.status,paymentMethodId:"string"==typeof d?.payment_method?d.payment_method:d?.payment_method?.id??null});if(r&&null==c)return void v("We couldn't verify this card setup. Try again.");c&&t?.(c),await new Promise(e=>setTimeout(e,1e3));let u=await e().catch(()=>null);if(!r&&!u?.data?.getPaymentProfile?.hasPaymentMethod)return void v("Your card was saved but is still processing. Give it a moment, then refresh.");m(null),v(null),y(!1)}catch(e){c.$.captureException(e),v("We couldn't save your card. Please reload the page and try again.")}finally{g(!1)}},[r,k,x,t,e,p]);return{isSheetOpen:u,errorMessage:f,setIsSheetOpen:y,openPaymentSheet:w,handleUpdatePaymentMethod:I,openPaymentSheetLoading:j,stripeError:C,loadingStripe:b}}},15482:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var n=r(60004),o=r(23162),s=r(93692),a=r(60072);let i=(0,s.S)((0,n.memo)(function(e){let{color:t="black",size:r=24,...n}=e;return(0,a.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,a.jsx)(o.jl,{cx:"12",cy:"12",r:"10",stroke:t}),(0,a.jsx)(o.wA,{d:"M12 16v-4",stroke:t}),(0,a.jsx)(o.wA,{d:"M12 8h.01",stroke:t})]})}))},22627:(e,t,r)=>{"use strict";r.d(t,{To:()=>u,k5:()=>c,we:()=>h});var n=r(77141),o=r(98924),s=r(16922),a=r(11737),i=r(75104),l=r(24234),d=r(89034);let c={size:"$true",fontFamily:"$body",borderWidth:1,outlineWidth:0,color:"$color",...o.HZ?{tabIndex:0}:{focusable:!0},borderColor:"$borderColor",backgroundColor:"$background",minWidth:0,hoverStyle:{borderColor:"$borderColorHover"},focusStyle:{borderColor:"$borderColorFocus"},focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:2,outlineStyle:"solid"}},u=(e="$true",t)=>{let{props:r}=t,n=(0,a.W)(e,t),d=(0,i.n)(e,t),c=r.rows??r.numberOfLines,u="number"==typeof c?c*(0,s.Wu)(d.lineHeight):"auto";!o.HZ&&d&&delete d.lineHeight;let h=(0,l.pp)(e,{shift:-2,bounds:[2]}),y=(0,l.pp)(e,{shift:-1,bounds:[2]});return{...n,...d,paddingVertical:h,paddingHorizontal:y,height:u}},h=[{name:"Input",render:"input",variants:{unstyled:{true:{outlineWidth:0,borderWidth:0,backgroundColor:"transparent"},false:c},size:{"...size":(e="$true",t)=>{if("textarea"===t.props.tag||t.props.rows>1||t.props.multiline||t.props.numberOfLines>1)return u(e,t);let r=(0,a.W)(e,t),n=(0,l.pp)(e,{shift:-1,bounds:[2]}),s=(0,i.n)(e,t);return!o.HZ&&s&&delete s.lineHeight,{...s,...r,paddingHorizontal:n}}},disabled:{true:{}}},defaultVariants:{unstyled:"1"===d.env.TAMAGUI_HEADLESS}},{isInput:!0,accept:{placeholderTextColor:"color",selectionColor:"color",cursorColor:"color",selectionHandleColor:"color",underlineColorAndroid:"color"},validStyles:n.EYj.staticConfig.validStyles}]},24956:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/receipts",function(){return r(59187)}])},27602:(e,t,r)=>{"use strict";r.d(t,{w:()=>l});var n=r(60072),o=r(60004),s=r(23162),a=r(93692);let i=e=>{let{color:t="black",size:r=24,...o}=e;return(0,n.jsxs)(s.BS,{width:r,height:167/226*r,viewBox:"0 0 226 167",fill:"none",...o,"data-sentry-element":"Svg","data-sentry-component":"Icon","data-sentry-source-file":"AmEx.tsx",children:[(0,n.jsxs)(s.G,{"data-sentry-element":"G","data-sentry-source-file":"AmEx.tsx",children:[(0,n.jsx)(s.rw,{x:"21.3229",y:"21.3229",width:"182.562",height:"124.354",rx:"14.5521",fill:"#1F72CD",stroke:"#D9D9D9",strokeWidth:"2.64583","data-sentry-element":"Rect","data-sentry-source-file":"AmEx.tsx"}),(0,n.jsx)(s.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M53.2035 64.9792L35.875 103.327H56.6196L59.1913 97.2124H65.0697L67.6415 103.327H90.4755V98.6601L92.5101 103.327H104.322L106.356 98.5614V103.327H153.845L159.619 97.3712L165.026 103.327L189.417 103.376L172.034 84.26L189.417 64.9792H165.404L159.783 70.8246L154.547 64.9792H102.885L98.4493 74.877L93.909 64.9792H73.2077V69.487L70.9048 64.9792H53.2035ZM124.118 70.4246H151.388L159.729 79.434L168.338 70.4246H176.679L164.006 84.2545L176.679 97.9251H167.96L159.619 88.811L150.966 97.9251H124.118V70.4246ZM130.852 81.1454V76.1222V76.1174H147.868L155.293 84.1507L147.539 92.228H130.852V86.7441H145.729V81.1454H130.852ZM57.2174 70.4246H67.3293L78.8233 96.4281V
770.4246H89.9005L98.7782 89.069L106.96 70.4246H117.982V97.9413H111.275L111.221 76.3794L101.443 97.9413H95.4439L85.6117 76.3794V97.9413H71.8148L69.1992 91.7724H55.0679L52.4577 97.9359H45.0655L57.2174 70.4246ZM57.4809 86.0693L62.1366 75.08L66.7869 86.0693H57.4809Z",fill:"white","data-sentry-element":"Path","data-sentry-source-file":"AmEx.tsx"})]}),(0,n.jsx)(s.lA,{"data-sentry-element":"Defs","data-sentry-source-file":"AmEx.tsx"})]})};i.displayName="AmEx";let l=(0,o.memo)((0,a.S)(i))},29177:()=>{},31826:(e,t,r)=>{"use strict";r.d(t,{y:()=>H});var n=r(60072),o=r(40546),s=r(82910),a=r(1371),i=r(61916),l=r(8431),d=r(27602),c=r(44790),u=r(88510),h=r(94131),y=r(66212),f=r(93172),m=r(64170),p=r(45851),x=r(87655),b=r(18992);let g=({isSheetOpen:e,setIsSheetOpen:t,handleUpdatePaymentMethod:r,errorMessage:o,loadingSubmit:s})=>e?(0,n.jsx)(b.O,{open:e,onOpenChange:e=>{(!s||e)&&t(e)},title:"Payment Method",dialogContentProps:{minWidth:436},zIndex:2e5,"data-sentry-element":"AdaptiveDialogSheet","data-sentry-component":"PaymentElementSheet","data-sentry-source-file":"PaymentElementSheet.tsx",children:(0,n.jsx)("form",{onSubmit:e=>{e.preventDefault(),r()},children:(0,n.jsxs)(h.Se,{gap:"$4","data-sentry-element":"YStack","data-sentry-source-file":"PaymentElementSheet.tsx",children:[(0,n.jsx)(m.PaymentElement,{options:{business:{name:x.$}},"data-sentry-element":"PaymentElement","data-sentry-source-file":"PaymentElementSheet.tsx"}),(0,n.jsx)(p.lV,{type:"submit",width:"100%",loading:s,disabled:s,"data-sentry-element":"LoadingButton","data-sentry-source-file":"PaymentElementSheet.tsx",children:"Save"}),(0,n.jsx)(f.j,{errorMessage:o,"data-sentry-element":"FormError","data-sentry-source-file":"PaymentElementSheet.tsx"})]})})}):null;var C=r(17859),v=r(14131),$=r(12130),S=r(81803),j=r(10645);let w=({onPress:e,disabled:t,showBottomBorder:r=!1})=>(0,n.jsxs)(h.lW,{height:"$7",ai:"center",jc:"space-between",borderTopLeftRadius:"$6",borderTopRightRadius:"$6",borderBottomLeftRadius:r?"$6":void 0,borderBottomRightRadius:r?"$6":void 0,borderLeftWidth:S.T,borderRightWidth:S.T,borderTopWidth:S.T,borderBottomWidth:r?S.T:void 0,borderColor:"$strokeSecondary",p:"$5",pl:"$3.5",transition:"100ms",onPress:e,backgroundColor:"$background",disabled:t,width:"100%",cursor:"pointer","data-sentry-element":"XStack","data-sentry-component":"AddPaymentButton","data-sentry-source-file":"AddPaymentButton.tsx",children:[(0,n.jsxs)(h.lW,{f:1,ai:"center",jc:"flex-start",gap:"$3","data-sentry-element":"XStack","data-sentry-source-file":"AddPaymentButton.tsx",children:[(0,n.jsx)(h.lW,{ai:"center",jc:"center",height:"$3",width:"$3","data-sentry-element":"XStack","data-sentry-source-file":"AddPaymentButton.tsx",children:(0,n.jsx)(j.U8,{position:"absolute","data-sentry-element":"SquareIconWrapper","data-sentry-source-file":"AddPaymentButton.tsx",children:(0,n.jsx)(a.y,{size:18,"data-sentry-element":"CreditCardIcon","data-sentry-source-file":"AddPaymentButton.tsx"})})}),(0,n.jsx)(y.fz,{f:1,textAlign:"left",numberOfLines:1,textOverflow:"ellipsis",bold:!0,"data-sentry-element":"Paragraph","data-sentry-source-file":"AddPaymentButton.tsx",children:"Payment Method"})]}),(0,n.jsx)($.F,{strokeWidth:3,size:20,"data-sentry-element":"PlusIcon","data-sentry-source-file":"AddPaymentButton.tsx"})]}),k=({brand:e})=>{if(!e)return(0,n.jsx)(a.y,{size:16});let t=e.toLowerCase();switch(!0){case t.includes("visa"):return(0,n.jsx)(i.O,{size:33});case t.includes("mastercard"):return(0,n.jsx)(l.z,{size:33});case t.includes("amex"):case t.includes("american express"):return(0,n.jsx)(d.w,{size:33});case t.includes("discover"):return(0,n.jsx)(c.w,{size:33});default:return(0,n.jsx)(a.y,{size:16})}},I=(0,o.J1)`
8  query GetPaymentProfile {
9    getPaymentProfile {
10      id
11      stripeCustomerId
12      stripePaymentMethodId
13      createdAt
14      updatedAt
15      hasPaymentMethod
16      paymentMethodType
17      cardDetails {
18        brand
19        last4
20        walletType
21      }
22      state
23      zip
24      country
25    }
26  }
27`,H=({showBottomBorder:e=!0})=>{let{data:t,loading:r,refetch:o}=(0,s.IT)(I,{context:(0,C.Q)("caller"),nextFetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}),{isSheetOpen:a,setIsSheetOpen:i,errorMessage:l,stripeError:d,openPaymentSheet:c,handleUpdatePaymentMethod:m,openPaymentSheetLoading:p,loadingStripe:x}=(0,v.t)({refetch:o}
27),b=t?.getPaymentProfile,{state:$,zip:S,country:j,cardDetails:H}=b??{},L=null!=H;return r||p?(0,n.jsx)(u.N,{}):(0,n.jsxs)(n.Fragment,{children:[L&&b&&!r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.Se,{borderTopLeftRadius:"$6",borderTopRightRadius:"$6",borderBottomLeftRadius:e?"$6":void 0,borderBottomRightRadius:e?"$6":void 0,borderLeftWidth:1,borderRightWidth:1,borderTopWidth:1,borderBottomWidth:e?1:void 0,borderColor:"$borderDefault",width:"100%",bg:"$surface2",children:[(0,n.jsxs)(h.lW,{padding:"$3",alignItems:"center",children:[(0,n.jsx)(h.Ss,{borderRadius:14,children:(0,n.jsx)(k,{brand:H?.brand})}),(0,n.jsx)(h.Se,{flex:1,pl:"$2",children:(0,n.jsx)(y.fz,{children:b.cardDetails?(b.cardDetails.walletType,`xxxx-${b.cardDetails.last4}`):"No payment method"})}),(0,n.jsx)(h.lW,{justifyContent:"flex-end",alignItems:"center",f:1,children:(0,n.jsx)(y.Xd,{onPress:c,theme:"alt1",bold:!0,textDecorationStyle:"solid",textDecorationLine:"underline",disabled:a,cursor:"pointer",children:"Use a different card"})})]}),$||S||j?(0,n.jsxs)(h.Se,{paddingVertical:"$3",paddingHorizontal:"$4",borderTopWidth:1,borderColor:"$borderDefault",children:[(0,n.jsxs)(y.fz,{children:[$??""," ",S??""]}),j?(0,n.jsx)(y.fz,{children:j}):null]}):null]}),(0,n.jsx)(f.j,{errorMessage:l})]}):(0,n.jsx)(w,{onPress:c,disabled:a,showBottomBorder:e}),(0,n.jsx)(g,{isSheetOpen:a,setIsSheetOpen:i,handleUpdatePaymentMethod:m,errorMessage:d,loadingSubmit:x,"data-sentry-element":"PaymentElementSheet","data-sentry-source-file":"PaymentProfileCard.tsx"})]})}},36611:()=>{},42353:()=>{},44790:(e,t,r)=>{"use strict";r.d(t,{w:()=>l});var n=r(60072),o=r(60004),s=r(23162),a=r(93692);let i=e=>{let{color:t="black",size:r=24,...o}=e;return(0,n.jsxs)(s.BS,{width:r,height:167/226*r,viewBox:"0 0 226 167",fill:"none",...o,"data-sentry-element":"Svg","data-sentry-component":"Icon","data-sentry-source-file":"Discover.tsx",children:[(0,n.jsxs)(s.G,{"data-sentry-element":"G","data-sentry-source-file":"Discover.tsx",children:[(0,n.jsx)(s.rw,{x:"21.3229",y:"21.3229",width:"182.562",height:"124.354",rx:"14.5521",fill:"white",stroke:"#D9D9D9",strokeWidth:"2.64583","data-sentry-element":"Rect","data-sentry-source-file":"Discover.tsx"}),(0,n.jsx)(s.wA,{d:"M97.9684 144.354L202.479 113.927V131.125C202.479 138.431 196.556 144.354 189.25 144.354H97.9684Z",fill:"#FD6020","data-sentry-element":"Path","data-sentry-source-file":"Discover.tsx"}),(0,n.jsx)(s.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M182.642 70.8573C188.392 70.8573 191.554 73.416 191.554 78.2492C191.842 81.9452 189.254 85.0725 185.804 85.6411L193.567 96.1604H187.529L180.917 85.9254H180.342V96.1604H175.455V70.8573H182.642ZM180.342 82.5138H181.78C184.942 82.5138 186.38 81.0923 186.38 78.5336C186.38 76.2591 184.942 74.8376 181.78 74.8376H180.342V82.5138ZM158.494 96.1604H172.293V91.8959H163.381V85.0725H172.005V80.808H163.381V75.1219H172.293V70.8573H158.494V96.1604ZM144.119 87.9156L137.507 70.8573H132.332L142.969 96.729H145.557L156.194 70.8573H151.019L144.119 87.9156ZM85.7599 83.6511C85.7599 90.7587 91.5096 96.7291 98.6967 96.7291C100.997 96.7291 103.009 96.1605 105.021 95.3076V89.6215C103.584 91.3273 101.572 92.4645 99.2717 92.4645C94.6719 92.4645 90.9346 89.0529 90.9346 84.504V83.9354C90.6471 79.3865 94.3844 75.4062 98.9842 75.1219C101.284 75.1219 103.584 76.2591 105.021 77.965V72.2789C103.296 71.1416 100.997 70.8573 98.9842 70.8573C91.5096 70.2887 85.7599 76.2591 85.7599 83.6511ZM76.8479 80.5237C73.973 79.3865 73.1106 78.8179 73.1106 77.3963C73.398 75.6905 74.8355 74.269 76.5604 74.5533C77.9978 74.5533 79.4352 75.4062 80.5852 76.5434L83.1725 73.1318C81.1601 71.4259 78.5728 70.2887 75.9854 70.2887C71.9606 70.0044 68.5108 73.1318 68.2233 77.112V77.3963C68.2233 80.808 69.6607 82.7981 74.2605 84.2197C75.4104 84.504 76.5604 85.0726 77.7103 85.6412C78.5728 86.2098 79.1477 87.0627 79.1477 88.1999C79.1477 90.1901 77.4228 91.8959 75.6979 91.8959H75.4104C73.1106 91.8959 71.0982 90.4744 70.2357 88.4842L67.0734 91.6116C68.7983 94.739 72.2481 96.4448 75.6979 96.4448C80.2977 96.7291 84.035 93.3174 84.3225 88.7685V87.9156C84.035 84.504 82.5976 82.7981 76.8479 80.5237ZM60.1738 9
276.1604H65.061V70.8573H60.1738V96.1604ZM37.4625 70.8573H44.6496H46.087C52.9866 71.1416 58.4488 76.8277 58.1614 83.651C58.1614 87.347 56.4364 90.7586 53.5616 93.3174C50.9742 95.3075 47.8119 96.4447 44.6496 96.1604H37.4625V70.8573ZM43.7872 91.896C46.087 92.1803 48.6744 91.3274 50.3993 89.9059C52.1242 88.2001 52.9867 85.9256 52.9867 83.3669C52.9867 81.0924 52.1242 78.818 50.3993 77.1122C48.6744 75.6906 46.087 74.8377 43.7872 75.122H42.3497V91.896H43.7872Z",fill:"black","data-sentry-element":"Path","data-sentry-source-file":"Discover.tsx"}),(0,n.jsx)(s.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M119.683 70.2708C112.496 70.2708 106.459 75.9569 106.459 83.3488C106.459 90.4564 112.209 96.4268 119.683 96.7111C127.158 96.9954 132.907 91.025 133.195 83.6331C132.907 76.2412 127.158 70.2708 119.683 70.2708V70.2708Z",fill:"#FD6020","data-sentry-element":"Path","data-sentry-source-file":"Discover.tsx"})]}),(0,n.jsx)(s.lA,{"data-sentry-element":"Defs","data-sentry-source-file":"Discover.tsx"})]})};i.displayName="Discover";let l=(0,o.memo)((0,a.S)(i))},49242:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(87371),o=r(92675),s=r(22627),a=r(89034);let i=(0,n.I)(o.p,{name:"TextArea",render:"textarea",whiteSpace:"pre-wrap",variants:{unstyled:{false:{height:"auto",...s.k5,rows:3}},size:{"...size":s.To}},defaultVariants:{unstyled:"1"===a.env.TAMAGUI_HEADLESS}})},59187:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>W});var n=r(60072),o=r(76316),s=r.n(o),a=r(55563),i=r(14766),l=r(82910),d=r(65613),c=r(45994),u=r(88510),h=r(94131),y=r(66212),f=r(64978),m=r(62274),p=r(17859),x=r(48782),b=r(31826),g=r(60004),C=r(25279),v=r(37633),$=r(24),S=r(55761),j=r(68312),w=r(81668),k=r(98944),I=r(99715);let H=({title:e,description:t,icon:r,isLoading:o,onPress:s,testID:a})=>(0,n.jsxs)("div",{className:"is_View _pos-relative _fd-row _ai-center _gap-t-space-4--53 _cur-pointer",onClick:s,"data-testid":a,"data-sentry-element":"XStack","data-sentry-component":"UploadButton","data-sentry-source-file":"UploadButton.tsx",children:[(0,n.jsx)("div",{className:"is_View _pos-relative _fd-column","data-sentry-element":"YStack","data-sentry-source-file":"UploadButton.tsx",children:(0,n.jsx)("div",{className:"is_Circle is_View _fd-column _btlr-100000000px _btrr-100000000px _bbrr-100000000px _bblr-100000000px _jc-center _ai-center _w-t-size-4 _h-t-size-4 _miw-t-size-4 _maw-t-size-4 _mah-t-size-4 _mih-t-size-4 _bg-cream6","data-sentry-element":"Circle","data-sentry-source-file":"UploadButton.tsx",children:o?(0,n.jsx)(I.y,{transition:"quick",color:"$color",enterStyle:{opacity:0},exitStyle:{opacity:0}}):(0,n.jsx)(r,{color:"$iconDefault",size:"$1",strokeWidth:2})})}),(0,n.jsxs)("div",{className:"is_View _pos-relative _fd-column _jc-space-betwe3241 _fg-1 _fs-1 _fb-auto _h-t-size-4","data-sentry-element":"YStack","data-sentry-source-file":"UploadButton.tsx",children:[(0,n.jsx)(y.fz,{"data-sentry-element":"Paragraph","data-sentry-source-file":"UploadButton.tsx",children:e}),(0,n.jsx)(y._I,{theme:"alt1","data-sentry-element":"ParagraphSmall","data-sentry-source-file":"UploadButton.tsx",children:t})]})]});r(36611);var L=r(98924),P=r(7317),R=r(81803),D=r(57585),z=r(18992);let _=({open:e,onOpenChange:t,transaction:r})=>{let{replace:o,push:s}=(0,j.r)(),{issue:a,stripeReceiptUrl:i}=r;return i||a?(0,n.jsx)(z.O,{open:e,onOpenChange:t,title:"Receipt",hideTitle:!0,"data-sentry-element":"AdaptiveDialogSheet","data-sentry-component":"ReceiptSheet","data-sentry-source-file":"ReceiptSheet.tsx",children:(0,n.jsxs)(h.Se,{width:"100%",gap:"$4",pb:"$4","data-sentry-element":"YStack","data-sentry-source-file":"ReceiptSheet.tsx",children:[i?(0,n.jsx)(H,{icon:w.T,isLoading:!1,title:"View receipt",description:"View your receipt for this transaction",onPress:()=>{L.HZ?S.Linking.openURL(r.stripeReceiptUrl??""):s((0,D.settingPreviewUrl)({title:"Receipt",uri:r.stripeReceiptUrl??""})),t(!1)}}):null,i&&a?(0,n.jsx)(P.w,{w:"100%",height:R.T}):null,a?(0,n.jsx)(H,{icon:k.v,isLoading:!1,title:"View case",description:"View the case associated with this transaction",onPress:()=>L.HZ?s((0,D.issueUrl)({issueId:a?.id??"",unread:!1})):o((0,D.issueUrl)({issueId:a?.id??"",unread:!1}),void 0,{experimental:{nativeBehavior:"stack-replace",isNestedNavigator:!0}})}):null]})}):null},A=({transaction:e})=>{let{amount:t,currency:r,issue:o,createdAt:s}=e,a=(0,$.v)(Number(t),r),[i,l]=(0,g.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.lW,{jc:"space-between",padding:"$4",borderRadius:"$6",backgroundColor:"$background",bordered:!0,alignItems:"center",shadow:"light",cursor:"pointer",onPress:()=>l(!0),"data-sentry-element":"XStack","data-sentry-source-file":"TransactionItem.tsx",children:[(0,n.jsxs)(h.Se,{"data-sentry-element":"YStack","data-sentry-source-file":"TransactionItem.tsx",children:[(0,n.jsxs)(y.fz,{"data-sentry-element":"Paragraph","data-sentry-source-file":"TransactionItem.tsx",children:[(0,n.jsx)(v.e3,{date:s,format:"MMM D, YYYY","data-sentry-element":"DateText","data-sentry-source-file":"TransactionItem.tsx"})," -"," ",a]}),(0,n.jsx)(y.Xd,{theme:"alt1","data-sentry-element":"Paragraph2","data-sentry-source-file":"TransactionItem.tsx",children:o?`Case: ${o.title}`:"No associated case"})]}),(0,n.jsx)(C.c,{color:"$iconDefault",size:"$1","data-sentry-element":"ChevronRightIcon","data-sentry-source-file":"TransactionItem.tsx"})]}),i?(0,n.jsx)(_,{open:i,onOpenChange:l,transaction:e}):null]})},M=(0,c.J)(`
28  query GetUserPayments($userId: ID!) {
29    payment__PaymentTransaction(
30      filter: { owner: { id: { eq: $userId } } }
31      order: { createdAt: { dir: DESC } }
32    ) {
33      id
34      amount
35      currency
36      stripePaymentIntentId
37      stripeReceiptUrl
38      status
39      createdAt
40      issue {
41        id
42        title
43      }
44    }
45    getPaymentProfile {
46      id
47      hasPaymentMethod
48    }
49  }
50`),T=()=>{let{user:e}=(0,x.A)(),{loading:t,error:r,data:o,refetch:s}=(0,l.IT)(M,{context:(0,p.Q)("error-screen"),fetchPolicy:"cache-and-network",skip:!e,variables:{userId:e?.id??""}}),a=o?.payment__PaymentTransaction||[],i=o?.getPaymentProfile?.hasPaymentMethod,c=async()=>{await s()};return t?(0,n.jsx)(m.qM,{children:(0,n.jsx)(u.N,{})}):r?(0,n.jsx)(m.qM,{children:(0,n.jsxs)(h.Se,{flex:1,justifyContent:"center",alignItems:"center",padding:"$4",children:[(0,n.jsx)(y.Xd,{bold:!0,textAlign:"center",children:"An error occurred while loading your payment information."}),(0,n.jsx)(y.fz,{gap:"$4",textAlign:"center",children:r.message})]})}):(0,n.jsx)(m.qM,{onRefresh:c,centerHorizontal:!0,widthLimit:800,stackProps:{$gtSm:{mt:"$8"}},"data-sentry-element":"ScreenView","data-sentry-component":"ReceiptsScreen","data-sentry-source-file":"screen.tsx",children:(0,n.jsxs)(h.Se,{flex:1,width:"100%",gap:"$4",padding:"$sp2","data-sentry-element":"YStack","data-sentry-source-file":"screen.tsx",children:[i?(0,n.jsxs)(h.Se,{pb:"$6",children:[(0,n.jsx)(y.Xd,{bold:!0,pb:"$2",children:"Payment Method"}),(0,n.jsx)(b.y,{})]}):null,(0,n.jsx)(h.Se,{flex:1,width:"100%",gap:"$3","data-sentry-element":"YStack","data-sentry-source-file":"screen.tsx",children:a.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.Xd,{bold:!0,marginBottom:"$2",children:"Payment History"}),a.map(e=>(0,n.jsx)(A,{transaction:e},e.id))]}):i?null:(0,n.jsx)(f.M,{icon:d.i,title:"No payment history yet"})})]})})};var E=r(21424);let V=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{"data-sentry-element":"Head","data-sentry-source-file":"receipts.tsx",children:(0,n.jsx)("title",{children:"Receipts"})}),(0,n.jsx)(T,{"data-sentry-element":"ReceiptsScreen","data-sentry-source-file":"receipts.tsx"})]});V.getLayout=e=>(0,n.jsx)(E.i,{children:(0,n.jsx)(a.m,{fullPage:!0,children:(0,n.jsx)(i.C,{children:e})})});let W=V},61916:(e,t,r)=>{"use strict";r.d(t,{O:()=>l});var n=r(60072),o=r(60004),s=r(23162),a=r(93692);let i=e=>{let{color:t="black",size:r=24,...o}=e;return(0,n.jsxs)(s.BS,{width:r,height:167/226*r,viewBox:"0 0 226 167",fill:"none",...o,"data-sentry-element":"Svg","data-sentry-component":"Icon","data-sentry-source-file":"Visa.tsx",children:[(0,n.jsxs)(s.G,{"data-sentry-element":"G","data-sentry-source-file":"Visa.tsx",children:[(0,n.jsx)(s.rw,{x:"21.3229",y:"21.3229",width:"182.562",height:"124.354",rx:"14.5521",fill:"white",stroke:"#D9D9D9",strokeWidth:"2.64583","data-sentry-element":"Rect","data-sentry-source-file":"Visa.tsx"}),(0,n.jsx)(s.wA,{fillRule:"evenodd",clipRule:"evenodd",d:"M76.2253 106.033H65.0053L56.5916 73.9349C56.1923 72.4584 55.3444 71.153 54.0971 70.5378C50.9844 68.9917 47.5543 67.7613 43.8125 67.1407V65.9049H61.8871C64.3816 65.9049 66.2526 67.7613 66.5644 69.9172L70.9299 93.071L82.1444 65.9049H93.0526L76.2253 106.033ZM99.2891 106.033H88.6927L97.4182 65.9049H108.015L99.2891 106.033ZM121.724 77.0216C122.035 74.8603 123.906 73.6245 126.089 73.6245C129.519 73.3142 133.256 73.9348 136.374 75.4755L138.245 66.8356C135.126 65.5998 131.696 64.9792 128.584 64.9792C118.299 64.9792 110.815 70.5377 110.815 78.252C110.815 84.1207 116.116 87.2022 119.858 89.0585C123.906 90.9095 125.466 92.1453 125.154 93.9964C125.154 96.7729 122.035 98.0087 118.923 98.0087C115.181 98.0087 111.439 97.0832 108.015 95.5371L106.144 104.182C109.885 105.723 113.934 106.344 117.675 106.344C129.207 106.649 136.374 101.095 136.374 92.7606C136.374 82.2643 121.724 81.6491 121.724 77.0216ZM173.458 106.033L165.045 65.9049H156.007C154.136 65.9049 152.266 67.1407 151.642 68.9917L136.062 106.033H146.97L149.147 100.17H162.55L163.797 106.033H173.458ZM157.566 76.7111L160.679 91.8349H151.954L157.566 76.7111Z",fill:"#172B85","data-sentry-element":"Path","data-sentry-source-file":"Visa.tsx"})]}),(0,n.jsx)(s.lA,{"data-sentry-element":"Defs","data-sentry-source-file":"Visa.tsx"})]})};i.displayName="Visa";let l=(0,o.memo)((0,a.S)(i))},65613:(e,t,r)=>{"use strict";r.d(t,{i:()=>i});var n=r(60004),o=r(23162),s=r(93692),a=r(60072);
50let i=(0,s.S)((0,n.memo)(function(e){let{color:t="black",size:r=24,...n}=e;return(0,a.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,a.jsx)(o.wA,{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",stroke:t}),(0,a.jsx)(o.wA,{d:"M14 2v4a2 2 0 0 0 2 2h4",stroke:t}),(0,a.jsx)(o.wA,{d:"M10 9H8",stroke:t}),(0,a.jsx)(o.wA,{d:"M16 13H8",stroke:t}),(0,a.jsx)(o.wA,{d:"M16 17H8",stroke:t})]})}))},65993:(e,t,r)=>{"use strict";r.d(t,{D:()=>T});var n=r(60072),o=r(60004),s=r(27996),a=r(98924),i=r(87371),l=r(71655),d=r(92675),c=r(49242),u=r(28078),h=r(77141),y=r(73007),f=r(83229),m=r(29705),p=r(66212),x=r(89034);function b(e,t,r){if(null==e||"object"!=typeof e||!(r in e))return;let n=e[r];if(null!=n&&"object"==typeof n&&t in n){var o=n[t];if("number"==typeof o)return o;if(null!=o&&"object"==typeof o&&"val"in o){let e=o.val;return"number"==typeof e?e:void 0}}}function g(e,t,r){if(null==e||"object"!=typeof e||!(t in e))return;let n=e[t];if(null==n||"object"!=typeof n||!(r in n))return;let o=n[r];if("string"==typeof o||"number"==typeof o)return o;if(null!=o&&"object"==typeof o&&"val"in o){let e=o.val;if("string"==typeof e||"number"==typeof e)return e}}let C=(0,s.P)({size:"$4",color:void 0}),v={size:"$4",fontFamily:"$body",color:"$color",borderWidth:1,margin:1,outlineWidth:0,...a.HZ?{tabIndex:-1}:{focusable:!0},borderColor:"$borderColor",backgroundColor:"$background",placeholderTextColor:"$textSubtle",hoverStyle:{borderColor:"$borderColorHover"},disabledStyle:{borderColor:"$borderStrong",backgroundColor:"$bgDisabledSubtle",color:"$textSubtle",disabled:!0},focusStyle:{borderColor:"$borderColorFocus",borderWidth:2,margin:0,hoverStyle:{borderColor:"$borderColorFocus"}}},$=(0,i.I)(l.ky,{justifyContent:"space-between",context:C,variants:{unstyled:{false:v},tone:{default:{},negative:{borderColor:"$borderNegative",hoverStyle:{borderColor:"$borderNegativeHover"}}}
50,focused:{true:v.focusStyle},size:{"...size":()=>({borderRadius:"$4"})},disabled:{true:v.disabledStyle,false:{}}},defaultVariants:{unstyled:"1"===x.env.TAMAGUI_HEADLESS,tone:"default"}}),S=(0,s.P)({setFocused:e=>{},focused:!1}),j=(0,o.forwardRef)((e,t)=>{let{children:r,tone:s,...a}=e,[i,l]=(0,o.useState)(!1),d=i&&"negative"===s?{borderColor:"$borderNegativeStrong",hoverStyle:{borderColor:"$borderNegativeStrong"}}:null;return(0,n.jsx)(S.Provider,{scope:"",focused:i,setFocused:l,children:(0,n.jsx)($,{ref:t,...a,tone:s,focused:i,...d,children:r})})});j.displayName="InputGroupImpl";let w={hasLabel:{true:{paddingTop:16},false:{paddingTop:0}}},k=(0,i.I)(d.p,{unstyled:!0,fontFamily:"$body",width:"100%",f:1,selectionColor:"$bgBrand",context:C,variants:w,defaultVariants:{hasLabel:!1}}),I=(0,i.I)(c.f,{unstyled:!0,fontFamily:"$body",width:"100%",f:1,selectionColor:"$bgBrand",context:C,variants:w,defaultVariants:{hasLabel:!1}}),H=k.styleable((e,t)=>{let{setFocused:r}=S.useStyledContext(),{size:o}=C.useStyledContext(),{disabled:s,onBlur:i,height:l,multiline:d,hasLabel:c,secureTextEntry:u,...h}=e,y=()=>{r(!0)},f=e=>{i&&i(e),r(!1)},m=a.HZ&&u?{type:"password"}:{};return d?(0,n.jsx)(I,{ref:t,onFocus:y,onBlur:f,size:o,disabled:s,hasLabel:c,secureTextEntry:u,...h}):(0,n.jsx)(k,{ref:t,onFocus:y,onBlur:f,size:o,disabled:s,height:54,hasLabel:c,secureTextEntry:u,...m,...h})}),L=(0,i.I)(l.ky.Item,{justifyContent:"center",alignItems:"center",context:C}),P=(0,i.I)(u.$,{context:C,justifyContent:"center",alignItems:"center",variants:{size:{"...size":(e="$true",{tokens:t})=>"number"==typeof e?{paddingHorizontal:0,height:e,borderRadius:.2*e}:{paddingHorizontal:0,height:e,borderRadius:t.radius[e]}}}}),R=(0,i.I)(h.Ss2,{justifyContent:"center",alignItems:"center",context:C,variants:{size:{"...size":(e,{tokens:t})=>({paddingHorizontal:t.space[e]})}}}),D=R.styleable((e,t)=>{let{children:r,scaleIcon:o=1.2,color:s,...a}=e,i=C.useStyledContext(),l=S.useStyledContext(),{size:d="$true"}=i,c=s??(l.focused?"$borderIntense":"$borderDefault"),u=("number"==typeof d?.5*d:(0,y.ny)(d))*o,h=(0,f.g)({size:u,color:c});return(0,n.jsx)(R,{paddingRight:"$2",paddingLeft:"$3.5",ref:t,...a,children:h(r)})}),z=(0,i.I)(h.Ss2,{context:C,flexDirection:"column",position:"relative",variants:{size:{"...size":()=>({})},color:{"...color":()=>({})}},defaultVariants:{size:"$4"}}),_=(0,i.I)(p.fz,{context:C,fontFamily:"$body",position:"absolute",zIndex:1,left:18,top:8,fontWeight:"400",variants:{size:{"...size":(e,{font:t})=>{let r=parseInt(e.toString().replace("$",""),10);if(r>0){let e=`$${r-2}`;return{fontSize:b(t,e,"size")??"$3",lineHeight:b(t,e,"lineHeight")??"$3"}}return{fontSize:e,lineHeight:e}}}},defaultVariants:{size:"$2"}}),A=(0,i.I)(l.ky,{context:C,variants:{size:{"...size":(e,{tokens:t})=>({borderRadius:t.radius[e]??t.radius.true})}}}),M=(0,i.I)(p.fz,{context:C,variants:{size:{"...fontSize":(e,{font:t})=>{if(!t)return;let r=String(e),n=b(t,r,"size")??0,o=(b(t,r,"lineHeight")??0)*.8,s=g(t,"weight","$2"),a=g(t,"letterSpacing",r);return{fontSize:n,lineHeight:o,fontWeight:s,letterSpacing:a,textTransform:g(t,"transform",r),fontStyle:g(t,"style",r)}}}}}),T=(0,m.u)(z,{Box:j,Area:H,Section:L,Button:P,Icon:D,Info:M,Label:_,XGroup:(0,m.u)(A,{Item:l.ky.Item})});r(42353)},71655:(e,t,r)=>{"use strict";r.d(t,{YJ:()=>S,ky:()=>w,hf:()=>j,aO:()=>$});var n=r(87371),o=r(19405),s=r(10554),a=r(29705),i=r(67978),l=r(60004),d=r(60072);let c=l.createContext([]),u=l.createContext(null);function h(){let e=l.useContext(c),t=l.useContext(u);return l.useMemo(()=>{if(null===t)return null;let r=t.split(".").map(e=>Number.parseInt(e,10)),n=e[e.length-1],o=r[r.length-1];return{maxIndex:n,maxIndexPath:e,index:o,indexPath:r,indexPathString:t,
50isFirst:0===o,isLast:o===n,isEven:o%2==0,isOdd:1===Math.abs(o%2)}},[e,t])}var y=r(89034);let f="Group",[m,p]=(0,s.A)(f),[x,b]=m(f),g=(0,n.I)(i.Se,{name:"GroupFrame",variants:{unstyled:{false:{size:"$true"}},size:(e,{tokens:t})=>({borderRadius:t.radius[e]??e??t.radius.$true})},defaultVariants:{unstyled:"1"===y.env.TAMAGUI_HEADLESS}});function C(e){return(0,a.u)(g.styleable((t,r)=>{var n;let o,s,a,i,{__scopeGroup:h,children:y,orientation:f=e?"vertical":"horizontal",disabled:m,...p}=t,b="vertical"===f,C=(n=l.Children.toArray(y),o=l.useContext(c),s=l.useContext(u),a=l.Children.count(n),i=l.useMemo(()=>o.concat(a-1),[a]),(0,d.jsx)(c.Provider,{value:i,children:l.Children.map(n,(e,t)=>l.isValidElement(e)?(0,d.jsx)(u.Provider,{value:s?`${s}.${t.toString()}`:t.toString(),children:e},e.key):e)}));return(0,d.jsx)(x,{vertical:b,disabled:m,scope:h,children:(0,d.jsx)(g,{ref:r,flexDirection:b?"column":"row",...p,children:C})})}),{Item:v})}function v(e){let{__scopeGroup:t,children:r,forcePlacement:n,...s}=e,a=b("GroupItem",t),i=h();if(!i)throw Error("<Group.Item/> should only be used within a <Group/>");if(!l.isValidElement(r))return r;let d=k("first"===n||"last"!==n&&0===i.index,"last"===n||"first"!==n&&i.index===i.maxIndex,a.vertical),c={...s,...d};null!=a.disabled&&(c.disabled=r.props.disabled??a.disabled);let u=(0,o.A)(c,r.props);return l.cloneElement(r,u)}let $=(e,t,r)=>{let n=h(),o=b("GroupItem",r);if(!n)throw Error("useGroupItem should only be used within a <Group/>");let s=k("first"===t||"last"!==t&&0===n.index,"last"===t||"first"!==t&&n.index===n.maxIndex,o.vertical);return{disabled:e.disabled??o.disabled,...s}},S=C(!0),j=S,w=C(!1);function k(e,t,r){return r?{...e?null:{borderTopLeftRadius:0,borderTopRightRadius:0},...t?null:{borderBottomLeftRadius:0,borderBottomRightRadius:0}}:{...e?null:{borderTopLeftRadius:0,borderBottomLeftRadius:0},...t?null:{borderTopRightRadius:0,borderBottomRightRadius:0}}}},81668:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(60004),o=r(23162),s=r(93692),a=r(60072);let i=(0,s.S)((0,n.memo)(function(e){let{color:t="black",size:r=24,...n}=e;return(0,a.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,a.jsx)(o.wA,{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",stroke:t}),(0,a.jsx)(o.wA,{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",stroke:t}),(0,a.jsx)(o.wA,{d:"M12 17.5v-11",stroke:t})]})}))},84248:()=>{},92675:(e,t,r)=>{"use strict";r.d(t,{p:()=>h});var n=r(87371),o=r(77141),s=r(1575),a=r(78955),i=r(52086),l=r(60004),d=r(22627),c=r(60072);let u=(0,n.I)(o.Ss2,d.we[0],d.we[1]),h=u.styleable((e,t)=>{let r,n,{disabled:o,id:d,onChangeText:h,onSubmitEditing:y,onSelectionChange:f,selection:m,placeholderTextColor:p,selectionColor:x,rows:b,keyboardAppearance:g,returnKeyType:C,submitBehavior:v,blurOnSubmit:$,caretHidden:S,contextMenuHidden:j,selectTextOnFocus:w,secureTextEntry:k,maxFontSizeMultiplier:I,allowFontScaling:H,multiline:L,keyboardType:P,autoCapitalize:R,autoCorrect:D,autoFocusNative:z,textContentType:_,onEndEditing:A,onContentSizeChange:M,onScroll:T,onKeyPress:E,clearButtonMode:V,clearTextOnFocus:W,enablesReturnKeyAutomatically:B,dataDetectorTypes:F,scrollEnabled:N,passwordRules:Z,rejectResponderTermination:O,spellCheck:G,lineBreakStrategyIOS:U,lineBreakModeIOS:Y,smartInsertDelete:X,inputAccessoryViewID:q,inputAccessoryViewButtonLabel:J,disableKeyboardShortcuts:Q,cursorColor:K,selectionHandleColor:ee,underlineColorAndroid:et,importantForAutofill:er,disableFullscreenUI:en,inlineImageLeft:eo,inlineImagePadding:es,returnKeyLabel:ea,textBreakStrategy:ei,textAlignVertical:el,verticalAlign:ed,showSoftInputOnFocus:ec,numberOfLines:eu,...eh}=e,{ref:ey,composedRef:ef}=(r=l.useRef(null),n=(0,i.sC)(r,t),{ref:r,composedRef:n}),em=(0,s.D)();l.useEffect(()=>{if(!f)return;let e=ey.current;if(!e)return;let t=()=>{f({nativeEvent:{selection:{start:e.selectionStart??0,end:e.selectionEnd??0}}})};return e.addEventListener("select",t),()=>e.removeEventListener("select",t)},[f]),l.useEffect(()=>{m&&ey.current&&ey.current.setSelectionRange(m.start,m.end??m.start)},[m?.start,m?.end]),l.useEffect(()=>{if(d&&!o)return(0,a.O0)(d,{focusAndSelect:()=>ey.current?.focus(),focus:()=>ey.current?.focus()})},[d,o]);let ep={...eh,disabled:o,id:d,rows:b,autoCorrect:!0===D?"on":!1===D?"off":D,autoCapitalize:"sentences"===R||"words"===R?"on":"none"===R||"characters"===R?"off":R,onKeyDown:y?e=>{"Enter"===e.key&&y&&y({nativeEvent:{text:e.target.value}}),eh.onKeyDown?.(e)}:eh.onKeyDown,onChange:h?e=>{h?.(e.target.value),eh.onChange?.(e)}:eh.onChange,style:{...eh.style,...p&&{"--t_placeholderColor":em[p]?.variable||p},...x&&{"--t_selectionColor":em[x]?.variable||x}}};return(0,c.jsx)(u,{ref:ef,...ep})})},93172:(e,t,r)=>{"use strict";r.d(t,{W:()=>c,j:()=>d});var n=r(60072),o=r(17189),s=r(67978),a=r(15482),i=r(65993),l=r(66212);let d=({errorMessage:e})=>(0,n.jsxs)("div",{className:"is_View _fd-row _pos-relative _w-10037","data-sentry-element":"XStack","data-sentry-component":"FormError","data-sentry-source-file":"FormError.tsx",children:[(0,n.jsx)(o.N,{"data-sentry-element":"AnimatePresence","data-sentry-source-file":"FormError.tsx",children:e?(0,n.jsx)(s.Se,{height:"$1.5",enterStyle:{height:0},exitStyle:{height:0},transition:"bouncyTight"},"form-error-spacer"):null}),(0,n.jsx)(o.N,{"data-sentry-element":"AnimatePresence","data-sentry-source-file":"FormError.tsx",children:e?(0,n.jsxs)(s.lW,{py:"$1.5",top:0,px:16,position:"absolute",gap:"$1.5",width:"100%",flexDirection:"row",transition:"bouncyTight",alignItems:"center",scaleY:1,enterStyle:{opacity:0,y:-10,scaleY:.5},exitStyle:{opacity:0,y:-10,scaleY:.5},theme:"red",children:[(0,n.jsx)(i.D.Icon,{padding:0,children:(0,n.jsx)(a.R,{color:"$color10",strokeWidth:2,height:16,width:16})}),(0,n.jsx)(i.D.Info,{color:"$color10",flex:1,numberOfLines:1,size:"$2",lineHeight:16,children:e})]},"form-error-entry"):null})]}),c=({errorMessage:e})=>(0,n.jsxs)("div",{className:"is_View _fd-row _pos-relative _w-10037","data-sentry-element":"XStack","data-sentry-component":"FormErrorMessage","data-sentry-source-file":"FormError.tsx",children:[(0,n.jsx)(o.N,{"data-sentry-element":"AnimatePresence","data-sentry-source-file":"FormError.tsx",children:e?(0,n.jsx)(s.Se,{height:"$3",enterStyle:{height:0},exitStyle:{height:0},transition:"bouncyTight"},"error-message-spacer"):null}),(0,n.jsx)(o.N,{"data-sentry-element":"AnimatePresence","data-sentry-source-file":"FormError.tsx",children:e?(0,n.jsxs)(s.lW,{position:"absolute",top:0,width:"100%",height:"$3",alignItems:"center",justifyContent:"center",gap:"$2",borderRadius:"$2",borderWidth:"$1",borderColor:"$red10",padding:"$2",backgroundColor:"$red2",scaleY:1,enterStyle:{opacity:0,y:-10,scaleY:.5},exitStyle:{opacity:0,y:-10,scaleY:.5},transition:"bouncyTight",children:[(0,n.jsx)(a.R,{color:"$red10",pt:"$1",height:18,width:18}),(0,n.jsx)(l.Xd,{color:"$red10",children:e})]},"error-message-content"):null})]});r(84248)}},e=>{e.O(0,[2733,5023,151,7742,4841,1116,546,206,1025,7716,4766,2076,636,6593,8792],()=>e(e.s=24956)),_N_E=e.O()}]);
51//# sourceMappingURL=receipts-18215da57fc708ed.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.