PageSourceSearch

https://www.rambler.ru/eco/static/js/desktop_longread_mobile_amp-ramblerComponents-textarea.76109193.js

js rambler.ru collected 2026-10-09 21:39:38 UTC 2,925 bytes, 2 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5387],{64186:(e,r,n)=>{!function(){var r={n:function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},d:function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o:function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};r.r(t),r.d(t,{Textarea:function(){return m},default:function(){return p}});var o=n(94634),c=r.n(o),a=n(91847),l=r.n(a),u=n(60930),s=r.n(u),i=n(56846),_=r.n(i);const d=(e,r)=>{e.textContent=r.replace(/\n$/g,"\n ")};var f={root:"rc__723gck",both:"rc__88jvxj",vertical:"rc__61ec1h",horizontal:"rc__8evxsj",resizer:"rc__7t8jhe",textarea:"rc__576fms",readOnly:"rc__7t1wsn",disabled:"rc__3z9axb",medium:"rc__3sjm9x",withAddedElements:"rc__7wucxa",fill:"rc__7y2ukc",error:"rc__2ryt9q",warning:"rc__4ychsw",success:"rc__86ja2u",border:"rc__7j2pvc",icon:"rc__v7re9j",done:"rc__899tp7",counter:"rc__yjw716"};const y=["className","style","type","size","status","placeholder","icon","rows","autoResize","resize","maxLength","value","disabled","onFocus","onBlur","onChange","onKeyPress","onClickIcon","onClick","forwardRef"],m=e=>{let{className:r,style:n,type:t="fill",size:o="small",status:a,placeholder:i,icon:m,rows:p=2,autoResize:h,resize:v="none",maxLength:b,value:g="",disabled:w,onFocus:j,onBlur:E,onChange:x,onKeyPress:C,onClickIcon:O,onClick:z,forwardRef:N}=e,A=l()(e,y);const k="function"!=typeof x,L=(0,u.useRef)(null),S=(0,u.useRef)(null),D=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return e=>{r.forEach(r=>{r&&("object"==typeof r?r.current=e:"function"==typeof r&&r(e))})}}(N,S),[P,R]=(0,u.useMemo)(()=>{if(!g)return[b,null];let e=null;return 100*g.length/b>=95&&(e="warning"),b<=g.length&&(e="error"),[b-g.length,e]},[g,b]);return(0,u.useEffect)(()=>{h&&L.current&&d(L.current,g)},[h,g]),s().createElement("div",{className:_()(f.root,f[t],f[a],f[o],f[v],g.length>0&&f.done,k&&f.readOnly,w&&f.disabled,(m||b>0)&&f.withAddedElements,r),style:n},h&&s().createElement("div",{className:f.resizer,ref:L}),s().createElement("textarea",c()({},A,{className:f.textarea,rows:p,placeholder:i,value:g,readOnly:k,disabled:w,onChange:x,onFocus:j,onInput:()=>{h&&L.current&&d(L.current,S.current.value)},onBlur:E,onClick:k?z:void 0,ref:D})),m&&!k&&s().createElement("button",{type:"button",className:f.icon,onClick:()=>{"function"==typeof O?O():S.current&&!k&&S.current.focus()}},m),m&&k&&s().createElement("span",{className:f.icon},m),b>0&&s().createElement("div",{className:_()(f.counter,f[R])},P))};var p=m;e.exports=t}()}}]);
2//# sourceMappingURL=desktop_longread_mobile_amp-ramblerComponents-textarea.76109193.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.