PageSourceSearch

https://womiz.com/v3/_next/static/chunks/1960.6ccebb045261be2a52e0.js

js womiz.com collected 2026-10-08 18:07:36 UTC 2,056 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1960],{87343:function(e,t,r){var n=r(87462),a=r(45987),o=r(67294),u=(r(45697),r(79437)),l=r(17294);function i(e,t){return parseInt(e[t],10)||0}var s="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,f={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},c=o.forwardRef((function(e,t){var r=e.onChange,c=e.rows,d=e.rowsMax,h=e.rowsMin,v=void 0===h?1:h,w=e.style,b=e.value,m=(0,a.Z)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),g=c||v,p=o.useRef(null!=b).current,y=o.useRef(null),x=(0,l.Z)(t,y),E=o.useRef(null),M=o.useRef(0),Z=o.useState({}),C=Z[0],N=Z[1],k=o.useCallback((function(){var t=y.current,r=window.getComputedStyle(t),n=E.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");var a=r["box-sizing"],o=i(r,"padding-bottom")+i(r,"padding-top"),u=i(r,"border-bottom-width")+i(r,"border-top-width"),l=n.scrollHeight-o;n.value="x";var s=n.scrollHeight-o,f=l;g&&(f=Math.max(Number(g)*s,f)),d&&(f=Math.min(Number(d)*s,f));var c=(f=Math.max(f,s))+("border-box"===a?o+u:0),h=Math.abs(f-l)<=1;N((function(e){return M.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==h)?(M.current+=1,{overflow:h,outerHeightStyle:c}):e}))}),[d,g,e.placeholder]);o.useEffect((function(){var e=(0,u.Z)((function(){M.current=0,k()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[k]),s((function(){k()})),o.useEffect((function(){M.current=0}),[b]);return o.createElement(o.Fragment,null,o.createElement("textarea",(0,n.Z)({value:b,onChange:function(e){M.current=0,p||k(),r&&r(e)},ref:x,rows:g,style:(0,n.Z)({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},w)},m)),o.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:E,tabIndex:-1,style:(0,n.Z)({},f,w)}))}));t.Z=c},1960:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(87343)}}]);

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.