var e=Object.defineProperty,t=Object.defineProperties,a=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,s=(t,a,o)=>a in t?e(t,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[a]=o;import{b3 as f}from"./vendor-element-DupX9wXy.js";import{l,u as i,A as p}from"./index-BkDr3sJj.js";import{q as d,bs as u,c,t as m,H as b,u as v,v as y,M as g,E as j,A as O,a0 as x}from"./vendor-core-Di0OO4oJ.js";const w=d((z=((e,t)=>{for(var a in t||(t={}))r.call(t,a)&&s(e,a,t[a]);if(o)for(var a of o(t))n.call(t,a)&&s(e,a,t[a]);return e})({},{name:"ArtWatermark"}),h={__name:"index",props:{content:{default:""},visible:{type:Boolean,default:!1},fontSize:{default:16},fontColor:{default:"rgba(128, 128, 128, 0.2)"},rotate:{default:-22},gapX:{default:100},gapY:{default:100},offsetX:{default:50},offsetY:{default:50},zIndex:{default:3100}},setup(e){const t=l(),a=i(),{watermarkVisible:o}=u(t),{siteName:r}=u(a),n=e,s=c(()=>String(n.content||"").trim()||r.value||p.systemInfo.name);return(t,a)=>{const r=f;return v(o)?(y(),m("div",{key:0,class:"fixed left-0 top-0 h-screen w-screen pointer-events-none",style:x({zIndex:e.zIndex})},[g(r,{content:v(s),font:{fontSize:e.fontSize,color:e.fontColor},rotate:e.rotate,gap:[e.gapX,e.gapY],offset:[e.offsetX,e.offsetY]},{default:j(()=>[...a[0]||(a[0]=[O("div",{style:{height:"100vh"}},null,-1)])]),_:1},8,["content","font","rotate","gap","offset"])],4)):b("",!0)}}},t(z,a(h))));var z,h;export{w as default};
