import{_ as C}from"./index-BwK8zDrs.js";import{B as k,C as y,H as O,D as j,h as B}from"./element-plus-z3MwpXC9.js";import{_ as E}from"./picker-Cx07Sp9S.js";import{a as h,b as D}from"./website-1s5vKmBb.js";import{u as L}from"./index-DXEGVToZ.js";import{d as g,r as M,Z as S,an as U,o as u,c as G,V as t,M as i,a as m,u as r,O as I,L as N,S as P}from"./@vue-TMcuEboY.js";import"./lodash-es-R-kYiKr_.js";import"./async-validator-DKvM95Vc.js";import"./@element-plus-DRBc1Xzw.js";import"./dayjs-CMfar2R3.js";import"./balanced-match-mNcR6oh4.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@popperjs-D9SI2xQl.js";import"./index-CdmO5-Ss.js";import"./index-CUrZWbP0.js";import"./index.vue_vue_type_script_setup_true_lang-Bd2lff9j.js";import"./index-BhjDDGVa.js";import"./index-DywnEBie.js";import"./index.vue_vue_type_script_setup_true_lang-CMdP8z-B.js";import"./@vueuse-BQYVjZ5N.js";import"./usePaging-DFi_nJOG.js";import"./vue3-video-play-xg7gp0Bu.js";import"./vuedraggable-OYPBN08G.js";import"./vue-CHxGqOme.js";import"./sortablejs-DdgKbxid.js";import"./nprogress-Cgf5DU8x.js";import"./vue-router-D4MxfuQi.js";import"./pinia-ebUeA1L2.js";import"./axios-C-n2IhIP.js";import"./lodash-BtPWuHkK.js";import"./css-color-function-rJvg8h-6.js";import"./color-B0v57BL7.js";import"./clone-CuIhj1wH.js";import"./color-convert-BGgJB5UM.js";import"./color-name-BQ5IbGbl.js";import"./color-string-BhgG7-8u.js";import"./ms-CzQ2E3wO.js";import"./vue-clipboard3-8CNoFg4V.js";import"./clipboard-Dch_ozqB.js";import"./echarts-BR_QmBtV.js";import"./tslib-BDyQ-Jie.js";import"./zrender-B-CeXLwU.js";import"./highlight.js-D5uP1KGk.js";import"./@highlightjs-KJi31KWJ.js";const W={class:"website-information"},F={class:"w-80"},R=g({name:"webInformation"}),Ue=g({...R,setup(A){const p=M(),_=L(),o=S({name:"",web_favicon:"",web_logo:"",login_image:"",h5_favicon:"",shop_name:"",shop_logo:"",pc_logo:"",pc_title:"",pc_desc:"",pc_ico:"",pc_keywords:""}),c={name:[{required:!0,message:"请输入网站名称",trigger:["blur"]}],web_favicon:[{required:!0,message:"请选择网站图标",trigger:["change"]}],web_logo:[{required:!0,message:"请选择网站logo",trigger:["change"]}],login_image:[{required:!0,message:"请选择登录页广告图",trigger:["change"]}],shop_name:[{required:!0,message:"请输入店铺/商城名称",trigger:["blur"]}],shop_logo:[{required:!0,message:"请选择商城LOGO",trigger:["change"]}],pc_logo:[{required:!0,message:"请选择PC端LOGO",trigger:["change"]}],pc_title:[{required:!0,message:"请输入PC端网站标题",trigger:["blur"]}],pc_ico:[{required:!0,message:"请选择PC端网站图标",trigger:["change"]}]},d=async()=>{const a=await h();for(const e in o)o[e]=a[e]},f=async()=>{var a;await((a=p.value)==null?void 0:a.validate()),await D(o),_.getConfig(),d()};return d(),(a,e)=>{const b=k,s=y,n=E,w=O,v=j,V=B,q=C,x=U("perms");return u(),G("div",W,[t(v,{ref_key:"formRef",ref:p,rules:c,class:"ls-form",model:r(o),"label-width":"120px","scroll-to-error":""},{default:i(()=>[t(w,{shadow:"never",class:"!border-none"},{default:i(()=>[e[7]||(e[7]=m("div",{class:"text-xl font-medium mb-[20px]"},"后台设置",-1)),t(s,{label:"网站名称",prop:"name"},{default:i(()=>[m("div",F,[t(b,{modelValue:r(o).name,"onUpdate:modelValue":e[0]||(e[0]=l=>r(o).name=l),modelModifiers:{trim:!0},placeholder:"请输入网站名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),t(s,{label:"网站图标",prop:"web_favicon",required:""},{default:i(()=>[m("div",null,[t(n,{modelValue:r(o).web_favicon,"onUpdate:modelValue":e[1]||(e[1]=l=>r(o).web_favicon=l),limit:1},null,8,["modelValue"]),e[4]||(e[4]=m("div",{class:"form-tips"},"建议尺寸：100*100像素，支持jpg，jpeg，png格式",-1))])]),_:1}),t(s,{label:"网站LOGO",prop:"web_logo",required:""},{default:i(()=>[m("div",null,[t(n,{modelValue:r(o).web_logo,"onUpdate:modelValue":e[2]||(e[2]=l=>r(o).web_logo=l),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),e[5]||(e[5]=m("div",{class:"form-tips"},"建议尺寸：100*100像素，支持jpg，jpeg，png格式",-1))])]),_:1}),t(s,{label:"登录页广告图",prop:"login_image",required:""},{default:i(()=>[m("div",null,[t(n,{modelValue:r(o).login_image,"onUpdate:modelValue":e[3]||(e[3]=l=>r(o).login_image=l),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),e[6]||(e[6]=m("div",{class:"form-tips"},"建议尺寸：100*100像素，支持jpg，jpeg，png格式",-1))])]),_:1})]),_:1})]),_:1},8,["model"]),I((u(),N(q,null,{default:i(()=>[t(V,{type:"primary",onClick:f},{default:i(()=>e[8]||(e[8]=[P("保存")])),_:1})]),_:1})),[[x,["setting.web.web_setting/setWebsite"]]])])}}});export{Ue as default};
