"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../utils/json2css.js"),u=t.defineComponent({name:"zv-text-title"}),d=t.defineComponent({...u,props:{basicOption:{},sources:{}},setup(c){const i=()=>({rendererDomStyle:e=>{r.autoInstallFont(e.fontFamily);const n={};e.color&&e.color.includes("linear-gradient")&&(n.backgroundImage=e.color,n["-webkit-background-clip"]="text",n.color="transparent");const a={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...r.jsonToCssStyle(e),...n,...a,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}}}),{rendererDomStyle:l}=i();return(o,e)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.basicOption.type),{class:"zerov-widget-title",style:t.normalizeStyle(t.unref(l)(o.basicOption.css)),ztitle:o.basicOption.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.basicOption.value),1)]),_:1},8,["style","ztitle"]))}});exports.default=d;
