import{_ as v}from"./index.f4793e80.js";import{C as D,D as w,T as V,F as h,w as x}from"./element-plus.681b9893.js";import{M as j}from"./picker.e5caaa2a.js";import{a as q,b as U}from"./website.9b680007.js";import{u as k}from"./index.0c8416f0.js";import{d as g,r as y,Z as M,ap as O,o as _,c as P,U as u,L as r,a as i,u as t,M as L,K as G,R as I}from"./@vue.18505fe0.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.a7179cc9.js";import"./index.aa6e526e.js";import"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import"./index.e954b8f4.js";import"./usePaging.6a6670f9.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";import"./lodash.466e9fe4.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const N={class:"website-information"},R=i("div",{class:"text-xl font-medium mb-[20px]"},"\u540E\u53F0\u8BBE\u7F6E",-1),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),T=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\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Z=i("div",{class:"text-xl font-medium mb-[20px]"},"\u524D\u53F0\u8BBE\u7F6E",-1),z={class:"w-80"},H=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),J=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Q=i("div",{class:"text-xl font-medium mb-[20px]"},"PC\u7AEF\u8BBE\u7F6E",-1),X=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A120*28px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Y={class:"w-80"},$=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),uu={class:"w-80"},eu={class:"w-80"},ou=g({name:"webInformation"}),de=g({...ou,setup(tu){const d=y(),c=k(),e=M({name:"",web_favicon:"",web_logo:"",login_image:"",h5_favicon:"",shop_name:"",shop_logo:"",pc_logo:"",pc_title:"",pc_desc:"",pc_ico:"",pc_keywords:""}),f={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",trigger:["blur"]}],web_favicon:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7AD9\u56FE\u6807",trigger:["change"]}],web_logo:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7AD9logo",trigger:["change"]}],login_image:[{required:!0,message:"\u8BF7\u9009\u62E9\u767B\u5F55\u9875\u5E7F\u544A\u56FE",trigger:["change"]}],shop_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E97\u94FA/\u5546\u57CE\u540D\u79F0",trigger:["blur"]}],shop_logo:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u57CELOGO",trigger:["change"]}],pc_logo:[{required:!0,message:"\u8BF7\u9009\u62E9PC\u7AEFLOGO",trigger:["change"]}],pc_title:[{required:!0,message:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u6807\u9898",trigger:["blur"]}],pc_ico:[{required:!0,message:"\u8BF7\u9009\u62E9PC\u7AEF\u7F51\u7AD9\u56FE\u6807",trigger:["change"]}]},n=async()=>{const s=await q();for(const o in e)e[o]=s[o]},C=async()=>{var s;await((s=d.value)==null?void 0:s.validate()),await U(e),c.getConfig(),n()};return n(),(s,o)=>{const a=D,m=w,p=j,F=V,A=h,E=x,b=v,B=O("perms");return _(),P("div",N,[u(A,{ref_key:"formRef",ref:d,rules:f,class:"ls-form",model:t(e),"label-width":"120px"},{default:r(()=>[u(F,{shadow:"never",class:"!border-none"},{default:r(()=>[R,u(m,{label:"\u7F51\u7AD9\u540D\u79F0",prop:"name"},{default:r(()=>[i("div",S,[u(a,{modelValue:t(e).name,"onUpdate:modelValue":o[0]||(o[0]=l=>t(e).name=l),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),u(m,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:r(()=>[i("div",null,[u(p,{modelValue:t(e).web_favicon,"onUpdate:modelValue":o[1]||(o[1]=l=>t(e).web_favicon=l),limit:1},null,8,["modelValue"]),W])]),_:1}),u(m,{label:"\u7F51\u7AD9LOGO",prop:"web_logo",required:""},{default:r(()=>[i("div",null,[u(p,{modelValue:t(e).web_logo,"onUpdate:modelValue":o[2]||(o[2]=l=>t(e).web_logo=l),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),T])]),_:1}),u(m,{label:"\u767B\u5F55\u9875\u5E7F\u544A\u56FE",prop:"login_image",required:""},{default:r(()=>[i("div",null,[u(p,{modelValue:t(e).login_image,"onUpdate:modelValue":o[3]||(o[3]=l=>t(e).login_image=l),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),K])]),_:1})]),_:1}),u(F,{shadow:"never",class:"!border-none mt-4"},{default:r(()=>[Z,u(m,{label:"\u524D\u53F0\u540D\u79F0",prop:"shop_name"},{default:r(()=>[i("div",z,[u(a,{modelValue:t(e).shop_name,"onUpdate:modelValue":o[4]||(o[4]=l=>t(e).shop_name=l),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u524D\u53F0\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),u(m,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:r(()=>[i("div",null,[u(p,{modelValue:t(e).h5_favicon,"onUpdate:modelValue":o[5]||(o[5]=l=>t(e).h5_favicon=l),limit:1},null,8,["modelValue"]),H])]),_:1}),u(m,{label:"\u524D\u53F0LOGO",prop:"shop_logo"},{default:r(()=>[i("div",null,[u(p,{modelValue:t(e).shop_logo,"onUpdate:modelValue":o[6]||(o[6]=l=>t(e).shop_logo=l),limit:1},null,8,["modelValue"]),J])]),_:1})]),_:1}),u(F,{shadow:"never",class:"!border-none mt-4"},{default:r(()=>[Q,u(m,{label:"PC\u7AEFLOGO",prop:"pc_logo"},{default:r(()=>[i("div",null,[u(p,{modelValue:t(e).pc_logo,"onUpdate:modelValue":o[7]||(o[7]=l=>t(e).pc_logo=l),limit:1},null,8,["modelValue"]),X])]),_:1}),u(m,{label:"\u7F51\u7AD9\u6807\u9898",prop:"pc_title"},{default:r(()=>[i("div",Y,[u(a,{modelValue:t(e).pc_title,"onUpdate:modelValue":o[8]||(o[8]=l=>t(e).pc_title=l),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u6807\u9898",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),u(m,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"pc_ico"},{default:r(()=>[i("div",null,[u(p,{modelValue:t(e).pc_ico,"onUpdate:modelValue":o[9]||(o[9]=l=>t(e).pc_ico=l),limit:1},null,8,["modelValue"]),$])]),_:1}),u(m,{label:"\u7F51\u7AD9\u63CF\u8FF0",prop:"pc_desc"},{default:r(()=>[i("div",uu,[u(a,{modelValue:t(e).pc_desc,"onUpdate:modelValue":o[10]||(o[10]=l=>t(e).pc_desc=l),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u63CF\u8FF0"},null,8,["modelValue"])])]),_:1}),u(m,{label:"\u7F51\u7AD9\u5173\u952E\u8BCD",prop:"pc_keywords"},{default:r(()=>[i("div",eu,[u(a,{modelValue:t(e).pc_keywords,"onUpdate:modelValue":o[11]||(o[11]=l=>t(e).pc_keywords=l),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u5173\u952E\u8BCD"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["model"]),L((_(),G(b,null,{default:r(()=>[u(E,{type:"primary",onClick:C},{default:r(()=>[I("\u4FDD\u5B58")]),_:1})]),_:1})),[[B,["setting.web.web_setting/setWebsite"]]])])}}});export{de as default};