PageSourceSearch

https://console.yupcha.com/assets/index-DbT9mQ_V.js

js yupcha.com collected 2026-10-02 01:52:20 UTC 22,050 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/billing-D1ssT_rh.js","assets/index-Cc6SKmJ5.js","assets/index-D9IIM5z7.css"])))=>i.map(i=>d[i]);
2import{_ as u,r as y,$ as z,a0 as M,j as e,G as T,H as V,U as c,I as o,a1 as B,a2 as I,a3 as L,a4 as Y,a5 as p,a6 as R,T as q,B as v,Y as O,a7 as U,a8 as k,a9 as C,aa as _,ab as A,ac as S,ad as $,ae as P,C as D}from"./index-Cc6SKmJ5.js";import{S as N}from"./separator-Bfi4z97h.js";import{T as G,a as H,b as f,c as w}from"./tabs-DrRqj_EX.js";import{C as W}from"./checkbox-CjsMgRHp.js";import{C as F}from"./circle-check-big-VgRfig0j.js";const J=({formData:s,focusedField:l})=>{const{t:n}=u(),r=l==="cvv";return e.jsx("div",{className:"w-full max-w-[400px] h-[250px] mx-auto mb-8 perspective-1000 relative select-none",children:e.jsxs("div",{className:`w-full h-full transition-transform duration-700 preserve-3d relative ${r?"rotate-y-180":""}`,style:{transformStyle:"preserve-3d",transform:r?"rotateY(180deg)":"rotateY(0deg)"},children:[e.jsxs("div",{className:"absolute inset-0 w-full h-full rounded-2xl p-6 text-white shadow-xl dark:shadow-2xl backface-hidden bg-gradient-to-br from-brand-400 to-blue-600 dark:from-brand-600 dark:to-blue-900 border border-black/5 dark:border-white/10",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden"},children:[e.jsx("div",{className:"absolute inset-0 rounded-2xl bg-white/10 opacity-30 pointer-events-none",style:{background:"linear-gradient(120deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 40%)"}}),e.jsxs("div",{className:"flex flex-col h-full justify-between relative z-10",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"w-12 h-9 rounded bg-linear-to-br from-yellow-200 to-yellow-500 border border-yellow-600/30 flex items-center justify-center overflow-hidden relative",children:[e.jsx("div",{className:"w-full h-px bg-yellow-600/40 absolute top-1/3"}),e.jsx("div",{className:"w-full h-px bg-yellow-600/40 absolute bottom-1/3"}),e.jsx("div",{className:"h-full w-px bg-yellow-600/40 absolute left-1/3"}),e.jsx("div",{className:"h-full w-px bg-yellow-600/40 absolute right-1/3"})]}),e.jsx("div",{className:"opacity-80",children:e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("path",{d:"M5 12.55a11 11 0 0 1 14.08 0"}),e.jsx("path",{d:"M1.42 9a16 16 0 0 1 21.16 0"}),e.jsx("path",{d:"M8.53 16.11a6 6 0 0 1 6.95 0"}),e.jsx("line",{x1:"12",y1:"20",x2:"12.01",y2:"20"})]})})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-xs text-brand-100 font-medium tracking-wider",children:n("billing.payment.card.visual_labels.number","CARD NUMBER")}),e.jsx("div",{className:"text-2xl font-mono tracking-wider drop-shadow-md min-h-[32px]",children:s.cardNumber?s.cardNumber.padEnd(16,"#").replace(/(.{4})/g,"$1 ").trim():"#### #### #### ####"})]}),e.jsxs("div",{className:"flex justify-between items-end",children:[e.jsxs("div",{className:"space-y-1 flex-1",children:[e.jsx("label",{className:"text-[10px] text-brand-100 font-medium tracking-wider block",children:n("billing.payment.card.visual_labels.holder","CARD HOLDER")}),e.jsx("div",{className:"text-sm font-medium tracking-widest uppercase truncate max-w-[200px] min-h-[20px]",children:s.cardholderName||n("billing.payment.card.holder.placeholder","FULL NAME")})]}),e.jsxs("div",{className:"space-y-1 text-right",children:[e.jsx("label",{className:"text-[10px] text-brand-100 font-medium tracking-wider block",children:n("billing.payment.card.visual_labels.expires","EXPIRES")}),e.jsx("div",{className:"text-sm font-medium tracking-widest min-h-[20px]",children:s.expiryDate||n("billing.payment.card.expiry.placeholder","MM/YY")})]})]})]})]}),e.jsxs("div",{className:"absolute inset-0 w-full h-full rounded-2xl shadow-xl dark:shadow-2xl backface-hidden bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-white border border-black/5 dark:border-white/10",style:{transform:"rotateY(180deg)",backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden"},children:[e.jsx("div",{className:"w-full h-12 bg-black dark:bg-black/80 mt-6"}),e.jsxs("div",{className:"p-6 pt-4",children:[e.jsxs("div",{className:"space-y-1 text-right",children:[e.jsx("label",{className:"text-[10px] text-zinc-500 dark:text-zinc-400 font-medium tracking-wider px-1",children:n("billing.payment.card.cvv.label","CVV")}),e.jsx("div",{className:"bg-white dark:bg-zinc-950 text-zinc-900 dark:text-slate-100 h-10 rounded-sm flex items-center justify-end px-3 font-mono text-lg tracking-widest w-full shadow-inner dark:shadow-[inset_0_2px_4px_rgba(0,0,0,0.6)]",children:s.cvv||"***"})]}),e.jsx("div",{className:"mt-8 flex justify-center opacity-70",children:e.jsxs("div",{className:"flex gap-2 items-center",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-black/10 dark:bg-white/10"}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-black/10 dark:bg-white/10 -ml-4"})]})})]})]})]})})},K=({formData:s,setFormData:l,isProcessing:n,onSubmit:r,errors:i})=>{const{t:a}=u(),[j,g]=y.useState(null),x=t=>{g(t)},h=()=>{g(null)},m=(t,b)=>{l({...s,[t]:b})},d=(t,b)=>{l({...s,billingAddress:{...s.billingAddress,[t]:b}}
2)};return e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8","data-sentry-block":!0,children:[e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold flex items-center",children:a("billing.payment.company_info","Company Information")}),e.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"companyName",children:a("billing.payment.company_name.label","Company Name")}),e.jsx(o,{id:"companyName",value:s.companyName,onChange:t=>m("companyName",t.target.value),placeholder:a("billing.payment.company_name.placeholder","Your company name"),className:i?.companyName?"border-red-500":"",required:!0}),i?.companyName&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.companyName)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"companyEmail",children:a("billing.payment.company_email.label","Company Email")}),e.jsx(o,{id:"companyEmail",type:"email",value:s.companyEmail,onChange:t=>m("companyEmail",t.target.value),placeholder:a("billing.payment.company_email.placeholder","[email protected]"),className:i?.companyEmail?"border-red-500":"",required:!0}),i?.companyEmail&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.companyEmail)})]})]})]}),e.jsx(N,{}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold",children:a("billing.payment.billing_address.title","Billing Address")}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"addressLine1",children:a("billing.payment.billing_address.line1.label","Address Line 1")}),e.jsx(o,{id:"addressLine1",value:s.billingAddress?.line1||"",onChange:t=>d("line1",t.target.value),placeholder:a("billing.payment.billing_address.line1.placeholder","123 Main St"),className:i?.billingAddress?.line1?"border-red-500":""}),i?.billingAddress?.line1&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.billingAddress.line1)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"addressLine2",children:a("billing.payment.billing_address.line2.label","Address Line 2 (Optional)")}),e.jsx(o,{id:"addressLine2",value:s.billingAddress?.line2||"",onChange:t=>d("line2",t.target.value),placeholder:a("billing.payment.billing_address.line2.placeholder","Apt, suite, etc.")})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"city",children:a("billing.payment.billing_address.city.label","City")}),e.jsx(o,{id:"city",value:s.billingAddress?.city||"",onChange:t=>d("city",t.target.value),placeholder:a("billing.payment.billing_address.city.placeholder","New York"),className:i?.billingAddress?.city?"border-red-500":""}),i?.billingAddress?.city&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.billingAddress.city)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"state",children:a("billing.payment.billing_address.state.label","State")}),e.jsx(o,{id:"state",value:s.billingAddress?.state||"",onChange:t=>d("state",t.target.value),placeholder:a("billing.payment.billing_address.state.placeholder","NY"),className:i?.billingAddress?.state?"border-red-500":""}),i?.billingAddress?.state&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.billingAddress.state)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"postalCode",children:a("billing.payment.billing_address.postal_code.label","Postal Code")}),e.jsx(o,{id:"postalCode",value:s.billingAddress?.postalCode||"",onChange:t=>d("postalCode",t.target.value),placeholder:a("billing.payment.billing_address.postal_code.placeholder","10001"),className:i?.billingAddress?.postalCode?"border-red-500":""}),i?.billingAddress?.postalCode&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.billingAddress.postalCode)})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"country",children:a("billing.payment.billing_address.country.label","Country")}),e.jsxs(B,{value:s.billingAddress?.country||"",onValueChange:t=>d("country",t),children:[e.jsx(I,{className:i?.billingAddress?.country?"border-red-500":"",children:e.jsx(L,{placeholder:a("billing.payment.billing_address.country.placeholder","Select a country")})}),e.jsxs(Y,{children:[e.jsx(p,{value:"us",children:a("billing.payment.countries.us","United States")}),e.jsx(p,{value:"ca",children:a("billing.payment.countries.ca","Canada")}),e.jsx(p,{value:"uk",children:a("billing.payment.countries.uk","United Kingdom")}),e.jsx(p,{value:"au",children:a("billing.payment.countries.au","Australia")}),e.jsx(p,{value:"de",children:a("billing.payment.countries.de","Germany")}),e.jsx(p,{value:"fr",children:a("billing.payment.countries.fr","France")}),e.jsx(p,{value:"jp",children:a("billing.payment.countries.jp","Japan")}),e.jsx(p,{value:"other",children:a("billing.payment.countries.other","Other")})]})]}),i?.billingAddress?.country&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.billingAddress.country)})]})]})]}),e.jsxs("div",{className:"bg-white/40 dark:bg-zinc-950/40 backdrop-blur-md p-6 rounded-xl border border-zinc-200/50 dark:border-white/10 shadow-sm h-fit space-y-6",children:[e.jsx("h3",{className:"text-lg font-semibold",children:a("billing.payment.method.title","Payment Method")}),e.jsxs(G,{value:s.paymentMethod,onValueChange:t=>
2m("paymentMethod",t),children:[e.jsxs(H,{className:"grid w-full grid-cols-2 mb-6 bg-white dark:bg-zinc-800/50 border border-zinc-200 dark:border-white/10 p-1 h-11 rounded-xl",children:[e.jsxs(f,{value:"card",className:"flex items-center justify-center gap-2 py-1.5 px-3 text-sm font-medium transition-all duration-300 rounded-lg text-muted-foreground hover:text-zinc-900 dark:hover:text-white data-[state=active]:bg-linear-to-l rtl:data-[state=active]:bg-linear-to-r from-brand-500/90 to-brand-700/70 data-[state=active]:text-white! data-[state=active]:shadow-sm",children:[e.jsx(R,{className:"mr-2 h-4 w-4"}),a("billing.payment.method.card","Credit Card")]}),e.jsxs(f,{value:"paypal",className:"flex items-center justify-center gap-2 py-1.5 px-3 text-sm font-medium transition-all duration-300 rounded-lg text-muted-foreground hover:text-zinc-900 dark:hover:text-white data-[state=active]:bg-linear-to-l rtl:data-[state=active]:bg-linear-to-r from-brand-500/90 to-brand-700/70 data-[state=active]:text-white! data-[state=active]:shadow-sm",children:[e.jsx("div",{className:"w-4 h-4 mr-2 bg-blue-600 rounded-sm flex items-center justify-center text-white! text-xs font-bold",children:"P"}),a("billing.payment.method.paypal.label","PayPal")]})]}),e.jsxs(w,{value:"card",className:"space-y-6",children:[e.jsx(J,{formData:s,focusedField:j}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"cardNumber",children:a("billing.payment.card.number.label","Card Number")}),e.jsx(o,{id:"cardNumber",value:s.cardNumber||"",onChange:t=>m("cardNumber",t.target.value),onFocus:()=>x("cardNumber"),onBlur:h,placeholder:a("billing.payment.card.number.placeholder","1234 5678 9012 3456"),className:i?.cardNumber?"border-red-500":"",required:!0}),i?.cardNumber&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.cardNumber)})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"expiryDate",children:a("billing.payment.card.expiry.label","Expiry Date")}),e.jsx(o,{id:"expiryDate",value:s.expiryDate||"",onChange:t=>m("expiryDate",t.target.value),onFocus:()=>x("expiryDate"),onBlur:h,placeholder:a("billing.payment.card.expiry.placeholder","MM/YY"),className:i?.expiryDate?"border-red-500":"",required:!0}),i?.expiryDate&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.expiryDate)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"cvv",children:a("billing.payment.card.cvv.label","CVV")}),e.jsx(o,{id:"cvv",value:s.cvv||"",onChange:t=>m("cvv",t.target.value),onFocus:()=>x("cvv"),onBlur:h,placeholder:a("billing.payment.card.cvv.placeholder","123"),className:i?.cvv?"border-red-500":"",required:!0}),i?.cvv&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.cvv)})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{htmlFor:"cardholderName",children:a("billing.payment.card.holder.label","Cardholder Name")}),e.jsx(o,{id:"cardholderName",value:s.cardholderName||"",onChange:t=>m("cardholderName",t.target.value),onFocus:()=>x("cardholderName"),onBlur:h,placeholder:a("billing.payment.card.holder.placeholder","John Doe"),className:i?.cardholderName?"border-red-500":"",required:!0}),i?.cardholderName&&e.jsx("p",{className:"text-sm text-red-500",children:a(i.cardholderName)})]})]})]}),e.jsx(w,{value:"paypal",className:"space-y-4",children:e.jsxs("div",{className:"bg-white/40 dark:bg-slate-900/40 backdrop-blur-md p-8 rounded-lg text-center border border-dashed border-zinc-300 dark:border-zinc-700",children:[e.jsx("div",{className:"w-16 h-16 mx-auto bg-blue-600 rounded-full flex items-center justify-center text-white text-2xl font-bold mb-4 shadow-lg shadow-blue-500/20",children:"P"}),e.jsx("p",{className:"font-medium mb-2",children:a("billing.payment.method.paypal.description","Pay with PayPal")}),e.jsx("p",{className:"text-sm text-slate-500 dark:text-slate-400",children:a("billing.payment.method.paypal.info","You will be redirected to PayPal to securely complete your payment.")})]})})]}),e.jsx(N,{className:"my-6"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start space-x-2",children:[e.jsx(W,{id:"terms",className:"mt-0.5"}),e.jsx(c,{htmlFor:"terms",className:"text-sm leading-tight text-muted-foreground font-normal text-left",children:e.jsx("span",{children:e.jsx(q,{keyName:"billing.payment.actions.agree_terms",defaultValue:"I agree to the {terms} and {privacy}.",params:{terms:e.jsx("span",{className:"text-primary hover:underline cursor-pointer",children:a("billing.payment.actions.terms","Terms of Service")}),privacy:e.jsx("span",{className:"text-primary hover:underline cursor-pointer",children:a("billing.payment.actions.privacy","Privacy Policy")})}})})})]}),e.jsx(v,{onClick:r,disabled:n,className:"w-full bg-brand-500 hover:bg-brand-600 text-white!",size:"lg",children:n?e.jsxs(e.Fragment,{children:[e.jsx(O,{className:"mr-2 h-4 w-4 animate-spin"}),a("billing.payment.actions.processing","Processing Payment...")]}):e.jsxs(e.Fragment,{children:[a("billing.payment.actions.save","Save Payment Method"),e.jsx(U,{className:"ml-2 h-4 w-4"})]})}),e.jsxs("p",{className:"text-xs text-slate-400 dark:text-slate-500 text-center flex items-center justify-center gap-1",children:[e.jsx(F,{className:"h-3 w-3"}),a("billing.payment.actions.secure","Secure SSL Encryption")]})]})]})]})},X=({isOpen:s,onClose:l,paymentResult:n})=>{const{t:r}=u();return!n||!n.success?null:e.jsx(k,{open:s,onOpenChange:l,children:e.jsxs(C,{className:"sm:max-w-[425px]",children:[e.jsxs(_,{children:[e.jsxs(A,{className:"flex items-center",children:[e.jsx(F,{className:"mr-2 h-5 w-5 text-green-500"}),r("billing.payment.success_title","Payment Successful")]}),e.jsx(S,{children:r("billing.payment.success_desc","Your subscription has been activated successfully.")})]}),e.jsx("div",{className:"py-4",children:e.jsx("div",{className:"bg-green-50 dark:bg-green-950/20 p-4 rounded-md",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm font-medium",children:r("billing.payment.transaction_id","Transaction ID:")}),e.jsx("span",{className:"text-sm",children:n.transactionId})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm font-medium",children:r("billing.payment.subscription","Subscription:")}),e.jsx("span",{className:"text-sm",children:n.subscription?.plan})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm font-medium",children:r("billing.payment.platform","Platform:")}),e.jsx("span",{className:"text-sm capitalize",children:n.subscription?.platform})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm font-medium",children:r("billing.payment.status","Status:")}),e.jsx($,{variant:"outline",className:"text-green-600 dark:text-green-400 border-green-200 dark:border-green-800",children:n.subscription?.status})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-sm font-medium",children:r("billing.payment.valid_until","Valid Until:")}),e.jsx("span",{className:"text-sm",children:n.subscription?.endDate})]})]})})}),e.jsx(P,{children:e.jsx(v,{onClick:l,children:r("billing.payment.go_to_dashboard","Go to Dashboard")})})]})})},Q=({isOpen:s,onClose:l,errorMessage:n})=>{const{t:r}=u();return e.jsx(k,{open:s,onOpenChange:l,children:e.jsxs(C,{className:"sm:max-w-[425px]",children:[e.jsxs(_,{children:[e.jsxs(A,{className:"flex items-center",children:[e.jsx(D,{className:"mr-2 h-5 w-5 text-red-500"}),r("billing.payment.failed_title","Payment Failed")]}),e.jsx(S,{children:r("billing.payment.failed_desc","There was an issue processing your payment.")})]}),e.jsx("div",{className:"py-4",children:e.jsx("div",{className:"bg-red-50 dark:bg-red-950/20 p-4 rounded-md",children:e.jsx("p",{className:"text-sm text-red-800 dark:text-red-200",children:n})})}),e.jsx(P,{children:e.jsx(v,{variant:"outline",onClick:l,children:r("billing.payment.try_again","Try Again")})})]})})},Z=s=>{const l={};return s.companyName.trim()||(l.companyName="billing.payment.company_name.error"),s.companyEmail.trim()?/^\S+@\S+\.\S+$/.test(s.companyEmail)||(l.companyEmail="billing.payment.company_email.error_invalid"):l.companyEmail="billing.payment.company_email.error_required",s.paymentMethod==="card"&&(s.cardNumber?.trim()?/^\d{4}\s?\d{4}\s?\d{4}\s?\d{4}$/.test(s.cardNumber.replace(/\s/g,""))||(l.cardNumber="billing.payment.card.number.error_invalid"):l.cardNumber="billing.payment.card.number.error_required",s.expiryDate?.trim()?/^(0[1-9]|1[0-2])\/\d{2}$/.test(s.expiryDate)||(l.expiryDate="billing.payment.card.expiry.error_invalid"):l.expiryDate="billing.payment.card.expiry.error_required",s.cvv?.trim()?/^\d{3,4}$/.test(s.cvv)||(l.cvv="billing.payment.card.cvv.error_invalid"):l.cvv="billing.payment.card.cvv.error_required",s.cardholderName?.trim()||(l.cardholderName="billing.payment.card.holder.error")),s.billingAddress&&(s.billingAddress.line1?.trim()||(l.billingAddress={...l.billingAddress,line1:"billing.payment.billing_address.line1.error"}),s.billingAddress.city?.trim()||(l.billingAddress={...l.billingAddress,city:"billing.payment.billing_address.city.error"}),s.billingAddress.state?.trim()||(l.billingAddress={...l.billingAddress,state:"billing.payment.billing_address.state.error"}),s.billingAddress.postalCode?.trim()||(l.billingAddress={...l.billingAddress,postalCode:"billing.payment.billing_address.postal_code.error"}),s.billingAddress.country?.trim()||(l.billingAddress={...l.billingAddress,country:"billing.payment.billing_address.country.error"})),l};function te(){const{t:s}=u(),[l,n]=y.useState({selectedPlatform:"recruiter",selectedPlanId:"",showPaymentForm:!0,showSuccessDialog:!1,paymentResult:null}),[r,i]=y.useState({}),[a,j]=y.useState({platform:"recruiter",planId:"",companyName:"",companyEmail:"",paymentMethod:"card",billingAddress:{line1:"",line2:"",city:"",state:"",postalCode:"",country:"us"}}),g=z({mutationFn:async d=>{const{processPaymentServerFn:t}=await M(async()=>{const{processPaymentServerFn:E}=await import("./billing-D1ssT_rh.js");return{processPaymentServerFn:E}},__vite__mapDeps([0,1,2])),b=await t({data:d});if(!b.ok)throw new Error(s("billing.payment.error_add","Payment method update failed"));return b.json()},onSuccess:d=>{n({...l,paymentResult:d,showSuccessDialog:!0})},onError:d=>{n({...l,paymentResult:{success:!1,error:d.message||s("billing.payment.error_generic","Update failed. Please try again.")},showSuccessDialog:!0})}}),x=()=>{const d=Z(a);i(d),!(Object.keys(d).length>0)&&g.mutate(a)},h=()=>{n({...l,showSuccessDialog:!1})},m=()=>{n({...l,showSuccessDialog:!1})};return e.jsxs("div",{className:"container mx-auto p-2 max-w-7xl",children:[e.jsx(T,{className:"bg-white/60 dark:bg-zinc-900/60 backdrop-blur-xl border-zinc-200/50 dark:border-white/10 shadow-xl relative overflow-hidden",children:e.jsx(V,{className:"pt-6",children:e.jsx(K,{formData:a,setFormData:j,isProcessing:g.isPending,onSubmit:x,errors:r})})}),e.jsx(X,{isOpen:l.showSuccessDialog&&l.paymentResult?.success===!0,onClose:h,paymentResult:l.paymentResult}),e.jsx(Q,{isOpen:l.showSuccessDialog&&l.paymentResult?.success===!1,onClose:m,errorMessage:l.paymentResult?.error||"An unknown error occurred"})]})}
2export{te as component};

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.