PageSourceSearch

https://www.elledecoration.co.uk/_assets/fre/scopes/hdm/_next/static/chunks/37655.77d857ce4f56eb37.js

js elledecoration.co.uk collected 2026-09-24 18:30:19 UTC 4,480 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[37655],{14621:(e,t,r)=>{r.d(t,{K:()=>p});var n=r(38536),i=r(28270),l=r(53225),o=r(71055);let u=1500,s=50;var a=r(9954);let c=1500,f=new Set(["contentHeight","isVisible","animationDuration","revealDelayMs"]),m=(0,n.A)("div",{shouldForwardProp:e=>!f.has(e),target:"e1pmxqrt0"})(({contentHeight:e,isVisible:t,animationDuration:r,revealDelayMs:n})=>{let l="number"!=typeof e||Number.isNaN(e)?0:e,o="number"!=typeof n||Number.isNaN(n)?c:n;return(0,i.Ay)("expand-on-load-wrapper",{maxHeight:t?`${l}px`:"0px",opacity:+!!t,overflowX:"visible",overflowY:"clip",transition:`max-height ${r}ms ease ${o}ms, opacity 300ms ease ${o}ms`,isolation:"isolate"})},""),p=({children:e,forceAnimate:t=!1,forceVisible:r=!1,revealDelayMs:n=c})=>{let{wrapperProps:i,contentRef:f}=(({flagKey:e,animationEnabled:t=!0,forceAnimate:r=!1,forceVisible:n=!1,animationDurationMs:i=u,delayMs:a=s})=>{let c=(0,l._P)(e),f=r||c,m=(0,o.useRef)(null),{0:p,1:b}=(0,o.useState)(null),{0:d,1:h}=(0,o.useState)(!1),{0:y,1:g}=(0,o.useState)(!1),v=f&&t?i:0;return(0,o.useLayoutEffect)(()=>{let e=m.current;if(!e)return;let t=()=>{let t=Math.round(("number"==typeof e.scrollHeight&&e.scrollHeight>0?e.scrollHeight:e.getBoundingClientRect?.().height)||0);t>0&&b(t)};t();let r="u">typeof ResizeObserver?new ResizeObserver(t):null;r&&r.observe(e);let n="u">typeof MutationObserver?new MutationObserver(t):null;return n&&n.observe(e,{childList:!0,subtree:!0}),()=>{r?.disconnect(),n?.disconnect()}},[]),(0,o.useEffect)(()=>{if(n){g(!0),h(!0);return}if(t){if(!f){g(!0),h(!0);return}if(!y){let e=setTimeout(()=>g(!0),a);return()=>clearTimeout(e)}h(!0)}},[t,a,n,y,f]),{wrapperProps:{contentHeight:p,isVisible:d,animationDuration:v},contentRef:m,isVisible:d,shouldAnimate:c}})({flagKey:"fre.piano.cls-optimized-components",animationDurationMs:r?0:void 0,delayMs:r?0:void 0,forceAnimate:t,forceVisible:r});return(0,a.Y)(m,{ref:f,contentHeight:i.contentHeight,isVisible:i.isVisible,animationDuration:i.animationDuration,revealDelayMs:r?0:n},e)}},37655:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});
1var n=r(93682),i=r(53225),l=r(25602),o=r(62717),u=r(47574),s=r(71055),a=r(68014),c=r.n(a),f=r(800),m=r(4040),p=r(73938),b=r(33788),d=r(60511),h=r(27236),y=r(14621),g=r(78860),v=r(9954);function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let N=c()(()=>Promise.all([r.e(14687),r.e(96206)]).then(r.bind(r,96206)),{ssr:!1,id:"3b85070"}),P=/^\.listicle_content_break_(\d+)$/;function _({className:e,listicleSlideCount:t}){let{0:r,1:n}=(0,s.useState)(null),a=(0,l.Dq)(),c=(0,g.z)((0,f.BV)("data.content.0.metadata.hide_all_recirc")),O=(0,l.vV)(),M=(0,s.useMemo)(()=>(0,m._C)(e),[e]),j=!!e?.startsWith(h.Vm),S=(0,s.useMemo)(()=>{if(!j)return NaN;let e=Number(M);return Number.isFinite(e)?e:NaN},[j,M]),D=j&&null!=t&&t>0&&S===t,E=(0,s.useMemo)(()=>j?`.${e}`:`.${d.qw}${M}`,[e,M,j]),[$,C]=(0,i._P)(["fre.piano.composer-targeted-mode","fre.piano.cls-optimized-components"]),H=($||j)&&!O,V=(0,l.Q2)({containerSelector:e?`.${e}`:"",enabled:H}),{0:Y,1:k}
1=(0,s.useState)(null);(0,s.useEffect)(()=>D&&H&&null!=t?(0,u.lh)("",e=>{if(null==e)return void k(null);let r=e.containerSelector,n=("string"==typeof r?r.trim():"").match(P);if(!n)return;let i=Number(n[1]);if(!Number.isFinite(i)||i<=t)return;let l=(0,o.BY)(e,"");null!=l&&k(l)}):void k(null),[D,t,H]),(0,s.useEffect)(()=>{V&&k(null)},[V]);let x=V??Y;(0,s.useEffect)(()=>{x?n(("u">typeof document?document.querySelector(E):null)??null):n(null)},[x,E]);let z=(0,f.Q6)("piano.inline_content",{}),A=(0,s.useMemo)(()=>(0,m.Er)(a,e),[a,e])||z.feature_version||m.jW,q=(0,s.useMemo)(()=>(0,m.aE)(z,A),[z,A]),R=(0,s.useMemo)(()=>w(w({},q),{},{articlePosition:M}),[q,M]);if(c||!H||!x||null==M||""===M||!r)return null;let B=String(q?.featureVersion)===b.Y?(0,v.Y)(N,{widgetId:x,parentClassName:e,moduleConfig:R}):(0,v.Y)(p.A,{parentClassName:e,moduleConfig:R}),F=C?(0,v.Y)(y.K,null,B):B;return(0,s.createPortal)(F,r)}}}]);

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.