import{d as S,r as f,h as r,c,y as b,z as A,u as e,a as s,e as o,w as n,i as p,A as P,B as _,N as i,I as h,t as g,b as B,F as D,az as E,aA as v,W as I,X as G,Y,cD as Q,cE as X}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css */import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-a631d3b2.js";import"./el-form-item-4ed993c7.js";import{_ as K}from"./index-742b412a.js";/* empty css */import{u as O}from"./diy-06b37a1b.js";const L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAABj1JREFUaEPtmmtsFFUUx/9nditIQaSICiEaRKOGGDU+IOIj6fZBKzQonZaKGCSAEVCJEUw0Jv2AjxCRKPGRRomGAN2dDUaqQLc75QPEBBNtJKKR2IBRgxBEQ6um7O4cM7Pbfc5s78zsLnRlP27uOff/23POvWfvvYSL6MPMhBp5PRiPgqQ9pAZeK7Q8KrRDp/5Yli/DWfoErC1O+vB651Co87BTn2Z2FwUwNy2fgMFznwLwZYiUaAmFlZ1lBcyN8rUY4r1g3JkDVm7AXPvYTdAi3WCeYRrFcgJmX+s9YO0LgKdYpmy5ALNPngcgCObKFCwNgngbGM8mvysHYK5pfgIaPgLgTYIRTsNDjYhJU8GxLjfAvGDVOPz711NgbQhV9CEpyvn0DCrpKs2+5g1gvAEgbV7qRwXmUbfyE/ta57sB5hp5IhghMN+bgNxCvcHnSw4cbyhatoD5uYx6JfoG8DaSuuuU/r0bYANW424As1OZQz2kKnUlBTZtKHQFRD2onLCI9mwbGBbkFNgksrrLKIgWkKrsLxmwZUMB2okbJy2jjo5IuhgnwKaR1WElaQmFA4HsHaBoNWzZUBC9hXDgBSLibDF2ge3CGolVyLYtmZrmDQVDkjZQOPCm1Zx2gJ3AFgXYvKGgCIifJDW4I98PLArsFLbgwJYNhUdaRD3+0EjZJAJsrPi+lgMAP5Tmz7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X8MsAbM8uNjqHCU0/7O0+kf+8E2C500YHjdd2yHMwdGVucSYPiFNgSmvAiqcFNGUub+BrsbqQBg5gfjHFp21ZGg+IG2ByaeqlXyXiSXJIIJ9O7pnUOOPY5GJPToM+DaKl+qe0WOLFlbQaz/vqOQbSSVEV/5piazl3c7FtzXdstiEb0x2I5DQrYc9zN08PkD1vfNgtRLUKq/1i2wpJGOCnIskGhQ2C+PymyWFct9uPk3sKyQUl3XU7ARr1ZNigJ6nIDNqCNBuW7d8BYk5M35Qicv0FBG6nBTvcFdAFX6XziMxsUisCLmymkHC9bYCPF6xbfh1i0CR7vHgp1fllIWN3XBdmWCg1hx99/11n26ChtcvsAAAAASUVORK5CYII=",T={class:"content-wrap"},z={class:"edit-attr-item-wrap"},M=s("h3",{class:"mb-[10px]"},"公告图标",-1),R={class:"px-[22px] pb-[20px]"},W={key:0,class:"flex items-center flex-wrap py-[8px] px-[10px] bg-[#f4f3f7] rounded"},j={key:1},q={class:"edit-attr-item-wrap"},J=s("h3",{class:"mb-[10px]"},"公告内容",-1),Z={class:"style-wrap"},H={class:"edit-attr-item-wrap"},$={class:"mb-[10px]"},ee=S({__name:"edit-notice",setup(te,{expose:x}){const t=O();return t.editComponent.ignore=[],f(!1),f(t.editComponent.style),x({}),(y,l)=>{const d=E,u=v,F=K,V=I,m=G,U=k,C=Y,w=Q,N=X;return r(),c(D,null,[b(s("div",T,[s("div",z,[M,s("div",R,[o(u,{modelValue:e(t).editComponent.iconType,"onUpdate:modelValue":l[0]||(l[0]=a=>e(t).editComponent.iconType=a),class:"mb-[18px]"},{default:n(()=>[o(d,{label:"system"},{default:n(()=>[p("系统图标")]),_:1}),o(d,{label:"custom"},{default:n(()=>[p("自定义图标")]),_:1})]),_:1},8,["modelValue"]),e(t).editComponent.iconType=="system"?(r(),c("div",W,[s("img",{src:L,class:P(["h-[28px] px-[10px] py-[5px] mr-[10px] rounded cursor-pointer",{"border-[1px] border-solid border-[var(--el-color-primary)]":e(t).editComponent.systemIcon=="style_01"}]),onClick:l[1]||(l[1]=a=>e(t).editComponent.systemIcon="style_01"),alt:""},null,2)])):_("",!0),e(t).editComponent.iconType=="custom"?(r(),c("div",j,[o(F,{modelValue:e(t).editComponent.imageUrl,"onUpdate:modelValue":l[2]||(l[2]=a=>e(t).editComponent.imageUrl=a),limit:1},null,8,["modelValue"])])):_("",!0)])]),s("div",q,[J,o(C,{"label-width":"80px",class:"px-[10px]"},{default:n(()=>[o(m,{label:e(i)("title")},{default:n(()=>[o(V,{modelValue:e(t).editComponent.list.text,"onUpdate:modelValue":l[3]||(l[3]=a=>e(t).editComponent.list.text=a),placeholder:e(i)("titlePlaceholder"),clearable:"","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(m,{label:"点击类型"},{default:n(()=>[o(u,{modelValue:e(t).editComponent.showType,"onUpdate:modelValue":l[4]||(l[4]=a=>e(t).editComponent.showType=a),class:"mb-[18px]"},{default:n(()=>[o(d,{label:"popup"},{default:n(()=>[p("弹出公告内容")]),_:1}),o(d,{label:"link"},{default:n(()=>[p("跳出链接")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(t).editComponent.showType=="link"?(r(),h(m,{key:0,label:e(i)("link"),class:"!mb-0"},{default:n(()=>[o(U,{modelValue:e(t).editComponent.list.link,"onUpdate:modelValue":l[5]||(l[5]=a=>e(t).editComponent.list.link=a)},null,8,["modelValue"])]),_:1},8,["label"])):_("",!0)]),_:1})])],512),[[A,e(t).editTab=="content"]]),b(s("div",Z,[s("div",H,[s("h3",$,g(e(i)("titleStyle")),1),o(C,{"label-width":"80px",class:"px-[10px]"},{default:n(()=>[o(m,{label:e(i)("textFontSize")},{default:n(()=>[o(w,{modelValue:e(t).editComponent.fontSize,"onUpdate:modelValue":l[6]||(l[6]=a=>e(t).editComponent.fontSize=a),"show-input":"",size:"small",class:"ml-[10px] article-slider",min:12,max:20},null,8,["modelValue"])]),_:1},8,["label"]),o(m,{label:e(i)("textFontWeight")},{default:n(()=>[o(u,{modelValue:e(t).editComponent.fontWeight,"onUpdate:modelValue":l[7]||(l[7]=a=>e(t).editComponent.fontWeight=a)},{default:n(()=>[o(d,{label:"normal"},{default:n(()=>[p(g(e(i)("fontWeightNormal")),1)]),_:1}),o(d,{label:"bold"},{default:n(()=>[p(g(e(i)("fontWeightBold")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),o(m,{label:e(i)("textColor")},{default:n(()=>[o(N,{modelValue:e(t).editComponent.textColor,"onUpdate:modelValue":l[8]||(l[8]=a=>e(t).editComponent.textColor=a)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),B(y.$slots,"style")],512),[[A,e(t).editTab=="style"]])],64)}}});const Ce=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"}));export{Ce as _};