PageSourceSearch

https://www.redesigndaily.com/resources/combined/js/vendors-node_m…ler_index_js.13d39c7ac608e3e240b7.bundle.js

js redesigndaily.com collected 2026-09-29 09:29:02 UTC 7,055 bytes, 1 lines download raw bytes

1(self.hometalkChunk=self.hometalkChunk||[]).push([["vendors-node_modules_lodash-es_throttle_js-node_modules_react-infinite-scroller_index_js"],{21043(e,t,r){"use strict";r.d(t,{A:()=>i});var o=r(92720),n=r(85356);const i=function(e,t,r){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return(0,n.A)(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),(0,o.A)(e,t,{leading:i,maxWait:t,trailing:s})}},28645(e,t,r){e.exports=r(91593)()},31155(e,t,r){"use strict";r.d(t,{A:()=>c});var o=r(85356),n=r(62579),i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;const c=function(e){if("number"==typeof e)return e;if((0,n.A)(e))return NaN;if((0,o.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,o.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var r=a.test(e);return r||u.test(e)?l(e.slice(2),r?2:8):s.test(e)?NaN:+e}},42610(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},81420(e,t,r){e.exports=r(81528)},81528(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),n=r(96540),i=a(n),s=a(r(28645));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.scrollListener=r.scrollListener.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1(t,e),o(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("scroll",this.scrollListener,this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.props.useCapture)}},{key:"attachScrollListener",value:function(){if(this.props.hasMore){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.addEventListener("mousewheel",this.mousewheelListener,this.props.useCapture),e.addEventListener("scroll",this.scrollListener,this.props.useCapture),e.addEventListener("resize",this.scrollListener,this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1===e.deltaY&&e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,r=void 0;if(this.props.useWindow){var o=document.documentElement||document.body.parentNode||document.body,n=void 0!==t.pageYOffset?t.pageYOffset:o.scrollTop;r=this.props.isReverse?n:this.calculateTopPosition(e)+(e.offsetHeight-n-window.innerHeight)}else r=this.props.isReverse?e.parentNode.scrollTop:e.scrollHeight-e.parentNode.scrollTop-e.parentNode.clientHeight;r<Number(this.props.threshold)&&(this.detachScrollListener(),"function"==typeof this.props.loadMore&&this.props.loadMore(this.pageLoaded+=1))}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,o=t.element,n=t.hasMore,s=(t.initialLoad,t.isReverse),a=t.loader,u=(t.loadMore,t.pageStart,t.ref),l=(t.threshold,t.useCapture,t.useWindow,function(e,t){var r={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow"]));l.ref=function(t){e.scrollComponent=t,u&&u(t)};var c=[r];return n&&(a?s?c.unshift(a):c.push(a):this.defaultLoader&&(s?c.unshift(this.defaultLoader):c.push(this.defaultLoader))),i.default.createElement(o,l,c)}}]),t}(n.Component);u.propTypes={children:s.default.node.isRequired,element:s.default.string,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},u.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null},t.default=u,e.exports=t.default},90943(e,t,r){"use strict";r.d(t,{A:()=>n});var o=r(24606);const n=function(){return o.A.Date.now()}},91593(e,t,r){"use strict";var o=r(59395),n=r(90646),i=r(42610);e.exports=function(){function e(e,t,r,o,s,a){a!==i&&n(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=o,r.PropTypes=r,r}},92720(e,t,r){"use strict";r.d(t,{A:()=>u});var o=r(85356),n=r(90943),i=r(31155),s=Math.max,a=Math.min;const u=function(e,t,r){var u,l,c,p,d,f,h=0,v=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var r=u,o=l;return u=l=void 0,h=t,p=e.apply(o,r)}function L(e){var r=e-f;return void 0===f||r>=t||r<0||m&&e-h>=c}function b(){var e=(0,n.A)();if(L(e))return g(e);d=setTimeout(b,function(e){var r=t-(e-f);return m?a(r,c-(e-h)):r}(e))}function g(e){return d=void 0,y&&u?w(e):(u=l=void 0,p)}function _(){var e=(0,n.A)(),r=L(e);if(u=arguments,l=this,f=e,r){if(void 0===d)return function(e){return h=e,d=setTimeout(b,t),v?w(e):p}(f);
1if(m)return d=setTimeout(b,t),w(f)}return void 0===d&&(d=setTimeout(b,t)),p}return t=(0,i.A)(t)||0,(0,o.A)(r)&&(v=!!r.leading,c=(m="maxWait"in r)?s((0,i.A)(r.maxWait)||0,t):c,y="trailing"in r?!!r.trailing:y),_.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=f=l=d=void 0},_.flush=function(){return void 0===d?p:g((0,n.A)())},_}}}]);

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.