import{_ as B}from"./index.461f83d2.js";import{D,F as E,J as g,w as h}from"./element-plus.ff90c99c.js";import{_ as b}from"./picker.6a74a7fe.js";import{a as w,b as y}from"./user.ec828431.js";import{d as n,$ as A,aq as k,o as s,c as V,W as r,Q as e,u as a,a as i,R as x,P as S,U}from"./@vue.f8dfc830.js";import"./index.2c97e227.js";import"./@vueuse.a2e59ee9.js";import"./lodash.2e6f447e.js";import"./@amap.8a62addd.js";import"./axios.075403c9.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.b6f240ee.js";import"./color.35874cfa.js";import"./clone.d8e67888.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.e6aad81b.js";import"./ms.a9ae1d6d.js";import"./@element-plus.0374639c.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";import"./lodash-es.a73406b7.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./index.9321816e.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./index.1419fcf4.js";import"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import"./index.78eedf62.js";import"./index.07d244c2.js";import"./index.vue_vue_type_script_setup_true_lang.ec118b31.js";import"./usePaging.bd7a7dec.js";import"./vue3-video-play.5592bdaa.js";import"./vuedraggable.27808ccd.js";import"./vue.acb25ca3.js";import"./sortablejs.da9c64f1.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),q=n({name:"userSetup"}),qt=n({...q,setup(I){const t=A({default_avatar:""}),p=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),p()}catch(o){console.log("\u4FDD\u5B58=>",o)}};return p(),(o,m)=>{const _=b,u=D,c=E,d=g,f=h,F=B,C=k("perms");return s(),V("div",N,[r(d,{shadow:"never",class:"!border-none"},{default:e(()=>[j,r(c,{ref:"formRef",model:a(t),"label-width":"120px"},{default:e(()=>[r(u,{label:"\u7528\u6237\u9ED8\u8BA4\u5934\u50CF"},{default:e(()=>[i("div",null,[r(_,{modelValue:a(t).default_avatar,"onUpdate:modelValue":m[0]||(m[0]=v=>a(t).default_avatar=v),limit:1},null,8,["modelValue"])])]),_:1}),r(u,null,{default:e(()=>[R]),_:1})]),_:1},8,["model"])]),_:1}),x((s(),S(F,null,{default:e(()=>[r(f,{type:"primary",onClick:l},{default:e(()=>[U("\u4FDD\u5B58")]),_:1})]),_:1})),[[C,["setting.user.user/setConfig"]]])])}}});export{qt as default};