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{bh as f}from"./vendor-element-C6D3GHVC.js";import{i as l,u as i,A as p}from"./index-BhVZTysP.js";import{t as d,br as u,c,v as m,I as b,u as v,x as y,O as g,F as O,B as j,a1 as x}from"./vendor-core-B-NFAs71.js";const h=d((w=((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"}),z={__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:O(()=>[...a[0]||(a[0]=[j("div",{style:{height:"100vh"}},null,-1)])]),_:1},8,["content","font","rotate","gap","offset"])],4)):b("",!0)}}},t(w,a(z))));var w,z;export{h as default};
