1import{a as c}from"/build/_shared/chunk-5OBEDPFR.js";import{a as w}from"/build/_shared/chunk-H6S7FWVP.js";import{d as r}from"/build/_shared/chunk-T36URGAI.js";var n=r(w()),f=r(c()),v=1500,m=50,I=(0,n.createContext)({}),D=({children:u})=>{let[i,s]=(0,n.useState)([]),[g,P]=(0,n.useState)({}),[y,C]=(0,n.useState)({}),[b,p]=(0,n.useState)(null),d=t=>{if(!(!t.data||typeof t.data!="object")){if(t.data.type==="abtasty"){let e=t.data.data;s(a=>{let o=[...a,e];return Array.from(new Set(o))})}if(t.data.type==="abtastyBadge"){let e=t.data.data;P(a=>{let o={...a};return o[e.category]=e.value,o})}if(t.data.type==="abtastyPDPOrder"){let e=t.data.data;C(e)}t.data.type==="abtastyClear"&&l(t.data.data)}},l=t=>{s(e=>e.filter(o=>o!==t))};return(0,n.useEffect)(()=>(window.addEventListener("message",d),()=>{window.removeEventListener("message",d)}),[i]),(0,n.useEffect)(()=>{let t=()=>window.deliverPlusConfig?(p(window.deliverPlusConfig),!0):!1;if(t())return;let e=window.setInterval(()=>{t()&&window.clearInterval(e)},m),a=window.setTimeout(()=>window.clearInterval(e),v);return()=>{window.clearInterval(e),window.clearTimeout(a)}},[]),(0,f.jsx)(I.Provider,{value:{AbtastyConfig:i,AbtastyBadgeConfig:g,clearAbtastyConfigValue:l,abTastyPDPOrder:y,deliverPlusConfig:b},children:u})};export{I as a,D as b};
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.