import{g as p,N as be,bP as ze,B as m,D as Ae,d as oe,a4 as Me,a3 as he,m as te,k as ne,T as ve,y as Ce,z as U,bQ as je,H as xe,J as X,ab as Le,as as We,bf as Q,bR as Ue,p as ce,bi as de,F as ue,aS as Fe}from"./app-D7zH3Nl5.js";import{T as pe}from"./transButton--XrRgMTg.js";import{K as G,w as Y,u as Ve,q as Se,_ as Z,o as Ke,R as Xe}from"./useFlexGapSupport-CpBR-RD-.js";import{i as qe,_ as Je,s as Qe,C as Ge}from"./TextArea-C1mL3q5m.js";import{o as Ee}from"./index-Cv7zOydE.js";import{E as Ye}from"./EditOutlined-Corvrvzt.js";var Ze={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"};function fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){et(e,r,n[r])})}return e}function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ie=function(t,n){var o=fe({},t,n.attrs);return p(be,fe({},o,{icon:Ze}),null)};ie.displayName="EnterOutlined";ie.inheritAttrs=!1;const tt=(e,t,n,o)=>{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:u}=o;return{marginBottom:r,color:n,fontWeight:u,fontSize:e,lineHeight:t}},nt=e=>{const t=[1,2,3,4,5],n={};return t.forEach(o=>{n[`
      h${o}&,
      div&-h${o},
      div&-h${o} > textarea,
      h${o}
    `]=tt(e[`fontSizeHeading${o}`],e[`lineHeightHeading${o}`],e.colorTextHeading,e)}),n},ot=e=>{const{componentCls:t}=e;return{"a&, a":m(m({},Ee(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},it=()=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ze[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),lt=e=>{const{componentCls:t}=e,o=qe(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-o,marginBottom:`calc(1em - ${o}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},rt=e=>({"&-copy-success":{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}}}),at=()=>({"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),st=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:m(m(m(m(m(m(m(m(m({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},nt(e)),{[`
      & + h1${t},
      & + h2${t},
      & + h3${t},
      & + h4${t},
      & + h5${t}
      `]:{marginTop:n},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:n}}}),it()),ot(e)),{[`
        ${t}-expand,
        ${t}-edit,
        ${t}-copy
      `]:m(m({},Ee(e)),{marginInlineStart:e.marginXXS})}),lt(e)),rt(e)),at()),{"&-rtl":{direction:"rtl"}})}},we=Ae("Typography",e=>[st(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),ct=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),dt=oe({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:ct(),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:u}=Me(e),s=he({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});te(()=>e.value,f=>{s.current=f});const l=ne();ve(()=>{var f;if(l.value){const c=(f=l.value)===null||f===void 0?void 0:f.resizableTextArea,b=c==null?void 0:c.textArea;b.focus();const{length:y}=b.value;b.setSelectionRange(y,y)}});function h(f){l.value=f}function x(f){let{target:{value:c}}=f;s.current=c.replace(/[\r\n]/g,""),n("change",s.current)}function g(){s.inComposition=!0}function O(){s.inComposition=!1}function B(f){const{keyCode:c}=f;c===G.ENTER&&f.preventDefault(),!s.inComposition&&(s.lastKeyCode=c)}function T(f){const{keyCode:c,ctrlKey:b,altKey:y,metaKey:E,shiftKey:k}=f;s.lastKeyCode===c&&!s.inComposition&&!b&&!y&&!E&&!k&&(c===G.ENTER?($(),n("end")):c===G.ESC&&(s.current=e.originContent,n("cancel")))}function N(){$()}function $(){n("save",s.current.trim())}const[j,_]=we(u);return()=>{const f=Ce({[`${u.value}`]:!0,[`${u.value}-edit-content`]:!0,[`${u.value}-rtl`]:e.direction==="rtl",[e.component?`${u.value}-${e.component}`:""]:!0},r.class,_.value);return j(p("div",U(U({},r),{},{class:f}),[p(Je,{ref:h,maxlength:e.maxlength,value:s.current,onChange:x,onKeydown:B,onKeyup:T,onCompositionstart:g,onCompositionend:O,onBlur:N,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):p(ie,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),ut=3,pt=8;let S;const ee={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function Te(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),o=Qe(n);e.setAttribute("style",o),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function ft(e){const t=document.createElement("div");Te(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}const gt=(e,t,n,o,r)=>{S||(S=document.createElement("div"),S.setAttribute("aria-hidden","true"),document.body.appendChild(S));const{rows:u,suffix:s=""}=t,l=ft(e),h=Math.round(l*u*100)/100;Te(S,e);const x=je({render(){return p("div",{style:ee},[p("span",{style:ee},[n,s]),p("span",{style:ee},[o])])}});x.mount(S);function g(){return Math.round(S.getBoundingClientRect().height*100)/100-.1<=h}if(g())return x.unmount(),{content:n,text:S.innerHTML,ellipsis:!1};const O=Array.prototype.slice.apply(S.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(c=>{let{nodeType:b,data:y}=c;return b!==pt&&y!==""}),B=Array.prototype.slice.apply(S.childNodes[0].childNodes[1].cloneNode(!0).childNodes);x.unmount();const T=[];S.innerHTML="";const N=document.createElement("span");S.appendChild(N);const $=document.createTextNode(r+s);N.appendChild($),B.forEach(c=>{S.appendChild(c)});function j(c){N.insertBefore(c,$)}function _(c,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:b.length,k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const R=Math.floor((y+E)/2),q=b.slice(0,R);if(c.textContent=q,y>=E-1)for(let P=E;P>=y;P-=1){const L=b.slice(0,P);if(c.textContent=L,g()||!L)return P===b.length?{finished:!1,vNode:b}:{finished:!0,vNode:L}}return g()?_(c,b,R,E,R):_(c,b,y,R,k)}function f(c){if(c.nodeType===ut){const y=c.textContent||"",E=document.createTextNode(y);return j(E),_(E,y)}return{finished:!1,vNode:null}}return O.some(c=>{const{finished:b,vNode:y}=f(c);return y&&T.push(y),b}),{content:T,text:S.innerHTML,ellipsis:!0}};var mt=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const yt=()=>({prefixCls:String,direction:String,component:String}),bt=oe({name:"ATypography",inheritAttrs:!1,props:yt(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:u}=xe("typography",e),[s,l]=we(r);return()=>{var h;const x=m(m({},e),o),{prefixCls:g,direction:O,component:B="article"}=x,T=mt(x,["prefixCls","direction","component"]);return s(p(B,U(U({},T),{},{class:Ce(r.value,{[`${r.value}-rtl`]:u.value==="rtl"},o.class,l.value)}),{default:()=>[(h=n.default)===null||h===void 0?void 0:h.call(n)]}))}}}),ht=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},ge={"text/plain":"Text","text/html":"Url",default:"Text"},vt="Copy to clipboard: #{key}, Enter";function Ct(e){const t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function xt(e,t){let n,o,r,u,s,l=!1;t||(t={});const h=t.debug||!1;try{if(o=ht(),r=document.createRange(),u=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(g){if(g.stopPropagation(),t.format)if(g.preventDefault(),typeof g.clipboardData>"u"){h&&console.warn("unable to use e.clipboardData"),h&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const O=ge[t.format]||ge.default;window.clipboardData.setData(O,e)}else g.clipboardData.clearData(),g.clipboardData.setData(t.format,e);t.onCopy&&(g.preventDefault(),t.onCopy(g.clipboardData))}),document.body.appendChild(s),r.selectNodeContents(s),u.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(x){h&&console.error("unable to copy using execCommand: ",x),h&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(g){h&&console.error("unable to copy using clipboardData: ",g),h&&console.error("falling back to prompt"),n=Ct("message"in t?t.message:vt),window.prompt(n,e)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(r):u.removeAllRanges()),s&&document.body.removeChild(s),o()}return l}var St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Et(e,r,n[r])})}return e}function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=function(t,n){var o=me({},t,n.attrs);return p(be,me({},o,{icon:St}),null)};le.displayName="CopyOutlined";le.inheritAttrs=!1;var wt=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const Tt=Se("webkitLineClamp"),Ot=Se("textOverflow"),ye="...",$t=()=>({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),Ht=oe({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:$t(),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:u,direction:s}=xe("typography",e),l=he({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),h=ne(),x=ne(),g=X(()=>{const i=e.ellipsis;return i?m({rows:1,expandable:!1},typeof i=="object"?i:null):{}});ve(()=>{l.clientRendered=!0,R()}),Le(()=>{clearTimeout(l.copyId),Y.cancel(l.rafId)}),te([()=>g.value.rows,()=>e.content],()=>{ce(()=>{E()})},{flush:"post",deep:!0}),We(()=>{e.content===void 0&&(de(!e.editable),de(!e.ellipsis))});function O(){var i;return e.ellipsis||e.editable?e.content:(i=Q(h.value))===null||i===void 0?void 0:i.innerText}function B(i){const{onExpand:a}=g.value;l.expanded=!0,a==null||a(i)}function T(i){i.preventDefault(),l.originContent=e.content,y(!0)}function N(i){$(i),y(!1)}function $(i){const{onChange:a}=f.value;i!==e.content&&(r("update:content",i),a==null||a(i))}function j(){var i,a;(a=(i=f.value).onCancel)===null||a===void 0||a.call(i),y(!1)}function _(i){i.preventDefault(),i.stopPropagation();const{copyable:a}=e,d=m({},typeof a=="object"?a:null);d.text===void 0&&(d.text=O()),xt(d.text||""),l.copied=!0,ce(()=>{d.onCopy&&d.onCopy(i),l.copyId=setTimeout(()=>{l.copied=!1},3e3)})}const f=X(()=>{const i=e.editable;return i?m({},typeof i=="object"?i:null):{editing:!1}}),[c,b]=Ve(!1,{value:X(()=>f.value.editing)});function y(i){const{onStart:a}=f.value;i&&a&&a(),b(i)}te(c,i=>{var a;i||(a=x.value)===null||a===void 0||a.focus()},{flush:"post"});function E(i){if(i){const{width:a,height:d}=i;if(!a||!d)return}Y.cancel(l.rafId),l.rafId=Y(()=>{R()})}const k=X(()=>{const{rows:i,expandable:a,suffix:d,onEllipsis:v,tooltip:C}=g.value;return d||C||e.editable||e.copyable||a||v?!1:i===1?Ot:Tt}),R=()=>{const{ellipsisText:i,isEllipsis:a}=l,{rows:d,suffix:v,onEllipsis:C}=g.value;if(!d||d<0||!Q(h.value)||l.expanded||e.content===void 0||k.value)return;const{content:D,text:z,ellipsis:H}=gt(Q(h.value),{rows:d,suffix:v},e.content,re(!0),ye);(i!==z||l.isEllipsis!==H)&&(l.ellipsisText=z,l.ellipsisContent=D,l.isEllipsis=H,a!==H&&C&&C(H))};function q(i,a){let{mark:d,code:v,underline:C,delete:D,strong:z,keyboard:H}=i,W=a;function I(F,w){if(!F)return;const V=function(){return W}();W=p(w,null,{default:()=>[V]})}return I(z,"strong"),I(C,"u"),I(D,"del"),I(v,"code"),I(d,"mark"),I(H,"kbd"),W}function P(i){const{expandable:a,symbol:d}=g.value;if(!a||!i&&(l.expanded||!l.isEllipsis))return null;const v=(n.ellipsisSymbol?n.ellipsisSymbol():d)||l.expandStr;return p("a",{key:"expand",class:`${u.value}-expand`,onClick:B,"aria-label":l.expandStr},[v])}function L(){if(!e.editable)return;const{tooltip:i,triggerType:a=["icon"]}=e.editable,d=n.editableIcon?n.editableIcon():p(Ye,{role:"button"},null),v=n.editableTooltip?n.editableTooltip():l.editStr,C=typeof v=="string"?v:"";return a.indexOf("icon")!==-1?p(Z,{key:"edit",title:i===!1?"":v},{default:()=>[p(pe,{ref:x,class:`${u.value}-edit`,onClick:T,"aria-label":C},{default:()=>[d]})]}):null}function Oe(){if(!e.copyable)return;const{tooltip:i}=e.copyable,a=l.copied?l.copiedStr:l.copyStr,d=n.copyableTooltip?n.copyableTooltip({copied:l.copied}):a,v=typeof d=="string"?d:"",C=l.copied?p(Ge,null,null):p(le,null,null),D=n.copyableIcon?n.copyableIcon({copied:!!l.copied}):C;return p(Z,{key:"copy",title:i===!1?"":d},{default:()=>[p(pe,{class:[`${u.value}-copy`,{[`${u.value}-copy-success`]:l.copied}],onClick:_,"aria-label":v},{default:()=>[D]})]})}function $e(){const{class:i,style:a}=o,{maxlength:d,autoSize:v,onEnd:C}=f.value;return p(dt,{class:i,style:a,prefixCls:u.value,value:e.content,originContent:l.originContent,maxlength:d,autoSize:v,onSave:N,onChange:$,onCancel:j,onEnd:C,direction:s.value,component:e.component},{enterIcon:n.editableEnterIcon})}function re(i){return[P(i),L(),Oe()].filter(a=>a)}return()=>{var i;const{triggerType:a=["icon"]}=f.value,d=e.ellipsis||e.editable?e.content!==void 0?e.content:(i=n.default)===null||i===void 0?void 0:i.call(n):n.default?n.default():e.content;return c.value?$e():p(Ue,{componentName:"Text",children:v=>{const C=m(m({},e),o),{type:D,disabled:z,content:H,class:W,style:I}=C,F=wt(C,["type","disabled","content","class","style"]),{rows:w,suffix:V,tooltip:J}=g.value,{edit:De,copy:Ie,copied:Be,expand:Ne}=v;l.editStr=De,l.copyStr=Ie,l.copiedStr=Be,l.expandStr=Ne;const _e=Ke(F,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),K=k.value,Re=w===1&&K,ae=w&&w>1&&K;let A=d,He;if(w&&l.isEllipsis&&!l.expanded&&!K){const{title:se}=F;let M=se||"";!se&&(typeof d=="string"||typeof d=="number")&&(M=String(d)),M=M==null?void 0:M.slice(String(l.ellipsisContent||"").length),A=p(ue,null,[Fe(l.ellipsisContent),p("span",{title:M,"aria-hidden":"true"},[ye]),V])}else A=p(ue,null,[d,V]);A=q(e,A);const ke=J&&w&&l.isEllipsis&&!l.expanded&&!K,Pe=n.ellipsisTooltip?n.ellipsisTooltip():J;return p(Xe,{onResize:E,disabled:!w},{default:()=>[p(bt,U({ref:h,class:[{[`${u.value}-${D}`]:D,[`${u.value}-disabled`]:z,[`${u.value}-ellipsis`]:w,[`${u.value}-single-line`]:w===1&&!l.isEllipsis,[`${u.value}-ellipsis-single-line`]:Re,[`${u.value}-ellipsis-multiple-line`]:ae},W],style:m(m({},I),{WebkitLineClamp:ae?w:void 0}),"aria-label":He,direction:s.value,onClick:a.indexOf("text")!==-1?T:()=>{}},_e),{default:()=>[ke?p(Z,{title:J===!0?d:Pe},{default:()=>[p("span",null,[A])]}):A,re()]})]})}},null)}}});export{Ht as B,bt as T,$t as b};
