import{_ as v}from"./index-DIKmrNCq.js?v=1773287522785";import{_ as h}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{k as A,R as B,r as S,$,Z as k,_ as n,a0 as e,ai as w,X as x,S as s,a9 as u,j as W,aa as i}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{n as C,m as D}from"./index-BTglIPU2.js?v=1773287522785";import{u as L}from"./useTableColumns-DDeyYvje.js?v=1773287522785";import{u as N}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{E as R,F as V,G as E}from"./setting-DouXuJGW.js?v=1773287522785";import{b as K,B as P}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";const T={class:"p-20px"},U={class:"flex mb-16px"},j={class:"flex-1 mr-16px"},nt=A({__name:"config",setup(F){const{t:p}=B(),a=S(""),m=async()=>{if(a.value.trim()===""){D.error(p("Waf.Setting.config_81"));return}await E({url_find:a.value}),a.value="",r()},{table:l,columns:_,setLoading:c}=N([{key:"url",title:"URL"},L({width:80,options:t=>[{label:p("Public.Btn.Del"),onClick:async()=>{await R({url_find:t.url}),r()}}]})]),r=async()=>{try{c(!0);const{message:t}=await V();C(t)&&(l.data=t.map(o=>({url:o})))}finally{c(!1)}};return r(),(t,o)=>{const f=K,d=P,g=h,y=v;return $(),k("div",T,[n("div",U,[n("div",j,[e(f,{value:s(a),"onUpdate:value":o[0]||(o[0]=b=>x(a)?a.value=b:null),placeholder:t.$t("Waf.Setting.config_116"),onKeyup:w(m,["enter"])},null,8,["value","placeholder"])]),e(d,{type:"primary",onClick:m},{default:u(()=>[W(i(t.$t("Public.Btn.Add")),1)]),_:1})]),e(g,{"max-height":368,loading:s(l).loading,data:s(l).data,columns:s(_)},null,8,["loading","data","columns"]),e(y,{class:"mt-16px"},{default:u(()=>[n("li",null,i(t.$t("Waf.Setting.config_117")),1),n("li",null,i(t.$t("Waf.Setting.config_118")),1),n("li",null,i(t.$t("Waf.Setting.config_119")),1)]),_:1})])}}});export{nt as default};
