1import{f as w}from"/build/_shared/chunk-FC4HA3TH.js";import{a as S}from"/build/_shared/chunk-F3RAJA4O.js";import{e as g}from"/build/_shared/chunk-O3BUCIVF.js";var e=g(S());function h(d=!0){let[y,p]=(0,e.useState)(),l=(0,e.useRef)([]),r=(0,e.useRef)(!1),{loadedAds:m,setLoadedAds:c}=w(),u=(0,e.useCallback)(t=>{let{aiid:n}=t;l.current.includes(n)||(l.current=[...l.current,n],c(l.current))},[c]);return(0,e.useEffect)(()=>{var n;if(!d&&r.current){r.current=!1;return}r.current=!0;let t=window;t.Swiftly=t.Swiftly||{},p(t),(n=t.Swiftly)!=null&&n.ads&&(t.Swiftly.ads.on("adLoad",u),t.Swiftly.ads.on("carouselInit",()=>{document.querySelectorAll("swiftly-ad").forEach(f=>{let o=f.shadowRoot;if(!o||o.getElementById("style-injected"))return;let s=getComputedStyle(document.documentElement).getPropertyValue("--mantine-color-layout-focus-0")||getComputedStyle(document.documentElement).getPropertyValue("--mantine-primary-color-filled"),i=document.createElement("style");i.id="style-injected",i.textContent=` 2 *:focus-visible, *:focus { 3 outline: 2px solid ${s}; 4 outline-offset: 2px; 5 border-radius: 4px; 6 } 7 .swiftly-carousel .swiftly-image__link:focus-visible, 8 .swiftly-carousel .swiftly-image__link:focus { 9 outline: none; 10 } 11 .swiftly-carousel .swiftly-image__link:focus-visible picture::after, 12 .swiftly-carousel .swiftly-image__link:focus picture::after { 13 outline: 2px solid ${s}; 14 border-radius: 4px; 15 height: calc(100% - 8px); 16 width: calc(100% - 8px); 17 position: absolute; 18 left: 2px; 19 top: 2px; 20 content: ''; 21 z-index: 10; 22 border: 2px solid #fff; 23 } 24 `,o.appendChild(i)})}),requestAnimationFrame(()=>{var o,s,i,a;((s=(o=window==null?void 0:window.Swiftly)==null?void 0:o.ads)==null?void 0:s.config)&&((a=(i=window==null?void 0:window.Swiftly)==null?void 0:i.ads)==null||a.refresh())}))},[u,d]),{isRefreshed:r.current,loadedAds:m,adWindow:y}}export{h as a};
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.