"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@ant-design/icons-vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const f=require("./style/index.js"),m=require("../../config-provider/hooks/use-namespace.js"),g=require("../../config-provider/hooks/use-global-config.js"),h=e.defineComponent({name:"ApTitle",__name:"ApTitle",props:{title:{default:""},helpMessage:{default:""},helpIconColor:{default:""},placement:{default:"top"},trigger:{default:"hover"},uiMode:{}},setup(t){const o=t,{b:n,e:r,m:u}=m.useNamespace("ap-title"),a=f.default("ap-title"),s=g.useGlobalConfig("apTitle",{uiMode:"aplus"}),i=e.computed(()=>{const l=o.uiMode||s.value?.uiMode;return l==="aplus"?"user":l}),c=e.computed(()=>o.helpIconColor?{color:`${o.helpIconColor}`}:{});return(l,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n)(),`${e.unref(u)(i.value)}`,e.unref(a)])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("prefix"))},[l.$slots.prefix?e.renderSlot(l.$slots,"prefix",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString(t.title),1),t.helpMessage?(e.openBlock(),e.createBlock(e.unref(p.Tooltip),{key:0,title:t.helpMessage,placement:t.placement,trigger:t.trigger},{default:e.withCtx(()=>[e.createVNode(e.unref(d.QuestionCircleOutlined),{style:e.normalizeStyle(c.value)},null,8,["style"])]),_:1},8,["title","placement","trigger"])):e.createCommentVNode("",!0)],64))],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("suffix"))},[e.renderSlot(l.$slots,"suffix")],2)],2))}});exports.default=h;
