Files
qhmes/web-dist/js/index-CA-NUHS0.js
2026-06-16 18:19:57 +08:00

17 lines
20 KiB
Java

import{cq as We,hP as Fe,a as c,h7 as Ke,l as Ue,k as Te,bR as Ve,h as U,aI as ie,hQ as Xe,f as Ee,dF as le,hG as qe,go as re,c8 as M,fK as Ge,T as ae,gY as Qe,f7 as Ye,hR as we,dq as ye,hS as Je}from"./index-X7Y8jykP.js";import{T as be}from"./transButton-B2CWzlQO.js";import{f,e as ue,a7 as Ze,b as Oe,h as ce,o as Ie,r as de,af as et,x as tt,w as nt,c as te,F as he,t as ot,n as ve}from"./vue-vendor-DNhG1Cve.js";import{o as Ne}from"./operationUnit-vCu2co3e.js";import{C as it}from"./CopyOutlined-Dpp8TC22.js";import{E as lt}from"./EditOutlined-drlR34lz.js";var rt={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 xe(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(o).filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable}))),n.forEach(function(i){at(e,i,o[i])})}return e}function at(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var pe=function(t,o){var n=xe({},t,o.attrs);return f(We,xe({},n,{icon:rt}),null)};pe.displayName="EnterOutlined";pe.inheritAttrs=!1;const st=(e,t,o,n)=>{const{sizeMarginHeadingVerticalEnd:i,fontWeightStrong:d}=n;return{marginBottom:i,color:o,fontWeight:d,fontSize:e,lineHeight:t}},ct=e=>{const t=[1,2,3,4,5],o={};return t.forEach(n=>{o[`
h${n}&,
div&-h${n},
div&-h${n} > textarea,
h${n}
`]=st(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),o},dt=e=>{const{componentCls:t}=e;return{"a&, a":c(c({},Ne(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"}}})}},ut=()=>({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:Fe[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}}),pt=e=>{const{componentCls:t}=e,n=Ke(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-n,marginBottom:`calc(1em - ${n}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"}}}},ft=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),mt=()=>({"\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"}}),gt=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:o}=e;return{[t]:c(c(c(c(c(c(c(c(c({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"}},ct(e)),{[`
& + h1${t},
& + h2${t},
& + h3${t},
& + h4${t},
& + h5${t}
`]:{marginTop:o},"\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:o}}}),ut()),dt(e)),{[`
${t}-expand,
${t}-edit,
${t}-copy
`]:c(c({},Ne(e)),{marginInlineStart:e.marginXXS})}),pt(e)),ft(e)),mt()),{"&-rtl":{direction:"rtl"}})}},Pe=Ue("Typography",e=>[gt(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),yt=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),bt=ue({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:yt(),setup(e,t){let{emit:o,slots:n,attrs:i}=t;const{prefixCls:d}=Ze(e),a=Oe({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});ce(()=>e.value,m=>{a.current=m});const l=de();Ie(()=>{var m;if(l.value){const u=(m=l.value)===null||m===void 0?void 0:m.resizableTextArea,h=u==null?void 0:u.textArea;h.focus();const{length:b}=h.value;h.setSelectionRange(b,b)}});function g(m){l.value=m}function S(m){let{target:{value:u}}=m;a.current=u.replace(/[\r\n]/g,""),o("change",a.current)}function y(){a.inComposition=!0}function I(){a.inComposition=!1}function D(m){const{keyCode:u}=m;u===ie.ENTER&&m.preventDefault(),!a.inComposition&&(a.lastKeyCode=u)}function O(m){const{keyCode:u,ctrlKey:h,altKey:b,metaKey:E,shiftKey:A}=m;a.lastKeyCode===u&&!a.inComposition&&!h&&!b&&!E&&!A&&(u===ie.ENTER?(N(),o("end")):u===ie.ESC&&(a.current=e.originContent,o("cancel")))}function k(){N()}function N(){o("save",a.current.trim())}const[W,B]=Pe(d);return()=>{const m=Te({[`${d.value}`]:!0,[`${d.value}-edit-content`]:!0,[`${d.value}-rtl`]:e.direction==="rtl",[e.component?`${d.value}-${e.component}`:""]:!0},i.class,B.value);return W(f("div",U(U({},i),{},{class:m}),[f(Ve,{ref:g,maxlength:e.maxlength,value:a.current,onChange:S,onKeydown:D,onKeyup:O,onCompositionstart:y,onCompositionend:I,onBlur:k,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),n.enterIcon?n.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):f(pe,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),ht=3,vt=8;let C;const se={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function $e(e,t){e.setAttribute("aria-hidden","true");const o=window.getComputedStyle(t),n=Xe(o);e.setAttribute("style",n),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 xt(e){const t=document.createElement("div");$e(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const o=t.getBoundingClientRect().height;return document.body.removeChild(t),o}const Ct=((e,t,o,n,i)=>{C||(C=document.createElement("div"),C.setAttribute("aria-hidden","true"),document.body.appendChild(C));const{rows:d,suffix:a=""}=t,l=xt(e),g=Math.round(l*d*100)/100;$e(C,e);const S=et({render(){return f("div",{style:se},[f("span",{style:se},[o,a]),f("span",{style:se},[n])])}});S.mount(C);function y(){return Math.round(C.getBoundingClientRect().height*100)/100-.1<=g}if(y())return S.unmount(),{content:o,text:C.innerHTML,ellipsis:!1};const I=Array.prototype.slice.apply(C.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(u=>{let{nodeType:h,data:b}=u;return h!==vt&&b!==""}),D=Array.prototype.slice.apply(C.childNodes[0].childNodes[1].cloneNode(!0).childNodes);S.unmount();const O=[];C.innerHTML="";const k=document.createElement("span");C.appendChild(k);const N=document.createTextNode(i+a);k.appendChild(N),D.forEach(u=>{C.appendChild(u)});function W(u){k.insertBefore(u,N)}function B(u,h){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h.length,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const _=Math.floor((b+E)/2),ne=h.slice(0,_);if(u.textContent=ne,b>=E-1)for(let j=E;j>=b;j-=1){const F=h.slice(0,j);if(u.textContent=F,y()||!F)return j===h.length?{finished:!1,vNode:h}:{finished:!0,vNode:F}}return y()?B(u,h,_,E,_):B(u,h,b,_,A)}function m(u){if(u.nodeType===ht){const b=u.textContent||"",E=document.createTextNode(b);return W(E),B(E,b)}return{finished:!1,vNode:null}}return I.some(u=>{const{finished:h,vNode:b}=m(u);return b&&O.push(b),h}),{content:O,text:C.innerHTML,ellipsis:!0}});var St=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]]);return o};const Tt=()=>({prefixCls:String,direction:String,component:String}),T=ue({name:"ATypography",inheritAttrs:!1,props:Tt(),setup(e,t){let{slots:o,attrs:n}=t;const{prefixCls:i,direction:d}=Ee("typography",e),[a,l]=Pe(i);return()=>{var g;const S=c(c({},e),n),{prefixCls:y,direction:I,component:D="article"}=S,O=St(S,["prefixCls","direction","component"]);return a(f(D,U(U({},O),{},{class:Te(i.value,{[`${i.value}-rtl`]:d.value==="rtl"},n.class,l.value)}),{default:()=>[(g=o.default)===null||g===void 0?void 0:g.call(o)]}))}}}),Et=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const o=[];for(let n=0;n<e.rangeCount;n++)o.push(e.getRangeAt(n));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||o.forEach(function(n){e.addRange(n)}),t&&t.focus()}},Ce={"text/plain":"Text","text/html":"Url",default:"Text"},wt="Copy to clipboard: #{key}, Enter";function Ot(e){const t=(/mac os x/i.test(navigator.userAgent)?"":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function It(e,t){let o,n,i,d,a,l=!1;t||(t={});const g=t.debug||!1;try{if(n=Et(),i=document.createRange(),d=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(y){if(y.stopPropagation(),t.format)if(y.preventDefault(),typeof y.clipboardData=="undefined"){window.clipboardData.clearData();const I=Ce[t.format]||Ce.default;window.clipboardData.setData(I,e)}else y.clipboardData.clearData(),y.clipboardData.setData(t.format,e);t.onCopy&&(y.preventDefault(),t.onCopy(y.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),d.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(S){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(y){o=Ot("message"in t?t.message:wt),window.prompt(o,e)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(i):d.removeAllRanges()),a&&document.body.removeChild(a),n()}return l}var Nt=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]]);return o};const Pt=we("webkitLineClamp"),$t=we("textOverflow"),Se="...",V=()=>({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}),X=ue({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:V(),setup(e,t){let{slots:o,attrs:n,emit:i}=t;const{prefixCls:d,direction:a}=Ee("typography",e),l=Oe({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:""}),g=de(),S=de(),y=te(()=>{const r=e.ellipsis;return r?c({rows:1,expandable:!1},typeof r=="object"?r:null):{}});Ie(()=>{l.clientRendered=!0,_()}),tt(()=>{clearTimeout(l.copyId),le.cancel(l.rafId)}),ce([()=>y.value.rows,()=>e.content],()=>{ve(()=>{E()})},{flush:"post",deep:!0}),nt(()=>{e.content===void 0&&(ye(!e.editable),ye(!e.ellipsis))});function I(){var r;return e.ellipsis||e.editable?e.content:(r=re(g.value))===null||r===void 0?void 0:r.innerText}function D(r){const{onExpand:s}=y.value;l.expanded=!0,s==null||s(r)}function O(r){r.preventDefault(),l.originContent=e.content,b(!0)}function k(r){N(r),b(!1)}function N(r){const{onChange:s}=m.value;r!==e.content&&(i("update:content",r),s==null||s(r))}function W(){var r,s;(s=(r=m.value).onCancel)===null||s===void 0||s.call(r),b(!1)}function B(r){r.preventDefault(),r.stopPropagation();const{copyable:s}=e,p=c({},typeof s=="object"?s:null);p.text===void 0&&(p.text=I()),It(p.text||""),l.copied=!0,ve(()=>{p.onCopy&&p.onCopy(r),l.copyId=setTimeout(()=>{l.copied=!1},3e3)})}const m=te(()=>{const r=e.editable;return r?c({},typeof r=="object"?r:null):{editing:!1}}),[u,h]=qe(!1,{value:te(()=>m.value.editing)});function b(r){const{onStart:s}=m.value;r&&s&&s(),h(r)}ce(u,r=>{var s;r||(s=S.value)===null||s===void 0||s.focus()},{flush:"post"});function E(r){if(r){const{width:s,height:p}=r;if(!s||!p)return}le.cancel(l.rafId),l.rafId=le(()=>{_()})}const A=te(()=>{const{rows:r,expandable:s,suffix:p,onEllipsis:v,tooltip:x}=y.value;return p||x||e.editable||e.copyable||s||v?!1:r===1?$t:Pt}),_=()=>{const{ellipsisText:r,isEllipsis:s}=l,{rows:p,suffix:v,onEllipsis:x}=y.value;if(!p||p<0||!re(g.value)||l.expanded||e.content===void 0||A.value)return;const{content:P,text:H,ellipsis:R}=Ct(re(g.value),{rows:p,suffix:v},e.content,fe(!0),Se);(r!==H||l.isEllipsis!==R)&&(l.ellipsisText=H,l.ellipsisContent=P,l.isEllipsis=R,s!==R&&x&&x(R))};function ne(r,s){let{mark:p,code:v,underline:x,delete:P,strong:H,keyboard:R}=r,K=s;function $(J,w){if(!J)return;const Z=(function(){return K})();K=f(w,null,{default:()=>[Z]})}return $(H,"strong"),$(x,"u"),$(P,"del"),$(v,"code"),$(p,"mark"),$(R,"kbd"),K}function j(r){const{expandable:s,symbol:p}=y.value;if(!s||!r&&(l.expanded||!l.isEllipsis))return null;const v=(o.ellipsisSymbol?o.ellipsisSymbol():p)||l.expandStr;return f("a",{key:"expand",class:`${d.value}-expand`,onClick:D,"aria-label":l.expandStr},[v])}function F(){if(!e.editable)return;const{tooltip:r,triggerType:s=["icon"]}=e.editable,p=o.editableIcon?o.editableIcon():f(lt,{role:"button"},null),v=o.editableTooltip?o.editableTooltip():l.editStr,x=typeof v=="string"?v:"";return s.indexOf("icon")!==-1?f(ae,{key:"edit",title:r===!1?"":v},{default:()=>[f(be,{ref:S,class:`${d.value}-edit`,onClick:O,"aria-label":x},{default:()=>[p]})]}):null}function De(){if(!e.copyable)return;const{tooltip:r}=e.copyable,s=l.copied?l.copiedStr:l.copyStr,p=o.copyableTooltip?o.copyableTooltip({copied:l.copied}):s,v=typeof p=="string"?p:"",x=l.copied?f(Ye,null,null):f(it,null,null),P=o.copyableIcon?o.copyableIcon({copied:!!l.copied}):x;return f(ae,{key:"copy",title:r===!1?"":p},{default:()=>[f(be,{class:[`${d.value}-copy`,{[`${d.value}-copy-success`]:l.copied}],onClick:B,"aria-label":v},{default:()=>[P]})]})}function ke(){const{class:r,style:s}=n,{maxlength:p,autoSize:v,onEnd:x}=m.value;return f(bt,{class:r,style:s,prefixCls:d.value,value:e.content,originContent:l.originContent,maxlength:p,autoSize:v,onSave:k,onChange:N,onCancel:W,onEnd:x,direction:a.value,component:e.component},{enterIcon:o.editableEnterIcon})}function fe(r){return[j(r),F(),De()].filter(s=>s)}return()=>{var r;const{triggerType:s=["icon"]}=m.value,p=e.ellipsis||e.editable?e.content!==void 0?e.content:(r=o.default)===null||r===void 0?void 0:r.call(o):o.default?o.default():e.content;return u.value?ke():f(Qe,{componentName:"Text",children:v=>{const x=c(c({},e),n),{type:P,disabled:H,content:R,class:K,style:$}=x,J=Nt(x,["type","disabled","content","class","style"]),{rows:w,suffix:Z,tooltip:oe}=y.value,{edit:Be,copy:_e,copied:Re,expand:Ae}=v;l.editStr=Be,l.copyStr=_e,l.copiedStr=Re,l.expandStr=Ae;const je=M(J,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),ee=A.value,He=w===1&&ee,me=w&&w>1&&ee;let z=p,ze;if(w&&l.isEllipsis&&!l.expanded&&!ee){const{title:ge}=J;let L=ge||"";!ge&&(typeof p=="string"||typeof p=="number")&&(L=String(p)),L=L==null?void 0:L.slice(String(l.ellipsisContent||"").length),z=f(he,null,[ot(l.ellipsisContent),f("span",{title:L,"aria-hidden":"true"},[Se]),Z])}else z=f(he,null,[p,Z]);z=ne(e,z);const Le=oe&&w&&l.isEllipsis&&!l.expanded&&!ee,Me=o.ellipsisTooltip?o.ellipsisTooltip():oe;return f(Ge,{onResize:E,disabled:!w},{default:()=>[f(T,U({ref:g,class:[{[`${d.value}-${P}`]:P,[`${d.value}-disabled`]:H,[`${d.value}-ellipsis`]:w,[`${d.value}-single-line`]:w===1&&!l.isEllipsis,[`${d.value}-ellipsis-single-line`]:He,[`${d.value}-ellipsis-multiple-line`]:me},K],style:c(c({},$),{WebkitLineClamp:me?w:void 0}),"aria-label":ze,direction:a.value,onClick:s.indexOf("text")!==-1?O:()=>{}},je),{default:()=>[Le?f(ae,{title:oe===!0?p:Me},{default:()=>[f("span",null,[z])]}):z,fe()]})]})}},null)}}});var Dt=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]]);return o};const kt=()=>M(c(c({},V()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),q=(e,t)=>{let{slots:o,attrs:n}=t;const i=c(c({},e),n),{ellipsis:d,rel:a}=i,l=Dt(i,["ellipsis","rel"]),g=c(c({},l),{rel:a===void 0&&l.target==="_blank"?"noopener noreferrer":a,ellipsis:!!d,component:"a"});return delete g.navigate,f(X,g,o)};q.displayName="ATypographyLink";q.inheritAttrs=!1;q.props=kt();const Bt=()=>M(V(),["component"]),G=(e,t)=>{let{slots:o,attrs:n}=t;const i=c(c(c({},e),{component:"div"}),n);return f(X,i,o)};G.displayName="ATypographyParagraph";G.inheritAttrs=!1;G.props=Bt();const _t=()=>c(c({},M(V(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),Q=(e,t)=>{let{slots:o,attrs:n}=t;const{ellipsis:i}=e,d=c(c(c({},e),{ellipsis:i&&typeof i=="object"?M(i,["expandable","rows"]):i,component:"span"}),n);return f(X,d,o)};Q.displayName="ATypographyText";Q.inheritAttrs=!1;Q.props=_t();var Rt=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]]);return o};const At=Je(1,2,3,4,5),jt=()=>c(c({},M(V(),["component","strong"])),{level:Number}),Y=(e,t)=>{let{slots:o,attrs:n}=t;const{level:i=1}=e,d=Rt(e,["level"]);let a;At.includes(i)?a=`h${i}`:a="h1";const l=c(c(c({},d),{component:a}),n);return f(X,l,o)};Y.displayName="ATypographyTitle";Y.inheritAttrs=!1;Y.props=jt();T.Text=Q;T.Title=Y;T.Paragraph=G;T.Link=q;T.Base=X;T.install=function(e){return e.component(T.name,T),e.component(T.Text.displayName,Q),e.component(T.Title.displayName,Y),e.component(T.Paragraph.displayName,G),e.component(T.Link.displayName,q),e};export{G as P,Q as T,T as a};