{"version":3,"sources":["webpack:///../node_modules/react-date-picker/dist/DatePicker.css","webpack:///../node_modules/react-date-picker/dist/DatePicker.css?f7af","webpack:///../node_modules/react-date-picker/dist/esm/Divider.js","webpack:///../node_modules/react-date-picker/dist/esm/DateInput/Input.js","webpack:///../node_modules/react-date-picker/dist/esm/shared/utils.js","webpack:///../node_modules/react-date-picker/dist/esm/DateInput/DayInput.js","webpack:///../node_modules/react-date-picker/dist/esm/DateInput/MonthInput.js","webpack:///../node_modules/react-date-picker/dist/esm/shared/dateFormatter.js","webpack:///../node_modules/react-date-picker/dist/esm/DateInput/MonthSelect.js","webpack:///../node_modules/react-date-picker/dist/esm/DateInput/YearInput.js","webpack:///../node_modules/react-date-picker/dist/esm/DateInput/NativeInput.js","webpack:///../node_modules/react-date-picker/dist/esm/shared/dates.js","webpack:///../node_modules/react-date-picker/dist/esm/DateInput.js","webpack:///../node_modules/react-date-picker/dist/esm/DatePicker.js","webpack:///../node_modules/react-date-picker/dist/esm/index.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,2BAA2B,mBAAO,CAAC,4FAAsC;AACzE;AACA,cAAc,QAAS,uBAAuB,yBAAyB,uBAAuB,GAAG,0GAA0G,gCAAgC,mCAAmC,2BAA2B,GAAG,kCAAkC,8BAA8B,mBAAmB,GAAG,iCAAiC,kBAAkB,iBAAiB,mBAAmB,4BAA4B,GAAG,oCAAoC,0DAA0D,iBAAiB,mBAAmB,4BAA4B,GAAG,6CAA6C,mBAAmB,qBAAqB,GAAG,2FAA2F,0BAA0B,kBAAkB,GAAG,2CAA2C,sBAAsB,iBAAiB,uBAAuB,mBAAmB,cAAc,qBAAqB,wBAAwB,kBAAkB,4BAA4B,kCAAkC,+BAA+B,0BAA0B,GAAG,yIAAyI,6BAA6B,0BAA0B,qBAAqB,cAAc,GAAG,mDAAmD,qCAAqC,GAAG,2DAA2D,yBAAyB,qCAAqC,GAAG,gCAAgC,cAAc,4BAA4B,qBAAqB,GAAG,wCAAwC,oBAAoB,GAAG,2JAA2J,oBAAoB,GAAG,0EAA0E,oBAAoB,GAAG,oCAAoC,qBAAqB,GAAG,kCAAkC,iBAAiB,qBAAqB,eAAe,GAAG,0CAA0C,kBAAkB,GAAG,kDAAkD,uBAAuB,GAAG;;;;;;;;;;;;;;ACFh1E,UAAU,mBAAO,CAAC,gKAAqF;AACvG,0BAA0B,mBAAO,CAAC,oJAAiD;;AAEnF;;AAEA;AACA,0BAA0B,QAAS;AACnC;;AAEA;;AAEA;AACA;;AAEA;;;;AAIA,sC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClBgD;AACjC;AACf;AACA,WAAW,0BAAI,UAAU,0EAA0E;AACnG;;;;;;ACJsF;AACnC;AAC3B;AACgD;AACxE;AACA,4CAA4C,wBAAe,GAAG,kBAAS;AACvE;AACA;AACA,SAAS,aAAO;AAChB;AACA;AACA,2CAA2C,wBAAwB,EAAE;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,sDAAgB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,+DAAgB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,sDAAgB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe;AACf;AACA;AACA;AACA;AACA;AACA,QAAQ,sDAAgB;AACxB;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,YAAY,2BAAK,CAAC,uBAAS,GAAG,6BAA6B,0BAAI,UAAU,kEAAkE,UAAU,0BAAI,WAAW,gFAAgF,+BAAI,4RAA4R,aAAO;AAC3hB,oBAAoB,sDAAgB;AACpC;AACA;AACA;AACA,iB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AACpE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,uBAAuB,sCAAO;AAC9B;AACA,uBAAuB,+CAAgB;AACvC;AACA,uBAAuB,8CAAe;AACtC;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,YAAY,0BAAI,WAAW;AAC3B;AACA;AACA;AACA,SAAS,uEAAuE;AAChF;;;ACtCoJ;AACpJ;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,KAAK;AAChB;AACO;AACP;AACA;AACA,mBAAmB,qDAAc;AACjC;AACA,mBAAmB,mDAAY;AAC/B;AACA,mBAAmB,oDAAa;AAChC;AACA,mBAAmB,kDAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,KAAK;AAChB;AACO;AACP;AACA;AACA,mBAAmB,mDAAY;AAC/B;AACA,mBAAmB,iDAAU;AAC7B;AACA,mBAAmB,kDAAW;AAC9B;AACA,mBAAmB,gDAAS;AAC5B;AACA;AACA;AACA;;;ACxCA;AACA,IAAI,gBAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,IAAI,gBAAQ;AACZ,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,gBAAQ;AACnB;AACA,IAAI,qBAAa,IAAI,SAAI,IAAI,SAAI;AACjC,4EAA4E,OAAO;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AAC+D;AACX;AACoB;AACrC;AACY;AACI;AACE;AACJ;AACI;AACI;AACJ;AACT;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAa,CAAC,qBAAa;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,QAAQ;AAC/B;AACA,uBAAuB,MAAM;AAC7B;AACA;AACA;AACA,KAAK;AACL,WAAW,OAAO;AAClB;AACA,0CAA0C,gCAAgC;AAC1E,wCAAwC,gCAAgC;AACxE;AACA,qEAAqE,iBAAiB,EAAE;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,SAAS,eAAK;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,2BAA2B,EAAE;AACzD;AACA;AACA;AACA;AACA;AACA,QAAQ,0BAAI,CAAC,OAAO,GAAG,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACe;AACf;AACA,aAAa,yBAAQ;AACrB,aAAa,yBAAQ;AACrB,aAAa,yBAAQ;AACrB,aAAa,yBAAQ;AACrB,oBAAoB,uBAAM;AAC1B,qBAAqB,uBAAM;AAC3B,sBAAsB,uBAAM;AAC5B,mBAAmB,uBAAM;AACzB,aAAa,yBAAQ;AACrB,yBAAyB,uBAAM;AAC/B,IAAI,0BAAS;AACb;AACA,KAAK;AACL,IAAI,0BAAS;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,oBAAoB,8CAAO;AAC3B,qBAAqB,oDAAa;AAClC,mBAAmB,8CAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,eAAe,YAAY;AAC3B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA,qBAAqB;AACrB,uBAAuB,YAAY,mDAAmD,GAAG;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,YAAY,eAAK;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,eAAK;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,eAAK;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,2EAA2E,2BAA2B,EAAE;AACxG;AACA;AACA;AACA;AACA,4EAA4E,0BAA0B,EAAE;AACxG,2EAA2E,mCAAmC,EAAE;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,0BAAI,CAAC,QAAQ,EAAE,gBAAQ,GAAG,qBAAqB;AAC/D;AACA,0MAA0M;AAC1M;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,0BAAI,CAAC,WAAW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;AACA,sCAAsC,iBAAiB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,2BAA2B,wBAAwB;AACnD;AACA;AACA,0BAA0B,wBAAwB;AAClD;AACA;AACA;AACA,6CAA6C,mDAAmD;AAChG;AACA,2BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,kBAAkB;AACxC;AACA,oBAAoB,4BAAW;AAC/B;AACA,2BAA2B,mBAAmB;AAC9C;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,4BAAW;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,0BAA0B;AACrD;AACA,KAAK;AACL,uCAAuC,4BAAW;AAClD,sCAAsC,uBAAuB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI,0BAAS;AACb;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,2BAAK,SAAS,8DAA8D,0BAAI,CAAC,SAAS,EAAE,iBAAQ,GAAG,qC;AACvH;AACA,2YAA2Y,2BAA2B,0BAAI,YAAY,mPAAmP,8BAAa,yBAAyB,kDAAkD,0BAAI,YAAY,uSAAuS,8BAAa,+BAA+B,KAAK;AACzmC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,+BAAI;AAC7B,wBAAwB,0BAAI,CAAC,2BAAQ,EAAE,iBAAQ,EAAE,uGAAuG,wBAAwB,EAAE,gBAAgB;AAClM,kCAAkC,iCAAY,CAAC,0BAAI,SAAS,kEAAkE,wBAAwB,0BAAI,CAAC,qCAAG,GAAG,WAAW,0BAAI,SAAS;AACzL;AACA;AACA;AACA,iBAAiB,6CAA6C,GAAG;AACjE;AACA,qBAAqB,wBAAO,cAAc,QAAQ,8BAAc,aAAa,EAAE;AAC/E,YAAY,2BAAK,QAAQ,iBAAQ,EAAE,YAAY,+BAAI,4MAA4M,eAAe,+EAA+E;AAC7V;;;ACzLyC;AACnB;AACP,oGAAU,EAAC","file":"vendor.react-date-picker.f8ca5ae716dc3b3e471b.js","sourcesContent":["exports = module.exports = require(\"../../css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".react-date-picker {\\n display: inline-flex;\\n position: relative;\\n}\\n\\n.react-date-picker,\\n.react-date-picker *,\\n.react-date-picker *:before,\\n.react-date-picker *:after {\\n -moz-box-sizing: border-box;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n}\\n\\n.react-date-picker--disabled {\\n background-color: #f0f0f0;\\n color: #6d6d6d;\\n}\\n\\n.react-date-picker__wrapper {\\n display: flex;\\n flex-grow: 1;\\n flex-shrink: 0;\\n border: thin solid gray;\\n}\\n\\n.react-date-picker__inputGroup {\\n min-width: calc((4px * 3) + 0.54em * 8 + 0.217em * 2);\\n flex-grow: 1;\\n padding: 0 2px;\\n box-sizing: content-box;\\n}\\n\\n.react-date-picker__inputGroup__divider {\\n padding: 1px 0;\\n white-space: pre;\\n}\\n\\n.react-date-picker__inputGroup__divider,\\n.react-date-picker__inputGroup__leadingZero {\\n display: inline-block;\\n font: inherit;\\n}\\n\\n.react-date-picker__inputGroup__input {\\n min-width: 0.54em;\\n height: 100%;\\n position: relative;\\n padding: 0 1px;\\n border: 0;\\n background: none;\\n color: currentColor;\\n font: inherit;\\n box-sizing: content-box;\\n -webkit-appearance: textfield;\\n -moz-appearance: textfield;\\n appearance: textfield;\\n}\\n\\n.react-date-picker__inputGroup__input::-webkit-outer-spin-button,\\n.react-date-picker__inputGroup__input::-webkit-inner-spin-button {\\n -webkit-appearance: none;\\n -moz-appearance: none;\\n appearance: none;\\n margin: 0;\\n}\\n\\n.react-date-picker__inputGroup__input:invalid {\\n background: rgba(255, 0, 0, 0.1);\\n}\\n\\n.react-date-picker__inputGroup__input--hasLeadingZero {\\n margin-left: -0.54em;\\n padding-left: calc(1px + 0.54em);\\n}\\n\\n.react-date-picker__button {\\n border: 0;\\n background: transparent;\\n padding: 4px 6px;\\n}\\n\\n.react-date-picker__button:enabled {\\n cursor: pointer;\\n}\\n\\n.react-date-picker__button:enabled:hover .react-date-picker__button__icon,\\n.react-date-picker__button:enabled:focus .react-date-picker__button__icon {\\n stroke: #0078d7;\\n}\\n\\n.react-date-picker__button:disabled .react-date-picker__button__icon {\\n stroke: #6d6d6d;\\n}\\n\\n.react-date-picker__button svg {\\n display: inherit;\\n}\\n\\n.react-date-picker__calendar {\\n width: 350px;\\n max-width: 100vw;\\n z-index: 1;\\n}\\n\\n.react-date-picker__calendar--closed {\\n display: none;\\n}\\n\\n.react-date-picker__calendar .react-calendar {\\n border-width: thin;\\n}\\n\", \"\"]);\n\n","var api = require(\"!../../../player/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n var content = require(\"!!../../css-loader/dist/cjs.js!./DatePicker.css\");\n\n content = content.__esModule ? content.default : content;\n\n if (typeof content === 'string') {\n content = [[module.id, content, '']];\n }\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nmodule.exports = content.locals || {};","import { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Divider(_a) {\n var children = _a.children;\n return _jsx(\"span\", { className: \"react-date-picker__inputGroup__divider\", children: children });\n}\n","import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useLayoutEffect } from 'react';\nimport clsx from 'clsx';\nimport updateInputWidth, { getFontShorthand } from 'update-input-width';\nvar isBrowser = typeof document !== 'undefined';\nvar useIsomorphicLayoutEffect = isBrowser ? useLayoutEffect : useEffect;\nvar isIEOrEdgeLegacy = isBrowser && /(MSIE|Trident\\/|Edge\\/)/.test(navigator.userAgent);\nvar isFirefox = isBrowser && /Firefox/.test(navigator.userAgent);\nfunction onFocus(event) {\n var target = event.target;\n if (isIEOrEdgeLegacy) {\n requestAnimationFrame(function () { return target.select(); });\n }\n else {\n target.select();\n }\n}\nfunction updateInputWidthOnLoad(element) {\n if (document.readyState === 'complete') {\n return;\n }\n function onLoad() {\n updateInputWidth(element);\n }\n window.addEventListener('load', onLoad);\n}\nfunction updateInputWidthOnFontLoad(element) {\n if (!document.fonts) {\n return;\n }\n var font = getFontShorthand(element);\n if (!font) {\n return;\n }\n var isFontLoaded = document.fonts.check(font);\n if (isFontLoaded) {\n return;\n }\n function onLoadingDone() {\n updateInputWidth(element);\n }\n document.fonts.addEventListener('loadingdone', onLoadingDone);\n}\nfunction getSelectionString(input) {\n /**\n * window.getSelection().toString() returns empty string in IE11 and Firefox,\n * so alternatives come first.\n */\n if (input &&\n 'selectionStart' in input &&\n input.selectionStart !== null &&\n 'selectionEnd' in input &&\n input.selectionEnd !== null) {\n return input.value.slice(input.selectionStart, input.selectionEnd);\n }\n if ('getSelection' in window) {\n var selection = window.getSelection();\n return selection && selection.toString();\n }\n return null;\n}\nfunction makeOnKeyPress(maxLength) {\n if (maxLength === null) {\n return undefined;\n }\n /**\n * Prevents keystrokes that would not produce a number or when value after keystroke would\n * exceed maxLength.\n */\n return function onKeyPress(event) {\n if (isFirefox) {\n // See https://github.com/wojtekmaj/react-time-picker/issues/92\n return;\n }\n var key = event.key, input = event.target;\n var value = input.value;\n var isNumberKey = key.length === 1 && /\\d/.test(key);\n var selection = getSelectionString(input);\n if (!isNumberKey || !(selection || value.length < maxLength)) {\n event.preventDefault();\n }\n };\n}\nexport default function Input(_a) {\n var ariaLabel = _a.ariaLabel, autoFocus = _a.autoFocus, className = _a.className, disabled = _a.disabled, inputRef = _a.inputRef, max = _a.max, min = _a.min, name = _a.name, nameForClass = _a.nameForClass, onChange = _a.onChange, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, _b = _a.placeholder, placeholder = _b === void 0 ? '--' : _b, required = _a.required, showLeadingZeros = _a.showLeadingZeros, step = _a.step, value = _a.value;\n useIsomorphicLayoutEffect(function () {\n if (!inputRef || !inputRef.current) {\n return;\n }\n updateInputWidth(inputRef.current);\n updateInputWidthOnLoad(inputRef.current);\n updateInputWidthOnFontLoad(inputRef.current);\n }, [inputRef, value]);\n var hasLeadingZero = showLeadingZeros &&\n value &&\n Number(value) < 10 &&\n (value === '0' || !value.toString().startsWith('0'));\n var maxLength = max ? max.toString().length : null;\n return (_jsxs(_Fragment, { children: [hasLeadingZero ? _jsx(\"span\", { className: \"\".concat(className, \"__leadingZero\"), children: \"0\" }) : null, _jsx(\"input\", { \"aria-label\": ariaLabel, autoComplete: \"off\", autoFocus: autoFocus, className: clsx(\"\".concat(className, \"__input\"), \"\".concat(className, \"__\").concat(nameForClass || name), hasLeadingZero && \"\".concat(className, \"__input--hasLeadingZero\")), \"data-input\": \"true\", disabled: disabled, inputMode: \"numeric\", max: max, min: min, name: name, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onKeyPress: makeOnKeyPress(maxLength), onKeyUp: function (event) {\n updateInputWidth(event.target);\n if (onKeyUp) {\n onKeyUp(event);\n }\n }, placeholder: placeholder, \n // Assertion is needed for React 18 compatibility\n ref: inputRef, required: required, step: step, type: \"number\", value: value !== null ? value : '' })] }));\n}\n","/**\n * Returns a value no smaller than min and no larger than max.\n *\n * @param {Date} value Value to return.\n * @param {Date} min Minimum return value.\n * @param {Date} max Maximum return value.\n * @returns {Date} Value between min and max.\n */\nexport function between(value, min, max) {\n if (min && min > value) {\n return min;\n }\n if (max && max < value) {\n return max;\n }\n return value;\n}\nfunction isValidNumber(num) {\n return num !== null && num !== false && !Number.isNaN(Number(num));\n}\nexport function safeMin() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return Math.min.apply(Math, args.filter(isValidNumber));\n}\nexport function safeMax() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return Math.max.apply(Math, args.filter(isValidNumber));\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { getYear, getMonthHuman, getDate, getDaysInMonth } from '@wojtekmaj/date-utils';\nimport Input from './Input.js';\nimport { safeMin, safeMax } from '../shared/utils.js';\nexport default function DayInput(_a) {\n var maxDate = _a.maxDate, minDate = _a.minDate, month = _a.month, year = _a.year, otherProps = __rest(_a, [\"maxDate\", \"minDate\", \"month\", \"year\"]);\n var currentMonthMaxDays = (function () {\n if (!month) {\n return 31;\n }\n return getDaysInMonth(new Date(Number(year), Number(month) - 1, 1));\n })();\n function isSameMonth(date) {\n return year === getYear(date).toString() && month === getMonthHuman(date).toString();\n }\n var maxDay = safeMin(currentMonthMaxDays, maxDate && isSameMonth(maxDate) && getDate(maxDate));\n var minDay = safeMax(1, minDate && isSameMonth(minDate) && getDate(minDate));\n return _jsx(Input, __assign({ max: maxDay, min: minDay, name: \"day\" }, otherProps));\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { getYear, getMonthHuman } from '@wojtekmaj/date-utils';\nimport Input from './Input.js';\nimport { safeMin, safeMax } from '../shared/utils.js';\nexport default function MonthInput(_a) {\n var maxDate = _a.maxDate, minDate = _a.minDate, year = _a.year, otherProps = __rest(_a, [\"maxDate\", \"minDate\", \"year\"]);\n function isSameYear(date) {\n return date && year === getYear(date).toString();\n }\n var maxMonth = safeMin(12, maxDate && isSameYear(maxDate) && getMonthHuman(maxDate));\n var minMonth = safeMax(1, minDate && isSameYear(minDate) && getMonthHuman(minDate));\n return _jsx(Input, __assign({ max: maxMonth, min: minMonth, name: \"month\" }, otherProps));\n}\n","import getUserLocale from 'get-user-locale';\nvar formatterCache = new Map();\nexport function getFormatter(options) {\n return function formatter(locale, date) {\n var localeWithDefault = locale || getUserLocale();\n if (!formatterCache.has(localeWithDefault)) {\n formatterCache.set(localeWithDefault, new Map());\n }\n var formatterCacheLocale = formatterCache.get(localeWithDefault);\n if (!formatterCacheLocale.has(options)) {\n formatterCacheLocale.set(options, new Intl.DateTimeFormat(localeWithDefault || undefined, options).format);\n }\n return formatterCacheLocale.get(options)(date);\n };\n}\n/**\n * Changes the hour in a Date to ensure right date formatting even if DST is messed up.\n * Workaround for bug in WebKit and Firefox with historical dates.\n * For more details, see:\n * https://bugs.chromium.org/p/chromium/issues/detail?id=750465\n * https://bugzilla.mozilla.org/show_bug.cgi?id=1385643\n *\n * @param {Date} date Date.\n * @returns {Date} Date with hour set to 12.\n */\nfunction toSafeHour(date) {\n var safeDate = new Date(date);\n return new Date(safeDate.setHours(12));\n}\nfunction getSafeFormatter(options) {\n return function (locale, date) { return getFormatter(options)(locale, toSafeHour(date)); };\n}\nvar formatMonthOptions = { month: 'long' };\nvar formatShortMonthOptions = { month: 'short' };\nexport var formatMonth = getSafeFormatter(formatMonthOptions);\nexport var formatShortMonth = getSafeFormatter(formatShortMonthOptions);\n","var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport clsx from 'clsx';\nimport { getYear, getMonthHuman } from '@wojtekmaj/date-utils';\nimport { formatMonth, formatShortMonth } from '../shared/dateFormatter.js';\nimport { safeMin, safeMax } from '../shared/utils.js';\nexport default function MonthSelect(_a) {\n var ariaLabel = _a.ariaLabel, autoFocus = _a.autoFocus, className = _a.className, disabled = _a.disabled, inputRef = _a.inputRef, locale = _a.locale, maxDate = _a.maxDate, minDate = _a.minDate, onChange = _a.onChange, onKeyDown = _a.onKeyDown, _b = _a.placeholder, placeholder = _b === void 0 ? '--' : _b, required = _a.required, short = _a.short, value = _a.value, year = _a.year;\n function isSameYear(date) {\n return date && year === getYear(date).toString();\n }\n var maxMonth = safeMin(12, maxDate && isSameYear(maxDate) && getMonthHuman(maxDate));\n var minMonth = safeMax(1, minDate && isSameYear(minDate) && getMonthHuman(minDate));\n var dates = __spreadArray([], Array(12), true).map(function (el, index) { return new Date(2019, index, 1); });\n var name = 'month';\n var formatter = short ? formatShortMonth : formatMonth;\n return (_jsxs(\"select\", { \"aria-label\": ariaLabel, autoFocus: autoFocus, className: clsx(\"\".concat(className, \"__input\"), \"\".concat(className, \"__\").concat(name)), \"data-input\": \"true\", \"data-select\": \"true\", disabled: disabled, name: name, onChange: onChange, onKeyDown: onKeyDown, \n // Assertion is needed for React 18 compatibility\n ref: inputRef, required: required, value: value !== null ? value : '', children: [!value && _jsx(\"option\", { value: \"\", children: placeholder }), dates.map(function (date) {\n var month = getMonthHuman(date);\n var disabled = month < minMonth || month > maxMonth;\n return (_jsx(\"option\", { disabled: disabled, value: month, children: formatter(locale, date) }, month));\n })] }));\n}\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { getYear } from '@wojtekmaj/date-utils';\nimport Input from './Input.js';\nimport { safeMax, safeMin } from '../shared/utils.js';\nexport default function YearInput(_a) {\n var maxDate = _a.maxDate, minDate = _a.minDate, _b = _a.placeholder, placeholder = _b === void 0 ? '----' : _b, valueType = _a.valueType, otherProps = __rest(_a, [\"maxDate\", \"minDate\", \"placeholder\", \"valueType\"]);\n var maxYear = safeMin(275760, maxDate && getYear(maxDate));\n var minYear = safeMax(1, minDate && getYear(minDate));\n var yearStep = (function () {\n if (valueType === 'century') {\n return 10;\n }\n return 1;\n })();\n return (_jsx(Input, __assign({ max: maxYear, min: minYear, name: \"year\", placeholder: placeholder, step: yearStep }, otherProps)));\n}\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { getYear, getISOLocalDate, getISOLocalMonth } from '@wojtekmaj/date-utils';\nexport default function NativeInput(_a) {\n var ariaLabel = _a.ariaLabel, disabled = _a.disabled, maxDate = _a.maxDate, minDate = _a.minDate, name = _a.name, onChange = _a.onChange, required = _a.required, value = _a.value, valueType = _a.valueType;\n var nativeInputType = (function () {\n switch (valueType) {\n case 'decade':\n case 'year':\n return 'number';\n case 'month':\n return 'month';\n case 'day':\n return 'date';\n default:\n throw new Error('Invalid valueType');\n }\n })();\n var nativeValueParser = (function () {\n switch (valueType) {\n case 'decade':\n case 'year':\n return getYear;\n case 'month':\n return getISOLocalMonth;\n case 'day':\n return getISOLocalDate;\n default:\n throw new Error('Invalid valueType');\n }\n })();\n function stopPropagation(event) {\n event.stopPropagation();\n }\n return (_jsx(\"input\", { \"aria-label\": ariaLabel, disabled: disabled, hidden: true, max: maxDate ? nativeValueParser(maxDate) : undefined, min: minDate ? nativeValueParser(minDate) : undefined, name: name, onChange: onChange, onFocus: stopPropagation, required: required, style: {\n visibility: 'hidden',\n position: 'absolute',\n zIndex: '-999',\n }, type: nativeInputType, value: value ? nativeValueParser(value) : '' }));\n}\n","import { getDecadeStart, getDecadeEnd, getYearStart, getYearEnd, getMonthStart, getMonthEnd, getDayStart, getDayEnd, } from '@wojtekmaj/date-utils';\n/**\n * Returns the beginning of a given range.\n *\n * @param {RangeType} rangeType Range type (e.g. 'day')\n * @param {Date} date Date.\n */\nexport function getBegin(rangeType, date) {\n switch (rangeType) {\n case 'decade':\n return getDecadeStart(date);\n case 'year':\n return getYearStart(date);\n case 'month':\n return getMonthStart(date);\n case 'day':\n return getDayStart(date);\n default:\n throw new Error(\"Invalid rangeType: \".concat(rangeType));\n }\n}\n/**\n * Returns the end of a given range.\n *\n * @param {RangeType} rangeType Range type (e.g. 'day')\n * @param {Date} date Date.\n */\nexport function getEnd(rangeType, date) {\n switch (rangeType) {\n case 'decade':\n return getDecadeEnd(date);\n case 'year':\n return getYearEnd(date);\n case 'month':\n return getMonthEnd(date);\n case 'day':\n return getDayEnd(date);\n default:\n throw new Error(\"Invalid rangeType: \".concat(rangeType));\n }\n}\n","'use client';\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useRef, useState } from 'react';\nimport { getYear, getMonthHuman, getDate } from '@wojtekmaj/date-utils';\nimport Divider from './Divider.js';\nimport DayInput from './DateInput/DayInput.js';\nimport MonthInput from './DateInput/MonthInput.js';\nimport MonthSelect from './DateInput/MonthSelect.js';\nimport YearInput from './DateInput/YearInput.js';\nimport NativeInput from './DateInput/NativeInput.js';\nimport { getFormatter } from './shared/dateFormatter.js';\nimport { getBegin, getEnd } from './shared/dates.js';\nimport { between } from './shared/utils.js';\nvar getFormatterOptionsCache = {};\nvar defaultMinDate = new Date();\ndefaultMinDate.setFullYear(1, 0, 1);\ndefaultMinDate.setHours(0, 0, 0, 0);\nvar defaultMaxDate = new Date(8.64e15);\nvar allViews = ['century', 'decade', 'year', 'month'];\nvar allValueTypes = __spreadArray(__spreadArray([], allViews.slice(1), true), ['day'], false);\nfunction toDate(value) {\n if (value instanceof Date) {\n return value;\n }\n return new Date(value);\n}\n/**\n * Returns value type that can be returned with currently applied settings.\n */\nfunction getValueType(view) {\n var index = allViews.indexOf(view);\n return allValueTypes[index];\n}\nfunction getValue(value, index) {\n var rawValue = Array.isArray(value) ? value[index] : value;\n if (!rawValue) {\n return null;\n }\n var valueDate = toDate(rawValue);\n if (isNaN(valueDate.getTime())) {\n throw new Error(\"Invalid date: \".concat(value));\n }\n return valueDate;\n}\nfunction getDetailValue(_a, index) {\n var value = _a.value, minDate = _a.minDate, maxDate = _a.maxDate, maxDetail = _a.maxDetail;\n var valuePiece = getValue(value, index);\n if (!valuePiece) {\n return null;\n }\n var valueType = getValueType(maxDetail);\n var detailValueFrom = (function () {\n switch (index) {\n case 0:\n return getBegin(valueType, valuePiece);\n case 1:\n return getEnd(valueType, valuePiece);\n default:\n throw new Error(\"Invalid index value: \".concat(index));\n }\n })();\n return between(detailValueFrom, minDate, maxDate);\n}\nvar getDetailValueFrom = function (args) { return getDetailValue(args, 0); };\nvar getDetailValueTo = function (args) { return getDetailValue(args, 1); };\nvar getDetailValueArray = function (args) {\n return [getDetailValueFrom, getDetailValueTo].map(function (fn) { return fn(args); });\n};\nfunction isInternalInput(element) {\n return element.dataset.input === 'true';\n}\nfunction findInput(element, property) {\n var nextElement = element;\n do {\n nextElement = nextElement[property];\n } while (nextElement && !isInternalInput(nextElement));\n return nextElement;\n}\nfunction focus(element) {\n if (element) {\n element.focus();\n }\n}\nfunction renderCustomInputs(placeholder, elementFunctions, allowMultipleInstances) {\n var usedFunctions = [];\n var pattern = new RegExp(Object.keys(elementFunctions)\n .map(function (el) { return \"\".concat(el, \"+\"); })\n .join('|'), 'g');\n var matches = placeholder.match(pattern);\n return placeholder.split(pattern).reduce(function (arr, element, index) {\n var divider = element && (\n // eslint-disable-next-line react/no-array-index-key\n _jsx(Divider, { children: element }, \"separator_\".concat(index)));\n arr.push(divider);\n var currentMatch = matches && matches[index];\n if (currentMatch) {\n var renderFunction = elementFunctions[currentMatch] ||\n elementFunctions[Object.keys(elementFunctions).find(function (elementFunction) {\n return currentMatch.match(elementFunction);\n })];\n if (!renderFunction) {\n return arr;\n }\n if (!allowMultipleInstances && usedFunctions.includes(renderFunction)) {\n arr.push(currentMatch);\n }\n else {\n arr.push(renderFunction(currentMatch, index));\n usedFunctions.push(renderFunction);\n }\n }\n return arr;\n }, []);\n}\nexport default function DateInput(_a) {\n var autoFocus = _a.autoFocus, className = _a.className, dayAriaLabel = _a.dayAriaLabel, dayPlaceholder = _a.dayPlaceholder, disabled = _a.disabled, format = _a.format, _b = _a.isCalendarOpen, isCalendarOpenProps = _b === void 0 ? null : _b, locale = _a.locale, maxDate = _a.maxDate, _c = _a.maxDetail, maxDetail = _c === void 0 ? 'month' : _c, minDate = _a.minDate, monthAriaLabel = _a.monthAriaLabel, monthPlaceholder = _a.monthPlaceholder, _d = _a.name, name = _d === void 0 ? 'date' : _d, nativeInputAriaLabel = _a.nativeInputAriaLabel, onChangeProps = _a.onChange, onInvalidChange = _a.onInvalidChange, required = _a.required, _e = _a.returnValue, returnValue = _e === void 0 ? 'start' : _e, showLeadingZeros = _a.showLeadingZeros, valueProps = _a.value, yearAriaLabel = _a.yearAriaLabel, yearPlaceholder = _a.yearPlaceholder;\n var _f = useState(null), year = _f[0], setYear = _f[1];\n var _g = useState(null), month = _g[0], setMonth = _g[1];\n var _h = useState(null), day = _h[0], setDay = _h[1];\n var _j = useState(null), value = _j[0], setValue = _j[1];\n var yearInput = useRef(null);\n var monthInput = useRef(null);\n var monthSelect = useRef(null);\n var dayInput = useRef(null);\n var _k = useState(isCalendarOpenProps), isCalendarOpen = _k[0], setIsCalendarOpen = _k[1];\n var lastPressedKey = useRef(undefined);\n useEffect(function () {\n setIsCalendarOpen(isCalendarOpenProps);\n }, [isCalendarOpenProps]);\n useEffect(function () {\n var nextValue = getDetailValueFrom({\n value: valueProps,\n minDate: minDate,\n maxDate: maxDate,\n maxDetail: maxDetail,\n });\n if (nextValue) {\n setYear(getYear(nextValue).toString());\n setMonth(getMonthHuman(nextValue).toString());\n setDay(getDate(nextValue).toString());\n setValue(nextValue);\n }\n else {\n setYear(null);\n setMonth(null);\n setDay(null);\n setValue(null);\n }\n }, [\n valueProps,\n minDate,\n maxDate,\n maxDetail,\n // Toggling calendar visibility resets values\n isCalendarOpen,\n ]);\n var valueType = getValueType(maxDetail);\n var formatDate = (function () {\n var level = allViews.indexOf(maxDetail);\n var formatterOptions = getFormatterOptionsCache[level] ||\n (function () {\n var options = { year: 'numeric' };\n if (level >= 2) {\n options.month = 'numeric';\n }\n if (level >= 3) {\n options.day = 'numeric';\n }\n getFormatterOptionsCache[level] = options;\n return options;\n })();\n return getFormatter(formatterOptions);\n })();\n /**\n * Gets current value in a desired format.\n */\n function getProcessedValue(value) {\n var processFunction = (function () {\n switch (returnValue) {\n case 'start':\n return getDetailValueFrom;\n case 'end':\n return getDetailValueTo;\n case 'range':\n return getDetailValueArray;\n default:\n throw new Error('Invalid returnValue.');\n }\n })();\n return processFunction({\n value: value,\n minDate: minDate,\n maxDate: maxDate,\n maxDetail: maxDetail,\n });\n }\n var placeholder = format ||\n (function () {\n var year = 2017;\n var monthIndex = 11;\n var day = 11;\n var date = new Date(year, monthIndex, day);\n var formattedDate = formatDate(locale, date);\n var datePieces = ['year', 'month', 'day'];\n var datePieceReplacements = ['y', 'M', 'd'];\n function formatDatePiece(name, dateToFormat) {\n var formatterOptions = getFormatterOptionsCache[name] ||\n (function () {\n var _a;\n var options = (_a = {}, _a[name] = 'numeric', _a);\n getFormatterOptionsCache[name] = options;\n return options;\n })();\n return getFormatter(formatterOptions)(locale, dateToFormat).match(/\\d{1,}/);\n }\n var placeholder = formattedDate;\n datePieces.forEach(function (datePiece, index) {\n var match = formatDatePiece(datePiece, date);\n if (match) {\n var formattedDatePiece = match[0];\n var datePieceReplacement = datePieceReplacements[index];\n placeholder = placeholder.replace(formattedDatePiece, datePieceReplacement);\n }\n });\n // See: https://github.com/wojtekmaj/react-date-picker/issues/396\n placeholder = placeholder.replace('17', 'y');\n return placeholder;\n })();\n var divider = (function () {\n var dividers = placeholder.match(/[^0-9a-z]/i);\n return dividers ? dividers[0] : null;\n })();\n function onClick(event) {\n if (event.target === event.currentTarget) {\n // Wrapper was directly clicked\n var firstInput = event.target.children[1];\n focus(firstInput);\n }\n }\n function onKeyDown(event) {\n lastPressedKey.current = event.key;\n switch (event.key) {\n case 'ArrowLeft':\n case 'ArrowRight':\n case divider: {\n event.preventDefault();\n var input = event.target;\n var property = event.key === 'ArrowLeft' ? 'previousElementSibling' : 'nextElementSibling';\n var nextInput = findInput(input, property);\n focus(nextInput);\n break;\n }\n default:\n }\n }\n function onKeyUp(event) {\n var key = event.key, input = event.target;\n var isLastPressedKey = lastPressedKey.current === key;\n if (!isLastPressedKey) {\n return;\n }\n var isNumberKey = !isNaN(Number(key));\n if (!isNumberKey) {\n return;\n }\n var max = input.getAttribute('max');\n if (!max) {\n return;\n }\n var value = input.value;\n /**\n * Given 1, the smallest possible number the user could type by adding another digit is 10.\n * 10 would be a valid value given max = 12, so we won't jump to the next input.\n * However, given 2, smallers possible number would be 20, and thus keeping the focus in\n * this field doesn't make sense.\n */\n if (Number(value) * 10 > Number(max) || value.length >= max.length) {\n var property = 'nextElementSibling';\n var nextInput = findInput(input, property);\n focus(nextInput);\n }\n }\n /**\n * Called after internal onChange. Checks input validity. If all fields are valid,\n * calls props.onChange.\n */\n function onChangeExternal() {\n if (!onChangeProps) {\n return;\n }\n function filterBoolean(value) {\n return Boolean(value);\n }\n var formElements = [\n dayInput.current,\n monthInput.current,\n monthSelect.current,\n yearInput.current,\n ].filter(filterBoolean);\n var values = {};\n formElements.forEach(function (formElement) {\n values[formElement.name] =\n 'valueAsNumber' in formElement\n ? formElement.valueAsNumber\n : Number(formElement.value);\n });\n var isEveryValueEmpty = formElements.every(function (formElement) { return !formElement.value; });\n if (isEveryValueEmpty) {\n onChangeProps(null, false);\n return;\n }\n var isEveryValueFilled = formElements.every(function (formElement) { return formElement.value; });\n var isEveryValueValid = formElements.every(function (formElement) { return formElement.validity.valid; });\n if (isEveryValueFilled && isEveryValueValid) {\n var year_1 = Number(values.year || new Date().getFullYear());\n var monthIndex = Number(values.month || 1) - 1;\n var day_1 = Number(values.day || 1);\n var proposedValue = new Date();\n proposedValue.setFullYear(year_1, monthIndex, day_1);\n proposedValue.setHours(0, 0, 0, 0);\n var processedValue = getProcessedValue(proposedValue);\n onChangeProps(processedValue, false);\n return;\n }\n if (!onInvalidChange) {\n return;\n }\n onInvalidChange();\n }\n /**\n * Called when non-native date input is changed.\n */\n function onChange(event) {\n var _a = event.target, name = _a.name, value = _a.value;\n switch (name) {\n case 'year':\n setYear(value);\n break;\n case 'month':\n setMonth(value);\n break;\n case 'day':\n setDay(value);\n break;\n }\n onChangeExternal();\n }\n /**\n * Called when native date input is changed.\n */\n function onChangeNative(event) {\n var value = event.target.value;\n if (!onChangeProps) {\n return;\n }\n var processedValue = (function () {\n if (!value) {\n return null;\n }\n var _a = value.split('-'), yearString = _a[0], monthString = _a[1], dayString = _a[2];\n var year = Number(yearString);\n var monthIndex = Number(monthString) - 1 || 0;\n var day = Number(dayString) || 1;\n var proposedValue = new Date();\n proposedValue.setFullYear(year, monthIndex, day);\n proposedValue.setHours(0, 0, 0, 0);\n return proposedValue;\n })();\n onChangeProps(processedValue, false);\n }\n var commonInputProps = {\n className: className,\n disabled: disabled,\n maxDate: maxDate || defaultMaxDate,\n minDate: minDate || defaultMinDate,\n onChange: onChange,\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp,\n // This is only for showing validity when editing\n required: Boolean(required || isCalendarOpen),\n };\n function renderDay(currentMatch, index) {\n if (currentMatch && currentMatch.length > 2) {\n throw new Error(\"Unsupported token: \".concat(currentMatch));\n }\n var showLeadingZerosFromFormat = currentMatch && currentMatch.length === 2;\n return (_jsx(DayInput, __assign({}, commonInputProps, { ariaLabel: dayAriaLabel, \n // eslint-disable-next-line jsx-a11y/no-autofocus\n autoFocus: index === 0 && autoFocus, inputRef: dayInput, month: month, placeholder: dayPlaceholder, showLeadingZeros: showLeadingZerosFromFormat || showLeadingZeros, value: day, year: year }), \"day\"));\n }\n function renderMonth(currentMatch, index) {\n if (currentMatch && currentMatch.length > 4) {\n throw new Error(\"Unsupported token: \".concat(currentMatch));\n }\n if (currentMatch.length > 2) {\n return (_jsx(MonthSelect, __assign({}, commonInputProps, { ariaLabel: monthAriaLabel, \n // eslint-disable-next-line jsx-a11y/no-autofocus\n autoFocus: index === 0 && autoFocus, inputRef: monthSelect, locale: locale, placeholder: monthPlaceholder, short: currentMatch.length === 3, value: month, year: year }), \"month\"));\n }\n var showLeadingZerosFromFormat = currentMatch && currentMatch.length === 2;\n return (_jsx(MonthInput, __assign({}, commonInputProps, { ariaLabel: monthAriaLabel, \n // eslint-disable-next-line jsx-a11y/no-autofocus\n autoFocus: index === 0 && autoFocus, inputRef: monthInput, placeholder: monthPlaceholder, showLeadingZeros: showLeadingZerosFromFormat || showLeadingZeros, value: month, year: year }), \"month\"));\n }\n function renderYear(currentMatch, index) {\n return (_jsx(YearInput, __assign({}, commonInputProps, { ariaLabel: yearAriaLabel, \n // eslint-disable-next-line jsx-a11y/no-autofocus\n autoFocus: index === 0 && autoFocus, inputRef: yearInput, placeholder: yearPlaceholder, value: year, valueType: valueType }), \"year\"));\n }\n function renderCustomInputsInternal() {\n var elementFunctions = {\n d: renderDay,\n M: renderMonth,\n y: renderYear,\n };\n var allowMultipleInstances = typeof format !== 'undefined';\n return renderCustomInputs(placeholder, elementFunctions, allowMultipleInstances);\n }\n function renderNativeInput() {\n return (_jsx(NativeInput, { ariaLabel: nativeInputAriaLabel, disabled: disabled, maxDate: maxDate || defaultMaxDate, minDate: minDate || defaultMinDate, name: name, onChange: onChangeNative, required: required, value: value, valueType: valueType }, \"date\"));\n }\n return (\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions\n _jsxs(\"div\", { className: className, onClick: onClick, children: [renderNativeInput(), renderCustomInputsInternal()] }));\n}\n","'use client';\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { createElement, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { createPortal } from 'react-dom';\nimport makeEventProps from 'make-event-props';\nimport clsx from 'clsx';\nimport Calendar from 'react-calendar';\nimport Fit from 'react-fit';\nimport DateInput from './DateInput.js';\nvar baseClassName = 'react-date-picker';\nvar outsideActionEvents = ['mousedown', 'focusin', 'touchstart'];\nvar iconProps = {\n xmlns: 'http://www.w3.org/2000/svg',\n width: 19,\n height: 19,\n viewBox: '0 0 19 19',\n stroke: 'black',\n strokeWidth: 2,\n};\nvar CalendarIcon = (_jsxs(\"svg\", __assign({}, iconProps, { className: \"\".concat(baseClassName, \"__calendar-button__icon \").concat(baseClassName, \"__button__icon\"), children: [_jsx(\"rect\", { fill: \"none\", height: \"15\", width: \"15\", x: \"2\", y: \"2\" }), _jsx(\"line\", { x1: \"6\", x2: \"6\", y1: \"0\", y2: \"4\" }), _jsx(\"line\", { x1: \"13\", x2: \"13\", y1: \"0\", y2: \"4\" })] })));\nvar ClearIcon = (_jsxs(\"svg\", __assign({}, iconProps, { className: \"\".concat(baseClassName, \"__clear-button__icon \").concat(baseClassName, \"__button__icon\"), children: [_jsx(\"line\", { x1: \"4\", x2: \"15\", y1: \"4\", y2: \"15\" }), _jsx(\"line\", { x1: \"15\", x2: \"4\", y1: \"4\", y2: \"15\" })] })));\nexport default function DatePicker(props) {\n var autoFocus = props.autoFocus, calendarAriaLabel = props.calendarAriaLabel, _a = props.calendarIcon, calendarIcon = _a === void 0 ? CalendarIcon : _a, className = props.className, clearAriaLabel = props.clearAriaLabel, _b = props.clearIcon, clearIcon = _b === void 0 ? ClearIcon : _b, _c = props.closeCalendar, shouldCloseCalendarOnSelect = _c === void 0 ? true : _c, dataTestid = props[\"data-testid\"], dayAriaLabel = props.dayAriaLabel, dayPlaceholder = props.dayPlaceholder, disableCalendar = props.disableCalendar, disabled = props.disabled, format = props.format, id = props.id, _d = props.isOpen, isOpenProps = _d === void 0 ? null : _d, locale = props.locale, maxDate = props.maxDate, _e = props.maxDetail, maxDetail = _e === void 0 ? 'month' : _e, minDate = props.minDate, monthAriaLabel = props.monthAriaLabel, monthPlaceholder = props.monthPlaceholder, _f = props.name, name = _f === void 0 ? 'date' : _f, nativeInputAriaLabel = props.nativeInputAriaLabel, onCalendarClose = props.onCalendarClose, onCalendarOpen = props.onCalendarOpen, onChangeProps = props.onChange, onFocusProps = props.onFocus, onInvalidChange = props.onInvalidChange, _g = props.openCalendarOnFocus, openCalendarOnFocus = _g === void 0 ? true : _g, required = props.required, _h = props.returnValue, returnValue = _h === void 0 ? 'start' : _h, shouldCloseCalendar = props.shouldCloseCalendar, shouldOpenCalendar = props.shouldOpenCalendar, showLeadingZeros = props.showLeadingZeros, value = props.value, yearAriaLabel = props.yearAriaLabel, yearPlaceholder = props.yearPlaceholder, otherProps = __rest(props, [\"autoFocus\", \"calendarAriaLabel\", \"calendarIcon\", \"className\", \"clearAriaLabel\", \"clearIcon\", \"closeCalendar\", 'data-testid', \"dayAriaLabel\", \"dayPlaceholder\", \"disableCalendar\", \"disabled\", \"format\", \"id\", \"isOpen\", \"locale\", \"maxDate\", \"maxDetail\", \"minDate\", \"monthAriaLabel\", \"monthPlaceholder\", \"name\", \"nativeInputAriaLabel\", \"onCalendarClose\", \"onCalendarOpen\", \"onChange\", \"onFocus\", \"onInvalidChange\", \"openCalendarOnFocus\", \"required\", \"returnValue\", \"shouldCloseCalendar\", \"shouldOpenCalendar\", \"showLeadingZeros\", \"value\", \"yearAriaLabel\", \"yearPlaceholder\"]);\n var _j = useState(isOpenProps), isOpen = _j[0], setIsOpen = _j[1];\n var wrapper = useRef(null);\n var calendarWrapper = useRef(null);\n useEffect(function () {\n setIsOpen(isOpenProps);\n }, [isOpenProps]);\n function openCalendar(_a) {\n var reason = _a.reason;\n if (shouldOpenCalendar) {\n if (!shouldOpenCalendar({ reason: reason })) {\n return;\n }\n }\n setIsOpen(true);\n if (onCalendarOpen) {\n onCalendarOpen();\n }\n }\n var closeCalendar = useCallback(function (_a) {\n var reason = _a.reason;\n if (shouldCloseCalendar) {\n if (!shouldCloseCalendar({ reason: reason })) {\n return;\n }\n }\n setIsOpen(false);\n if (onCalendarClose) {\n onCalendarClose();\n }\n }, [onCalendarClose, shouldCloseCalendar]);\n function toggleCalendar() {\n if (isOpen) {\n closeCalendar({ reason: 'buttonClick' });\n }\n else {\n openCalendar({ reason: 'buttonClick' });\n }\n }\n function onChange(value, shouldCloseCalendar) {\n if (shouldCloseCalendar === void 0) { shouldCloseCalendar = shouldCloseCalendarOnSelect; }\n if (shouldCloseCalendar) {\n closeCalendar({ reason: 'select' });\n }\n if (onChangeProps) {\n onChangeProps(value);\n }\n }\n function onFocus(event) {\n if (onFocusProps) {\n onFocusProps(event);\n }\n if (\n // Internet Explorer still fires onFocus on disabled elements\n disabled ||\n isOpen ||\n !openCalendarOnFocus ||\n event.target.dataset.select === 'true') {\n return;\n }\n openCalendar({ reason: 'focus' });\n }\n var onKeyDown = useCallback(function (event) {\n if (event.key === 'Escape') {\n closeCalendar({ reason: 'escape' });\n }\n }, [closeCalendar]);\n function clear() {\n onChange(null);\n }\n function stopPropagation(event) {\n event.stopPropagation();\n }\n var onOutsideAction = useCallback(function (event) {\n var wrapperEl = wrapper.current;\n var calendarWrapperEl = calendarWrapper.current;\n // Try event.composedPath first to handle clicks inside a Shadow DOM.\n var target = ('composedPath' in event ? event.composedPath()[0] : event.target);\n if (target &&\n wrapperEl &&\n !wrapperEl.contains(target) &&\n (!calendarWrapperEl || !calendarWrapperEl.contains(target))) {\n closeCalendar({ reason: 'outsideAction' });\n }\n }, [calendarWrapper, closeCalendar, wrapper]);\n var handleOutsideActionListeners = useCallback(function (shouldListen) {\n if (shouldListen === void 0) { shouldListen = isOpen; }\n outsideActionEvents.forEach(function (event) {\n if (shouldListen) {\n document.addEventListener(event, onOutsideAction);\n }\n else {\n document.removeEventListener(event, onOutsideAction);\n }\n });\n if (shouldListen) {\n document.addEventListener('keydown', onKeyDown);\n }\n else {\n document.removeEventListener('keydown', onKeyDown);\n }\n }, [isOpen, onOutsideAction, onKeyDown]);\n useEffect(function () {\n handleOutsideActionListeners();\n return function () {\n handleOutsideActionListeners(false);\n };\n }, [handleOutsideActionListeners]);\n function renderInputs() {\n var valueFrom = (Array.isArray(value) ? value : [value])[0];\n var ariaLabelProps = {\n dayAriaLabel: dayAriaLabel,\n monthAriaLabel: monthAriaLabel,\n nativeInputAriaLabel: nativeInputAriaLabel,\n yearAriaLabel: yearAriaLabel,\n };\n var placeholderProps = {\n dayPlaceholder: dayPlaceholder,\n monthPlaceholder: monthPlaceholder,\n yearPlaceholder: yearPlaceholder,\n };\n return (_jsxs(\"div\", { className: \"\".concat(baseClassName, \"__wrapper\"), children: [_jsx(DateInput, __assign({}, ariaLabelProps, placeholderProps, { \n // eslint-disable-next-line jsx-a11y/no-autofocus\n autoFocus: autoFocus, className: \"\".concat(baseClassName, \"__inputGroup\"), disabled: disabled, format: format, isCalendarOpen: isOpen, locale: locale, maxDate: maxDate, maxDetail: maxDetail, minDate: minDate, name: name, onChange: onChange, onInvalidChange: onInvalidChange, required: required, returnValue: returnValue, showLeadingZeros: showLeadingZeros, value: valueFrom })), clearIcon !== null && (_jsx(\"button\", { \"aria-label\": clearAriaLabel, className: \"\".concat(baseClassName, \"__clear-button \").concat(baseClassName, \"__button\"), disabled: disabled, onClick: clear, onFocus: stopPropagation, type: \"button\", children: typeof clearIcon === 'function' ? createElement(clearIcon) : clearIcon })), calendarIcon !== null && !disableCalendar && (_jsx(\"button\", { \"aria-expanded\": isOpen || false, \"aria-label\": calendarAriaLabel, className: \"\".concat(baseClassName, \"__calendar-button \").concat(baseClassName, \"__button\"), disabled: disabled, onClick: toggleCalendar, onFocus: stopPropagation, type: \"button\", children: typeof calendarIcon === 'function' ? createElement(calendarIcon) : calendarIcon }))] }));\n }\n function renderCalendar() {\n if (isOpen === null || disableCalendar) {\n return null;\n }\n var calendarProps = props.calendarProps, portalContainer = props.portalContainer, value = props.value;\n var className = \"\".concat(baseClassName, \"__calendar\");\n var classNames = clsx(className, \"\".concat(className, \"--\").concat(isOpen ? 'open' : 'closed'));\n var calendar = (_jsx(Calendar, __assign({ locale: locale, maxDate: maxDate, maxDetail: maxDetail, minDate: minDate, onChange: function (value) { return onChange(value); }, value: value }, calendarProps)));\n return portalContainer ? (createPortal(_jsx(\"div\", { ref: calendarWrapper, className: classNames, children: calendar }), portalContainer)) : (_jsx(Fit, { children: _jsx(\"div\", { ref: function (ref) {\n if (ref && !isOpen) {\n ref.removeAttribute('style');\n }\n }, className: classNames, children: calendar }) }));\n }\n var eventProps = useMemo(function () { return makeEventProps(otherProps); }, [otherProps]);\n return (_jsxs(\"div\", __assign({ className: clsx(baseClassName, \"\".concat(baseClassName, \"--\").concat(isOpen ? 'open' : 'closed'), \"\".concat(baseClassName, \"--\").concat(disabled ? 'disabled' : 'enabled'), className), \"data-testid\": dataTestid, id: id }, eventProps, { onFocus: onFocus, ref: wrapper, children: [renderInputs(), renderCalendar()] })));\n}\n","import DatePicker from './DatePicker.js';\nexport { DatePicker };\nexport default DatePicker;\n"],"sourceRoot":""}