https://app.luminasalud.com/_expo/static/js/web/index-62799ebc16035b862a8f97ce5c8fa09f.js?c=v2.8.232
1var _sentryDebugIds,_sentryDebugIdIdentifier;void 0===_sentryDebugIds&&(_sentryDebugIds={});try{var stack=(new Error).stack;stack&&(_sentryDebugIds[stack]="910c1e03-1665-445f-a7ca-aa027f5a49b9",_sentryDebugIdIdentifier="sentry-dbid-910c1e03-1665-445f-a7ca-aa027f5a49b9")}catch(e){} 2var SENTRY_RELEASE;SENTRY_RELEASE={name: "Lumina", version: "0.0.1"}; 3__d((function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"PaymentDetails",{enumerable:!0,get:function(){return t.PaymentDetails}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e}}),4210,[4674]); 4__d((function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"PaymentDetails",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"PaymentDetailsView",{enumerable:!0,get:function(){return v}}),r(d[0]);var e,n=r(d[1]),t=r(d[2]),s=(e=t)&&e.__esModule?e:{default:e},l=r(d[3]),o=r(d[4]),c=r(d[5]),u=r(d[6]),x=r(d[7]),p=r(d[8]),h=r(d[9]),j=r(d[10]),f=r(d[11]),y=r(d[12]),D=r(d[13]),S=r(d[14]),b=r(d[15]);const C=({navigation:e,route:n})=>{const{order:t,isLoading:s}=(0,j.usePaymentOrder)(n.params?.id??null);return(0,b.jsx)(v,{isLoading:s,order:t??null,onClick:n=>{e.push('Main',{screen:'HistoryTab',params:{screen:'Consultation',params:{id:n}}})}})},v=({isLoading:e,order:t,onClick:s})=>{const{t:j}=(0,n.useTranslation)(),{config:C}=(0,x.useConfig)(),{formatCurrency:v}=(0,p.useCurrency)(),T=t?.patient?(0,S.getPatientFullName)({user:t.patient}):null,k=C.partnerConfig?.invoicing?.enabled,w=t?.consultations[0],I=w?.type===l.ConsultationType.SCHEDULED||w?.status===l.ConsultationStatus.CLOSED||w?.status===l.ConsultationStatus.CLOSED_WITH_ERROR||w?.status===l.ConsultationStatus.CANCELLED;return e?(0,b.jsx)(f.Center,{height:"100%",children:(0,b.jsx)(f.Spinner,{size:"lg"})}):(0,b.jsxs)(u.Screen,{children:[(0,b.jsxs)(f.VStack,{space:4,children:[(0,b.jsx)(f.Box,{rounded:"lg",bg:"white",children:(0,b.jsxs)(f.VStack,{space:"3",divider:(0,b.jsx)(f.Divider,{bg:"gray.400"}),children:[t?.productName?(0,b.jsx)(f.Box,{display:"flex",flexDirection:"row",alignItems:"center",px:4,pt:4,pb:1,children:(0,b.jsx)(f.Text,{fontSize:"md",children:t.productName})}):null,T?(0,b.jsx)(f.Box,{display:"flex",flexDirection:"row",alignItems:"center",px:4,py:1,children:(0,b.jsx)(f.Text,{fontSize:"md",children:j('screens.paymentHistory.patientName',{patientName:T})})}):null,t?.transactionDate?(0,b.jsx)(f.Box,{display:"flex",flexDirection:"row",alignItems:"center",px:4,py:1,children:(0,b.jsx)(f.Text,{fontSize:"md",children:j('screens.paymentHistory.transactionDate',{date:(0,D.formatDateShort)(t.transactionDate,C)})})}):null,t?.maskedCardNumber&&(0,b.jsx)(f.Box,{display:"flex",flexDirection:"row",alignItems:"center",px:4,py:1,children:(0,b.jsx)(f.Text,{fontSize:"md",children:`${t.cardType} ${t.maskedCardNumber}`})}),t?.transactionCode?(0,b.jsx)(f.Box,{display:"flex",flexDirection:"row",alignItems:"center",px:4,pb:4,pt:1,children:(0,b.jsx)(f.Text,{fontSize:"md",children:j('screens.paymentDetails.transactionCode',{code:t.transactionCode})})}):null,k&&t?.invoiceStatus?(0,b.jsxs)(f.Box,{display:"flex",flexDirection:"row",px:4,pb:4,pt:1,children:[(0,b.jsx)(f.Text,{fontSize:"md",children:j('screens.paymentDetails.invoiceLink')+': '}),t?.invoiceStatus===h.InvoiceStatus.PENDING?(0,b.jsx)(f.Text,{fontSize:"md",children:j('screens.paymentDetails.pendingInvoice')}):(0,b.jsx)(f.Link,{href:t?.invoiceUrl,children:(0,b.jsx)(f.Text,{color:"primary.500",children:j('screens.paymentDetails.linkText')})})]}):null]})}),(0,b.jsx)(f.Box,{rounded:"lg",bg:"white",children:(0,b.jsxs)(f.VStack,{alignItems:"stretch",children:[(0,b.jsx)(f.Box,{p:4,pb:1,children:(0,b.jsx)(o.DashedSeparationRow,{label:j('screens.paymentDetails.session'),children:v(t?.originalAmount)})}),(0,b.jsx)(f.Box,{p:4,pb:1,children:(0,b.jsx)(o.DashedSeparationRow,{label:j('screens.paymentDetails.vat'),children:j('screens.checkout.vatIncludedLabel')})}),t?.discountAmount&&t.discountAmount>0?(0,b.jsx)(f.Box,{p:4,pb:1,children:(0,b.jsxs)(o.DashedSeparationRow,{label:t.discountName,color:"primary.500",children:["-",t.discountAmount,"%"]})}):null,t?.refundAmount?(0,b.jsx)(f.Box,{p:4,children:(0,b.jsx)(o.DashedSeparationRow,{label:j('screens.paymentDetails.totalRefund'),bold:!0,testID:"total-value",children:v(t?.refundAmount)})}):(0,b.jsx)(f.Box,{p:4,children:(0,b.jsx)(o.DashedSeparationRow,{label:j('screens.paymentDetails.totalAmount'),bold:!0,testID:"total-value",children:v(t?.amount)})}),t?.installments&&t.installments>1?(0,b.jsx)(f.Box,{p:4,children:(0,b.jsx)(f.Text,{color:y.colors.primary[500],fontSize:"md",bold:!0,children:j('screens.paymentDetails.installments',{installments:t.installments,amount:v(t.amount/t.installments)})})}):null]})}),I?(0,b.jsx)(f.Button,{size:"md",onPress:()=>{var e;(e=w.id??null)&&s(e)},fontWeight:"bold",style:B.consultationButton,children:j('screens.paymentDetails.button')}):null]}),(0,b.jsxs)(f.VStack,{space:4,marginTop:"auto",children:[(0,b.jsx)(f.VStack,{space:2,children:(0,b.jsx)(c.PaymentMethodsList,{alignSelf:"center"})}),(0,b.jsx)(f.Text,{fontSize:"xs",color:"neutral.700",textAlign:"center",children:j('screens.checkout.informationSecurity')})]})]})},B=s.default.create({consultationButton:{paddingVertical:16,paddingHorizontal:16}});var T=C}),4674,[9,381,162,661,3222,3431,526,904,3221,4675,4676,252,264,1319,1343,54]); 5__d((function(g,r,i,a,m,e,d){"use strict";
5Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"InvoiceStatus",{enumerable:!0,get:function(){return E}});let E=(function(E){return E.PENDING="PENDING",E.SUBMITTED="SUBMITTED",E.ACCEPTED="ACCEPTED",E.GENERATED="GENERATED",E.ERROR_GENERATING="ERROR_GENERATING",E.CANCELED="CANCELED",E.ERROR_CANCELING="ERROR_CANCELING",E})({})}),4675,[]); 6__d((function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.usePaymentOrder=function(e){const{profile:u}=(0,n.useAuth)(),f=!!u,l=`/patients/${u?.id}/orders/${e}`,{data:y,error:_}=(0,t.useQuery)({queryKey:['payment-order',u?.id,e],queryFn:()=>s.default.api(l,{auth:!0}),enabled:f,refetchOnWindowFocus:!0,refetchOnReconnect:!1});return(0,o.useEffect)((()=>{_&&console.error('Error getting orders',{error:_,data:y})}),[_,y]),{order:y,isLoading:(0,c.isInitialQueryLoading)(y,_,f),error:_}};var e,t=r(d[0]),o=r(d[1]),n=r(d[2]),u=r(d[3]),s=(e=u)&&e.__esModule?e:{default:e},c=r(d[4])}),4676,[25,9,662,911,958]); 7//# sourceMappingURL=/_expo/static/js/web/index-62799ebc16035b862a8f97ce5c8fa09f.js.map 8//# debugId=910c1e03-1665-445f-a7ca-aa027f5a49b9
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.