import{_ as U}from"./index-BwK8zDrs.js";import{B as x,C as F,h as N,D as I,H as L}from"./element-plus-z3MwpXC9.js";import{f as S,b as $}from"./index-DXEGVToZ.js";import{_ as A}from"./index-BhjDDGVa.js";import{g as H,s as M}from"./website-1s5vKmBb.js";import{d as h,r as O,an as P,o as i,c as u,V as e,M as t,a as l,U as T,aa as j,u as f,L as v,S as g,O as q}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"./nprogress-Cgf5DU8x.js";import"./vue-router-D4MxfuQi.js";import"./pinia-ebUeA1L2.js";import"./axios-C-n2IhIP.js";import"./lodash-BtPWuHkK.js";import"./@vueuse-BQYVjZ5N.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 z={class:"website-filing"},G={class:"py-4 bg-fill-lighter"},J={class:"w-80"},K={class:"w-80"},Q=h({name:"webFilling"}),Fe=h({...Q,setup(R){const n=O([{key:"",value:""}]),p=async()=>{const s=await H();s.length&&(n.value=s)},w=()=>{n.value.push({key:"",value:""})},b=s=>{if(n.value.length<=1)return S.msgError("至少保留一个");n.value.splice(s,1)},y=async()=>{await M({config:n.value}),p()};return p(),(s,o)=>{const m=x,_=F,k=A,V=$,c=N,C=I,E=L,B=U,D=P("perms");return i(),u("div",z,[e(E,{shadow:"never",class:"!border-none"},{default:t(()=>[o[2]||(o[2]=l("div",{class:"mb-5"},"站点底部版权备案信息设置",-1)),e(C,{ref:"form",class:"ls-form","label-width":"100px"},{default:t(()=>[(i(!0),u(T,null,j(f(n),(a,d)=>(i(),v(k,{class:"mb-4",key:d,"show-close":f(n).length>1,onClose:r=>b(d)},{default:t(()=>[l("div",G,[e(_,{label:"显示名称",prop:"icp_link"},{default:t(()=>[l("div",J,[l("div",null,[e(m,{modelValue:a.key,"onUpdate:modelValue":r=>a.key=r,placeholder:"请输入名称"},null,8,["modelValue","onUpdate:modelValue"])])])]),_:2},1024),e(_,{label:"跳转链接",prop:"icp_link"},{default:t(()=>[l("div",K,[l("div",null,[e(m,{modelValue:a.value,"onUpdate:modelValue":r=>a.value=r,placeholder:"请输入链接，例如：http://www.beian.gov.cn"},null,8,["modelValue","onUpdate:modelValue"])]),o[0]||(o[0]=l("div",{class:"form-tips"},"跳转链接不设置，则不跳转",-1))])]),_:2},1024)])]),_:2},1032,["show-close","onClose"]))),128)),l("div",null,[e(c,{type:"primary",onClick:w},{default:t(()=>[e(V,{name:"el-icon-Plus"}),o[1]||(o[1]=g(" 添加 "))]),_:1})])]),_:1},512)]),_:1}),q((i(),v(B,null,{default:t(()=>[e(c,{type:"primary",onClick:y},{default:t(()=>o[3]||(o[3]=[g("保存")])),_:1})]),_:1})),[[D,["setting.web.web_setting/setCopyright"]]])])}}});export{Fe as default};
