import{b as p,dc as He,d as se,q as Se,O as Ee,r as oe,P as Te,f as G,T as P,bB as Me,be as te,bk as ze,da as we,Q as O,U as Oe,R as Ue,fM as _e,eT as q,b3 as Fe,ei as ne,J as ae,G as We,df as le,dg as ue,F as ge,K as Ve,dv as qe,bL as ie,dy as Xe,dq as Ge}from"./index-f4658ae7.js";import{T as be}from"./transButton-e61c9322.js";import{C as Je}from"./CopyOutlined-ae720459.js";import{E as Qe}from"./EditOutlined-19d9e427.js";var Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const Ze=Ye;function he(t){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:0,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:g.length,Q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,H=Math.floor((T+N)/2),Y=g.slice(0,H);if(f.textContent=Y,T>=N-1)for(var M=N;M>=T;M-=1){var V=g.slice(0,M);if(f.textContent=V,_()||!V)return M===g.length?{finished:!1,vNode:g}:{finished:!0,vNode:V}}return _()?I(f,g,H,N,H):I(f,g,T,H,Q)}function $(f){var g=f.nodeType;if(g===rt){var T=f.textContent||"",N=document.createTextNode(T);return h(N),I(N,T)}return{finished:!1,vNode:null}}return k.some(function(f){var g=$(f),T=g.finished,N=g.vNode;return N&&L.push(N),T}),{content:L,text:w.innerHTML,ellipsis:!0}};var ct=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(t);l1&&X,F=m,Ae;if(B&&i.isEllipsis&&!i.expanded&&!X){var me=pe.title,W=me||"";!me&&(typeof m=="string"||typeof m=="number")&&(W=String(m)),W=W==null?void 0:W.slice(String(i.ellipsisContent||"").length),F=p(ge,null,[Ve(i.ellipsisContent),p("span",{title:W,"aria-hidden":"true"},[xe]),ve])}else F=p(ge,null,[m,ve]);F=H(e,F);var Le=ee&&B&&i.isEllipsis&&!i.expanded&&!X,Ke=n.ellipsisTooltip?n.ellipsisTooltip():ee;return p(qe,{onResize:T,disabled:!B},{default:function(){return[p(pt,Oe({ref:y,class:[(S={},P(S,"".concat(v.value,"-").concat(z),z),P(S,"".concat(v.value,"-disabled"),U),P(S,"".concat(v.value,"-ellipsis"),B),P(S,"".concat(v.value,"-single-line"),B===1&&!i.isEllipsis),P(S,"".concat(v.value,"-ellipsis-single-line"),$e),P(S,"".concat(v.value,"-ellipsis-multiple-line"),ye),S),A],style:O(O({},fe),{WebkitLineClamp:ye?B:void 0}),"aria-label":Ae,direction:b.value,onClick:E.indexOf("text")!==-1?D:function(){}},De),{default:function(){return[Le?p(ie,{title:ee===!0?m:Ke},{default:function(){return[p("span",null,[F])]}}):F,de()]}})]}})}},null)}}});const Et=St;var Tt=function(){return O(O({},ue(ke(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}})},J=function(e,r){var n=r.slots,l=r.attrs,s=e.ellipsis;le(q(s)!=="object"||!s||!("expandable"in s)&&!("rows"in s),"Typography.Text","`ellipsis` do not support `expandable` or `rows` props.");var c=O(O(O({},e),{ellipsis:s&&q(s)==="object"?ue(s,["expandable","rows"]):s,component:"span"}),l);return p(Et,c,n)};J.displayName="ATypographyText";J.inheritAttrs=!1;J.props=Tt();const Rt=J;export{Et as B,Rt as T,pt as a,ke as b};