PageSourceSearch

https://www.chesapeakebay.net/cpresources/4650df/TimelineCarousel.BEJrdFH0.js

js chesapeakebay.net collected 2026-10-01 10:19:20 UTC 2,551 bytes, 2 lines download raw bytes

1import{_ as T}from"./preload-helper.BcZewWem.js";import Y from"./TimelineEvent.DydyBZ_y.js";import{_ as D}from"./_plugin-vue_export-helper.DlAUqK2U.js";import{y as H,z as k,A as z,ab as C,a1 as h,U as s,C as B,D as e,am as P,P as L,Z as N,W as _,K as c,J as w,F as O}from"./runtime-dom.esm-bundler.D8YrsGpd.js";const S={class:"timeline"},$={class:"timeline__meetingsRow"},A=["disabled"],F={class:"yearButton__label"},V={class:"timeline__currentYear"},I=["disabled"],M={class:"yearButton__label"},R={__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=H({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:P({height:`${a.spacerHeight}px`})},null,4),e("div",{class:"timeline__timeline",ref_key:"timeline",ref:m},[e("div",$,[(w(),B(L,null,N(12,i=>O(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,A),e("span",V,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",M,c(u.value),1)],8,I)]))}},K=D(R,[["__scopeId","data-v-b5e43075"]]);export{K as default};
2//# sourceMappingURL=TimelineCarousel.BEJrdFH0.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.