import{S as g,B as _}from"./main-bdeedeb2.js";import{I as n,E as w,H as y}from"./editor-d6580967.js";import{d as k,b as C,q as S,o as B,c as V,a,h as i,z as W,u as o,t as b,n as D}from"./_plugin-vue_export-helper-0830d71a.js";const q={class:"text-white bg-[#303030] relative w-full h-full flex flex-col"},N={class:"flex justify-between items-center p-2.5 text-sm border-b border-b-solid border-white border-opacity-9"},Z={class:"flex items-center"},j=a("div",{class:"w-5"},null,-1),z={class:"flex-grow min-h-0 flex flex-col gap-2 py-4 text-xs"},E={class:"px-4 flex-grow overflow-y-auto flex flex-col gap-1"},G=k({__name:"Update",props:{data:null},emits:["back"],setup(v,{emit:h}){var r;const l=v,t=C(((r=l.data)==null?void 0:r.value)??"https://"),m=async()=>{var s;if(((s=l.data)==null?void 0:s.value)!==t.value){l.data&&w(l.data);const e={label:t.value,value:t.value};e.label.endsWith("/")&&(e.label=e.label.slice(0,-1)),e.value.endsWith("/")&&(e.value=e.value.slice(0,-1)),y(e)}h("back")};return(s,e)=>{var d,c,u,p;const x=S("a-input");return B(),V("div",q,[a("div",N,[a("div",Z,[i(_,{class:"w-5 h-5",onClick:e[0]||(e[0]=f=>s.$emit("back"))},{default:W(()=>[i(o(g),{class:"w-3 h-3"})]),_:1})]),a("span",null,b(l.data?(d=o(n))==null?void 0:d.xiuGaiZhanDian:(c=o(n))==null?void 0:c.tianJiaZhanDian),1),j]),a("div",z,[a("div",E,[i(x,{modelValue:t.value,"onUpdate:modelValue":e[1]||(e[1]=f=>t.value=f),style:{width:"100%"},placeholder:(u=o(n))==null?void 0:u.qingShuRuWanZheng,"allow-clear":""},null,8,["modelValue","placeholder"])]),a("div",{class:D(["mx-4 flex-shrink-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",t.value&&t.value.length>0?[]:["pointer-events-none"]]),onClick:m},[a("span",null,b((p=o(n))==null?void 0:p.queDing),1)],2)])])}}});export{G as default};
