Files
xin-procurement/public/assets/typography-C81dpVAv.js
2026-10-30 10:51:09 +08:00

16 lines
18 KiB
JavaScript

import{o as e}from"./request-xrnk7ZJV.js";import{$n as t,$t as n,Ar as r,Ct as i,Er as a,Et as o,Gn as s,Hn as c,Ln as l,Or as u,Pr as d,Un as f,Wn as p,Zn as m,cr as h,jr as g,kt as _,mn as v,mr as y,nn as b,nr as x,nt as S,pt as ee,qt as C,rr as w,st as T,wr as te,wt as E}from"./jsx-runtime-OfKoVykY.js";import{t as D}from"./tooltip-DI_m69zk.js";import{h as ne}from"./style-CSZsuTOx.js";import{i as O,n as re,r as k,t as ie}from"./CopyOutlined-Bb8Wrh2R.js";var A=e=>{if(r()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},ae=(e,t)=>{if(!A(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function oe(e,t){return!Array.isArray(e)&&t!==void 0?ae(e,t):A(e)}var j=e(d()),se=(e,t={})=>!x(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],M=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},N=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
h${t}&,
div&-h${t},
div&-h${t} > textarea,
h${t}
`]=M(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},P=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...n(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},ce=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`${l(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`${l(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:v[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"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:`${l(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,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},table:{width:`100%`,textAlign:`start`,borderCollapse:`separate`,borderSpacing:0,marginBlock:`1em`,"th, td":{padding:l(e.padding),overflowWrap:`break-word`,borderBottom:`${l(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:`start`,position:`relative`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:e.colorSplit,transform:`translateY(-50%)`,content:`""`}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),le=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:400,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},[`&${t}-edit-content textarea`]:{margin:`0!important`,fontSize:`inherit`,lineHeight:`inherit`,fontFamily:`inherit`,fontWeight:`inherit`,MozTransition:`none`,height:`1em`}}}},F=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),I=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{...b,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),L=C(`Typography`,e=>{let{componentCls:t,titleMarginTop:r}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...N(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:r},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:r}},...ce(e),...P(e),[`${t}-actions`]:{display:`inline`},[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
`]:{...n(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy:not(${t}-copy-icon-only)
`]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...le(e),...F(e),...I(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),ue=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,classNames:a,styles:o,direction:s,maxLength:c,autoSize:l=!0,value:u,onSave:d,onCancel:f,onEnd:m,component:g,enterIcon:_=j.createElement(re,null)}=e,v=j.useRef(null),y=j.useRef(!1),b=j.useRef(null),[x,S]=j.useState(u);j.useEffect(()=>{S(u)},[u]),j.useEffect(()=>{if(v.current?.resizableTextArea){let{textArea:e}=v.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let ee=({target:e})=>{S(e.value.replace(/[\n\r]/g,``))},C=()=>{y.current=!0},w=()=>{y.current=!1},te=({keyCode:e})=>{y.current||(b.current=e)},E=()=>{d(x.trim())},D=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{b.current!==e||y.current||t||n||r||i||(e===h.ENTER?(E(),m?.()):e===h.ESC&&f())},ne=()=>{E()},[k,ie]=L(t),A=p(t,`${t}-edit-content`,{[`${t}-rtl`]:s===`rtl`,[`${t}-${g}`]:!!g},r,a.root,k,ie);return j.createElement(`div`,{className:A,style:{...o.root,...i}},j.createElement(O,{ref:v,maxLength:c,value:x,onChange:ee,onKeyDown:te,onKeyUp:D,onCompositionStart:C,onCompositionEnd:w,onBlur:ne,"aria-label":n,rows:1,autoSize:l,className:a.textarea,style:o.textarea}),_===null?null:T(_,{className:`${t}-edit-content-confirm`}))},de=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},fe=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function R(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await fe(e,n)||de(e,n))}var pe=({copyConfig:e,children:t})=>{let[n,r]=te(!1),[i,a]=j.useState(!1),s={};return e.format&&(s.format=e.format),{copied:n,copyLoading:i,onClick:g(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await R((o(e.text)?await e.text():e.text)||se(t,{skipEmpty:!0}).join(``)||``,s),a(!1),r(!0,!0),r(!1,{ms:3e3}),e.onCopy?.(n)}catch(e){throw a(!1),e}})}},me=(e,t)=>{let n=!!e;return j.useMemo(()=>{let r={...t,...n&&_(e)?e:null};return[n,r]},[n,e,t])},he=e=>{let t=(0,j.useRef)(void 0);return(0,j.useEffect)(()=>{t.current=e}),t.current},ge=(e,t,n)=>(0,j.useMemo)(()=>e===!0?{title:t??n}:(0,j.isValidElement)(e)?{title:e}:_(e)?{title:t??n,...e}:{title:e},[e,t,n]),_e=(e,t,n,r,a)=>{let{getPrefixCls:o,direction:s,className:l,style:u,classNames:d,styles:f}=c(`typography`),p=r??s,m=o(`typography`,e),h={...a,prefixCls:m,direction:p},g=(0,j.useMemo)(()=>({root:l}),[l]),_=E(u),[v,y]=i([g,d,t],[f,_,n],{props:h});return[v,y,m,p]},ve=j.forwardRef((e,t)=>{let{component:n=`article`,className:r,rootClassName:i,children:a,direction:o,style:s,classNames:c,styles:l,prefixCls:u,...d}=e,[f,m]=L(u),h=p(u,{[`${u}-rtl`]:o===`rtl`},r,i,f,m,c?.root),g={...l?.root,...s};return j.createElement(n,{...d,className:h,style:g,ref:t},a)}),ye=j.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,direction:a,classNames:o,styles:s,...c}=e,[l,u,d,f]=_e(n,o,s,a,e);return j.createElement(ve,{ref:t,className:p(r,i),direction:f,classNames:l,styles:u,prefixCls:d,...c})}),be=e=>e===!1?[!1,!1]:se(e);function xe(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Se(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var Ce=e=>[`string`,`number`].includes(typeof e),we=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l,className:u,style:d}=e,f=be(a),m=be(o),{copied:h,copy:g}=r??{},_=n?h:g,v=xe(f[+!!n],_),y=typeof v==`string`?v:_;return j.createElement(D,{title:v},j.createElement(`button`,{type:`button`,className:p(`${t}-copy`,u,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),style:d,onClick:c,"aria-label":y,tabIndex:s},n?xe(m[1],j.createElement(ne,null),!0):xe(m[0],l?j.createElement(S,null):j.createElement(ie,null),!0)))},z=j.forwardRef(({style:e,children:t},n)=>{let r=j.useRef(null);return j.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),j.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),B=e=>e.reduce((e,t)=>e+(Ce(t)?String(t).length:1),0);function Te(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=Ce(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var V=0,H=1,U=2,Ee=3,De=4,W={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Oe(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,measureDeps:s,miscDeps:c,onEllipsis:l}=e,d=j.useMemo(()=>m(r),[r]),p=j.useMemo(()=>B(d),[r]),h=j.useMemo(()=>i(d,!1),[r].concat(f(s))),[g,_]=j.useState(null),v=j.useRef(null),y=j.useRef(null),b=j.useRef(null),x=j.useRef(null),S=j.useRef(null),[ee,C]=j.useState(!1),[w,T]=j.useState(V),[te,E]=j.useState(0),[D,ne]=j.useState(null);u(()=>{T(t&&n&&p?H:V)},[n,r,a,t,d].concat(f(s))),u(()=>{if(w===H){T(U);let e=y.current&&getComputedStyle(y.current).whiteSpace;ne(e)}else if(w===U){let e=!!b.current?.isExceed();T(e?Ee:De),_(e?[0,p]:null),C(e);let t=b.current?.getHeight()||0,n=a===1?0:x.current?.getHeight()||0,r=S.current?.getHeight()||0,i=Math.max(t,n+r);E(i+1),l(e)}},[w]);let O=g?Math.ceil((g[0]+g[1])/2):0;u(()=>{let[e,t]=g||[0,0];if(e!==t){let n=(v.current?.getHeight()||0)>te,r=O;t-e===1&&(r=n?e:t),_(n?[e,r]:[r,t])}},[g,O]);let re=j.useMemo(()=>{if(!t)return i(d,!1);if(w!==Ee||!g||g[0]!==g[1]){let e=i(d,!1);return[De,V].includes(w)?e:j.createElement(`span`,{style:{...W,WebkitLineClamp:a}},e)}return i(o?d:Te(d,g[0]),ee)},[o,w,g,d].concat(f(c))),k={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return j.createElement(j.Fragment,null,re,w===U&&j.createElement(j.Fragment,null,j.createElement(z,{style:{...k,...W,WebkitLineClamp:a},ref:b},h),j.createElement(z,{style:{...k,...W,WebkitLineClamp:a-1},ref:x},h),j.createElement(z,{style:{...k,...W,WebkitLineClamp:1},ref:S},i([],!0))),w===Ee&&g&&g[0]!==g[1]&&j.createElement(z,{style:{...k,top:400},ref:v},i(Te(d,O),!0)),w===H&&j.createElement(`span`,{style:{whiteSpace:`inherit`},ref:y}))}var ke=({enableEllipsis:e,isEllipsis:t,disabled:n,children:r,tooltipProps:i})=>!i?.title||!e?r:j.createElement(D,{...i,disabled:!t||n},r);function Ae({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=j.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var je=`...`,Me=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],G=j.forwardRef((e,n)=>{let{prefixCls:r,className:i,style:c,classNames:l,styles:d,direction:h,type:g,disabled:_,children:v,ellipsis:b,editable:x,copyable:S,actions:C,component:T,title:E,onClick:ne,onMouseEnter:O,onMouseLeave:re,...ie}=e,[A]=ee(`Text`),ae=j.useRef(null),se=j.useRef(null),[M,N,P,ce]=_e(r,l,d,h,e),le=t(ie,Me),[F,I]=me(x),[L,de]=a(!1,I.editing),{triggerType:fe=[`icon`]}=I,R=e=>{e&&I.onStart?.(),de(e)},ye=he(L);u(()=>{!L&&ye&&se.current?.focus()},[L]);let be=e=>{e?.preventDefault(),R(!0)},xe=e=>{I.onChange?.(e),R(!1)},z=()=>{I.onCancel?.(),R(!1)},[B,Te]=me(S),{placement:V=`end`}=C??{},{copied:H,copyLoading:U,onClick:Ee}=pe({copyConfig:Te,children:v}),[De,W]=j.useState(!1),[G,Ne]=j.useState(!1),[Pe,Fe]=j.useState(!1),[Ie,Le]=j.useState(!1),[K,Re]=j.useState(!0),[q,J]=me(b,{expandable:!1,symbol:e=>e?A?.collapse:A?.expand}),[Y,ze]=a(J.defaultExpanded||!1,J.expanded),X=q&&(!Y||J.expandable===`collapsible`),{rows:Z=1}=J,Be=j.useMemo(()=>X&&(J.suffix!==void 0||J.onEllipsis||J.expandable||F||B),[X,J,F,B]);u(()=>{q&&!Be&&(W(oe(`webkitLineClamp`)),Ne(oe(`textOverflow`)))},[Be,q]);let[Q,Ve]=j.useState(X),He=j.useMemo(()=>Be?!1:Z===1?G:De,[Be,Z,De,G]);u(()=>{Ve(He&&X)},[He,X]);let Ue=ge(J.tooltip,I.text,v),$=Q&&!!Ue.title,We=X&&(Q?$&&Ie:Pe),Ge=X&&Z===1&&Q,Ke=X&&Z>1&&Q,qe=(e,t)=>{ze(t.expanded),J.onExpand?.(e,t)},[Je,Ye]=j.useState(0),[Xe,Ze]=te(!1),Qe=j.useRef(!1),$e=({offsetWidth:e})=>{Ye(e)},et=e=>{Fe(e),Pe!==e&&J.onEllipsis?.(e)},tt=j.useCallback(()=>{let e=ae.current;if(q&&$&&e){let t=Se(e);Le(e=>e===t?e:t)}},[q,$]);j.useEffect(()=>{Qe.current&&tt()},[tt,v,Ke,K,Je]),j.useEffect(()=>{let e=ae.current;if(typeof IntersectionObserver>`u`||!e||!$||!X)return;let t=new IntersectionObserver(()=>{Re(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[$,X]);let nt=j.useMemo(()=>{if(q&&!Q)return[I.text,v,E,Ue.title].find(Ce)},[q,Q,E,Ue.title,We,I.text]);if(L)return j.createElement(ue,{value:I.text??(typeof v==`string`?v:``),onSave:xe,onCancel:z,onEnd:I.onEnd,prefixCls:P,className:i,style:c,direction:ce,component:T,maxLength:I.maxLength,autoSize:I.autoSize,enterIcon:I.enterIcon,classNames:M,styles:N});let rt=()=>{let{expandable:e,symbol:t}=J;return e?j.createElement(`button`,{type:`button`,key:`expand`,className:p(`${P}-${Y?`collapse`:`expand`}`,M.action),style:N.action,onClick:e=>qe(e,{expanded:!Y}),"aria-label":Y?A.collapse:A?.expand},o(t)?t(Y):t):null},it=()=>{if(!F)return;let{icon:e,tooltip:t,tabIndex:n}=I,r=m(t)[0]||A?.edit,i=typeof r==`string`?r:``;return fe.includes(`icon`)?j.createElement(D,{key:`edit`,title:t===!1?``:r},j.createElement(`button`,{type:`button`,ref:se,className:p(`${P}-edit`,M.action),style:N.action,onClick:be,"aria-label":i,tabIndex:n},e||j.createElement(k,null))):null},at=()=>B?j.createElement(we,{key:`copy`,...Te,prefixCls:P,copied:H,locale:A,onCopy:Ee,loading:U,iconOnly:!w(v),className:M.action,style:N.action}):null,ot=e=>{let t=e&&rt(),n=it(),r=at();return!t&&!n&&!r?null:j.createElement(`span`,{key:`operations`,className:p(`${P}-actions`,M.actions,{[`${P}-actions-start`]:V===`start`}),style:N.actions,onMouseEnter:()=>Ze(!0,!0),onMouseLeave:()=>Ze(!1,{ms:500})},t,n,r)},st=e=>[e&&!Y&&j.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},je),J.suffix];return j.createElement(s,{onResize:$e,disabled:!X},t=>j.createElement(ke,{tooltipProps:Ue,enableEllipsis:X,isEllipsis:We,disabled:Xe},j.createElement(ve,{onMouseEnter:e=>{Qe.current=!0,tt(),O?.(e)},onMouseLeave:e=>{Qe.current=!1,re?.(e)},className:p({[`${P}-${g}`]:g,[`${P}-disabled`]:_,[`${P}-ellipsis`]:q,[`${P}-ellipsis-single-line`]:Ge,[`${P}-ellipsis-multiple-line`]:Ke,[`${P}-link`]:T===`a`},i),classNames:M,styles:N,prefixCls:P,style:{...c,WebkitLineClamp:Ke?Z:void 0},component:T,ref:y(t,ae,n),direction:ce,onClick:e=>{fe.includes(`text`)&&be(e),ne?.(e)},"aria-label":nt?.toString(),title:E,...le},j.createElement(Oe,{enableMeasure:X&&!Q,text:v,rows:Z,width:Je,onEllipsis:et,expanded:Y,measureDeps:[V],miscDeps:[H,Y,U,F,B,V,A].concat(f(Me.map(t=>e[t])))},(t,n)=>Ae(e,j.createElement(j.Fragment,null,V===`start`?ot(n):null,t.length>0&&n&&!Y&&nt?j.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,st(n),V===`start`?null:ot(n)))))))}),Ne=j.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return j.createElement(G,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),Pe=j.forwardRef((e,t)=>{let{children:n,...r}=e;return j.createElement(G,{ref:t,...r,component:`div`},n)}),Fe=j.forwardRef((e,n)=>{let{ellipsis:r,children:i,...a}=e,o=j.useMemo(()=>_(r)?t(r,[`expandable`,`rows`]):r,[r]);return j.createElement(G,{ref:n,...a,ellipsis:o,component:`span`},i)}),Ie=[1,2,3,4,5],Le=j.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=Ie.includes(n)?`h${n}`:`h1`;return j.createElement(G,{ref:t,...i,component:a},r)}),K=ye;K.Text=Fe,K.Link=Ne,K.Title=Le,K.Paragraph=Pe;export{K as t};