PageSourceSearch

https://www.dorothyperkins.com/build/_shared/chunk-BA2K3D5C.js

js dorothyperkins.com collected 2026-09-26 02:56:05 UTC 7,948 bytes, 1 lines download raw bytes

1import{a as ne}from"/build/_shared/chunk-US3DNLVM.js";import{a as ie}from"/build/_shared/chunk-H6S7FWVP.js";import{b as m}from"/build/_shared/chunk-T36URGAI.js";var W=m(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.on=oe;L.off=ae;function oe(r,e,i,t){t=t||!1,r.addEventListener?r.addEventListener(e,i,t):r.attachEvent&&r.attachEvent("on"+e,function(n){i.call(r,n||window.event)})}function ae(r,e,i,t){t=t||!1,r.removeEventListener?r.removeEventListener(e,i,t):r.detachEvent&&r.detachEvent("on"+e,i)}});var F=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.default=function(r){if(!(r instanceof HTMLElement))return document.documentElement;for(var e=r.style.position==="absolute",i=/(scroll|auto)/,t=r;t;){if(!t.parentNode)return r.ownerDocument||document.documentElement;var n=window.getComputedStyle(t),o=n.position,a=n.overflow,l=n["overflow-x"],u=n["overflow-y"];if(o==="static"&&e){t=t.parentNode;continue}if(i.test(a)&&i.test(l)&&i.test(u))return t;t=t.parentNode}return r.ownerDocument||r.documentElement||document.documentElement}});var G=m(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.default=fe;function fe(r,e,i){var t=void 0,n=void 0,o=void 0,a=void 0,l=void 0,u=function p(){var v=+new Date-a;v<e&&v>=0?t=setTimeout(p,e-v):(t=null,i||(l=r.apply(o,n),t||(o=null,n=null)))};return function(){o=this,n=arguments,a=+new Date;var v=i&&!t;return t||(t=setTimeout(u,e)),v&&(l=r.apply(o,n),o=null,n=null),l}}});var J=m(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.default=le;function le(r,e,i){e||(e=250);var t,n;return function(){var o=i||this,a=+new Date,l=arguments;t&&a<t+e?(clearTimeout(n),n=setTimeout(function(){t=a,r.apply(o,l)},e)):(t=a,r.apply(o,l))}}});var _e=m(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.forceVisible=h.forceCheck=h.lazyload=void 0;var Q=function(){function r(e,i){for(var t=0;t<i.length;t++){var n=i[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,i,t){return i&&r(e.prototype,i),t&&r(e,t),e}}(),I=ie(),P=g(I),ue=ne(),f=g(ue),b=W(),se=F(),A=g(se),de=G(),ce=g(de),ve=J(),he=g(ve);function g(r){return r&&r.__esModule?r:{default:r}}function X(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Y(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Z(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var c={top:0,right:0,bottom:0,left:0,width:0,height:0},w="data-lazyload-listened",d=[],D=[],C=!1;try{K=Object.defineProperty({},"passive",{get:function(){C=!0}}),window.addEventListener("test",null,K)}catch{}var K,y=C?{capture:!1,passive:!0}:!1,pe=function(e,i){var t=e.ref,n=void 0,o=void 0,a=void 0,l=void 0;try{var u=i.getBoundingClientRect();n=u.top,o=u.left,a=u.height,l=u.width}catch{n=c.top,o=c.left,a=c.height,l=c.width}var p=window.innerHeight||document.documentElement.clientHeight,v=window.innerWidth||document.documentElement.clientWidth,V=Math.max(n,0),q=Math.max(o,0),ee=Math.min(p,n+a)-V,te=Math.min(v,o+l)-q,N=void 0,x=void 0,H=void 0,R=void 0;try{var _=t.getBoundingClientRect();N=_.top,x=_.left,H=_.height,R=_.width}catch{N=c.top,x=c.left,H=c.height,R=c.width}var S=N-V,U=x-q,E=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return S-E[0]<=ee&&S+H+E[1]>=0&&U-E[0]<=te&&U+R+E[1]>=0},ye=function(e){var i=e.ref;if(!(i.offsetWidth||i.offsetHeight||i.getClientRects().length))return!1;var t=void 0,n=void 0;try{var o=i.getBoundingClientRect();t=o.top,n=o.height}catch{t=c.top,n=c.height}var a=window.innerHeight||document.documentElement.clientHeight,l=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return t-l[0]<=a&&t+n+l[1]>=0},B=function(e){var i=e.ref;if(i instanceof HTMLElement){var t=(0,A.default)(i),n=e.props.overflow&&t!==i.ownerDocument&&t!==document&&t!==document.documentElement,o=n?pe(e,t):ye(e);o?e.visible||(e.props.once&&D.push(e),e.visible=!0,e.forceUpdate()):e.props.once&&e.visible||(e.visible=!1,e.props.unmountIfInvisible&&e.forceUpdate())}},$=function(){D.forEach(function(e){var i=d.indexOf(e);i!==-1&&d.splice(i,1)}),D=[]},T=function(){for(var e=0;e<d.length;++e){var i=d[e];B(i)}$()},be=function(){for(var e=0;e<d.length;++e){var i=d[e];i.visible=!0,i.forceUpdate()}$()},O=void 0,s=null,me=function(e){return typeof e=="string"},z=function(r){Z(e,r);function e(i){X(this,e);var t=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i));return t.visible=!1,t.setRef=t.setRef.bind(t),t}
1return Q(e,[{key:"componentDidMount",value:function(){var t=window,n=this.props.scrollContainer;n&&me(n)&&(t=t.document.querySelector(n));var o=this.props.debounce!==void 0&&O==="throttle"||O==="debounce"&&this.props.debounce===void 0;if(o&&((0,b.off)(t,"scroll",s,y),(0,b.off)(window,"resize",s,y),s=null),s||(this.props.debounce!==void 0?(s=(0,ce.default)(T,typeof this.props.debounce=="number"?this.props.debounce:300),O="debounce"):this.props.throttle!==void 0?(s=(0,he.default)(T,typeof this.props.throttle=="number"?this.props.throttle:300),O="throttle"):s=T),this.props.overflow){var a=(0,A.default)(this.ref);if(a&&typeof a.getAttribute=="function"){var l=1+ +a.getAttribute(w);l===1&&a.addEventListener("scroll",s,y),a.setAttribute(w,l)}}else if(d.length===0||o){var u=this.props,p=u.scroll,v=u.resize;p&&(0,b.on)(t,"scroll",s,y),v&&(0,b.on)(window,"resize",s,y)}d.push(this),B(this)}},{key:"shouldComponentUpdate",value:function(){return this.visible}},{key:"componentWillUnmount",value:function(){if(this.props.overflow){var t=(0,A.default)(this.ref);if(t&&typeof t.getAttribute=="function"){var n=+t.getAttribute(w)-1;n===0?(t.removeEventListener("scroll",s,y),t.removeAttribute(w)):t.setAttribute(w,n)}}var o=d.indexOf(this);o!==-1&&d.splice(o,1),d.length===0&&typeof window<"u"&&((0,b.off)(window,"resize",s,y),(0,b.off)(window,"scroll",s,y))}},{key:"setRef",value:function(t){t&&(this.ref=t)}},{key:"render",value:function(){var t=this.props,n=t.height,o=t.children,a=t.placeholder,l=t.className,u=t.classNamePrefix,p=t.style;return P.default.createElement("div",{className:u+"-wrapper "+l,ref:this.setRef,style:p},this.visible?o:a||P.default.createElement("div",{style:{height:n},className:u+"-placeholder"}))}}]),e}(I.Component);z.propTypes={className:f.default.string,classNamePrefix:f.default.string,once:f.default.bool,height:f.default.oneOfType([f.default.number,f.default.string]),offset:f.default.oneOfType([f.default.number,f.default.arrayOf(f.default.number)]),overflow:f.default.bool,resize:f.default.bool,scroll:f.default.bool,children:f.default.node,throttle:f.default.oneOfType([f.default.number,f.default.bool]),debounce:f.default.oneOfType([f.default.number,f.default.bool]),placeholder:f.default.node,scrollContainer:f.default.oneOfType([f.default.string,f.default.object]),unmountIfInvisible:f.default.bool,style:f.default.object};z.defaultProps={className:"",classNamePrefix:"lazyload",once:!1,offset:0,overflow:!1,resize:!1,scroll:!0,unmountIfInvisible:!1};var we=function(e){return e.displayName||e.name||"Component"},ge=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(t){return function(n){Z(o,n);function o(){X(this,o);var a=Y(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return a.displayName="LazyLoad"+we(t),a}return Q(o,[{key:"render",value:function(){return P.default.createElement(z,e,P.default.createElement(t,this.props))}}]),o}(I.Component)}};h.lazyload=ge;h.default=z;h.forceCheck=T;h.forceVisible=be});export{_e as 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.