PageSourceSearch

https://www.noticiastrabajo.es/_astro/hoisted.Dkksye4i.js

js noticiastrabajo.es collected 2026-10-02 04:42:17 UTC 2,381 bytes, 1 lines download raw bytes

1import"./hoisted.DEMwbULh.js";import"./hoisted.Bi0K9ii1.js";function p(){document.querySelectorAll(".carousel-container").forEach(t=>{const e=t.querySelector(".carousel-items"),l=t.querySelector(".carousel-btn-left"),o=t.querySelector(".carousel-btn-right");if(!e||!l||!o)return;const s=[...e.querySelectorAll(".carousel-item")],n=()=>e.clientWidth*.8,i=t.querySelector(".carousel-dots"),a=i?s.map((u,f)=>{const r=Object.assign(document.createElement("button"),{type:"button",ariaLabel:`Slide ${f+1}`});return f===0&&r.classList.add("active"),r.onclick=()=>u.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"}),i.append(r),r}):[],d=()=>{const{scrollLeft:u,scrollWidth:f,clientWidth:r}=e;if(l.disabled=u<=1,o.disabled=u+r>=f-1,!a.length)return;const S=e.getBoundingClientRect().left+r/2;let h=0,b=1/0;for(let c=0;c<s.length;c++){const m=s[c].getBoundingClientRect(),v=Math.abs(m.left+m.width/2-S);v<b&&(b=v,h=c)}a.forEach((c,m)=>c.classList.toggle("active",m===h))};l.onclick=()=>e.scrollBy({left:-n(),behavior:"smooth"}),o.onclick=()=>e.scrollBy({left:n(),behavior:"smooth"}),e.addEventListener("scroll",d,{passive:!0}),d()})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",p):p();function y(){document.querySelectorAll(".carousel-container .carousel-items-videos").forEach(t=>{const e=t.closest(".carousel-container");if(!e)return;const l=e.querySelector(".carousel-btn-left"),o=e.querySelector(".carousel-btn-right");if(!l||!o)return;const s=()=>t.clientWidth*.8,n=()=>{const{scrollLeft:i,scrollWidth:a,clientWidth:d}=t;l.disabled=i<=1,o.disabled=i+d>=a-1};l.onclick=()=>t.scrollBy({left:-s(),behavior:"smooth"}),o.onclick=()=>t.scrollBy({left:s(),behavior:"smooth"}),t.addEventListener("scroll",n,{passive:!0}),n()}),document.addEventListener("click",t=>{const e=t.target?.closest(".carousel-items-videos a[data-embed-url]");if(!e||e.querySelector("iframe"))return;t.preventDefault();const o=e.closest(".carousel-items-videos")?.dataset.iframeAllow||"autoplay; fullscreen; picture-in-picture; web-share",s=Object.assign(document.createElement("iframe"),{src:e.dataset.embedUrl,title:e.ariaLabel??"Reproducir vídeo",className:"absolute inset-0 w-full h-full rounded-md",allow:o,allowFullscreen:!0});e.replaceChildren(s),e.removeAttribute("href")})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",y):y();

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.