"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../../../_virtual/jsx-runtime.js"),m=require("../../../../utils/index.js"),v=require("../../../Chip/Chip.js"),_=require("../../dateUtils.js"),a=require("../../styles.js");function h({width:u,height:n,currentYear:t,minimumYear:o,maximumYear:d,"data-testid":i,updateCurrentYear:l}){const p=m.getId(i),c=r=>{l(r)},j=r=>r>=(o||Number.MIN_VALUE)&&r<=(d||Number.MAX_VALUE);return s.jsxRuntimeExports.jsx(a.PeriodWrapper,{style:{width:u,height:n},"data-testid":i,children:[...Array(_.YEARS_TO_DISPLAY)].map((r,e)=>s.jsxRuntimeExports.jsx(a.PeriodName,{children:s.jsxRuntimeExports.jsx(v.Chip,{selected:e===0,onClick:()=>c(e+t),label:`${e+t}`,disabled:!j(e+t),variant:"ghost","data-testid":p(`chip-${e}`)})},e))})}exports.Year=h;
