import{_ as b}from"./index.64fe6e0c.js";import{y as A,A as D,B,F as E,u as V}from"./element-plus.33d6376e.js";import{M as k}from"./picker.db5f2f9e.js";import{a as w,b as h}from"./website.240ec80e.js";import{d as y,r as j,$ as x,ad as U,o as s,c as q,U as t,L as u,a as i,M,K as N,S as I}from"./@vue.230e89ba.js";import"./index.80c2a703.js";import"./@vueuse.88988742.js";import"./lodash.b68d77aa.js";import"./axios.2d915936.js";import"./vue-router.c0281831.js";import"./pinia.1d1aade0.js";import"./vue-demi.bfae2336.js";import"./css-color-function.a8f9466d.js";import"./color.903ca10f.js";import"./clone.9d64bb7a.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./@element-plus.739f7923.js";import"./nprogress.a96d99f2.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.b3d01323.js";import"./dayjs.66926594.js";import"./lodash-es.29c53eac.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.4107e0ad.js";import"./index.0e683277.js";import"./usePaging.4b232826.js";import"./index.ed42dcff.js";import"./index.vue_vue_type_script_setup_true_lang.b3f5bb6c.js";import"./vue3-video-play.1b377718.js";import"./vuedraggable.611a2338.js";import"./vue.1b105d76.js";import"./sortablejs.cd7e2c7e.js";const R={class:"website-information"},S={class:"w-80"},W=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),K=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200*200\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),L=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A400*400\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),P=I("\u4FDD\u5B58"),xo=y({__name:"information",setup(T){const n=j(),o=x({name:"",favicon:"",logo:"",backdrop:""}),d={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",trigger:["blur"]}]},p=async()=>{const a=await w();for(const e in o)o[e]=a[e]},F=async()=>{var a;await((a=n.value)==null?void 0:a.validate()),await h(o),p()};return p(),(a,e)=>{const c=A,l=D,m=k,_=B,f=E,g=V,C=b,v=U("perms");return s(),q("div",R,[t(f,{shadow:"never",class:"!border-none"},{default:u(()=>[t(_,{ref_key:"formRef",ref:n,rules:d,model:o,"label-width":"120px"},{default:u(()=>[t(l,{label:"\u7F51\u7AD9\u540D\u79F0",prop:"name"},{default:u(()=>[i("div",S,[t(c,{modelValue:o.name,"onUpdate:modelValue":e[0]||(e[0]=r=>o.name=r),placeholder:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),t(l,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"favicon",required:""},{default:u(()=>[i("div",null,[t(m,{modelValue:o.favicon,"onUpdate:modelValue":e[1]||(e[1]=r=>o.favicon=r),limit:1},null,8,["modelValue"]),W])]),_:1}),t(l,{label:"\u7F51\u7AD9logo",prop:"logo",required:""},{default:u(()=>[i("div",null,[t(m,{modelValue:o.logo,"onUpdate:modelValue":e[2]||(e[2]=r=>o.logo=r),limit:1},null,8,["modelValue"]),K])]),_:1}),t(l,{label:"\u767B\u5F55\u9875\u5E7F\u544A\u56FE",prop:"backdrop",required:""},{default:u(()=>[i("div",null,[t(m,{modelValue:o.backdrop,"onUpdate:modelValue":e[3]||(e[3]=r=>o.backdrop=r),limit:1},null,8,["modelValue"]),L])]),_:1})]),_:1},8,["model"])]),_:1}),M((s(),N(C,null,{default:u(()=>[t(g,{type:"primary",onClick:F},{default:u(()=>[P]),_:1})]),_:1})),[[v,["setting:website:save"]]])])}}});export{xo as default};
