vendor: 1,315 bytes, line 1
1import{u as v,a as $,aI as l,bk as o,bL as C,c5 as I,c as w,e as t,c6 as L,al as R,bq as r,n as u,X as T,B as p,V as _}from"./index.2ea96c44.js";import{o as x}from"./index.3e839e3c.js";import{I as B}from"./SettingItem.fbb2c6b4.js";import{R as V}from"./ResponsiveGrid.f2f899e4.js";import"./index.599afcb4.js";import"./index.776b467d.js";import"./item_type.be442da4.js";const j=d=>{const s=v(),{pathname:m}=$();x(`manage.sidemenu.${m().split("/").pop()}`);const[h,f]=l(()=>o.get(`/admin/setting/list?group=${d.group}`)),[c,i]=C([]),a=async()=>{const e=await f();r(e,i)};a();const[k,S]=l(()=>o.post("/admin/setting/save",I(c))),[y,g]=w(!1);return t(_,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[t(V,{get children(){return t(L,{each:c,children:(e,q)=>t(B,R(e,{onChange:n=>{i(b=>e().key===b.key,"value",n)},onDelete:async()=>{g(!0);const n=await o.post(`/admin/setting/delete?key=${e().key}`);g(!1),r(n,()=>{u.success(s("global.delete_success")),a()})}}))})}}),t(T,{spacing:"$2",get children(){return[t(p,{colorScheme:"accent",onClick:a,get loading(){return h()||y()},get children(){return s("global.refresh")}}),t(p,{get loading(){return k()},onClick:async()=>{const e=await S();r(e,()=>u.success(s("global.save_success")))},get children(){return s("global.save")}})]}})]}})};export{j 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.