{
  "version": 3,
  "sources": ["../../../../../src/date/datepicker/dateSelection/LmYearSelect.tsx"],
  "sourcesContent": ["import { useMemo } from 'react'\nimport { LmSelect } from '../../../form/LmSelect'\nimport { InputSelectorProps } from './dateSelectionTypes'\n\nexport function LmYearSelect(props: InputSelectorProps) {\n  const options = useMemo(() => {\n    return yearsForLocale()\n  }, [])\n  return <LmSelect options={options} width={100} {...props} />\n}\n\ntype YearsForLocaleProps = {\n  startYear: number\n  duration: number\n}\n\nfunction yearsForLocale(params?: YearsForLocaleProps) {\n  const currentYear = new Date().getFullYear()\n  const { startYear, duration = 100 } = params || {}\n  const startWith = startYear || currentYear\n  return Array.from(Array(duration).keys()).map((day) => {\n    return {\n      value: startWith - day,\n      label: `${startWith - day}`,\n    }\n  })\n}\n"],
  "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,gBAAgB;AAGlB,SAAS,aAAa,OAA2B;AACtD,QAAM,UAAU,QAAQ,MAAM;AAC5B,WAAO,eAAe;AAAA,EACxB,GAAG,CAAC,CAAC;AACL,SAAO,CAAC,SAAS,SAAS,SAAS,OAAO,SAAS,OAAO;AAC5D;AAOA,SAAS,eAAe,QAA8B;AACpD,QAAM,cAAc,IAAI,KAAK,EAAE,YAAY;AAC3C,QAAM,EAAE,WAAW,WAAW,IAAI,IAAI,UAAU,CAAC;AACjD,QAAM,YAAY,aAAa;AAC/B,SAAO,MAAM,KAAK,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,QAAQ;AACrD,WAAO;AAAA,MACL,OAAO,YAAY;AAAA,MACnB,OAAO,GAAG,YAAY;AAAA,IACxB;AAAA,EACF,CAAC;AACH;",
  "names": []
}
