PageSourceSearch

https://pagos.usek.cl/_nuxt/be21dbee/BF-G564u.js

js usek.cl collected 2026-10-02 11:13:46 UTC 2,467 bytes, 1 lines download raw bytes

1import{_ as O}from"./BHqvvm_O.js";import{I as P,t as u,n as l,z as a,A as m,B as p,l as x,q as y,h as I,ao as S,L as $,u as A,r as _,c as N,w as E,b5 as w,aJ as M,d as R,v as B,b}from"./DPx8HDkS.js";import{_ as V}from"./CKSjIpLv.js";import{_ as q}from"./sQuTn3mD.js";import{_ as D}from"./BCheSrbT.js";import{h as j}from"./C5-pel6k.js";import"./IE-tO3fy.js";import"./CAYOfI2E.js";import"./CqsbqyPg.js";import"./BhzhBtOh.js";import"./CClg45q6.js";const F={};function H(e,n){const s=O;return l(),u(s,null,{title:a(()=>[m(p(e.$t("transbankOneclick.paymentInProgress.title")),1)]),subtitle:a(()=>[m(p(e.$t("transbankOneclick.paymentInProgress.subtitle")),1)]),_:1})}const K=Object.assign(P(F,[["render",H]]),{__name:"TransbankOneclickPaymentInProgress"}),L={};function Y(e,n){const s=V,c=q,o=x("TTypography"),r=D;return l(),u(r,{"hide-go-back-to-commerce":"","hide-details-box":""},{title:a(()=>[y(s,null,{default:a(()=>[m(p(e.$t("transbankOneclick.partialSuccess.title")),1)]),_:1}),y(c)]),main:a(()=>[y(o,{variant:"b3",class:"transbank-oneclick-payment-partial-success__subtitle"},{default:a(()=>[m(p(e.$t("transbankOneclick.partialSuccess.subtitle")),1)]),_:1})]),_:1})}const z=Object.assign(P(L,[["render",Y],["__scopeId","data-v-e558f378"]]),{__name:"TransbankOneclickPaymentPartialSuccess"}),g=3e3,G=25e3,J=()=>{const{t:e}=I(),{customer:n,session:s}=S(),c=$(),{$portalGatewayApi:o}=A(),r=c.query.tracking,d=_(0),k=_(!1),f=_(""),i=_("checking_in_progress"),C=N(()=>d.value*g>G);E(k,t=>{if(t)throw M({title:e("transbankOneclick.inscriptionSuccessPaymentFail.title"),message:f.value??e("transbankOneclick.inscriptionSuccessPaymentFail.subtitle")})});const v=async()=>{let t=null;if(C.value){h(),["checking_in_progress","fail",null].includes(i.value)&&(k.value=!0);return}try{d.value++,t=await o("/v2/check_payment",{method:"POST",body:{id_payment_method:r,id_customer:n.value?.id_customer}})}catch(T){console.error("Error checking payment result:",T);return}f.value=t.error_customer_message??"",t.is_done&&(h(),t.success=="success"&&t.transaction_id?(i.value="success",w(c,t.transaction_id,s.value?.id_checkout_session)):t.success=="partial_success"?i.value="partial_success":k.value=!0)},{pause:h}=j(v,g);return{paymentStatus:i,pausePolling:h}},oe=R({__name:"payment",setup(e){const{paymentStatus:n}=J();return(s,c)=>{const o=K,r=z;return b(n)==="checking_in_progress"?(l(),u(o,{key:0})):b(n)==="partial_success"?(l(),u(r,{key:1})):B("",!0)}}});export{oe 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.