diff --git a/app/Http/Controllers/CarController.php b/app/Http/Controllers/CarController.php index 89f26a1..00a9490 100644 --- a/app/Http/Controllers/CarController.php +++ b/app/Http/Controllers/CarController.php @@ -304,14 +304,14 @@ class CarController extends Controller public function store(Request $request) { + $request->validate($this->getValidationRules()); + $request->merge([ 'initial_date' => Carbon::parse($request->get('initial_date'))->format('Y-m-d'), 'last_check_date' => Carbon::parse($request->get('last_check_date'))->format('Y-m-d'), ]); - $car = Car::create( - $request->validate($this->getValidationRules()) - ); + $car = Car::create($request->all()); session()->flash('flash.banner', 'Auto erstellt.'); return Redirect::route('cars.show', $car); @@ -319,15 +319,21 @@ class CarController extends Controller public function storeForContract(Request $request) { - $car = Car::create( - $request->validate($this->getValidationRules()) - ); + $request->validate($this->getValidationRules()); + + $request->merge([ + 'initial_date' => Carbon::parse($request->get('initial_date'))->format('Y-m-d'), + 'last_check_date' => Carbon::parse($request->get('last_check_date'))->format('Y-m-d'), + ]); + + $car = Car::create($request->all()); return response()->json([ 'id' => $car->id, 'stammnummer' => $car->stammnummer, 'vin' => $car->vin, 'name' => $car->name, + 'label' => $car->name . ' (' . $car->stammnummer . ')', 'colour' => $car->colour, 'last_check_date' => $car->last_check_date_formatted, 'kilometers' => $car->kilometers, @@ -340,8 +346,8 @@ class CarController extends Controller return [ 'stammnummer' => ['required', 'unique:cars', 'string', 'size:11', 'regex:/[0-9]{3}[.][0-9]{3}[.][0-9]{3}/i'], 'vin' => ['required', 'unique:cars', 'string', 'size:17'], - 'initial_date' => ['required', 'date'], - 'last_check_date' => ['required', 'date'], + 'initial_date' => ['required', 'date_format:"d.m.Y"'], + 'last_check_date' => ['required', 'date_format:"d.m.Y"'], 'colour' => ['nullable', 'max:75'], 'car_model_id' => ['required', 'exists:App\Models\CarModel,id'], 'kilometers' => ['required', 'max:75'], @@ -417,24 +423,24 @@ class CarController extends Controller public function update(Request $request, Car $car) { + $request->validate([ + 'stammnummer' => ['required', 'unique:cars,stammnummer,' . $car->id, 'string', 'size:11', 'regex:/[0-9]{3}[.][0-9]{3}[.][0-9]{3}/i'], + 'vin' => ['required', 'unique:cars,vin,' . $car->id, 'string', 'size:17'], + 'initial_date' => ['required', 'date_format:"d.m.Y"'], + 'last_check_date' => ['required', 'date_format:"d.m.Y"'], + 'colour' => ['nullable', 'max:75'], + 'car_model_id' => ['required', 'exists:App\Models\CarModel,id'], + 'kilometers' => ['required', 'max:75'], + 'known_damage' => ['nullable'], + 'notes' => ['nullable'], + ]); + $request->merge([ 'initial_date' => Carbon::parse($request->get('initial_date'))->format('Y-m-d'), 'last_check_date' => Carbon::parse($request->get('last_check_date'))->format('Y-m-d'), ]); - $car->update( - $request->validate([ - 'stammnummer' => ['required', 'unique:cars,stammnummer,' . $car->id, 'string', 'size:11', 'regex:/[0-9]{3}[.][0-9]{3}[.][0-9]{3}/i'], - 'vin' => ['required', 'unique:cars,vin,' . $car->id, 'string', 'size:17'], - 'initial_date' => ['required', 'date'], - 'last_check_date' => ['required', 'date'], - 'colour' => ['nullable', 'max:75'], - 'car_model_id' => ['required', 'exists:App\Models\CarModel,id'], - 'kilometers' => ['required', 'max:75'], - 'known_damage' => ['nullable'], - 'notes' => ['nullable'], - ]) - ); + $car->update($request->all()); session()->flash('flash.banner', 'Auto geändert.'); return Redirect::route('cars.show', $car); diff --git a/app/Http/Controllers/ContractController.php b/app/Http/Controllers/ContractController.php index bbbe101..1a2727d 100644 --- a/app/Http/Controllers/ContractController.php +++ b/app/Http/Controllers/ContractController.php @@ -86,6 +86,7 @@ class ContractController extends Controller if (!$car) { return [ 'name' => null, + 'label' => null, 'id' => null, 'stammnummer' => null, 'vin' => null, @@ -96,6 +97,7 @@ class ContractController extends Controller } return [ 'name' => $car->name, + 'label' => $car->name . ' (' . $car->stammnummer . ')', 'id' => $car->id, 'stammnummer' => $car->stammnummer, 'vin' => $car->vin, @@ -144,22 +146,25 @@ class ContractController extends Controller 'type' => (string)$request->get('type'), 'payment_type' => (string)$request->get('payment_type'), 'insurance_type' => (string)$request->get('insurance_type'), + ]); + + $request->validate([ + 'type' => ['required', 'string', Rule::in(ContractType::getValues())], + 'date' => ['required', 'date_format:"d.m.Y"'], + 'delivery_date' => ['required', 'date_format:"d.m.Y"'], + 'price' => ['required', 'integer'], + 'car_id' => ['required', 'exists:App\Models\Car,id'], + 'contact_id' => ['required', 'exists:App\Models\Contact,id'], + 'insurance_type' => ['nullable', 'string', Rule::in(InsuranceType::getValues())], + 'notes' => ['nullable'], + ]); + + $request->merge([ 'date' => Carbon::parse($request->get('date'))->format('Y-m-d'), 'delivery_date' => Carbon::parse($request->get('delivery_date'))->format('Y-m-d'), ]); - $contract = Contract::create( - $request->validate([ - 'type' => ['required', 'string', Rule::in(ContractType::getValues())], - 'date' => ['required', 'date'], - 'delivery_date' => ['required', 'date'], - 'price' => ['required', 'integer'], - 'car_id' => ['required', 'exists:App\Models\Car,id'], - 'contact_id' => ['required', 'exists:App\Models\Contact,id'], - 'insurance_type' => ['nullable', 'string', Rule::in(InsuranceType::getValues())], - 'notes' => ['nullable'], - ]) - ); + $contract = Contract::create($request->all()); $request->merge([ 'type' => (string)$request->get('payment_type'), @@ -209,19 +214,22 @@ class ContractController extends Controller { $request->merge([ 'insurance_type' => (string)$request->get('insurance_type'), + ]); + + $request->validate([ + 'date' => ['required', 'date_format:"d.m.Y"'], + 'delivery_date' => ['required', 'date_format:"d.m.Y"'], + 'price' => ['required', 'integer'], + 'insurance_type' => ['nullable', 'string', Rule::in(InsuranceType::getValues())], + 'notes' => ['nullable'], + ]); + + $request->merge([ 'date' => Carbon::parse($request->get('date'))->format('Y-m-d'), 'delivery_date' => Carbon::parse($request->get('delivery_date'))->format('Y-m-d'), ]); - $contract->update( - $request->validate([ - 'date' => ['required', 'date'], - 'delivery_date' => ['required', 'date'], - 'price' => ['required', 'integer'], - 'insurance_type' => ['nullable', 'string', Rule::in(InsuranceType::getValues())], - 'notes' => ['nullable'], - ]) - ); + $contract->update($request->all()); session()->flash('flash.banner', 'Vertrag geändert.'); return Redirect::route('contracts.show', $contract); diff --git a/app/Http/Controllers/PaymentController.php b/app/Http/Controllers/PaymentController.php index 9da03d9..785fbe0 100644 --- a/app/Http/Controllers/PaymentController.php +++ b/app/Http/Controllers/PaymentController.php @@ -22,17 +22,20 @@ class PaymentController extends Controller { $request->merge([ 'type' => (string)$request->get('type'), + ]); + + $request->validate([ + 'date' => ['required', 'date_format:"d.m.Y"'], + 'amount' => ['required', 'integer'], + 'type' => ['required', 'string', Rule::in(PaymentType::getValues())], + 'contract_id' => ['required', 'exists:App\Models\Contract,id'], + ]); + + $request->merge([ 'date' => Carbon::parse($request->get('date'))->format('Y-m-d'), ]); - $payment = Payment::create( - $request->validate([ - 'date' => ['required', 'date'], - 'amount' => ['required', 'integer'], - 'type' => ['required', 'string', Rule::in(PaymentType::getValues())], - 'contract_id' => ['required', 'exists:App\Models\Contract,id'], - ]) - ); + $payment = Payment::create($request->all()); session()->flash('flash.banner', 'Einzahlung gespeichert.'); return Redirect::route('contracts.show', $payment->contract); diff --git a/package-lock.json b/package-lock.json index 3eb2b44..dc2045c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "vue-currency-input": "^2.0.0", "vue-multiselect": "^3.0.0-alpha.2", "vue-unicons": "^3.2.1", - "vue3-datepicker": "^0.2.4", "vuex": "^4.0.0" }, "devDependencies": { @@ -4379,19 +4378,6 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.17.tgz", "integrity": "sha512-u1wmTI1jJGzCJzWndZo8mk4wnPTZd1eOIYTYvuEyOQGfmDl3TrabCCfKnOC86FZwW/9djqTl933UF/cS425i9A==" }, - "node_modules/date-fns": { - "version": "2.22.1", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.22.1.tgz", - "integrity": "sha512-yUFPQjrxEmIsMqlHhAhmxkuH769baF21Kk+nZwZGyrMoyLA+LugaQtC0+Tqf9CBUUULWwUJt6Q5ySI3LJDDCGg==", - "peer": true, - "engines": { - "node": ">=0.11" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/date-fns" - } - }, "node_modules/debug": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", @@ -11305,21 +11291,6 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz", "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==" }, - "node_modules/vue3-datepicker": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/vue3-datepicker/-/vue3-datepicker-0.2.4.tgz", - "integrity": "sha512-KV+GnP3+pWyWk9YUWC1BkYaiXhDS4C4jIekTrLAGQsuUARMzUYq0WlRAnzHfv5n2Vgt1j/X2hkPkl+xKwKZRUw==", - "dependencies": { - "date-fns": "^2.16.1" - }, - "engines": { - "node": ">=10.16.0" - }, - "peerDependencies": { - "date-fns": "^2.16.1", - "vue": "^3.0.0" - } - }, "node_modules/vuex": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.0.2.tgz", @@ -15235,12 +15206,6 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.17.tgz", "integrity": "sha512-u1wmTI1jJGzCJzWndZo8mk4wnPTZd1eOIYTYvuEyOQGfmDl3TrabCCfKnOC86FZwW/9djqTl933UF/cS425i9A==" }, - "date-fns": { - "version": "2.22.1", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.22.1.tgz", - "integrity": "sha512-yUFPQjrxEmIsMqlHhAhmxkuH769baF21Kk+nZwZGyrMoyLA+LugaQtC0+Tqf9CBUUULWwUJt6Q5ySI3LJDDCGg==", - "peer": true - }, "debug": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", @@ -20563,12 +20528,6 @@ } } }, - "vue3-datepicker": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/vue3-datepicker/-/vue3-datepicker-0.2.4.tgz", - "integrity": "sha512-KV+GnP3+pWyWk9YUWC1BkYaiXhDS4C4jIekTrLAGQsuUARMzUYq0WlRAnzHfv5n2Vgt1j/X2hkPkl+xKwKZRUw==", - "requires": {} - }, "vuex": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.0.2.tgz", diff --git a/package.json b/package.json index 2da2930..3ae49c9 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "vue-currency-input": "^2.0.0", "vue-multiselect": "^3.0.0-alpha.2", "vue-unicons": "^3.2.1", - "vue3-datepicker": "^0.2.4", "vuex": "^4.0.0" } } diff --git a/public/js/app.js b/public/js/app.js index fbb933e..d98337d 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -18088,22 +18088,23 @@ __webpack_require__.r(__webpack_exports__); type: String }, data: function data() { - var _this$existing_car$id, _this$existing_car, _this$existing_car$na, _this$existing_car2, _this$existing_car$st, _this$existing_car3, _this$existing_car$vi, _this$existing_car4, _this$existing_car$co, _this$existing_car5, _this$existing_car$ca, _this$existing_car6, _this$existing_car$in, _this$existing_car7, _this$existing_car$la, _this$existing_car8, _this$existing_car$ki, _this$existing_car9, _this$existing_car$kn, _this$existing_car10, _this$existing_car$no, _this$existing_car11; + var _this$existing_car$id, _this$existing_car, _this$existing_car$na, _this$existing_car2, _this$existing_car$la, _this$existing_car3, _this$existing_car$st, _this$existing_car4, _this$existing_car$vi, _this$existing_car5, _this$existing_car$co, _this$existing_car6, _this$existing_car$ca, _this$existing_car7, _this$existing_car$in, _this$existing_car8, _this$existing_car$la2, _this$existing_car9, _this$existing_car$ki, _this$existing_car10, _this$existing_car$kn, _this$existing_car11, _this$existing_car$no, _this$existing_car12; return { carsChoice: this.cars, car: { id: (_this$existing_car$id = (_this$existing_car = this.existing_car) === null || _this$existing_car === void 0 ? void 0 : _this$existing_car.id) !== null && _this$existing_car$id !== void 0 ? _this$existing_car$id : null, name: (_this$existing_car$na = (_this$existing_car2 = this.existing_car) === null || _this$existing_car2 === void 0 ? void 0 : _this$existing_car2.name) !== null && _this$existing_car$na !== void 0 ? _this$existing_car$na : null, - stammnummer: (_this$existing_car$st = (_this$existing_car3 = this.existing_car) === null || _this$existing_car3 === void 0 ? void 0 : _this$existing_car3.stammnummer) !== null && _this$existing_car$st !== void 0 ? _this$existing_car$st : null, - vin: (_this$existing_car$vi = (_this$existing_car4 = this.existing_car) === null || _this$existing_car4 === void 0 ? void 0 : _this$existing_car4.vin) !== null && _this$existing_car$vi !== void 0 ? _this$existing_car$vi : null, - colour: (_this$existing_car$co = (_this$existing_car5 = this.existing_car) === null || _this$existing_car5 === void 0 ? void 0 : _this$existing_car5.colour) !== null && _this$existing_car$co !== void 0 ? _this$existing_car$co : null, - car_model_id: (_this$existing_car$ca = (_this$existing_car6 = this.existing_car) === null || _this$existing_car6 === void 0 ? void 0 : _this$existing_car6.car_model_id) !== null && _this$existing_car$ca !== void 0 ? _this$existing_car$ca : null, - initial_date: (_this$existing_car$in = (_this$existing_car7 = this.existing_car) === null || _this$existing_car7 === void 0 ? void 0 : _this$existing_car7.initial_date) !== null && _this$existing_car$in !== void 0 ? _this$existing_car$in : null, - last_check_date: (_this$existing_car$la = (_this$existing_car8 = this.existing_car) === null || _this$existing_car8 === void 0 ? void 0 : _this$existing_car8.last_check_date) !== null && _this$existing_car$la !== void 0 ? _this$existing_car$la : null, - kilometers: (_this$existing_car$ki = (_this$existing_car9 = this.existing_car) === null || _this$existing_car9 === void 0 ? void 0 : _this$existing_car9.kilometers) !== null && _this$existing_car$ki !== void 0 ? _this$existing_car$ki : null, - known_damage: (_this$existing_car$kn = (_this$existing_car10 = this.existing_car) === null || _this$existing_car10 === void 0 ? void 0 : _this$existing_car10.known_damage) !== null && _this$existing_car$kn !== void 0 ? _this$existing_car$kn : null, - notes: (_this$existing_car$no = (_this$existing_car11 = this.existing_car) === null || _this$existing_car11 === void 0 ? void 0 : _this$existing_car11.notes) !== null && _this$existing_car$no !== void 0 ? _this$existing_car$no : null, + label: (_this$existing_car$la = (_this$existing_car3 = this.existing_car) === null || _this$existing_car3 === void 0 ? void 0 : _this$existing_car3.label) !== null && _this$existing_car$la !== void 0 ? _this$existing_car$la : null, + stammnummer: (_this$existing_car$st = (_this$existing_car4 = this.existing_car) === null || _this$existing_car4 === void 0 ? void 0 : _this$existing_car4.stammnummer) !== null && _this$existing_car$st !== void 0 ? _this$existing_car$st : null, + vin: (_this$existing_car$vi = (_this$existing_car5 = this.existing_car) === null || _this$existing_car5 === void 0 ? void 0 : _this$existing_car5.vin) !== null && _this$existing_car$vi !== void 0 ? _this$existing_car$vi : null, + colour: (_this$existing_car$co = (_this$existing_car6 = this.existing_car) === null || _this$existing_car6 === void 0 ? void 0 : _this$existing_car6.colour) !== null && _this$existing_car$co !== void 0 ? _this$existing_car$co : null, + car_model_id: (_this$existing_car$ca = (_this$existing_car7 = this.existing_car) === null || _this$existing_car7 === void 0 ? void 0 : _this$existing_car7.car_model_id) !== null && _this$existing_car$ca !== void 0 ? _this$existing_car$ca : null, + initial_date: (_this$existing_car$in = (_this$existing_car8 = this.existing_car) === null || _this$existing_car8 === void 0 ? void 0 : _this$existing_car8.initial_date) !== null && _this$existing_car$in !== void 0 ? _this$existing_car$in : null, + last_check_date: (_this$existing_car$la2 = (_this$existing_car9 = this.existing_car) === null || _this$existing_car9 === void 0 ? void 0 : _this$existing_car9.last_check_date) !== null && _this$existing_car$la2 !== void 0 ? _this$existing_car$la2 : null, + kilometers: (_this$existing_car$ki = (_this$existing_car10 = this.existing_car) === null || _this$existing_car10 === void 0 ? void 0 : _this$existing_car10.kilometers) !== null && _this$existing_car$ki !== void 0 ? _this$existing_car$ki : null, + known_damage: (_this$existing_car$kn = (_this$existing_car11 = this.existing_car) === null || _this$existing_car11 === void 0 ? void 0 : _this$existing_car11.known_damage) !== null && _this$existing_car$kn !== void 0 ? _this$existing_car$kn : null, + notes: (_this$existing_car$no = (_this$existing_car12 = this.existing_car) === null || _this$existing_car12 === void 0 ? void 0 : _this$existing_car12.notes) !== null && _this$existing_car$no !== void 0 ? _this$existing_car$no : null, errors: {} }, brand: { @@ -18678,12 +18679,10 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Jetstream_Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Jetstream/Button */ "./resources/js/Jetstream/Button.vue"); /* harmony import */ var _Jetstream_Label_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Jetstream/Label.vue */ "./resources/js/Jetstream/Label.vue"); /* harmony import */ var _Jetstream_InputError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/Jetstream/InputError */ "./resources/js/Jetstream/InputError.vue"); -/* harmony import */ var vue3_datepicker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue3-datepicker */ "./node_modules/vue3-datepicker/dist/vue3-datepicker.esm.js"); +/* harmony import */ var _Jetstream_Input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/Jetstream/Input */ "./resources/js/Jetstream/Input.vue"); /* harmony import */ var _inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @inertiajs/inertia-vue3 */ "./node_modules/@inertiajs/inertia-vue3/dist/index.js"); -/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); -/* harmony import */ var _Jetstream_DialogModal_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/Jetstream/DialogModal.vue */ "./resources/js/Jetstream/DialogModal.vue"); -/* harmony import */ var _Components_CurrencyInput__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/Components/CurrencyInput */ "./resources/js/Components/CurrencyInput.vue"); - +/* harmony import */ var _Jetstream_DialogModal_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/Jetstream/DialogModal.vue */ "./resources/js/Jetstream/DialogModal.vue"); +/* harmony import */ var _Components_CurrencyInput__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/Components/CurrencyInput */ "./resources/js/Components/CurrencyInput.vue"); @@ -18696,9 +18695,9 @@ __webpack_require__.r(__webpack_exports__); JetButton: _Jetstream_Button__WEBPACK_IMPORTED_MODULE_0__.default, JetLabel: _Jetstream_Label_vue__WEBPACK_IMPORTED_MODULE_1__.default, JetInputError: _Jetstream_InputError__WEBPACK_IMPORTED_MODULE_2__.default, - DialogModal: _Jetstream_DialogModal_vue__WEBPACK_IMPORTED_MODULE_6__.default, - Datepicker: vue3_datepicker__WEBPACK_IMPORTED_MODULE_3__.default, - CurrencyInput: _Components_CurrencyInput__WEBPACK_IMPORTED_MODULE_7__.default + DialogModal: _Jetstream_DialogModal_vue__WEBPACK_IMPORTED_MODULE_5__.default, + CurrencyInput: _Components_CurrencyInput__WEBPACK_IMPORTED_MODULE_6__.default, + JetInput: _Jetstream_Input__WEBPACK_IMPORTED_MODULE_3__.default }, props: { id: Number, @@ -18709,7 +18708,7 @@ __webpack_require__.r(__webpack_exports__); return { form: (0,_inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_4__.useForm)('CreatePayment', { id: null, - date: (0,vue__WEBPACK_IMPORTED_MODULE_5__.ref)(new Date()), + date: new Date().toJSON().slice(0, 10).split('-').reverse().join('.'), amount: this.left_to_pay, type: '1', contract_id: this.id @@ -20398,9 +20397,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Jetstream_ActionMessage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/Jetstream/ActionMessage */ "./resources/js/Jetstream/ActionMessage.vue"); /* harmony import */ var _Jetstream_InputError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/Jetstream/InputError */ "./resources/js/Jetstream/InputError.vue"); /* harmony import */ var vue_multiselect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-multiselect */ "./node_modules/vue-multiselect/dist/vue-multiselect.esm.js"); -/* harmony import */ var vue3_datepicker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue3-datepicker */ "./node_modules/vue3-datepicker/dist/vue3-datepicker.esm.js"); -/* harmony import */ var _Components_CurrencyInput__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/Components/CurrencyInput */ "./resources/js/Components/CurrencyInput.vue"); - +/* harmony import */ var _Components_CurrencyInput__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/Components/CurrencyInput */ "./resources/js/Components/CurrencyInput.vue"); @@ -20414,8 +20411,7 @@ __webpack_require__.r(__webpack_exports__); JetInputError: _Jetstream_InputError__WEBPACK_IMPORTED_MODULE_3__.default, JetActionMessage: _Jetstream_ActionMessage__WEBPACK_IMPORTED_MODULE_2__.default, Multiselect: vue_multiselect__WEBPACK_IMPORTED_MODULE_4__.default, - Datepicker: vue3_datepicker__WEBPACK_IMPORTED_MODULE_5__.default, - CurrencyInput: _Components_CurrencyInput__WEBPACK_IMPORTED_MODULE_6__.default + CurrencyInput: _Components_CurrencyInput__WEBPACK_IMPORTED_MODULE_5__.default }, props: { form: Object, @@ -20538,9 +20534,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ }); /* harmony import */ var _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Layouts/Layout */ "./resources/js/Layouts/Layout.vue"); /* harmony import */ var _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Components/BreadCrumb.vue */ "./resources/js/Components/BreadCrumb.vue"); -/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); -/* harmony import */ var _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Components/CarForm.vue */ "./resources/js/Pages/Cars/Components/CarForm.vue"); - +/* harmony import */ var _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Components/CarForm.vue */ "./resources/js/Pages/Cars/Components/CarForm.vue"); @@ -20548,7 +20542,7 @@ __webpack_require__.r(__webpack_exports__); components: { Layout: _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__.default, BreadCrumb: _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__.default, - CarForm: _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_3__.default + CarForm: _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_2__.default }, props: { brands: Array @@ -20568,8 +20562,8 @@ __webpack_require__.r(__webpack_exports__); vin: null, colour: null, car_model_id: null, - initial_date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date()), - last_check_date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date()), + initial_date: new Date().toJSON().slice(0, 10).split('-').reverse().join('.'), + last_check_date: new Date().toJSON().slice(0, 10).split('-').reverse().join('.'), kilometers: null, known_damage: null, notes: null @@ -20601,19 +20595,17 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ }); /* harmony import */ var _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Layouts/Layout */ "./resources/js/Layouts/Layout.vue"); /* harmony import */ var _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Components/BreadCrumb.vue */ "./resources/js/Components/BreadCrumb.vue"); -/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); -/* harmony import */ var _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Components/CarForm.vue */ "./resources/js/Pages/Cars/Components/CarForm.vue"); +/* harmony import */ var _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Components/CarForm.vue */ "./resources/js/Pages/Cars/Components/CarForm.vue"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ components: { BreadCrumb: _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__.default, Layout: _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__.default, - CarForm: _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_3__.default + CarForm: _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_2__.default }, props: { car: Object, @@ -20650,11 +20642,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope id: this.car.id, stammnummer: this.car.stammnummer, vin: this.car.vin, - initial_date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date(this.car.initial_date)), + initial_date: new Date(this.car.initial_date).toJSON().slice(0, 10).split('-').reverse().join('.'), colour: this.car.colour, notes: this.car.notes, car_model_id: this.car.car_model.id, - last_check_date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date(this.car.last_check_date)), + last_check_date: new Date(this.car.last_check_date).toJSON().slice(0, 10).split('-').reverse().join('.'), kilometers: this.car.kilometers, known_damage: this.car.known_damage }, "notes", this.car.notes) @@ -21325,8 +21317,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Jetstream_Label_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Jetstream/Label.vue */ "./resources/js/Jetstream/Label.vue"); /* harmony import */ var _Jetstream_ActionMessage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/Jetstream/ActionMessage */ "./resources/js/Jetstream/ActionMessage.vue"); /* harmony import */ var _Jetstream_InputError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/Jetstream/InputError */ "./resources/js/Jetstream/InputError.vue"); -/* harmony import */ var _Jetstream_FormSection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/Jetstream/FormSection */ "./resources/js/Jetstream/FormSection.vue"); -/* harmony import */ var vue3_datepicker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue3-datepicker */ "./node_modules/vue3-datepicker/dist/vue3-datepicker.esm.js"); +/* harmony import */ var _Jetstream_Input__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/Jetstream/Input */ "./resources/js/Jetstream/Input.vue"); +/* harmony import */ var _Jetstream_FormSection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/Jetstream/FormSection */ "./resources/js/Jetstream/FormSection.vue"); /* harmony import */ var _inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @inertiajs/inertia-vue3 */ "./node_modules/@inertiajs/inertia-vue3/dist/index.js"); /* harmony import */ var _Components_CurrencyInput__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/Components/CurrencyInput */ "./resources/js/Components/CurrencyInput.vue"); @@ -21340,11 +21332,11 @@ __webpack_require__.r(__webpack_exports__); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ components: { JetButton: _Jetstream_Button__WEBPACK_IMPORTED_MODULE_0__.default, - JetFormSection: _Jetstream_FormSection__WEBPACK_IMPORTED_MODULE_4__.default, + JetFormSection: _Jetstream_FormSection__WEBPACK_IMPORTED_MODULE_5__.default, JetLabel: _Jetstream_Label_vue__WEBPACK_IMPORTED_MODULE_1__.default, JetInputError: _Jetstream_InputError__WEBPACK_IMPORTED_MODULE_3__.default, JetActionMessage: _Jetstream_ActionMessage__WEBPACK_IMPORTED_MODULE_2__.default, - Datepicker: vue3_datepicker__WEBPACK_IMPORTED_MODULE_5__.default, + JetInput: _Jetstream_Input__WEBPACK_IMPORTED_MODULE_4__.default, CurrencyInput: _Components_CurrencyInput__WEBPACK_IMPORTED_MODULE_7__.default }, props: { @@ -21389,9 +21381,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Components/BreadCrumb.vue */ "./resources/js/Components/BreadCrumb.vue"); /* harmony import */ var _Components_Contacts_CreateOrSelect_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/Components/Contacts/CreateOrSelect.vue */ "./resources/js/Components/Contacts/CreateOrSelect.vue"); /* harmony import */ var _Components_Cars_CreateOrSelect_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/Components/Cars/CreateOrSelect.vue */ "./resources/js/Components/Cars/CreateOrSelect.vue"); -/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); -/* harmony import */ var _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Components/ContractForm.vue */ "./resources/js/Pages/Contracts/Components/ContractForm.vue"); - +/* harmony import */ var _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Components/ContractForm.vue */ "./resources/js/Pages/Contracts/Components/ContractForm.vue"); @@ -21401,7 +21391,7 @@ __webpack_require__.r(__webpack_exports__); components: { Layout: _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__.default, BreadCrumb: _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__.default, - ContractForm: _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_5__.default, + ContractForm: _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_4__.default, ContactCreateOrSelect: _Components_Contacts_CreateOrSelect_vue__WEBPACK_IMPORTED_MODULE_2__.default, CarCreateOrSelect: _Components_Cars_CreateOrSelect_vue__WEBPACK_IMPORTED_MODULE_3__.default }, @@ -21427,8 +21417,8 @@ __webpack_require__.r(__webpack_exports__); }, data: { id: null, - date: (0,vue__WEBPACK_IMPORTED_MODULE_4__.ref)(new Date()), - delivery_date: (0,vue__WEBPACK_IMPORTED_MODULE_4__.ref)(new Date()), + date: new Date().toJSON().slice(0, 10).split('-').reverse().join('.'), + delivery_date: new Date().toJSON().slice(0, 10).split('-').reverse().join('.'), price: null, notes: null, type: this.type, @@ -21470,9 +21460,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ }); /* harmony import */ var _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Layouts/Layout */ "./resources/js/Layouts/Layout.vue"); /* harmony import */ var _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Components/BreadCrumb.vue */ "./resources/js/Components/BreadCrumb.vue"); -/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); -/* harmony import */ var _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Components/ContractForm.vue */ "./resources/js/Pages/Contracts/Components/ContractForm.vue"); - +/* harmony import */ var _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Components/ContractForm.vue */ "./resources/js/Pages/Contracts/Components/ContractForm.vue"); @@ -21480,7 +21468,7 @@ __webpack_require__.r(__webpack_exports__); components: { BreadCrumb: _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__.default, Layout: _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__.default, - ContractForm: _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_3__.default + ContractForm: _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_2__.default }, props: { contract: Object, @@ -21497,8 +21485,8 @@ __webpack_require__.r(__webpack_exports__); on_success: 'Änderungen gespeichert' }, data: { - date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date(this.contract.date)), - delivery_date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date(this.contract.delivery_date)), + date: new Date(this.contract.date).toJSON().slice(0, 10).split('-').reverse().join('.'), + delivery_date: new Date(this.contract.delivery_date).toJSON().slice(0, 10).split('-').reverse().join('.'), price: this.contract.price, notes: this.contract.notes, insurance_type: this.contract.insurance_type @@ -22955,7 +22943,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) { return $data.car = $event; }), - label: "name", + label: "label", "track-by": "id", options: $data.carsChoice, "class": "2xl:col-span-4 sm:col-span-6 col-span-12", @@ -22974,9 +22962,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { "class": "bg-indigo-800 hover:bg-indigo-700 active:bg-indigo-900 focus:border-indigo-900 focus:ring-indigo-300 justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition" }, " Neu erfassen ")])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), $data.car.id ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", { key: 0, - "class": "col-span-6" + "class": "xl:col-span-3 md:col-span-4 col-span-6" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_car_card, { - "class": "mt-3 xl:col-span-3 md:col-span-4 col-span-6", car: $data.car, hideEmpty: "true" }, null, 8 @@ -23230,9 +23217,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { "class": "bg-indigo-800 hover:bg-indigo-700 active:bg-indigo-900 focus:border-indigo-900 focus:ring-indigo-300 justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition" }, " Neu erfassen ")])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), $data.contact.id ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", { key: 0, - "class": "col-span-6" + "class": "xl:col-span-3 md:col-span-4 col-span-6" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_contact_card, { - "class": "mt-3 xl:col-span-3 md:col-span-4 col-span-6", contact: $data.contact, hideEmpty: "true" }, null, 8 @@ -23480,7 +23466,7 @@ __webpack_require__.r(__webpack_exports__); var _hoisted_1 = { key: 0, - "class": "col-span-2 grid grid-flow-rows relative cursor-pointer auto-rows-max py-3 inline-flex items-center px-4 bg-gray-100 border-dashed border-4 font-semibold justify-center text-md text-gray-500 uppercase tracking-widest hover:bg-gray-200 focus:outline-none focus:border-gray-500 focus:ring focus:ring-gray-300 disabled:opacity-25 transition" + "class": "col-span-2 grid grid-flow-rows relative cursor-pointer auto-rows-max md:py-3 py-2 inline-flex items-center md:px-4 px-2 bg-gray-100 border-dashed border-4 font-semibold justify-center text-md text-gray-500 uppercase tracking-widest hover:bg-gray-200 focus:outline-none focus:border-gray-500 focus:ring focus:ring-gray-300 disabled:opacity-25 transition" }; var _hoisted_2 = { key: 0, @@ -23520,7 +23506,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { /* PROPS, HYDRATE_EVENTS */ , ["name", "disabled"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_unicon, { fill: "currentColor", - "class": "p-2 my-5 mx-auto", + "class": "md:p-2 p-1 md:my-5 my-1 mx-auto", height: "45%", width: "45%", name: "file-upload-alt" @@ -23813,7 +23799,7 @@ var _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNod function render(_ctx, _cache, $props, $setup, $data, $options) { var _component_jet_label = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("jet-label"); - var _component_datepicker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("datepicker"); + var _component_jet_input = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("jet-input"); var _component_jet_input_error = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("jet-input-error"); @@ -23840,15 +23826,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_3, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_label, { "for": "date", value: "Datum" - }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_datepicker, { + }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_input, { id: "date", ref: "date", + type: "text", + "class": "mt-1 block w-full", modelValue: $data.form.date, "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) { return $data.form.date = $event; - }), - inputFormat: "dd.MM.yyyy", - "class": "border-gray-300 rounded-md shadow-sm mt-1 block w-full" + }) }, null, 8 /* PROPS */ , ["modelValue"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_input_error, { @@ -24423,7 +24409,7 @@ __webpack_require__.r(__webpack_exports__); var _hoisted_1 = { key: 0, - "class": "flex justify-between items-end mb-4" + "class": "flex justify-between items-end md:mb-4 mb-2" }; var _hoisted_2 = { key: 0, @@ -24431,11 +24417,11 @@ var _hoisted_2 = { }; var _hoisted_3 = { key: 1, - "class": "my-4 flex justify-between items-center" + "class": "md:my-4 my-2 flex justify-between items-center" }; var _hoisted_4 = { key: 0, - "class": "flex items-center w-full max-w-md mr-4" + "class": "flex items-center w-full max-w-md md:mr-4 mr-2" }; var _hoisted_5 = { "class": "flex w-full bg-white shadow rounded" @@ -24499,7 +24485,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { autofocus: "true", name: "search", placeholder: "Suchen...", - "class": "relative border-gray-200 w-full px-6 py-3 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 rounded", + "class": "relative border-gray-200 w-full sm:px-6 px-3 py-3 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 rounded", autocomplete: "off" }, null, 512 /* NEED_PATCH */ @@ -24516,7 +24502,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { sortBy: $data.sort.by, direction: $data.sort.direction }), - "class": "justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition bg-green-800 hover:bg-green-700 active:bg-green-900 focus:border-green-900 focus:ring-green-300 py-3" + "class": "justify-center inline-flex items-center sm:px-4 sm:py-2 px-2 py-1 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition bg-green-800 hover:bg-green-700 active:bg-green-900 focus:border-green-900 focus:ring-green-300 py-3" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_unicon, { fill: "white", "class": "mr-2", @@ -24603,7 +24589,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }), 128 /* KEYED_FRAGMENT */ )), row.link && !$props.hideArrow ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("td", _hoisted_12, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_inertia_link, { - "class": "xl:py-4 py-2 flex items-center", + "class": "xl:pr-4 pr-2 xl:py-4 py-2 flex items-center", href: row.link, tabindex: "-1" }, { @@ -27964,8 +27950,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { var _component_jet_input = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("jet-input"); - var _component_datepicker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("datepicker"); - var _component_currency_input = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("currency-input"); return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_label, { @@ -28082,15 +28066,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { , ["message"])])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_8, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_9, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_10, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_label, { "for": "initial_date", value: "Inverkehrssetzung" - }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_datepicker, { + }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_input, { id: "initial_date", ref: "initial_date", + type: "text", + "class": "mt-1 block w-full", modelValue: $props.form.initial_date, "onUpdate:modelValue": _cache[7] || (_cache[7] = function ($event) { return $props.form.initial_date = $event; - }), - inputFormat: "dd.MM.yyyy", - "class": "border-gray-300 rounded-md shadow-sm mt-1 block w-full" + }) }, null, 8 /* PROPS */ , ["modelValue"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_input_error, { @@ -28101,15 +28085,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { , ["message"])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_11, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_label, { "for": "last_check_date", value: "Letzte Prüfung" - }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_datepicker, { + }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_input, { id: "last_check_date", ref: "last_check_date", + type: "text", + "class": "mt-1 block w-full", modelValue: $props.form.last_check_date, "onUpdate:modelValue": _cache[8] || (_cache[8] = function ($event) { return $props.form.last_check_date = $event; - }), - inputFormat: "dd.MM.yyyy", - "class": "border-gray-300 rounded-md shadow-sm mt-1 block w-full" + }) }, null, 8 /* PROPS */ , ["modelValue"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_input_error, { @@ -29431,7 +29415,7 @@ var _hoisted_8 = { function render(_ctx, _cache, $props, $setup, $data, $options) { var _component_jet_label = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("jet-label"); - var _component_datepicker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("datepicker"); + var _component_jet_input = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("jet-input"); var _component_jet_input_error = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("jet-input-error"); @@ -29456,15 +29440,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { return [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_label, { "for": "date", value: "Datum" - }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_datepicker, { + }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_input, { id: "date", ref: "date", + type: "text", + "class": "mt-1 block w-full", modelValue: $data.form.date, "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) { return $data.form.date = $event; - }), - inputFormat: "dd.MM.yyyy", - "class": "border-gray-300 rounded-md shadow-sm mt-1 block w-full" + }) }, null, 8 /* PROPS */ , ["modelValue"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_input_error, { @@ -29475,15 +29459,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { , ["message"])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_3, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_label, { "for": "delivery_date", value: "Lieferdatum" - }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_datepicker, { + }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_input, { id: "delivery_date", ref: "delivery_date", + type: "text", + "class": "mt-1 block w-full", modelValue: $data.form.delivery_date, "onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) { return $data.form.delivery_date = $event; - }), - inputFormat: "dd.MM.yyyy", - "class": "border-gray-300 rounded-md shadow-sm mt-1 block w-full" + }) }, null, 8 /* PROPS */ , ["modelValue"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_input_error, { @@ -32636,6980 +32620,6 @@ module.exports = function (cssWithMappingToString) { /***/ }), -/***/ "./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js": -/*!*****************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ addLeadingZeros) -/* harmony export */ }); -function addLeadingZeros(number, targetLength) { - var sign = number < 0 ? '-' : ''; - var output = Math.abs(number).toString(); - - while (output.length < targetLength) { - output = '0' + output; - } - - return sign + output; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/assign/index.js": -/*!********************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/assign/index.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ assign) -/* harmony export */ }); -function assign(target, dirtyObject) { - if (target == null) { - throw new TypeError('assign requires that input parameter not be null or undefined'); - } - - dirtyObject = dirtyObject || {}; - - for (var property in dirtyObject) { - if (dirtyObject.hasOwnProperty(property)) { - target[property] = dirtyObject[property]; - } - } - - return target; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/format/formatters/index.js": -/*!*******************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/format/formatters/index.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../lightFormatters/index.js */ "./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js"); -/* harmony import */ var _lib_getUTCDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_lib/getUTCDayOfYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js"); -/* harmony import */ var _lib_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../_lib/getUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js"); -/* harmony import */ var _lib_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_lib/getUTCISOWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js"); -/* harmony import */ var _lib_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_lib/getUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeek/index.js"); -/* harmony import */ var _lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_lib/getUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js"); -/* harmony import */ var _addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../addLeadingZeros/index.js */ "./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js"); - - - - - - - -var dayPeriodEnum = { - am: 'am', - pm: 'pm', - midnight: 'midnight', - noon: 'noon', - morning: 'morning', - afternoon: 'afternoon', - evening: 'evening', - night: 'night' - /* - * | | Unit | | Unit | - * |-----|--------------------------------|-----|--------------------------------| - * | a | AM, PM | A* | Milliseconds in day | - * | b | AM, PM, noon, midnight | B | Flexible day period | - * | c | Stand-alone local day of week | C* | Localized hour w/ day period | - * | d | Day of month | D | Day of year | - * | e | Local day of week | E | Day of week | - * | f | | F* | Day of week in month | - * | g* | Modified Julian day | G | Era | - * | h | Hour [1-12] | H | Hour [0-23] | - * | i! | ISO day of week | I! | ISO week of year | - * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | - * | k | Hour [1-24] | K | Hour [0-11] | - * | l* | (deprecated) | L | Stand-alone month | - * | m | Minute | M | Month | - * | n | | N | | - * | o! | Ordinal number modifier | O | Timezone (GMT) | - * | p! | Long localized time | P! | Long localized date | - * | q | Stand-alone quarter | Q | Quarter | - * | r* | Related Gregorian year | R! | ISO week-numbering year | - * | s | Second | S | Fraction of second | - * | t! | Seconds timestamp | T! | Milliseconds timestamp | - * | u | Extended year | U* | Cyclic year | - * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | - * | w | Local week of year | W* | Week of month | - * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | - * | y | Year (abs) | Y | Local week-numbering year | - * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) | - * - * Letters marked by * are not implemented but reserved by Unicode standard. - * - * Letters marked by ! are non-standard, but implemented by date-fns: - * - `o` modifies the previous token to turn it into an ordinal (see `format` docs) - * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, - * i.e. 7 for Sunday, 1 for Monday, etc. - * - `I` is ISO week of year, as opposed to `w` which is local week of year. - * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. - * `R` is supposed to be used in conjunction with `I` and `i` - * for universal ISO week-numbering date, whereas - * `Y` is supposed to be used in conjunction with `w` and `e` - * for week-numbering date specific to the locale. - * - `P` is long localized date format - * - `p` is long localized time format - */ - -}; -var formatters = { - // Era - G: function (date, token, localize) { - var era = date.getUTCFullYear() > 0 ? 1 : 0; - - switch (token) { - // AD, BC - case 'G': - case 'GG': - case 'GGG': - return localize.era(era, { - width: 'abbreviated' - }); - // A, B - - case 'GGGGG': - return localize.era(era, { - width: 'narrow' - }); - // Anno Domini, Before Christ - - case 'GGGG': - default: - return localize.era(era, { - width: 'wide' - }); - } - }, - // Year - y: function (date, token, localize) { - // Ordinal number - if (token === 'yo') { - var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) - - var year = signedYear > 0 ? signedYear : 1 - signedYear; - return localize.ordinalNumber(year, { - unit: 'year' - }); - } - - return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__.default.y(date, token); - }, - // Local week-numbering year - Y: function (date, token, localize, options) { - var signedWeekYear = (0,_lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript) - - var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year - - if (token === 'YY') { - var twoDigitYear = weekYear % 100; - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(twoDigitYear, 2); - } // Ordinal number - - - if (token === 'Yo') { - return localize.ordinalNumber(weekYear, { - unit: 'year' - }); - } // Padding - - - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(weekYear, token.length); - }, - // ISO week-numbering year - R: function (date, token) { - var isoWeekYear = (0,_lib_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(date); // Padding - - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(isoWeekYear, token.length); - }, - // Extended year. This is a single number designating the year of this calendar system. - // The main difference between `y` and `u` localizers are B.C. years: - // | Year | `y` | `u` | - // |------|-----|-----| - // | AC 1 | 1 | 1 | - // | BC 1 | 1 | 0 | - // | BC 2 | 2 | -1 | - // Also `yy` always returns the last two digits of a year, - // while `uu` pads single digit years to 2 characters and returns other years unchanged. - u: function (date, token) { - var year = date.getUTCFullYear(); - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(year, token.length); - }, - // Quarter - Q: function (date, token, localize) { - var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); - - switch (token) { - // 1, 2, 3, 4 - case 'Q': - return String(quarter); - // 01, 02, 03, 04 - - case 'QQ': - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(quarter, 2); - // 1st, 2nd, 3rd, 4th - - case 'Qo': - return localize.ordinalNumber(quarter, { - unit: 'quarter' - }); - // Q1, Q2, Q3, Q4 - - case 'QQQ': - return localize.quarter(quarter, { - width: 'abbreviated', - context: 'formatting' - }); - // 1, 2, 3, 4 (narrow quarter; could be not numerical) - - case 'QQQQQ': - return localize.quarter(quarter, { - width: 'narrow', - context: 'formatting' - }); - // 1st quarter, 2nd quarter, ... - - case 'QQQQ': - default: - return localize.quarter(quarter, { - width: 'wide', - context: 'formatting' - }); - } - }, - // Stand-alone quarter - q: function (date, token, localize) { - var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); - - switch (token) { - // 1, 2, 3, 4 - case 'q': - return String(quarter); - // 01, 02, 03, 04 - - case 'qq': - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(quarter, 2); - // 1st, 2nd, 3rd, 4th - - case 'qo': - return localize.ordinalNumber(quarter, { - unit: 'quarter' - }); - // Q1, Q2, Q3, Q4 - - case 'qqq': - return localize.quarter(quarter, { - width: 'abbreviated', - context: 'standalone' - }); - // 1, 2, 3, 4 (narrow quarter; could be not numerical) - - case 'qqqqq': - return localize.quarter(quarter, { - width: 'narrow', - context: 'standalone' - }); - // 1st quarter, 2nd quarter, ... - - case 'qqqq': - default: - return localize.quarter(quarter, { - width: 'wide', - context: 'standalone' - }); - } - }, - // Month - M: function (date, token, localize) { - var month = date.getUTCMonth(); - - switch (token) { - case 'M': - case 'MM': - return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__.default.M(date, token); - // 1st, 2nd, ..., 12th - - case 'Mo': - return localize.ordinalNumber(month + 1, { - unit: 'month' - }); - // Jan, Feb, ..., Dec - - case 'MMM': - return localize.month(month, { - width: 'abbreviated', - context: 'formatting' - }); - // J, F, ..., D - - case 'MMMMM': - return localize.month(month, { - width: 'narrow', - context: 'formatting' - }); - // January, February, ..., December - - case 'MMMM': - default: - return localize.month(month, { - width: 'wide', - context: 'formatting' - }); - } - }, - // Stand-alone month - L: function (date, token, localize) { - var month = date.getUTCMonth(); - - switch (token) { - // 1, 2, ..., 12 - case 'L': - return String(month + 1); - // 01, 02, ..., 12 - - case 'LL': - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(month + 1, 2); - // 1st, 2nd, ..., 12th - - case 'Lo': - return localize.ordinalNumber(month + 1, { - unit: 'month' - }); - // Jan, Feb, ..., Dec - - case 'LLL': - return localize.month(month, { - width: 'abbreviated', - context: 'standalone' - }); - // J, F, ..., D - - case 'LLLLL': - return localize.month(month, { - width: 'narrow', - context: 'standalone' - }); - // January, February, ..., December - - case 'LLLL': - default: - return localize.month(month, { - width: 'wide', - context: 'standalone' - }); - } - }, - // Local week of year - w: function (date, token, localize, options) { - var week = (0,_lib_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__.default)(date, options); - - if (token === 'wo') { - return localize.ordinalNumber(week, { - unit: 'week' - }); - } - - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(week, token.length); - }, - // ISO week of year - I: function (date, token, localize) { - var isoWeek = (0,_lib_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_5__.default)(date); - - if (token === 'Io') { - return localize.ordinalNumber(isoWeek, { - unit: 'week' - }); - } - - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(isoWeek, token.length); - }, - // Day of the month - d: function (date, token, localize) { - if (token === 'do') { - return localize.ordinalNumber(date.getUTCDate(), { - unit: 'date' - }); - } - - return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__.default.d(date, token); - }, - // Day of year - D: function (date, token, localize) { - var dayOfYear = (0,_lib_getUTCDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_6__.default)(date); - - if (token === 'Do') { - return localize.ordinalNumber(dayOfYear, { - unit: 'dayOfYear' - }); - } - - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dayOfYear, token.length); - }, - // Day of week - E: function (date, token, localize) { - var dayOfWeek = date.getUTCDay(); - - switch (token) { - // Tue - case 'E': - case 'EE': - case 'EEE': - return localize.day(dayOfWeek, { - width: 'abbreviated', - context: 'formatting' - }); - // T - - case 'EEEEE': - return localize.day(dayOfWeek, { - width: 'narrow', - context: 'formatting' - }); - // Tu - - case 'EEEEEE': - return localize.day(dayOfWeek, { - width: 'short', - context: 'formatting' - }); - // Tuesday - - case 'EEEE': - default: - return localize.day(dayOfWeek, { - width: 'wide', - context: 'formatting' - }); - } - }, - // Local day of week - e: function (date, token, localize, options) { - var dayOfWeek = date.getUTCDay(); - var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; - - switch (token) { - // Numerical value (Nth day of week with current locale or weekStartsOn) - case 'e': - return String(localDayOfWeek); - // Padded numerical value - - case 'ee': - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(localDayOfWeek, 2); - // 1st, 2nd, ..., 7th - - case 'eo': - return localize.ordinalNumber(localDayOfWeek, { - unit: 'day' - }); - - case 'eee': - return localize.day(dayOfWeek, { - width: 'abbreviated', - context: 'formatting' - }); - // T - - case 'eeeee': - return localize.day(dayOfWeek, { - width: 'narrow', - context: 'formatting' - }); - // Tu - - case 'eeeeee': - return localize.day(dayOfWeek, { - width: 'short', - context: 'formatting' - }); - // Tuesday - - case 'eeee': - default: - return localize.day(dayOfWeek, { - width: 'wide', - context: 'formatting' - }); - } - }, - // Stand-alone local day of week - c: function (date, token, localize, options) { - var dayOfWeek = date.getUTCDay(); - var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; - - switch (token) { - // Numerical value (same as in `e`) - case 'c': - return String(localDayOfWeek); - // Padded numerical value - - case 'cc': - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(localDayOfWeek, token.length); - // 1st, 2nd, ..., 7th - - case 'co': - return localize.ordinalNumber(localDayOfWeek, { - unit: 'day' - }); - - case 'ccc': - return localize.day(dayOfWeek, { - width: 'abbreviated', - context: 'standalone' - }); - // T - - case 'ccccc': - return localize.day(dayOfWeek, { - width: 'narrow', - context: 'standalone' - }); - // Tu - - case 'cccccc': - return localize.day(dayOfWeek, { - width: 'short', - context: 'standalone' - }); - // Tuesday - - case 'cccc': - default: - return localize.day(dayOfWeek, { - width: 'wide', - context: 'standalone' - }); - } - }, - // ISO day of week - i: function (date, token, localize) { - var dayOfWeek = date.getUTCDay(); - var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; - - switch (token) { - // 2 - case 'i': - return String(isoDayOfWeek); - // 02 - - case 'ii': - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(isoDayOfWeek, token.length); - // 2nd - - case 'io': - return localize.ordinalNumber(isoDayOfWeek, { - unit: 'day' - }); - // Tue - - case 'iii': - return localize.day(dayOfWeek, { - width: 'abbreviated', - context: 'formatting' - }); - // T - - case 'iiiii': - return localize.day(dayOfWeek, { - width: 'narrow', - context: 'formatting' - }); - // Tu - - case 'iiiiii': - return localize.day(dayOfWeek, { - width: 'short', - context: 'formatting' - }); - // Tuesday - - case 'iiii': - default: - return localize.day(dayOfWeek, { - width: 'wide', - context: 'formatting' - }); - } - }, - // AM or PM - a: function (date, token, localize) { - var hours = date.getUTCHours(); - var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; - - switch (token) { - case 'a': - case 'aa': - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'abbreviated', - context: 'formatting' - }); - - case 'aaa': - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'abbreviated', - context: 'formatting' - }).toLowerCase(); - - case 'aaaaa': - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'narrow', - context: 'formatting' - }); - - case 'aaaa': - default: - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'wide', - context: 'formatting' - }); - } - }, - // AM, PM, midnight, noon - b: function (date, token, localize) { - var hours = date.getUTCHours(); - var dayPeriodEnumValue; - - if (hours === 12) { - dayPeriodEnumValue = dayPeriodEnum.noon; - } else if (hours === 0) { - dayPeriodEnumValue = dayPeriodEnum.midnight; - } else { - dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; - } - - switch (token) { - case 'b': - case 'bb': - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'abbreviated', - context: 'formatting' - }); - - case 'bbb': - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'abbreviated', - context: 'formatting' - }).toLowerCase(); - - case 'bbbbb': - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'narrow', - context: 'formatting' - }); - - case 'bbbb': - default: - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'wide', - context: 'formatting' - }); - } - }, - // in the morning, in the afternoon, in the evening, at night - B: function (date, token, localize) { - var hours = date.getUTCHours(); - var dayPeriodEnumValue; - - if (hours >= 17) { - dayPeriodEnumValue = dayPeriodEnum.evening; - } else if (hours >= 12) { - dayPeriodEnumValue = dayPeriodEnum.afternoon; - } else if (hours >= 4) { - dayPeriodEnumValue = dayPeriodEnum.morning; - } else { - dayPeriodEnumValue = dayPeriodEnum.night; - } - - switch (token) { - case 'B': - case 'BB': - case 'BBB': - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'abbreviated', - context: 'formatting' - }); - - case 'BBBBB': - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'narrow', - context: 'formatting' - }); - - case 'BBBB': - default: - return localize.dayPeriod(dayPeriodEnumValue, { - width: 'wide', - context: 'formatting' - }); - } - }, - // Hour [1-12] - h: function (date, token, localize) { - if (token === 'ho') { - var hours = date.getUTCHours() % 12; - if (hours === 0) hours = 12; - return localize.ordinalNumber(hours, { - unit: 'hour' - }); - } - - return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__.default.h(date, token); - }, - // Hour [0-23] - H: function (date, token, localize) { - if (token === 'Ho') { - return localize.ordinalNumber(date.getUTCHours(), { - unit: 'hour' - }); - } - - return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__.default.H(date, token); - }, - // Hour [0-11] - K: function (date, token, localize) { - var hours = date.getUTCHours() % 12; - - if (token === 'Ko') { - return localize.ordinalNumber(hours, { - unit: 'hour' - }); - } - - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(hours, token.length); - }, - // Hour [1-24] - k: function (date, token, localize) { - var hours = date.getUTCHours(); - if (hours === 0) hours = 24; - - if (token === 'ko') { - return localize.ordinalNumber(hours, { - unit: 'hour' - }); - } - - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(hours, token.length); - }, - // Minute - m: function (date, token, localize) { - if (token === 'mo') { - return localize.ordinalNumber(date.getUTCMinutes(), { - unit: 'minute' - }); - } - - return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__.default.m(date, token); - }, - // Second - s: function (date, token, localize) { - if (token === 'so') { - return localize.ordinalNumber(date.getUTCSeconds(), { - unit: 'second' - }); - } - - return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__.default.s(date, token); - }, - // Fraction of second - S: function (date, token) { - return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__.default.S(date, token); - }, - // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) - X: function (date, token, _localize, options) { - var originalDate = options._originalDate || date; - var timezoneOffset = originalDate.getTimezoneOffset(); - - if (timezoneOffset === 0) { - return 'Z'; - } - - switch (token) { - // Hours and optional minutes - case 'X': - return formatTimezoneWithOptionalMinutes(timezoneOffset); - // Hours, minutes and optional seconds without `:` delimiter - // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets - // so this token always has the same output as `XX` - - case 'XXXX': - case 'XX': - // Hours and minutes without `:` delimiter - return formatTimezone(timezoneOffset); - // Hours, minutes and optional seconds with `:` delimiter - // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets - // so this token always has the same output as `XXX` - - case 'XXXXX': - case 'XXX': // Hours and minutes with `:` delimiter - - default: - return formatTimezone(timezoneOffset, ':'); - } - }, - // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) - x: function (date, token, _localize, options) { - var originalDate = options._originalDate || date; - var timezoneOffset = originalDate.getTimezoneOffset(); - - switch (token) { - // Hours and optional minutes - case 'x': - return formatTimezoneWithOptionalMinutes(timezoneOffset); - // Hours, minutes and optional seconds without `:` delimiter - // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets - // so this token always has the same output as `xx` - - case 'xxxx': - case 'xx': - // Hours and minutes without `:` delimiter - return formatTimezone(timezoneOffset); - // Hours, minutes and optional seconds with `:` delimiter - // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets - // so this token always has the same output as `xxx` - - case 'xxxxx': - case 'xxx': // Hours and minutes with `:` delimiter - - default: - return formatTimezone(timezoneOffset, ':'); - } - }, - // Timezone (GMT) - O: function (date, token, _localize, options) { - var originalDate = options._originalDate || date; - var timezoneOffset = originalDate.getTimezoneOffset(); - - switch (token) { - // Short - case 'O': - case 'OO': - case 'OOO': - return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); - // Long - - case 'OOOO': - default: - return 'GMT' + formatTimezone(timezoneOffset, ':'); - } - }, - // Timezone (specific non-location) - z: function (date, token, _localize, options) { - var originalDate = options._originalDate || date; - var timezoneOffset = originalDate.getTimezoneOffset(); - - switch (token) { - // Short - case 'z': - case 'zz': - case 'zzz': - return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); - // Long - - case 'zzzz': - default: - return 'GMT' + formatTimezone(timezoneOffset, ':'); - } - }, - // Seconds timestamp - t: function (date, token, _localize, options) { - var originalDate = options._originalDate || date; - var timestamp = Math.floor(originalDate.getTime() / 1000); - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(timestamp, token.length); - }, - // Milliseconds timestamp - T: function (date, token, _localize, options) { - var originalDate = options._originalDate || date; - var timestamp = originalDate.getTime(); - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(timestamp, token.length); - } -}; - -function formatTimezoneShort(offset, dirtyDelimiter) { - var sign = offset > 0 ? '-' : '+'; - var absOffset = Math.abs(offset); - var hours = Math.floor(absOffset / 60); - var minutes = absOffset % 60; - - if (minutes === 0) { - return sign + String(hours); - } - - var delimiter = dirtyDelimiter || ''; - return sign + String(hours) + delimiter + (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(minutes, 2); -} - -function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) { - if (offset % 60 === 0) { - var sign = offset > 0 ? '-' : '+'; - return sign + (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(Math.abs(offset) / 60, 2); - } - - return formatTimezone(offset, dirtyDelimiter); -} - -function formatTimezone(offset, dirtyDelimiter) { - var delimiter = dirtyDelimiter || ''; - var sign = offset > 0 ? '-' : '+'; - var absOffset = Math.abs(offset); - var hours = (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(Math.floor(absOffset / 60), 2); - var minutes = (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(absOffset % 60, 2); - return sign + hours + delimiter + minutes; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (formatters); - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js": -/*!************************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../addLeadingZeros/index.js */ "./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js"); - -/* - * | | Unit | | Unit | - * |-----|--------------------------------|-----|--------------------------------| - * | a | AM, PM | A* | | - * | d | Day of month | D | | - * | h | Hour [1-12] | H | Hour [0-23] | - * | m | Minute | M | Month | - * | s | Second | S | Fraction of second | - * | y | Year (abs) | Y | | - * - * Letters marked by * are not implemented but reserved by Unicode standard. - */ - -var formatters = { - // Year - y: function (date, token) { - // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens - // | Year | y | yy | yyy | yyyy | yyyyy | - // |----------|-------|----|-------|-------|-------| - // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | - // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | - // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | - // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | - // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | - var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) - - var year = signedYear > 0 ? signedYear : 1 - signedYear; - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(token === 'yy' ? year % 100 : year, token.length); - }, - // Month - M: function (date, token) { - var month = date.getUTCMonth(); - return token === 'M' ? String(month + 1) : (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(month + 1, 2); - }, - // Day of the month - d: function (date, token) { - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(date.getUTCDate(), token.length); - }, - // AM or PM - a: function (date, token) { - var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am'; - - switch (token) { - case 'a': - case 'aa': - return dayPeriodEnumValue.toUpperCase(); - - case 'aaa': - return dayPeriodEnumValue; - - case 'aaaaa': - return dayPeriodEnumValue[0]; - - case 'aaaa': - default: - return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.'; - } - }, - // Hour [1-12] - h: function (date, token) { - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(date.getUTCHours() % 12 || 12, token.length); - }, - // Hour [0-23] - H: function (date, token) { - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(date.getUTCHours(), token.length); - }, - // Minute - m: function (date, token) { - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(date.getUTCMinutes(), token.length); - }, - // Second - s: function (date, token) { - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(date.getUTCSeconds(), token.length); - }, - // Fraction of second - S: function (date, token) { - var numberOfDigits = token.length; - var milliseconds = date.getUTCMilliseconds(); - var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3)); - return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(fractionalSeconds, token.length); - } -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (formatters); - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/format/longFormatters/index.js": -/*!***********************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/format/longFormatters/index.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -function dateLongFormatter(pattern, formatLong) { - switch (pattern) { - case 'P': - return formatLong.date({ - width: 'short' - }); - - case 'PP': - return formatLong.date({ - width: 'medium' - }); - - case 'PPP': - return formatLong.date({ - width: 'long' - }); - - case 'PPPP': - default: - return formatLong.date({ - width: 'full' - }); - } -} - -function timeLongFormatter(pattern, formatLong) { - switch (pattern) { - case 'p': - return formatLong.time({ - width: 'short' - }); - - case 'pp': - return formatLong.time({ - width: 'medium' - }); - - case 'ppp': - return formatLong.time({ - width: 'long' - }); - - case 'pppp': - default: - return formatLong.time({ - width: 'full' - }); - } -} - -function dateTimeLongFormatter(pattern, formatLong) { - var matchResult = pattern.match(/(P+)(p+)?/); - var datePattern = matchResult[1]; - var timePattern = matchResult[2]; - - if (!timePattern) { - return dateLongFormatter(pattern, formatLong); - } - - var dateTimeFormat; - - switch (datePattern) { - case 'P': - dateTimeFormat = formatLong.dateTime({ - width: 'short' - }); - break; - - case 'PP': - dateTimeFormat = formatLong.dateTime({ - width: 'medium' - }); - break; - - case 'PPP': - dateTimeFormat = formatLong.dateTime({ - width: 'long' - }); - break; - - case 'PPPP': - default: - dateTimeFormat = formatLong.dateTime({ - width: 'full' - }); - break; - } - - return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong)); -} - -var longFormatters = { - p: timeLongFormatter, - P: dateTimeLongFormatter -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (longFormatters); - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getTimezoneOffsetInMilliseconds) -/* harmony export */ }); -/** - * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. - * They usually appear for dates that denote time before the timezones were introduced - * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 - * and GMT+01:00:00 after that date) - * - * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, - * which would lead to incorrect calculations. - * - * This function returns the timezone offset in milliseconds that takes seconds in account. - */ -function getTimezoneOffsetInMilliseconds(date) { - var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds())); - utcDate.setUTCFullYear(date.getFullYear()); - return date.getTime() - utcDate.getTime(); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js": -/*!*****************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getUTCDayOfYear) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -var MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function getUTCDayOfYear(dirtyDate) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var timestamp = date.getTime(); - date.setUTCMonth(0, 1); - date.setUTCHours(0, 0, 0, 0); - var startOfYearTimestamp = date.getTime(); - var difference = timestamp - startOfYearTimestamp; - return Math.floor(difference / MILLISECONDS_IN_DAY) + 1; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js": -/*!***************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getUTCISOWeek) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); -/* harmony import */ var _startOfUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../startOfUTCISOWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - -var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function getUTCISOWeek(dirtyDate) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var diff = (0,_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(date).getTime() - (0,_startOfUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(date).getTime(); // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) - - return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js": -/*!*******************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getUTCISOWeekYear) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function getUTCISOWeekYear(dirtyDate) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var year = date.getUTCFullYear(); - var fourthOfJanuaryOfNextYear = new Date(0); - fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4); - fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0); - var startOfNextYear = (0,_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(fourthOfJanuaryOfNextYear); - var fourthOfJanuaryOfThisYear = new Date(0); - fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4); - fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0); - var startOfThisYear = (0,_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(fourthOfJanuaryOfThisYear); - - if (date.getTime() >= startOfNextYear.getTime()) { - return year + 1; - } else if (date.getTime() >= startOfThisYear.getTime()) { - return year; - } else { - return year - 1; - } -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/getUTCWeek/index.js": -/*!************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/getUTCWeek/index.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getUTCWeek) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); -/* harmony import */ var _startOfUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../startOfUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - -var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function getUTCWeek(dirtyDate, options) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var diff = (0,_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(date, options).getTime() - (0,_startOfUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(date, options).getTime(); // Round the number of days to the nearest integer - // because the number of milliseconds in a week is not constant - // (e.g. it's different in the week of the daylight saving time clock shift) - - return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js": -/*!****************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getUTCWeekYear) -/* harmony export */ }); -/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function getUTCWeekYear(dirtyDate, dirtyOptions) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate, dirtyOptions); - var year = date.getUTCFullYear(); - var options = dirtyOptions || {}; - var locale = options.locale; - var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; - var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(localeFirstWeekContainsDate); - var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN - - if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { - throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); - } - - var firstWeekOfNextYear = new Date(0); - firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate); - firstWeekOfNextYear.setUTCHours(0, 0, 0, 0); - var startOfNextYear = (0,_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(firstWeekOfNextYear, dirtyOptions); - var firstWeekOfThisYear = new Date(0); - firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate); - firstWeekOfThisYear.setUTCHours(0, 0, 0, 0); - var startOfThisYear = (0,_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(firstWeekOfThisYear, dirtyOptions); - - if (date.getTime() >= startOfNextYear.getTime()) { - return year + 1; - } else if (date.getTime() >= startOfThisYear.getTime()) { - return year; - } else { - return year - 1; - } -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/protectedTokens/index.js": -/*!*****************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/protectedTokens/index.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "isProtectedDayOfYearToken": () => (/* binding */ isProtectedDayOfYearToken), -/* harmony export */ "isProtectedWeekYearToken": () => (/* binding */ isProtectedWeekYearToken), -/* harmony export */ "throwProtectedError": () => (/* binding */ throwProtectedError) -/* harmony export */ }); -var protectedDayOfYearTokens = ['D', 'DD']; -var protectedWeekYearTokens = ['YY', 'YYYY']; -function isProtectedDayOfYearToken(token) { - return protectedDayOfYearTokens.indexOf(token) !== -1; -} -function isProtectedWeekYearToken(token) { - return protectedWeekYearTokens.indexOf(token) !== -1; -} -function throwProtectedError(token, format, input) { - if (token === 'YYYY') { - throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr")); - } else if (token === 'YY') { - throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr")); - } else if (token === 'D') { - throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr")); - } else if (token === 'DD') { - throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr")); - } -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js": -/*!**************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/requiredArgs/index.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ requiredArgs) -/* harmony export */ }); -function requiredArgs(required, args) { - if (args.length < required) { - throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present'); - } -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/setUTCDay/index.js": -/*!***********************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/setUTCDay/index.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ setUTCDay) -/* harmony export */ }); -/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var options = dirtyOptions || {}; - var locale = options.locale; - var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; - var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(localeWeekStartsOn); - var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN - - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); - } - - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate); - var day = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDay); - var currentDay = date.getUTCDay(); - var remainder = day % 7; - var dayIndex = (remainder + 7) % 7; - var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; - date.setUTCDate(date.getUTCDate() + diff); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/setUTCISODay/index.js": -/*!**************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/setUTCISODay/index.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ setUTCISODay) -/* harmony export */ }); -/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function setUTCISODay(dirtyDate, dirtyDay) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var day = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDay); - - if (day % 7 === 0) { - day = day - 7; - } - - var weekStartsOn = 1; - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate); - var currentDay = date.getUTCDay(); - var remainder = day % 7; - var dayIndex = (remainder + 7) % 7; - var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; - date.setUTCDate(date.getUTCDate() + diff); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js": -/*!***************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ setUTCISOWeek) -/* harmony export */ }); -/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../getUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function setUTCISOWeek(dirtyDate, dirtyISOWeek) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var isoWeek = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyISOWeek); - var diff = (0,_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(date) - isoWeek; - date.setUTCDate(date.getUTCDate() - diff * 7); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/setUTCWeek/index.js": -/*!************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/setUTCWeek/index.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ setUTCWeek) -/* harmony export */ }); -/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../getUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeek/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function setUTCWeek(dirtyDate, dirtyWeek, options) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var week = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyWeek); - var diff = (0,_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(date, options) - week; - date.setUTCDate(date.getUTCDate() - diff * 7); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js": -/*!*******************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ startOfUTCISOWeek) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function startOfUTCISOWeek(dirtyDate) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var weekStartsOn = 1; - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var day = date.getUTCDay(); - var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; - date.setUTCDate(date.getUTCDate() - diff); - date.setUTCHours(0, 0, 0, 0); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js": -/*!***********************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ startOfUTCISOWeekYear) -/* harmony export */ }); -/* harmony import */ var _getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../getUTCISOWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js"); -/* harmony import */ var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function startOfUTCISOWeekYear(dirtyDate) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var year = (0,_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var fourthOfJanuary = new Date(0); - fourthOfJanuary.setUTCFullYear(year, 0, 4); - fourthOfJanuary.setUTCHours(0, 0, 0, 0); - var date = (0,_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(fourthOfJanuary); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js": -/*!****************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ startOfUTCWeek) -/* harmony export */ }); -/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function startOfUTCWeek(dirtyDate, dirtyOptions) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var options = dirtyOptions || {}; - var locale = options.locale; - var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; - var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(localeWeekStartsOn); - var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN - - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); - } - - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate); - var day = date.getUTCDay(); - var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; - date.setUTCDate(date.getUTCDate() - diff); - date.setUTCHours(0, 0, 0, 0); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js": -/*!********************************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ startOfUTCWeekYear) -/* harmony export */ }); -/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../getUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js"); -/* harmony import */ var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); -/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - // This function will be a part of public API when UTC function will be implemented. -// See issue: https://github.com/date-fns/date-fns/issues/376 - -function startOfUTCWeekYear(dirtyDate, dirtyOptions) { - (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var options = dirtyOptions || {}; - var locale = options.locale; - var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; - var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(localeFirstWeekContainsDate); - var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(options.firstWeekContainsDate); - var year = (0,_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate, dirtyOptions); - var firstWeek = new Date(0); - firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate); - firstWeek.setUTCHours(0, 0, 0, 0); - var date = (0,_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(firstWeek, dirtyOptions); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/_lib/toInteger/index.js": -/*!***********************************************************!*\ - !*** ./node_modules/date-fns/esm/_lib/toInteger/index.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ toInteger) -/* harmony export */ }); -function toInteger(dirtyNumber) { - if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) { - return NaN; - } - - var number = Number(dirtyNumber); - - if (isNaN(number)) { - return number; - } - - return number < 0 ? Math.ceil(number) : Math.floor(number); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/addDays/index.js": -/*!****************************************************!*\ - !*** ./node_modules/date-fns/esm/addDays/index.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ addDays) -/* harmony export */ }); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - -/** - * @name addDays - * @category Day Helpers - * @summary Add the specified number of days to the given date. - * - * @description - * Add the specified number of days to the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the date to be changed - * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. - * @returns {Date} - the new date with the days added - * @throws {TypeError} - 2 arguments required - * - * @example - * // Add 10 days to 1 September 2014: - * const result = addDays(new Date(2014, 8, 1), 10) - * //=> Thu Sep 11 2014 00:00:00 - */ - -function addDays(dirtyDate, dirtyAmount) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyAmount); - - if (isNaN(amount)) { - return new Date(NaN); - } - - if (!amount) { - // If 0 days, no-op to avoid changing times in the hour before end of DST - return date; - } - - date.setDate(date.getDate() + amount); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/addMilliseconds/index.js": -/*!************************************************************!*\ - !*** ./node_modules/date-fns/esm/addMilliseconds/index.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ addMilliseconds) -/* harmony export */ }); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - -/** - * @name addMilliseconds - * @category Millisecond Helpers - * @summary Add the specified number of milliseconds to the given date. - * - * @description - * Add the specified number of milliseconds to the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the date to be changed - * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. - * @returns {Date} the new date with the milliseconds added - * @throws {TypeError} 2 arguments required - * - * @example - * // Add 750 milliseconds to 10 July 2014 12:45:30.000: - * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) - * //=> Thu Jul 10 2014 12:45:30.750 - */ - -function addMilliseconds(dirtyDate, dirtyAmount) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var timestamp = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate).getTime(); - var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyAmount); - return new Date(timestamp + amount); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/addMonths/index.js": -/*!******************************************************!*\ - !*** ./node_modules/date-fns/esm/addMonths/index.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ addMonths) -/* harmony export */ }); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - -/** - * @name addMonths - * @category Month Helpers - * @summary Add the specified number of months to the given date. - * - * @description - * Add the specified number of months to the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the date to be changed - * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. - * @returns {Date} the new date with the months added - * @throws {TypeError} 2 arguments required - * - * @example - * // Add 5 months to 1 September 2014: - * const result = addMonths(new Date(2014, 8, 1), 5) - * //=> Sun Feb 01 2015 00:00:00 - */ - -function addMonths(dirtyDate, dirtyAmount) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyAmount); - - if (isNaN(amount)) { - return new Date(NaN); - } - - if (!amount) { - // If 0 months, no-op to avoid changing times in the hour before end of DST - return date; - } - - var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for - // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and - // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we - // want except that dates will wrap around the end of a month, meaning that - // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So - // we'll default to the end of the desired month by adding 1 to the desired - // month and using a date of 0 to back up one day to the end of the desired - // month. - - var endOfDesiredMonth = new Date(date.getTime()); - endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0); - var daysInMonth = endOfDesiredMonth.getDate(); - - if (dayOfMonth >= daysInMonth) { - // If we're already at the end of the month, then this is the correct date - // and we're done. - return endOfDesiredMonth; - } else { - // Otherwise, we now know that setting the original day-of-month value won't - // cause an overflow, so set the desired day-of-month. Note that we can't - // just set the date of `endOfDesiredMonth` because that object may have had - // its time changed in the unusual case where where a DST transition was on - // the last day of the month and its local time was in the hour skipped or - // repeated next to a DST transition. So we use `date` instead which is - // guaranteed to still have the original time. - date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth); - return date; - } -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/addYears/index.js": -/*!*****************************************************!*\ - !*** ./node_modules/date-fns/esm/addYears/index.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ addYears) -/* harmony export */ }); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../addMonths/index.js */ "./node_modules/date-fns/esm/addMonths/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - -/** - * @name addYears - * @category Year Helpers - * @summary Add the specified number of years to the given date. - * - * @description - * Add the specified number of years to the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the date to be changed - * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. - * @returns {Date} the new date with the years added - * @throws {TypeError} 2 arguments required - * - * @example - * // Add 5 years to 1 September 2014: - * const result = addYears(new Date(2014, 8, 1), 5) - * //=> Sun Sep 01 2019 00:00:00 - */ - -function addYears(dirtyDate, dirtyAmount) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyAmount); - return (0,_addMonths_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate, amount * 12); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/eachDayOfInterval/index.js": -/*!**************************************************************!*\ - !*** ./node_modules/date-fns/esm/eachDayOfInterval/index.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ eachDayOfInterval) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name eachDayOfInterval - * @category Interval Helpers - * @summary Return the array of dates within the specified time interval. - * - * @description - * Return the array of dates within the specified time interval. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * - The function was renamed from `eachDay` to `eachDayOfInterval`. - * This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology: - * - * ``` - * 2.1.3 - * time interval - * part of the time axis limited by two instants - * ``` - * - * Also, this function now accepts an object with `start` and `end` properties - * instead of two arguments as an interval. - * This function now throws `RangeError` if the start of the interval is after its end - * or if any date in the interval is `Invalid Date`. - * - * ```javascript - * // Before v2.0.0 - * - * eachDay(new Date(2014, 0, 10), new Date(2014, 0, 20)) - * - * // v2.0.0 onward - * - * eachDayOfInterval( - * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) } - * ) - * ``` - * - * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} - * @param {Object} [options] - an object with options. - * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1. - * @returns {Date[]} the array with starts of days from the day of the interval start to the day of the interval end - * @throws {TypeError} 1 argument required - * @throws {RangeError} `options.step` must be a number greater than 1 - * @throws {RangeError} The start of an interval cannot be after its end - * @throws {RangeError} Date in interval cannot be `Invalid Date` - * - * @example - * // Each day between 6 October 2014 and 10 October 2014: - * const result = eachDayOfInterval({ - * start: new Date(2014, 9, 6), - * end: new Date(2014, 9, 10) - * }) - * //=> [ - * // Mon Oct 06 2014 00:00:00, - * // Tue Oct 07 2014 00:00:00, - * // Wed Oct 08 2014 00:00:00, - * // Thu Oct 09 2014 00:00:00, - * // Fri Oct 10 2014 00:00:00 - * // ] - */ - -function eachDayOfInterval(dirtyInterval, options) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var interval = dirtyInterval || {}; - var startDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(interval.start); - var endDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(interval.end); - var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` - - if (!(startDate.getTime() <= endTime)) { - throw new RangeError('Invalid interval'); - } - - var dates = []; - var currentDate = startDate; - currentDate.setHours(0, 0, 0, 0); - var step = options && 'step' in options ? Number(options.step) : 1; - if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1'); - - while (currentDate.getTime() <= endTime) { - dates.push((0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(currentDate)); - currentDate.setDate(currentDate.getDate() + step); - currentDate.setHours(0, 0, 0, 0); - } - - return dates; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/eachMonthOfInterval/index.js": -/*!****************************************************************!*\ - !*** ./node_modules/date-fns/esm/eachMonthOfInterval/index.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ eachMonthOfInterval) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name eachMonthOfInterval - * @category Interval Helpers - * @summary Return the array of months within the specified time interval. - * - * @description - * Return the array of months within the specified time interval. - * - * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} - * @returns {Date[]} the array with starts of months from the month of the interval start to the month of the interval end - * @throws {TypeError} 1 argument required - * @throws {RangeError} The start of an interval cannot be after its end - * @throws {RangeError} Date in interval cannot be `Invalid Date` - * - * @example - * // Each month between 6 February 2014 and 10 August 2014: - * var result = eachMonthOfInterval({ - * start: new Date(2014, 1, 6), - * end: new Date(2014, 7, 10) - * }) - * //=> [ - * // Sat Feb 01 2014 00:00:00, - * // Sat Mar 01 2014 00:00:00, - * // Tue Apr 01 2014 00:00:00, - * // Thu May 01 2014 00:00:00, - * // Sun Jun 01 2014 00:00:00, - * // Tue Jul 01 2014 00:00:00, - * // Fri Aug 01 2014 00:00:00 - * // ] - */ - -function eachMonthOfInterval(dirtyInterval) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var interval = dirtyInterval || {}; - var startDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(interval.start); - var endDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(interval.end); - var endTime = endDate.getTime(); - var dates = []; // Throw an exception if start date is after end date or if any date is `Invalid Date` - - if (!(startDate.getTime() <= endTime)) { - throw new RangeError('Invalid interval'); - } - - var currentDate = startDate; - currentDate.setHours(0, 0, 0, 0); - currentDate.setDate(1); - - while (currentDate.getTime() <= endTime) { - dates.push((0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(currentDate)); - currentDate.setMonth(currentDate.getMonth() + 1); - } - - return dates; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/eachYearOfInterval/index.js": -/*!***************************************************************!*\ - !*** ./node_modules/date-fns/esm/eachYearOfInterval/index.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ eachYearOfInterval) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name eachYearOfInterval - * @category Interval Helpers - * @summary Return the array of yearly timestamps within the specified time interval. - * - * @description - * Return the array of yearly timestamps within the specified time interval. - * - * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} - * @returns {Date[]} the array with starts of yearly timestamps from the month of the interval start to the month of the interval end - * @throws {TypeError} 1 argument required - * @throws {RangeError} The start of an interval cannot be after its end - * @throws {RangeError} Date in interval cannot be `Invalid Date` - * - * @example - * // Each year between 6 February 2014 and 10 August 2017: - * var result = eachYearOfInterval({ - * start: new Date(2014, 1, 6), - * end: new Date(2017, 7, 10) - * }) - * //=> [ - * // Wed Jan 01 2014 00:00:00, - * // Thu Jan 01 2015 00:00:00, - * // Fri Jan 01 2016 00:00:00, - * // Sun Jan 01 2017 00:00:00 - * // ] - */ - -function eachYearOfInterval(dirtyInterval) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var interval = dirtyInterval || {}; - var startDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(interval.start); - var endDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(interval.end); - var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` - - if (!(startDate.getTime() <= endTime)) { - throw new RangeError('Invalid interval'); - } - - var dates = []; - var currentDate = startDate; - currentDate.setHours(0, 0, 0, 0); - currentDate.setMonth(0, 1); - - while (currentDate.getTime() <= endTime) { - dates.push((0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(currentDate)); - currentDate.setFullYear(currentDate.getFullYear() + 1); - } - - return dates; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/endOfDay/index.js": -/*!*****************************************************!*\ - !*** ./node_modules/date-fns/esm/endOfDay/index.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ endOfDay) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name endOfDay - * @category Day Helpers - * @summary Return the end of a day for the given date. - * - * @description - * Return the end of a day for the given date. - * The result will be in the local timezone. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the original date - * @returns {Date} the end of a day - * @throws {TypeError} 1 argument required - * - * @example - * // The end of a day for 2 September 2014 11:55:00: - * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Tue Sep 02 2014 23:59:59.999 - */ - -function endOfDay(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - date.setHours(23, 59, 59, 999); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/endOfDecade/index.js": -/*!********************************************************!*\ - !*** ./node_modules/date-fns/esm/endOfDecade/index.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ endOfDecade) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name endOfDecade - * @category Decade Helpers - * @summary Return the end of a decade for the given date. - * - * @description - * Return the end of a decade for the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the original date - * @returns {Date} the end of a decade - * @param {Object} [options] - an object with options. - * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} - * @throws {TypeError} 1 argument required - * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 - * - * @example - * // The end of a decade for 12 May 1984 00:00:00: - * const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) - * //=> Dec 31 1989 23:59:59.999 - */ - -function endOfDecade(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var year = date.getFullYear(); - var decade = 9 + Math.floor(year / 10) * 10; - date.setFullYear(decade, 11, 31); - date.setHours(23, 59, 59, 999); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/endOfMonth/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/date-fns/esm/endOfMonth/index.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ endOfMonth) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name endOfMonth - * @category Month Helpers - * @summary Return the end of a month for the given date. - * - * @description - * Return the end of a month for the given date. - * The result will be in the local timezone. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the original date - * @returns {Date} the end of a month - * @throws {TypeError} 1 argument required - * - * @example - * // The end of a month for 2 September 2014 11:55:00: - * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Tue Sep 30 2014 23:59:59.999 - */ - -function endOfMonth(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var month = date.getMonth(); - date.setFullYear(date.getFullYear(), month + 1, 0); - date.setHours(23, 59, 59, 999); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/endOfWeek/index.js": -/*!******************************************************!*\ - !*** ./node_modules/date-fns/esm/endOfWeek/index.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ endOfWeek) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - -/** - * @name endOfWeek - * @category Week Helpers - * @summary Return the end of a week for the given date. - * - * @description - * Return the end of a week for the given date. - * The result will be in the local timezone. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the original date - * @param {Object} [options] - an object with options. - * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} - * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @returns {Date} the end of a week - * @throws {TypeError} 1 argument required - * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 - * - * @example - * // The end of a week for 2 September 2014 11:55:00: - * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Sat Sep 06 2014 23:59:59.999 - * - * @example - * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: - * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) - * //=> Sun Sep 07 2014 23:59:59.999 - */ -function endOfWeek(dirtyDate, dirtyOptions) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var options = dirtyOptions || {}; - var locale = options.locale; - var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; - var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(localeWeekStartsOn); - var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN - - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); - } - - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate); - var day = date.getDay(); - var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); - date.setDate(date.getDate() + diff); - date.setHours(23, 59, 59, 999); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/endOfYear/index.js": -/*!******************************************************!*\ - !*** ./node_modules/date-fns/esm/endOfYear/index.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ endOfYear) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name endOfYear - * @category Year Helpers - * @summary Return the end of a year for the given date. - * - * @description - * Return the end of a year for the given date. - * The result will be in the local timezone. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the original date - * @returns {Date} the end of a year - * @throws {TypeError} 1 argument required - * - * @example - * // The end of a year for 2 September 2014 11:55:00: - * var result = endOfYear(new Date(2014, 8, 2, 11, 55, 00)) - * //=> Wed Dec 31 2014 23:59:59.999 - */ - -function endOfYear(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var year = date.getFullYear(); - date.setFullYear(year + 1, 0, 0); - date.setHours(23, 59, 59, 999); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/format/index.js": -/*!***************************************************!*\ - !*** ./node_modules/date-fns/esm/format/index.js ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ format) -/* harmony export */ }); -/* harmony import */ var _isValid_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../isValid/index.js */ "./node_modules/date-fns/esm/isValid/index.js"); -/* harmony import */ var _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../locale/en-US/index.js */ "./node_modules/date-fns/esm/locale/en-US/index.js"); -/* harmony import */ var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../subMilliseconds/index.js */ "./node_modules/date-fns/esm/subMilliseconds/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_format_formatters_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_lib/format/formatters/index.js */ "./node_modules/date-fns/esm/_lib/format/formatters/index.js"); -/* harmony import */ var _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_lib/format/longFormatters/index.js */ "./node_modules/date-fns/esm/_lib/format/longFormatters/index.js"); -/* harmony import */ var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js"); -/* harmony import */ var _lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_lib/protectedTokens/index.js */ "./node_modules/date-fns/esm/_lib/protectedTokens/index.js"); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - - - - - - - // This RegExp consists of three parts separated by `|`: -// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token -// (one of the certain letters followed by `o`) -// - (\w)\1* matches any sequences of the same letter -// - '' matches two quote characters in a row -// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), -// except a single quote symbol, which ends the sequence. -// Two quote characters do not end the sequence. -// If there is no matching single quote -// then the sequence will continue until the end of the string. -// - . matches any single character unmatched by previous parts of the RegExps - -var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also -// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` - -var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; -var escapedStringRegExp = /^'([^]*?)'?$/; -var doubleQuoteRegExp = /''/g; -var unescapedLatinCharacterRegExp = /[a-zA-Z]/; -/** - * @name format - * @category Common Helpers - * @summary Format the date. - * - * @description - * Return the formatted date string in the given format. The result may vary by locale. - * - * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. - * > See: https://git.io/fxCyr - * - * The characters wrapped between two single quotes characters (') are escaped. - * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. - * (see the last example) - * - * Format of the string is based on Unicode Technical Standard #35: - * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table - * with a few additions (see note 7 below the table). - * - * Accepted patterns: - * | Unit | Pattern | Result examples | Notes | - * |---------------------------------|---------|-----------------------------------|-------| - * | Era | G..GGG | AD, BC | | - * | | GGGG | Anno Domini, Before Christ | 2 | - * | | GGGGG | A, B | | - * | Calendar year | y | 44, 1, 1900, 2017 | 5 | - * | | yo | 44th, 1st, 0th, 17th | 5,7 | - * | | yy | 44, 01, 00, 17 | 5 | - * | | yyy | 044, 001, 1900, 2017 | 5 | - * | | yyyy | 0044, 0001, 1900, 2017 | 5 | - * | | yyyyy | ... | 3,5 | - * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | - * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | - * | | YY | 44, 01, 00, 17 | 5,8 | - * | | YYY | 044, 001, 1900, 2017 | 5 | - * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | - * | | YYYYY | ... | 3,5 | - * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | - * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | - * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | - * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | - * | | RRRRR | ... | 3,5,7 | - * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | - * | | uu | -43, 01, 1900, 2017 | 5 | - * | | uuu | -043, 001, 1900, 2017 | 5 | - * | | uuuu | -0043, 0001, 1900, 2017 | 5 | - * | | uuuuu | ... | 3,5 | - * | Quarter (formatting) | Q | 1, 2, 3, 4 | | - * | | Qo | 1st, 2nd, 3rd, 4th | 7 | - * | | QQ | 01, 02, 03, 04 | | - * | | QQQ | Q1, Q2, Q3, Q4 | | - * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | - * | | QQQQQ | 1, 2, 3, 4 | 4 | - * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | - * | | qo | 1st, 2nd, 3rd, 4th | 7 | - * | | qq | 01, 02, 03, 04 | | - * | | qqq | Q1, Q2, Q3, Q4 | | - * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | - * | | qqqqq | 1, 2, 3, 4 | 4 | - * | Month (formatting) | M | 1, 2, ..., 12 | | - * | | Mo | 1st, 2nd, ..., 12th | 7 | - * | | MM | 01, 02, ..., 12 | | - * | | MMM | Jan, Feb, ..., Dec | | - * | | MMMM | January, February, ..., December | 2 | - * | | MMMMM | J, F, ..., D | | - * | Month (stand-alone) | L | 1, 2, ..., 12 | | - * | | Lo | 1st, 2nd, ..., 12th | 7 | - * | | LL | 01, 02, ..., 12 | | - * | | LLL | Jan, Feb, ..., Dec | | - * | | LLLL | January, February, ..., December | 2 | - * | | LLLLL | J, F, ..., D | | - * | Local week of year | w | 1, 2, ..., 53 | | - * | | wo | 1st, 2nd, ..., 53th | 7 | - * | | ww | 01, 02, ..., 53 | | - * | ISO week of year | I | 1, 2, ..., 53 | 7 | - * | | Io | 1st, 2nd, ..., 53th | 7 | - * | | II | 01, 02, ..., 53 | 7 | - * | Day of month | d | 1, 2, ..., 31 | | - * | | do | 1st, 2nd, ..., 31st | 7 | - * | | dd | 01, 02, ..., 31 | | - * | Day of year | D | 1, 2, ..., 365, 366 | 9 | - * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | - * | | DD | 01, 02, ..., 365, 366 | 9 | - * | | DDD | 001, 002, ..., 365, 366 | | - * | | DDDD | ... | 3 | - * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | - * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | - * | | EEEEE | M, T, W, T, F, S, S | | - * | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | | - * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | - * | | io | 1st, 2nd, ..., 7th | 7 | - * | | ii | 01, 02, ..., 07 | 7 | - * | | iii | Mon, Tue, Wed, ..., Sun | 7 | - * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | - * | | iiiii | M, T, W, T, F, S, S | 7 | - * | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 7 | - * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | - * | | eo | 2nd, 3rd, ..., 1st | 7 | - * | | ee | 02, 03, ..., 01 | | - * | | eee | Mon, Tue, Wed, ..., Sun | | - * | | eeee | Monday, Tuesday, ..., Sunday | 2 | - * | | eeeee | M, T, W, T, F, S, S | | - * | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | | - * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | - * | | co | 2nd, 3rd, ..., 1st | 7 | - * | | cc | 02, 03, ..., 01 | | - * | | ccc | Mon, Tue, Wed, ..., Sun | | - * | | cccc | Monday, Tuesday, ..., Sunday | 2 | - * | | ccccc | M, T, W, T, F, S, S | | - * | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | | - * | AM, PM | a..aa | AM, PM | | - * | | aaa | am, pm | | - * | | aaaa | a.m., p.m. | 2 | - * | | aaaaa | a, p | | - * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | - * | | bbb | am, pm, noon, midnight | | - * | | bbbb | a.m., p.m., noon, midnight | 2 | - * | | bbbbb | a, p, n, mi | | - * | Flexible day period | B..BBB | at night, in the morning, ... | | - * | | BBBB | at night, in the morning, ... | 2 | - * | | BBBBB | at night, in the morning, ... | | - * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | - * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | - * | | hh | 01, 02, ..., 11, 12 | | - * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | - * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | - * | | HH | 00, 01, 02, ..., 23 | | - * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | - * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | - * | | KK | 01, 02, ..., 11, 00 | | - * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | - * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | - * | | kk | 24, 01, 02, ..., 23 | | - * | Minute | m | 0, 1, ..., 59 | | - * | | mo | 0th, 1st, ..., 59th | 7 | - * | | mm | 00, 01, ..., 59 | | - * | Second | s | 0, 1, ..., 59 | | - * | | so | 0th, 1st, ..., 59th | 7 | - * | | ss | 00, 01, ..., 59 | | - * | Fraction of second | S | 0, 1, ..., 9 | | - * | | SS | 00, 01, ..., 99 | | - * | | SSS | 000, 001, ..., 999 | | - * | | SSSS | ... | 3 | - * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | - * | | XX | -0800, +0530, Z | | - * | | XXX | -08:00, +05:30, Z | | - * | | XXXX | -0800, +0530, Z, +123456 | 2 | - * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | - * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | - * | | xx | -0800, +0530, +0000 | | - * | | xxx | -08:00, +05:30, +00:00 | 2 | - * | | xxxx | -0800, +0530, +0000, +123456 | | - * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | - * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | - * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | - * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | - * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | - * | Seconds timestamp | t | 512969520 | 7 | - * | | tt | ... | 3,7 | - * | Milliseconds timestamp | T | 512969520900 | 7 | - * | | TT | ... | 3,7 | - * | Long localized date | P | 04/29/1453 | 7 | - * | | PP | Apr 29, 1453 | 7 | - * | | PPP | April 29th, 1453 | 7 | - * | | PPPP | Friday, April 29th, 1453 | 2,7 | - * | Long localized time | p | 12:00 AM | 7 | - * | | pp | 12:00:00 AM | 7 | - * | | ppp | 12:00:00 AM GMT+2 | 7 | - * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | - * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | - * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | - * | | PPPppp | April 29th, 1453 at ... | 7 | - * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | - * Notes: - * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale - * are the same as "stand-alone" units, but are different in some languages. - * "Formatting" units are declined according to the rules of the language - * in the context of a date. "Stand-alone" units are always nominative singular: - * - * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` - * - * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` - * - * 2. Any sequence of the identical letters is a pattern, unless it is escaped by - * the single quote characters (see below). - * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) - * the output will be the same as default pattern for this unit, usually - * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units - * are marked with "2" in the last column of the table. - * - * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` - * - * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` - * - * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` - * - * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` - * - * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` - * - * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). - * The output will be padded with zeros to match the length of the pattern. - * - * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` - * - * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. - * These tokens represent the shortest form of the quarter. - * - * 5. The main difference between `y` and `u` patterns are B.C. years: - * - * | Year | `y` | `u` | - * |------|-----|-----| - * | AC 1 | 1 | 1 | - * | BC 1 | 1 | 0 | - * | BC 2 | 2 | -1 | - * - * Also `yy` always returns the last two digits of a year, - * while `uu` pads single digit years to 2 characters and returns other years unchanged: - * - * | Year | `yy` | `uu` | - * |------|------|------| - * | 1 | 01 | 01 | - * | 14 | 14 | 14 | - * | 376 | 76 | 376 | - * | 1453 | 53 | 1453 | - * - * The same difference is true for local and ISO week-numbering years (`Y` and `R`), - * except local week-numbering years are dependent on `options.weekStartsOn` - * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear} - * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}). - * - * 6. Specific non-location timezones are currently unavailable in `date-fns`, - * so right now these tokens fall back to GMT timezones. - * - * 7. These patterns are not in the Unicode Technical Standard #35: - * - `i`: ISO day of week - * - `I`: ISO week of year - * - `R`: ISO week-numbering year - * - `t`: seconds timestamp - * - `T`: milliseconds timestamp - * - `o`: ordinal number modifier - * - `P`: long localized date - * - `p`: long localized time - * - * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. - * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr - * - * 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. - * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * - The second argument is now required for the sake of explicitness. - * - * ```javascript - * // Before v2.0.0 - * format(new Date(2016, 0, 1)) - * - * // v2.0.0 onward - * format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx") - * ``` - * - * - New format string API for `format` function - * which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table). - * See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details. - * - * - Characters are now escaped using single quote symbols (`'`) instead of square brackets. - * - * @param {Date|Number} date - the original date - * @param {String} format - the string of tokens - * @param {Object} [options] - an object with options. - * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} - * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is - * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; - * see: https://git.io/fxCyr - * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; - * see: https://git.io/fxCyr - * @returns {String} the formatted date string - * @throws {TypeError} 2 arguments required - * @throws {RangeError} `date` must not be Invalid Date - * @throws {RangeError} `options.locale` must contain `localize` property - * @throws {RangeError} `options.locale` must contain `formatLong` property - * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 - * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 - * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr - * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr - * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr - * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr - * @throws {RangeError} format string contains an unescaped latin alphabet character - * - * @example - * // Represent 11 February 2014 in middle-endian format: - * var result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') - * //=> '02/11/2014' - * - * @example - * // Represent 2 July 2014 in Esperanto: - * import { eoLocale } from 'date-fns/locale/eo' - * var result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { - * locale: eoLocale - * }) - * //=> '2-a de julio 2014' - * - * @example - * // Escape string by single quote characters: - * var result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") - * //=> "3 o'clock" - */ - -function format(dirtyDate, dirtyFormatStr, dirtyOptions) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var formatStr = String(dirtyFormatStr); - var options = dirtyOptions || {}; - var locale = options.locale || _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_1__.default; - var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate; - var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(localeFirstWeekContainsDate); - var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN - - if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { - throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); - } - - var localeWeekStartsOn = locale.options && locale.options.weekStartsOn; - var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(localeWeekStartsOn); - var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN - - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); - } - - if (!locale.localize) { - throw new RangeError('locale must contain localize property'); - } - - if (!locale.formatLong) { - throw new RangeError('locale must contain formatLong property'); - } - - var originalDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(dirtyDate); - - if (!(0,_isValid_index_js__WEBPACK_IMPORTED_MODULE_4__.default)(originalDate)) { - throw new RangeError('Invalid time value'); - } // Convert the date in system timezone to the same date in UTC+00:00 timezone. - // This ensures that when UTC functions will be implemented, locales will be compatible with them. - // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 - - - var timezoneOffset = (0,_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__.default)(originalDate); - var utcDate = (0,_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_6__.default)(originalDate, timezoneOffset); - var formatterOptions = { - firstWeekContainsDate: firstWeekContainsDate, - weekStartsOn: weekStartsOn, - locale: locale, - _originalDate: originalDate - }; - var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) { - var firstCharacter = substring[0]; - - if (firstCharacter === 'p' || firstCharacter === 'P') { - var longFormatter = _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_7__.default[firstCharacter]; - return longFormatter(substring, locale.formatLong, formatterOptions); - } - - return substring; - }).join('').match(formattingTokensRegExp).map(function (substring) { - // Replace two single quote characters with one single quote character - if (substring === "''") { - return "'"; - } - - var firstCharacter = substring[0]; - - if (firstCharacter === "'") { - return cleanEscapedString(substring); - } - - var formatter = _lib_format_formatters_index_js__WEBPACK_IMPORTED_MODULE_8__.default[firstCharacter]; - - if (formatter) { - if (!options.useAdditionalWeekYearTokens && (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_9__.isProtectedWeekYearToken)(substring)) { - (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_9__.throwProtectedError)(substring, dirtyFormatStr, dirtyDate); - } - - if (!options.useAdditionalDayOfYearTokens && (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_9__.isProtectedDayOfYearToken)(substring)) { - (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_9__.throwProtectedError)(substring, dirtyFormatStr, dirtyDate); - } - - return formatter(utcDate, substring, locale.localize, formatterOptions); - } - - if (firstCharacter.match(unescapedLatinCharacterRegExp)) { - throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); - } - - return substring; - }).join(''); - return result; -} - -function cleanEscapedString(input) { - return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'"); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/fp/_lib/convertToFP/index.js": -/*!****************************************************************!*\ - !*** ./node_modules/date-fns/esm/fp/_lib/convertToFP/index.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ convertToFP) -/* harmony export */ }); -function convertToFP(fn, arity, a) { - a = a || []; - - if (a.length >= arity) { - return fn.apply(null, a.slice(0, arity).reverse()); - } - - return function () { - var args = Array.prototype.slice.call(arguments); - return convertToFP(fn, arity, a.concat(args)); - }; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/fp/formatWithOptions/index.js": -/*!*****************************************************************!*\ - !*** ./node_modules/date-fns/esm/fp/formatWithOptions/index.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _format_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../format/index.js */ "./node_modules/date-fns/esm/format/index.js"); -/* harmony import */ var _lib_convertToFP_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/convertToFP/index.js */ "./node_modules/date-fns/esm/fp/_lib/convertToFP/index.js"); -// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. - - -var formatWithOptions = (0,_lib_convertToFP_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(_format_index_js__WEBPACK_IMPORTED_MODULE_1__.default, 3); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (formatWithOptions); - -/***/ }), - -/***/ "./node_modules/date-fns/esm/getDecade/index.js": -/*!******************************************************!*\ - !*** ./node_modules/date-fns/esm/getDecade/index.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getDecade) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name getDecade - * @category Decade Helpers - * @summary Get the decade of the given date. - * - * @description - * Get the decade of the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the given date - * @returns {Number} the year of decade - * @throws {TypeError} 1 argument required - * - * @example - * // Which decade belongs 27 November 1942? - * const result = getDecade(new Date(1942, 10, 27)) - * //=> 1940 - */ - -function getDecade(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var year = date.getFullYear(); - var decade = Math.floor(year / 10) * 10; - return decade; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/getYear/index.js": -/*!****************************************************!*\ - !*** ./node_modules/date-fns/esm/getYear/index.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ getYear) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name getYear - * @category Year Helpers - * @summary Get the year of the given date. - * - * @description - * Get the year of the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the given date - * @returns {Number} the year - * @throws {TypeError} 1 argument required - * - * @example - * // Which year is 2 July 2014? - * const result = getYear(new Date(2014, 6, 2)) - * //=> 2014 - */ - -function getYear(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var year = date.getFullYear(); - return year; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/isAfter/index.js": -/*!****************************************************!*\ - !*** ./node_modules/date-fns/esm/isAfter/index.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isAfter) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name isAfter - * @category Common Helpers - * @summary Is the first date after the second one? - * - * @description - * Is the first date after the second one? - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the date that should be after the other one to return true - * @param {Date|Number} dateToCompare - the date to compare with - * @returns {Boolean} the first date is after the second date - * @throws {TypeError} 2 arguments required - * - * @example - * // Is 10 July 1989 after 11 February 1987? - * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) - * //=> true - */ - -function isAfter(dirtyDate, dirtyDateToCompare) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var dateToCompare = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDateToCompare); - return date.getTime() > dateToCompare.getTime(); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/isBefore/index.js": -/*!*****************************************************!*\ - !*** ./node_modules/date-fns/esm/isBefore/index.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isBefore) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name isBefore - * @category Common Helpers - * @summary Is the first date before the second one? - * - * @description - * Is the first date before the second one? - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the date that should be before the other one to return true - * @param {Date|Number} dateToCompare - the date to compare with - * @returns {Boolean} the first date is before the second date - * @throws {TypeError} 2 arguments required - * - * @example - * // Is 10 July 1989 before 11 February 1987? - * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) - * //=> false - */ - -function isBefore(dirtyDate, dirtyDateToCompare) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var dateToCompare = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDateToCompare); - return date.getTime() < dateToCompare.getTime(); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/isSameDay/index.js": -/*!******************************************************!*\ - !*** ./node_modules/date-fns/esm/isSameDay/index.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isSameDay) -/* harmony export */ }); -/* harmony import */ var _startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../startOfDay/index.js */ "./node_modules/date-fns/esm/startOfDay/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name isSameDay - * @category Day Helpers - * @summary Are the given dates in the same day? - * - * @description - * Are the given dates in the same day? - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} dateLeft - the first date to check - * @param {Date|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same day - * @throws {TypeError} 2 arguments required - * - * @example - * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? - * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) - * //=> true - */ - -function isSameDay(dirtyDateLeft, dirtyDateRight) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var dateLeftStartOfDay = (0,_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDateLeft); - var dateRightStartOfDay = (0,_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDateRight); - return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime(); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/isSameMonth/index.js": -/*!********************************************************!*\ - !*** ./node_modules/date-fns/esm/isSameMonth/index.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isSameMonth) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name isSameMonth - * @category Month Helpers - * @summary Are the given dates in the same month? - * - * @description - * Are the given dates in the same month? - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} dateLeft - the first date to check - * @param {Date|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same month - * @throws {TypeError} 2 arguments required - * - * @example - * // Are 2 September 2014 and 25 September 2014 in the same month? - * var result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) - * //=> true - */ - -function isSameMonth(dirtyDateLeft, dirtyDateRight) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var dateLeft = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDateLeft); - var dateRight = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDateRight); - return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth(); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/isSameYear/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/date-fns/esm/isSameYear/index.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isSameYear) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name isSameYear - * @category Year Helpers - * @summary Are the given dates in the same year? - * - * @description - * Are the given dates in the same year? - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} dateLeft - the first date to check - * @param {Date|Number} dateRight - the second date to check - * @returns {Boolean} the dates are in the same year - * @throws {TypeError} 2 arguments required - * - * @example - * // Are 2 September 2014 and 25 September 2014 in the same year? - * var result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) - * //=> true - */ - -function isSameYear(dirtyDateLeft, dirtyDateRight) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var dateLeft = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDateLeft); - var dateRight = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDateRight); - return dateLeft.getFullYear() === dateRight.getFullYear(); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/isValid/index.js": -/*!****************************************************!*\ - !*** ./node_modules/date-fns/esm/isValid/index.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isValid) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name isValid - * @category Common Helpers - * @summary Is the given date valid? - * - * @description - * Returns false if argument is Invalid Date and true otherwise. - * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} - * Invalid Date is a Date, whose time value is NaN. - * - * Time value of Date: http://es5.github.io/#x15.9.1.1 - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * - Now `isValid` doesn't throw an exception - * if the first argument is not an instance of Date. - * Instead, argument is converted beforehand using `toDate`. - * - * Examples: - * - * | `isValid` argument | Before v2.0.0 | v2.0.0 onward | - * |---------------------------|---------------|---------------| - * | `new Date()` | `true` | `true` | - * | `new Date('2016-01-01')` | `true` | `true` | - * | `new Date('')` | `false` | `false` | - * | `new Date(1488370835081)` | `true` | `true` | - * | `new Date(NaN)` | `false` | `false` | - * | `'2016-01-01'` | `TypeError` | `false` | - * | `''` | `TypeError` | `false` | - * | `1488370835081` | `TypeError` | `true` | - * | `NaN` | `TypeError` | `false` | - * - * We introduce this change to make *date-fns* consistent with ECMAScript behavior - * that try to coerce arguments to the expected type - * (which is also the case with other *date-fns* functions). - * - * @param {*} date - the date to check - * @returns {Boolean} the date is valid - * @throws {TypeError} 1 argument required - * - * @example - * // For the valid date: - * var result = isValid(new Date(2014, 1, 31)) - * //=> true - * - * @example - * // For the value, convertable into a date: - * var result = isValid(1393804800000) - * //=> true - * - * @example - * // For the invalid date: - * var result = isValid(new Date('')) - * //=> false - */ - -function isValid(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - return !isNaN(date); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/isWithinInterval/index.js": -/*!*************************************************************!*\ - !*** ./node_modules/date-fns/esm/isWithinInterval/index.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ isWithinInterval) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - -/** - * @name isWithinInterval - * @category Interval Helpers - * @summary Is the given date within the interval? - * - * @description - * Is the given date within the interval? (Including start and end.) - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * - The function was renamed from `isWithinRange` to `isWithinInterval`. - * This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology: - * - * ``` - * 2.1.3 - * time interval - * part of the time axis limited by two instants - * ``` - * - * Also, this function now accepts an object with `start` and `end` properties - * instead of two arguments as an interval. - * This function now throws `RangeError` if the start of the interval is after its end - * or if any date in the interval is `Invalid Date`. - * - * ```javascript - * // Before v2.0.0 - * - * isWithinRange( - * new Date(2014, 0, 3), - * new Date(2014, 0, 1), new Date(2014, 0, 7) - * ) - * - * // v2.0.0 onward - * - * isWithinInterval( - * new Date(2014, 0, 3), - * { start: new Date(2014, 0, 1), end: new Date(2014, 0, 7) } - * ) - * ``` - * - * @param {Date|Number} date - the date to check - * @param {Interval} interval - the interval to check - * @returns {Boolean} the date is within the interval - * @throws {TypeError} 2 arguments required - * @throws {RangeError} The start of an interval cannot be after its end - * @throws {RangeError} Date in interval cannot be `Invalid Date` - * - * @example - * // For the date within the interval: - * isWithinInterval(new Date(2014, 0, 3), { - * start: new Date(2014, 0, 1), - * end: new Date(2014, 0, 7) - * }) - * //=> true - * - * @example - * // For the date outside of the interval: - * isWithinInterval(new Date(2014, 0, 10), { - * start: new Date(2014, 0, 1), - * end: new Date(2014, 0, 7) - * }) - * //=> false - * - * @example - * // For date equal to interval start: - * isWithinInterval(date, { start, end: date }) // => true - * - * @example - * // For date equal to interval end: - * isWithinInterval(date, { start: date, end }) // => true - */ -function isWithinInterval(dirtyDate, interval) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var time = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate).getTime(); - var startTime = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(interval.start).getTime(); - var endTime = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(interval.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` - - if (!(startTime <= endTime)) { - throw new RangeError('Invalid interval'); - } - - return time >= startTime && time <= endTime; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/lightFormat/index.js": -/*!********************************************************!*\ - !*** ./node_modules/date-fns/esm/lightFormat/index.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ lightFormat) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_format_lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_lib/format/lightFormatters/index.js */ "./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js"); -/* harmony import */ var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js"); -/* harmony import */ var _isValid_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../isValid/index.js */ "./node_modules/date-fns/esm/isValid/index.js"); -/* harmony import */ var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../subMilliseconds/index.js */ "./node_modules/date-fns/esm/subMilliseconds/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - - - // This RegExp consists of three parts separated by `|`: -// - (\w)\1* matches any sequences of the same letter -// - '' matches two quote characters in a row -// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), -// except a single quote symbol, which ends the sequence. -// Two quote characters do not end the sequence. -// If there is no matching single quote -// then the sequence will continue until the end of the string. -// - . matches any single character unmatched by previous parts of the RegExps - -var formattingTokensRegExp = /(\w)\1*|''|'(''|[^'])+('|$)|./g; -var escapedStringRegExp = /^'([^]*?)'?$/; -var doubleQuoteRegExp = /''/g; -var unescapedLatinCharacterRegExp = /[a-zA-Z]/; -/** - * @name lightFormat - * @category Common Helpers - * @summary Format the date. - * - * @description - * Return the formatted date string in the given format. Unlike `format`, - * `lightFormat` doesn't use locales and outputs date using the most popular tokens. - * - * > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. - * > See: https://git.io/fxCyr - * - * The characters wrapped between two single quotes characters (') are escaped. - * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. - * - * Format of the string is based on Unicode Technical Standard #35: - * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table - * - * Accepted patterns: - * | Unit | Pattern | Result examples | - * |---------------------------------|---------|-----------------------------------| - * | AM, PM | a..aaa | AM, PM | - * | | aaaa | a.m., p.m. | - * | | aaaaa | a, p | - * | Calendar year | y | 44, 1, 1900, 2017 | - * | | yy | 44, 01, 00, 17 | - * | | yyy | 044, 001, 000, 017 | - * | | yyyy | 0044, 0001, 1900, 2017 | - * | Month (formatting) | M | 1, 2, ..., 12 | - * | | MM | 01, 02, ..., 12 | - * | Day of month | d | 1, 2, ..., 31 | - * | | dd | 01, 02, ..., 31 | - * | Hour [1-12] | h | 1, 2, ..., 11, 12 | - * | | hh | 01, 02, ..., 11, 12 | - * | Hour [0-23] | H | 0, 1, 2, ..., 23 | - * | | HH | 00, 01, 02, ..., 23 | - * | Minute | m | 0, 1, ..., 59 | - * | | mm | 00, 01, ..., 59 | - * | Second | s | 0, 1, ..., 59 | - * | | ss | 00, 01, ..., 59 | - * | Fraction of second | S | 0, 1, ..., 9 | - * | | SS | 00, 01, ..., 99 | - * | | SSS | 000, 0001, ..., 999 | - * | | SSSS | ... | - * - * @param {Date|Number} date - the original date - * @param {String} format - the string of tokens - * @returns {String} the formatted date string - * @throws {TypeError} 2 arguments required - * @throws {RangeError} format string contains an unescaped latin alphabet character - * - * @example - * const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') - * //=> '2014-02-11' - */ - -function lightFormat(dirtyDate, formatStr) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var originalDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - - if (!(0,_isValid_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(originalDate)) { - throw new RangeError('Invalid time value'); - } // Convert the date in system timezone to the same date in UTC+00:00 timezone. - // This ensures that when UTC functions will be implemented, locales will be compatible with them. - // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 - - - var timezoneOffset = (0,_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(originalDate); - var utcDate = (0,_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_4__.default)(originalDate, timezoneOffset); - var tokens = formatStr.match(formattingTokensRegExp); // The only case when formattingTokensRegExp doesn't match the string is when it's empty - - if (!tokens) return ''; - var result = tokens.map(function (substring) { - // Replace two single quote characters with one single quote character - if (substring === "''") { - return "'"; - } - - var firstCharacter = substring[0]; - - if (firstCharacter === "'") { - return cleanEscapedString(substring); - } - - var formatter = _lib_format_lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_5__.default[firstCharacter]; - - if (formatter) { - return formatter(utcDate, substring); - } - - if (firstCharacter.match(unescapedLatinCharacterRegExp)) { - throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); - } - - return substring; - }).join(''); - return result; -} - -function cleanEscapedString(input) { - var matches = input.match(escapedStringRegExp); - - if (!matches) { - return input; - } - - return matches[1].replace(doubleQuoteRegExp, "'"); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js": -/*!**************************************************************************!*\ - !*** ./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ buildFormatLongFn) -/* harmony export */ }); -function buildFormatLongFn(args) { - return function (dirtyOptions) { - var options = dirtyOptions || {}; - var width = options.width ? String(options.width) : args.defaultWidth; - var format = args.formats[width] || args.formats[args.defaultWidth]; - return format; - }; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js": -/*!************************************************************************!*\ - !*** ./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ buildLocalizeFn) -/* harmony export */ }); -function buildLocalizeFn(args) { - return function (dirtyIndex, dirtyOptions) { - var options = dirtyOptions || {}; - var context = options.context ? String(options.context) : 'standalone'; - var valuesArray; - - if (context === 'formatting' && args.formattingValues) { - var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; - var width = options.width ? String(options.width) : defaultWidth; - valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; - } else { - var _defaultWidth = args.defaultWidth; - - var _width = options.width ? String(options.width) : args.defaultWidth; - - valuesArray = args.values[_width] || args.values[_defaultWidth]; - } - - var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; - return valuesArray[index]; - }; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js": -/*!*********************************************************************!*\ - !*** ./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ buildMatchFn) -/* harmony export */ }); -function buildMatchFn(args) { - return function (dirtyString, dirtyOptions) { - var string = String(dirtyString); - var options = dirtyOptions || {}; - var width = options.width; - var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; - var matchResult = string.match(matchPattern); - - if (!matchResult) { - return null; - } - - var matchedString = matchResult[0]; - var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; - var value; - - if (Object.prototype.toString.call(parsePatterns) === '[object Array]') { - value = findIndex(parsePatterns, function (pattern) { - return pattern.test(matchedString); - }); - } else { - value = findKey(parsePatterns, function (pattern) { - return pattern.test(matchedString); - }); - } - - value = args.valueCallback ? args.valueCallback(value) : value; - value = options.valueCallback ? options.valueCallback(value) : value; - return { - value: value, - rest: string.slice(matchedString.length) - }; - }; -} - -function findKey(object, predicate) { - for (var key in object) { - if (object.hasOwnProperty(key) && predicate(object[key])) { - return key; - } - } -} - -function findIndex(array, predicate) { - for (var key = 0; key < array.length; key++) { - if (predicate(array[key])) { - return key; - } - } -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js": -/*!****************************************************************************!*\ - !*** ./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ buildMatchPatternFn) -/* harmony export */ }); -function buildMatchPatternFn(args) { - return function (dirtyString, dirtyOptions) { - var string = String(dirtyString); - var options = dirtyOptions || {}; - var matchResult = string.match(args.matchPattern); - - if (!matchResult) { - return null; - } - - var matchedString = matchResult[0]; - var parseResult = string.match(args.parsePattern); - - if (!parseResult) { - return null; - } - - var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; - value = options.valueCallback ? options.valueCallback(value) : value; - return { - value: value, - rest: string.slice(matchedString.length) - }; - }; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ formatDistance) -/* harmony export */ }); -var formatDistanceLocale = { - lessThanXSeconds: { - one: 'less than a second', - other: 'less than {{count}} seconds' - }, - xSeconds: { - one: '1 second', - other: '{{count}} seconds' - }, - halfAMinute: 'half a minute', - lessThanXMinutes: { - one: 'less than a minute', - other: 'less than {{count}} minutes' - }, - xMinutes: { - one: '1 minute', - other: '{{count}} minutes' - }, - aboutXHours: { - one: 'about 1 hour', - other: 'about {{count}} hours' - }, - xHours: { - one: '1 hour', - other: '{{count}} hours' - }, - xDays: { - one: '1 day', - other: '{{count}} days' - }, - aboutXWeeks: { - one: 'about 1 week', - other: 'about {{count}} weeks' - }, - xWeeks: { - one: '1 week', - other: '{{count}} weeks' - }, - aboutXMonths: { - one: 'about 1 month', - other: 'about {{count}} months' - }, - xMonths: { - one: '1 month', - other: '{{count}} months' - }, - aboutXYears: { - one: 'about 1 year', - other: 'about {{count}} years' - }, - xYears: { - one: '1 year', - other: '{{count}} years' - }, - overXYears: { - one: 'over 1 year', - other: 'over {{count}} years' - }, - almostXYears: { - one: 'almost 1 year', - other: 'almost {{count}} years' - } -}; -function formatDistance(token, count, options) { - options = options || {}; - var result; - - if (typeof formatDistanceLocale[token] === 'string') { - result = formatDistanceLocale[token]; - } else if (count === 1) { - result = formatDistanceLocale[token].one; - } else { - result = formatDistanceLocale[token].other.replace('{{count}}', count); - } - - if (options.addSuffix) { - if (options.comparison > 0) { - return 'in ' + result; - } else { - return result + ' ago'; - } - } - - return result; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js": -/*!*************************************************************************!*\ - !*** ./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/buildFormatLongFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js"); - -var dateFormats = { - full: 'EEEE, MMMM do, y', - long: 'MMMM do, y', - medium: 'MMM d, y', - short: 'MM/dd/yyyy' -}; -var timeFormats = { - full: 'h:mm:ss a zzzz', - long: 'h:mm:ss a z', - medium: 'h:mm:ss a', - short: 'h:mm a' -}; -var dateTimeFormats = { - full: "{{date}} 'at' {{time}}", - long: "{{date}} 'at' {{time}}", - medium: '{{date}}, {{time}}', - short: '{{date}}, {{time}}' -}; -var formatLong = { - date: (0,_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__.default)({ - formats: dateFormats, - defaultWidth: 'full' - }), - time: (0,_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__.default)({ - formats: timeFormats, - defaultWidth: 'full' - }), - dateTime: (0,_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__.default)({ - formats: dateTimeFormats, - defaultWidth: 'full' - }) -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (formatLong); - -/***/ }), - -/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ formatRelative) -/* harmony export */ }); -var formatRelativeLocale = { - lastWeek: "'last' eeee 'at' p", - yesterday: "'yesterday at' p", - today: "'today at' p", - tomorrow: "'tomorrow at' p", - nextWeek: "eeee 'at' p", - other: 'P' -}; -function formatRelative(token, _date, _baseDate, _options) { - return formatRelativeLocale[token]; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js": -/*!***********************************************************************!*\ - !*** ./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/buildLocalizeFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js"); - -var eraValues = { - narrow: ['B', 'A'], - abbreviated: ['BC', 'AD'], - wide: ['Before Christ', 'Anno Domini'] -}; -var quarterValues = { - narrow: ['1', '2', '3', '4'], - abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], - wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] // Note: in English, the names of days of the week and months are capitalized. - // If you are making a new locale based on this one, check if the same is true for the language you're working on. - // Generally, formatted dates should look like they are in the middle of a sentence, - // e.g. in Spanish language the weekdays and months should be in the lowercase. - -}; -var monthValues = { - narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], - abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] -}; -var dayValues = { - narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], - short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], - abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] -}; -var dayPeriodValues = { - narrow: { - am: 'a', - pm: 'p', - midnight: 'mi', - noon: 'n', - morning: 'morning', - afternoon: 'afternoon', - evening: 'evening', - night: 'night' - }, - abbreviated: { - am: 'AM', - pm: 'PM', - midnight: 'midnight', - noon: 'noon', - morning: 'morning', - afternoon: 'afternoon', - evening: 'evening', - night: 'night' - }, - wide: { - am: 'a.m.', - pm: 'p.m.', - midnight: 'midnight', - noon: 'noon', - morning: 'morning', - afternoon: 'afternoon', - evening: 'evening', - night: 'night' - } -}; -var formattingDayPeriodValues = { - narrow: { - am: 'a', - pm: 'p', - midnight: 'mi', - noon: 'n', - morning: 'in the morning', - afternoon: 'in the afternoon', - evening: 'in the evening', - night: 'at night' - }, - abbreviated: { - am: 'AM', - pm: 'PM', - midnight: 'midnight', - noon: 'noon', - morning: 'in the morning', - afternoon: 'in the afternoon', - evening: 'in the evening', - night: 'at night' - }, - wide: { - am: 'a.m.', - pm: 'p.m.', - midnight: 'midnight', - noon: 'noon', - morning: 'in the morning', - afternoon: 'in the afternoon', - evening: 'in the evening', - night: 'at night' - } -}; - -function ordinalNumber(dirtyNumber, _dirtyOptions) { - var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, - // if they are different for different grammatical genders, - // use `options.unit`: - // - // var options = dirtyOptions || {} - // var unit = String(options.unit) - // - // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', - // 'day', 'hour', 'minute', 'second' - - var rem100 = number % 100; - - if (rem100 > 20 || rem100 < 10) { - switch (rem100 % 10) { - case 1: - return number + 'st'; - - case 2: - return number + 'nd'; - - case 3: - return number + 'rd'; - } - } - - return number + 'th'; -} - -var localize = { - ordinalNumber: ordinalNumber, - era: (0,_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__.default)({ - values: eraValues, - defaultWidth: 'wide' - }), - quarter: (0,_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__.default)({ - values: quarterValues, - defaultWidth: 'wide', - argumentCallback: function (quarter) { - return Number(quarter) - 1; - } - }), - month: (0,_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__.default)({ - values: monthValues, - defaultWidth: 'wide' - }), - day: (0,_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__.default)({ - values: dayValues, - defaultWidth: 'wide' - }), - dayPeriod: (0,_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__.default)({ - values: dayPeriodValues, - defaultWidth: 'wide', - formattingValues: formattingDayPeriodValues, - defaultFormattingWidth: 'wide' - }) -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (localize); - -/***/ }), - -/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js": -/*!********************************************************************!*\ - !*** ./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lib_buildMatchPatternFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/buildMatchPatternFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js"); -/* harmony import */ var _lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_lib/buildMatchFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js"); - - -var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; -var parseOrdinalNumberPattern = /\d+/i; -var matchEraPatterns = { - narrow: /^(b|a)/i, - abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, - wide: /^(before christ|before common era|anno domini|common era)/i -}; -var parseEraPatterns = { - any: [/^b/i, /^(a|c)/i] -}; -var matchQuarterPatterns = { - narrow: /^[1234]/i, - abbreviated: /^q[1234]/i, - wide: /^[1234](th|st|nd|rd)? quarter/i -}; -var parseQuarterPatterns = { - any: [/1/i, /2/i, /3/i, /4/i] -}; -var matchMonthPatterns = { - narrow: /^[jfmasond]/i, - abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, - wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i -}; -var parseMonthPatterns = { - narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], - any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] -}; -var matchDayPatterns = { - narrow: /^[smtwf]/i, - short: /^(su|mo|tu|we|th|fr|sa)/i, - abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, - wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i -}; -var parseDayPatterns = { - narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], - any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] -}; -var matchDayPeriodPatterns = { - narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, - any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i -}; -var parseDayPeriodPatterns = { - any: { - am: /^a/i, - pm: /^p/i, - midnight: /^mi/i, - noon: /^no/i, - morning: /morning/i, - afternoon: /afternoon/i, - evening: /evening/i, - night: /night/i - } -}; -var match = { - ordinalNumber: (0,_lib_buildMatchPatternFn_index_js__WEBPACK_IMPORTED_MODULE_0__.default)({ - matchPattern: matchOrdinalNumberPattern, - parsePattern: parseOrdinalNumberPattern, - valueCallback: function (value) { - return parseInt(value, 10); - } - }), - era: (0,_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__.default)({ - matchPatterns: matchEraPatterns, - defaultMatchWidth: 'wide', - parsePatterns: parseEraPatterns, - defaultParseWidth: 'any' - }), - quarter: (0,_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__.default)({ - matchPatterns: matchQuarterPatterns, - defaultMatchWidth: 'wide', - parsePatterns: parseQuarterPatterns, - defaultParseWidth: 'any', - valueCallback: function (index) { - return index + 1; - } - }), - month: (0,_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__.default)({ - matchPatterns: matchMonthPatterns, - defaultMatchWidth: 'wide', - parsePatterns: parseMonthPatterns, - defaultParseWidth: 'any' - }), - day: (0,_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__.default)({ - matchPatterns: matchDayPatterns, - defaultMatchWidth: 'wide', - parsePatterns: parseDayPatterns, - defaultParseWidth: 'any' - }), - dayPeriod: (0,_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__.default)({ - matchPatterns: matchDayPeriodPatterns, - defaultMatchWidth: 'any', - parsePatterns: parseDayPeriodPatterns, - defaultParseWidth: 'any' - }) -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (match); - -/***/ }), - -/***/ "./node_modules/date-fns/esm/locale/en-US/index.js": -/*!*********************************************************!*\ - !*** ./node_modules/date-fns/esm/locale/en-US/index.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lib_formatDistance_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_lib/formatDistance/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js"); -/* harmony import */ var _lib_formatLong_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_lib/formatLong/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js"); -/* harmony import */ var _lib_formatRelative_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_lib/formatRelative/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js"); -/* harmony import */ var _lib_localize_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./_lib/localize/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js"); -/* harmony import */ var _lib_match_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./_lib/match/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js"); - - - - - -/** - * @type {Locale} - * @category Locales - * @summary English locale (United States). - * @language English - * @iso-639-2 eng - * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} - * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} - */ - -var locale = { - code: 'en-US', - formatDistance: _lib_formatDistance_index_js__WEBPACK_IMPORTED_MODULE_0__.default, - formatLong: _lib_formatLong_index_js__WEBPACK_IMPORTED_MODULE_1__.default, - formatRelative: _lib_formatRelative_index_js__WEBPACK_IMPORTED_MODULE_2__.default, - localize: _lib_localize_index_js__WEBPACK_IMPORTED_MODULE_3__.default, - match: _lib_match_index_js__WEBPACK_IMPORTED_MODULE_4__.default, - options: { - weekStartsOn: 0 - /* Sunday */ - , - firstWeekContainsDate: 1 - } -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (locale); - -/***/ }), - -/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/index.js": -/*!***************************************************************!*\ - !*** ./node_modules/date-fns/esm/parse/_lib/parsers/index.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/getUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js"); -/* harmony import */ var _lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../_lib/setUTCDay/index.js */ "./node_modules/date-fns/esm/_lib/setUTCDay/index.js"); -/* harmony import */ var _lib_setUTCISODay_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_lib/setUTCISODay/index.js */ "./node_modules/date-fns/esm/_lib/setUTCISODay/index.js"); -/* harmony import */ var _lib_setUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_lib/setUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js"); -/* harmony import */ var _lib_setUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_lib/setUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/setUTCWeek/index.js"); -/* harmony import */ var _lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); -/* harmony import */ var _lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_lib/startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); - - - - - - - -var MILLISECONDS_IN_HOUR = 3600000; -var MILLISECONDS_IN_MINUTE = 60000; -var MILLISECONDS_IN_SECOND = 1000; -var numericPatterns = { - month: /^(1[0-2]|0?\d)/, - // 0 to 12 - date: /^(3[0-1]|[0-2]?\d)/, - // 0 to 31 - dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, - // 0 to 366 - week: /^(5[0-3]|[0-4]?\d)/, - // 0 to 53 - hour23h: /^(2[0-3]|[0-1]?\d)/, - // 0 to 23 - hour24h: /^(2[0-4]|[0-1]?\d)/, - // 0 to 24 - hour11h: /^(1[0-1]|0?\d)/, - // 0 to 11 - hour12h: /^(1[0-2]|0?\d)/, - // 0 to 12 - minute: /^[0-5]?\d/, - // 0 to 59 - second: /^[0-5]?\d/, - // 0 to 59 - singleDigit: /^\d/, - // 0 to 9 - twoDigits: /^\d{1,2}/, - // 0 to 99 - threeDigits: /^\d{1,3}/, - // 0 to 999 - fourDigits: /^\d{1,4}/, - // 0 to 9999 - anyDigitsSigned: /^-?\d+/, - singleDigitSigned: /^-?\d/, - // 0 to 9, -0 to -9 - twoDigitsSigned: /^-?\d{1,2}/, - // 0 to 99, -0 to -99 - threeDigitsSigned: /^-?\d{1,3}/, - // 0 to 999, -0 to -999 - fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999 - -}; -var timezonePatterns = { - basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, - basic: /^([+-])(\d{2})(\d{2})|Z/, - basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, - extended: /^([+-])(\d{2}):(\d{2})|Z/, - extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ -}; - -function parseNumericPattern(pattern, string, valueCallback) { - var matchResult = string.match(pattern); - - if (!matchResult) { - return null; - } - - var value = parseInt(matchResult[0], 10); - return { - value: valueCallback ? valueCallback(value) : value, - rest: string.slice(matchResult[0].length) - }; -} - -function parseTimezonePattern(pattern, string) { - var matchResult = string.match(pattern); - - if (!matchResult) { - return null; - } // Input is 'Z' - - - if (matchResult[0] === 'Z') { - return { - value: 0, - rest: string.slice(1) - }; - } - - var sign = matchResult[1] === '+' ? 1 : -1; - var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0; - var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0; - var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0; - return { - value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND), - rest: string.slice(matchResult[0].length) - }; -} - -function parseAnyDigitsSigned(string, valueCallback) { - return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback); -} - -function parseNDigits(n, string, valueCallback) { - switch (n) { - case 1: - return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback); - - case 2: - return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback); - - case 3: - return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback); - - case 4: - return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback); - - default: - return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback); - } -} - -function parseNDigitsSigned(n, string, valueCallback) { - switch (n) { - case 1: - return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback); - - case 2: - return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback); - - case 3: - return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback); - - case 4: - return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback); - - default: - return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback); - } -} - -function dayPeriodEnumToHours(enumValue) { - switch (enumValue) { - case 'morning': - return 4; - - case 'evening': - return 17; - - case 'pm': - case 'noon': - case 'afternoon': - return 12; - - case 'am': - case 'midnight': - case 'night': - default: - return 0; - } -} - -function normalizeTwoDigitYear(twoDigitYear, currentYear) { - var isCommonEra = currentYear > 0; // Absolute number of the current year: - // 1 -> 1 AC - // 0 -> 1 BC - // -1 -> 2 BC - - var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear; - var result; - - if (absCurrentYear <= 50) { - result = twoDigitYear || 100; - } else { - var rangeEnd = absCurrentYear + 50; - var rangeEndCentury = Math.floor(rangeEnd / 100) * 100; - var isPreviousCentury = twoDigitYear >= rangeEnd % 100; - result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0); - } - - return isCommonEra ? result : 1 - result; -} - -var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation - -function isLeapYearIndex(year) { - return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; -} -/* - * | | Unit | | Unit | - * |-----|--------------------------------|-----|--------------------------------| - * | a | AM, PM | A* | Milliseconds in day | - * | b | AM, PM, noon, midnight | B | Flexible day period | - * | c | Stand-alone local day of week | C* | Localized hour w/ day period | - * | d | Day of month | D | Day of year | - * | e | Local day of week | E | Day of week | - * | f | | F* | Day of week in month | - * | g* | Modified Julian day | G | Era | - * | h | Hour [1-12] | H | Hour [0-23] | - * | i! | ISO day of week | I! | ISO week of year | - * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | - * | k | Hour [1-24] | K | Hour [0-11] | - * | l* | (deprecated) | L | Stand-alone month | - * | m | Minute | M | Month | - * | n | | N | | - * | o! | Ordinal number modifier | O* | Timezone (GMT) | - * | p | | P | | - * | q | Stand-alone quarter | Q | Quarter | - * | r* | Related Gregorian year | R! | ISO week-numbering year | - * | s | Second | S | Fraction of second | - * | t! | Seconds timestamp | T! | Milliseconds timestamp | - * | u | Extended year | U* | Cyclic year | - * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | - * | w | Local week of year | W* | Week of month | - * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | - * | y | Year (abs) | Y | Local week-numbering year | - * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) | - * - * Letters marked by * are not implemented but reserved by Unicode standard. - * - * Letters marked by ! are non-standard, but implemented by date-fns: - * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs) - * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, - * i.e. 7 for Sunday, 1 for Monday, etc. - * - `I` is ISO week of year, as opposed to `w` which is local week of year. - * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. - * `R` is supposed to be used in conjunction with `I` and `i` - * for universal ISO week-numbering date, whereas - * `Y` is supposed to be used in conjunction with `w` and `e` - * for week-numbering date specific to the locale. - */ - - -var parsers = { - // Era - G: { - priority: 140, - parse: function (string, token, match, _options) { - switch (token) { - // AD, BC - case 'G': - case 'GG': - case 'GGG': - return match.era(string, { - width: 'abbreviated' - }) || match.era(string, { - width: 'narrow' - }); - // A, B - - case 'GGGGG': - return match.era(string, { - width: 'narrow' - }); - // Anno Domini, Before Christ - - case 'GGGG': - default: - return match.era(string, { - width: 'wide' - }) || match.era(string, { - width: 'abbreviated' - }) || match.era(string, { - width: 'narrow' - }); - } - }, - set: function (date, flags, value, _options) { - flags.era = value; - date.setUTCFullYear(value, 0, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['R', 'u', 't', 'T'] - }, - // Year - y: { - // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns - // | Year | y | yy | yyy | yyyy | yyyyy | - // |----------|-------|----|-------|-------|-------| - // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | - // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | - // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | - // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | - // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | - priority: 130, - parse: function (string, token, match, _options) { - var valueCallback = function (year) { - return { - year: year, - isTwoDigitYear: token === 'yy' - }; - }; - - switch (token) { - case 'y': - return parseNDigits(4, string, valueCallback); - - case 'yo': - return match.ordinalNumber(string, { - unit: 'year', - valueCallback: valueCallback - }); - - default: - return parseNDigits(token.length, string, valueCallback); - } - }, - validate: function (_date, value, _options) { - return value.isTwoDigitYear || value.year > 0; - }, - set: function (date, flags, value, _options) { - var currentYear = date.getUTCFullYear(); - - if (value.isTwoDigitYear) { - var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear); - date.setUTCFullYear(normalizedTwoDigitYear, 0, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - } - - var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; - date.setUTCFullYear(year, 0, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T'] - }, - // Local week-numbering year - Y: { - priority: 130, - parse: function (string, token, match, _options) { - var valueCallback = function (year) { - return { - year: year, - isTwoDigitYear: token === 'YY' - }; - }; - - switch (token) { - case 'Y': - return parseNDigits(4, string, valueCallback); - - case 'Yo': - return match.ordinalNumber(string, { - unit: 'year', - valueCallback: valueCallback - }); - - default: - return parseNDigits(token.length, string, valueCallback); - } - }, - validate: function (_date, value, _options) { - return value.isTwoDigitYear || value.year > 0; - }, - set: function (date, flags, value, options) { - var currentYear = (0,_lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(date, options); - - if (value.isTwoDigitYear) { - var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear); - date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate); - date.setUTCHours(0, 0, 0, 0); - return (0,_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(date, options); - } - - var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; - date.setUTCFullYear(year, 0, options.firstWeekContainsDate); - date.setUTCHours(0, 0, 0, 0); - return (0,_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(date, options); - }, - incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T'] - }, - // ISO week-numbering year - R: { - priority: 130, - parse: function (string, token, _match, _options) { - if (token === 'R') { - return parseNDigitsSigned(4, string); - } - - return parseNDigitsSigned(token.length, string); - }, - set: function (_date, _flags, value, _options) { - var firstWeekOfYear = new Date(0); - firstWeekOfYear.setUTCFullYear(value, 0, 4); - firstWeekOfYear.setUTCHours(0, 0, 0, 0); - return (0,_lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(firstWeekOfYear); - }, - incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T'] - }, - // Extended year - u: { - priority: 130, - parse: function (string, token, _match, _options) { - if (token === 'u') { - return parseNDigitsSigned(4, string); - } - - return parseNDigitsSigned(token.length, string); - }, - set: function (date, _flags, value, _options) { - date.setUTCFullYear(value, 0, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T'] - }, - // Quarter - Q: { - priority: 120, - parse: function (string, token, match, _options) { - switch (token) { - // 1, 2, 3, 4 - case 'Q': - case 'QQ': - // 01, 02, 03, 04 - return parseNDigits(token.length, string); - // 1st, 2nd, 3rd, 4th - - case 'Qo': - return match.ordinalNumber(string, { - unit: 'quarter' - }); - // Q1, Q2, Q3, Q4 - - case 'QQQ': - return match.quarter(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.quarter(string, { - width: 'narrow', - context: 'formatting' - }); - // 1, 2, 3, 4 (narrow quarter; could be not numerical) - - case 'QQQQQ': - return match.quarter(string, { - width: 'narrow', - context: 'formatting' - }); - // 1st quarter, 2nd quarter, ... - - case 'QQQQ': - default: - return match.quarter(string, { - width: 'wide', - context: 'formatting' - }) || match.quarter(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.quarter(string, { - width: 'narrow', - context: 'formatting' - }); - } - }, - validate: function (_date, value, _options) { - return value >= 1 && value <= 4; - }, - set: function (date, _flags, value, _options) { - date.setUTCMonth((value - 1) * 3, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T'] - }, - // Stand-alone quarter - q: { - priority: 120, - parse: function (string, token, match, _options) { - switch (token) { - // 1, 2, 3, 4 - case 'q': - case 'qq': - // 01, 02, 03, 04 - return parseNDigits(token.length, string); - // 1st, 2nd, 3rd, 4th - - case 'qo': - return match.ordinalNumber(string, { - unit: 'quarter' - }); - // Q1, Q2, Q3, Q4 - - case 'qqq': - return match.quarter(string, { - width: 'abbreviated', - context: 'standalone' - }) || match.quarter(string, { - width: 'narrow', - context: 'standalone' - }); - // 1, 2, 3, 4 (narrow quarter; could be not numerical) - - case 'qqqqq': - return match.quarter(string, { - width: 'narrow', - context: 'standalone' - }); - // 1st quarter, 2nd quarter, ... - - case 'qqqq': - default: - return match.quarter(string, { - width: 'wide', - context: 'standalone' - }) || match.quarter(string, { - width: 'abbreviated', - context: 'standalone' - }) || match.quarter(string, { - width: 'narrow', - context: 'standalone' - }); - } - }, - validate: function (_date, value, _options) { - return value >= 1 && value <= 4; - }, - set: function (date, _flags, value, _options) { - date.setUTCMonth((value - 1) * 3, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T'] - }, - // Month - M: { - priority: 110, - parse: function (string, token, match, _options) { - var valueCallback = function (value) { - return value - 1; - }; - - switch (token) { - // 1, 2, ..., 12 - case 'M': - return parseNumericPattern(numericPatterns.month, string, valueCallback); - // 01, 02, ..., 12 - - case 'MM': - return parseNDigits(2, string, valueCallback); - // 1st, 2nd, ..., 12th - - case 'Mo': - return match.ordinalNumber(string, { - unit: 'month', - valueCallback: valueCallback - }); - // Jan, Feb, ..., Dec - - case 'MMM': - return match.month(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.month(string, { - width: 'narrow', - context: 'formatting' - }); - // J, F, ..., D - - case 'MMMMM': - return match.month(string, { - width: 'narrow', - context: 'formatting' - }); - // January, February, ..., December - - case 'MMMM': - default: - return match.month(string, { - width: 'wide', - context: 'formatting' - }) || match.month(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.month(string, { - width: 'narrow', - context: 'formatting' - }); - } - }, - validate: function (_date, value, _options) { - return value >= 0 && value <= 11; - }, - set: function (date, _flags, value, _options) { - date.setUTCMonth(value, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] - }, - // Stand-alone month - L: { - priority: 110, - parse: function (string, token, match, _options) { - var valueCallback = function (value) { - return value - 1; - }; - - switch (token) { - // 1, 2, ..., 12 - case 'L': - return parseNumericPattern(numericPatterns.month, string, valueCallback); - // 01, 02, ..., 12 - - case 'LL': - return parseNDigits(2, string, valueCallback); - // 1st, 2nd, ..., 12th - - case 'Lo': - return match.ordinalNumber(string, { - unit: 'month', - valueCallback: valueCallback - }); - // Jan, Feb, ..., Dec - - case 'LLL': - return match.month(string, { - width: 'abbreviated', - context: 'standalone' - }) || match.month(string, { - width: 'narrow', - context: 'standalone' - }); - // J, F, ..., D - - case 'LLLLL': - return match.month(string, { - width: 'narrow', - context: 'standalone' - }); - // January, February, ..., December - - case 'LLLL': - default: - return match.month(string, { - width: 'wide', - context: 'standalone' - }) || match.month(string, { - width: 'abbreviated', - context: 'standalone' - }) || match.month(string, { - width: 'narrow', - context: 'standalone' - }); - } - }, - validate: function (_date, value, _options) { - return value >= 0 && value <= 11; - }, - set: function (date, _flags, value, _options) { - date.setUTCMonth(value, 1); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] - }, - // Local week of year - w: { - priority: 100, - parse: function (string, token, match, _options) { - switch (token) { - case 'w': - return parseNumericPattern(numericPatterns.week, string); - - case 'wo': - return match.ordinalNumber(string, { - unit: 'week' - }); - - default: - return parseNDigits(token.length, string); - } - }, - validate: function (_date, value, _options) { - return value >= 1 && value <= 53; - }, - set: function (date, _flags, value, options) { - return (0,_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_1__.default)((0,_lib_setUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(date, value, options), options); - }, - incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T'] - }, - // ISO week of year - I: { - priority: 100, - parse: function (string, token, match, _options) { - switch (token) { - case 'I': - return parseNumericPattern(numericPatterns.week, string); - - case 'Io': - return match.ordinalNumber(string, { - unit: 'week' - }); - - default: - return parseNDigits(token.length, string); - } - }, - validate: function (_date, value, _options) { - return value >= 1 && value <= 53; - }, - set: function (date, _flags, value, options) { - return (0,_lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__.default)((0,_lib_setUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_4__.default)(date, value, options), options); - }, - incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T'] - }, - // Day of the month - d: { - priority: 90, - subPriority: 1, - parse: function (string, token, match, _options) { - switch (token) { - case 'd': - return parseNumericPattern(numericPatterns.date, string); - - case 'do': - return match.ordinalNumber(string, { - unit: 'date' - }); - - default: - return parseNDigits(token.length, string); - } - }, - validate: function (date, value, _options) { - var year = date.getUTCFullYear(); - var isLeapYear = isLeapYearIndex(year); - var month = date.getUTCMonth(); - - if (isLeapYear) { - return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month]; - } else { - return value >= 1 && value <= DAYS_IN_MONTH[month]; - } - }, - set: function (date, _flags, value, _options) { - date.setUTCDate(value); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] - }, - // Day of year - D: { - priority: 90, - subPriority: 1, - parse: function (string, token, match, _options) { - switch (token) { - case 'D': - case 'DD': - return parseNumericPattern(numericPatterns.dayOfYear, string); - - case 'Do': - return match.ordinalNumber(string, { - unit: 'date' - }); - - default: - return parseNDigits(token.length, string); - } - }, - validate: function (date, value, _options) { - var year = date.getUTCFullYear(); - var isLeapYear = isLeapYearIndex(year); - - if (isLeapYear) { - return value >= 1 && value <= 366; - } else { - return value >= 1 && value <= 365; - } - }, - set: function (date, _flags, value, _options) { - date.setUTCMonth(0, value); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T'] - }, - // Day of week - E: { - priority: 90, - parse: function (string, token, match, _options) { - switch (token) { - // Tue - case 'E': - case 'EE': - case 'EEE': - return match.day(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.day(string, { - width: 'short', - context: 'formatting' - }) || match.day(string, { - width: 'narrow', - context: 'formatting' - }); - // T - - case 'EEEEE': - return match.day(string, { - width: 'narrow', - context: 'formatting' - }); - // Tu - - case 'EEEEEE': - return match.day(string, { - width: 'short', - context: 'formatting' - }) || match.day(string, { - width: 'narrow', - context: 'formatting' - }); - // Tuesday - - case 'EEEE': - default: - return match.day(string, { - width: 'wide', - context: 'formatting' - }) || match.day(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.day(string, { - width: 'short', - context: 'formatting' - }) || match.day(string, { - width: 'narrow', - context: 'formatting' - }); - } - }, - validate: function (_date, value, _options) { - return value >= 0 && value <= 6; - }, - set: function (date, _flags, value, options) { - date = (0,_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_5__.default)(date, value, options); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T'] - }, - // Local day of week - e: { - priority: 90, - parse: function (string, token, match, options) { - var valueCallback = function (value) { - var wholeWeekDays = Math.floor((value - 1) / 7) * 7; - return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; - }; - - switch (token) { - // 3 - case 'e': - case 'ee': - // 03 - return parseNDigits(token.length, string, valueCallback); - // 3rd - - case 'eo': - return match.ordinalNumber(string, { - unit: 'day', - valueCallback: valueCallback - }); - // Tue - - case 'eee': - return match.day(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.day(string, { - width: 'short', - context: 'formatting' - }) || match.day(string, { - width: 'narrow', - context: 'formatting' - }); - // T - - case 'eeeee': - return match.day(string, { - width: 'narrow', - context: 'formatting' - }); - // Tu - - case 'eeeeee': - return match.day(string, { - width: 'short', - context: 'formatting' - }) || match.day(string, { - width: 'narrow', - context: 'formatting' - }); - // Tuesday - - case 'eeee': - default: - return match.day(string, { - width: 'wide', - context: 'formatting' - }) || match.day(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.day(string, { - width: 'short', - context: 'formatting' - }) || match.day(string, { - width: 'narrow', - context: 'formatting' - }); - } - }, - validate: function (_date, value, _options) { - return value >= 0 && value <= 6; - }, - set: function (date, _flags, value, options) { - date = (0,_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_5__.default)(date, value, options); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T'] - }, - // Stand-alone local day of week - c: { - priority: 90, - parse: function (string, token, match, options) { - var valueCallback = function (value) { - var wholeWeekDays = Math.floor((value - 1) / 7) * 7; - return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; - }; - - switch (token) { - // 3 - case 'c': - case 'cc': - // 03 - return parseNDigits(token.length, string, valueCallback); - // 3rd - - case 'co': - return match.ordinalNumber(string, { - unit: 'day', - valueCallback: valueCallback - }); - // Tue - - case 'ccc': - return match.day(string, { - width: 'abbreviated', - context: 'standalone' - }) || match.day(string, { - width: 'short', - context: 'standalone' - }) || match.day(string, { - width: 'narrow', - context: 'standalone' - }); - // T - - case 'ccccc': - return match.day(string, { - width: 'narrow', - context: 'standalone' - }); - // Tu - - case 'cccccc': - return match.day(string, { - width: 'short', - context: 'standalone' - }) || match.day(string, { - width: 'narrow', - context: 'standalone' - }); - // Tuesday - - case 'cccc': - default: - return match.day(string, { - width: 'wide', - context: 'standalone' - }) || match.day(string, { - width: 'abbreviated', - context: 'standalone' - }) || match.day(string, { - width: 'short', - context: 'standalone' - }) || match.day(string, { - width: 'narrow', - context: 'standalone' - }); - } - }, - validate: function (_date, value, _options) { - return value >= 0 && value <= 6; - }, - set: function (date, _flags, value, options) { - date = (0,_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_5__.default)(date, value, options); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T'] - }, - // ISO day of week - i: { - priority: 90, - parse: function (string, token, match, _options) { - var valueCallback = function (value) { - if (value === 0) { - return 7; - } - - return value; - }; - - switch (token) { - // 2 - case 'i': - case 'ii': - // 02 - return parseNDigits(token.length, string); - // 2nd - - case 'io': - return match.ordinalNumber(string, { - unit: 'day' - }); - // Tue - - case 'iii': - return match.day(string, { - width: 'abbreviated', - context: 'formatting', - valueCallback: valueCallback - }) || match.day(string, { - width: 'short', - context: 'formatting', - valueCallback: valueCallback - }) || match.day(string, { - width: 'narrow', - context: 'formatting', - valueCallback: valueCallback - }); - // T - - case 'iiiii': - return match.day(string, { - width: 'narrow', - context: 'formatting', - valueCallback: valueCallback - }); - // Tu - - case 'iiiiii': - return match.day(string, { - width: 'short', - context: 'formatting', - valueCallback: valueCallback - }) || match.day(string, { - width: 'narrow', - context: 'formatting', - valueCallback: valueCallback - }); - // Tuesday - - case 'iiii': - default: - return match.day(string, { - width: 'wide', - context: 'formatting', - valueCallback: valueCallback - }) || match.day(string, { - width: 'abbreviated', - context: 'formatting', - valueCallback: valueCallback - }) || match.day(string, { - width: 'short', - context: 'formatting', - valueCallback: valueCallback - }) || match.day(string, { - width: 'narrow', - context: 'formatting', - valueCallback: valueCallback - }); - } - }, - validate: function (_date, value, _options) { - return value >= 1 && value <= 7; - }, - set: function (date, _flags, value, options) { - date = (0,_lib_setUTCISODay_index_js__WEBPACK_IMPORTED_MODULE_6__.default)(date, value, options); - date.setUTCHours(0, 0, 0, 0); - return date; - }, - incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T'] - }, - // AM or PM - a: { - priority: 80, - parse: function (string, token, match, _options) { - switch (token) { - case 'a': - case 'aa': - case 'aaa': - return match.dayPeriod(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.dayPeriod(string, { - width: 'narrow', - context: 'formatting' - }); - - case 'aaaaa': - return match.dayPeriod(string, { - width: 'narrow', - context: 'formatting' - }); - - case 'aaaa': - default: - return match.dayPeriod(string, { - width: 'wide', - context: 'formatting' - }) || match.dayPeriod(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.dayPeriod(string, { - width: 'narrow', - context: 'formatting' - }); - } - }, - set: function (date, _flags, value, _options) { - date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); - return date; - }, - incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T'] - }, - // AM, PM, midnight - b: { - priority: 80, - parse: function (string, token, match, _options) { - switch (token) { - case 'b': - case 'bb': - case 'bbb': - return match.dayPeriod(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.dayPeriod(string, { - width: 'narrow', - context: 'formatting' - }); - - case 'bbbbb': - return match.dayPeriod(string, { - width: 'narrow', - context: 'formatting' - }); - - case 'bbbb': - default: - return match.dayPeriod(string, { - width: 'wide', - context: 'formatting' - }) || match.dayPeriod(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.dayPeriod(string, { - width: 'narrow', - context: 'formatting' - }); - } - }, - set: function (date, _flags, value, _options) { - date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); - return date; - }, - incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T'] - }, - // in the morning, in the afternoon, in the evening, at night - B: { - priority: 80, - parse: function (string, token, match, _options) { - switch (token) { - case 'B': - case 'BB': - case 'BBB': - return match.dayPeriod(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.dayPeriod(string, { - width: 'narrow', - context: 'formatting' - }); - - case 'BBBBB': - return match.dayPeriod(string, { - width: 'narrow', - context: 'formatting' - }); - - case 'BBBB': - default: - return match.dayPeriod(string, { - width: 'wide', - context: 'formatting' - }) || match.dayPeriod(string, { - width: 'abbreviated', - context: 'formatting' - }) || match.dayPeriod(string, { - width: 'narrow', - context: 'formatting' - }); - } - }, - set: function (date, _flags, value, _options) { - date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); - return date; - }, - incompatibleTokens: ['a', 'b', 't', 'T'] - }, - // Hour [1-12] - h: { - priority: 70, - parse: function (string, token, match, _options) { - switch (token) { - case 'h': - return parseNumericPattern(numericPatterns.hour12h, string); - - case 'ho': - return match.ordinalNumber(string, { - unit: 'hour' - }); - - default: - return parseNDigits(token.length, string); - } - }, - validate: function (_date, value, _options) { - return value >= 1 && value <= 12; - }, - set: function (date, _flags, value, _options) { - var isPM = date.getUTCHours() >= 12; - - if (isPM && value < 12) { - date.setUTCHours(value + 12, 0, 0, 0); - } else if (!isPM && value === 12) { - date.setUTCHours(0, 0, 0, 0); - } else { - date.setUTCHours(value, 0, 0, 0); - } - - return date; - }, - incompatibleTokens: ['H', 'K', 'k', 't', 'T'] - }, - // Hour [0-23] - H: { - priority: 70, - parse: function (string, token, match, _options) { - switch (token) { - case 'H': - return parseNumericPattern(numericPatterns.hour23h, string); - - case 'Ho': - return match.ordinalNumber(string, { - unit: 'hour' - }); - - default: - return parseNDigits(token.length, string); - } - }, - validate: function (_date, value, _options) { - return value >= 0 && value <= 23; - }, - set: function (date, _flags, value, _options) { - date.setUTCHours(value, 0, 0, 0); - return date; - }, - incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T'] - }, - // Hour [0-11] - K: { - priority: 70, - parse: function (string, token, match, _options) { - switch (token) { - case 'K': - return parseNumericPattern(numericPatterns.hour11h, string); - - case 'Ko': - return match.ordinalNumber(string, { - unit: 'hour' - }); - - default: - return parseNDigits(token.length, string); - } - }, - validate: function (_date, value, _options) { - return value >= 0 && value <= 11; - }, - set: function (date, _flags, value, _options) { - var isPM = date.getUTCHours() >= 12; - - if (isPM && value < 12) { - date.setUTCHours(value + 12, 0, 0, 0); - } else { - date.setUTCHours(value, 0, 0, 0); - } - - return date; - }, - incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T'] - }, - // Hour [1-24] - k: { - priority: 70, - parse: function (string, token, match, _options) { - switch (token) { - case 'k': - return parseNumericPattern(numericPatterns.hour24h, string); - - case 'ko': - return match.ordinalNumber(string, { - unit: 'hour' - }); - - default: - return parseNDigits(token.length, string); - } - }, - validate: function (_date, value, _options) { - return value >= 1 && value <= 24; - }, - set: function (date, _flags, value, _options) { - var hours = value <= 24 ? value % 24 : value; - date.setUTCHours(hours, 0, 0, 0); - return date; - }, - incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T'] - }, - // Minute - m: { - priority: 60, - parse: function (string, token, match, _options) { - switch (token) { - case 'm': - return parseNumericPattern(numericPatterns.minute, string); - - case 'mo': - return match.ordinalNumber(string, { - unit: 'minute' - }); - - default: - return parseNDigits(token.length, string); - } - }, - validate: function (_date, value, _options) { - return value >= 0 && value <= 59; - }, - set: function (date, _flags, value, _options) { - date.setUTCMinutes(value, 0, 0); - return date; - }, - incompatibleTokens: ['t', 'T'] - }, - // Second - s: { - priority: 50, - parse: function (string, token, match, _options) { - switch (token) { - case 's': - return parseNumericPattern(numericPatterns.second, string); - - case 'so': - return match.ordinalNumber(string, { - unit: 'second' - }); - - default: - return parseNDigits(token.length, string); - } - }, - validate: function (_date, value, _options) { - return value >= 0 && value <= 59; - }, - set: function (date, _flags, value, _options) { - date.setUTCSeconds(value, 0); - return date; - }, - incompatibleTokens: ['t', 'T'] - }, - // Fraction of second - S: { - priority: 30, - parse: function (string, token, _match, _options) { - var valueCallback = function (value) { - return Math.floor(value * Math.pow(10, -token.length + 3)); - }; - - return parseNDigits(token.length, string, valueCallback); - }, - set: function (date, _flags, value, _options) { - date.setUTCMilliseconds(value); - return date; - }, - incompatibleTokens: ['t', 'T'] - }, - // Timezone (ISO-8601. +00:00 is `'Z'`) - X: { - priority: 10, - parse: function (string, token, _match, _options) { - switch (token) { - case 'X': - return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string); - - case 'XX': - return parseTimezonePattern(timezonePatterns.basic, string); - - case 'XXXX': - return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string); - - case 'XXXXX': - return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string); - - case 'XXX': - default: - return parseTimezonePattern(timezonePatterns.extended, string); - } - }, - set: function (date, flags, value, _options) { - if (flags.timestampIsSet) { - return date; - } - - return new Date(date.getTime() - value); - }, - incompatibleTokens: ['t', 'T', 'x'] - }, - // Timezone (ISO-8601) - x: { - priority: 10, - parse: function (string, token, _match, _options) { - switch (token) { - case 'x': - return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string); - - case 'xx': - return parseTimezonePattern(timezonePatterns.basic, string); - - case 'xxxx': - return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string); - - case 'xxxxx': - return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string); - - case 'xxx': - default: - return parseTimezonePattern(timezonePatterns.extended, string); - } - }, - set: function (date, flags, value, _options) { - if (flags.timestampIsSet) { - return date; - } - - return new Date(date.getTime() - value); - }, - incompatibleTokens: ['t', 'T', 'X'] - }, - // Seconds timestamp - t: { - priority: 40, - parse: function (string, _token, _match, _options) { - return parseAnyDigitsSigned(string); - }, - set: function (_date, _flags, value, _options) { - return [new Date(value * 1000), { - timestampIsSet: true - }]; - }, - incompatibleTokens: '*' - }, - // Milliseconds timestamp - T: { - priority: 20, - parse: function (string, _token, _match, _options) { - return parseAnyDigitsSigned(string); - }, - set: function (_date, _flags, value, _options) { - return [new Date(value), { - timestampIsSet: true - }]; - }, - incompatibleTokens: '*' - } -}; -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parsers); - -/***/ }), - -/***/ "./node_modules/date-fns/esm/parse/index.js": -/*!**************************************************!*\ - !*** ./node_modules/date-fns/esm/parse/index.js ***! - \**************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ parse) -/* harmony export */ }); -/* harmony import */ var _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../locale/en-US/index.js */ "./node_modules/date-fns/esm/locale/en-US/index.js"); -/* harmony import */ var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../subMilliseconds/index.js */ "./node_modules/date-fns/esm/subMilliseconds/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_assign_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_lib/assign/index.js */ "./node_modules/date-fns/esm/_lib/assign/index.js"); -/* harmony import */ var _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_lib/format/longFormatters/index.js */ "./node_modules/date-fns/esm/_lib/format/longFormatters/index.js"); -/* harmony import */ var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js"); -/* harmony import */ var _lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_lib/protectedTokens/index.js */ "./node_modules/date-fns/esm/_lib/protectedTokens/index.js"); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _lib_parsers_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./_lib/parsers/index.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - - - - - - - -var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`: -// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token -// (one of the certain letters followed by `o`) -// - (\w)\1* matches any sequences of the same letter -// - '' matches two quote characters in a row -// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), -// except a single quote symbol, which ends the sequence. -// Two quote characters do not end the sequence. -// If there is no matching single quote -// then the sequence will continue until the end of the string. -// - . matches any single character unmatched by previous parts of the RegExps - -var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also -// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` - -var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; -var escapedStringRegExp = /^'([^]*?)'?$/; -var doubleQuoteRegExp = /''/g; -var notWhitespaceRegExp = /\S/; -var unescapedLatinCharacterRegExp = /[a-zA-Z]/; -/** - * @name parse - * @category Common Helpers - * @summary Parse the date. - * - * @description - * Return the date parsed from string using the given format string. - * - * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. - * > See: https://git.io/fxCyr - * - * The characters in the format string wrapped between two single quotes characters (') are escaped. - * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. - * - * Format of the format string is based on Unicode Technical Standard #35: - * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table - * with a few additions (see note 5 below the table). - * - * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited - * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: - * - * ```javascript - * parse('23 AM', 'HH a', new Date()) - * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time - * ``` - * - * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true - * - * Accepted format string patterns: - * | Unit |Prior| Pattern | Result examples | Notes | - * |---------------------------------|-----|---------|-----------------------------------|-------| - * | Era | 140 | G..GGG | AD, BC | | - * | | | GGGG | Anno Domini, Before Christ | 2 | - * | | | GGGGG | A, B | | - * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | - * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | - * | | | yy | 44, 01, 00, 17 | 4 | - * | | | yyy | 044, 001, 123, 999 | 4 | - * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | - * | | | yyyyy | ... | 2,4 | - * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | - * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | - * | | | YY | 44, 01, 00, 17 | 4,6 | - * | | | YYY | 044, 001, 123, 999 | 4 | - * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | - * | | | YYYYY | ... | 2,4 | - * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | - * | | | RR | -43, 01, 00, 17 | 4,5 | - * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | - * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | - * | | | RRRRR | ... | 2,4,5 | - * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | - * | | | uu | -43, 01, 99, -99 | 4 | - * | | | uuu | -043, 001, 123, 999, -999 | 4 | - * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | - * | | | uuuuu | ... | 2,4 | - * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | - * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | - * | | | QQ | 01, 02, 03, 04 | | - * | | | QQQ | Q1, Q2, Q3, Q4 | | - * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | - * | | | QQQQQ | 1, 2, 3, 4 | 4 | - * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | - * | | | qo | 1st, 2nd, 3rd, 4th | 5 | - * | | | qq | 01, 02, 03, 04 | | - * | | | qqq | Q1, Q2, Q3, Q4 | | - * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | - * | | | qqqqq | 1, 2, 3, 4 | 3 | - * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | - * | | | Mo | 1st, 2nd, ..., 12th | 5 | - * | | | MM | 01, 02, ..., 12 | | - * | | | MMM | Jan, Feb, ..., Dec | | - * | | | MMMM | January, February, ..., December | 2 | - * | | | MMMMM | J, F, ..., D | | - * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | - * | | | Lo | 1st, 2nd, ..., 12th | 5 | - * | | | LL | 01, 02, ..., 12 | | - * | | | LLL | Jan, Feb, ..., Dec | | - * | | | LLLL | January, February, ..., December | 2 | - * | | | LLLLL | J, F, ..., D | | - * | Local week of year | 100 | w | 1, 2, ..., 53 | | - * | | | wo | 1st, 2nd, ..., 53th | 5 | - * | | | ww | 01, 02, ..., 53 | | - * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | - * | | | Io | 1st, 2nd, ..., 53th | 5 | - * | | | II | 01, 02, ..., 53 | 5 | - * | Day of month | 90 | d | 1, 2, ..., 31 | | - * | | | do | 1st, 2nd, ..., 31st | 5 | - * | | | dd | 01, 02, ..., 31 | | - * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | - * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | - * | | | DD | 01, 02, ..., 365, 366 | 7 | - * | | | DDD | 001, 002, ..., 365, 366 | | - * | | | DDDD | ... | 2 | - * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | | - * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | - * | | | EEEEE | M, T, W, T, F, S, S | | - * | | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | | - * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | - * | | | io | 1st, 2nd, ..., 7th | 5 | - * | | | ii | 01, 02, ..., 07 | 5 | - * | | | iii | Mon, Tue, Wed, ..., Sun | 5 | - * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | - * | | | iiiii | M, T, W, T, F, S, S | 5 | - * | | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 5 | - * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | - * | | | eo | 2nd, 3rd, ..., 1st | 5 | - * | | | ee | 02, 03, ..., 01 | | - * | | | eee | Mon, Tue, Wed, ..., Sun | | - * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | - * | | | eeeee | M, T, W, T, F, S, S | | - * | | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | | - * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | - * | | | co | 2nd, 3rd, ..., 1st | 5 | - * | | | cc | 02, 03, ..., 01 | | - * | | | ccc | Mon, Tue, Wed, ..., Sun | | - * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | - * | | | ccccc | M, T, W, T, F, S, S | | - * | | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | | - * | AM, PM | 80 | a..aaa | AM, PM | | - * | | | aaaa | a.m., p.m. | 2 | - * | | | aaaaa | a, p | | - * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | - * | | | bbbb | a.m., p.m., noon, midnight | 2 | - * | | | bbbbb | a, p, n, mi | | - * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | - * | | | BBBB | at night, in the morning, ... | 2 | - * | | | BBBBB | at night, in the morning, ... | | - * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | - * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | - * | | | hh | 01, 02, ..., 11, 12 | | - * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | - * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | - * | | | HH | 00, 01, 02, ..., 23 | | - * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | - * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | - * | | | KK | 01, 02, ..., 11, 00 | | - * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | - * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | - * | | | kk | 24, 01, 02, ..., 23 | | - * | Minute | 60 | m | 0, 1, ..., 59 | | - * | | | mo | 0th, 1st, ..., 59th | 5 | - * | | | mm | 00, 01, ..., 59 | | - * | Second | 50 | s | 0, 1, ..., 59 | | - * | | | so | 0th, 1st, ..., 59th | 5 | - * | | | ss | 00, 01, ..., 59 | | - * | Seconds timestamp | 40 | t | 512969520 | | - * | | | tt | ... | 2 | - * | Fraction of second | 30 | S | 0, 1, ..., 9 | | - * | | | SS | 00, 01, ..., 99 | | - * | | | SSS | 000, 0001, ..., 999 | | - * | | | SSSS | ... | 2 | - * | Milliseconds timestamp | 20 | T | 512969520900 | | - * | | | TT | ... | 2 | - * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | - * | | | XX | -0800, +0530, Z | | - * | | | XXX | -08:00, +05:30, Z | | - * | | | XXXX | -0800, +0530, Z, +123456 | 2 | - * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | - * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | - * | | | xx | -0800, +0530, +0000 | | - * | | | xxx | -08:00, +05:30, +00:00 | 2 | - * | | | xxxx | -0800, +0530, +0000, +123456 | | - * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | - * | Long localized date | NA | P | 05/29/1453 | 5,8 | - * | | | PP | May 29, 1453 | | - * | | | PPP | May 29th, 1453 | | - * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | - * | Long localized time | NA | p | 12:00 AM | 5,8 | - * | | | pp | 12:00:00 AM | | - * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | - * | | | PPpp | May 29, 1453, 12:00:00 AM | | - * | | | PPPpp | May 29th, 1453 at ... | | - * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | - * Notes: - * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale - * are the same as "stand-alone" units, but are different in some languages. - * "Formatting" units are declined according to the rules of the language - * in the context of a date. "Stand-alone" units are always nominative singular. - * In `format` function, they will produce different result: - * - * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` - * - * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` - * - * `parse` will try to match both formatting and stand-alone units interchangably. - * - * 2. Any sequence of the identical letters is a pattern, unless it is escaped by - * the single quote characters (see below). - * If the sequence is longer than listed in table: - * - for numerical units (`yyyyyyyy`) `parse` will try to match a number - * as wide as the sequence - * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit. - * These variations are marked with "2" in the last column of the table. - * - * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. - * These tokens represent the shortest form of the quarter. - * - * 4. The main difference between `y` and `u` patterns are B.C. years: - * - * | Year | `y` | `u` | - * |------|-----|-----| - * | AC 1 | 1 | 1 | - * | BC 1 | 1 | 0 | - * | BC 2 | 2 | -1 | - * - * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: - * - * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00` - * - * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00` - * - * while `uu` will just assign the year as is: - * - * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00` - * - * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00` - * - * The same difference is true for local and ISO week-numbering years (`Y` and `R`), - * except local week-numbering years are dependent on `options.weekStartsOn` - * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear} - * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}). - * - * 5. These patterns are not in the Unicode Technical Standard #35: - * - `i`: ISO day of week - * - `I`: ISO week of year - * - `R`: ISO week-numbering year - * - `o`: ordinal number modifier - * - `P`: long localized date - * - `p`: long localized time - * - * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. - * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr - * - * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. - * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr - * - * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based - * on the given locale. - * - * using `en-US` locale: `P` => `MM/dd/yyyy` - * using `en-US` locale: `p` => `hh:mm a` - * using `pt-BR` locale: `P` => `dd/MM/yyyy` - * using `pt-BR` locale: `p` => `HH:mm` - * - * Values will be assigned to the date in the descending order of its unit's priority. - * Units of an equal priority overwrite each other in the order of appearance. - * - * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year), - * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing. - * - * `referenceDate` must be passed for correct work of the function. - * If you're not sure which `referenceDate` to supply, create a new instance of Date: - * `parse('02/11/2014', 'MM/dd/yyyy', new Date())` - * In this case parsing will be done in the context of the current date. - * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`, - * then `Invalid Date` will be returned. - * - * The result may vary by locale. - * - * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. - * - * If parsing failed, `Invalid Date` will be returned. - * Invalid Date is a Date, whose time value is NaN. - * Time value of Date: http://es5.github.io/#x15.9.1.1 - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * - Old `parse` was renamed to `toDate`. - * Now `parse` is a new function which parses a string using a provided format. - * - * ```javascript - * // Before v2.0.0 - * parse('2016-01-01') - * - * // v2.0.0 onward (toDate no longer accepts a string) - * toDate(1392098430000) // Unix to timestamp - * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date - * parse('2016-01-01', 'yyyy-MM-dd', new Date()) - * ``` - * - * @param {String} dateString - the string to parse - * @param {String} formatString - the string of tokens - * @param {Date|Number} referenceDate - defines values missing from the parsed dateString - * @param {Object} [options] - an object with options. - * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} - * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year - * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; - * see: https://git.io/fxCyr - * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; - * see: https://git.io/fxCyr - * @returns {Date} the parsed date - * @throws {TypeError} 3 arguments required - * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 - * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 - * @throws {RangeError} `options.locale` must contain `match` property - * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr - * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr - * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr - * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr - * @throws {RangeError} format string contains an unescaped latin alphabet character - * - * @example - * // Parse 11 February 2014 from middle-endian format: - * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date()) - * //=> Tue Feb 11 2014 00:00:00 - * - * @example - * // Parse 28th of February in Esperanto locale in the context of 2010 year: - * import eo from 'date-fns/locale/eo' - * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), { - * locale: eo - * }) - * //=> Sun Feb 28 2010 00:00:00 - */ - -function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(3, arguments); - var dateString = String(dirtyDateString); - var formatString = String(dirtyFormatString); - var options = dirtyOptions || {}; - var locale = options.locale || _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_1__.default; - - if (!locale.match) { - throw new RangeError('locale must contain match property'); - } - - var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate; - var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(localeFirstWeekContainsDate); - var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN - - if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { - throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); - } - - var localeWeekStartsOn = locale.options && locale.options.weekStartsOn; - var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(localeWeekStartsOn); - var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN - - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); - } - - if (formatString === '') { - if (dateString === '') { - return (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(dirtyReferenceDate); - } else { - return new Date(NaN); - } - } - - var subFnOptions = { - firstWeekContainsDate: firstWeekContainsDate, - weekStartsOn: weekStartsOn, - locale: locale // If timezone isn't specified, it will be set to the system timezone - - }; - var setters = [{ - priority: TIMEZONE_UNIT_PRIORITY, - subPriority: -1, - set: dateToSystemTimezone, - index: 0 - }]; - var i; - var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) { - var firstCharacter = substring[0]; - - if (firstCharacter === 'p' || firstCharacter === 'P') { - var longFormatter = _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_4__.default[firstCharacter]; - return longFormatter(substring, locale.formatLong, subFnOptions); - } - - return substring; - }).join('').match(formattingTokensRegExp); - var usedTokens = []; - - for (i = 0; i < tokens.length; i++) { - var token = tokens[i]; - - if (!options.useAdditionalWeekYearTokens && (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_5__.isProtectedWeekYearToken)(token)) { - (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_5__.throwProtectedError)(token, formatString, dirtyDateString); - } - - if (!options.useAdditionalDayOfYearTokens && (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_5__.isProtectedDayOfYearToken)(token)) { - (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_5__.throwProtectedError)(token, formatString, dirtyDateString); - } - - var firstCharacter = token[0]; - var parser = _lib_parsers_index_js__WEBPACK_IMPORTED_MODULE_6__.default[firstCharacter]; - - if (parser) { - var incompatibleTokens = parser.incompatibleTokens; - - if (Array.isArray(incompatibleTokens)) { - var incompatibleToken = void 0; - - for (var _i = 0; _i < usedTokens.length; _i++) { - var usedToken = usedTokens[_i].token; - - if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) { - incompatibleToken = usedTokens[_i]; - break; - } - } - - if (incompatibleToken) { - throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time")); - } - } else if (parser.incompatibleTokens === '*' && usedTokens.length) { - throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time")); - } - - usedTokens.push({ - token: firstCharacter, - fullToken: token - }); - var parseResult = parser.parse(dateString, token, locale.match, subFnOptions); - - if (!parseResult) { - return new Date(NaN); - } - - setters.push({ - priority: parser.priority, - subPriority: parser.subPriority || 0, - set: parser.set, - validate: parser.validate, - value: parseResult.value, - index: setters.length - }); - dateString = parseResult.rest; - } else { - if (firstCharacter.match(unescapedLatinCharacterRegExp)) { - throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); - } // Replace two single quote characters with one single quote character - - - if (token === "''") { - token = "'"; - } else if (firstCharacter === "'") { - token = cleanEscapedString(token); - } // Cut token from string, or, if string doesn't match the token, return Invalid Date - - - if (dateString.indexOf(token) === 0) { - dateString = dateString.slice(token.length); - } else { - return new Date(NaN); - } - } - } // Check if the remaining input contains something other than whitespace - - - if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) { - return new Date(NaN); - } - - var uniquePrioritySetters = setters.map(function (setter) { - return setter.priority; - }).sort(function (a, b) { - return b - a; - }).filter(function (priority, index, array) { - return array.indexOf(priority) === index; - }).map(function (priority) { - return setters.filter(function (setter) { - return setter.priority === priority; - }).sort(function (a, b) { - return b.subPriority - a.subPriority; - }); - }).map(function (setterArray) { - return setterArray[0]; - }); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(dirtyReferenceDate); - - if (isNaN(date)) { - return new Date(NaN); - } // Convert the date in system timezone to the same date in UTC+00:00 timezone. - // This ensures that when UTC functions will be implemented, locales will be compatible with them. - // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37 - - - var utcDate = (0,_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_7__.default)(date, (0,_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_8__.default)(date)); - var flags = {}; - - for (i = 0; i < uniquePrioritySetters.length; i++) { - var setter = uniquePrioritySetters[i]; - - if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) { - return new Date(NaN); - } - - var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags) - - if (result[0]) { - utcDate = result[0]; - (0,_lib_assign_index_js__WEBPACK_IMPORTED_MODULE_9__.default)(flags, result[1]); // Result is date - } else { - utcDate = result; - } - } - - return utcDate; -} - -function dateToSystemTimezone(date, flags) { - if (flags.timestampIsSet) { - return date; - } - - var convertedDate = new Date(0); - convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate()); - convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()); - return convertedDate; -} - -function cleanEscapedString(input) { - return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'"); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/setDay/index.js": -/*!***************************************************!*\ - !*** ./node_modules/date-fns/esm/setDay/index.js ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ setDay) -/* harmony export */ }); -/* harmony import */ var _addDays_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../addDays/index.js */ "./node_modules/date-fns/esm/addDays/index.js"); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - - -/** - * @name setDay - * @category Weekday Helpers - * @summary Set the day of the week to the given date. - * - * @description - * Set the day of the week to the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the date to be changed - * @param {Number} day - the day of the week of the new date - * @param {Object} [options] - an object with options. - * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} - * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @returns {Date} the new date with the day of the week set - * @throws {TypeError} 2 arguments required - * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 - * - * @example - * // Set week day to Sunday, with the default weekStartsOn of Sunday: - * var result = setDay(new Date(2014, 8, 1), 0) - * //=> Sun Aug 31 2014 00:00:00 - * - * @example - * // Set week day to Sunday, with a weekStartsOn of Monday: - * var result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 }) - * //=> Sun Sep 07 2014 00:00:00 - */ - -function setDay(dirtyDate, dirtyDay, dirtyOptions) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var options = dirtyOptions || {}; - var locale = options.locale; - var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; - var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(localeWeekStartsOn); - var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN - - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); - } - - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate, options); - var day = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDay); - var currentDay = date.getDay(); - var remainder = day % 7; - var dayIndex = (remainder + 7) % 7; - var delta = 7 - weekStartsOn; - var diff = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7; - return (0,_addDays_index_js__WEBPACK_IMPORTED_MODULE_3__.default)(date, diff, options); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/startOfDay/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/date-fns/esm/startOfDay/index.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ startOfDay) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name startOfDay - * @category Day Helpers - * @summary Return the start of a day for the given date. - * - * @description - * Return the start of a day for the given date. - * The result will be in the local timezone. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the original date - * @returns {Date} the start of a day - * @throws {TypeError} 1 argument required - * - * @example - * // The start of a day for 2 September 2014 11:55:00: - * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Tue Sep 02 2014 00:00:00 - */ - -function startOfDay(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - date.setHours(0, 0, 0, 0); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/startOfDecade/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/date-fns/esm/startOfDecade/index.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ startOfDecade) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name startOfDecade - * @category Decade Helpers - * @summary Return the start of a decade for the given date. - * - * @description - * Return the start of a decade for the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the original date - * @returns {Date} the start of a decade - * @throws {TypeError} 1 argument required - * - * @example - * // The start of a decade for 21 October 2015 00:00:00: - * const result = startOfDecade(new Date(2015, 9, 21, 00, 00, 00)) - * //=> Jan 01 2010 00:00:00 - */ - -function startOfDecade(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var year = date.getFullYear(); - var decade = Math.floor(year / 10) * 10; - date.setFullYear(decade, 0, 1); - date.setHours(0, 0, 0, 0); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/startOfMonth/index.js": -/*!*********************************************************!*\ - !*** ./node_modules/date-fns/esm/startOfMonth/index.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ startOfMonth) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name startOfMonth - * @category Month Helpers - * @summary Return the start of a month for the given date. - * - * @description - * Return the start of a month for the given date. - * The result will be in the local timezone. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the original date - * @returns {Date} the start of a month - * @throws {TypeError} 1 argument required - * - * @example - * // The start of a month for 2 September 2014 11:55:00: - * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Mon Sep 01 2014 00:00:00 - */ - -function startOfMonth(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - date.setDate(1); - date.setHours(0, 0, 0, 0); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/startOfWeek/index.js": -/*!********************************************************!*\ - !*** ./node_modules/date-fns/esm/startOfWeek/index.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ startOfWeek) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - -/** - * @name startOfWeek - * @category Week Helpers - * @summary Return the start of a week for the given date. - * - * @description - * Return the start of a week for the given date. - * The result will be in the local timezone. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the original date - * @param {Object} [options] - an object with options. - * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} - * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) - * @returns {Date} the start of a week - * @throws {TypeError} 1 argument required - * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 - * - * @example - * // The start of a week for 2 September 2014 11:55:00: - * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) - * //=> Sun Aug 31 2014 00:00:00 - * - * @example - * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: - * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) - * //=> Mon Sep 01 2014 00:00:00 - */ - -function startOfWeek(dirtyDate, dirtyOptions) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var options = dirtyOptions || {}; - var locale = options.locale; - var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; - var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(localeWeekStartsOn); - var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN - - if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { - throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); - } - - var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate); - var day = date.getDay(); - var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; - date.setDate(date.getDate() - diff); - date.setHours(0, 0, 0, 0); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/startOfYear/index.js": -/*!********************************************************!*\ - !*** ./node_modules/date-fns/esm/startOfYear/index.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ startOfYear) -/* harmony export */ }); -/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - -/** - * @name startOfYear - * @category Year Helpers - * @summary Return the start of a year for the given date. - * - * @description - * Return the start of a year for the given date. - * The result will be in the local timezone. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the original date - * @returns {Date} the start of a year - * @throws {TypeError} 1 argument required - * - * @example - * // The start of a year for 2 September 2014 11:55:00: - * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00)) - * //=> Wed Jan 01 2014 00:00:00 - */ - -function startOfYear(dirtyDate) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var cleanDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyDate); - var date = new Date(0); - date.setFullYear(cleanDate.getFullYear(), 0, 1); - date.setHours(0, 0, 0, 0); - return date; -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/subMilliseconds/index.js": -/*!************************************************************!*\ - !*** ./node_modules/date-fns/esm/subMilliseconds/index.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ subMilliseconds) -/* harmony export */ }); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../addMilliseconds/index.js */ "./node_modules/date-fns/esm/addMilliseconds/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - -/** - * @name subMilliseconds - * @category Millisecond Helpers - * @summary Subtract the specified number of milliseconds from the given date. - * - * @description - * Subtract the specified number of milliseconds from the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the date to be changed - * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. - * @returns {Date} the new date with the milliseconds subtracted - * @throws {TypeError} 2 arguments required - * - * @example - * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000: - * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) - * //=> Thu Jul 10 2014 12:45:29.250 - */ - -function subMilliseconds(dirtyDate, dirtyAmount) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyAmount); - return (0,_addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate, -amount); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/subMonths/index.js": -/*!******************************************************!*\ - !*** ./node_modules/date-fns/esm/subMonths/index.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ subMonths) -/* harmony export */ }); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../addMonths/index.js */ "./node_modules/date-fns/esm/addMonths/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - -/** - * @name subMonths - * @category Month Helpers - * @summary Subtract the specified number of months from the given date. - * - * @description - * Subtract the specified number of months from the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the date to be changed - * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. - * @returns {Date} the new date with the months subtracted - * @throws {TypeError} 2 arguments required - * - * @example - * // Subtract 5 months from 1 February 2015: - * const result = subMonths(new Date(2015, 1, 1), 5) - * //=> Mon Sep 01 2014 00:00:00 - */ - -function subMonths(dirtyDate, dirtyAmount) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyAmount); - return (0,_addMonths_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate, -amount); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/subYears/index.js": -/*!*****************************************************!*\ - !*** ./node_modules/date-fns/esm/subYears/index.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ subYears) -/* harmony export */ }); -/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); -/* harmony import */ var _addYears_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../addYears/index.js */ "./node_modules/date-fns/esm/addYears/index.js"); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - - - -/** - * @name subYears - * @category Year Helpers - * @summary Subtract the specified number of years from the given date. - * - * @description - * Subtract the specified number of years from the given date. - * - * ### v2.0.0 breaking changes: - * - * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). - * - * @param {Date|Number} date - the date to be changed - * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. - * @returns {Date} the new date with the years subtracted - * @throws {TypeError} 2 arguments required - * - * @example - * // Subtract 5 years from 1 September 2014: - * const result = subYears(new Date(2014, 8, 1), 5) - * //=> Tue Sep 01 2009 00:00:00 - */ - -function subYears(dirtyDate, dirtyAmount) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(2, arguments); - var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__.default)(dirtyAmount); - return (0,_addYears_index_js__WEBPACK_IMPORTED_MODULE_2__.default)(dirtyDate, -amount); -} - -/***/ }), - -/***/ "./node_modules/date-fns/esm/toDate/index.js": -/*!***************************************************!*\ - !*** ./node_modules/date-fns/esm/toDate/index.js ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ toDate) -/* harmony export */ }); -/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); - -/** - * @name toDate - * @category Common Helpers - * @summary Convert the given argument to an instance of Date. - * - * @description - * Convert the given argument to an instance of Date. - * - * If the argument is an instance of Date, the function returns its clone. - * - * If the argument is a number, it is treated as a timestamp. - * - * If the argument is none of the above, the function returns Invalid Date. - * - * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. - * - * @param {Date|Number} argument - the value to convert - * @returns {Date} the parsed date in the local time zone - * @throws {TypeError} 1 argument required - * - * @example - * // Clone the date: - * const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) - * //=> Tue Feb 11 2014 11:30:30 - * - * @example - * // Convert the timestamp to date: - * const result = toDate(1392098430000) - * //=> Tue Feb 11 2014 11:30:30 - */ - -function toDate(argument) { - (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__.default)(1, arguments); - var argStr = Object.prototype.toString.call(argument); // Clone the date - - if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') { - // Prevent the date to lose the milliseconds when passed to new Date() in IE10 - return new Date(argument.getTime()); - } else if (typeof argument === 'number' || argStr === '[object Number]') { - return new Date(argument); - } else { - if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') { - // eslint-disable-next-line no-console - console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console - - console.warn(new Error().stack); - } - - return new Date(NaN); - } -} - -/***/ }), - /***/ "./node_modules/deepmerge/dist/cjs.js": /*!********************************************!*\ !*** ./node_modules/deepmerge/dist/cjs.js ***! @@ -72503,824 +65513,6 @@ function compileToFunction(template, options) { -/***/ }), - -/***/ "./node_modules/vue3-datepicker/dist/vue3-datepicker.esm.js": -/*!******************************************************************!*\ - !*** ./node_modules/vue3-datepicker/dist/vue3-datepicker.esm.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isValid/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/startOfDecade/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/endOfDecade/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/getYear/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/eachYearOfInterval/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/getDecade/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isBefore/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isAfter/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/subYears/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/addYears/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/startOfYear/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/endOfYear/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/startOfMonth/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/endOfMonth/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/eachMonthOfInterval/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isSameMonth/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isSameYear/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/startOfWeek/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/endOfWeek/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/setDay/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isSameDay/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/startOfDay/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/endOfDay/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/eachDayOfInterval/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isWithinInterval/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/subMonths/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/addMonths/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/parse/index.js"); -/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/lightFormat/index.js"); -/* harmony import */ var date_fns_fp__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! date-fns/fp */ "./node_modules/date-fns/esm/fp/formatWithOptions/index.js"); - - - - -var script = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ - emits: { - elementClick: (value) => (0,date_fns__WEBPACK_IMPORTED_MODULE_1__.default)(value), - left: () => true, - right: () => true, - heading: () => true, - }, - props: { - headingClickable: { - type: Boolean, - default: false, - }, - leftDisabled: { - type: Boolean, - default: false, - }, - rightDisabled: { - type: Boolean, - default: false, - }, - columnCount: { - type: Number, - default: 7, - }, - items: { - type: Array, - default: () => [], - }, - }, -}); - -const _withId = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.withScopeId)("data-v-2e128338"); - -(0,vue__WEBPACK_IMPORTED_MODULE_0__.pushScopeId)("data-v-2e128338"); -const _hoisted_1 = { class: "v3dp__heading" }; -const _hoisted_2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("svg", { - class: "v3dp__heading__icon", - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 6 8" -}, [ - /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("g", { - fill: "none", - "fill-rule": "evenodd" - }, [ - /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("path", { - stroke: "none", - d: "M-9 16V-8h24v24z" - }), - /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("path", { - "stroke-linecap": "round", - "stroke-linejoin": "round", - d: "M5 0L1 4l4 4" - }) - ]) -], -1 /* HOISTED */); -const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("svg", { - class: "v3dp__heading__icon", - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 6 8" -}, [ - /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("g", { - fill: "none", - "fill-rule": "evenodd" - }, [ - /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("path", { - stroke: "none", - d: "M15-8v24H-9V-8z" - }), - /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("path", { - "stroke-linecap": "round", - "stroke-linejoin": "round", - d: "M1 8l4-4-4-4" - }) - ]) -], -1 /* HOISTED */); -const _hoisted_4 = { class: "v3dp__body" }; -const _hoisted_5 = { class: "v3dp__subheading" }; -const _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("hr", { class: "v3dp__divider" }, null, -1 /* HOISTED */); -const _hoisted_7 = { class: "v3dp__elements" }; -(0,vue__WEBPACK_IMPORTED_MODULE_0__.popScopeId)(); - -const render = /*#__PURE__*/_withId((_ctx, _cache, $props, $setup, $data, $options) => { - return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", { - class: "v3dp__popout", - style: { '--popout-column-definition': `repeat(${_ctx.columnCount}, 1fr)` }, - onMousedown: _cache[4] || (_cache[4] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(() => {}, ["prevent"])) - }, [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_1, [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("button", { - class: "v3dp__heading__button", - disabled: _ctx.leftDisabled, - onClick: _cache[1] || (_cache[1] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)($event => (_ctx.$emit('left')), ["stop","prevent"])) - }, [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "arrow-left", {}, () => [ - _hoisted_2 - ]) - ], 8 /* PROPS */, ["disabled"]), - ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent)(_ctx.headingClickable ? 'button' : 'span'), { - class: "v3dp__heading__center", - onClick: _cache[2] || (_cache[2] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)($event => (_ctx.$emit('heading')), ["stop","prevent"])) - }, { - default: _withId(() => [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "heading") - ]), - _: 3 /* FORWARDED */ - })), - (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("button", { - class: "v3dp__heading__button", - disabled: _ctx.rightDisabled, - onClick: _cache[3] || (_cache[3] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)($event => (_ctx.$emit('right')), ["stop","prevent"])) - }, [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "arrow-right", {}, () => [ - _hoisted_3 - ]) - ], 8 /* PROPS */, ["disabled"]) - ]), - (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_4, [ - ('subheading' in _ctx.$slots) - ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 0 }, [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_5, [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "subheading") - ]), - _hoisted_6 - ], 64 /* STABLE_FRAGMENT */)) - : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), - (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_7, [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "body", {}, () => [ - ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(_ctx.items, (item) => { - return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", { - key: item.key, - disabled: item.disabled, - class: { selected: item.selected }, - onClick: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)($event => (_ctx.$emit('elementClick', item.value)), ["stop","prevent"]) - }, [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(item.display), 1 /* TEXT */) - ], 10 /* CLASS, PROPS */, ["disabled", "onClick"])) - }), 128 /* KEYED_FRAGMENT */)) - ]) - ]) - ]) - ], 36 /* STYLE, HYDRATE_EVENTS */)) -}); - -function styleInject(css, ref) { - if ( ref === void 0 ) ref = {}; - var insertAt = ref.insertAt; - - if (!css || typeof document === 'undefined') { return; } - - var head = document.head || document.getElementsByTagName('head')[0]; - var style = document.createElement('style'); - style.type = 'text/css'; - - if (insertAt === 'top') { - if (head.firstChild) { - head.insertBefore(style, head.firstChild); - } else { - head.appendChild(style); - } - } else { - head.appendChild(style); - } - - if (style.styleSheet) { - style.styleSheet.cssText = css; - } else { - style.appendChild(document.createTextNode(css)); - } -} - -var css_248z = "\n.v3dp__popout[data-v-2e128338] {\n z-index: 10;\n position: absolute;\n /* bottom: 0; */\n text-align: center;\n width: 17.5em;\n background-color: var(--popout-bg-color);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n padding: 8px 0 1em;\n color: var(--text-color);\n}\n.v3dp__popout *[data-v-2e128338] {\n color: inherit;\n font-size: inherit;\n font-weight: inherit;\n}\n.v3dp__popout button[data-v-2e128338] {\n background: none;\n border: none;\n outline: none;\n}\n.v3dp__popout button[data-v-2e128338]:not(:disabled) {\n cursor: pointer;\n}\n.v3dp__heading[data-v-2e128338] {\n width: 100%;\n display: flex;\n height: var(--heading-size);\n line-height: var(--heading-size);\n font-weight: var(--heading-weight);\n}\n.v3dp__heading__button[data-v-2e128338] {\n background: none;\n border: none;\n padding: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n width: var(--heading-size);\n}\nbutton.v3dp__heading__center[data-v-2e128338]:hover,\n.v3dp__heading__button[data-v-2e128338]:not(:disabled):hover {\n background-color: var(--heading-hover-color);\n}\n.v3dp__heading__center[data-v-2e128338] {\n flex: 1;\n}\n.v3dp__heading__icon[data-v-2e128338] {\n height: 12px;\n stroke: var(--arrow-color);\n}\n.v3dp__heading__button:disabled .v3dp__heading__icon[data-v-2e128338] {\n stroke: var(--elem-disabled-color);\n}\n.v3dp__subheading[data-v-2e128338],\n.v3dp__elements[data-v-2e128338] {\n display: grid;\n grid-template-columns: var(--popout-column-definition);\n font-size: var(--elem-font-size);\n}\n.v3dp__subheading[data-v-2e128338] {\n margin-top: 1em;\n}\n.v3dp__divider[data-v-2e128338] {\n border: 1px solid var(--divider-color);\n border-radius: 3px;\n}\n.v3dp__elements button[data-v-2e128338]:disabled {\n color: var(--elem-disabled-color);\n}\n.v3dp__elements button[data-v-2e128338] {\n padding: 0.3em 0.6em;\n}\n.v3dp__elements button span[data-v-2e128338] {\n display: block;\n line-height: 1.9em;\n height: 1.8em;\n border-radius: var(--elem-border-radius);\n}\n.v3dp__elements button:not(:disabled):hover span[data-v-2e128338] {\n background-color: var(--elem-hover-bg-color);\n color: var(--elem-hover-color);\n}\n.v3dp__elements button.selected span[data-v-2e128338] {\n background-color: var(--elem-selected-bg-color);\n color: var(--elem-selected-color);\n}\n"; -styleInject(css_248z); - -script.render = render; -script.__scopeId = "data-v-2e128338"; -script.__file = "src/datepicker/PickerPopup.vue"; - -var script$1 = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ - components: { - PickerPopup: script, - }, - emits: { - 'update:pageDate': (date) => (0,date_fns__WEBPACK_IMPORTED_MODULE_1__.default)(date), - select: (date) => (0,date_fns__WEBPACK_IMPORTED_MODULE_1__.default)(date), - }, - props: { - selected: { - type: Date, - required: false, - }, - pageDate: { - type: Date, - required: true, - }, - lowerLimit: { - type: Date, - required: false, - }, - upperLimit: { - type: Date, - required: false, - }, - }, - setup(props, { emit }) { - const from = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns__WEBPACK_IMPORTED_MODULE_2__.default)(props.pageDate)); - const to = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns__WEBPACK_IMPORTED_MODULE_3__.default)(props.pageDate)); - const isEnabled = (target, lower, upper) => { - if (!lower && !upper) - return true; - if (lower && (0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(target) < (0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(lower)) - return false; - if (upper && (0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(target) > (0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(upper)) - return false; - return true; - }; - const years = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns__WEBPACK_IMPORTED_MODULE_5__.default)({ - start: from.value, - end: to.value, - }).map((value) => ({ - value, - key: String((0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(value)), - display: (0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(value), - selected: props.selected && (0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(value) === (0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(props.selected), - disabled: !isEnabled(value, props.lowerLimit, props.upperLimit), - }))); - const heading = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { - const start = (0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(from.value); - const end = (0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(to.value); - return `${start} - ${end}`; - }); - const leftDisabled = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.lowerLimit && - ((0,date_fns__WEBPACK_IMPORTED_MODULE_6__.default)(props.lowerLimit) === (0,date_fns__WEBPACK_IMPORTED_MODULE_6__.default)(props.pageDate) || - (0,date_fns__WEBPACK_IMPORTED_MODULE_7__.default)(props.pageDate, props.lowerLimit))); - const rightDisabled = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.upperLimit && - ((0,date_fns__WEBPACK_IMPORTED_MODULE_6__.default)(props.upperLimit) === (0,date_fns__WEBPACK_IMPORTED_MODULE_6__.default)(props.pageDate) || - (0,date_fns__WEBPACK_IMPORTED_MODULE_8__.default)(props.pageDate, props.upperLimit))); - const previousPage = () => emit('update:pageDate', (0,date_fns__WEBPACK_IMPORTED_MODULE_9__.default)(props.pageDate, 10)); - const nextPage = () => emit('update:pageDate', (0,date_fns__WEBPACK_IMPORTED_MODULE_10__.default)(props.pageDate, 10)); - return { - years, - heading, - leftDisabled, - rightDisabled, - previousPage, - nextPage, - }; - }, -}); - -function render$1(_ctx, _cache, $props, $setup, $data, $options) { - const _component_picker_popup = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("picker-popup"); - - return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_picker_popup, { - columnCount: 3, - leftDisabled: _ctx.leftDisabled, - rightDisabled: _ctx.rightDisabled, - items: _ctx.years, - onLeft: _ctx.previousPage, - onRight: _ctx.nextPage, - onElementClick: _cache[1] || (_cache[1] = $event => (_ctx.$emit('select', $event))) - }, { - heading: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.heading), 1 /* TEXT */) - ]), - _: 1 /* STABLE */ - }, 8 /* PROPS */, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"])) -} - -script$1.render = render$1; -script$1.__file = "src/datepicker/YearPicker.vue"; - -var script$2 = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ - components: { - PickerPopup: script, - }, - emits: { - 'update:pageDate': (date) => (0,date_fns__WEBPACK_IMPORTED_MODULE_1__.default)(date), - select: (date) => (0,date_fns__WEBPACK_IMPORTED_MODULE_1__.default)(date), - back: () => true, - }, - props: { - /** - * Currently selected date, needed for highlighting - */ - selected: { - type: Date, - required: false, - }, - pageDate: { - type: Date, - required: true, - }, - format: { - type: String, - required: false, - default: 'LLL', - }, - locale: { - type: Object, - required: false, - }, - lowerLimit: { - type: Date, - required: false, - }, - upperLimit: { - type: Date, - required: false, - }, - }, - setup(props, { emit }) { - const from = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns__WEBPACK_IMPORTED_MODULE_11__.default)(props.pageDate)); - const to = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns__WEBPACK_IMPORTED_MODULE_12__.default)(props.pageDate)); - const format = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns_fp__WEBPACK_IMPORTED_MODULE_13__.default)({ - locale: props.locale, - })(props.format)); - const isEnabled = (target, lower, upper) => { - if (!lower && !upper) - return true; - if (lower && (0,date_fns__WEBPACK_IMPORTED_MODULE_7__.default)(target, (0,date_fns__WEBPACK_IMPORTED_MODULE_14__.default)(lower))) - return false; - if (upper && (0,date_fns__WEBPACK_IMPORTED_MODULE_8__.default)(target, (0,date_fns__WEBPACK_IMPORTED_MODULE_15__.default)(upper))) - return false; - return true; - }; - const months = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns__WEBPACK_IMPORTED_MODULE_16__.default)({ - start: from.value, - end: to.value, - }).map((value) => ({ - value, - display: format.value(value), - key: format.value(value), - selected: props.selected && (0,date_fns__WEBPACK_IMPORTED_MODULE_17__.default)(props.selected, value), - disabled: !isEnabled(value, props.lowerLimit, props.upperLimit), - }))); - const heading = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns__WEBPACK_IMPORTED_MODULE_4__.default)(from.value)); - const leftDisabled = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.lowerLimit && - ((0,date_fns__WEBPACK_IMPORTED_MODULE_18__.default)(props.lowerLimit, props.pageDate) || - (0,date_fns__WEBPACK_IMPORTED_MODULE_7__.default)(props.pageDate, props.lowerLimit))); - const rightDisabled = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.upperLimit && - ((0,date_fns__WEBPACK_IMPORTED_MODULE_18__.default)(props.upperLimit, props.pageDate) || - (0,date_fns__WEBPACK_IMPORTED_MODULE_8__.default)(props.pageDate, props.upperLimit))); - const previousPage = () => emit('update:pageDate', (0,date_fns__WEBPACK_IMPORTED_MODULE_9__.default)(props.pageDate, 1)); - const nextPage = () => emit('update:pageDate', (0,date_fns__WEBPACK_IMPORTED_MODULE_10__.default)(props.pageDate, 1)); - return { - months, - heading, - leftDisabled, - rightDisabled, - previousPage, - nextPage, - }; - }, -}); - -function render$2(_ctx, _cache, $props, $setup, $data, $options) { - const _component_picker_popup = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("picker-popup"); - - return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_picker_popup, { - headingClickable: "", - columnCount: 3, - items: _ctx.months, - leftDisabled: _ctx.leftDisabled, - rightDisabled: _ctx.rightDisabled, - onLeft: _ctx.previousPage, - onRight: _ctx.nextPage, - onHeading: _cache[1] || (_cache[1] = $event => (_ctx.$emit('back'))), - onElementClick: _cache[2] || (_cache[2] = $event => (_ctx.$emit('select', $event))) - }, { - heading: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.heading), 1 /* TEXT */) - ]), - _: 1 /* STABLE */ - }, 8 /* PROPS */, ["items", "leftDisabled", "rightDisabled", "onLeft", "onRight"])) -} - -script$2.render = render$2; -script$2.__file = "src/datepicker/MonthPicker.vue"; - -var script$3 = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ - components: { - PickerPopup: script, - }, - emits: { - 'update:pageDate': (date) => (0,date_fns__WEBPACK_IMPORTED_MODULE_1__.default)(date), - select: (date) => (0,date_fns__WEBPACK_IMPORTED_MODULE_1__.default)(date), - back: () => true, - }, - props: { - selected: { - type: Date, - required: false, - }, - pageDate: { - type: Date, - required: true, - }, - format: { - type: String, - required: false, - default: 'dd', - }, - headingFormat: { - type: String, - required: false, - default: 'LLLL yyyy', - }, - weekdayFormat: { - type: String, - required: false, - default: 'EE', - }, - locale: { - type: Object, - required: false, - }, - weekStartsOn: { - type: Number, - required: false, - default: 1, - validator: (i) => typeof i === 'number' && Number.isInteger(i) && i >= 0 && i <= 6, - }, - lowerLimit: { - type: Date, - required: false, - }, - upperLimit: { - type: Date, - required: false, - }, - disabledDates: { - type: Object, - required: false, - }, - }, - setup(props, { emit }) { - const format = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns_fp__WEBPACK_IMPORTED_MODULE_13__.default)({ - locale: props.locale, - weekStartsOn: props.weekStartsOn, - })); - const monthStart = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns__WEBPACK_IMPORTED_MODULE_14__.default)(props.pageDate)); - const monthEnd = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (0,date_fns__WEBPACK_IMPORTED_MODULE_15__.default)(props.pageDate)); - const currentMonth = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ - start: monthStart.value, - end: monthEnd.value, - })); - const displayedInterval = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ - start: (0,date_fns__WEBPACK_IMPORTED_MODULE_19__.default)(monthStart.value, { - weekStartsOn: props.weekStartsOn, - }), - end: (0,date_fns__WEBPACK_IMPORTED_MODULE_20__.default)(monthEnd.value, { - weekStartsOn: props.weekStartsOn, - }), - })); - const weekDays = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { - const initial = props.weekStartsOn; - const dayFormat = format.value(props.weekdayFormat); - return Array.from(Array(7)) - .map((_, i) => (initial + i) % 7) - .map((v) => (0,date_fns__WEBPACK_IMPORTED_MODULE_21__.default)(new Date(), v, { - weekStartsOn: props.weekStartsOn, - })) - .map(dayFormat); - }); - const isEnabled = (target, lower, upper, disabledDates) => { - var _a; - if ((_a = disabledDates === null || disabledDates === void 0 ? void 0 : disabledDates.dates) === null || _a === void 0 ? void 0 : _a.some(date => (0,date_fns__WEBPACK_IMPORTED_MODULE_22__.default)(target, date))) - return false; - if (!lower && !upper) - return true; - if (lower && (0,date_fns__WEBPACK_IMPORTED_MODULE_7__.default)(target, (0,date_fns__WEBPACK_IMPORTED_MODULE_23__.default)(lower))) - return false; - if (upper && (0,date_fns__WEBPACK_IMPORTED_MODULE_8__.default)(target, (0,date_fns__WEBPACK_IMPORTED_MODULE_24__.default)(upper))) - return false; - return true; - }; - const days = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { - const dayFormat = format.value(props.format); - return (0,date_fns__WEBPACK_IMPORTED_MODULE_25__.default)(displayedInterval.value).map((value) => ({ - value, - display: dayFormat(value), - selected: props.selected && (0,date_fns__WEBPACK_IMPORTED_MODULE_22__.default)(props.selected, value), - disabled: !(0,date_fns__WEBPACK_IMPORTED_MODULE_26__.default)(value, currentMonth.value) || - !isEnabled(value, props.lowerLimit, props.upperLimit, props.disabledDates), - key: format.value('yyyy-MM-dd', value), - })); - }); - const heading = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => format.value(props.headingFormat)(props.pageDate)); - const leftDisabled = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.lowerLimit && - ((0,date_fns__WEBPACK_IMPORTED_MODULE_17__.default)(props.lowerLimit, props.pageDate) || - (0,date_fns__WEBPACK_IMPORTED_MODULE_7__.default)(props.pageDate, props.lowerLimit))); - const rightDisabled = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.upperLimit && - ((0,date_fns__WEBPACK_IMPORTED_MODULE_17__.default)(props.upperLimit, props.pageDate) || - (0,date_fns__WEBPACK_IMPORTED_MODULE_8__.default)(props.pageDate, props.upperLimit))); - const previousPage = () => emit('update:pageDate', (0,date_fns__WEBPACK_IMPORTED_MODULE_27__.default)(props.pageDate, 1)); - const nextPage = () => emit('update:pageDate', (0,date_fns__WEBPACK_IMPORTED_MODULE_28__.default)(props.pageDate, 1)); - return { - weekDays, - days, - heading, - leftDisabled, - rightDisabled, - previousPage, - nextPage, - }; - }, -}); - -function render$3(_ctx, _cache, $props, $setup, $data, $options) { - const _component_picker_popup = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("picker-popup"); - - return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_picker_popup, { - headingClickable: "", - leftDisabled: _ctx.leftDisabled, - rightDisabled: _ctx.rightDisabled, - items: _ctx.days, - onLeft: _ctx.previousPage, - onRight: _ctx.nextPage, - onHeading: _cache[1] || (_cache[1] = $event => (_ctx.$emit('back'))), - onElementClick: _cache[2] || (_cache[2] = $event => (_ctx.$emit('select', $event))) - }, { - heading: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.heading), 1 /* TEXT */) - ]), - subheading: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ - ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(_ctx.weekDays, (day) => { - return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("span", { key: day }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(day), 1 /* TEXT */)) - }), 128 /* KEYED_FRAGMENT */)) - ]), - _: 1 /* STABLE */ - }, 8 /* PROPS */, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"])) -} - -script$3.render = render$3; -script$3.__file = "src/datepicker/DayPicker.vue"; - -var script$4 = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ - components: { - YearPicker: script$1, - MonthPicker: script$2, - DayPicker: script$3, - }, - inheritAttrs: false, - props: { - placeholder: { - type: String, - default: '', - }, - /** - * `v-model` for selected date - */ - modelValue: { - type: Date, - required: false, - }, - /** - * Dates not available for picking - */ - disabledDates: { - type: Object, - required: false, - }, - /** - * Upper limit for available dates for picking - */ - upperLimit: { - type: Date, - required: false, - }, - /** - * Lower limit for available dates for picking - */ - lowerLimit: { - type: Date, - required: false, - }, - /** - * View on which the date picker should open. Can be either `year`, `month`, or `day` - */ - startingView: { - type: String, - required: false, - default: 'day', - validate: (v) => typeof v === 'string' && ['day', 'month', 'year'].includes(v), - }, - /** - * `date-fns`-type formatting for a month view heading - */ - monthHeadingFormat: { - type: String, - required: false, - default: 'LLLL yyyy', - }, - /** - * `date-fns`-type formatting for the month picker view - */ - monthListFormat: { - type: String, - required: false, - default: 'LLL', - }, - /** - * `date-fns`-type formatting for a line of weekdays on day view - */ - weekdayFormat: { - type: String, - required: false, - default: 'EE', - }, - /** - * `date-fns`-type format in which the string in the input should be both - * parsed and displayed - */ - inputFormat: { - type: String, - required: false, - default: 'yyyy-MM-dd', - }, - /** - * [`date-fns` locale object](https://date-fns.org/v2.16.1/docs/I18n#usage). - * Used in string formatting (see default `monthHeadingFormat`) - */ - locale: { - type: Object, - required: false, - }, - /** - * Day on which the week should start. - * - * Number from 0 to 6, where 0 is Sunday and 6 is Saturday. - * Week starts with a Monday (1) by default - */ - weekStartsOn: { - type: Number, - required: false, - default: 1, - validator: (value) => [0, 1, 2, 3, 4, 5, 6].includes(value), - }, - /** - * Disables datepicker and prevents it's opening - */ - disabled: { - type: Boolean, - required: false, - default: false, - }, - }, - emits: { - 'update:modelValue': (value) => value === null || value === undefined || (0,date_fns__WEBPACK_IMPORTED_MODULE_1__.default)(value), - }, - setup(props, { emit }) { - const viewShown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)('none'); - const pageDate = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(new Date()); - const input = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(''); - (0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)(() => { - const parsed = (0,date_fns__WEBPACK_IMPORTED_MODULE_29__.default)(input.value, props.inputFormat, new Date()); - if ((0,date_fns__WEBPACK_IMPORTED_MODULE_1__.default)(parsed)) { - pageDate.value = parsed; - } - }); - (0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)(() => (input.value = - props.modelValue && (0,date_fns__WEBPACK_IMPORTED_MODULE_1__.default)(props.modelValue) - ? (0,date_fns__WEBPACK_IMPORTED_MODULE_30__.default)(props.modelValue, props.inputFormat) - : '')); - const renderView = (view = 'none') => { - if (!props.disabled) - viewShown.value = view; - }; - (0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)(() => { - if (props.disabled) - viewShown.value = 'none'; - }); - const selectYear = (date) => { - pageDate.value = date; - viewShown.value = 'month'; - }; - const selectMonth = (date) => { - pageDate.value = date; - viewShown.value = 'day'; - }; - const selectDay = (date) => { - emit('update:modelValue', date); - viewShown.value = 'none'; - }; - return { - input, - pageDate, - renderView, - selectYear, - selectMonth, - selectDay, - viewShown, - log: (e) => console.log(e), - }; - }, -}); - -const _hoisted_1$1 = { class: "v3dp__datepicker" }; - -function render$4(_ctx, _cache, $props, $setup, $data, $options) { - const _component_year_picker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("year-picker"); - const _component_month_picker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("month-picker"); - const _component_day_picker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("day-picker"); - - return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_1$1, [ - (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("input", (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ - type: "text", - readonly: "readonly", - "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (_ctx.input = $event)) - }, _ctx.$attrs, { - placeholder: _ctx.placeholder, - disabled: _ctx.disabled, - tabindex: _ctx.disabled ? -1 : 0, - onBlur: _cache[2] || (_cache[2] = $event => (_ctx.renderView())), - onFocus: _cache[3] || (_cache[3] = $event => (_ctx.renderView(_ctx.startingView))), - onClick: _cache[4] || (_cache[4] = $event => (_ctx.renderView(_ctx.startingView))) - }), null, 16 /* FULL_PROPS */, ["placeholder", "disabled", "tabindex"]), [ - [vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, _ctx.input] - ]), - (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_year_picker, { - pageDate: _ctx.pageDate, - "onUpdate:pageDate": _cache[5] || (_cache[5] = $event => (_ctx.pageDate = $event)), - selected: _ctx.modelValue, - lowerLimit: _ctx.lowerLimit, - upperLimit: _ctx.upperLimit, - onSelect: _ctx.selectYear - }, null, 8 /* PROPS */, ["pageDate", "selected", "lowerLimit", "upperLimit", "onSelect"]), [ - [vue__WEBPACK_IMPORTED_MODULE_0__.vShow, _ctx.viewShown === 'year'] - ]), - (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_month_picker, { - pageDate: _ctx.pageDate, - "onUpdate:pageDate": _cache[6] || (_cache[6] = $event => (_ctx.pageDate = $event)), - selected: _ctx.modelValue, - onSelect: _ctx.selectMonth, - lowerLimit: _ctx.lowerLimit, - upperLimit: _ctx.upperLimit, - format: _ctx.monthListFormat, - headingFormat: _ctx.monthHeadingFormat, - locale: _ctx.locale, - onBack: _cache[7] || (_cache[7] = $event => (_ctx.viewShown = 'year')) - }, null, 8 /* PROPS */, ["pageDate", "selected", "onSelect", "lowerLimit", "upperLimit", "format", "headingFormat", "locale"]), [ - [vue__WEBPACK_IMPORTED_MODULE_0__.vShow, _ctx.viewShown === 'month'] - ]), - (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_day_picker, { - pageDate: _ctx.pageDate, - "onUpdate:pageDate": _cache[8] || (_cache[8] = $event => (_ctx.pageDate = $event)), - selected: _ctx.modelValue, - weekStartsOn: _ctx.weekStartsOn, - lowerLimit: _ctx.lowerLimit, - upperLimit: _ctx.upperLimit, - disabledDates: _ctx.disabledDates, - locale: _ctx.locale, - weekdayFormat: _ctx.weekdayFormat, - onSelect: _ctx.selectDay, - onBack: _cache[9] || (_cache[9] = $event => (_ctx.viewShown = 'month')) - }, null, 8 /* PROPS */, ["pageDate", "selected", "weekStartsOn", "lowerLimit", "upperLimit", "disabledDates", "locale", "weekdayFormat", "onSelect"]), [ - [vue__WEBPACK_IMPORTED_MODULE_0__.vShow, _ctx.viewShown === 'day'] - ]) - ])) -} - -var css_248z$1 = "\n.v3dp__datepicker {\n --popout-bg-color: var(--vdp-bg-color, #fff);\n --box-shadow: var(\n --vdp-box-shadow,\n 0 4px 10px 0 rgba(128, 144, 160, 0.1),\n 0 0 1px 0 rgba(128, 144, 160, 0.81)\n );\n --text-color: var(--vdp-text-color, #000000);\n --border-radius: var(--vdp-border-radius, 3px);\n --heading-size: var(--vdp-heading-size, 2.5em); /* 40px for 16px font */\n --heading-weight: var(--vdp-heading-weight, bold);\n --heading-hover-color: var(--vdp-heading-hover-color, #eeeeee);\n --arrow-color: var(--vdp-arrow-color, currentColor);\n\n --elem-color: var(--vdp-elem-color, currentColor);\n --elem-disabled-color: var(--vdp-disabled-color, #d5d9e0);\n --elem-hover-color: var(--vdp-hover-color, #fff);\n --elem-hover-bg-color: var(--vdp-hover-bg-color, #0baf74);\n --elem-selected-color: var(--vdp-selected-color, #fff);\n --elem-selected-bg-color: var(--vdp-selected-bg-color, #0baf74);\n\n --elem-font-size: var(--vdp-elem-font-size, 0.8em);\n --elem-border-radius: var(--vdp-elem-border-radius, 3px);\n\n --divider-color: var(--vdp-divider-color, var(--elem-disabled-color));\n\n position: relative;\n}\n"; -styleInject(css_248z$1); - -script$4.render = render$4; -script$4.__file = "src/datepicker/Datepicker.vue"; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script$4); - - /***/ }), /***/ "./node_modules/vuex/dist/vuex.esm-bundler.js": diff --git a/resources/js/Components/Cars/CreateOrSelect.vue b/resources/js/Components/Cars/CreateOrSelect.vue index d3aedce..99cf3ec 100644 --- a/resources/js/Components/Cars/CreateOrSelect.vue +++ b/resources/js/Components/Cars/CreateOrSelect.vue @@ -13,7 +13,7 @@
- +
oder
-
- +
+

Neues Auto erfassen:

@@ -72,6 +72,7 @@ export default { car: { id: this.existing_car?.id ?? null, name: this.existing_car?.name ?? null, + label: this.existing_car?.label ?? null, stammnummer: this.existing_car?.stammnummer ?? null, vin: this.existing_car?.vin ?? null, colour: this.existing_car?.colour ?? null, diff --git a/resources/js/Components/Contacts/CreateOrSelect.vue b/resources/js/Components/Contacts/CreateOrSelect.vue index 3a5e651..6686941 100644 --- a/resources/js/Components/Contacts/CreateOrSelect.vue +++ b/resources/js/Components/Contacts/CreateOrSelect.vue @@ -22,8 +22,8 @@
-
- +
+

Neuen Kontakt erfassen:

diff --git a/resources/js/Components/Documents/Upload.vue b/resources/js/Components/Documents/Upload.vue index 21369c0..f8d0b16 100644 --- a/resources/js/Components/Documents/Upload.vue +++ b/resources/js/Components/Documents/Upload.vue @@ -1,7 +1,7 @@