diff --git a/404.html b/404.html index 9e3e559..40df924 100644 --- a/404.html +++ b/404.html @@ -11,10 +11,10 @@ } - +
- + \ No newline at end of file diff --git a/demo/simple/index.html b/demo/simple/index.html index 9e3e559..40df924 100644 --- a/demo/simple/index.html +++ b/demo/simple/index.html @@ -11,10 +11,10 @@ } - +
- + \ No newline at end of file diff --git a/dumi__tmp-production__dumi__theme__ContextWrapper.1a9673c3.async.js b/dumi__tmp-production__dumi__theme__ContextWrapper.8e5a6c1c.async.js similarity index 96% rename from dumi__tmp-production__dumi__theme__ContextWrapper.1a9673c3.async.js rename to dumi__tmp-production__dumi__theme__ContextWrapper.8e5a6c1c.async.js index 3c28dee..8043b12 100644 --- a/dumi__tmp-production__dumi__theme__ContextWrapper.1a9673c3.async.js +++ b/dumi__tmp-production__dumi__theme__ContextWrapper.8e5a6c1c.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkrc_textarea=self.webpackChunkrc_textarea||[]).push([[923],{79633:function(b,n,e){e.r(n),e.d(n,{default:function(){return L}});var g=e(79800),x=e.n(g),a=e(21739),r=e(2738),y=e(40150),C=e(93148),o=null,s=e(91768),T=e(27174),i={},l={name:"rc-textarea",description:"Pretty Textarea react component used in used in ant.design",version:"1.8.0",license:"MIT",repository:{type:"git",url:"git@github.com:react-component/textarea.git"}},u="browser",c=void 0,m={footer:'Copyright \xA9 2024 | Powered by dumi',prefersColor:{default:"light",switch:!0},nprogress:!0,lastUpdated:!0,name:"rc-textarea",logo:"https://avatars0.githubusercontent.com/u/9441414?s=200&v=4",sourceLink:"https://github.com/react-component/textarea/tree/master/{fileName}#L{line}",editLink:"https://github.com/react-component/textarea/edit/master/{filename}"},d=!1;function L(){var j=(0,r.pC)(),E=(0,a.useState)(!1),v=x()(E,2),f=v[0],p=v[1],h=(0,a.useRef)(r.m8.location.pathname);(0,a.useEffect)(function(){return r.m8.listen(function(t){t.location.pathname!==h.current&&(h.current=t.location.pathname,document.documentElement.scrollTo(0,0))})},[]);var P=a.useMemo(function(){var t={pkg:l,historyType:u,entryExports:i,demos:null,components:o,locales:s.k,loading:f,setLoading:p,hostname:c,themeConfig:m,_2_level_nav_available:d};return Object.defineProperty(t,"demos",{get:function(){return(0,y.Kp)(!1,"`demos` return empty in latest version, please use `useDemo` instead."),{}}}),t},[l,u,i,o,s.k,f,p,c,m,d]);return(0,T.jsx)(C.D.Provider,{value:P,children:j})}}}]); +"use strict";(self.webpackChunkrc_textarea=self.webpackChunkrc_textarea||[]).push([[923],{79633:function(b,n,e){e.r(n),e.d(n,{default:function(){return L}});var g=e(79800),x=e.n(g),a=e(21739),r=e(2738),y=e(40150),C=e(93148),o=null,s=e(91768),T=e(27174),i={},l={name:"rc-textarea",description:"Pretty Textarea react component used in used in ant.design",version:"1.8.1",license:"MIT",repository:{type:"git",url:"git@github.com:react-component/textarea.git"}},u="browser",c=void 0,m={footer:'Copyright \xA9 2024 | Powered by dumi',prefersColor:{default:"light",switch:!0},nprogress:!0,lastUpdated:!0,name:"rc-textarea",logo:"https://avatars0.githubusercontent.com/u/9441414?s=200&v=4",sourceLink:"https://github.com/react-component/textarea/tree/master/{fileName}#L{line}",editLink:"https://github.com/react-component/textarea/edit/master/{filename}"},d=!1;function L(){var j=(0,r.pC)(),E=(0,a.useState)(!1),v=x()(E,2),f=v[0],p=v[1],h=(0,a.useRef)(r.m8.location.pathname);(0,a.useEffect)(function(){return r.m8.listen(function(t){t.location.pathname!==h.current&&(h.current=t.location.pathname,document.documentElement.scrollTo(0,0))})},[]);var P=a.useMemo(function(){var t={pkg:l,historyType:u,entryExports:i,demos:null,components:o,locales:s.k,loading:f,setLoading:p,hostname:c,themeConfig:m,_2_level_nav_available:d};return Object.defineProperty(t,"demos",{get:function(){return(0,y.Kp)(!1,"`demos` return empty in latest version, please use `useDemo` instead."),{}}}),t},[l,u,i,o,s.k,f,p,c,m,d]);return(0,T.jsx)(C.D.Provider,{value:P,children:j})}}}]); diff --git a/index.html b/index.html index 9e3e559..40df924 100644 --- a/index.html +++ b/index.html @@ -11,10 +11,10 @@ } - +
- + \ No newline at end of file diff --git a/meta__docs.f546d05e.async.js b/meta__docs.ffbad46b.async.js similarity index 64% rename from meta__docs.f546d05e.async.js rename to meta__docs.ffbad46b.async.js index ec9fe42..490b857 100644 --- a/meta__docs.f546d05e.async.js +++ b/meta__docs.ffbad46b.async.js @@ -1,4 +1,4 @@ -(self.webpackChunkrc_textarea=self.webpackChunkrc_textarea||[]).push([[904],{70716:function(t,u,e){"use strict";e.r(u),e.d(u,{demos:function(){return l}});var c=e(7557),s=e.n(c),a=e(41498),n=e.n(a),o=e(21739),i=e(82797),l={"docs-demo-simple-demo-simple":{component:o.memo(o.lazy(function(){return e.e(433).then(e.bind(e,1753))})),asset:{type:"BLOCK",id:"docs-demo-simple-demo-simple",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:e(38164).Z},react:{type:"NPM",value:"18.3.1"},"rc-textarea":{type:"NPM",value:"1.8.0"}},entry:"index.tsx"},context:{react:e(21739),"rc-textarea":e(65389)},renderOpts:{compile:function(){var d=n()(s()().mark(function v(){var b,h=arguments;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,e.e(464).then(e.bind(e,22464));case 2:return p.abrupt("return",(b=p.sent).default.apply(b,h));case 3:case"end":return p.stop()}},v)}));function f(){return d.apply(this,arguments)}return f}()}},"docs-demo-simple-demo-autosize":{component:o.memo(o.lazy(function(){return e.e(433).then(e.bind(e,50020))})),asset:{type:"BLOCK",id:"docs-demo-simple-demo-autosize",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:e(40991).Z},react:{type:"NPM",value:"18.3.1"},"rc-textarea":{type:"NPM",value:"1.8.0"}},entry:"index.tsx"},context:{react:e(21739),"rc-textarea":e(65389)},renderOpts:{compile:function(){var d=n()(s()().mark(function v(){var b,h=arguments;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,e.e(464).then(e.bind(e,22464));case 2:return p.abrupt("return",(b=p.sent).default.apply(b,h));case 3:case"end":return p.stop()}},v)}));function f(){return d.apply(this,arguments)}return f}()}},"docs-demo-simple-demo-allowclear":{component:o.memo(o.lazy(function(){return e.e(433).then(e.bind(e,97838))})),asset:{type:"BLOCK",id:"docs-demo-simple-demo-allowclear",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:e(42163).Z},"rc-textarea":{type:"NPM",value:"1.8.0"},react:{type:"NPM",value:"18.3.1"}},entry:"index.tsx"},context:{"rc-textarea":e(65389),react:e(21739)},renderOpts:{compile:function(){var d=n()(s()().mark(function v(){var b,h=arguments;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,e.e(464).then(e.bind(e,22464));case 2:return p.abrupt("return",(b=p.sent).default.apply(b,h));case 3:case"end":return p.stop()}},v)}));function f(){return d.apply(this,arguments)}return f}()}},"docs-demo-simple-demo-showcount":{component:o.memo(o.lazy(function(){return e.e(433).then(e.bind(e,54383))})),asset:{type:"BLOCK",id:"docs-demo-simple-demo-showcount",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:e(58213).Z},"rc-textarea":{type:"NPM",value:"1.8.0"},react:{type:"NPM",value:"18.3.1"},"../../assets/index.less":{type:"FILE",value:e(72119).Z}},entry:"index.tsx"},context:{"rc-textarea":e(65389),react:e(21739),"../../assets/index.less":e(65403)},renderOpts:{compile:function(){var d=n()(s()().mark(function v(){var b,h=arguments;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,e.e(464).then(e.bind(e,22464));case 2:return p.abrupt("return",(b=p.sent).default.apply(b,h));case 3:case"end":return p.stop()}},v)}));function f(){return d.apply(this,arguments)}return f}()}}}},70973:function(t,u,e){"use strict";e.r(u),e.d(u,{demos:function(){return a}});var c=e(21739),s=e(4e4),a={}},65389:function(t,u,e){"use strict";e.r(u),e.d(u,{ResizableTextArea:function(){return et},default:function(){return xt}});var c=e(85573),s=e.n(c),a=e(82242),n=e.n(a),o=e(37205),i=e.n(o),l=e(79800),d=e.n(l),f=e(39647),v=e.n(f),b=e(92310),h=e.n(b),g=e(71930),p=e(15250),w=e(97326),_=e(75253),x=e(21739);function D(r){return!!(r.addonBefore||r.addonAfter)}function ee(r){return!!(r.prefix||r.suffix||r.allowClear)}function ge(r,R,m){var y=R.cloneNode(!0),C=Object.create(r,{target:{value:y},currentTarget:{value:y}});return y.value=m,typeof R.selectionStart=="number"&&typeof R.selectionEnd=="number"&&(y.selectionStart=R.selectionStart,y.selectionEnd=R.selectionEnd),y.setSelectionRange=function(){R.setSelectionRange.apply(R,arguments)},C}function Ge(r,R,m,y){if(m){var C=R;if(R.type==="click"){C=ge(R,r,""),m(C);return}if(r.type!=="file"&&y!==void 0){C=ge(R,r,y),m(C);return}m(C)}}function Ye(r,R){if(r){r.focus(R);var m=R||{},y=m.cursor;if(y){var C=r.value.length;switch(y){case"start":r.setSelectionRange(0,0);break;case"end":r.setSelectionRange(C,C);break;default:r.setSelectionRange(0,C)}}}}var Le=x.forwardRef(function(r,R){var m,y,C=r.inputElement,O=r.children,I=r.prefixCls,M=r.prefix,L=r.suffix,T=r.addonBefore,j=r.addonAfter,H=r.className,Z=r.style,G=r.disabled,V=r.readOnly,le=r.focused,de=r.triggerFocus,Y=r.allowClear,te=r.value,N=r.handleReset,Ie=r.hidden,P=r.classes,S=r.classNames,ne=r.dataAttrs,F=r.styles,$=r.components,re=r.onClear,fe=O!=null?O:C,Q=($==null?void 0:$.affixWrapper)||"span",oe=($==null?void 0:$.groupWrapper)||"span",ye=($==null?void 0:$.wrapper)||"span",ue=($==null?void 0:$.groupAddon)||"span",pe=(0,x.useRef)(null),Re=function(q){var Ae;(Ae=pe.current)!==null&&Ae!==void 0&&Ae.contains(q.target)&&(de==null||de())},ve=ee(r),W=(0,x.cloneElement)(fe,{value:te,className:h()(fe.props.className,!ve&&(S==null?void 0:S.variant))||null}),se=(0,x.useRef)(null);if(x.useImperativeHandle(R,function(){return{nativeElement:se.current||pe.current}}),ve){var Se=null;if(Y){var be=!G&&!V&&te,ie="".concat(I,"-clear-icon"),k=(0,_.Z)(Y)==="object"&&Y!==null&&Y!==void 0&&Y.clearIcon?Y.clearIcon:"\u2716";Se=x.createElement("span",{onClick:function(q){N==null||N(q),re==null||re()},onMouseDown:function(q){return q.preventDefault()},className:h()(ie,(0,w.Z)((0,w.Z)({},"".concat(ie,"-hidden"),!be),"".concat(ie,"-has-suffix"),!!L)),role:"button",tabIndex:-1},k)}var A="".concat(I,"-affix-wrapper"),me=h()(A,(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},"".concat(I,"-disabled"),G),"".concat(A,"-disabled"),G),"".concat(A,"-focused"),le),"".concat(A,"-readonly"),V),"".concat(A,"-input-with-clear-btn"),L&&Y&&te),P==null?void 0:P.affixWrapper,S==null?void 0:S.affixWrapper,S==null?void 0:S.variant),J=(L||Y)&&x.createElement("span",{className:h()("".concat(I,"-suffix"),S==null?void 0:S.suffix),style:F==null?void 0:F.suffix},Se,L);W=x.createElement(Q,(0,p.Z)({className:me,style:F==null?void 0:F.affixWrapper,onClick:Re},ne==null?void 0:ne.affixWrapper,{ref:pe}),M&&x.createElement("span",{className:h()("".concat(I,"-prefix"),S==null?void 0:S.prefix),style:F==null?void 0:F.prefix},M),W,J)}if(D(r)){var ce="".concat(I,"-group"),Ee="".concat(ce,"-addon"),we="".concat(ce,"-wrapper"),Pe=h()("".concat(I,"-wrapper"),ce,P==null?void 0:P.wrapper,S==null?void 0:S.wrapper),Te=h()(we,(0,w.Z)({},"".concat(we,"-disabled"),G),P==null?void 0:P.group,S==null?void 0:S.groupWrapper);W=x.createElement(oe,{className:Te,ref:se},x.createElement(ye,{className:Pe},T&&x.createElement(ue,{className:Ee},T),W,j&&x.createElement(ue,{className:Ee},j)))}return x.cloneElement(W,{className:h()((m=W.props)===null||m===void 0?void 0:m.className,H)||null,style:(0,g.Z)((0,g.Z)({},(y=W.props)===null||y===void 0?void 0:y.style),Z),hidden:Ie})}),Me=Le,Ve=e(71366),Fe=null;function Je(r,R){if(!R.max)return!0;var m=R.strategy(r);return m<=R.max}function Oe(r,R){return React.useMemo(function(){var m={};R&&(m.show=_typeof(R)==="object"&&R.formatter?R.formatter:!!R),m=_objectSpread(_objectSpread({},m),r);var y=m,C=y.show,O=_objectWithoutProperties(y,Fe);return _objectSpread(_objectSpread({},O),{},{show:!!C,showFormatter:typeof C=="function"?C:void 0,strategy:O.strategy||function(I){return I.length}})},[r,R])}var De=null,yt=null,Rt=null,St=null,rt=e(78847),Xe=e(68528),Qe=e(32961),at=e(31468),ot=e.n(at),ut=e(10933),ke=e(40425),qe=e(79254),st=` +(self.webpackChunkrc_textarea=self.webpackChunkrc_textarea||[]).push([[904],{70716:function(t,u,e){"use strict";e.r(u),e.d(u,{demos:function(){return l}});var c=e(7557),s=e.n(c),a=e(41498),n=e.n(a),o=e(21739),i=e(82797),l={"docs-demo-simple-demo-simple":{component:o.memo(o.lazy(function(){return e.e(433).then(e.bind(e,1753))})),asset:{type:"BLOCK",id:"docs-demo-simple-demo-simple",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:e(38164).Z},react:{type:"NPM",value:"18.3.1"},"rc-textarea":{type:"NPM",value:"1.8.1"}},entry:"index.tsx"},context:{react:e(21739),"rc-textarea":e(65389)},renderOpts:{compile:function(){var d=n()(s()().mark(function v(){var b,h=arguments;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,e.e(464).then(e.bind(e,22464));case 2:return p.abrupt("return",(b=p.sent).default.apply(b,h));case 3:case"end":return p.stop()}},v)}));function f(){return d.apply(this,arguments)}return f}()}},"docs-demo-simple-demo-autosize":{component:o.memo(o.lazy(function(){return e.e(433).then(e.bind(e,50020))})),asset:{type:"BLOCK",id:"docs-demo-simple-demo-autosize",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:e(40991).Z},react:{type:"NPM",value:"18.3.1"},"rc-textarea":{type:"NPM",value:"1.8.1"}},entry:"index.tsx"},context:{react:e(21739),"rc-textarea":e(65389)},renderOpts:{compile:function(){var d=n()(s()().mark(function v(){var b,h=arguments;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,e.e(464).then(e.bind(e,22464));case 2:return p.abrupt("return",(b=p.sent).default.apply(b,h));case 3:case"end":return p.stop()}},v)}));function f(){return d.apply(this,arguments)}return f}()}},"docs-demo-simple-demo-allowclear":{component:o.memo(o.lazy(function(){return e.e(433).then(e.bind(e,97838))})),asset:{type:"BLOCK",id:"docs-demo-simple-demo-allowclear",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:e(42163).Z},"rc-textarea":{type:"NPM",value:"1.8.1"},react:{type:"NPM",value:"18.3.1"}},entry:"index.tsx"},context:{"rc-textarea":e(65389),react:e(21739)},renderOpts:{compile:function(){var d=n()(s()().mark(function v(){var b,h=arguments;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,e.e(464).then(e.bind(e,22464));case 2:return p.abrupt("return",(b=p.sent).default.apply(b,h));case 3:case"end":return p.stop()}},v)}));function f(){return d.apply(this,arguments)}return f}()}},"docs-demo-simple-demo-showcount":{component:o.memo(o.lazy(function(){return e.e(433).then(e.bind(e,54383))})),asset:{type:"BLOCK",id:"docs-demo-simple-demo-showcount",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:e(58213).Z},"rc-textarea":{type:"NPM",value:"1.8.1"},react:{type:"NPM",value:"18.3.1"},"../../assets/index.less":{type:"FILE",value:e(72119).Z}},entry:"index.tsx"},context:{"rc-textarea":e(65389),react:e(21739),"../../assets/index.less":e(65403)},renderOpts:{compile:function(){var d=n()(s()().mark(function v(){var b,h=arguments;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,e.e(464).then(e.bind(e,22464));case 2:return p.abrupt("return",(b=p.sent).default.apply(b,h));case 3:case"end":return p.stop()}},v)}));function f(){return d.apply(this,arguments)}return f}()}}}},70973:function(t,u,e){"use strict";e.r(u),e.d(u,{demos:function(){return a}});var c=e(21739),s=e(4e4),a={}},65389:function(t,u,e){"use strict";e.r(u),e.d(u,{ResizableTextArea:function(){return tt},default:function(){return gt}});var c=e(85573),s=e.n(c),a=e(82242),n=e.n(a),o=e(37205),i=e.n(o),l=e(79800),d=e.n(l),f=e(39647),v=e.n(f),b=e(92310),h=e.n(b),g=e(71930),p=e(15250),w=e(97326),U=e(75253),x=e(21739);function D(r){return!!(r.addonBefore||r.addonAfter)}function ee(r){return!!(r.prefix||r.suffix||r.allowClear)}function ge(r,R,m){var y=R.cloneNode(!0),C=Object.create(r,{target:{value:y},currentTarget:{value:y}});return y.value=m,typeof R.selectionStart=="number"&&typeof R.selectionEnd=="number"&&(y.selectionStart=R.selectionStart,y.selectionEnd=R.selectionEnd),y.setSelectionRange=function(){R.setSelectionRange.apply(R,arguments)},C}function Ye(r,R,m,y){if(m){var C=R;if(R.type==="click"){C=ge(R,r,""),m(C);return}if(r.type!=="file"&&y!==void 0){C=ge(R,r,y),m(C);return}m(C)}}function Je(r,R){if(r){r.focus(R);var m=R||{},y=m.cursor;if(y){var C=r.value.length;switch(y){case"start":r.setSelectionRange(0,0);break;case"end":r.setSelectionRange(C,C);break;default:r.setSelectionRange(0,C)}}}}var Ve=x.forwardRef(function(r,R){var m,y,C=r.inputElement,z=r.children,I=r.prefixCls,M=r.prefix,L=r.suffix,T=r.addonBefore,j=r.addonAfter,K=r.className,B=r.style,_=r.disabled,V=r.readOnly,ue=r.focused,fe=r.triggerFocus,H=r.allowClear,te=r.value,N=r.handleReset,be=r.hidden,P=r.classes,S=r.classNames,ne=r.dataAttrs,F=r.styles,$=r.components,se=r.onClear,ie=z!=null?z:C,G=($==null?void 0:$.affixWrapper)||"span",pe=($==null?void 0:$.groupWrapper)||"span",Ce=($==null?void 0:$.wrapper)||"span",le=($==null?void 0:$.groupAddon)||"span",re=(0,x.useRef)(null),ye=function(oe){var Pe;(Pe=re.current)!==null&&Pe!==void 0&&Pe.contains(oe.target)&&(fe==null||fe())},ae=ee(r),Y=(0,x.cloneElement)(ie,{value:te,className:h()(ie.props.className,!ae&&(S==null?void 0:S.variant))||null}),ce=(0,x.useRef)(null);if(x.useImperativeHandle(R,function(){return{nativeElement:ce.current||re.current}}),ae){var Re=null;if(H){var ve=!_&&!V&&te,X="".concat(I,"-clear-icon"),Q=(0,U.Z)(H)==="object"&&H!==null&&H!==void 0&&H.clearIcon?H.clearIcon:"\u2716";Re=x.createElement("span",{onClick:function(oe){N==null||N(oe),se==null||se()},onMouseDown:function(oe){return oe.preventDefault()},className:h()(X,(0,w.Z)((0,w.Z)({},"".concat(X,"-hidden"),!ve),"".concat(X,"-has-suffix"),!!L)),role:"button",tabIndex:-1},Q)}var A="".concat(I,"-affix-wrapper"),Ie=h()(A,(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},"".concat(I,"-disabled"),_),"".concat(A,"-disabled"),_),"".concat(A,"-focused"),ue),"".concat(A,"-readonly"),V),"".concat(A,"-input-with-clear-btn"),L&&H&&te),P==null?void 0:P.affixWrapper,S==null?void 0:S.affixWrapper,S==null?void 0:S.variant),Ee=(L||H)&&x.createElement("span",{className:h()("".concat(I,"-suffix"),S==null?void 0:S.suffix),style:F==null?void 0:F.suffix},Re,L);Y=x.createElement(G,(0,p.Z)({className:Ie,style:F==null?void 0:F.affixWrapper,onClick:ye},ne==null?void 0:ne.affixWrapper,{ref:re}),M&&x.createElement("span",{className:h()("".concat(I,"-prefix"),S==null?void 0:S.prefix),style:F==null?void 0:F.prefix},M),Y,Ee)}if(D(r)){var de="".concat(I,"-group"),me="".concat(de,"-addon"),k="".concat(de,"-wrapper"),Oe=h()("".concat(I,"-wrapper"),de,P==null?void 0:P.wrapper,S==null?void 0:S.wrapper),je=h()(k,(0,w.Z)({},"".concat(k,"-disabled"),_),P==null?void 0:P.group,S==null?void 0:S.groupWrapper);Y=x.createElement(pe,{className:je,ref:ce},x.createElement(Ce,{className:Oe},T&&x.createElement(le,{className:me},T),Y,j&&x.createElement(le,{className:me},j)))}return x.cloneElement(Y,{className:h()((m=Y.props)===null||m===void 0?void 0:m.className,K)||null,style:(0,g.Z)((0,g.Z)({},(y=Y.props)===null||y===void 0?void 0:y.style),B),hidden:be})}),Te=Ve,Fe=e(71366),De=null;function Xe(r,R){if(!R.max)return!0;var m=R.strategy(r);return m<=R.max}function ze(r,R){return React.useMemo(function(){var m={};R&&(m.show=_typeof(R)==="object"&&R.formatter?R.formatter:!!R),m=_objectSpread(_objectSpread({},m),r);var y=m,C=y.show,z=_objectWithoutProperties(y,De);return _objectSpread(_objectSpread({},z),{},{show:!!C,showFormatter:typeof C=="function"?C:void 0,strategy:z.strategy||function(I){return I.length}})},[r,R])}var We=null,bt=null,Ct=null,It=null,at=e(78847),Qe=e(68528),ke=e(32961),ot=e(31468),ut=e.n(ot),st=e(10933),qe=e(40425),et=e(79254),it=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -9,7 +9,7 @@ top:0 !important; right:0 !important; pointer-events: none !important; -`,it=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],We={},X;function lt(r){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=r.getAttribute("id")||r.getAttribute("data-reactid")||r.getAttribute("name");if(R&&We[m])return We[m];var y=window.getComputedStyle(r),C=y.getPropertyValue("box-sizing")||y.getPropertyValue("-moz-box-sizing")||y.getPropertyValue("-webkit-box-sizing"),O=parseFloat(y.getPropertyValue("padding-bottom"))+parseFloat(y.getPropertyValue("padding-top")),I=parseFloat(y.getPropertyValue("border-bottom-width"))+parseFloat(y.getPropertyValue("border-top-width")),M=it.map(function(T){return"".concat(T,":").concat(y.getPropertyValue(T))}).join(";"),L={sizingStyle:M,paddingSize:O,borderSize:I,boxSizing:C};return R&&m&&(We[m]=L),L}function ct(r){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;X||(X=document.createElement("textarea"),X.setAttribute("tab-index","-1"),X.setAttribute("aria-hidden","true"),document.body.appendChild(X)),r.getAttribute("wrap")?X.setAttribute("wrap",r.getAttribute("wrap")):X.removeAttribute("wrap");var C=lt(r,R),O=C.paddingSize,I=C.borderSize,M=C.boxSizing,L=C.sizingStyle;X.setAttribute("style","".concat(L,";").concat(st)),X.value=r.value||r.placeholder||"";var T=void 0,j=void 0,H,Z=X.scrollHeight;if(M==="border-box"?Z+=I:M==="content-box"&&(Z-=O),m!==null||y!==null){X.value=" ";var G=X.scrollHeight-O;m!==null&&(T=G*m,M==="border-box"&&(T=T+O+I),Z=Math.max(T,Z)),y!==null&&(j=G*y,M==="border-box"&&(j=j+O+I),H=Z>j?"":"hidden",Z=Math.min(j,Z))}var V={height:Z,overflowY:H,resize:"none"};return T&&(V.minHeight=T),j&&(V.maxHeight=j),V}var he=e(27174),dt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Be=0,Ze=1,Ue=2,ft=x.forwardRef(function(r,R){var m=r,y=m.prefixCls,C=m.defaultValue,O=m.value,I=m.autoSize,M=m.onResize,L=m.className,T=m.style,j=m.disabled,H=m.onChange,Z=m.onInternalAutoSize,G=v()(m,dt),V=(0,Qe.Z)(C,{value:O,postState:function(A){return A!=null?A:""}}),le=d()(V,2),de=le[0],Y=le[1],te=function(A){Y(A.target.value),H==null||H(A)},N=x.useRef();x.useImperativeHandle(R,function(){return{textArea:N.current}});var Ie=x.useMemo(function(){return I&&ot()(I)==="object"?[I.minRows,I.maxRows]:[]},[I]),P=d()(Ie,2),S=P[0],ne=P[1],F=!!I,$=function(){try{if(document.activeElement===N.current){var A=N.current,me=A.selectionStart,J=A.selectionEnd,ce=A.scrollTop;N.current.setSelectionRange(me,J),N.current.scrollTop=ce}}catch(Ee){}},re=x.useState(Ue),fe=d()(re,2),Q=fe[0],oe=fe[1],ye=x.useState(),ue=d()(ye,2),pe=ue[0],Re=ue[1],ve=function(){oe(Be)};(0,ke.default)(function(){F&&ve()},[O,S,ne,F]),(0,ke.default)(function(){if(Q===Be)oe(Ze);else if(Q===Ze){var k=ct(N.current,!1,S,ne);oe(Ue),Re(k)}else $()},[Q]);var W=x.useRef(),se=function(){qe.Z.cancel(W.current)},Se=function(A){Q===Ue&&(M==null||M(A),I&&(se(),W.current=(0,qe.Z)(function(){ve()})))};x.useEffect(function(){return se},[]);var be=F?pe:null,ie=n()(n()({},T),be);return(Q===Be||Q===Ze)&&(ie.overflowY="hidden",ie.overflowX="hidden"),(0,he.jsx)(ut.Z,{onResize:Se,disabled:!(I||M),children:(0,he.jsx)("textarea",n()(n()({},G),{},{ref:N,style:ie,className:h()(y,L,s()({},"".concat(y,"-disabled"),j)),disabled:j,value:de,onChange:te}))})}),et=ft,pt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","readOnly"],vt=x.forwardRef(function(r,R){var m,y=r.defaultValue,C=r.value,O=r.onFocus,I=r.onBlur,M=r.onChange,L=r.allowClear,T=r.maxLength,j=r.onCompositionStart,H=r.onCompositionEnd,Z=r.suffix,G=r.prefixCls,V=G===void 0?"rc-textarea":G,le=r.showCount,de=r.count,Y=r.className,te=r.style,N=r.disabled,Ie=r.hidden,P=r.classNames,S=r.styles,ne=r.onResize,F=r.onClear,$=r.readOnly,re=v()(r,pt),fe=(0,Qe.Z)(y,{value:C,defaultValue:y}),Q=d()(fe,2),oe=Q[0],ye=Q[1],ue=oe==null?"":String(oe),pe=x.useState(!1),Re=d()(pe,2),ve=Re[0],W=Re[1],se=x.useRef(!1),Se=x.useState(null),be=d()(Se,2),ie=be[0],k=be[1],A=(0,x.useRef)(null),me=(0,x.useRef)(null),J=function(){var E;return(E=me.current)===null||E===void 0?void 0:E.textArea},ce=function(){J().focus()};(0,x.useImperativeHandle)(R,function(){var z;return{resizableTextArea:me.current,focus:ce,blur:function(){J().blur()},nativeElement:((z=A.current)===null||z===void 0?void 0:z.nativeElement)||J()}}),(0,x.useEffect)(function(){W(function(z){return!N&&z})},[N]);var Ee=x.useState(null),we=d()(Ee,2),Pe=we[0],Te=we[1];x.useEffect(function(){if(Pe){var z;(z=J()).setSelectionRange.apply(z,i()(Pe))}},[Pe]);var B=(0,rt.ZP)(de,le),q=(m=B.max)!==null&&m!==void 0?m:T,Ae=Number(q)>0,je=B.strategy(ue),tt=!!q&&je>q,Ke=function(E,ae){var xe=ae;!se.current&&B.exceedFormatter&&B.max&&B.strategy(ae)>B.max&&(xe=B.exceedFormatter(ae,{max:B.max}),ae!==xe&&Te([J().selectionStart||0,J().selectionEnd||0])),ye(xe),(0,Xe.rJ)(E.currentTarget,E,M,xe)},nt=function(E){se.current=!0,j==null||j(E)},U=function(E){se.current=!1,Ke(E,E.currentTarget.value),H==null||H(E)},K=function(E){Ke(E,E.target.value)},Ce=function(E){var ae=re.onPressEnter,xe=re.onKeyDown;E.key==="Enter"&&ae&&ae(E),xe==null||xe(E)},$e=function(E){W(!0),O==null||O(E)},_e=function(E){W(!1),I==null||I(E)},He=function(E){ye(""),ce(),(0,Xe.rJ)(J(),E,M)},Ne=Z,ze;B.show&&(B.showFormatter?ze=B.showFormatter({value:ue,count:je,maxLength:q}):ze="".concat(je).concat(Ae?" / ".concat(q):""),Ne=(0,he.jsxs)(he.Fragment,{children:[Ne,(0,he.jsx)("span",{className:h()("".concat(V,"-data-count"),P==null?void 0:P.count),style:S==null?void 0:S.count,children:ze})]}));var gt=function(E){var ae;ne==null||ne(E),(ae=J())!==null&&ae!==void 0&&ae.style.height&&k(!0)},ht=!re.autoSize&&!le&&!L;return(0,he.jsx)(Me,{ref:A,value:ue,allowClear:L,handleReset:He,suffix:Ne,prefixCls:V,classNames:n()(n()({},P),{},{affixWrapper:h()(P==null?void 0:P.affixWrapper,s()(s()({},"".concat(V,"-show-count"),le),"".concat(V,"-textarea-allow-clear"),L))}),disabled:N,focused:ve,className:h()(Y,tt&&"".concat(V,"-out-of-range")),style:n()(n()({},te),ie&&!ht?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ze=="string"?ze:void 0}},hidden:Ie,readOnly:$,onClear:F,children:(0,he.jsx)(et,n()(n()({},re),{},{maxLength:T,onKeyDown:Ce,onChange:K,onFocus:$e,onBlur:_e,onCompositionStart:nt,onCompositionEnd:U,className:h()(P==null?void 0:P.textarea),style:n()(n()({},S==null?void 0:S.textarea),{},{resize:te==null?void 0:te.resize}),disabled:N,prefixCls:V,onResize:gt,ref:me,readOnly:$}))})}),mt=vt,xt=mt},65403:function(t,u,e){"use strict";e.r(u)},2254:function(t,u,e){"use strict";e.r(u),e.d(u,{texts:function(){return s}});var c=e(82797);const s=[]},34454:function(t,u,e){"use strict";e.r(u),e.d(u,{texts:function(){return s}});var c=e(4e4);const s=[{value:" ",paraId:0,tocIndex:0},{value:" ",paraId:0,tocIndex:0},{value:" ",paraId:0,tocIndex:0},{value:" ",paraId:0,tocIndex:0},{value:" ",paraId:0,tocIndex:0},{value:"Pretty Textarea react component used in ",paraId:1,tocIndex:0},{value:"ant.design",paraId:1,tocIndex:0},{value:".",paraId:1,tocIndex:0},{value:"https://react-component.github.io/textarea/",paraId:2,tocIndex:1},{value:`import Textarea from 'rc-textarea'; +`,lt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Be={},J;function ct(r){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=r.getAttribute("id")||r.getAttribute("data-reactid")||r.getAttribute("name");if(R&&Be[m])return Be[m];var y=window.getComputedStyle(r),C=y.getPropertyValue("box-sizing")||y.getPropertyValue("-moz-box-sizing")||y.getPropertyValue("-webkit-box-sizing"),z=parseFloat(y.getPropertyValue("padding-bottom"))+parseFloat(y.getPropertyValue("padding-top")),I=parseFloat(y.getPropertyValue("border-bottom-width"))+parseFloat(y.getPropertyValue("border-top-width")),M=lt.map(function(T){return"".concat(T,":").concat(y.getPropertyValue(T))}).join(";"),L={sizingStyle:M,paddingSize:z,borderSize:I,boxSizing:C};return R&&m&&(Be[m]=L),L}function dt(r){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;J||(J=document.createElement("textarea"),J.setAttribute("tab-index","-1"),J.setAttribute("aria-hidden","true"),document.body.appendChild(J)),r.getAttribute("wrap")?J.setAttribute("wrap",r.getAttribute("wrap")):J.removeAttribute("wrap");var C=ct(r,R),z=C.paddingSize,I=C.borderSize,M=C.boxSizing,L=C.sizingStyle;J.setAttribute("style","".concat(L,";").concat(it)),J.value=r.value||r.placeholder||"";var T=void 0,j=void 0,K,B=J.scrollHeight;if(M==="border-box"?B+=I:M==="content-box"&&(B-=z),m!==null||y!==null){J.value=" ";var _=J.scrollHeight-z;m!==null&&(T=_*m,M==="border-box"&&(T=T+z+I),B=Math.max(T,B)),y!==null&&(j=_*y,M==="border-box"&&(j=j+z+I),K=B>j?"":"hidden",B=Math.min(j,B))}var V={height:B,overflowY:K,resize:"none"};return T&&(V.minHeight=T),j&&(V.maxHeight=j),V}var he=e(27174),ft=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ze=0,Ue=1,Ke=2,pt=x.forwardRef(function(r,R){var m=r,y=m.prefixCls,C=m.defaultValue,z=m.value,I=m.autoSize,M=m.onResize,L=m.className,T=m.style,j=m.disabled,K=m.onChange,B=m.onInternalAutoSize,_=v()(m,ft),V=(0,ke.Z)(C,{value:z,postState:function(A){return A!=null?A:""}}),ue=d()(V,2),fe=ue[0],H=ue[1],te=function(A){H(A.target.value),K==null||K(A)},N=x.useRef();x.useImperativeHandle(R,function(){return{textArea:N.current}});var be=x.useMemo(function(){return I&&ut()(I)==="object"?[I.minRows,I.maxRows]:[]},[I]),P=d()(be,2),S=P[0],ne=P[1],F=!!I,$=function(){try{if(document.activeElement===N.current){var A=N.current,Ie=A.selectionStart,Ee=A.selectionEnd,de=A.scrollTop;N.current.setSelectionRange(Ie,Ee),N.current.scrollTop=de}}catch(me){}},se=x.useState(Ke),ie=d()(se,2),G=ie[0],pe=ie[1],Ce=x.useState(),le=d()(Ce,2),re=le[0],ye=le[1],ae=function(){pe(Ze)};(0,qe.default)(function(){F&&ae()},[z,S,ne,F]),(0,qe.default)(function(){if(G===Ze)pe(Ue);else if(G===Ue){var Q=dt(N.current,!1,S,ne);pe(Ke),ye(Q)}else $()},[G]);var Y=x.useRef(),ce=function(){et.Z.cancel(Y.current)},Re=function(A){G===Ke&&(M==null||M(A),I&&(ce(),Y.current=(0,et.Z)(function(){ae()})))};x.useEffect(function(){return ce},[]);var ve=F?re:null,X=n()(n()({},T),ve);return(G===Ze||G===Ue)&&(X.overflowY="hidden",X.overflowX="hidden"),(0,he.jsx)(st.Z,{onResize:Re,disabled:!(I||M),children:(0,he.jsx)("textarea",n()(n()({},_),{},{ref:N,style:X,className:h()(y,L,s()({},"".concat(y,"-disabled"),j)),disabled:j,value:fe,onChange:te}))})}),tt=pt,vt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],mt=x.forwardRef(function(r,R){var m,y=r.defaultValue,C=r.value,z=r.onFocus,I=r.onBlur,M=r.onChange,L=r.allowClear,T=r.maxLength,j=r.onCompositionStart,K=r.onCompositionEnd,B=r.suffix,_=r.prefixCls,V=_===void 0?"rc-textarea":_,ue=r.showCount,fe=r.count,H=r.className,te=r.style,N=r.disabled,be=r.hidden,P=r.classNames,S=r.styles,ne=r.onResize,F=r.onClear,$=r.onPressEnter,se=r.readOnly,ie=r.autoSize,G=r.onKeyDown,pe=v()(r,vt),Ce=(0,ke.Z)(y,{value:C,defaultValue:y}),le=d()(Ce,2),re=le[0],ye=le[1],ae=re==null?"":String(re),Y=x.useState(!1),ce=d()(Y,2),Re=ce[0],ve=ce[1],X=x.useRef(!1),Q=x.useState(null),A=d()(Q,2),Ie=A[0],Ee=A[1],de=(0,x.useRef)(null),me=(0,x.useRef)(null),k=function(){var E;return(E=me.current)===null||E===void 0?void 0:E.textArea},Oe=function(){k().focus()};(0,x.useImperativeHandle)(R,function(){var O;return{resizableTextArea:me.current,focus:Oe,blur:function(){k().blur()},nativeElement:((O=de.current)===null||O===void 0?void 0:O.nativeElement)||k()}}),(0,x.useEffect)(function(){ve(function(O){return!N&&O})},[N]);var je=x.useState(null),we=d()(je,2),oe=we[0],Pe=we[1];x.useEffect(function(){if(oe){var O;(O=k()).setSelectionRange.apply(O,i()(oe))}},[oe]);var q=(0,at.ZP)(fe,ue),Ae=(m=q.max)!==null&&m!==void 0?m:T,nt=Number(Ae)>0,$e=q.strategy(ae),Z=!!Ae&&$e>Ae,W=function(E,xe){var Le=xe;!X.current&&q.exceedFormatter&&q.max&&q.strategy(xe)>q.max&&(Le=q.exceedFormatter(xe,{max:q.max}),xe!==Le&&Pe([k().selectionStart||0,k().selectionEnd||0])),ye(Le),(0,Qe.rJ)(E.currentTarget,E,M,Le)},Se=function(E){X.current=!0,j==null||j(E)},Ne=function(E){X.current=!1,W(E,E.currentTarget.value),K==null||K(E)},_e=function(E){W(E,E.target.value)},He=function(E){E.key==="Enter"&&$&&$(E),G==null||G(E)},rt=function(E){ve(!0),z==null||z(E)},ht=function(E){ve(!1),I==null||I(E)},yt=function(E){ye(""),Oe(),(0,Qe.rJ)(k(),E,M)},Ge=B,Me;q.show&&(q.showFormatter?Me=q.showFormatter({value:ae,count:$e,maxLength:Ae}):Me="".concat($e).concat(nt?" / ".concat(Ae):""),Ge=(0,he.jsxs)(he.Fragment,{children:[Ge,(0,he.jsx)("span",{className:h()("".concat(V,"-data-count"),P==null?void 0:P.count),style:S==null?void 0:S.count,children:Me})]}));var Rt=function(E){var xe;ne==null||ne(E),(xe=k())!==null&&xe!==void 0&&xe.style.height&&Ee(!0)},St=!ie&&!ue&&!L;return(0,he.jsx)(Te,{ref:de,value:ae,allowClear:L,handleReset:yt,suffix:Ge,prefixCls:V,classNames:n()(n()({},P),{},{affixWrapper:h()(P==null?void 0:P.affixWrapper,s()(s()({},"".concat(V,"-show-count"),ue),"".concat(V,"-textarea-allow-clear"),L))}),disabled:N,focused:Re,className:h()(H,Z&&"".concat(V,"-out-of-range")),style:n()(n()({},te),Ie&&!St?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Me=="string"?Me:void 0}},hidden:be,readOnly:se,onClear:F,children:(0,he.jsx)(tt,n()(n()({},pe),{},{autoSize:ie,maxLength:T,onKeyDown:He,onChange:_e,onFocus:rt,onBlur:ht,onCompositionStart:Se,onCompositionEnd:Ne,className:h()(P==null?void 0:P.textarea),style:n()(n()({},S==null?void 0:S.textarea),{},{resize:te==null?void 0:te.resize}),disabled:N,prefixCls:V,onResize:Rt,ref:me,readOnly:se}))})}),xt=mt,gt=xt},65403:function(t,u,e){"use strict";e.r(u)},2254:function(t,u,e){"use strict";e.r(u),e.d(u,{texts:function(){return s}});var c=e(82797);const s=[]},34454:function(t,u,e){"use strict";e.r(u),e.d(u,{texts:function(){return s}});var c=e(4e4);const s=[{value:" ",paraId:0,tocIndex:0},{value:" ",paraId:0,tocIndex:0},{value:" ",paraId:0,tocIndex:0},{value:" ",paraId:0,tocIndex:0},{value:" ",paraId:0,tocIndex:0},{value:"Pretty Textarea react component used in ",paraId:1,tocIndex:0},{value:"ant.design",paraId:1,tocIndex:0},{value:".",paraId:1,tocIndex:0},{value:"https://react-component.github.io/textarea/",paraId:2,tocIndex:1},{value:`import Textarea from 'rc-textarea'; import { render } from 'react-dom'; render(