PageSourceSearch

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

js dorothyperkins.com collected 2026-09-26 02:57:23 UTC 2,345 bytes, 1 lines download raw bytes

1import{a as F}from"/build/_shared/chunk-FD5H2VPE.js";import{a as $}from"/build/_shared/chunk-POUH3CHJ.js";import{b as x,e as C,f as S,h as U}from"/build/_shared/chunk-SDVBCS2Z.js";import{a as P}from"/build/_shared/chunk-J6EJ4OCR.js";import{c as j}from"/build/_shared/chunk-7OOGFDHZ.js";import{a as w}from"/build/_shared/chunk-DEVQKMWM.js";import{a as v}from"/build/_shared/chunk-5OBEDPFR.js";import{a as E}from"/build/_shared/chunk-H6S7FWVP.js";import{d as f}from"/build/_shared/chunk-T36URGAI.js";var a=f(E());var g=t=>{let e=/^_\d+$/.test(t)?t.replace(/_/,""):t;return/^\d+$/.test(e)?parseInt(e,10):F[e]||0},H=t=>`(min-width: ${t+1}px)`,M=t=>`(max-width: ${t}px)`,T=(t,e)=>`(min-width: ${t+1}px) and (max-width: ${e}px)`,O=t=>Object.keys(t).reduce((e,i,n,o)=>o.length===1||n===o.length-1?[...e,{...t[i]||{url:""},media:H(g(i))}]:e.length?[...e,{...t[i]||{url:""},media:T(g(i),g(o[n+1]))}]:[...e,{...t[i]||{url:""},media:M(g(o[n+1]))}],[]);var s=f(v()),N=t=>t.find(e=>(e==null?void 0:e.url)&&(e==null?void 0:e.deviceClass)==="mobile"&&typeof e.url=="string")||t[0],q=(t,e,i,n,o,c)=>C({src:{url:t.url,width:t.width,height:t.height},crop:e,urlFormat:i,env:n,fascia:o,enablePlpReframeImages:c}),re=t=>{let{src:e,alt:i,objectFit:n,fillParent:o,className:c,imgClassName:L,"data-test-id":k,disableUserSelect:A,lazyLoad:z,fetchPriority:B,crop:l,urlFormat:d="default",variant:R,index:D,isZoomed:y,...Z}=t,{env:u}=j(),h=(0,a.useContext)(w),{enablePlpReframeImages:I}=(0,a.useContext)($),m=(0,a.useMemo)(()=>!Array.isArray(e)&&!e.url?O(e):Array.isArray(e)?e:[e],[e]),_=(0,a.useMemo)(()=>q(N(m),l,d,u,h,I),[m,l,d,u,h,I]),p=(0,a.useMemo)(()=>N(m),[m]);return(0,s.jsxs)("picture",{className:c,"data-test-id":k,...Z,children:[m.map((r,b)=>r!=null&&r.url?(0,s.jsx)(a.default.Fragment,{children:x(r.url)?(0,s.jsx)("source",{media:r.media,height:r.height,width:r.width,srcSet:S({src:{...r},crop:l,urlFormat:d,env:u,fascia:h,enablePlpReframeImages:I})},`auto-${b}`):(0,s.jsx)("source",{height:r.height,width:r.width,media:r.media,srcSet:S({src:r})},`source-${b}`)},`source-${b}`):null),(0,s.jsx)(U,{src:_,alt:i,lazyLoad:z,fetchPriority:B,objectFit:n,fillParent:o,disableUserSelect:A,width:y?p.width*2:p.width,height:y?p.height*2:p.height,crop:l,className:P({"rounded-full p-2":R==="ctaHighlights","rounded-full":R==="subCategoryImage"},L)})]})};export{re 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.