PageSourceSearch

https://wru.wales/_nuxt/C1haKcWg.js

js wru.wales collected 2026-10-02 04:44:37 UTC 1,656 bytes, 1 lines download raw bytes

1import{_ as m,k as p}from"./IT-7lrAI.js";import{M as i,X as f,D as _,j as b,E as v,G as h,F as x,ak as y,W as k,U as g,R as w,N as C}from"./D3xMoyyV.js";const E={};function $(s,o){const e=p;return i(),f(e,{name:"close",size:32,class:"fixed top-4 right-4 text-white cursor-pointer hover:primary-500 transition",tabindex:"0"})}const B=m(E,[["render",$]]),F='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',L=()=>{let s=[],o,e;const a=_((t,l)=>{let u=null;return{get(){return t(),u},set(d){u=d,d?n():c(),l()}}});function r(t){t.key==="Tab"&&(t.shiftKey?document.activeElement===o&&(e.focus(),t.preventDefault()):document.activeElement===e&&(o.focus(),t.preventDefault()))}function n(){a.value&&(s=a.value.querySelectorAll(F),o=s[0],e=s[s.length-1],document.addEventListener("keydown",r),o.focus())}function c(){document.removeEventListener("keydown",r)}return{trapRef:a,initFocusTrap:n,clearFocusTrap:c}},M=b({__name:"ModalLightbox",props:{contentClass:{},hideClose:{type:Boolean}},emits:["close-lightbox"],setup(s,{emit:o}){const e=o;v(()=>{document.body.classList.add("overflow-hidden")}),h(()=>{document.body.classList.remove("overflow-hidden")});const{trapRef:a}=L();return(r,n)=>{const c=B;return i(),x("div",{ref_key:"trapRef",ref:a,class:"fixed inset-0 text-white bg-black bg-opacity-80 grid items-center justify-center z-10 overflow-hidden"},[r.hideClose?k("",!0):(i(),f(c,{key:0,onClick:n[0]||(n[0]=t=>e("close-lightbox")),onKeyup:n[1]||(n[1]=y(t=>e("close-lightbox"),["enter"]))})),g("div",{class:C(["p-8 max-w-[calc(100vw-3rem)] h-[calc(100vh-6rem)]",r.contentClass])},[w(r.$slots,"default")],2)],512)}}});export{M as _};

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.