PageSourceSearch

https://www.chesapeakebay.net/cpresources/60eb7dea/TimelineCarousel.CSUSCxg0.js

js chesapeakebay.net collected 2026-09-24 08:50:21 UTC 2,551 bytes, 2 lines download raw bytes

1import{_ as T}from"./preload-helper.BcZewWem.js";import Y from"./TimelineEvent.D932ysbF.js";import{_ as H}from"./_plugin-vue_export-helper.DlAUqK2U.js";import{M as D,x as k,y as z,aa as C,K as h,z as s,C as B,L as w,F as e,al as L,V as O,a0 as P,J as _,R as c,O as N}from"./runtime-dom.esm-bundler.CqpSJMCm.js";const S={class:"timeline"},V={class:"timeline__meetingsRow"},$=["disabled"],F={class:"yearButton__label"},M={class:"timeline__currentYear"},R=["disabled"],A={class:"yearButton__label"},I={__name:"TimelineCarousel",props:{eventsData:Object},setup(x){"container"in document.documentElement.style||T(()=>import("https://unpkg.com/container-query-polyfill@^0.2.0"),[]);const o=x,a=D({year:new Date().getFullYear(),spacerHeight:150}),m=k(null);let d,l=null;z(()=>{window.addEventListener("resize",p),setTimeout(()=>{f()},500)}),C(()=>{window.removeEventListener("resize",p)});async function v(n){a.year=n,await h(),await f()}function p(){l&&clearTimeout(l),l=setTimeout(()=>{y()},400)}async function f(){d=m.value.querySelectorAll(".meeting__content"),await h(),y()}function y(){let n=0;setTimeout(()=>{d.forEach(t=>{t.offsetHeight>n&&(n=t.offsetHeight)}),a.spacerHeight=n},0)}const r=s(()=>a.year-1),u=s(()=>a.year+1),E=s(()=>o.eventsData[a.year]),b=s(()=>o.eventsData.hasOwnProperty(u.value)),g=s(()=>o.eventsData.hasOwnProperty(r.value));return(n,t)=>(w(),B("div",S,[e("div",{class:"timeline__spacer",style:L({height:`${a.spacerHeight}px`})},null,4),e("div",{class:"timeline__timeline",ref_key:"timeline",ref:m},[e("div",V,[(w(),B(O,null,P(12,i=>N(Y,{class:_(["timeline__dot",`timeline__dot--${i}`]),events:E.value,month:i},null,8,["class","events","month"])),64))])],512),e("button",{class:"timeline__yearButton timeline__yearButton--prev yearButton",disabled:!g.value,type:"button",onClick:t[0]||(t[0]=i=>v(r.value))},[e("div",{class:_(["button button--primary yearButton__button",{"button--disabled":!g.value}])},t[2]||(t[2]=[e("i",{class:"fas fa-angle-left fa-fw",title:"Previous Year"},null,-1)]),2),e("span",F,c(r.value),1)],8,$),e("span",M,c(a.year),1),e("button",{class:"timeline__yearButton timeline__yearButton--next yearButton",disabled:!b.value,type:"button",onClick:t[1]||(t[1]=i=>v(u.value))},[e("div",{class:_(["button button--primary yearButton__button",{"button--disabled":!b.value}])},t[3]||(t[3]=[e("i",{class:"fas fa-angle-right fa-fw",title:"Next Year"},null,-1)]),2),e("span",A,c(u.value),1)],8,R)]))}},U=H(I,[["__scopeId","data-v-b5e43075"]]);export{U as default};
2//# sourceMappingURL=TimelineCarousel.CSUSCxg0.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.