PageSourceSearch

https://www.boohoo.com/build/_shared/chunk-PE2RAMGK.js

js boohoo.com collected 2026-09-24 08:34:03 UTC 1,692 bytes, 1 lines download raw bytes

1import{a as p}from"/build/_shared/chunk-FONEQPGK.js";import{a as P}from"/build/_shared/chunk-5OBEDPFR.js";import{a as d}from"/build/_shared/chunk-H6S7FWVP.js";import{d as y}from"/build/_shared/chunk-T36URGAI.js";var r=y(d());var C=y(P()),T=(0,r.createContext)({pageCategory:null,setPageCategory:()=>{},origin:null,trackUserInteraction:()=>{},rootTrack:()=>{}});function f({children:t}){let[e,s]=(0,r.useState)("all"),o=(0,r.useRef)(e);(0,r.useEffect)(()=>{o.current=e},[e]);let c=(0,r.useCallback)(l=>{var n,u,i;let a={event:"user_interaction",page_category:e!=null?e:"all",...l};p({...a,label:(n=a.label)!=null?n:null,value:(u=a.value)!=null?u:null,position:(i=a.position)!=null?i:null})},[e]),g=(0,r.useMemo)(()=>({pageCategory:e,setPageCategory:s,origin:null,trackUserInteraction:c,rootTrack:c}),[e,c]);return(0,C.jsx)(T.Provider,{value:g,children:t})}function v({origin:t,children:e,replaceSection:s=!1}){let o=(0,r.useContext)(T),{trackUserInteraction:c,origin:g,rootTrack:l}=o,a=g?`${g}_${t}`:t,n=(0,r.useCallback)(i=>{let k=s?t:[t,i.section].filter(Boolean).join("_");c({...i,section:k})},[c,t,s]),u=(0,r.useMemo)(()=>({...o,origin:a,trackUserInteraction:n,rootTrack:l}),[o,a,n,l]);return(0,C.jsx)(T.Provider,{value:u,children:e})}function m(t,e){let{trackUserInteraction:s,rootTrack:o,pageCategory:c,setPageCategory:g}=(0,r.useContext)(T);return{trackUserInteraction:(0,r.useCallback)((a,n)=>{var k;let i=((k=n==null?void 0:n.ignoreParentScope)!=null?k:e==null?void 0:e.ignoreParentScope)?o:s;if(t){let I=[t,a.section].filter(Boolean).join("_");i({...a,section:I})}else i(a)},[o,s,t,e==null?void 0:e.ignoreParentScope]),setPageCategory:g,pageCategory:c}}export{f as a,v as b,m as c};

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.