"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("../../../config-provider/index.js");const i=require("../../../config-provider/hooks/use-token.js"),r=require("../../../config-provider/hooks/use-locale.js");function f(){const o=t.ref(0),n=e=>{o.value=e};return[t.defineComponent({props:{title:{type:null,default:null},maxCount:{type:Number,required:!0},isShowDefaultSuffix:{type:Boolean,default:!0}},setup(e,{slots:l}){const{t:u}=r.useLocale(),{token:a}=i.useToken();return()=>t.createVNode("div",null,[e.title,l.default?l.default({maxCount:e.maxCount,count:o.value}):e.isShowDefaultSuffix&&t.createVNode("span",{style:{color:a.value?.textColor3,fontSize:"12px",fontWeight:"normal",marginLeft:"12px"}},[isFinite(e.maxCount)?u("ap.apTableModal.titleSuffixOne",{maxCount:e.maxCount}):"",u("ap.apTableModal.titleSuffixTwo"),t.createVNode("span",{style:{color:a.value?.colorPrimary}},[o.value]),u("ap.apTableModal.titleSuffixThree")])])}}),{setCount:n}]}exports.useModalTitle=f;
