export declare const INJECTED_SCRIPTS: { readonly "view-navigation": "(()=>{let e=document.currentScript,t=e?.closest(`[ui-qds-carousel-root]`);if(!t||!(t instanceof HTMLElement)||t.dataset.measured)return;t.dataset.measured=`1`;let n=t.id||e?.getAttribute(`ui-scope-id`)||`default`,r=window.carouselState||={};r[n]||={};let i=n=>e?.getAttribute(n)??t.getAttribute(n),a=(n=>e?.hasAttribute(n)??t.hasAttribute(n))(`ui-loop`),o=`[ui-qds-carousel-item]`,s=[.1,.3,.5,.7,.9],c=[.2,.5,.8],l=(e,t)=>{if(e.right<=t.left||e.left>=t.right||e.bottom<=t.top||e.top>=t.bottom)return!1;let n=Math.min(t.right,e.right)-Math.max(t.left,e.left),r=Math.min(t.bottom,e.bottom)-Math.max(t.top,e.top);return n>0&&r>0&&n*r/(e.width*e.height)>=.5},u=e=>{let n=new Set,{width:r,height:i,left:a,top:u}=e,d=e=>t.querySelector(`${o}[ui-qds-index=\"${e}\"]`),f=(e,n)=>{for(let r of document.elementsFromPoint(e,n)){let e=r.closest(o);if(e?.closest(`[ui-qds-carousel-root]`)===t)return e}},p=t=>{!t||!l(t.getBoundingClientRect(),e)||n.add(t)};for(let e of c)for(let t of s){let n=a+r*t,o=u+i*e;n<0||o<0||n>innerWidth||o>innerHeight||p(f(n,o))}for(let t of n){let r=Number(t.getAttribute(`ui-qds-index`));if(Number.isFinite(r))for(let t of[-1,1]){let i=r+t,a=d(i);for(;a&&l(a.getBoundingClientRect(),e);)n.add(a),i+=t,a=d(i)}}return Array.from(n)},d=e=>{let s=e.length,c=Number(i(`ui-total-items`)||`0`);r[n].itemsVisible=s;let l=new Set(e),u=t.querySelectorAll(`${o}[ui-active], ${o}:not([inert])`);for(let e of u)l.has(e)||(e.removeAttribute(`ui-active`),e.setAttribute(`inert`,``));for(let t of e)t.setAttribute(`ui-active`,``),t.removeAttribute(`inert`);if(s>=c&&c>0)return;let d=a?c-1:c-s,f=[];for(let e=0;e<=d;e+=s)f.push(e);f[f.length-1]!==d&&f.push(d);let p=[];for(let e of f)p.push(`[ui-qds-carousel-nav-trigger][ui-qds-index=\"${e}\"]`);for(let e of t.querySelectorAll(p.join(`,`)))e.setAttribute(`ui-visible`,``)},f=()=>{let e=(t.querySelector(`[ui-qds-carousel-viewport]`)??t).getBoundingClientRect();if(e.width===0||e.height===0)return!1;let n=u(e);return n.length===0?!1:(d(n),!0)};f()||(addEventListener(`load`,f,{once:!0}),document.fonts?.ready.then(f).catch(()=>{}))})();"; };