Files
xin-procurement/public/assets/CopyOutlined-Bb8Wrh2R.js
T
2026-10-30 10:51:09 +08:00

4 lines
6.1 KiB
JavaScript

import{o as e}from"./request-xrnk7ZJV.js";import{Ct as t,Et as n,Hn as r,Pr as i,Q as a,Rt as o,Wn as s,Z as ee,at as te,lr as ne,p as re,qt as c,u as l,wn as u,wt as d,yt as ie}from"./jsx-runtime-OfKoVykY.js";import{f as ae,p as oe}from"./tooltip-DI_m69zk.js";import{m as f,o as se,p}from"./style-CSZsuTOx.js";import{n as m,r as h}from"./es-CSpN2d0Y.js";var g=e(i()),_=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,"@media (hover: none) and (pointer: coarse)":{resize:`none`},[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},v=c([`Input`,`TextArea`],e=>_(u(e,f(e))),p,{resetFont:!1}),y=(0,g.forwardRef)((e,i)=>{let{prefixCls:o,bordered:c=!0,size:u,disabled:f,status:p,allowClear:_,classNames:y,rootClassName:b,className:x,style:S,styles:C,variant:w,showCount:T,onMouseDown:E,onResize:D,...O}=e,{getPrefixCls:k,direction:A,allowClear:j,autoComplete:M,className:N,style:P,classNames:F,styles:I}=r(`textArea`),L=g.useContext(te),R=f??L,{status:z,hasFeedback:B,feedbackIcon:V}=g.useContext(re),H=ae(z,p),ce=d(P),U=d(S),[W,G]=t([F,y],[I,ce,C,U],{props:e}),K=g.useRef(null);g.useImperativeHandle(i,()=>({resizableTextArea:K.current?.resizableTextArea,focus:e=>{ne(K.current?.resizableTextArea?.textArea,e)},blur:()=>K.current?.blur(),nativeElement:K.current?.nativeElement||null}));let q=k(`input`,o),J=ie(q),[Y,le]=se(q,b);v(q,J);let{compactSize:ue,compactItemClassnames:de}=ee(q,A),X=a(e=>u??ue??e),[fe,pe]=l(`textArea`,w,c),me=h({allowClear:_,contextAllowClear:j,componentName:`TextArea`}),[Z,Q]=g.useState(!1),[he,ge]=g.useState(!1),$=e=>{Q(!0),E?.(e);let t=()=>{Q(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},_e=e=>{if(D?.(e),Z&&n(getComputedStyle)){let e=K.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ge(!0)}};return g.createElement(m,{autoComplete:M,...O,style:G.root,styles:G,disabled:R,allowClear:me,className:s(le,J,x,b,de,N,W.root,{[`${q}-textarea-affix-wrapper-resize-dirty`]:he}),classNames:{...W,textarea:s({[`${q}-sm`]:X===`small`,[`${q}-lg`]:X===`large`},Y,W.textarea,Z&&`${q}-mouse-active`),variant:s({[`${q}-${fe}`]:pe},oe(q,H)),affixWrapper:s(`${q}-textarea-affix-wrapper`,{[`${q}-affix-wrapper-rtl`]:A===`rtl`,[`${q}-affix-wrapper-sm`]:X===`small`,[`${q}-affix-wrapper-lg`]:X===`large`,[`${q}-textarea-show-count`]:T||e.count?.show},Y)},prefixCls:q,suffix:B&&g.createElement(`span`,{className:`${q}-textarea-suffix`},V),showCount:T,ref:K,onResize:_e,onMouseDown:$})}),b={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`};function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}var S=g.forwardRef((e,t)=>g.createElement(o,x({},e,{ref:t,icon:b}))),C={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 w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}var T=g.forwardRef((e,t)=>g.createElement(o,w({},e,{ref:t,icon:C}))),E={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 D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(this,arguments)}var O=g.forwardRef((e,t)=>g.createElement(o,D({},e,{ref:t,icon:E})));export{y as i,T as n,S as r,O as t};