PageSourceSearch

https://fontedavida.com.br/assets/Status-AtASW9A5.js

js fontedavida.com.br collected 2026-09-26 18:03:51 UTC 2,950 bytes, 1 lines download raw bytes

1import{_ as l,m,j as h,b as n,c as o,e as c,o as i,a as e,g as r,t as u,w as g,aq as S,a8 as y}from"./index-sUPB-bMu.js";const T={name:"UserPaymentStatus",props:{paymentCode:{type:String,required:!0}},data(){return{requestFinished:!1,apiResponse:[]}},computed:{...h(["churchData","userInpeaceAccount"]),paymentData(){const t={value:null,icon:null,destination:null,status:!1,status_String:null};if(!this.apiResponse.length)return t.icon="FeedbackWarning",t.status=!1,t.status_string="NOT_FOUND",t;const s=Object.assign(this.apiResponse[0]);switch(s.status.situacao){case"ativo":case"pago":case"autorizado":case"aprovado":t.icon="FeedbackSuccess",t.status_string="SUCCESS",t.status=!0;break;case"aguardando":case"em_aberto":t.icon="FeedbackWarning",t.status_string="WAITING",t.status=!1;break;case"em_analise":t.icon="FeedbackWarning",t.status_string="REVIEW",t.status=!1;break;case"nao_aprovado":case"expirado":case"cancelado":case"suspenso":t.icon="FeedbackError",t.status_string="CANCELED",t.status=!1;break;case"estornado":case"reembolsado":t.icon="FeedbackError",t.status_string="REFUND",t.status=!1;break;default:t.icon="FeedbackWarning",t.status_string="REVIEW",t.status=!1;break}return t.value=y(s.valor,this.churchData.moeda),t.destination=s.motivo.nome,t}},created(){this.appSetLoadingState({context:"GLOBAL",status:!0}),S.getPayment({params:{paymentCode:this.paymentCode,userId:this.userInpeaceAccount.id}}).then(t=>{this.apiResponse=t.data.pagamentos}).catch(()=>{this.apiResponse=[]}).finally(()=>{this.requestFinished=!0,this.appSetLoadingState({context:"GLOBAL",status:!1})}),this.$useHead({title:this.$t("USER.PAYMENT.STATUS.TITLE.PAGE")})},methods:{...m(["appSetLoadingState"])}},E={key:0,class:"page-payment-status page-content__desktop-medium"},v={class:"page-payment-status__content"},b={class:"page-content__content"},k={class:"white-card"},A={class:"white-card__inner white-card__inner--padded"},f={class:"white-card__content"},N={class:"payment-status__icon"},U={key:0,class:"payment-status__title"},D={class:"title"},C={class:"payment-status__text"},F=["innerHTML"],R={class:"payment-status__action"},L={class:"btn__text"};function I(t,s,O,P,d,a){const _=n("SvgElement"),p=n("router-link");return d.requestFinished?(i(),o("div",E,[e("div",v,[e("div",b,[e("div",k,[e("div",A,[e("div",f,[e("div",N,[r(_,{type:"other",name:a.paymentData.icon,title:"status"},null,8,["name"])]),a.paymentData.status?(i(),o("div",U,[e("h1",D,u(t.$t("USER.PAYMENT.STATUS.TEXT.THANK_YOU")),1)])):c("",!0),e("div",C,[e("p",{class:"text",innerHTML:t.$t(`USER.PAYMENT.STATUS.TEXT.STATUS.${a.paymentData.status_string}`,{church:t.churchData.nome,value:a.paymentData.value,destination:a.paymentData.destination})},null,8,F)]),e("div",R,[r(p,{to:{name:"churchHome"},class:"btn btn--color-primary"},{default:g(()=>[e("span",L,u(t.$t("USER.PAYMENT.STATUS.BUTTON.BACK_HOME")),1)]),_:1})])])])])])])])):c("",!0)}const w=l(T,[["render",I]]);export{w as default};

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.