PageSourceSearch

https://hostuis.com/build/assets/Show-xJXl_V_v.js

js hostuis.com collected 2026-10-07 22:28:01 UTC 37,031 bytes, 1 lines download raw bytes

1import{d as Ce,P as H,i as $e,o as r,c,a as O,l as a,u as s,K as Se,B as t,H as re,x as u,C as v,z as je,s as d,k as l,e as x,j as b,F as L,E as N,R as K,L as _,S as X,h as R,r as y,I as Z}from"./app-CFsgqP1j.js";import{i as Ae}from"./DomainController-DxUi_xKJ.js";import{A as Ee}from"./AdminLayout-CKpIvQP8.js";import{A as Pe}from"./arrow-left-Do-Kuzhi.js";import{G as W}from"./_plugin-vue_export-helper-BecJeOls.js";import{U as Ve,S as ne,B as le}from"./user-D29teeXA.js";import{L as ie}from"./link-2-BFAAAlLk.js";import{L as k}from"./loader-circle-B4EwLrhk.js";import{S as ae}from"./server-utF9gkXT.js";import{C as de}from"./circle-check-DxM-V2IU.js";import{C as Y}from"./circle-alert-DfP-5Z3c.js";import{R as Re}from"./refresh-cw-Cx0GsSwC.js";import{R as ue}from"./rotate-ccw-CuUCZFaw.js";import{K as me}from"./key-DKGjRWHU.js";import{L as Te}from"./lock-open-DYyhMlCe.js";import{L as Ie}from"./lock-DA2pGRNq.js";import{T as J}from"./trash-2-BxpAujMw.js";import{S as pe}from"./shield-DCH2-rTP.js";import{D as Ue}from"./database-Fuyt_zMF.js";import{M as De}from"./mail-B9YElltF.js";import{C as T}from"./circle-x-B-qYi6ty.js";import{C as Le}from"./calendar-COZgZyOG.js";import{D as Ne}from"./dollar-sign-Cbx-TiGs.js";import{c as Me}from"./createLucideIcon-CaR9SJZR.js";import{U as Q}from"./user-check-bjSflj81.js";import{S as qe}from"./save-CsY3yJV5.js";import{T as ee}from"./ToastNotifications-l0oNMqvD.js";import{E as ze}from"./eye-DYbr2FiB.js";import{E as Be}from"./eye-off-BTr8j_TI.js";import{C as te}from"./clock-BCJBWsud.js";import{C as Fe}from"./settings-CclVfPKo.js";import"./index-C_SHgnPd.js";import"./useNotificationPolling-1Si_P3xx.js";import"./x-DOzTIvCn.js";import"./users-BefwP3yW.js";import"./log-out-BYu8YCA4.js";import"./search-CBXXJewK.js";import"./external-link-D6PBlbIZ.js";import"./key-round-BY7MRI5T.js";import"./shopping-cart-y3xshjut.js";import"./landmark-DyZgAb07.js";import"./wallet-BXpWnQsG.js";import"./tag-O-5qGdEu.js";import"./rss-DkLu0xM3.js";import"./shopping-bag-A0FubH0O.js";import"./share-2-DId9laY7.js";import"./log-in-CaTw8toY.js";import"./code-xml-MmUq5RWp.js";import"./wrench-0m2QhsKB.js";import"./shield-check-B_kOIHy7.js";import"./shield-alert-5l-Swexv.js";import"./smartphone-Cq9h_fss.js";import"./credit-card-DXOlPka8.js";import"./file-text-5DFqbhDC.js";import"./message-square-Dm0ArbK1.js";const Ge=Me("StickyNoteIcon",[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]]),He={class:"p-4 lg:p-6 pb-24 lg:pb-6 space-y-6 max-w-6xl"},Oe={class:"flex flex-col sm:flex-row sm:items-center justify-between gap-4"},Ke={class:"flex items-center gap-3 flex-wrap"},Xe={class:"w-9 h-9 rounded-xl bg-primary/10 flex items-center justify-center"},Ze={class:"text-lg font-semibold text-foreground"},We={key:0,class:"rounded-xl px-4 py-3 border-l-4 border-green-500 bg-green-500/5 text-sm text-green-600"},Ye={key:1,class:"rounded-xl px-4 py-3 border-l-4 border-destructive bg-destructive/5 text-sm text-destructive"},Je={class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},Qe={class:"space-y-5"},et={class:"app-card rounded-2xl p-5 space-y-3"},tt={class:"text-sm font-semibold text-foreground flex items-center gap-2"},st={class:"font-medium text-foreground group-hover:text-primary transition-colors"},ot={class:"text-xs text-muted-foreground"},rt={key:1,class:"text-sm text-muted-foreground"},nt={class:"app-card rounded-2xl p-5 space-y-3"},lt={class:"text-sm font-semibold text-foreground flex items-center gap-2"},it={class:"space-y-2.5 text-sm"},at={class:"flex justify-between gap-2"},dt={class:"font-medium text-right"},ut={key:0,class:"flex justify-between gap-2"},mt={class:"font-mono text-xs text-right break-all"},pt={class:"flex justify-between gap-2"},ct={class:"font-medium"},xt={class:"flex justify-between gap-2"},ft={class:"font-medium"},gt={key:1,class:"flex justify-between gap-2"},bt={class:"font-medium capitalize"},vt={class:"app-card rounded-2xl p-5 space-y-4"},yt={class:"text-sm font-semibold text-foreground flex items-center gap-2"},wt={class:"space-y-3"},_t=["value"],kt={key:0,class:"mt-1 text-xs text-destructive"},ht={key:0,class:"mt-1 text-xs text-destructive"},Ct=["disabled"],$t={class:"app-card rounded-2xl p-5 space-y-4"},St={class:"flex items-center justify-between gap-2"},jt={class:"text-sm font-semibold text-foreground flex items-center gap-2"},At={key:0,class:"inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded-full font-medium bg-green-500/10 text-green-600 border border-green-500/20"},Et={key:1,class:"inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded-full font-medium bg-yellow-500/10 text-yellow-600 border border-yellow-500/20"},Pt={key:2,class:"inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded-full font-medium bg-muted text-muted-foreground border border-border"},Vt={key:0,class:"rounded-xl border border-yellow-500/20 bg-yellow-500/5 px-3 py-2 text-xs text-yellow-700"},Rt={key:1,class:"rounded-xl border border-blue-500/20 bg-blue-500/5 px-3 py-2 text-xs text-blue-700"},Tt={class:"font-mono font-semibold"},It={class:"grid grid-cols-2 gap-2 text-xs"},Ut=["disabled","title"],Dt=["disabled","title"],Lt=["disabled","title"],Nt=["disabled","title"],Mt=["disabled","title"],qt=["disabled","title"],zt={class:"text-muted-foreground font-medium"},Bt=["disabled","title"],Ft=["disabled","title"],Gt={key:2,class:"mt-1 flex items-center gap-2"},Ht={class:"app-card rounded-2xl p-5 space-y-4"},Ot={class:"text-sm font-semibold text-foreground flex items-center gap-2"},Kt={class:"space-y-3"},Xt={class:"flex items-center justify-between cursor-pointer"},Zt={class:"flex items-center gap-2 text-sm"},Wt={class:"flex items-center justify-between cursor-pointer"},Yt={class:"flex items-center gap-2 text-sm"},Jt={class:"flex items-center justify-between cursor-pointer"},Qt={class:"flex items-center gap-2 text-sm"},es={class:"flex items-center justify-between cursor-pointer"},ts={class:"flex items-center gap-2 text-sm"},ss={class:"lg:col-span-2 space-y-5"},os={class:"app-card rounded-2xl p-5 space-y-4"},rs={class:"text-sm font-semibold text-foreground flex items-center gap-2"},ns={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},ls=["value"],is={key:0,class:"mt-1 text-xs text-destructive"},as={class:"flex items-center gap-6 pt-1"},ds={class:"flex items-center gap-2 text-sm cursor-pointer select-none"},us={class:"flex items-center gap-2 text-sm cursor-pointer select-none"},ms={class:"app-card rounded-2xl p-5 space-y-4"},ps={class:"flex items-center justify-between"},cs={class:"text-sm font-semibold text-foreground flex items-center gap-2"},xs=["onUpdate:modelValue","placeholder"],fs=["onClick"],gs={class:"app-card rounded-2xl p-5 space-y-4"},bs={class:"text-sm font-semibold text-foreground flex items-center gap-2"},vs={class:"grid grid-cols-1 sm:grid-cols-3 gap-4"},ys=["value"],ws={key:0,class:"mt-1 text-xs text-destructive"},_s={key:0,class:"mt-1 text-xs text-destructive"},ks={key:0,class:"mt-1 text-xs text-destructive"},hs={class:"app-card rounded-2xl p-5 space-y-3"},Cs={class:"text-sm font-semibold text-foreground flex items-center gap-2"},$s={key:0,class:"text-xs text-destructive"},Ss={class:"app-card rounded-2xl p-5 space-y-3"},js={class:"text-sm font-semibold text-foreground flex items-center gap-2"},As={class:"flex flex-col items-center gap-2 py-6 text-center"},Es={class:"app-card rounded-2xl p-5 space-y-3"},Ps={class:"text-sm font-semibold text-foreground flex items-center gap-2"},Vs={class:"flex justify-end pt-2"},Rs=["disabled"],Ts={class:"app-card rounded-2xl border border-destructive/30 p-5 space-y-3"},Is={class:"text-sm font-semibold text-destructive flex items-center gap-2"},Us={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4"},Ds={class:"relative app-card rounded-2xl p-6 w-full max-w-sm space-y-4 shadow-xl"},Ls={class:"flex items-center justify-between"},Ns={class:"text-base font-semibold flex items-center gap-2"},Ms={key:0,class:"flex justify-center py-4"},qs={key:1,class:"rounded-xl bg-destructive/10 px-4 py-3 text-sm text-destructive"},zs={key:2,class:"rounded-xl bg-blue-500/10 border border-blue-500/20 px-4 py-3 space-y-1"},Bs={key:3,class:"space-y-3"},Fs={class:"flex items-center gap-2 rounded-xl bg-muted/60 px-3 py-2.5"},Gs={class:"flex-1 text-sm font-mono break-all"}
1,Hs={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4"},Os={class:"relative app-card rounded-2xl p-6 w-full max-w-sm space-y-4 shadow-xl"},Ks={class:"text-base font-semibold flex items-center gap-2"},Xs={key:0,class:"mt-1 text-xs text-destructive"},Zs={class:"flex gap-3"},Ws=["disabled"],Ys={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4"},Js={class:"relative app-card rounded-2xl p-6 w-full max-w-md space-y-4 shadow-xl"},Qs={class:"flex items-center gap-3"},eo={class:"w-10 h-10 rounded-full bg-destructive/10 flex items-center justify-center shrink-0"},to={class:"text-sm"},so={class:"font-mono font-semibold text-foreground"},oo=["placeholder"],ro={class:"flex gap-3"},no=["disabled"],ar=Ce({__name:"Show",props:{domain:{},paymentMethods:{},registrars:{}},setup(m){const i=m,se={active:{label:"Activo",icon:de,class:"text-green-600 bg-green-500/10 border-green-500/20"},expired:{label:"Expirado",icon:T,class:"text-red-600 bg-red-500/10 border-red-500/20"},pending:{label:"Pendiente",icon:te,class:"text-yellow-600 bg-yellow-500/10 border-yellow-500/20"},pending_transfer:{label:"Transferencia Pendiente",icon:te,class:"text-blue-600 bg-blue-500/10 border-blue-500/20"},expiring:{label:"Vence pronto",icon:Y,class:"text-orange-600 bg-orange-500/10 border-orange-500/20"},transferred:{label:"Transferido",icon:Fe,class:"text-blue-600 bg-blue-500/10 border-blue-500/20"},cancelled:{label:"Cancelado",icon:T,class:"text-muted-foreground bg-muted border-border"},fraud:{label:"Fraude",icon:ee,class:"text-red-700 bg-red-700/10 border-red-700/20"},redemption_grace:{label:"Redemption Grace",icon:te,class:"text-purple-600 bg-purple-500/10 border-purple-500/20"},pending_delete:{label:"Pendiente borrado",icon:J,class:"text-red-600 bg-red-500/10 border-red-500/20"}},M=R(()=>se[i.domain.status]??se.pending),o=H({status:i.domain.status,expiry_date:i.domain.expiry_date?.substring(0,10)??"",next_due_date:i.domain.next_due_date?.substring(0,10)??"",registration_date:i.domain.registration_date?.substring(0,10)??"",auto_renew:i.domain.auto_renew,is_locked:i.domain.is_locked,dns_management:i.domain.dns_management,email_forwarding:i.domain.email_forwarding,id_protection:i.domain.id_protection,do_not_renew:i.domain.do_not_renew,nameservers:i.domain.nameservers?.length?[...i.domain.nameservers]:["",""],notes:i.domain.notes??"",payment_method:i.domain.payment_method??"",first_payment_amount:i.domain.first_payment_amount??"",recurring_amount:i.domain.recurring_amount??""});$e(()=>i.domain,p=>{o.status=p.status,o.expiry_date=p.expiry_date?.substring(0,10)??"",o.next_due_date=p.next_due_date?.substring(0,10)??"",o.registration_date=p.registration_date?.substring(0,10)??"",o.auto_renew=p.auto_renew,o.is_locked=p.is_locked,o.dns_management=p.dns_management,o.email_forwarding=p.email_forwarding,o.id_protection=p.id_protection,o.do_not_renew=p.do_not_renew,o.nameservers=p.nameservers?.length?[...p.nameservers]:["",""],o.notes=p.notes??"",o.payment_method=p.payment_method??"",o.first_payment_amount=p.first_payment_amount??"",o.recurring_amount=p.recurring_amount??""},{deep:!0});function ce(){o.nameservers.length<6&&o.nameservers.push("")}function xe(p){o.nameservers.length>2&&o.nameservers.splice(p,1)}function fe(){o.patch(`/admin/domains/${i.domain.id}`,{preserveScroll:!0})}const w=H({domain_registrar_id:i.domain.registrar?.id??null,registrar_domain_id:i.domain.registrar_domain_id??""});function ge(){w.post(`/admin/domains/${i.domain.id}/connect-registrar`,{preserveScroll:!0})}const g=y(null),q=y(1),I=y(!1);function $(p,e={}){g.value=p,Z.post(`/admin/domains/${i.domain.id}/action/${p}`,e,{preserveScroll:!0,onFinish:()=>{g.value=null}})}function be(){I.value=!1,$("renew",{years:q.value})}function ve(){Z.post(`/admin/domains/${i.domain.id}/reset-nameservers`,{},{preserveScroll:!0})}const z=y(!1),S=y(null),j=y(null),B=y(!1),A=y(!1),U=y(!1);async function ye(){B.value=!0,S.value=null,j.value=null,U.value=!1,z.value=!0,A.value=!1;try{const p=await fetch(`/admin/domains/${i.domain.id}/auth-code`,{headers:{"X-Requested-With":"XMLHttpRequest"}}),e=await p.json();
1p.ok?e.sent_to_email?U.value=!0:S.value=e.code:j.value=e.error??"Error desconocido"}catch{j.value="No se pudo conectar con el servidor."}finally{B.value=!1}}function F(){z.value=!1,S.value=null,j.value=null,U.value=!1,A.value=!1}const E=y(!1),C=H({new_user_id:""});function we(){C.post(`/admin/domains/${i.domain.id}/transfer-ownership`,{preserveScroll:!0,onSuccess:()=>{E.value=!1,C.reset()}})}const P=y(!1),D=y(""),G=R(()=>`${i.domain.domain}.${i.domain.tld}`);function _e(){Z.delete(`/admin/domains/${i.domain.id}`,{onSuccess:()=>{P.value=!1}})}const ke=[{value:"active",label:"Activo"},{value:"pending",label:"Pendiente"},{value:"pending_transfer",label:"Transferencia Pendiente"},{value:"expiring",label:"Vence pronto"},{value:"expired",label:"Expirado"},{value:"transferred",label:"Transferido"},{value:"cancelled",label:"Cancelado"},{value:"fraud",label:"Fraude"},{value:"redemption_grace",label:"Redemption Grace"},{value:"pending_delete",label:"Pendiente borrado"}],f=R(()=>!!i.domain.registrar?.has_api),h=R(()=>i.domain.registrar?i.domain.registrar.has_api?"":`${i.domain.registrar.name} es un registrador manual sin integración API.`:"Sin registrador configurado. Vincúlalo primero."),he=R(()=>i.domain.registrar_domain_id??`${i.domain.domain}.${i.domain.tld}`);return(p,e)=>(r(),c(Ee,null,{default:O(()=>[a(s(Se),{title:`${m.domain.domain}.${m.domain.tld}`},null,8,["title"]),t("div",He,[t("div",Oe,[t("div",Ke,[a(s(re),{href:s(Ae).url(),class:"w-8 h-8 rounded-lg flex items-center justify-center hover:bg-muted transition-colors text-muted-foreground"},{default:O(()=>[a(s(Pe),{class:"w-4 h-4"})]),_:1},8,["href"]),t("div",Xe,[a(s(W),{class:"w-5 h-5 text-primary"})]),t("div",null,[t("h1",Ze,u(m.domain.domain)+"."+u(m.domain.tld),1),t("span",{class:v(["inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded-full font-medium border",M.value.class])},[(r(),c(je(M.value.icon),{class:"w-3 h-3"})),d(" "+u(M.value.label),1)],2)])])]),p.$page.props.flash?.success?(r(),l("div",We,u(p.$page.props.flash.success),1)):x("",!0),p.$page.props.errors?.registrar?(r(),l("div",Ye,u(p.$page.props.errors.registrar),1)):x("",!0),t("div",Je,[t("div",Qe,[t("div",et,[t("h2",tt,[a(s(Ve),{class:"w-4 h-4 text-muted-foreground"}),e[33]||(e[33]=d(" Cliente ",-1))]),m.domain.user?(r(),c(s(re),{key:0,href:`/admin/clients/${m.domain.user.id}`,class:"block group"},{default:O(()=>[t("p",st,u(m.domain.user.name),1),t("p",ot,u(m.domain.user.email),1)]),_:1},8,["href"])):(r(),l("p",rt,"Sin cliente asignado"))]),t("div",nt,[t("h2",lt,[a(s(W),{class:"w-4 h-4 text-muted-foreground"}),e[34]||(e[34]=d(" Información ",-1))]),t("dl",it,[t("div",at,[e[35]||(e[35]=t("dt",{class:"text-muted-foreground shrink-0"},"Registrador",-1)),t("dd",dt,u(m.domain.registrar?.name??"—"),1)]),m.domain.registrar_domain_id?(r(),l("div",ut,[e[36]||(e[36]=t("dt",{class:"text-muted-foreground shrink-0"},"ID externo",-1)),t("dd",mt,u(m.domain.registrar_domain_id),1)])):x("",!0),t("div",pt,[e[37]||(e[37]=t("dt",{class:"text-muted-foreground shrink-0"},"Periodo",-1)),t("dd",ct,u(m.domain.registration_period??"—")+" año(s)",1)]),t("div",xt,[e[38]||(e[38]=t("dt",{class:"text-muted-foreground shrink-0"},"Precio",-1)),t("dd",ft,u(m.domain.amount)+" "+u(m.domain.currency_code),1)]),m.domain.type?(r(),l("div",gt,[e[39]||(e[39]=t("dt",{class:"text-muted-foreground shrink-0"},"Tipo",-1)),t("dd",bt,u(m.domain.type),1)])):x("",!0)])]),t("div",vt,[t("h2",yt,[a(s(ie),{class:"w-4 h-4 text-muted-foreground"}),e[40]||(e[40]=d(" Vincular registrador ",-1))]),e[45]||(e[45]=t("p",{class:"text-xs text-muted-foreground"}," Conecta este dominio con un registrador para habilitar acciones de API (sincronizar, renovar, bloquear, etc.). ",-1)),t("div",wt,[t("div",null,[e[42]||(e[42]=t("label",{class:"block text-xs text-muted-foreground mb-1"},"Registrador",-1)),b(t("select",{"onUpdate:modelValue":e[0]||(e[0]=n=>s(w).domain_registrar_id=n),class:"app-input w-full rounded-xl px-3 py-2 text-sm"},[e[41]||(e[41]=t("option",{value:null},"— Sin registrador —",-1)),(r(!0),l(L,null,N(m.registrars,n=>(r(),l("option",{key:n.id,value:n.id},u(n.name),9,_t))),128))],512),[[K,s(w).domain_registrar_id]]),s(w).errors.domain_registrar_id?(r(),l("p",kt,u(s(w).errors.domain_registrar_id),1)):x("",!0)]),t("div",null,[e[43]||(e[43]=t("label",{class:"block text-xs text-muted-foreground mb-1"},[d(" ID en el registrador "),t("span",{class:"text-muted-foreground
1/50"},"(opcional)")],-1)),b(t("input",{"onUpdate:modelValue":e[1]||(e[1]=n=>s(w).registrar_domain_id=n),type:"text",placeholder:"ej. example.com o 12345",class:"app-input w-full rounded-xl px-3 py-2 text-sm"},null,512),[[_,s(w).registrar_domain_id]]),s(w).errors.registrar_domain_id?(r(),l("p",ht,u(s(w).errors.registrar_domain_id),1)):x("",!0)]),t("button",{onClick:ge,disabled:s(w).processing,class:"w-full inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl bg-primary text-primary-foreground text-sm font-medium hover:bg-primary/90 transition-colors disabled:opacity-50"},[s(w).processing?(r(),c(s(k),{key:0,class:"w-4 h-4 animate-spin"})):(r(),c(s(ie),{key:1,class:"w-4 h-4"})),e[44]||(e[44]=d(" Guardar vinculación ",-1))],8,Ct)])]),t("div",$t,[t("div",St,[t("h2",jt,[a(s(ae),{class:"w-4 h-4 text-muted-foreground"}),e[46]||(e[46]=d(" Acciones del registrador ",-1))]),m.domain.registrar&&f.value?(r(),l("span",At,[a(s(de),{class:"w-3 h-3"}),e[47]||(e[47]=d(" API activa ",-1))])):m.domain.registrar&&!f.value?(r(),l("span",Et,[a(s(Y),{class:"w-3 h-3"}),e[48]||(e[48]=d(" Solo manual ",-1))])):(r(),l("span",Pt,[a(s(Y),{class:"w-3 h-3"}),e[49]||(e[49]=d(" Sin registrador ",-1))]))]),f.value?x("",!0):(r(),l("div",Vt,u(h.value),1)),f.value&&!m.domain.registrar_domain_id?(r(),l("div",Rt,[e[50]||(e[50]=d(" Sin ID externo — se usará ",-1)),t("span",Tt,u(he.value),1),e[51]||(e[51]=d(" como identificador en el registrador. ",-1))])):x("",!0),t("div",It,[m.domain.type!=="transfer"&&!m.domain.registrar_domain_id?(r(),l("button",{key:0,onClick:e[2]||(e[2]=n=>$("register")),disabled:g.value!==null||!f.value,title:f.value?"Registrar este dominio en el registrador":h.value,class:"flex flex-col items-center gap-1.5 rounded-xl border border-green-500/30 bg-green-500/5 p-3 text-center hover:bg-green-500/10 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[g.value==="register"?(r(),c(s(k),{key:0,class:"w-4 h-4 animate-spin text-primary"})):(r(),c(s(W),{key:1,class:"w-4 h-4 text-green-600"})),e[52]||(e[52]=t("span",{class:"text-muted-foreground font-medium"},"Registrar",-1)),e[53]||(e[53]=t("span",{class:"text-[10px] text-muted-foreground/60 leading-tight"},"en registrador",-1))],8,Ut)):x("",!0),m.domain.type==="transfer"?(r(),l("button",{key:1,onClick:e[3]||(e[3]=n=>$("transfer")),disabled:g.value!==null||!f.value,title:f.value?"Iniciar transferencia de dominio":h.value,class:"flex flex-col items-center gap-1.5 rounded-xl border border-primary/30 bg-primary/5 p-3 text-center hover:bg-primary/10 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[g.value==="transfer"?(r(),c(s(k),{key:0,class:"w-4 h-4 animate-spin text-primary"})):(r(),c(s(ne),{key:1,class:"w-4 h-4 text-primary"})),e[54]||(e[54]=t("span",{class:"text-muted-foreground font-medium"},"Transferir",-1)),e[55]||(e[55]=t("span",{class:"text-[10px] text-muted-foreground/60 leading-tight"},"en registrador",-1))],8,Dt)):x("",!0),t("button",{onClick:e[4]||(e[4]=n=>$("sync")),disabled:g.value!==null||!f.value,title:f.value?"Sincronizar fechas, nameservers y estado desde el registrador":h.value,class:"flex flex-col items-center gap-1.5 rounded-xl border border-border bg-muted/40 p-3 text-center hover:bg-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[g.value==="sync"?(r(),c(s(k),{key:0,class:"w-4 h-4 animate-spin text-primary"})):(r(),c(s(Re),{key:1,class:"w-4 h-4 text-blue-500"}
1)),e[56]||(e[56]=t("span",{class:"text-muted-foreground font-medium"},"Sincronizar",-1)),e[57]||(e[57]=t("span",{class:"text-[10px] text-muted-foreground/60 leading-tight"},"fechas + NS",-1))],8,Lt),t("button",{onClick:e[5]||(e[5]=n=>I.value=!I.value),disabled:g.value!==null||!f.value,title:f.value?"Renovar este dominio":h.value,class:"flex flex-col items-center gap-1.5 rounded-xl border border-border bg-muted/40 p-3 text-center hover:bg-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[g.value==="renew"?(r(),c(s(k),{key:0,class:"w-4 h-4 animate-spin text-primary"})):(r(),c(s(ue),{key:1,class:"w-4 h-4 text-green-500"})),e[58]||(e[58]=t("span",{class:"text-muted-foreground font-medium"},"Renovar",-1))],8,Nt),t("button",{onClick:ye,disabled:g.value!==null||!f.value,title:f.value?"Obtener código EPP/Auth para transferir el dominio":h.value,class:"flex flex-col items-center gap-1.5 rounded-xl border border-border bg-muted/40 p-3 text-center hover:bg-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[a(s(me),{class:"w-4 h-4 text-yellow-500"}),e[59]||(e[59]=t("span",{class:"text-muted-foreground font-medium"},"Auth Code",-1)),e[60]||(e[60]=t("span",{class:"text-[10px] text-muted-foreground/60 leading-tight"},"EPP",-1))],8,Mt),t("button",{onClick:e[6]||(e[6]=n=>$(m.domain.is_locked?"release":"lock")),disabled:g.value!==null||!f.value,title:f.value?m.domain.is_locked?"Desbloquear transferencias":"Bloquear contra transferencias":h.value,class:"flex flex-col items-center gap-1.5 rounded-xl border border-border bg-muted/40 p-3 text-center hover:bg-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[g.value==="release"||g.value==="lock"?(r(),c(s(k),{key:0,class:"w-4 h-4 animate-spin text-primary"})):m.domain.is_locked?(r(),c(s(Te),{key:1,class:"w-4 h-4 text-orange-500"})):(r(),c(s(Ie),{key:2,class:"w-4 h-4 text-orange-500"})),t("span",zt,u(m.domain.is_locked?"Desbloquear":"Bloquear"),1)],8,qt),t("button",{onClick:e[7]||(e[7]=n=>$("delete")),disabled:g.value!==null||!f.value,title:f.value?"Solicitar eliminación en el registrador":h.value,class:"flex flex-col items-center gap-1.5 rounded-xl border border-border bg-muted/40 p-3 text-center hover:bg-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[g.value==="delete"?(r(),c(s(k),{key:0,class:"w-4 h-4 animate-spin text-primary"})):(r(),c(s(J),{key:1,class:"w-4 h-4 text-red-500"})),e[61]||(e[61]=t("span",{class:"text-muted-foreground font-medium"},"Borrar petición",-1))],8,Bt),t("button",{onClick:e[8]||(e[8]=n=>$("release")),disabled:g.value!==null||!f.value,title:f.value?"Liberar (release) el dominio":h.value,class:"flex flex-col items-center gap-1.5 rounded-xl border border-border bg-muted/40 p-3 text-center hover:bg-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[g.value==="release"?(r(),c(s(k),{key:0,class:"w-4 h-4 animate-spin text-primary"})):(r(),c(s(ne),{key:1,class:"w-4 h-4 text-violet-500"})),e[62]||(e[62]=t("span",{class:"text-muted-foreground font-medium"},"Release",-1))],8,Ft)]),I.value?(r(),l("div",Gt,[e[63]||(e[63]=t("label",{class:"text-xs text-muted-foreground whitespace-nowrap"},"Años a renovar:",-1)),b(t("input",{"onUpdate:modelValue":e[9]||(e[9]=n=>q.value=n),type:"number",min:"1",max:"10",class:"app-input w-16 rounded-lg px-2.5 py-1.5 text-sm"},null,512),[[_,q.value,void 0,{number:!0}]]),t("button",{onClick:be,class:"flex-1 rounded-lg bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 transition-colors"}," Confirmar ")])):x("",!0)]),t("div",Ht,[t("h2",Ot,[a(s(pe),{class:"w-4 h-4 text-muted-foreground"}),e[64]||(e[64]=d(" Herramientas de gestión ",-1))]),t("div",Kt,[t("label",Xt,[t("span",Zt,[a(s(Ue),{class:"w-4 h-4 text-muted-foreground"}),e[65]||(e[65]=d(" Gestionar DNS ",-1))]),t("button",{onClick:e[10]||(e[10]=n=>s(o).dns_management=!s(o).dns_management),class:v(["relative inline-flex h-5 w-9 items-center rounded-full transition-colors",s(o).dns_management?"bg-primary":"bg-muted-foreground/30"])},[t("span",{class:v(["inline-block h-3.5 w-3.5 rounded-full bg-white shadow transition-transform",s(o).dns_management?"translate-x-4.5":"translate-x-0.75"])},null,2)],2)]),t("label",Wt,[t("span",Yt,[a(s(De),{class:"w-4 h-4 text-muted-foreground"}),e[66]||(e[66]=d(" Redirecciones email ",-1))]),t("button",{onClick:e[11]||(e[11]=n=>s(o).email_forwarding=!s(o).email_forwarding),class:v(["relative inline-flex h-5 w-9 items-center rounded-full transition-colors",s(o).email_forwarding?"bg-primary":"bg-muted-foreground
1/30"])},[t("span",{class:v(["inline-block h-3.5 w-3.5 rounded-full bg-white shadow transition-transform",s(o).email_forwarding?"translate-x-4.5":"translate-x-0.75"])},null,2)],2)]),t("label",Jt,[t("span",Qt,[a(s(pe),{class:"w-4 h-4 text-muted-foreground"}),e[67]||(e[67]=d(" Protección ID ",-1))]),t("button",{onClick:e[12]||(e[12]=n=>s(o).id_protection=!s(o).id_protection),class:v(["relative inline-flex h-5 w-9 items-center rounded-full transition-colors",s(o).id_protection?"bg-primary":"bg-muted-foreground/30"])},[t("span",{class:v(["inline-block h-3.5 w-3.5 rounded-full bg-white shadow transition-transform",s(o).id_protection?"translate-x-4.5":"translate-x-0.75"])},null,2)],2)]),t("label",es,[t("span",ts,[a(s(T),{class:"w-4 h-4 text-muted-foreground"}),e[68]||(e[68]=d(" No renovar ",-1))]),t("button",{onClick:e[13]||(e[13]=n=>s(o).do_not_renew=!s(o).do_not_renew),class:v(["relative inline-flex h-5 w-9 items-center rounded-full transition-colors",s(o).do_not_renew?"bg-destructive":"bg-muted-foreground/30"])},[t("span",{class:v(["inline-block h-3.5 w-3.5 rounded-full bg-white shadow transition-transform",s(o).do_not_renew?"translate-x-4.5":"translate-x-0.75"])},null,2)],2)])])])]),t("div",ss,[t("div",os,[t("h2",rs,[a(s(Le),{class:"w-4 h-4 text-muted-foreground"}),e[69]||(e[69]=d(" Estado y fechas ",-1))]),t("div",ns,[t("div",null,[e[70]||
1(e[70]=t("label",{class:"block text-xs text-muted-foreground mb-1"},"Estado",-1)),b(t("select",{"onUpdate:modelValue":e[14]||(e[14]=n=>s(o).status=n),class:"app-input w-full rounded-xl px-3 py-2 text-sm"},[(r(),l(L,null,N(ke,n=>t("option",{key:n.value,value:n.value},u(n.label),9,ls)),64))],512),[[K,s(o).status]]),s(o).errors.status?(r(),l("p",is,u(s(o).errors.status),1)):x("",!0)]),t("div",null,[e[71]||(e[71]=t("label",{class:"block text-xs text-muted-foreground mb-1"},"Fecha de registro",-1)),b(t("input",{"onUpdate:modelValue":e[15]||(e[15]=n=>s(o).registration_date=n),type:"date",class:"app-input w-full rounded-xl px-3 py-2 text-sm"},null,512),[[_,s(o).registration_date]])]),t("div",null,[e[72]||(e[72]=t("label",{class:"block text-xs text-muted-foreground mb-1"},"Fecha de expiración",-1)),b(t("input",{"onUpdate:modelValue":e[16]||(e[16]=n=>s(o).expiry_date=n),type:"date",class:"app-input w-full rounded-xl px-3 py-2 text-sm"},null,512),[[_,s(o).expiry_date]])]),t("div",null,[e[73]||(e[73]=t("label",{class:"block text-xs text-muted-foreground mb-1"},"Próxima fecha de pago",-1)),b(t("input",{"onUpdate:modelValue":e[17]||(e[17]=n=>s(o).next_due_date=n),type:"date",class:"app-input w-full rounded-xl px-3 py-2 text-sm"},null,512),[[_,s(o).next_due_date]])])]),t("div",as,[t("label",ds,[t("button",{onClick:e[18]||(e[18]=n=>s(o).auto_renew=!s(o).auto_renew),class:v(["relative inline-flex h-5 w-9 items-center rounded-full transition-colors",s(o).auto_renew?"bg-primary":"bg-muted-foreground/30"])},[t("span",{class:v(["inline-block h-3.5 w-3.5 rounded-full bg-white shadow transition-transform",s(o).auto_renew?"translate-x-4.5":"translate-x-0.75"])},null,2)],2),e[74]||(e[74]=d(" Auto renovar ",-1))]),t("label",us,[t("button",{onClick:e[19]||(e[19]=n=>s(o).is_locked=!s(o).is_locked),class:v(["relative inline-flex h-5 w-9 items-center rounded-full transition-colors",s(o).is_locked?"bg-primary":"bg-muted-foreground/30"])},[t("span",{class:v(["inline-block h-3.5 w-3.5 rounded-full bg-white shadow transition-transform",s(o).is_locked?"translate-x-4.5":"translate-x-0.75"])},null,2)],2),e[75]||(e[75]=d(" Bloqueado ",-1))])])]),t("div",ms,[t("div",ps,[t("h2",cs,[a(s(ae),{class:"w-4 h-4 text-muted-foreground"}),e[76]||(e[76]=d(" Nameservers ",-1))]),t("button",{onClick:ve,class:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors"},[a(s(ue),{class:"w-3.5 h-3.5"}),e[77]||(e[77]=d(" Restablecer predeterminados ",-1))])]),(r(!0),l(L,null,N(s(o).nameservers,(n,V)=>(r(),l("div",{key:V,class:"flex items-center gap-2"},[b(t("input",{"onUpdate:modelValue":oe=>s(o).nameservers[V]=oe,type:"text",placeholder:`ns${V+1}.ejemplo.com`,class:"app-input flex-1 rounded-xl px-3 py-2 text-sm font-mono"},null,8,xs),[[_,s(o).nameservers[V]]]),s(o).nameservers.length>2?(r(),l("button",{key:0,onClick:oe=>xe(V),class:"p-1.5 rounded-lg text-muted-foreground hover:text-destructive hover:bg-destructive/10 transition-colors"},[a(s(T),{class:"w-4 h-4"})],8,fs)):x("",!0)]))),128)),s(o).nameservers.length<6?(r(),l("button",{key:0,onClick:ce,class:"text-xs text-primary hover:underline"}," + Agregar nameserver ")):x("",!0)]),t("div",gs,[t("h2",bs,[a(s(Ne),{class:"w-4 h-4 text-muted-foreground"}
1),e[78]||(e[78]=d(" Información de pago ",-1))]),t("div",vs,[t("div",null,[e[80]||(e[80]=t("label",{class:"block text-xs text-muted-foreground mb-1"},"Forma de pago",-1)),b(t("select",{"onUpdate:modelValue":e[20]||(e[20]=n=>s(o).payment_method=n),class:"app-input w-full rounded-xl px-3 py-2 text-sm"},[e[79]||(e[79]=t("option",{value:""},"— Sin asignar —",-1)),(r(!0),l(L,null,N(m.paymentMethods,n=>(r(),l("option",{key:n.code,value:n.code},u(n.name),9,ys))),128))],512),[[K,s(o).payment_method]]),s(o).errors.payment_method?(r(),l("p",ws,u(s(o).errors.payment_method),1)):x("",!0)]),t("div",null,[e[81]||(e[81]=t("label",{class:"block text-xs text-muted-foreground mb-1"},"Primer pago",-1)),b(t("input",{"onUpdate:modelValue":e[21]||(e[21]=n=>s(o).first_payment_amount=n),type:"number",min:"0",step:"0.01",placeholder:"0.00",class:"app-input w-full rounded-xl px-3 py-2 text-sm"},null,512),[[_,s(o).first_payment_amount]]),s(o).errors.first_payment_amount?(r(),l("p",_s,u(s(o).errors.first_payment_amount),1)):x("",!0)]),t("div",null,[e[82]||(e[82]=t("label",{class:"block text-xs text-muted-foreground mb-1"},"Cantidad recurrente",-1)),b(t("input",{"onUpdate:modelValue":e[22]||(e[22]=n=>s(o).recurring_amount=n),type:"number",min:"0",step:"0.01",placeholder:"0.00",class:"app-input w-full rounded-xl px-3 py-2 text-sm"},null,512),[[_,s(o).recurring_amount]]),s(o).errors.recurring_amount?(r(),l("p",ks,u(s(o).errors.recurring_amount),1)):x("",!0)])])]),t("div",hs,[t("h2",Cs,[a(s(Ge),{class:"w-4 h-4 text-muted-foreground"}),e[83]||(e[83]=d(" Notas privadas ",-1))]),b(t("textarea",{"onUpdate:modelValue":e[23]||(e[23]=n=>s(o).notes=n),rows:"4",placeholder:"Notas internas visibles sólo para el equipo admin...",class:"app-input w-full rounded-xl px-3 py-2.5 text-sm resize-y min-h-20"},null,512),[[_,s(o).notes]]),s(o).errors.notes?(r(),l("p",$s,u(s(o).errors.notes),1)):x("",!0)]),t("div",Ss,[t("h2",js,[a(s(le),{class:"w-4 h-4 text-muted-foreground"}),e[84]||(e[84]=d(" Historial de recordatorios ",-1))]),t("div",As,[a(s(le),{class:"w-10 h-10 text-muted-foreground/30"}),e[85]||(e[85]=t("p",{class:"text-sm text-muted-foreground"},"No hay recordatorios registrados para este dominio.",-1))])]),t("div",Es,[t("h2",Ps,[a(s(Q),{class:"w-4 h-4 text-muted-foreground"}),e[86]||(e[86]=d(" Transferir propiedad ",-1))]),e[88]||(e[88]=t("p",{class:"text-xs text-muted-foreground"},"Asigna este dominio a otro cliente existente.",-1)),t("button",{onClick:e[24]||(e[24]=n=>E.value=!0),class:"flex items-center gap-2 rounded-xl border border-border px-4 py-2 text-sm hover:bg-muted transition-colors"},[a(s(Q),{class:"w-4 h-4"}),e[87]||(e[87]=d(" Transferir a otro cliente ",-1))])]),t("div",Vs,[t("button",{onClick:fe,disabled:s(o).processing,class:"flex items-center gap-2 rounded-xl bg-primary px-6 py-2.5 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50 transition-colors"},[s(o).processing?(r(),c(s(k),{key:0,class:"w-4 h-4 animate-spin"})):(r(),c(s(qe),{key:1,class:"w-4 h-4"})),e[89]||(e[89]=d(" Guardar cambios ",-1))],8,Rs)])])]),t("div",Ts,[t("h2",Is,[a(s(ee),{class:"w-4 h-4"}),e[90]||(e[90]=d(" Zona de peligro ",-1))]),e[92]||(e[92]=t("p",{class:"text-xs text-muted-foreground"},"Esta acción es irreversible. El dominio será eliminado del sistema (soft delete).",-1)),t("button",{onClick:e[25]||(e[25]=n=>P.value=!0),class:"flex items-center gap-2 rounded-xl border border-destructive/40 px-4 py-2 text-sm text-destructive hover:bg-destructive/10 transition-colors"},[a(s(J),{class:"w-4 h-4"}),e[91]||(e[91]=d(" Eliminar dominio ",-1))])])]),(r(),c(X,{to:"body"},[z.value?(r(),l("div",Us,[t("div",{class:"absolute inset-0 bg-black/50",onClick:F}),t("div",Ds,[t("div",Ls,[t("h3",Ns,[a(s(me),{class:"w-5 h-5 text-yellow-500"}),e[93]||(e[93]=d(" Auth Code (EPP) ",-1))]),t("button",{onClick:F,class:"p-1 rounded-lg hover:bg-muted transition-colors text-muted-foreground"},[a(s(T),{class:"w-4 h-4"})])]),B.value?(r(),l("div",Ms,[a(s(k),{class:"w-6 h-6 animate-spin text-primary"})])):j.value?(r(),l("div",qs,u(j.value),1)):U.value?(r(),l("div",zs,[...e[94]||(e[94]=[t("p",{class:"text-sm font-medium text-blue-600 dar
1k:text-blue-400"},"Código enviado por correo",-1),t("p",{class:"text-xs text-muted-foreground"},"El registrador ha enviado el código EPP al correo de contacto del dominio. El cliente debe revisar su bandeja de entrada.",-1)])])):S.value?(r(),l("div",Bs,[e[95]||(e[95]=t("p",{class:"text-xs text-muted-foreground"},"Comparte este código con el cliente sólo cuando solicite transferir el dominio a otro registrador.",-1)),t("div",Fs,[t("code",Gs,u(A.value?S.value:"•".repeat(S.value.length)),1),t("button",{onClick:e[26]||(e[26]=n=>A.value=!A.value),class:"p-1 text-muted-foreground hover:text-foreground transition-colors"},[A.value?(r(),c(s(Be),{key:1,class:"w-4 h-4"})):(r(),c(s(ze),{key:0,class:"w-4 h-4"}))])])])):x("",!0),t("button",{onClick:F,class:"w-full rounded-xl border border-border px-4 py-2 text-sm hover:bg-muted transition-colors"}," Cerrar ")])])):x("",!0)])),(r(),c(X,{to:"body"},[E.value?(r(),l("div",Hs,[t("div",{class:"absolute inset-0 bg-black/50",onClick:e[27]||(e[27]=n=>E.value=!1)}),t("div",Os,[t("h3",Ks,[a(s(Q),{class:"w-5 h-5 text-primary"}),e[96]||(e[96]=d(" Transferir propiedad ",-1))]),e[98]||(e[98]=t("p",{class:"text-sm text-muted-foreground"},"Introduce el ID del nuevo cliente al que deseas transferir este dominio.",-1)),t("div",null,[e[97]||(e[97]=t("label",{class:"block text-xs text-muted-foreground mb-1"},"ID del nuevo cliente",-1)),b(t("input",{"onUpdate:modelValue":e[28]||(e[28]=n=>s(C).new_user_id=n),type:"number",min:"1",placeholder:"ej. 42",class:"app-input w-full rounded-xl px-3 py-2 text-sm"},null,512),[[_,s(C).new_user_id]]),s(C).errors.new_user_id?(r(),l("p",Xs,u(s(C).errors.new_user_id),1)):x("",!0)]),t("div",Zs,[t("button",{onClick:e[29]||(e[29]=n=>E.value=!1),class:"flex-1 rounded-xl border border-border px-4 py-2 text-sm hover:bg-muted transition-colors"}," Cancelar "),t("button",{onClick:we,disabled:s(C).processing||!s(C).new_user_id,class:"flex-1 rounded-xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50 transition-colors"}," Transferir ",8,Ws)])])])):x("",!0)])),(r(),c(X,{to:"body"},[P.value?(r(),l("div",Ys,[t("div",{class:"absolute inset-0 bg-black/50",onClick:e[30]||(e[30]=n=>P.value=!1)}),t("div",Js,[t("div",Qs,[t("div",eo,[a(s(ee),{class:"w-5 h-5 text-destructive"})]),e[99]||(e[99]=t("div",null,[t("h3",{class:"text-base font-semibold"},"¿Eliminar dominio?"),t("p",{class:"text-sm text-muted-foreground"},"Esta acción no se puede deshacer fácilmente.")],-1))]),t("p",to,[e[100]||(e[100]=d(" Para confirmar, escribe ",-1)),t("span",so,u(G.value),1),e[101]||(e[101]=d(" en el campo de abajo. ",-1))]),b(t("input",{"onUpdate:modelValue":e[31]||(e[31]=n=>D.value=n),type:"text",placeholder:G.value,class:"app-input w-full rounded-xl px-3 py-2 text-sm font-mono"},null,8,oo),[[_,D.value]]),t("div",ro,[t("button",{onClick:e[32]||(e[32]=n=>{P.value=!1,D.value=""}),class:"flex-1 rounded-xl border border-border px-4 py-2 text-sm hover:bg-muted transition-colors"}," Cancelar "),t("button",{onClick:_e,disabled:D.value!==G.value,class:"flex-1 rounded-xl bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50 transition-colors"}," Eliminar definitivamente ",8,no)])])])):x("",!0)]))]),_:1}))}});export{ar 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.