PageSourceSearch

https://app.encontrable.com/assets/CheckoutPage-Bb1blHI8.js

js encontrable.com collected 2026-10-02 01:29:29 UTC 21,402 bytes, 1 lines download raw bytes

1import{bm as Ae,bB as qe,aM as Ge,r as t,G as e,a7 as ee}from"./vendor-BvYDHPOR.js";import{x as ye,a as ve}from"./index-CQWuR6TJ.js";import{r as He}from"./coupons.service-CaNR4mQe.js";import{b as Ye}from"./plans.service-BVKqmcyZ.js";import{g as Ke,d as Je,p as se}from"./payments.service-DZX-t5lm.js";/* empty css                */import"./vendor-mui-icons-CrMwg7iZ.js";const f=_=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",minimumFractionDigits:0}).format(_);function rs(){const{planSlug:_}=Ae(),[M]=qe(),F=Ge(),r=ye(s=>s.user),U=ye(s=>s.updateUser),[i,fe]=t.useState(null),[,_e]=t.useState(null),I=!1,y=M.get("ref")||localStorage.getItem("enc_ref")||"";M.get("ref")&&localStorage.setItem("enc_ref",M.get("ref"));const[ke,ae]=t.useState(!0),[d,w]=t.useState(!1),[O,j]=t.useState(""),[Ne,A]=t.useState(!1),[x,q]=t.useState(null),[v,ne]=t.useState("card"),[T,te]=t.useState((r==null?void 0:r.name)||""),[V,re]=t.useState(""),[C,ie]=t.useState("CC"),[S,ce]=t.useState(""),[oe,be]=t.useState(!1),[B,we]=t.useState(""),[R,Ce]=t.useState(""),[k,Se]=t.useState(""),[$,Pe]=t.useState(""),[h,Ee]=t.useState({}),[le,Le]=t.useState([]),[g,G]=t.useState("new"),[N,De]=t.useState(!0),[H,Me]=t.useState(!0),[m,de]=t.useState(""),[Y,he]=t.useState(!1),[n,K]=t.useState(null),[me,z]=t.useState(""),ue=t.useRef(!1),J=t.useRef("");t.useEffect(()=>{r||F(`/login?redirect=/checkout/${_}?cycle=${M.get("cycle")||"monthly"}`)},[r,_]),t.useEffect(()=>{r&&Fe()},[_,r]);const Fe=async()=>{ae(!0);try{const[s,l,a,c]=await Promise.all([Ye(_||""),Ke(),Je().catch(()=>[]),ve.get("/login/me.php").then(p=>p.data).catch(()=>null)]);if(fe(s),_e(l),te((r==null?void 0:r.name)||""),c!=null&&c.phone&&re(c.phone),c!=null&&c.document_number&&(["CC","CE","PA","NIT"].includes(c.document_type)&&ie(c.document_type),ce(c.document_number),be(!0)),Le(a),a.length>0){const p=a.find(u=>u.is_default)||a[0];G(p.id)}Ie(l),typeof window.gtag=="function"&&s&&window.gtag("event","checkout_view",{event_category:"funnel",plan_name:s.name_es,plan_slug:s.slug})}catch{j("No se pudo cargar la información del plan")}finally{ae(!1)}},Ie=t.useCallback(s=>{if(ue.current)return;const l=a=>new Promise((c,p)=>{if(document.querySelector(`script[src="${a}"]`)){c();return}const u=document.createElement("script");u.src=a,u.onload=()=>c(),u.onerror=()=>p(new Error(`Failed to load ${a}`)),document.head.appendChild(u)});(async()=>{try{await l("https://resources.openpay.co/openpay.v1.min.js"),await l("https://resources.openpay.co/openpay-data.v1.min.js"),window.OpenPay.setId(s.merchant_id),window.OpenPay.setApiKey(s.public_key),window.OpenPay.setSandboxMode(s.sandbox),J.current=window.OpenPay.deviceData.setup("checkout-form","device_session_id"),ue.current=!0}catch{j("Error al cargar el sistema de pagos")}})()},[]),Oe=()=>{var l,a,c,p,u,L;const s={};return T.trim()||(s.holderName="Nombre del titular requerido"),(!B.trim()||!((a=(l=window.OpenPay)==null?void 0:l.card)!=null&&a.validateCardNumber(B.replace(/\s/g,""))))&&(s.cardNumber="Número de tarjeta inválido"),(!R||!k||!((p=(c=window.OpenPay)==null?void 0:c.card)!=null&&p.validateExpiry(R,k)))&&(s.expiry="Fecha inválida"),(!$||!((L=(u=window.OpenPay)==null?void 0:u.card)!=null&&L.validateCVC($)))&&(s.cvv="CVV inválido"),Ee(s),Object.keys(s).length===0},Te=async()=>{var s,l;if(m.trim()){he(!0),z(""),K(null);try{const{data:a}=await ve.post("/coupons/validate.php",{code:m.trim()});K(a)}catch(a){z(((l=(s=a==null?void 0:a.response)==null?void 0:s.data)==null?void 0:l.message)||"Codigo no valido")}finally{he(!1)}}},Ve=()=>{K(null),de(""),z("")},Be=async()=>{var s,l;if(!(!n||d)){w(!0),j("");try{if(n.coupon_type==="premium"){const a=await He(m.trim());U({premium:a.premium,premium_expires:a.premium_expires}),q({plan_name:i==null?void 0:i.name_es,amount:0,premium_expires:a.premium_expires,coupon_name:a.coupon_name,days_added:a.days_added,payment_method:"coupon"}),A(!0)}else{const a=await se({plan_id:i.id,billing_cycle:I?"yearly":"monthly",token_id:"",device_session_id:"",coupon_code:m.trim(),...y?{ref_code:y}:{}});U({premium:a.premium,premium_expires:a.premium_expires,max_places:a.max_places}),q({...a,payment_method:"coupon"}),A(!0)}}catch(a){j(((l=(s=a==null?void 0:a.response)==null?void 0:s.data)==null?void 0:l.message)||(a==null?void 0:a.message)||"Error al canjear el cupon")}finally{w(!1)}}},Re=async()=>{var l,a,c,p,u,L;if(!i||d)return;if(!C||!S.trim()){j("Tipo y número de documento son requeridos");return}const s=v==="card"&&g!=="new";if(!(v==="card"&&!s&&!Oe())){typeof window.gtag=="function"&&window.gtag("event","checkout_payment_attempt",{event_category:"funnel",plan_name:i.name_es,payment_method:v}),w(!0),j("");
1try{if(v==="pse"){if(!V||V.length<7){j("Ingresa un número de teléfono válido para PSE"),w(!1);return}const b=await se({plan_id:i.id,billing_cycle:I?"yearly":"monthly",token_id:"",device_session_id:"",payment_method:"pse",redirect_url:window.location.origin+"/payment-confirm",holder_name:(r==null?void 0:r.name)||"",holder_email:r==null?void 0:r.email,holder_phone:V,document_type:C,document_number:S.trim(),...(n==null?void 0:n.coupon_type)==="discount"&&m?{coupon_code:m.trim()}:{},...y?{ref_code:y}:{}});b.pse_url?window.location.href=b.pse_url:j("No se recibió la URL de pago PSE");return}let o;if(s)o={plan_id:i.id,billing_cycle:I?"yearly":"monthly",card_id:g,device_session_id:J.current,auto_renew:H,holder_email:r==null?void 0:r.email,document_type:C,document_number:S.trim(),...(n==null?void 0:n.coupon_type)==="discount"&&m?{coupon_code:m.trim()}:{},...y?{ref_code:y}:{}};else{const b={card_number:B.replace(/\s/g,""),holder_name:T,expiration_year:k.length===2?k:k.slice(-2),expiration_month:R.padStart(2,"0"),cvv2:$},We=await new Promise((Xe,Ue)=>{window.OpenPay.token.create(b,X=>Xe(X.data.id),X=>{var je;return Ue(new Error(((je=X.data)==null?void 0:je.description)||X.message||"Error al tokenizar"))})});o={plan_id:i.id,billing_cycle:I?"yearly":"monthly",token_id:We,device_session_id:J.current,save_card:N,auto_renew:H&&N,holder_name:T,holder_email:r==null?void 0:r.email,document_type:C,document_number:S.trim(),...(n==null?void 0:n.coupon_type)==="discount"&&m?{coupon_code:m.trim()}:{},...y?{ref_code:y}:{}}}const D=await se(o);U({premium:D.premium,premium_expires:D.premium_expires,max_places:D.max_places}),q(D),A(!0)}catch(o){const b=((a=(l=o==null?void 0:o.response)==null?void 0:l.data)==null?void 0:a.error_code)!==void 0||/declin|rechaz|stolen|fraud|insufficient|invalid card/i.test(((p=(c=o==null?void 0:o.response)==null?void 0:c.data)==null?void 0:p.message)||(o==null?void 0:o.message)||"");j(b?"Pago rechazado. Verifica los datos o intenta con otra tarjeta.":((L=(u=o==null?void 0:o.response)==null?void 0:u.data)==null?void 0:L.message)||(o==null?void 0:o.message)||"Error al procesar el pago")}finally{w(!1)}}},$e=s=>s.replace(/\D/g,"").slice(0,16).replace(/(.{4})/g,"$1 ").trim(),P=i?i.price_monthly:0,pe=(n==null?void 0:n.coupon_type)==="discount"?n.discount_pct:0,Q=Math.round(P*pe/100),E=P-Q,W=(i==null?void 0:i.iva_pct)??19,Z=(i==null?void 0:i.service_fee_pct)??0,ze=Math.round(E/(1+W/100)),xe=Z>0?Math.round(ze*Z/100):0,ge=(n==null?void 0:n.coupon_type)==="premium"||E<=0;return r?ke?e.jsx("div",{className:"pricing-standalone",style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh"},children:e.jsx(ee,{})}):Ne&&x?e.jsxs("div",{className:"pricing-standalone",children:[e.jsx("header",{className:"pricing-standalone-header",children:e.jsx("a",{href:"/",className:"pricing-logo",children:e.jsx("img",{src:"/images/logo-horizontal.webp",alt:"Encontrable",style:{height:32}})})}),e.jsx("div",{className:"checkout-container",children:e.jsxs("div",{className:"checkout-success",children:[e.jsxs("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"#10b981",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),e.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}),e.jsx("h2",{children:"Pago exitoso"}),e.jsxs("p",{children:["Tu plan ",e.jsx("strong",{children:x.plan_name})," ha sido activado."]}),e.jsxs("div",{className:"checkout-success-details",children:[x.payment_method==="coupon"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:["Cupon: ",e.jsx("strong",{children:x.coupon_name})]}),x.days_added&&e.jsxs("div",{children:[x.days_added," días de Business"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:["Monto: ",e.jsx("strong",{children:f(x.amount)})]}),x.card_last_four&&e.jsxs("div",{children:["Tarjeta: **** ",x.card_last_four]})]}),e.jsxs("div",{children:["Premium hasta: ",e.jsx("strong",{children:new Date(x.premium_expires).toLocaleDateString("es-CO")})]})]}),e.jsx("button",{className:"summary-continue-btn",onClick:()=>
1F("/dashboard"),children:"Ir al panel"})]})})]}):i?e.jsxs("div",{className:"pricing-standalone",children:[e.jsxs("header",{className:"pricing-standalone-header",children:[e.jsx("a",{href:"/",className:"pricing-logo",children:e.jsx("img",{src:"/images/logo-horizontal.webp",alt:"Encontrable",style:{height:32}})}),e.jsx("span",{className:"pricing-user-name",children:r.name})]}),e.jsxs("div",{className:"checkout-container",children:[e.jsxs("button",{className:"checkout-back",onClick:()=>F(-1),children:[e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),e.jsx("polyline",{points:"12 19 5 12 12 5"})]}),"Atrás"]}),e.jsxs("div",{className:"checkout-grid",children:[e.jsxs("div",{className:"checkout-summary",children:[e.jsx("h3",{children:"Resumen del pedido"}),e.jsxs("div",{className:"checkout-plan-card",children:[e.jsx("div",{className:"checkout-plan-name",children:i.name_es}),e.jsx("div",{className:"checkout-plan-desc",children:i.description_es})]}),e.jsxs("div",{className:"checkout-coupon",children:[e.jsx("label",{children:"¿Tienes un cupón?"}),n?e.jsxs("div",{className:"coupon-applied",children:[e.jsxs("div",{className:"coupon-applied-info",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#10b981",strokeWidth:"2",children:[e.jsx("path",{d:"M20.59 13.41l-7.17 7.17a2 2 0 01-2.83 0L2 12V2h10l8.59 8.59a2 2 0 010 2.82z"}),e.jsx("line",{x1:"7",y1:"7",x2:"7.01",y2:"7"})]}),e.jsxs("div",{children:[e.jsx("strong",{children:n.coupon_name}),e.jsx("span",{children:n.coupon_type==="premium"?` — ${n.premium_days} dias gratis`:` — ${n.discount_pct}% de descuento`})]})]}),e.jsx("button",{className:"coupon-remove",onClick:Ve,type:"button",children:e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}):e.jsxs("div",{className:"coupon-input-row",children:[e.jsx("input",{type:"text",value:m,onChange:s=>{de(s.target.value.toUpperCase()),z("")},placeholder:"ENC-XXXX-XXXX",disabled:Y}),e.jsx("button",{className:"coupon-apply-btn",onClick:Te,disabled:Y||!m.trim(),type:"button",children:Y?"...":"Aplicar"})]}),me&&e.jsx("span",{className:"field-error",children:me})]}),e.jsxs("div",{className:"checkout-price-breakdown",children:[e.jsxs("div",{className:"breakdown-row",children:[e.jsx("span",{children:"Subtotal"}),e.jsx("span",{children:f(Math.round(P/(1+W/100)))})]}),e.jsxs("div",{className:"breakdown-row",children:[e.jsxs("span",{children:["IVA (",W,"%)"]}),e.jsx("span",{children:f(P-Math.round(P/(1+W/100)))})]}),Q>0&&e.jsxs("div",{className:"breakdown-row breakdown-discount",children:[e.jsxs("span",{children:["Descuento (",pe,"%)"]}),e.jsxs("span",{children:["-",f(Q)]})]}),(n==null?void 0:n.coupon_type)==="premium"&&e.jsxs("div",{className:"breakdown-row breakdown-discount",children:[e.jsxs("span",{children:["Cupon (",n.premium_days," dias)"]}),e.jsx("span",{children:"GRATIS"})]}),xe>0&&e.jsxs("div",{className:"breakdown-row",children:[e.jsxs("span",{children:["Comision servicio (",Z,"%)"]}),e.jsx("span",{children:f(xe)})]}),e.jsxs("div",{className:"breakdown-total",children:[e.jsx("span",{children:"Total"}),e.jsx("span",{children:ge?"GRATIS":e.jsxs(e.Fragment,{children:[f(E),e.jsxs("small",{children:["/","mes"]})]})})]})]})]}),e.jsx("div",{className:"checkout-payment",children:ge?e.jsxs(e.Fragment,{children:[e.jsxs("h3",{children:[e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#10b981",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M20.59 13.41l-7.17 7.17a2 2 0 01-2.83 0L2 12V2h10l8.59 8.59a2 2 0 010 2.82z"}),e.jsx("line",{x1:"7",y1:"7",x2:"7.01",y2:"7"})]}),"Cupon aplicado"]}),e.jsxs("div",{className:"coupon-free-info",children:[e.jsxs("p",{children:["Tu cupon ",e.jsx("strong",{children:n==null?void 0:n.coupon_name})," cubre el costo completo."]}),e.jsx("p",{children:(n==null?void 0:n.coupon_type)==="premium"?`Obtendras ${n.premium_days} días de Business gratis.`:"No necesitas realizar ningun pago."})]}),O&&e.jsx("div",{className:"checkout-alert",children:O}),e.jsx("button",{className:"checkout-pay-btn",onClick:Be,disabled:d,style:{background:"#10b981"},children:d?e.jsxs(e.Fragment,{children:[e.jsx(ee,{size:18,sx:{color:"white"}})," Activando..."]}):e.jsx(e.Fragment,{children:"Activar Plan Business con cupón"})})]}):e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:"Método de pago"}),e.jsxs("div",{className:"payment-method-selector",children:[e.jsxs("button",{className:`payment-method-option ${v==="card"?"active":""}`,onClick:()=>ne("card"),children:[e.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),e.jsx("line",{x1:"1",y1:"10",x2:"23",y2:"10"})]}),e.jsx("span",{children:"Tarjeta"})]}),e.jsxs("button",{className:`payment-method-option ${v==="pse"?"active":""}`,onClick:()=>ne("pse"),children:[e.jsx("img",{src:"/images/openpay/pse.png",alt:"PSE",style:{height:22}}),e.jsx("span",{children:"PSE"})]})]}),e.jsxs("div",{className:"checkout-field-row",style:{display:"flex",gap:12,marginBottom:12},children:[e.jsxs("div",{className:"checkout-field",style:{flex:"0 0 120px"},children:[e.jsx("label",{children:"Tipo doc"}),e.jsxs("select",{value:C,onChange:s=>ie(s.target.value),disabled:d||oe,children:[e.jsx("option",{value:"CC",children:"CC"}),e.jsx("option",{value:"CE",children:"CE"}),e.jsx("option",{value:"PA",children:"Pasaporte"}),e.jsx("option",{value:"NIT",children:"NIT"})]})]}),e.jsxs("div",{className:"checkout-field",style:{flex:1},children:[e.jsx("label",{children:"Número de documento"}),e.jsx("input",{type:"text",value:S,onChange:s=>ce(s.target.value),disabled:d||oe,placeholder:"Número de documento",inputMode:"numeric"})]})]}),v==="card"?e.jsxs("form",{id:"checkout-form",onSubmit:s=>s.preventDefault(),children:[le.length>0&&e.jsxs("div",{className:"saved-cards-list",children:[le.map(s=>e.jsxs("label",{className:`saved-card-option ${g===s.id?"active":""}`,children:[e.jsx("input",{type:"radio",name:"saved-card",checked:g===s.id,onChange:()=>G(s.id),disabled:d}),e.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),e.jsx("line",{x1:"1",y1:"10",x2:"23",y2:"10"})]}),e.jsxs("div",{className:"saved-card-info",children:[e.jsxs("strong",{children:[(s.brand||"Tarjeta").toUpperCase()," **** ",s.last_four]}),s.expiration_month&&s.expiration_year&&e.jsxs("span",{children:["Vence ",s.expiration_month,"/",s.expiration_year]})]}),s.is_default&&e.jsx("span",{className:"saved-card-default",children:"Predeterminada"})]},s.id)),e.jsxs("label",{className:`saved-card-option ${g==="new"?"active":""}`,children:[e.jsx("input",{type:"radio",name:"saved-card",checked:g==="new",onChange:()=>G("new"),disabled:d}),e.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),e.jsx("div",{className:"saved-card-info",children:e.jsx("strong",{children:"Usar otra tarjeta"})})]})]}),g==="new"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"checkout-card-logos",children:[e.jsx("div",{className:"checkout-card-chip",children:e.jsx("img",{src:"/images/openpay/visa.png",alt:"
1Visa"})}),e.jsx("div",{className:"checkout-card-chip",children:e.jsx("img",{src:"/images/openpay/master.png",alt:"Mastercard"})}),e.jsx("div",{className:"checkout-card-chip",children:e.jsx("img",{src:"/images/openpay/amex.png",alt:"American Express"})})]}),e.jsxs("div",{className:"checkout-field",children:[e.jsx("label",{children:"Nombre del titular"}),e.jsx("input",{type:"text",value:T,onChange:s=>te(s.target.value),className:h.holderName?"error":"",disabled:d,placeholder:"Como aparece en la tarjeta"}),h.holderName&&e.jsx("span",{className:"field-error",children:h.holderName})]}),e.jsxs("div",{className:"checkout-field",children:[e.jsx("label",{children:"Número de tarjeta"}),e.jsx("input",{type:"text",value:B,onChange:s=>we($e(s.target.value)),className:h.cardNumber?"error":"",disabled:d,placeholder:"0000 0000 0000 0000",maxLength:19}),h.cardNumber&&e.jsx("span",{className:"field-error",children:h.cardNumber})]}),e.jsxs("div",{className:"checkout-field-row",children:[e.jsxs("div",{className:"checkout-field",children:[e.jsx("label",{children:"Mes"}),e.jsx("input",{type:"text",value:R,onChange:s=>Ce(s.target.value.replace(/\D/g,"").slice(0,2)),className:h.expiry?"error":"",disabled:d,placeholder:"MM",maxLength:2})]}),e.jsxs("div",{className:"checkout-field",children:[e.jsx("label",{children:"Año"}),e.jsx("input",{type:"text",value:k,onChange:s=>Se(s.target.value.replace(/\D/g,"").slice(0,2)),className:h.expiry?"error":"",disabled:d,placeholder:"AA",maxLength:2}),h.expiry&&e.jsx("span",{className:"field-error",children:h.expiry})]}),e.jsxs("div",{className:"checkout-field",children:[e.jsx("label",{children:"CVV"}),e.jsx("input",{type:"password",value:$,onChange:s=>Pe(s.target.value.replace(/\D/g,"").slice(0,4)),className:h.cvv?"error":"",disabled:d,placeholder:"***",maxLength:4}),h.cvv&&e.jsx("span",{className:"field-error",children:h.cvv})]})]}),e.jsx("div",{className:"checkout-toggle-row",children:e.jsxs("label",{className:"checkout-toggle",children:[e.jsx("input",{type:"checkbox",checked:N,onChange:s=>De(s.target.checked),disabled:d}),e.jsx("span",{children:"Guardar esta tarjeta para futuros pagos"})]})})]}),e.jsx("div",{className:"checkout-toggle-row",children:e.jsxs("label",{className:"checkout-toggle",children:[e.jsx("input",{type:"checkbox",checked:H&&(g!=="new"||N),onChange:s=>Me(s.target.checked),disabled:d||g==="new"&&!N}),e.jsxs("span",{children:["Renovar automáticamente cada ","mes",g==="new"&&!N&&e.jsx("small",{style:{display:"block",opacity:.7},children:"Requiere guardar la tarjeta"})]})]})})]}):e.jsxs("div",{className:"pse-info",children:[e.jsxs("div",{className:"pse-info-row",children:[e.jsx("div",{className:"pse-info-icon",children:e.jsx("img",{src:"/images/openpay/pse.png",alt:"PSE",style:{height:56}})}),e.jsxs("div",{className:"checkout-field pse-phone-field",children:[e.jsx("label",{children:"Teléfono de contacto"}),e.jsx("input",{type:"tel",value:V,onChange:s=>re(s.target.value.replace(/\D/g,"").slice(0,10)),placeholder:"3001234567",maxLength:10})]})]}),e.jsx("p",{children:"Serás redirigido a PSE donde podrás seleccionar tu banco y completar el pago de forma segura."}),e.jsxs("ul",{className:"pse-steps",children:[e.jsx("li",{children:"Selecciona tu banco"}),e.jsx("li",{children:"Ingresa tu tipo de documento y número"}),e.jsx("li",{children:"Confirma el pago en tu banca en línea"}),e.jsx("li",{children:"Regresa automáticamente a Encontrable"})]})]}),O&&e.jsx("div",{className:"checkout-alert",children:O}),e.jsx("button",{className:"checkout-pay-btn",onClick:Re,disabled:d,children:d?e.jsxs(e.Fragment,{children:[e.jsx(ee,{size:18,sx:{color:"white"}})," Procesando..."]}):v==="pse"?e.jsxs(e.Fragment,{children:["Pagar con PSE ",f(E)]}):e.jsxs(e.Fragment,{children:["Pagar ",f(E)]})}),e.jsxs("div",{className:"checkout-secure-note",children:[e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),"Pago seguro procesado por",e.jsx("img",{src:"/images/openpay/logo-openpay.jpg",alt:"OpenPay",className:"openpay-badge"})]})]})})]})]})]}):e.jsxs("div",{className:"pricing-standalone",children:[e.jsx("header",{className:"pricing-standalone-header",children:e.jsx("a",{href:"/",className:"pricing-logo",children:e.jsx("img",{src:"/images/logo-horizontal.webp",alt:"Encontrable",style:{height:32}})})}),e.jsx("div",{className:"checkout-container",children:e.jsxs("div",{className:"checkout-error",children:[e.jsx("p",{children:"Plan no encontrado"}),e.jsx("button",{className:"pricing-login-btn",onClick:()=>F("/pricing/premium"),children:"Ver planes"})]})})]}):null}export{rs 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.