PageSourceSearch

https://www.camberleytheatre.co.uk/dist/assets/paginator-COX03OiW.js

js camberleytheatre.co.uk collected 2026-10-06 11:08:55 UTC 2,151 bytes, 2 lines download raw bytes

1import{o,c as i,b as u,M as f,N as m,f as g,r as h,a as p,F as _,i as $,w as v}from"./app-0nxCkCY8.js";import{_ as d}from"./_plugin-vue_export-helper-DlAUqK2U.js";const D={name:"date-range",data(){return{loading:!0,date:""}},props:{firstDate:{type:String},lastDate:{type:String},format:{type:String}},computed:{dateString(){var e=this,a,r,n;if(e.$props.firstDate){var t=e.$props.firstDate.split("-"),s=new Date(+t[2],t[1]-1,+t[0]);a=s.toLocaleString("en-GB",{year:"numeric",month:"long"})}if(e.$props.lastDate){var t=e.$props.lastDate.split("-"),l=new Date(+t[2],t[1]-1,+t[0]);r=l.toLocaleString("default",{year:"numeric",month:"long"})}return e.$props.firstDate&&e.$props.lastDate&&(n=" - "),a!=r?a+n+r:a}}},y=["innerHTML"];function S(e,a,r,n,t,s){return o(),i("time",{innerHTML:s.dateString},null,8,y)}const L=d(D,[["render",S]]),b={name:"v-paginator",data(){return{loaded:!1,pages:0,elements:[],firstDate:"",lastDate:""}},components:{dateRange:L},props:{items:{type:Number},index:{type:Number,default:0},elementQuery:{type:String}},mounted(){var e=this;e.elements=e.$el.querySelectorAll(e.$props.elementQuery),e.createPage(0),e.pages=Math.ceil(e.elements.length/e.$props.items),console.log("mounted",e.elements,e.pages)},methods:{createPage(e){var a=this,r=e*a.$props.items,n=e*a.$props.items+(a.$props.items-1);console.log("ranges",r,n),a.loaded=!1,a.elements.forEach((s,l)=>{r<=l&&l<=n?s.classList.remove("h-accessibility"):s.classList.add("h-accessibility")});var t=a.$el.querySelectorAll(a.$props.elementQuery+":not(.h-accessibility)");a.firstDate=t[0].dataset.date,t[t.length-1]&&(a.lastDate=t[t.length-1].dataset.date),a.loaded=!0}}},w=["innerHTML","onClick"];function M(e,a,r,n,t,s){const l=u("date-range");return f((o(),i("section",null,[g(l,{"first-date":t.firstDate,"last-date":t.lastDate},null,8,["first-date","last-date"]),h(e.$slots,"default"),p("nav",null,[p("ul",null,[(o(!0),i(_,null,$(t.pages,c=>(o(),i("li",null,[p("a",{href:"#",innerHTML:c,onClick:v(N=>s.createPage(c-1),["prevent"])},null,8,w)]))),256))])])],512)),[[m,t.loaded]])}const H=d(b,[["render",M]]);export{H as default};
2//# sourceMappingURL=paginator-COX03OiW.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.