PageSourceSearch

https://www.supplychainresearch.com/_ext/cdn.jsdelivr.net/npm/@finsweet/attributes@2/dist/src-54MDR7OA.js

js supplychainresearch.com collected 2026-09-25 06:46:53 UTC 2,322 bytes, 1 lines download raw bytes

vendor: 2,322 bytes, line 1
1import{c as C}from"./chunk-WIALCYDY.js";import{d as l}from"./chunk-N2ZCN6XY.js";import{a as T,b as h,c as N,n as I}from"./chunk-L4B2V5MO.js";import{a as L,b as R}from"./chunk-CB6LZ537.js";import{f as D,h as S,i as A}from"./chunk-XRTLPMPO.js";import{a as _}from"./chunk-UAA7M346.js";import{u}from"./chunk-ZI7TAH2K.js";import{b as w,c as x}from"./chunk-GGDEANQW.js";import"./chunk-K46K3RI5.js";var K="1.8.11";var y=["slider","content","slider-nav"],b={active:{key:"active",defaultValue:`is-${u}-active`},remove:{key:"remove",values:["true"]}};var{getInstance:k,queryElement:d,getAttribute:g,hasAttributeValue:E,getElementSelector:f}=_(u,y,b);var M=(t,o)=>L(t,"click",({target:e})=>{if(!S(e))return;let s=e.closest(f("content"));if(!s)return;let{dot:i}=o.find(({customDot:c})=>c===s)||{};i&&R(i,"click")});var v=({dot:t,customDot:o},r)=>{let e=t.classList.contains(l.activeSliderDot);o.classList[e?"add":"remove"](r);for(let s of[N,I,T,h]){let i=t.getAttribute(s);i?o.setAttribute(s,i):o.removeAttribute(s)}};var q=(t,o,r)=>{let e=c=>{for(let{target:n}of c){if(!A(n))continue;let a=o.find(({dot:m})=>m===n);a&&v(a,r)}},s={subtree:!0,attributes:!0,attributeFilter:["class"]},i=new MutationObserver(e);return i.observe(t,s),i};var{slide:B,sliderDot:F}=l,P=(t,o)=>{let r=[],e=t.querySelectorAll(`.${B}`),s=t.querySelectorAll(`.${F}`);return e.forEach((i,c)=>{let n=s[c];if(!n)return;n.style.display="none";let a=d("content",{scope:i});if(!a)return;let p=E(a,"remove","true")?a:C(a);o.appendChild(p),r.push({dot:n,customDot:p})}),r};var $=t=>new Promise(o=>{let r=s=>{for(let{addedNodes:i}of s)for(let c of i)if(S(c)&&c.closest(`.${l.sliderDot}`)){o(void 0),e.disconnect();return}},e=new MutationObserver(r);e.observe(t,{childList:!0})});var H=async t=>{let o=k(t),r=t.querySelector(`.${l.sliderNav}`),e=d("slider-nav",{instance:o})||r;if(!r||!e)return;window.FinsweetAttributes.process.has("list")&&await Promise.all([w("list"),$(r)]);let i=g(t,"active");E(e,"remove","true")&&(e.innerHTML="");let n=P(t,e);for(let p of n)v(p,i);let a=q(r,n,i),m=M(e,n);return()=>{a.disconnect(),m()}};var V=async()=>{await x();let t=[...document.querySelectorAll(`.${l.slider}${f("slider")}`)],o=(await Promise.all(t.map(H))).filter(D);return{result:t,destroy(){for(let r of o)r()}}};export{y as ELEMENTS,b as SETTINGS,V as init,K as version};

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.