PageSourceSearch

https://wallaceandgromit.com/_nuxt/BOojtiq_.js

js wallaceandgromit.com collected 2026-10-02 04:42:33 UTC 2,321 bytes, 1 lines download raw bytes

1import{r as f,I as g,N as p,e as C,b as S,f as B,j as x,l as N,i,k as d,g as w,q as a,p as o,A as r,h,m as L,ax as E,x as V}from"./CDdTBc61.js";import M from"./DVoQcvwX.js";const U={key:0,class:"external-site-modal bg-dark"},D={class:"external-site-modal__tray"},$={class:"external-site-modal__inr"},j={class:"external-site-modal__main bg-base"},q={class:"external-site-modal__content"},z={class:"external-site-modal__actions"},I=["src","alt"],G={__name:"ExternalSiteModal",props:{active:{type:Boolean,default:!1},cancelText:{type:String,default:"Cancel"},confirmText:{type:String,default:"Confirm"},content:{type:String,default:null},imageSrc:{type:String,default:null},imageAlt:{type:String,default:null}},setup(n){const u=n,t=f(null),s=f([]),m=g(()=>t.value?t.value.href.replace(/^(http(s)?:\/\/)/gi,""):""),v=g(()=>u.content.replace(/{url}/gi,m.value));p(t,e=>{e?document.body.classList.add("lock-scroll"):document.body.classList.remove("lock-scroll")}),p(s,()=>{s.value.forEach(e=>{e.onclick=k})},{deep:!0});const k=e=>{e.currentTarget&&e.currentTarget.nodeName==="A"&&/^(http(s)?):/g.test(e.currentTarget.getAttribute("href"))&&!/aardman.com/g.test(e.currentTarget.getAttribute("href"))&&(e.preventDefault(),y(e.currentTarget))},_=()=>{setTimeout(()=>{s.value=Array.from(document.getElementsByTagName("a")),t.value=null},300)},y=e=>{const l=e.getAttribute("href"),c=e.getAttribute("target")||"_self";t.value={href:l,target:c}},T=()=>{window.open(t.value.href,t.value.target)||window.location.replace(t.value.href)},b=()=>{t.value=null};return C(()=>{u.active&&(_(),S().provide("data-refresh",l=>{_()}))}),B(()=>{document.body.classList.remove("lock-scroll")}),(e,l)=>{const c=V,A=M;return x(),N(E,{name:"ext-modal",duration:400},{default:i(()=>[d(t)?(x(),w("div",U,[a("div",D,[a("div",$,[a("div",j,[a("div",q,[a("p",null,[l[0]||(l[0]=o(" You are being redirected to ")),a("b",null,r(d(m)),1),o(". "+r(d(v)),1)]),a("div",z,[h(c,{class:"external-site-modal__cancel",onClick:b},{default:i(()=>[o(r(n.cancelText),1)]),_:1}),h(A,{class:"external-site-modal__confirm",onClick:T},{default:i(()=>[o(r(n.confirmText),1)]),_:1})])]),a("img",{class:"external-site-modal__image",width:"400",height:"306",src:`${n.imageSrc}?height=306`,alt:n.imageAlt,loading:"lazy"},null,8,I)])])])])):L("",!0)]),_:1})}}};export{G as default};

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.