import{_ as B}from"./index.d5f74f82.js";import{F as D,G as E,J as g,w as h}from"./element-plus.6b125791.js";import{_ as b}from"./picker.4479ef05.js";import{a as w,b as y}from"./user.2a67dff9.js";import{d as n,$ as A,ap as k,o as s,c as V,W as e,Q as r,u as a,a as i,R as x,P as S,U}from"./@vue.340249d8.js";import"./index.8eb121a3.js";import"./@vueuse.e3650918.js";import"./lodash.ab1d8f92.js";import"./axios.ebd1d4d0.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.7a4c1284.js";import"./color.10b8b3bd.js";import"./clone.623e4e2d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./@element-plus.558a564d.js";import"./nprogress.518a19eb.js";import"./vue-clipboard3.c098b37d.js";import"./clipboard.a67a48a7.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./lodash-es.edba6135.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.6b964ca4.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.7acb2098.js";import"./index.fa70a7ab.js";import"./index.vue_vue_type_script_setup_true_lang.305bb481.js";import"./index.81fe361e.js";import"./index.f7872853.js";import"./index.vue_vue_type_script_setup_true_lang.236700ef.js";import"./usePaging.fff444fa.js";import"./vue3-video-play.fb56db8a.js";import"./vuedraggable.d9ca47e8.js";import"./vue.46727b3c.js";import"./sortablejs.ae45557f.js";const N={class:"user-setup"},j=i("div",{class:"font-medium mb-7"},"\u57FA\u672C\u8BBE\u7F6E",-1),R=i("div",null,[i("div",{class:"form-tips"}," \u7528\u6237\u6CE8\u518C\u65F6\u7ED9\u7684\u9ED8\u8BA4\u5934\u50CF\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A400*400\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F ")],-1),G=n({name:"userSetup"}),St=n({...G,setup(I){const t=A({default_avatar:""}),u=async()=>{try{const o=await w();for(const m in t)t[m]=o[m]}catch(o){console.log("\u83B7\u53D6=>",o)}},l=async()=>{try{await y(t),u()}catch(o){console.log("\u4FDD\u5B58=>",o)}};return u(),(o,m)=>{const _=b,p=D,c=E,d=g,f=h,F=B,C=k("perms");return s(),V("div",N,[e(d,{shadow:"never",class:"!border-none"},{default:r(()=>[j,e(c,{ref:"formRef",model:a(t),"label-width":"120px"},{default:r(()=>[e(p,{label:"\u7528\u6237\u9ED8\u8BA4\u5934\u50CF"},{default:r(()=>[i("div",null,[e(_,{modelValue:a(t).default_avatar,"onUpdate:modelValue":m[0]||(m[0]=v=>a(t).default_avatar=v),limit:1},null,8,["modelValue"])])]),_:1}),e(p,null,{default:r(()=>[R]),_:1})]),_:1},8,["model"])]),_:1}),x((s(),S(F,null,{default:r(()=>[e(f,{type:"primary",onClick:l},{default:r(()=>[U("\u4FDD\u5B58")]),_:1})]),_:1})),[[C,["setting.user.user/setConfig"]]])])}}});export{St as default};