1import{B as p}from"./breakpoints-BYhfx1vJ.js";import{d as u}from"./debounce-CGfWWwY0.js";const a=[0,...Object.values(p).map(t=>Number.parseInt(t))],h=t=>{const s=globalThis.innerWidth,e=t.breakpoints.some(o=>{const d=a.indexOf(o),i=a[d+1];return s>=o&&(i===void 0||s<i)});return Promise.resolve(e)},y={viewportSize:h},r=t=>"operator"in t,c=async t=>{if(r(t)){const e=await Promise.all(t.rules.map(c));return t.operator==="AND"?e.every(Boolean):e.some(Boolean)}const s=await y[t.type](t);return"negate"in t&&t.negate?!s:s},n=async(t,s)=>{let e=!1;try{e=await c(s)}catch{}t.toggleAttribute("hidden",!e),t.classList.toggle("conditional-display-true",e),t.classList.toggle("conditional-display-false",!e)},l=t=>r(t)?t.rules.some(l):t.type==="viewportSize",v=()=>{const t=[];if(document.querySelectorAll(".js-conditional-display").forEach(s=>{try{const e=JSON.parse(s.dataset.rules??"");n(s,e),l(e)&&t.push({$el:s,rules:e})}catch{s.setAttribute("hidden",""),s.classList.add("conditional-display-false")}}),t.length>0){const s=u(()=>{t.forEach(({$el:e,rules:o})=>void n(e,o))},250);["resize","orientationchange"].forEach(e=>globalThis.addEventListener(e,s))}};export{v as default};
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.