PageSourceSearch

https://www.liverpoolphil.com/dist/assets/tab-nav-BVs74H4U.js

js liverpoolphil.com collected 2026-10-02 03:44:33 UTC 1,873 bytes, 2 lines download raw bytes

1import{c,o as l,r as h}from"./app-BZOzIUJT.js";import{_ as d}from"./_plugin-vue_export-helper-DlAUqK2U.js";const u={name:"v-tab-nav",data(){return{activeTab:"",loading:!0,tabCache:{},last:null}},props:{defaultTab:{type:String},rootPath:{type:String}},mounted(){var a=this;const r=document.querySelector(".o-tab__link a");setTimeout(()=>{Array.prototype.forEach.call(this.$el.querySelectorAll('[href^="#"][role="tab"]'),function(e,t,s){var o=document.getElementById(e.getAttribute("aria-controls"));a.tabCache[e.hash]=[e,o],window.location.hash?window.location.hash==e.hash?a.setActiveTab(e.hash):e.setAttribute("tabindex",-1):a.$props.defaultTab==e.hash?a.setActiveTab(e.hash):e.setAttribute("tabindex",-1),e.addEventListener("keydown",function(i){var n=i.keyCode===37?s[t-1]:i.keyCode===39?s[t+1]:null;n&&(location.hash=n.hash,a.setActiveTab(n.hash),n.focus())})})},500),window.onpopstate=function(e){a.tabCache[window.location.hash]&&a.setActiveTab(window.location.hash,null)},r.addEventListener("click",function(e){e.preventDefault();const t=this.href.substring(this.href.indexOf("#")),s=document.querySelector("#event-tabs"),o=document.querySelector("#site-header").offsetHeight;let i=s.offsetTop-o;location.hash=t,a.setActiveTab(t),window.scrollTo({top:i})})},methods:{setActiveTab(a,r){var e=this;let t=e.tabCache[a];t&&(e.last&&(e.last[0].removeAttribute("aria-selected"),e.last[0].setAttribute("tabindex",-1),e.last[0].classList.remove("is-active"),e.last[1].setAttribute("hidden","")),t[0].setAttribute("aria-selected","true"),t[0].removeAttribute("tabindex"),t[0].classList.add("is-active"),t[1].removeAttribute("hidden",""),e.last=t,window.dispatchEvent(new Event("resize")))}}},f={class:"o-nav"};function v(a,r,e,t,s,o){return l(),c("div",f,[h(a.$slots,"default")])}const m=d(u,[["render",v]]);export{m as default};
2//# sourceMappingURL=tab-nav-BVs74H4U.js.map

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.