{"version":3,"sources":["../src/Weekday.js"],"names":["Weekday","nextProps","props","weekday","className","weekdaysLong","weekdaysShort","localeUtils","locale","title","formatWeekdayLong","content","formatWeekdayShort","Component"],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;IAGqBA,O;;;;;;;;;;;0CAWGC,S,EAAW;AAC/B,aAAO,KAAKC,KAAL,KAAeD,SAAtB;AACD;;;6BAEQ;AAAA,mBAQH,KAAKC,KARF;AAAA,UAELC,OAFK,UAELA,OAFK;AAAA,UAGLC,SAHK,UAGLA,SAHK;AAAA,UAILC,YAJK,UAILA,YAJK;AAAA,UAKLC,aALK,UAKLA,aALK;AAAA,UAMLC,WANK,UAMLA,WANK;AAAA,UAOLC,MAPK,UAOLA,MAPK;;AASP,UAAIC,cAAJ;AACA,UAAIJ,YAAJ,EAAkB;AAChBI,gBAAQJ,aAAaF,OAAb,CAAR;AACD,OAFD,MAEO;AACLM,gBAAQF,YAAYG,iBAAZ,CAA8BP,OAA9B,EAAuCK,MAAvC,CAAR;AACD;AACD,UAAIG,gBAAJ;AACA,UAAIL,aAAJ,EAAmB;AACjBK,kBAAUL,cAAcH,OAAd,CAAV;AACD,OAFD,MAEO;AACLQ,kBAAUJ,YAAYK,kBAAZ,CAA+BT,OAA/B,EAAwCK,MAAxC,CAAV;AACD;;AAED,aACE;AAAA;AAAA,UAAK,WAAWJ,SAAhB,EAA2B,MAAK,cAAhC;AACE;AAAA;AAAA,YAAM,OAAOK,KAAb;AAAqBE;AAArB;AADF,OADF;AAKD;;;;EA1CkCE,gB;;kBAAhBb,O","file":"Weekday.js","sourcesContent":["import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nexport default class Weekday extends Component {\n  static propTypes = {\n    weekday: PropTypes.number,\n    className: PropTypes.string,\n    locale: PropTypes.string,\n    localeUtils: PropTypes.object,\n\n    weekdaysLong: PropTypes.arrayOf(PropTypes.string),\n    weekdaysShort: PropTypes.arrayOf(PropTypes.string),\n  };\n\n  shouldComponentUpdate(nextProps) {\n    return this.props !== nextProps;\n  }\n\n  render() {\n    const {\n      weekday,\n      className,\n      weekdaysLong,\n      weekdaysShort,\n      localeUtils,\n      locale,\n    } = this.props;\n    let title;\n    if (weekdaysLong) {\n      title = weekdaysLong[weekday];\n    } else {\n      title = localeUtils.formatWeekdayLong(weekday, locale);\n    }\n    let content;\n    if (weekdaysShort) {\n      content = weekdaysShort[weekday];\n    } else {\n      content = localeUtils.formatWeekdayShort(weekday, locale);\n    }\n\n    return (\n      <div className={className} role=\"columnheader\">\n        <abbr title={title}>{content}</abbr>\n      </div>\n    );\n  }\n}\n"]}