import{S as U,B as j,_ as E}from"./main-bdeedeb2.js";import{C as Z,f as q,D as H,h as M,I as c,i as N,E as K,F as V,c as T,G as z}from"./editor-d6580967.js";import{d as Q,b as d,s as X,x as Y,o as l,c as n,a,h as m,z as A,u as r,t as u,F as ee,i as ae,n as I,j as p,A as te,B as oe,y as L}from"./_plugin-vue_export-helper-0830d71a.js";const se={class:"text-white bg-[#303030] relative w-full h-full flex flex-col"},le={class:"flex justify-between items-center p-2.5 text-sm border-b border-b-solid border-white border-opacity-9"},ie={class:"flex items-center w-12"},ne={class:"flex items-center"},re={class:"flex-grow min-h-0 flex flex-col gap-2 py-4 text-xs"},ce={class:"px-2 flex-grow overflow-y-auto flex flex-col gap-1"},de=["onClick"],ue={class:"truncate"},ve={key:0},be={class:"mx-4 flex gap-2"},he={class:"truncate"},fe={class:"truncate"},pe={class:"truncate"},we=Q({__name:"Domain",setup(_e){const b=d(void 0),v=d(void 0),e=d(void 0),O=t=>{const s=b.value.find(i=>i.value===t);s&&(e.value=s)},g=t=>{t?b.value=[...z,...JSON.parse(t)]:b.value=z},x=t=>{t?v.value=JSON.parse(t):v.value=N()};X(()=>{Z(g),q(x)}),Y(()=>{H(g),M(x)});const _=d(void 0),h=d(void 0),f=d(!1),P=async()=>{_.value=void 0,h.value=L(()=>E(()=>import("./Update-8de4eba8.js"),["assets/Update-8de4eba8.js","assets/main-bdeedeb2.js","assets/_plugin-vue_export-helper-0830d71a.js","assets/editor-d6580967.js","assets/index-63db5a40.css"])),f.value=!0},$=()=>{f.value=!1,setTimeout(()=>{h.value=void 0},500)},G=()=>{_.value=e.value,h.value=L(()=>E(()=>import("./Update-8de4eba8.js"),["assets/Update-8de4eba8.js","assets/main-bdeedeb2.js","assets/_plugin-vue_export-helper-0830d71a.js","assets/editor-d6580967.js","assets/index-63db5a40.css"])),f.value=!0,e.value=void 0},J=()=>{var t,s,i;(t=e.value)!=null&&t.label&&(K(e.value),((s=e.value)==null?void 0:s.value)===((i=v.value)==null?void 0:i.value)&&(V(N()),T()),e.value=void 0)},R=()=>{V(e.value),T()};return(t,s)=>{var i,y,w,k,C,S,D,W;return l(),n("div",se,[a("div",le,[a("div",ie,[m(j,{class:"w-5 h-5",onClick:s[0]||(s[0]=o=>t.$emit("back"))},{default:A(()=>[m(r(U),{class:"w-3 h-3"})]),_:1})]),a("span",null,u((i=r(c))==null?void 0:i.xiTong),1),a("div",ne,[m(j,{class:"px-2",onClick:P},{default:A(()=>{var o;return[a("span",null,"+"+u((o=r(c))==null?void 0:o.zhanDian),1)]}),_:1})])]),a("div",re,[a("div",ce,[(l(!0),n(ee,null,ae(b.value,o=>{var B,F;return l(),n("div",{key:o.value,class:I(["flex justify-between gap-4 px-3 py-2 rounded-md cursor-pointer",o.value===((B=e.value)==null?void 0:B.value)?["bg-[#7856FF]","text-[#7856FF]","bg-opacity-20"]:["hover:bg-white","hover:bg-opacity-10"]]),onClick:me=>O(o.value)},[a("span",ue,u(o.i18n?r(c)[o.i18n]:o.label),1),o.value===((F=v.value)==null?void 0:F.value)?(l(),n("span",ve,"√")):p("",!0)],10,de)}),128))]),a("div",be,[(y=e.value)!=null&&y.label?(l(),n("div",{key:0,class:"flex-grow min-w-0 flex-shrink bg-[#303030] bg-opacity-19 h-9 rounded-md border-solid border-1 border-white border-opacity-10 flex justify-center items-center hover:bg-white hover:bg-opacity-10 cursor-pointer box-border",onClick:J},[a("span",he,u((w=r(c))==null?void 0:w.shanChuZhanDian),1)])):p("",!0),(k=e.value)!=null&&k.label?(l(),n("div",{key:1,class:"flex-grow-2 min-w-0 flex-shrink bg-[#303030] bg-opacity-19 h-9 rounded-md border-solid border-1 border-white border-opacity-10 flex justify-center items-center hover:bg-white hover:bg-opacity-10 cursor-pointer box-border",onClick:G},[a("span",fe,u((C=r(c))==null?void 0:C.xiuGaiZhanDian),1)])):p("",!0),e.value&&((S=e.value)==null?void 0:S.value)!==((D=v.value)==null?void 0:D.value)?(l(),n("div",{key:2,class:"flex-grow-2 min-w-0 bg-[#303030] bg-opacity-19 h-9 rounded-md border-solid border-1 border-white border-opacity-10 flex justify-center items-center hover:bg-white hover:bg-opacity-10 cursor-pointer box-border",onClick:R},[a("span",pe,u((W=r(c))==null?void 0:W.qieHuanDaoCi),1)])):p("",!0)])]),a("div",{class:I(["z-99 absolute inset-y-0 w-full transition-all ease-in-out duration-300",f.value?["left-0"]:["left-full"]])},[(l(),te(oe(h.value),{data:_.value,onBack:$},null,40,["data"]))],2)])}}});export{we as default};
