├── client ├── src │ ├── styles │ │ ├── _variables.scss │ │ ├── _styles.scss │ │ └── bundle.scss │ ├── bundles │ │ └── bundle.js │ └── forms │ │ ├── DateField.js │ │ ├── DatetimeField.js │ │ └── TimeField.js └── dist │ ├── styles │ └── bundle.css │ └── js │ └── bundle.js ├── postcss.config.js ├── _config ├── model.yml └── config.yml ├── admin └── client │ ├── src │ ├── styles │ │ ├── _mixins.scss │ │ ├── _styles.scss │ │ ├── bundle.scss │ │ ├── _variables.scss │ │ └── _flatpickr.scss │ ├── bundles │ │ └── bundle.js │ └── forms │ │ ├── DateField.js │ │ ├── DatetimeField.js │ │ └── TimeField.js │ └── dist │ ├── styles │ └── bundle.css │ └── js │ └── bundle.js ├── _config.php ├── composer.json ├── src └── Extensions │ ├── ControllerExtension.php │ └── FormFieldExtension.php ├── templates └── SilverWare │ └── Calendar │ └── Extensions │ └── ControllerExtension │ └── CustomCSS.ss ├── package.json └── webpack.config.js /client/src/styles/_variables.scss: -------------------------------------------------------------------------------- 1 | /* SilverWare Calendar Variables 2 | ===================================================================================================================== */ 3 | 4 | $color-brand: theme-color("primary"); 5 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | /* PostCSS Configuration 2 | ===================================================================================================================== */ 3 | 4 | module.exports = { 5 | plugins: [ 6 | require('autoprefixer') 7 | ] 8 | }; 9 | -------------------------------------------------------------------------------- /_config/model.yml: -------------------------------------------------------------------------------- 1 | --- 2 | Name: silverware-calendar-model 3 | --- 4 | 5 | # SilverWare Calendar Model: 6 | 7 | SilverStripe\Core\Injector\Injector: 8 | SilverWare\Calendar\Extensions\FormFieldExtension: 9 | class: SilverWare\Calendar\Extensions\FormFieldExtension 10 | type: prototype 11 | -------------------------------------------------------------------------------- /admin/client/src/styles/_mixins.scss: -------------------------------------------------------------------------------- 1 | /* SilverWare Calendar Admin Mixins 2 | ===================================================================================================================== */ 3 | 4 | @mixin vertical-align($position: relative) { 5 | top: 50%; 6 | position: $position; 7 | transform: translateY(-50%); 8 | } 9 | -------------------------------------------------------------------------------- /client/src/styles/_styles.scss: -------------------------------------------------------------------------------- 1 | /* SilverWare Calendar Styles 2 | ===================================================================================================================== */ 3 | 4 | .field.date, 5 | .field.time, 6 | .field.datetime { 7 | 8 | input.flatpickr-input { 9 | background-color: $input-bg; 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /admin/client/src/styles/_styles.scss: -------------------------------------------------------------------------------- 1 | /* SilverWare Calendar Admin Styles 2 | ===================================================================================================================== */ 3 | 4 | .field.date, 5 | .field.time, 6 | .field.datetime { 7 | 8 | input.flatpickr-input { 9 | background-color: $input-bg; 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /client/src/bundles/bundle.js: -------------------------------------------------------------------------------- 1 | /* SilverWare Calendar Bundle 2 | ===================================================================================================================== */ 3 | 4 | // Load Flatpickr Styles: 5 | 6 | require('flatpickr/dist/flatpickr.css'); 7 | 8 | // Load Styles: 9 | 10 | require('styles/bundle.scss'); 11 | 12 | // Load Form Fields: 13 | 14 | require('forms/DateField.js'); 15 | require('forms/DatetimeField.js'); 16 | require('forms/TimeField.js'); 17 | -------------------------------------------------------------------------------- /admin/client/src/bundles/bundle.js: -------------------------------------------------------------------------------- 1 | /* SilverWare Calendar Admin Bundle 2 | ===================================================================================================================== */ 3 | 4 | // Load Flatpickr Styles: 5 | 6 | require('flatpickr/dist/flatpickr.css'); 7 | 8 | // Load Styles: 9 | 10 | require('styles/bundle.scss'); 11 | 12 | // Load Form Fields: 13 | 14 | require('forms/DateField.js'); 15 | require('forms/DatetimeField.js'); 16 | require('forms/TimeField.js'); 17 | -------------------------------------------------------------------------------- /_config.php: -------------------------------------------------------------------------------- 1 | =5.6.0 7 | * 8 | * For full copyright and license information, please view the 9 | * LICENSE.md file that was distributed with this source code. 10 | * 11 | * @package SilverWare\Calendar 12 | * @author Colin Tucker 13 | * @copyright 2017 Praxis Interactive 14 | * @license https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause 15 | * @link https://github.com/praxisnetau/silverware-calendar 16 | */ 17 | -------------------------------------------------------------------------------- /admin/client/src/styles/bundle.scss: -------------------------------------------------------------------------------- 1 | /* SilverWare Calendar Admin Bundle 2 | ===================================================================================================================== */ 3 | 4 | // Import SilverStripe Admin Styles: 5 | 6 | @import "~silverstripe-admin/styles/variables"; 7 | @import "~silverstripe-admin/styles/legacy/themes/default"; 8 | 9 | // Import Bootstrap Styles: 10 | 11 | @import "~bootstrap/scss/mixins"; 12 | @import "~bootstrap/scss/functions"; 13 | @import "~bootstrap/scss/variables"; 14 | 15 | // Import Local Styles: 16 | 17 | @import "variables"; 18 | @import "mixins"; 19 | @import "styles"; 20 | @import "flatpickr"; 21 | -------------------------------------------------------------------------------- /client/src/forms/DateField.js: -------------------------------------------------------------------------------- 1 | /* Date Field 2 | ===================================================================================================================== */ 3 | 4 | import $ from 'jquery'; 5 | import 'flatpickr'; 6 | 7 | $(function() { 8 | 9 | $('input[type=date]').each(function() { 10 | 11 | // Obtain Self: 12 | 13 | var $self = $(this); 14 | 15 | // Define Config: 16 | 17 | var config = { 18 | altInput: true 19 | }; 20 | 21 | // Initialise Flatpickr: 22 | 23 | if ($self.data('calendar-enabled')) { 24 | $self.flatpickr($.extend(config, $self.data('calendar-config'))); 25 | } 26 | 27 | }); 28 | 29 | }); 30 | -------------------------------------------------------------------------------- /client/src/forms/DatetimeField.js: -------------------------------------------------------------------------------- 1 | /* Datetime Field 2 | ===================================================================================================================== */ 3 | 4 | import $ from 'jquery'; 5 | import 'flatpickr'; 6 | 7 | $(function() { 8 | 9 | $('input[type=datetime-local]').each(function() { 10 | 11 | // Obtain Self: 12 | 13 | var $self = $(this); 14 | 15 | // Define Config: 16 | 17 | var config = { 18 | altInput: true, 19 | enableTime: true 20 | }; 21 | 22 | // Initialise Flatpickr: 23 | 24 | if ($self.data('calendar-enabled')) { 25 | $self.flatpickr($.extend(config, $self.data('calendar-config'))); 26 | } 27 | 28 | }); 29 | 30 | }); 31 | -------------------------------------------------------------------------------- /client/src/forms/TimeField.js: -------------------------------------------------------------------------------- 1 | /* Time Field 2 | ===================================================================================================================== */ 3 | 4 | import $ from 'jquery'; 5 | import 'flatpickr'; 6 | 7 | $(function() { 8 | 9 | $('input[type=time]').each(function() { 10 | 11 | // Obtain Self: 12 | 13 | var $self = $(this); 14 | 15 | // Define Config: 16 | 17 | var config = { 18 | altInput: true, 19 | enableTime: true, 20 | noCalendar: true 21 | }; 22 | 23 | // Initialise Flatpickr: 24 | 25 | if ($self.data('calendar-enabled')) { 26 | $self.flatpickr($.extend(config, $self.data('calendar-config'))); 27 | } 28 | 29 | }); 30 | 31 | }); 32 | -------------------------------------------------------------------------------- /client/src/styles/bundle.scss: -------------------------------------------------------------------------------- 1 | /* SilverWare Calendar Bundle 2 | ===================================================================================================================== */ 3 | 4 | // Import SilverWare Theme Files: 5 | 6 | @import "~silverware-theme/styles/variables"; 7 | @import "~silverware-theme/styles/mixins"; 8 | 9 | // Import Bootstrap Styles: 10 | 11 | @import "~bootstrap/scss/mixins"; 12 | @import "~bootstrap/scss/functions"; 13 | @import "~bootstrap/scss/variables"; 14 | 15 | // Import Local Variables: 16 | 17 | @import "variables"; 18 | 19 | // Import Admin Styles: 20 | 21 | @import "~calendar-admin/styles/variables"; 22 | @import "~calendar-admin/styles/mixins"; 23 | @import "~calendar-admin/styles/styles"; 24 | @import "~calendar-admin/styles/flatpickr"; 25 | 26 | // Import Local Styles: 27 | 28 | @import "styles"; 29 | -------------------------------------------------------------------------------- /admin/client/src/forms/DateField.js: -------------------------------------------------------------------------------- 1 | /* Date Field 2 | ===================================================================================================================== */ 3 | 4 | import $ from 'jquery'; 5 | import 'flatpickr'; 6 | 7 | $.entwine('silverware.datefield', function($) { 8 | 9 | // Handle Date Fields: 10 | 11 | $('input[type=date]').entwine({ 12 | 13 | onmatch: function() { 14 | 15 | // Obtain Self: 16 | 17 | var $self = $(this); 18 | 19 | // Define Config: 20 | 21 | var config = { 22 | altInput: true 23 | }; 24 | 25 | // Initialise Flatpickr: 26 | 27 | if ($self.data('calendar-enabled')) { 28 | $self.flatpickr($.extend(config, $self.data('calendar-config'))); 29 | } 30 | 31 | // Trigger Next Method: 32 | 33 | this._super(); 34 | 35 | } 36 | 37 | }); 38 | 39 | }); 40 | -------------------------------------------------------------------------------- /admin/client/src/forms/DatetimeField.js: -------------------------------------------------------------------------------- 1 | /* Datetime Field 2 | ===================================================================================================================== */ 3 | 4 | import $ from 'jquery'; 5 | import 'flatpickr'; 6 | 7 | $.entwine('silverware.datetimefield', function($) { 8 | 9 | // Handle Date Fields: 10 | 11 | $('input[type=datetime-local]').entwine({ 12 | 13 | onmatch: function() { 14 | 15 | // Obtain Self: 16 | 17 | var $self = $(this); 18 | 19 | // Define Config: 20 | 21 | var config = { 22 | altInput: true, 23 | enableTime: true 24 | }; 25 | 26 | // Initialise Flatpickr: 27 | 28 | if ($self.data('calendar-enabled')) { 29 | $self.flatpickr($.extend(config, $self.data('calendar-config'))); 30 | } 31 | 32 | // Trigger Next Method: 33 | 34 | this._super(); 35 | 36 | } 37 | 38 | }); 39 | 40 | }); 41 | -------------------------------------------------------------------------------- /admin/client/src/forms/TimeField.js: -------------------------------------------------------------------------------- 1 | /* Time Field 2 | ===================================================================================================================== */ 3 | 4 | import $ from 'jquery'; 5 | import 'flatpickr'; 6 | 7 | $.entwine('silverware.timefield', function($) { 8 | 9 | // Handle Date Fields: 10 | 11 | $('input[type=time]').entwine({ 12 | 13 | onmatch: function() { 14 | 15 | // Obtain Self: 16 | 17 | var $self = $(this); 18 | 19 | // Define Config: 20 | 21 | var config = { 22 | altInput: true, 23 | enableTime: true, 24 | noCalendar: true 25 | }; 26 | 27 | // Initialise Flatpickr: 28 | 29 | if ($self.data('calendar-enabled')) { 30 | $self.flatpickr($.extend(config, $self.data('calendar-config'))); 31 | } 32 | 33 | // Trigger Next Method: 34 | 35 | this._super(); 36 | 37 | } 38 | 39 | }); 40 | 41 | }); 42 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "silverware/calendar", 3 | "type": "silverstripe-vendormodule", 4 | "description": "SilverWare Calendar Module.", 5 | "homepage": "https://github.com/praxisnetau/silverware-calendar", 6 | "keywords": [ 7 | "silverware", 8 | "calendar", 9 | "date", 10 | "time", 11 | "datepicker", 12 | "timepicker", 13 | "silverstripe" 14 | ], 15 | "license": "BSD-3-Clause", 16 | "authors": [ 17 | { 18 | "name": "Colin Tucker", 19 | "role": "Developer", 20 | "email": "colin@praxis.net.au", 21 | "homepage": "http://www.praxis.net.au" 22 | } 23 | ], 24 | "require": { 25 | "php": ">=5.6.0", 26 | "silverstripe/framework": "^4@dev" 27 | }, 28 | "autoload": { 29 | "psr-4": { 30 | "SilverWare\\Calendar\\": "src/" 31 | } 32 | }, 33 | "extra": { 34 | "branch-alias": { 35 | "dev-master": "1.0.x-dev" 36 | }, 37 | "expose": [ 38 | "admin/client/dist", 39 | "client/dist" 40 | ] 41 | }, 42 | "minimum-stability": "dev", 43 | "prefer-stable": true 44 | } 45 | -------------------------------------------------------------------------------- /_config/config.yml: -------------------------------------------------------------------------------- 1 | --- 2 | Name: silverware-calendar 3 | --- 4 | 5 | # Configure Admin Extensions: 6 | 7 | SilverStripe\Admin\LeftAndMain: 8 | extra_requirements_css: 9 | - "silverware/calendar: admin/client/dist/styles/bundle.css" 10 | extra_requirements_javascript: 11 | - "silverware/calendar: admin/client/dist/js/bundle.js" 12 | extensions: 13 | - SilverWare\Calendar\Extensions\ControllerExtension 14 | 15 | # Configure Content Controller: 16 | 17 | SilverStripe\CMS\Controllers\ContentController: 18 | required_js: 19 | - "silverware/calendar: client/dist/js/bundle.js" 20 | required_css: 21 | - "silverware/calendar: client/dist/styles/bundle.css" 22 | extensions: 23 | - SilverWare\Calendar\Extensions\ControllerExtension 24 | 25 | # Configure Form Field: 26 | 27 | SilverStripe\Forms\FormField: 28 | calendar_datepicker_class: 'hasDatepicker' 29 | 30 | # Configure Date Field: 31 | 32 | SilverStripe\Forms\DateField: 33 | extensions: 34 | - SilverWare\Calendar\Extensions\FormFieldExtension 35 | 36 | # Configure Datetime Field: 37 | 38 | SilverStripe\Forms\DatetimeField: 39 | extensions: 40 | - SilverWare\Calendar\Extensions\FormFieldExtension 41 | 42 | # Configure Time Field: 43 | 44 | SilverStripe\Forms\TimeField: 45 | extensions: 46 | - SilverWare\Calendar\Extensions\FormFieldExtension 47 | -------------------------------------------------------------------------------- /src/Extensions/ControllerExtension.php: -------------------------------------------------------------------------------- 1 | =5.6.0 7 | * 8 | * For full copyright and license information, please view the 9 | * LICENSE.md file that was distributed with this source code. 10 | * 11 | * @package SilverWare\Calendar\Extensions 12 | * @author Colin Tucker 13 | * @copyright 2017 Praxis Interactive 14 | * @license https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause 15 | * @link https://github.com/praxisnetau/silverware-calendar 16 | */ 17 | 18 | namespace SilverWare\Calendar\Extensions; 19 | 20 | use SilverStripe\Core\Extension; 21 | use SilverStripe\View\Requirements; 22 | 23 | /** 24 | * An extension which adds SilverWare Calendar functionality to controllers. 25 | * 26 | * @package SilverWare\Calendar\Extensions 27 | * @author Colin Tucker 28 | * @copyright 2017 Praxis Interactive 29 | * @license https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause 30 | * @link https://github.com/praxisnetau/silverware-calendar 31 | */ 32 | class ControllerExtension extends Extension 33 | { 34 | /** 35 | * Event handler method triggered before the extended controller has initialised. 36 | * 37 | * @return void 38 | */ 39 | public function onBeforeInit() 40 | { 41 | if ($this->owner->getCalendarHighlightColor()) { 42 | Requirements::customCSS($this->getCustomCSS()); 43 | } 44 | } 45 | 46 | /** 47 | * Answers the calendar highlight color from configuration. 48 | * 49 | * @return string 50 | */ 51 | public function getCalendarHighlightColor() 52 | { 53 | return $this->owner->config()->calendar_highlight_color; 54 | } 55 | 56 | /** 57 | * Answers the custom CSS required for the extension. 58 | * 59 | * @return string 60 | */ 61 | protected function getCustomCSS() 62 | { 63 | return $this->owner->renderWith(sprintf('%s\CustomCSS', self::class)); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /templates/SilverWare/Calendar/Extensions/ControllerExtension/CustomCSS.ss: -------------------------------------------------------------------------------- 1 | div.flatpickr-calendar .flatpickr-month { 2 | background: {$CalendarHighlightColor}; 3 | } 4 | 5 | div.flatpickr-calendar .flatpickr-innerContainer { 6 | border-color: {$CalendarHighlightColor}; 7 | } 8 | 9 | div.flatpickr-calendar.arrowTop::after { 10 | border-bottom-color: {$CalendarHighlightColor}; 11 | } 12 | 13 | span.flatpickr-day.selected, 14 | span.flatpickr-day.selected:hover, 15 | span.flatpickr-day.selected:focus, 16 | span.flatpickr-day.startRange 17 | span.flatpickr-day.startRange:hover, 18 | span.flatpickr-day.startRange:focus, 19 | span.flatpickr-day.startRange.inRange, 20 | span.flatpickr-day.startRange.inRange:hover, 21 | span.flatpickr-day.startRange.inRange:focus, 22 | span.flatpickr-day.endRange, 23 | span.flatpickr-day.endRange:hover, 24 | span.flatpickr-day.endRange:focus, 25 | span.flatpickr-day.endRange.inRange, 26 | span.flatpickr-day.endRange.inRange:hover, 27 | span.flatpickr-day.endRange.inRange:focus, 28 | span.flatpickr-day.nextMonthDay.startRange, 29 | span.flatpickr-day.prevMonthDay.startRange, 30 | span.flatpickr-day.nextMonthDay.endRange, 31 | span.flatpickr-day.prevMonthDay.endRange, 32 | span.flatpickr-day.nextMonthDay.selected, 33 | span.flatpickr-day.nextMonthDay.selected:hover, 34 | span.flatpickr-day.nextMonthDay.selected:focus, 35 | span.flatpickr-day.prevMonthDayselected, 36 | span.flatpickr-day.prevMonthDay.selected:hover, 37 | span.flatpickr-day.prevMonthDay.selected:focus { 38 | background: {$CalendarHighlightColor}; 39 | border-color: {$CalendarHighlightColor}; 40 | } 41 | 42 | span.flatpickr-day.today, 43 | span.flatpickr-day.today:hover, 44 | span.flatpickr-day.today.inRange, 45 | span.flatpickr-day.today.inRange:hover { 46 | border-color: {$CalendarHighlightColor}; 47 | } 48 | 49 | div.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time { 50 | border-color: {$CalendarHighlightColor}; 51 | } 52 | 53 | div.flatpickr-calendar.showTimeInput.hasTime.noCalendar .flatpickr-time { 54 | border-top-color: {$CalendarHighlightColor}; 55 | } 56 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "silverware-calendar", 3 | "version": "1.0.0", 4 | "description": "SilverWare Calendar Module.", 5 | "homepage": "https://github.com/praxisnetau/silverware-calendar", 6 | "keywords": [ 7 | "silverware", 8 | "calendar", 9 | "date", 10 | "time", 11 | "datepicker", 12 | "timepicker", 13 | "silverstripe" 14 | ], 15 | "license": "BSD-3-Clause", 16 | "author": "Praxis Interactive", 17 | "contributors": [ 18 | { 19 | "name": "Colin Tucker", 20 | "email": "colin@praxis.net.au", 21 | "url": "https://www.praxis.net.au" 22 | } 23 | ], 24 | "repository": { 25 | "type": "git", 26 | "url": "https://github.com/praxisnetau/silverware-calendar.git" 27 | }, 28 | "bugs": { 29 | "url": "https://github.com/praxisnetau/silverware-calendar/issues" 30 | }, 31 | "engines": { 32 | "node": "^8.x" 33 | }, 34 | "scripts": { 35 | "watch": "webpack --env.development --colors --watch", 36 | "build": "webpack --env.production --colors --progress --optimize-minimize" 37 | }, 38 | "dependencies": {}, 39 | "devDependencies": { 40 | "autoprefixer": "^8.2.0", 41 | "babel-core": "^6.26.0", 42 | "babel-loader": "^7.1.4", 43 | "babel-preset-env": "^1.6.1", 44 | "clean-webpack-plugin": "^0.1.19", 45 | "copy-webpack-plugin": "^4.5.1", 46 | "css-loader": "^0.28.11", 47 | "extract-text-webpack-plugin": "^3.0.2", 48 | "file-loader": "^1.1.11", 49 | "flatpickr": "^3.1.5", 50 | "node-sass": "^4.8.3", 51 | "postcss-loader": "^2.1.3", 52 | "resolve-url-loader": "^2.3.0", 53 | "sass-loader": "^6.0.7", 54 | "style-loader": "^0.20.3", 55 | "svgo": "^1.0.5", 56 | "svgo-loader": "^2.1.0", 57 | "uglifyjs-webpack-plugin": "^1.2.4", 58 | "url-loader": "^1.0.1", 59 | "webpack": "^3.11.0" 60 | }, 61 | "babel": { 62 | "presets": [ 63 | [ 64 | "env", 65 | { 66 | "modules": false 67 | } 68 | ] 69 | ] 70 | }, 71 | "browserslist": [ 72 | "> 1%", 73 | "last 2 versions" 74 | ] 75 | } 76 | -------------------------------------------------------------------------------- /admin/client/src/styles/_variables.scss: -------------------------------------------------------------------------------- 1 | /* SilverWare Calendar Admin Variables 2 | ===================================================================================================================== */ 3 | 4 | // Colors: 5 | 6 | $calendar-background: $white !default; 7 | 8 | $calendar-border-color: transparent !default; 9 | 10 | $calendar-inner-border-color: $color-brand !default; 11 | 12 | $calendar-month-nav-background: $color-brand !default; 13 | 14 | $calendar-month-nav-arrow-color: rgba($white, 0.5) !default; 15 | $calendar-month-nav-arrow-hover-color: $white !default; 16 | 17 | $calendar-month-current-foreground: $white !default; 18 | $calendar-year-current-foreground: rgba(255, 255, 255, 0.75) !default; 19 | $calendar-year-current-hover-foreground: $white !default; 20 | 21 | $calendar-weekday-background: $gray-100 !default; 22 | $calendar-weekday-foreground: $gray-600 !default; 23 | 24 | $calendar-today-border-color: $color-brand !default; 25 | 26 | $calendar-day-background: transparent !default; 27 | $calendar-day-foreground: $body-color !default; 28 | 29 | $calendar-day-hover-background: $gray-300 !default; 30 | $calendar-day-hover-foreground: $body-color !default; 31 | $calendar-day-hover-border-color: $gray-300 !default; 32 | 33 | $calendar-day-selected-background: $color-brand !default; 34 | $calendar-day-selected-foreground: $white !default; 35 | $calendar-day-selected-border-color: $color-brand !default; 36 | 37 | $calendar-day-disabled-foreground: rgba($calendar-day-foreground, 0.4) !default; 38 | $calendar-day-disabled-hover-background: lighten($calendar-day-hover-background, 5%) !default; 39 | $calendar-day-disabled-hover-border-color: lighten($calendar-day-hover-border-color, 5%) !default; 40 | 41 | $calendar-datetime-border-color: $gray-200 !default; 42 | $calendar-time-border-color: $color-brand !default; 43 | $calendar-time-input-hover-background: $gray-200 !default; 44 | 45 | $calendar-weeks-border-color: $gray-200 !default; 46 | 47 | $calendar-range-background: $gray-200 !default; 48 | 49 | // Shadow: 50 | 51 | $calendar-box-shadow: none !default; 52 | 53 | // Fonts: 54 | 55 | $calendar-month-current-font-weight: $font-weight-bold !default; 56 | $calendar-year-current-font-weight: $font-weight-normal !default; 57 | $calendar-weekday-font-weight: $font-weight-normal !default; 58 | $calendar-week-font-weight: $font-weight-bold !default; 59 | 60 | // Borders: 61 | 62 | $calendar-border-width: 0 !default; 63 | $calendar-inner-border-width: 1px !default; 64 | $calendar-day-border-radius: 0 !default; 65 | $calendar-time-border-width: 1px !default; 66 | 67 | // Sizes: 68 | 69 | $calendar-arrow-top-size: 10px !default; 70 | $calendar-arrow-bottom-size: 10px !default; 71 | $calender-month-nav-arrow-padding: 0 10px !default; 72 | $calendar-month-nav-height: 50px !default; 73 | $calendar-weekdays-height: 40px !default; 74 | -------------------------------------------------------------------------------- /src/Extensions/FormFieldExtension.php: -------------------------------------------------------------------------------- 1 | =5.6.0 7 | * 8 | * For full copyright and license information, please view the 9 | * LICENSE.md file that was distributed with this source code. 10 | * 11 | * @package SilverWare\Calendar\Extensions 12 | * @author Colin Tucker 13 | * @copyright 2017 Praxis Interactive 14 | * @license https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause 15 | * @link https://github.com/praxisnetau/silverware-calendar 16 | */ 17 | 18 | namespace SilverWare\Calendar\Extensions; 19 | 20 | use SilverStripe\Core\Convert; 21 | use SilverStripe\Core\Extension; 22 | use SilverStripe\Forms\FormField; 23 | 24 | /** 25 | * An extension which adds SilverWare Calendar functionality to form fields. 26 | * 27 | * @package SilverWare\Calendar\Extensions 28 | * @author Colin Tucker 29 | * @copyright 2017 Praxis Interactive 30 | * @license https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause 31 | * @link https://github.com/praxisnetau/silverware-calendar 32 | */ 33 | class FormFieldExtension extends Extension 34 | { 35 | /** 36 | * Holds the calendar picker config for the extended object. 37 | * 38 | * @var array 39 | */ 40 | protected $calendarConfig = []; 41 | 42 | /** 43 | * If set to true, disables the calendar picker for the extended object. 44 | * 45 | * @var boolean 46 | */ 47 | protected $calendarDisabled = false; 48 | 49 | /** 50 | * Defines either the named calendar config value, or the calendar config array. 51 | * 52 | * @param string|array $arg1 53 | * @param string $arg2 54 | * 55 | * @return $this 56 | */ 57 | public function setCalendarConfig($arg1, $arg2 = null) 58 | { 59 | if (is_array($arg1)) { 60 | $this->calendarConfig = $arg1; 61 | } else { 62 | $this->calendarConfig[$arg1] = $arg2; 63 | } 64 | 65 | return $this; 66 | } 67 | 68 | /** 69 | * Answers either the named calendar config value, or the calendar config array. 70 | * 71 | * @param string $name 72 | * 73 | * @return mixed 74 | */ 75 | public function getCalendarConfig($name = null) 76 | { 77 | if (!is_null($name)) { 78 | return isset($this->calendarConfig[$name]) ? $this->calendarConfig[$name] : null; 79 | } 80 | 81 | return $this->calendarConfig; 82 | } 83 | 84 | /** 85 | * Defines the value of the calendarDisabled attribute. 86 | * 87 | * @param boolean $calendarDisabled 88 | * 89 | * @return $this 90 | */ 91 | public function setCalendarDisabled($calendarDisabled) 92 | { 93 | $this->calendarDisabled = (boolean) $calendarDisabled; 94 | 95 | return $this; 96 | } 97 | 98 | /** 99 | * Answers the value of the calendarDisabled attribute. 100 | * 101 | * @return boolean 102 | */ 103 | public function getCalendarDisabled() 104 | { 105 | return $this->calendarDisabled; 106 | } 107 | 108 | /** 109 | * Event method called before the field is rendered. 110 | * 111 | * @param FormField $field 112 | * 113 | * @return void 114 | */ 115 | public function onBeforeRender(FormField $field) 116 | { 117 | if ($class = $field->config()->calendar_datepicker_class) { 118 | $field->addExtraClass($class); 119 | } 120 | } 121 | 122 | /** 123 | * Updates the given array of HTML attributes from the extended object. 124 | * 125 | * @param array $attributes 126 | * 127 | * @return void 128 | */ 129 | public function updateAttributes(&$attributes) 130 | { 131 | $attributes['data-calendar-config'] = $this->owner->getCalendarConfigJSON(); 132 | $attributes['data-calendar-enabled'] = $this->owner->getCalendarEnabled(); 133 | } 134 | 135 | /** 136 | * Answers 'true' if the calendar is enabled for the extended object. 137 | * 138 | * @return string 139 | */ 140 | public function getCalendarEnabled() 141 | { 142 | if ($this->owner->isReadonly() || $this->owner->isDisabled()) { 143 | return 'false'; 144 | } 145 | 146 | return ($this->calendarDisabled || $this->owner->config()->calendar_disabled) ? 'false' : 'true'; 147 | } 148 | 149 | /** 150 | * Answers a JSON-encoded string containing the config for the calendar. 151 | * 152 | * @return string 153 | */ 154 | public function getCalendarConfigJSON() 155 | { 156 | return Convert::array2json($this->owner->getCalendarConfig(), JSON_FORCE_OBJECT); 157 | } 158 | } 159 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | /* Webpack Configuration 2 | ===================================================================================================================== */ 3 | 4 | // Load Core: 5 | 6 | const path = require('path'); 7 | const webpack = require('webpack'); 8 | 9 | // Load Plugins: 10 | 11 | const CleanPlugin = require('clean-webpack-plugin'); 12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); 13 | const ExtractTextPlugin = require('extract-text-webpack-plugin'); 14 | 15 | // Define Base: 16 | 17 | const BASE = '/resources/vendor/silverware/calendar'; 18 | 19 | // Define Paths: 20 | 21 | const PATHS = { 22 | ADMIN: { 23 | SRC: path.resolve(__dirname, 'admin/client/src'), 24 | DIST: path.resolve(__dirname, 'admin/client/dist'), 25 | PUBLIC: BASE + '/admin/client/dist/' 26 | }, 27 | MODULE: { 28 | SRC: path.resolve(__dirname, 'client/src'), 29 | DIST: path.resolve(__dirname, 'client/dist'), 30 | PUBLIC: BASE + '/client/dist/', 31 | }, 32 | MODULES: path.resolve(__dirname, 'node_modules') 33 | }; 34 | 35 | // Define Configs: 36 | 37 | const CONFIGS = [ 38 | { 39 | paths: PATHS.ADMIN, 40 | entry: { 41 | 'bundle': 'bundles/bundle.js' 42 | }, 43 | resolve: { 44 | alias: { 45 | 'bootstrap': path.resolve(process.env.PWD, '../../silverstripe/admin/node_modules/bootstrap'), 46 | 'silverstripe-admin': path.resolve(process.env.PWD, '../../silverstripe/admin/client/src') 47 | } 48 | } 49 | }, 50 | { 51 | paths: PATHS.MODULE, 52 | entry: { 53 | 'bundle': 'bundles/bundle.js' 54 | }, 55 | resolve: { 56 | alias: { 57 | 'bootstrap': path.resolve(process.env.PWD, '../../../themes/silverware-theme/node_modules/bootstrap'), 58 | 'silverware-theme': path.resolve(process.env.PWD, '../../../themes/silverware-theme/source'), 59 | 'calendar-admin': path.resolve(process.env.PWD, 'admin/client/src') 60 | } 61 | } 62 | } 63 | ]; 64 | 65 | // Define Rules: 66 | 67 | const rules = (env) => { 68 | 69 | // Answer Rules: 70 | 71 | return [ 72 | { 73 | test: /\.js$/, 74 | use: [ 75 | { 76 | loader: 'babel-loader' 77 | } 78 | ], 79 | exclude: [ 80 | PATHS.MODULES 81 | ] 82 | }, 83 | { 84 | test: /\.css$/, 85 | use: style(env) 86 | }, 87 | { 88 | test: /\.scss$/, 89 | use: style(env, [ 90 | { 91 | loader: 'resolve-url-loader', 92 | options: { 93 | sourceMap: true 94 | } 95 | }, 96 | { 97 | loader: 'sass-loader', 98 | options: { 99 | sourceMap: true 100 | } 101 | } 102 | ]) 103 | }, 104 | { 105 | test: /\.(gif|jpg|png)$/, 106 | use: [ 107 | { 108 | loader: 'url-loader', 109 | options: { 110 | name: 'images/[name].[ext]', 111 | limit: 10000 112 | } 113 | } 114 | ] 115 | }, 116 | { 117 | test: /\.svg$/, 118 | use: [ 119 | { 120 | loader: 'file-loader', 121 | options: { 122 | name: 'svg/[name].[ext]' 123 | } 124 | }, 125 | { 126 | loader: 'svgo-loader', 127 | options: { 128 | plugins: [ 129 | { removeTitle: true }, 130 | { convertColors: { shorthex: false } }, 131 | { convertPathData: true } 132 | ] 133 | } 134 | } 135 | ] 136 | }, 137 | { 138 | test: /\.(ttf|eot|woff|woff2)$/, 139 | loader: 'file-loader', 140 | options: { 141 | name: 'fonts/[name].[ext]' 142 | } 143 | } 144 | ]; 145 | 146 | }; 147 | 148 | // Define Style Loaders: 149 | 150 | const style = (env, extra = []) => { 151 | 152 | // Common Loaders: 153 | 154 | let loaders = [ 155 | { 156 | loader: 'css-loader', 157 | options: { 158 | sourceMap: true 159 | } 160 | }, 161 | { 162 | loader: 'postcss-loader', 163 | options: { 164 | config: { 165 | path: path.resolve(__dirname, 'postcss.config.js') 166 | }, 167 | sourceMap: true 168 | } 169 | } 170 | ]; 171 | 172 | // Merge Loaders: 173 | 174 | loaders = [...loaders, ...extra]; 175 | 176 | // Answer Loaders: 177 | 178 | return (env === 'production') ? ExtractTextPlugin.extract({ 179 | fallback: 'style-loader', 180 | use: loaders 181 | }) : [{ loader: 'style-loader' }].concat(loaders); 182 | 183 | }; 184 | 185 | // Define Devtool: 186 | 187 | const devtool = (env) => { 188 | return (env === 'production') ? false : 'source-map'; 189 | }; 190 | 191 | // Define Plugins: 192 | 193 | const plugins = (env, config) => { 194 | 195 | // Common Plugins: 196 | 197 | let plugins = [ 198 | new webpack.ProvidePlugin({ 199 | $: 'jquery', 200 | jQuery: 'jquery' 201 | }) 202 | ]; 203 | 204 | // Merge Plugins: 205 | 206 | if (config.plugins) { 207 | plugins = [...plugins, ...config.plugins]; 208 | } 209 | 210 | // Answer Plugins: 211 | 212 | return plugins.concat( 213 | (env === 'production') ? [ 214 | new CleanPlugin( 215 | [ config.paths.DIST ] 216 | ), 217 | new ExtractTextPlugin({ 218 | filename: 'styles/[name].css', 219 | allChunks: true 220 | }), 221 | new UglifyJsPlugin({ 222 | uglifyOptions: { 223 | output: { 224 | comments: false 225 | } 226 | } 227 | }) 228 | ] : [ 229 | 230 | ] 231 | ); 232 | 233 | }; 234 | 235 | // Define Resolve: 236 | 237 | const resolve = (env, config) => { 238 | 239 | let resolve = { 240 | modules: [ 241 | config.paths.SRC, 242 | PATHS.MODULES 243 | ] 244 | }; 245 | 246 | if (config.resolve) { 247 | Object.assign(resolve, config.resolve); 248 | } 249 | 250 | return resolve; 251 | 252 | }; 253 | 254 | // Define Externals: 255 | 256 | const externals = (env, config) => { 257 | 258 | let externals = { 259 | jquery: 'jQuery' 260 | }; 261 | 262 | if (config.externals) { 263 | Object.assign(externals, config.externals); 264 | } 265 | 266 | return externals; 267 | 268 | }; 269 | 270 | // Define Configuration: 271 | 272 | const config = (env, configs) => { 273 | 274 | // Define Exports: 275 | 276 | let exports = []; 277 | 278 | // Iterate Configs: 279 | 280 | for (let config of configs) { 281 | 282 | // Build Export: 283 | 284 | exports.push({ 285 | entry: config.entry, 286 | output: { 287 | path: config.paths.DIST, 288 | filename: 'js/[name].js', 289 | publicPath: config.paths.PUBLIC 290 | }, 291 | module: { 292 | rules: rules(env) 293 | }, 294 | devtool: devtool(env), 295 | plugins: plugins(env, config), 296 | resolve: resolve(env, config), 297 | externals: externals(env, config) 298 | }); 299 | 300 | } 301 | 302 | // Answer Exports: 303 | 304 | return exports; 305 | 306 | }; 307 | 308 | // Define Module Exports: 309 | 310 | module.exports = (env = {}) => { 311 | process.env.NODE_ENV = env.production ? 'production' : 'development'; 312 | console.log(`Running in ${process.env.NODE_ENV} mode...`); 313 | return config(process.env.NODE_ENV, CONFIGS); 314 | }; 315 | -------------------------------------------------------------------------------- /admin/client/src/styles/_flatpickr.scss: -------------------------------------------------------------------------------- 1 | /* SilverWare Calendar Admin Flatpickr Styles 2 | ===================================================================================================================== */ 3 | 4 | .flatpickr-calendar { 5 | 6 | background: $calendar-background; 7 | border-radius: $border-radius; 8 | border: $calendar-border-width solid $calendar-border-color; 9 | box-shadow: $calendar-box-shadow; 10 | 11 | &.arrowTop:after { 12 | border-width: ($calendar-arrow-top-size - 1); 13 | border-bottom-color: $calendar-month-nav-background; 14 | } 15 | 16 | &.arrowTop:before { 17 | border-width: $calendar-arrow-top-size; 18 | border-bottom-color: $calendar-border-color; 19 | } 20 | 21 | &.arrowBottom:after { 22 | margin-top: -1px; 23 | border-width: ($calendar-arrow-bottom-size - 1); 24 | border-top-color: $calendar-inner-border-color; 25 | } 26 | 27 | &.arrowBottom:before { 28 | margin-top: -1px; 29 | border-width: $calendar-arrow-bottom-size; 30 | border-top-color: $calendar-inner-border-color; 31 | } 32 | 33 | .flatpickr-innerContainer { 34 | border-left: $calendar-inner-border-width solid $calendar-inner-border-color; 35 | border-right: $calendar-inner-border-width solid $calendar-inner-border-color; 36 | border-bottom: $calendar-inner-border-width solid $calendar-inner-border-color; 37 | } 38 | 39 | &.showTimeInput { 40 | 41 | .flatpickr-time { 42 | border: $calendar-time-border-width solid $calendar-time-border-color; 43 | } 44 | 45 | &.hasTime { 46 | 47 | .flatpickr-time { 48 | border-top: 0; 49 | } 50 | 51 | .flatpickr-innerContainer { 52 | border-bottom-color: $calendar-datetime-border-color; 53 | } 54 | 55 | &.noCalendar { 56 | 57 | .flatpickr-time { 58 | border-top: 1px solid $calendar-time-border-color; 59 | } 60 | 61 | } 62 | 63 | } 64 | 65 | } 66 | 67 | } 68 | 69 | .flatpickr-month { 70 | 71 | height: $calendar-month-nav-height; 72 | background: $calendar-month-nav-background; 73 | 74 | .flatpickr-prev-month, 75 | .flatpickr-next-month { 76 | 77 | height: $calendar-month-nav-height; 78 | padding: $calender-month-nav-arrow-padding; 79 | 80 | &:hover svg { 81 | fill: $calendar-month-nav-arrow-hover-color; 82 | color: $calendar-month-nav-arrow-hover-color; 83 | stroke: $calendar-month-nav-arrow-hover-color; 84 | } 85 | 86 | > svg { 87 | fill: $calendar-month-nav-arrow-color; 88 | color: $calendar-month-nav-arrow-color; 89 | stroke: $calendar-month-nav-arrow-color; 90 | @include vertical-align(); 91 | } 92 | 93 | } 94 | 95 | .flatpickr-current-month { 96 | 97 | padding: 0; 98 | height: $calendar-month-nav-height; 99 | 100 | .cur-month { 101 | color: $calendar-month-current-foreground; 102 | font-weight: $calendar-month-current-font-weight; 103 | } 104 | 105 | .cur-year { 106 | color: $calendar-year-current-foreground; 107 | font-weight: $calendar-year-current-font-weight; 108 | } 109 | 110 | .cur-year[disabled], 111 | .cur-year[disabled]:hover { 112 | color: $calendar-year-current-foreground; 113 | } 114 | 115 | .numInputWrapper { 116 | 117 | span.arrowUp:after { 118 | border-bottom-color: $calendar-month-nav-arrow-color; 119 | } 120 | 121 | span.arrowUp:hover:after { 122 | border-bottom-color: $calendar-month-nav-arrow-hover-color 123 | } 124 | 125 | span.arrowDown:after { 126 | border-top-color: $calendar-month-nav-arrow-color; 127 | } 128 | 129 | span.arrowDown:hover:after { 130 | border-top-color: $calendar-month-nav-arrow-hover-color 131 | } 132 | 133 | } 134 | 135 | .numInputWrapper:hover > .cur-year { 136 | color: $calendar-year-current-hover-foreground; 137 | } 138 | 139 | > div, 140 | > span { 141 | @include vertical-align(); 142 | } 143 | 144 | } 145 | 146 | } 147 | 148 | .flatpickr-weekdays { 149 | 150 | height: $calendar-weekdays-height; 151 | background: $calendar-weekday-background; 152 | 153 | .flatpickr-weekday { 154 | color: $calendar-weekday-foreground; 155 | font-weight: $calendar-weekday-font-weight; 156 | } 157 | 158 | } 159 | 160 | .flatpickr-weekwrapper { 161 | 162 | .flatpickr-weeks { 163 | box-shadow: 1px 0 0 $calendar-weeks-border-color; 164 | } 165 | 166 | .flatpickr-weekday { 167 | background: $calendar-weekday-background; 168 | line-height: $calendar-weekdays-height; 169 | font-weight: $calendar-week-font-weight; 170 | } 171 | 172 | } 173 | 174 | .flatpickr-day { 175 | 176 | color: $calendar-day-foreground; 177 | background: $calendar-day-background; 178 | border-radius: $calendar-day-border-radius; 179 | 180 | &.today { 181 | border-color: $calendar-today-border-color; 182 | } 183 | 184 | &:hover { 185 | color: $calendar-day-hover-foreground; 186 | background: $calendar-day-hover-background; 187 | border-color: $calendar-day-hover-border-color; 188 | } 189 | 190 | &.today:hover { 191 | color: $calendar-day-hover-foreground; 192 | background: $calendar-day-hover-background; 193 | border-color: $calendar-today-border-color; 194 | } 195 | 196 | &.disabled, 197 | &.notAllowed, 198 | &.nextMonthDay, 199 | &.prevMonthDay { 200 | color: $calendar-day-disabled-foreground; 201 | &:hover { 202 | background: $calendar-day-disabled-hover-background; 203 | border-color: $calendar-day-disabled-hover-border-color; 204 | } 205 | } 206 | 207 | &.inRange, 208 | &.today.inRange, 209 | &.nextMonthDay.inRange, 210 | &.prevMonthDay.inRange, 211 | &.nextMonthDay.inRange:hover, 212 | &.prevMonthDay.inRange:hover, 213 | &.nextMonthDay.inRange:focus, 214 | &.prevMonthDay.inRange:focus { 215 | background: $calendar-range-background; 216 | border-color: $calendar-range-background; 217 | box-shadow: -5px 0 0 $calendar-range-background, 5px 0 0 $calendar-range-background; 218 | } 219 | 220 | &.today.inRange { 221 | border-color: $calendar-today-border-color; 222 | } 223 | 224 | &.selected, 225 | &.selected:hover, 226 | &.selected:focus, 227 | &.startRange 228 | &.startRange:hover, 229 | &.startRange:focus, 230 | &.startRange.inRange, 231 | &.startRange.inRange:hover, 232 | &.startRange.inRange:focus, 233 | &.endRange, 234 | &.endRange:hover, 235 | &.endRange:focus, 236 | &.endRange.inRange, 237 | &.endRange.inRange:hover, 238 | &.endRange.inRange:focus, 239 | &.nextMonthDay.startRange, 240 | &.prevMonthDay.startRange, 241 | &.nextMonthDay.endRange, 242 | &.prevMonthDay.endRange, 243 | &.nextMonthDay.selected, 244 | &.nextMonthDay.selected:hover, 245 | &.nextMonthDay.selected:focus, 246 | &.prevMonthDayselected, 247 | &.prevMonthDay.selected:hover, 248 | &.prevMonthDay.selected:focus { 249 | color: $calendar-day-selected-foreground; 250 | background: $calendar-day-selected-background; 251 | border-color: $calendar-day-selected-border-color; 252 | box-shadow: none; 253 | } 254 | 255 | } 256 | 257 | .flatpickr-time { 258 | 259 | .numInputWrapper:hover, 260 | .flatpickr-am-pm:hover { 261 | background: $calendar-time-input-hover-background; 262 | } 263 | 264 | } 265 | -------------------------------------------------------------------------------- /client/dist/styles/bundle.css: -------------------------------------------------------------------------------- 1 | .flatpickr-calendar{background:transparent;overflow:hidden;max-height:0;opacity:0;visibility:hidden;text-align:center;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08)}.flatpickr-calendar.inline,.flatpickr-calendar.open{opacity:1;visibility:visible;overflow:visible;max-height:640px}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.hasWeeks{width:auto}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-month{background:transparent;color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9);height:28px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden}.flatpickr-next-month,.flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:0;line-height:16px;height:28px;padding:10px calc(3.57% - 1.5px);z-index:3}.flatpickr-next-month i,.flatpickr-prev-month i{position:relative}.flatpickr-next-month.flatpickr-prev-month,.flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-next-month.flatpickr-next-month,.flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-next-month:hover,.flatpickr-prev-month:hover{color:#959ea9}.flatpickr-next-month:hover svg,.flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-next-month svg,.flatpickr-prev-month svg{width:14px}.flatpickr-next-month svg path,.flatpickr-prev-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.05);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute;top:33%}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6)}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6)}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:6.16px 0 0;line-height:1;height:28px;display:inline-block;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0)}.flatpickr-current-month.slideLeft{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);-webkit-animation:fpFadeOut .4s ease,fpSlideLeft .4s cubic-bezier(.23,1,.32,1);animation:fpFadeOut .4s ease,fpSlideLeft .4s cubic-bezier(.23,1,.32,1)}.flatpickr-current-month.slideLeftNew{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);-webkit-animation:fpFadeIn .4s ease,fpSlideLeftNew .4s cubic-bezier(.23,1,.32,1);animation:fpFadeIn .4s ease,fpSlideLeftNew .4s cubic-bezier(.23,1,.32,1)}.flatpickr-current-month.slideRight{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);-webkit-animation:fpFadeOut .4s ease,fpSlideRight .4s cubic-bezier(.23,1,.32,1);animation:fpFadeOut .4s ease,fpSlideRight .4s cubic-bezier(.23,1,.32,1)}.flatpickr-current-month.slideRightNew{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:fpFadeIn .4s ease,fpSlideRightNew .4s cubic-bezier(.23,1,.32,1);animation:fpFadeIn .4s ease,fpSlideRightNew .4s cubic-bezier(.23,1,.32,1)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:default;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,.5);background:transparent;pointer-events:none}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.flatpickr-calendar.animate .dayContainer.slideLeft{-webkit-animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1);animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.animate .dayContainer.slideLeft,.flatpickr-calendar.animate .dayContainer.slideLeftNew{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.flatpickr-calendar.animate .dayContainer.slideLeftNew{-webkit-animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1);animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.animate .dayContainer.slideRight{-webkit-animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideRight .4s cubic-bezier(.23,1,.32,1);animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideRight .4s cubic-bezier(.23,1,.32,1);-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.flatpickr-calendar.animate .dayContainer.slideRightNew{-webkit-animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideRightNew .4s cubic-bezier(.23,1,.32,1);animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideRightNew .4s cubic-bezier(.23,1,.32,1)}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange,.flatpickr-day.selected.startRange+.endRange,.flatpickr-day.startRange.startRange+.endRange{-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{pointer-events:none}.flatpickr-day.disabled,.flatpickr-day.disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:rgba(57,57,57,.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{display:inline-block;float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day{display:block;width:100%;max-width:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.flatpickr-innerContainer,.flatpickr-rContainer{-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-rContainer{display:inline-block;padding:0}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;cursor:pointer;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{height:inherit;display:inline-block;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover{background:#f0f0f0}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fpSlideLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fpSlideLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes fpSlideLeftNew{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpSlideLeftNew{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fpSlideRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fpSlideRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes fpSlideRightNew{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpSlideRightNew{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fpFadeOut{0%{opacity:1}to{opacity:0}}@keyframes fpFadeOut{0%{opacity:1}to{opacity:0}}@-webkit-keyframes fpFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fpFadeIn{0%{opacity:0}to{opacity:1}}.flatpickr-calendar{background:#fff;border-radius:.25rem;border:0 solid transparent;-webkit-box-shadow:none;box-shadow:none}.flatpickr-calendar.arrowTop:after{border-width:9px;border-bottom-color:#139fda}.flatpickr-calendar.arrowTop:before{border-width:10px;border-bottom-color:transparent}.flatpickr-calendar.arrowBottom:after{margin-top:-1px;border-width:9px;border-top-color:#139fda}.flatpickr-calendar.arrowBottom:before{margin-top:-1px;border-width:10px;border-top-color:#139fda}.flatpickr-calendar .flatpickr-innerContainer{border-left:1px solid #139fda;border-right:1px solid #139fda;border-bottom:1px solid #139fda}.flatpickr-calendar.showTimeInput .flatpickr-time{border:1px solid #139fda}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{border-top:0}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-innerContainer{border-bottom-color:#e9ecef}.flatpickr-calendar.showTimeInput.hasTime.noCalendar .flatpickr-time{border-top:1px solid #139fda}.flatpickr-month{height:50px;background:#139fda}.flatpickr-month .flatpickr-next-month,.flatpickr-month .flatpickr-prev-month{height:50px;padding:0 10px}.flatpickr-month .flatpickr-next-month:hover svg,.flatpickr-month .flatpickr-prev-month:hover svg{fill:#fff;color:#fff;stroke:#fff}.flatpickr-month .flatpickr-next-month>svg,.flatpickr-month .flatpickr-prev-month>svg{fill:hsla(0,0%,100%,.5);color:hsla(0,0%,100%,.5);stroke:hsla(0,0%,100%,.5);top:50%;position:relative;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.flatpickr-month .flatpickr-current-month{padding:0;height:50px}.flatpickr-month .flatpickr-current-month .cur-month{color:#fff;font-weight:700}.flatpickr-month .flatpickr-current-month .cur-year{color:hsla(0,0%,100%,.75);font-weight:400}.flatpickr-month .flatpickr-current-month .cur-year[disabled],.flatpickr-month .flatpickr-current-month .cur-year[disabled]:hover{color:hsla(0,0%,100%,.75)}.flatpickr-month .flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:hsla(0,0%,100%,.5)}.flatpickr-month .flatpickr-current-month .numInputWrapper span.arrowUp:hover:after{border-bottom-color:#fff}.flatpickr-month .flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:hsla(0,0%,100%,.5)}.flatpickr-month .flatpickr-current-month .numInputWrapper span.arrowDown:hover:after{border-top-color:#fff}.flatpickr-month .flatpickr-current-month .numInputWrapper:hover>.cur-year{color:#fff}.flatpickr-month .flatpickr-current-month>div,.flatpickr-month .flatpickr-current-month>span{top:50%;position:relative;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.flatpickr-weekdays{height:40px;background:#f8f9fa}.flatpickr-weekdays .flatpickr-weekday{color:#868e96;font-weight:400}.flatpickr-weekwrapper .flatpickr-weeks{-webkit-box-shadow:1px 0 0 #e9ecef;box-shadow:1px 0 0 #e9ecef}.flatpickr-weekwrapper .flatpickr-weekday{background:#f8f9fa;line-height:40px;font-weight:700}.flatpickr-day{color:#343a40;background:transparent;border-radius:0}.flatpickr-day.today{border-color:#139fda}.flatpickr-day:hover{color:#343a40;background:#dee2e6;border-color:#dee2e6}.flatpickr-day.today:hover{color:#343a40;background:#dee2e6;border-color:#139fda}.flatpickr-day.disabled,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.prevMonthDay{color:rgba(52,58,64,.4)}.flatpickr-day.disabled:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.notAllowed:hover,.flatpickr-day.prevMonthDay:hover{background:#edeff1;border-color:#edeff1}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange:focus,.flatpickr-day.nextMonthDay.inRange:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.inRange:focus,.flatpickr-day.prevMonthDay.inRange:hover,.flatpickr-day.today.inRange{background:#e9ecef;border-color:#e9ecef;-webkit-box-shadow:-5px 0 0 #e9ecef,5px 0 0 #e9ecef;box-shadow:-5px 0 0 #e9ecef,5px 0 0 #e9ecef}.flatpickr-day.today.inRange{border-color:#139fda}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.inRange:focus,.flatpickr-day.endRange.inRange:hover,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.nextMonthDay.endRange,.flatpickr-day.nextMonthDay.selected,.flatpickr-day.nextMonthDay.selected:focus,.flatpickr-day.nextMonthDay.selected:hover,.flatpickr-day.nextMonthDay.startRange,.flatpickr-day.prevMonthDay.endRange,.flatpickr-day.prevMonthDay.selected:focus,.flatpickr-day.prevMonthDay.selected:hover,.flatpickr-day.prevMonthDay.startRange,.flatpickr-day.prevMonthDayselected,.flatpickr-day.selected,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange .flatpickr-day.startRange:hover,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.inRange:focus,.flatpickr-day.startRange.inRange:hover,.flatpickr-day.startRange:focus{color:#fff;background:#139fda;border-color:#139fda;-webkit-box-shadow:none;box-shadow:none}.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time .numInputWrapper:hover{background:#e9ecef}.field.date input.flatpickr-input,.field.datetime input.flatpickr-input,.field.time input.flatpickr-input{background-color:#fff} -------------------------------------------------------------------------------- /admin/client/dist/styles/bundle.css: -------------------------------------------------------------------------------- 1 | .flatpickr-calendar{background:transparent;overflow:hidden;max-height:0;opacity:0;visibility:hidden;text-align:center;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08)}.flatpickr-calendar.inline,.flatpickr-calendar.open{opacity:1;visibility:visible;overflow:visible;max-height:640px}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.hasWeeks{width:auto}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-month{background:transparent;color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9);height:28px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden}.flatpickr-next-month,.flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:0;line-height:16px;height:28px;padding:10px calc(3.57% - 1.5px);z-index:3}.flatpickr-next-month i,.flatpickr-prev-month i{position:relative}.flatpickr-next-month.flatpickr-prev-month,.flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-next-month.flatpickr-next-month,.flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-next-month:hover,.flatpickr-prev-month:hover{color:#959ea9}.flatpickr-next-month:hover svg,.flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-next-month svg,.flatpickr-prev-month svg{width:14px}.flatpickr-next-month svg path,.flatpickr-prev-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.05);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute;top:33%}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6)}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6)}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:6.16px 0 0;line-height:1;height:28px;display:inline-block;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0)}.flatpickr-current-month.slideLeft{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);-webkit-animation:fpFadeOut .4s ease,fpSlideLeft .4s cubic-bezier(.23,1,.32,1);animation:fpFadeOut .4s ease,fpSlideLeft .4s cubic-bezier(.23,1,.32,1)}.flatpickr-current-month.slideLeftNew{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);-webkit-animation:fpFadeIn .4s ease,fpSlideLeftNew .4s cubic-bezier(.23,1,.32,1);animation:fpFadeIn .4s ease,fpSlideLeftNew .4s cubic-bezier(.23,1,.32,1)}.flatpickr-current-month.slideRight{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);-webkit-animation:fpFadeOut .4s ease,fpSlideRight .4s cubic-bezier(.23,1,.32,1);animation:fpFadeOut .4s ease,fpSlideRight .4s cubic-bezier(.23,1,.32,1)}.flatpickr-current-month.slideRightNew{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:fpFadeIn .4s ease,fpSlideRightNew .4s cubic-bezier(.23,1,.32,1);animation:fpFadeIn .4s ease,fpSlideRightNew .4s cubic-bezier(.23,1,.32,1)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:default;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,.5);background:transparent;pointer-events:none}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.flatpickr-calendar.animate .dayContainer.slideLeft{-webkit-animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1);animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.animate .dayContainer.slideLeft,.flatpickr-calendar.animate .dayContainer.slideLeftNew{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.flatpickr-calendar.animate .dayContainer.slideLeftNew{-webkit-animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1);animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideLeft .4s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.animate .dayContainer.slideRight{-webkit-animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideRight .4s cubic-bezier(.23,1,.32,1);animation:fpFadeOut .4s cubic-bezier(.23,1,.32,1),fpSlideRight .4s cubic-bezier(.23,1,.32,1);-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.flatpickr-calendar.animate .dayContainer.slideRightNew{-webkit-animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideRightNew .4s cubic-bezier(.23,1,.32,1);animation:fpFadeIn .4s cubic-bezier(.23,1,.32,1),fpSlideRightNew .4s cubic-bezier(.23,1,.32,1)}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange,.flatpickr-day.selected.startRange+.endRange,.flatpickr-day.startRange.startRange+.endRange{-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{pointer-events:none}.flatpickr-day.disabled,.flatpickr-day.disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:rgba(57,57,57,.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{display:inline-block;float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day{display:block;width:100%;max-width:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.flatpickr-innerContainer,.flatpickr-rContainer{-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-rContainer{display:inline-block;padding:0}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;cursor:pointer;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{height:inherit;display:inline-block;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover{background:#f0f0f0}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fpSlideLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fpSlideLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes fpSlideLeftNew{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpSlideLeftNew{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fpSlideRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fpSlideRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes fpSlideRightNew{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpSlideRightNew{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes fpFadeOut{0%{opacity:1}to{opacity:0}}@keyframes fpFadeOut{0%{opacity:1}to{opacity:0}}@-webkit-keyframes fpFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fpFadeIn{0%{opacity:0}to{opacity:1}}.field.date input.flatpickr-input,.field.datetime input.flatpickr-input,.field.time input.flatpickr-input{background-color:#fff}.flatpickr-calendar{background:#fff;border-radius:.23rem;border:0 solid transparent;-webkit-box-shadow:none;box-shadow:none}.flatpickr-calendar.arrowTop:after{border-width:9px;border-bottom-color:#43c7f4}.flatpickr-calendar.arrowTop:before{border-width:10px;border-bottom-color:transparent}.flatpickr-calendar.arrowBottom:after{margin-top:-1px;border-width:9px;border-top-color:#43c7f4}.flatpickr-calendar.arrowBottom:before{margin-top:-1px;border-width:10px;border-top-color:#43c7f4}.flatpickr-calendar .flatpickr-innerContainer{border-left:1px solid #43c7f4;border-right:1px solid #43c7f4;border-bottom:1px solid #43c7f4}.flatpickr-calendar.showTimeInput .flatpickr-time{border:1px solid #43c7f4}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{border-top:0}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-innerContainer{border-bottom-color:#ced5e1}.flatpickr-calendar.showTimeInput.hasTime.noCalendar .flatpickr-time{border-top:1px solid #43c7f4}.flatpickr-month{height:50px;background:#43c7f4}.flatpickr-month .flatpickr-next-month,.flatpickr-month .flatpickr-prev-month{height:50px;padding:0 10px}.flatpickr-month .flatpickr-next-month:hover svg,.flatpickr-month .flatpickr-prev-month:hover svg{fill:#fff;color:#fff;stroke:#fff}.flatpickr-month .flatpickr-next-month>svg,.flatpickr-month .flatpickr-prev-month>svg{fill:hsla(0,0%,100%,.5);color:hsla(0,0%,100%,.5);stroke:hsla(0,0%,100%,.5);top:50%;position:relative;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.flatpickr-month .flatpickr-current-month{padding:0;height:50px}.flatpickr-month .flatpickr-current-month .cur-month{color:#fff;font-weight:700}.flatpickr-month .flatpickr-current-month .cur-year{color:hsla(0,0%,100%,.75);font-weight:400}.flatpickr-month .flatpickr-current-month .cur-year[disabled],.flatpickr-month .flatpickr-current-month .cur-year[disabled]:hover{color:hsla(0,0%,100%,.75)}.flatpickr-month .flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:hsla(0,0%,100%,.5)}.flatpickr-month .flatpickr-current-month .numInputWrapper span.arrowUp:hover:after{border-bottom-color:#fff}.flatpickr-month .flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:hsla(0,0%,100%,.5)}.flatpickr-month .flatpickr-current-month .numInputWrapper span.arrowDown:hover:after{border-top-color:#fff}.flatpickr-month .flatpickr-current-month .numInputWrapper:hover>.cur-year{color:#fff}.flatpickr-month .flatpickr-current-month>div,.flatpickr-month .flatpickr-current-month>span{top:50%;position:relative;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.flatpickr-weekdays{height:40px;background:#eef0f4}.flatpickr-weekdays .flatpickr-weekday{color:#566b8d;font-weight:400}.flatpickr-weekwrapper .flatpickr-weeks{-webkit-box-shadow:1px 0 0 #ced5e1;box-shadow:1px 0 0 #ced5e1}.flatpickr-weekwrapper .flatpickr-weekday{background:#eef0f4;line-height:40px;font-weight:700}.flatpickr-day{color:#43536d;background:transparent;border-radius:0}.flatpickr-day.today{border-color:#43c7f4}.flatpickr-day:hover{color:#43536d;background:#aebace;border-color:#aebace}.flatpickr-day.today:hover{color:#43536d;background:#aebace;border-color:#43c7f4}.flatpickr-day.disabled,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.prevMonthDay{color:rgba(67,83,109,.4)}.flatpickr-day.disabled:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.notAllowed:hover,.flatpickr-day.prevMonthDay:hover{background:#bec8d7;border-color:#bec8d7}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange:focus,.flatpickr-day.nextMonthDay.inRange:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.inRange:focus,.flatpickr-day.prevMonthDay.inRange:hover,.flatpickr-day.today.inRange{background:#ced5e1;border-color:#ced5e1;-webkit-box-shadow:-5px 0 0 #ced5e1,5px 0 0 #ced5e1;box-shadow:-5px 0 0 #ced5e1,5px 0 0 #ced5e1}.flatpickr-day.today.inRange{border-color:#43c7f4}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.inRange:focus,.flatpickr-day.endRange.inRange:hover,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.nextMonthDay.endRange,.flatpickr-day.nextMonthDay.selected,.flatpickr-day.nextMonthDay.selected:focus,.flatpickr-day.nextMonthDay.selected:hover,.flatpickr-day.nextMonthDay.startRange,.flatpickr-day.prevMonthDay.endRange,.flatpickr-day.prevMonthDay.selected:focus,.flatpickr-day.prevMonthDay.selected:hover,.flatpickr-day.prevMonthDay.startRange,.flatpickr-day.prevMonthDayselected,.flatpickr-day.selected,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange .flatpickr-day.startRange:hover,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.inRange:focus,.flatpickr-day.startRange.inRange:hover,.flatpickr-day.startRange:focus{color:#fff;background:#43c7f4;border-color:#43c7f4;-webkit-box-shadow:none;box-shadow:none}.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time .numInputWrapper:hover{background:#ced5e1} -------------------------------------------------------------------------------- /client/dist/js/bundle.js: -------------------------------------------------------------------------------- 1 | !function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/resources/vendor/silverware/calendar/client/dist/",t(t.s=2)}([function(e,t){e.exports=jQuery},function(e,t,n){(function(t){var n;n=function(){"use strict";function e(e,t,n){return!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}function n(e,t,n){var a;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=setTimeout(function(){a=null,n||e.apply(i,o)},t),n&&!a&&e.apply(i,o)}}function a(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function i(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function o(e){var t=i("div","numInputWrapper"),n=i("input","numInput "+e),a=i("span","arrowUp"),o=i("span","arrowDown");return n.type="text",n.pattern="\\d*",t.appendChild(n),t.appendChild(a),t.appendChild(o),t}function r(t,r){function l(e){return e.bind(oe)}function f(e){oe.config.noCalendar&&!oe.selectedDates.length&&(oe.setDate((new Date).setHours(oe.config.defaultHour,oe.config.defaultMinute,oe.config.defaultSeconds),!1),m(),ne()),function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==oe.amPM&&e.target===oe.amPM&&(oe.amPM.textContent=oe.l10n.amPM["AM"===oe.amPM.textContent?1:0]);var a=Number(n.min),i=Number(n.max),o=Number(n.step),r=parseInt(n.value,10),l=e.delta||(t?38===e.which?1:-1:Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY))||0),c=r+o*l;if(void 0!==n.value&&2===n.value.length){var d=n===oe.hourElement,s=n===oe.minuteElement;ci&&(c=n===oe.hourElement?c-i-p(!oe.amPM):a,s&&I(void 0,1,oe.hourElement)),oe.amPM&&d&&(1===o?c+r===23:Math.abs(c-r)>o)&&(oe.amPM.textContent="PM"===oe.amPM.textContent?"AM":"PM"),n.value=g(c)}}(e),0!==oe.selectedDates.length&&(!oe.minDateHasTime||"input"!==e.type||e.target.value.length>=2?(m(),ne()):setTimeout(function(){m(),ne()},1e3))}function m(){if(void 0!==oe.hourElement&&void 0!==oe.minuteElement){var t,n,a=(parseInt(oe.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(oe.minuteElement.value,10)||0)%60,o=void 0!==oe.secondElement?(parseInt(oe.secondElement.value,10)||0)%60:0;void 0!==oe.amPM&&(t=a,n=oe.amPM.textContent,a=t%12+12*p("PM"===n)),oe.config.minDate&&oe.minDateHasTime&&oe.latestSelectedDateObj&&0===e(oe.latestSelectedDateObj,oe.config.minDate)&&(a=Math.max(a,oe.config.minDate.getHours()))===oe.config.minDate.getHours()&&(i=Math.max(i,oe.config.minDate.getMinutes())),oe.config.maxDate&&oe.maxDateHasTime&&oe.latestSelectedDateObj&&0===e(oe.latestSelectedDateObj,oe.config.maxDate)&&(a=Math.min(a,oe.config.maxDate.getHours()))===oe.config.maxDate.getHours()&&(i=Math.min(i,oe.config.maxDate.getMinutes())),M(a,i,o)}}function v(e){var t=e||oe.latestSelectedDateObj;t&&M(t.getHours(),t.getMinutes(),t.getSeconds())}function M(e,t,n){void 0!==oe.latestSelectedDateObj&&oe.latestSelectedDateObj.setHours(e%24,t,n||0,0),oe.hourElement&&oe.minuteElement&&!oe.isMobile&&(oe.hourElement.value=g(oe.config.time_24hr?e:(12+e)%12+12*p(e%12==0)),oe.minuteElement.value=g(t),void 0!==oe.amPM&&(oe.amPM.textContent=e>=12?"PM":"AM"),void 0!==oe.secondElement&&(oe.secondElement.value=g(n)))}function b(e){var t=parseInt(e.target.value)+(e.delta||0);4!==t.toString().length&&"Enter"!==e.key||(oe.currentYearElement.blur(),/[^\d]/.test(t.toString())||R(t))}function y(e,t,n){return t instanceof Array?t.forEach(function(t){return y(e,t,n)}):e instanceof Array?e.forEach(function(e){return y(e,t,n)}):(e.addEventListener(t,n),void oe._handlers.push({element:e,event:t,handler:n}))}function x(e){return function(t){return 1===t.which&&e(t)}}function E(){Q("onChange")}function k(){oe._animationLoop.forEach(function(e){return e()}),oe._animationLoop=[]}function N(e){if(oe.daysContainer&&oe.daysContainer.childNodes.length>1)switch(e.animationName){case"fpSlideLeft":oe.daysContainer.lastChild&&oe.daysContainer.lastChild.classList.remove("slideLeftNew"),oe.daysContainer.removeChild(oe.daysContainer.firstChild),oe.days=oe.daysContainer.firstChild,k();break;case"fpSlideRight":oe.daysContainer.firstChild&&oe.daysContainer.firstChild.classList.remove("slideRightNew"),oe.daysContainer.removeChild(oe.daysContainer.lastChild),oe.days=oe.daysContainer.firstChild,k()}}function S(e){switch(e.animationName){case"fpSlideLeftNew":case"fpSlideRightNew":oe.navigationCurrentMonth.classList.remove("slideLeftNew"),oe.navigationCurrentMonth.classList.remove("slideRightNew");for(var t=oe.navigationCurrentMonth;t.nextSibling&&/curr/.test(t.nextSibling.className);)oe.monthNav.removeChild(t.nextSibling);for(;t.previousSibling&&/curr/.test(t.previousSibling.className);)oe.monthNav.removeChild(t.previousSibling);oe.oldCurMonth=void 0}}function T(e){var t=void 0!==e?Z(e):oe.latestSelectedDateObj||(oe.config.minDate&&oe.config.minDate>oe.now?oe.config.minDate:oe.config.maxDate&&oe.config.maxDateoe.minRangeDate&&noe.selectedDates[0]&&(oe.maxRangeDate=n)),"range"===oe.config.mode&&(function(t){return!("range"!==oe.config.mode||oe.selectedDates.length<2)&&e(t,oe.selectedDates[0])>=0&&e(t,oe.selectedDates[1])<=0}(n)&&!ee(n)&&c.classList.add("inRange"),1===oe.selectedDates.length&&void 0!==oe.minRangeDate&&void 0!==oe.maxRangeDate&&(noe.maxRangeDate)&&c.classList.add("notAllowed")),oe.weekNumbers&&"prevMonthDay"!==t&&o%7==1&&oe.weekNumbers.insertAdjacentHTML("beforeend",""+oe.config.getWeek(n)+""),Q("onDayCreate",c),c}function O(e,t){var n=e+t||0,a=void 0!==e?oe.days.childNodes[n]:oe.selectedDateElem||oe.todayDateElem||oe.days.childNodes[0],i=function(){(a=a||oe.days.childNodes[n]).focus(),"range"===oe.config.mode&&J(a)};if(void 0===a&&0!==t)return t>0?(oe.changeMonth(1,!0,void 0,!0),n%=42):t<0&&(oe.changeMonth(-1,!0,void 0,!0),n+=42),F(i);i()}function F(e){!0===oe.config.animate?oe._animationLoop.push(e):e()}function A(e){if(void 0!==oe.daysContainer){var t=(new Date(oe.currentYear,oe.currentMonth,1).getDay()-oe.l10n.firstDayOfWeek+7)%7,n="range"===oe.config.mode,a=oe.utils.getDaysInMonth((oe.currentMonth-1+12)%12),o=oe.utils.getDaysInMonth(),r=window.document.createDocumentFragment(),l=a+1-t,c=0;for(oe.weekNumbers&&oe.weekNumbers.firstChild&&(oe.weekNumbers.textContent=""),n&&(oe.minRangeDate=new Date(oe.currentYear,oe.currentMonth-1,l),oe.maxRangeDate=new Date(oe.currentYear,oe.currentMonth+1,(42-t)%o));l<=a;l++,c++)r.appendChild(Y("prevMonthDay",new Date(oe.currentYear,oe.currentMonth-1,l),l,c));for(l=1;l<=o;l++,c++)r.appendChild(Y("",new Date(oe.currentYear,oe.currentMonth,l),l,c));for(var d=o+1;d<=42-t;d++,c++)r.appendChild(Y("nextMonthDay",new Date(oe.currentYear,oe.currentMonth+1,d%o),d,c));n&&1===oe.selectedDates.length&&r.childNodes[0]?(oe._hidePrevMonthArrow=oe._hidePrevMonthArrow||!!oe.minRangeDate&&oe.minRangeDate>r.childNodes[0].dateObj,oe._hideNextMonthArrow=oe._hideNextMonthArrow||!!oe.maxRangeDate&&oe.maxRangeDate1;)oe.daysContainer.removeChild(oe.daysContainer.firstChild);else!function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(oe.daysContainer);e&&e>=0?oe.daysContainer.appendChild(s):oe.daysContainer.insertBefore(s,oe.daysContainer.firstChild),oe.days=oe.daysContainer.childNodes[0]}}function P(){oe.weekdayContainer||(oe.weekdayContainer=i("div","flatpickr-weekdays"));var e=oe.l10n.firstDayOfWeek,t=oe.l10n.weekdays.shorthand.slice();return e>0&&e\n "+t.join("")+"\n \n ",oe.weekdayContainer}function L(e,t,n,a){void 0===t&&(t=!0),void 0===n&&(n=oe.config.animate),void 0===a&&(a=!1);var i=t?e:e-oe.currentMonth;if(!(i<0&&oe._hidePrevMonthArrow||i>0&&oe._hideNextMonthArrow)){if(oe.currentMonth+=i,(oe.currentMonth<0||oe.currentMonth>11)&&(oe.currentYear+=oe.currentMonth>11?1:-1,oe.currentMonth=(oe.currentMonth+12)%12,Q("onYearChange")),A(n?i:void 0),!n)return Q("onMonthChange"),te();var o=oe.navigationCurrentMonth;if(i<0)for(;o.nextSibling&&/curr/.test(o.nextSibling.className);)oe.monthNav.removeChild(o.nextSibling);else if(i>0)for(;o.previousSibling&&/curr/.test(o.previousSibling.className);)oe.monthNav.removeChild(o.previousSibling);oe.oldCurMonth=oe.navigationCurrentMonth,oe.navigationCurrentMonth=oe.monthNav.insertBefore(oe.oldCurMonth.cloneNode(!0),i>0?oe.oldCurMonth.nextSibling:oe.oldCurMonth);var r=oe.daysContainer;if(r.firstChild&&r.lastChild&&(i>0?(r.firstChild.classList.add("slideLeft"),r.lastChild.classList.add("slideLeftNew"),oe.oldCurMonth.classList.add("slideLeft"),oe.navigationCurrentMonth.classList.add("slideLeftNew")):i<0&&(r.firstChild.classList.add("slideRightNew"),r.lastChild.classList.add("slideRight"),oe.oldCurMonth.classList.add("slideRight"),oe.navigationCurrentMonth.classList.add("slideRightNew"))),oe.currentMonthElement=oe.navigationCurrentMonth.firstChild,oe.currentYearElement=oe.navigationCurrentMonth.lastChild.childNodes[0],te(),oe.oldCurMonth.firstChild&&(oe.oldCurMonth.firstChild.textContent=s(oe.currentMonth-i,oe.config.shorthandCurrentMonth,oe.l10n)),Q("onMonthChange"),a&&document.activeElement&&document.activeElement.$i){var l=document.activeElement.$i;F(function(){O(l,0)})}}}function j(e){return!(!oe.config.appendTo||!oe.config.appendTo.contains(e))||oe.calendarContainer.contains(e)}function H(e){if(oe.isOpen&&!oe.config.inline){var t=j(e.target),n=e.target===oe.input||e.target===oe.altInput||oe.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(oe.input)||~e.path.indexOf(oe.altInput));("blur"===e.type?n&&e.relatedTarget&&!j(e.relatedTarget):!n&&!t)&&-1===oe.config.ignoredFocusElements.indexOf(e.target)&&(oe.close(),"range"===oe.config.mode&&1===oe.selectedDates.length&&(oe.clear(!1),oe.redraw()))}}function R(e){if(!(!e||oe.currentYearElement.min&&eparseInt(oe.currentYearElement.max))){var t=e,n=oe.currentYear!==t;oe.currentYear=t||oe.currentYear,oe.config.maxDate&&oe.currentYear===oe.config.maxDate.getFullYear()?oe.currentMonth=Math.min(oe.config.maxDate.getMonth(),oe.currentMonth):oe.config.minDate&&oe.currentYear===oe.config.minDate.getFullYear()&&(oe.currentMonth=Math.max(oe.config.minDate.getMonth(),oe.currentMonth)),n&&(oe.redraw(),Q("onYearChange"))}}function W(t,n){void 0===n&&(n=!0);var a=oe.parseDate(t,void 0,n);if(oe.config.minDate&&a&&e(a,oe.config.minDate,void 0!==n?n:!oe.minDateHasTime)<0||oe.config.maxDate&&a&&e(a,oe.config.maxDate,void 0!==n?n:!oe.maxDateHasTime)>0)return!1;if(!oe.config.enable.length&&!oe.config.disable.length)return!0;if(void 0===a)return!1;for(var i=oe.config.enable.length>0,o=i?oe.config.enable:oe.config.disable,r=0,l=void 0;r=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function B(e){var t=e.target===oe._input,n=j(e.target),a=oe.config.allowInput,i=oe.isOpen&&(!a||!t),o=oe.config.inline&&t&&!a;if("Enter"===e.key&&t){if(a)return oe.setDate(oe._input.value,!0,e.target===oe.altInput?oe.config.altFormat:oe.config.dateFormat),e.target.blur();oe.open()}else if(n||i||o){var r=!!oe.timeContainer&&oe.timeContainer.contains(e.target);switch(e.key){case"Enter":r?ne():z(e);break;case"Escape":e.preventDefault(),oe.close();break;case"Backspace":case"Delete":t&&!oe.config.allowInput&&oe.clear();break;case"ArrowLeft":case"ArrowRight":if(r)oe.hourElement&&oe.hourElement.focus();else if(e.preventDefault(),oe.daysContainer){var l="ArrowRight"===e.key?1:-1;e.ctrlKey?L(l,!0,void 0,!0):O(e.target.$i,l)}break;case"ArrowUp":case"ArrowDown":e.preventDefault();var c="ArrowDown"===e.key?1:-1;oe.daysContainer&&void 0!==e.target.$i?e.ctrlKey?(R(oe.currentYear-c),O(e.target.$i,0)):r||O(e.target.$i,7*c):oe.config.enableTime&&(!r&&oe.hourElement&&oe.hourElement.focus(),f(e),oe._debouncedChange());break;case"Tab":e.target===oe.hourElement?(e.preventDefault(),oe.minuteElement.select()):e.target===oe.minuteElement&&(oe.secondElement||oe.amPM)?(e.preventDefault(),void 0!==oe.secondElement?oe.secondElement.focus():void 0!==oe.amPM&&oe.amPM.focus()):e.target===oe.secondElement&&oe.amPM&&(e.preventDefault(),oe.amPM.focus());break;case"a":void 0!==oe.amPM&&e.target===oe.amPM&&(oe.amPM.textContent="AM",m(),ne());break;case"p":void 0!==oe.amPM&&e.target===oe.amPM&&(oe.amPM.textContent="PM",m(),ne())}Q("onKeyDown",e)}}function J(e){if(1===oe.selectedDates.length&&e.classList.contains("flatpickr-day")&&void 0!==oe.minRangeDate&&void 0!==oe.maxRangeDate){for(var t=e.dateObj,n=oe.parseDate(oe.selectedDates[0],void 0,!0),a=Math.min(t.getTime(),oe.selectedDates[0].getTime()),i=Math.max(t.getTime(),oe.selectedDates[0].getTime()),o=!1,r=a;roe.maxRangeDate.getTime(),d=oe.days.childNodes[l];if(c)return d.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){d.classList.remove(e)}),"continue";if(o&&!c)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){d.classList.remove(e)});var s=Math.max(oe.minRangeDate.getTime(),a),u=Math.min(oe.maxRangeDate.getTime(),i);e.classList.add(tt&&r===n.getTime()&&d.classList.add("endRange"),r>=s&&r<=u&&d.classList.add("inRange")}(l,c)}}function K(){!oe.isOpen||oe.config.static||oe.config.inline||$()}function U(e){return function(t){var n=oe.config["_"+e+"Date"]=oe.parseDate(t),a=oe.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(oe["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),oe.selectedDates&&(oe.selectedDates=oe.selectedDates.filter(function(e){return W(e)}),oe.selectedDates.length||"min"!==e||v(n),ne()),oe.daysContainer&&(q(),void 0!==n?oe.currentYearElement[e]=n.getFullYear().toString():oe.currentYearElement.removeAttribute(e),oe.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function $(e){if(void 0===e&&(e=oe._positionElement),void 0!==oe.calendarContainer){var t=oe.calendarContainer.offsetHeight,n=oe.calendarContainer.offsetWidth,i=oe.config.position,o=e.getBoundingClientRect(),r=window.innerHeight-o.bottom,l="above"===i||"below"!==i&&rt,c=window.pageYOffset+o.top+(l?-t-2:e.offsetHeight+2);if(a(oe.calendarContainer,"arrowTop",!l),a(oe.calendarContainer,"arrowBottom",l),!oe.config.inline){var d=window.pageXOffset+o.left,s=window.document.body.offsetWidth-o.right,u=d+n>window.document.body.offsetWidth;a(oe.calendarContainer,"rightMost",u),oe.config.static||(oe.calendarContainer.style.top=c+"px",u?(oe.calendarContainer.style.left="auto",oe.calendarContainer.style.right=s+"px"):(oe.calendarContainer.style.left=d+"px",oe.calendarContainer.style.right="auto"))}}}function q(){oe.config.noCalendar||oe.isMobile||(P(),te(),A())}function z(t){t.preventDefault(),t.stopPropagation();var n=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(t.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")});if(void 0!==n){var a=n,i=oe.latestSelectedDateObj=new Date(a.dateObj.getTime()),o=i.getMonth()!==oe.currentMonth&&"range"!==oe.config.mode;if(oe.selectedDateElem=a,"single"===oe.config.mode)oe.selectedDates=[i];else if("multiple"===oe.config.mode){var r=ee(i);r?oe.selectedDates.splice(parseInt(r),1):oe.selectedDates.push(i)}else"range"===oe.config.mode&&(2===oe.selectedDates.length&&oe.clear(),oe.selectedDates.push(i),0!==e(i,oe.selectedDates[0],!0)&&oe.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(m(),o){var l=oe.currentYear!==i.getFullYear();oe.currentYear=i.getFullYear(),oe.currentMonth=i.getMonth(),l&&Q("onYearChange"),Q("onMonthChange")}if(A(),oe.config.minDate&&oe.minDateHasTime&&oe.config.enableTime&&0===e(i,oe.config.minDate)&&v(oe.config.minDate),ne(),oe.config.enableTime&&setTimeout(function(){return oe.showTimeInput=!0},50),"range"===oe.config.mode&&(1===oe.selectedDates.length?(J(a),oe._hidePrevMonthArrow=oe._hidePrevMonthArrow||void 0!==oe.minRangeDate&&oe.minRangeDate>oe.days.childNodes[0].dateObj,oe._hideNextMonthArrow=oe._hideNextMonthArrow||void 0!==oe.maxRangeDate&&oe.maxRangeDate0)for(var a=0;n[a]&&aoe.config.maxDate.getMonth():oe.currentYear>oe.config.maxDate.getFullYear()))}function ne(e){if(void 0===e&&(e=!0),!oe.selectedDates.length)return oe.clear(e);void 0!==oe.mobileInput&&oe.mobileFormatStr&&(oe.mobileInput.value=void 0!==oe.latestSelectedDateObj?oe.formatDate(oe.latestSelectedDateObj,oe.mobileFormatStr):"");var t="range"!==oe.config.mode?oe.config.conjunction:oe.l10n.rangeSeparator;oe.input.value=oe.selectedDates.map(function(e){return oe.formatDate(e,oe.config.dateFormat)}).join(t),void 0!==oe.altInput&&(oe.altInput.value=oe.selectedDates.map(function(e){return oe.formatDate(e,oe.config.altFormat)}).join(t)),!1!==e&&Q("onValueUpdate")}function ae(e){e.preventDefault();var t=oe.currentYearElement.parentNode&&oe.currentYearElement.parentNode.contains(e.target);if(e.target===oe.currentMonthElement||t){var n=function(e){return(e.wheelDelta||-e.deltaY)>=0?1:-1}(e);t?(R(oe.currentYear+n),e.target.value=oe.currentYear.toString()):oe.changeMonth(n,!0,!1)}}function ie(e){var t=oe.prevMonthNav.contains(e.target),n=oe.nextMonthNav.contains(e.target);t||n?L(t?-1:1):e.target===oe.currentYearElement?(e.preventDefault(),oe.currentYearElement.select()):"arrowUp"===e.target.className?oe.changeYear(oe.currentYear+1):"arrowDown"===e.target.className&&oe.changeYear(oe.currentYear-1)}var oe={};return oe.parseDate=Z,oe.formatDate=function(e,t){return void 0!==oe.config&&void 0!==oe.config.formatDate?oe.config.formatDate(e,t):t.split("").map(function(t,n,a){return w[t]&&"\\"!==a[n-1]?w[t](e,oe.l10n,oe.config):"\\"!==t?t:""}).join("")},oe._animationLoop=[],oe._handlers=[],oe._bind=y,oe._setHoursFromDate=v,oe.changeMonth=L,oe.changeYear=R,oe.clear=function(e){void 0===e&&(e=!0),oe.input.value="",oe.altInput&&(oe.altInput.value=""),oe.mobileInput&&(oe.mobileInput.value=""),oe.selectedDates=[],oe.latestSelectedDateObj=void 0,oe.showTimeInput=!1,oe.redraw(),!0===e&&Q("onChange")},oe.close=function(){oe.isOpen=!1,oe.isMobile||(oe.calendarContainer.classList.remove("open"),oe._input.classList.remove("active")),Q("onClose")},oe._createElement=i,oe.destroy=function(){void 0!==oe.config&&Q("onDestroy");for(var e=oe._handlers.length;e--;){var t=oe._handlers[e];t.element.removeEventListener(t.event,t.handler)}oe._handlers=[],oe.mobileInput?(oe.mobileInput.parentNode&&oe.mobileInput.parentNode.removeChild(oe.mobileInput),oe.mobileInput=void 0):oe.calendarContainer&&oe.calendarContainer.parentNode&&oe.calendarContainer.parentNode.removeChild(oe.calendarContainer),oe.altInput&&(oe.input.type="text",oe.altInput.parentNode&&oe.altInput.parentNode.removeChild(oe.altInput),delete oe.altInput),oe.input&&(oe.input.type=oe.input._type,oe.input.classList.remove("flatpickr-input"),oe.input.removeAttribute("readonly"),oe.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete oe[e]}catch(e){}})},oe.isEnabled=W,oe.jumpToDate=T,oe.open=function(e,t){if(void 0===t&&(t=oe._input),oe.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),setTimeout(function(){void 0!==oe.mobileInput&&oe.mobileInput.click()},0),void Q("onOpen");oe.isOpen||oe._input.disabled||oe.config.inline||(oe.isOpen=!0,oe.calendarContainer.classList.add("open"),$(t),oe._input.classList.add("active"),Q("onOpen"))},oe.redraw=q,oe.set=function(e,t){null!==e&&"object"==typeof e?Object.assign(oe.config,e):oe.config[e]=t,oe.redraw(),T()},oe.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=void 0),0!==e&&!e)return oe.clear(t);G(e,n),oe.showTimeInput=oe.selectedDates.length>0,oe.latestSelectedDateObj=oe.selectedDates[0],oe.redraw(),T(),v(),ne(t),t&&Q("onChange")},oe.toggle=function(){if(oe.isOpen)return oe.close();oe.open()},oe.element=oe.input=t,oe.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange"];oe.config=d({},c.defaultConfig);var a=d({},r,JSON.parse(JSON.stringify(t.dataset||{}))),i={};Object.defineProperty(oe.config,"enable",{get:function(){return oe.config._enable||[]},set:function(e){oe.config._enable=V(e)}}),Object.defineProperty(oe.config,"disable",{get:function(){return oe.config._disable||[]},set:function(e){oe.config._disable=V(e)}}),!a.dateFormat&&a.enableTime&&(i.dateFormat=a.noCalendar?"H:i"+(a.enableSeconds?":S":""):c.defaultConfig.dateFormat+" H:i"+(a.enableSeconds?":S":"")),a.altInput&&a.enableTime&&!a.altFormat&&(i.altFormat=a.noCalendar?"h:i"+(a.enableSeconds?":S K":" K"):c.defaultConfig.altFormat+" h:i"+(a.enableSeconds?":S":"")+" K"),Object.defineProperty(oe.config,"minDate",{get:function(){return oe.config._minDate},set:U("min")}),Object.defineProperty(oe.config,"maxDate",{get:function(){return oe.config._maxDate},set:U("max")}),Object.assign(oe.config,i,a);for(var o=0;ooe.now.getTime()?oe.config.minDate:oe.config.maxDate&&oe.config.maxDate.getTime()0||oe.config.minDate.getMinutes()>0||oe.config.minDate.getSeconds()>0),oe.maxDateHasTime=!!oe.config.maxDate&&(oe.config.maxDate.getHours()>0||oe.config.maxDate.getMinutes()>0||oe.config.maxDate.getSeconds()>0),Object.defineProperty(oe,"showTimeInput",{get:function(){return oe._showTimeInput},set:function(e){oe._showTimeInput=e,oe.calendarContainer&&a(oe.calendarContainer,"showTimeInput",e),$()}})}(),oe.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=oe.currentMonth),void 0===t&&(t=oe.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:oe.l10n.daysInMonth[e]}},oe.isMobile||function(){var e=window.document.createDocumentFragment();if(oe.calendarContainer=i("div","flatpickr-calendar"),oe.calendarContainer.tabIndex=-1,!oe.config.noCalendar){if(e.appendChild(function(){var e=window.document.createDocumentFragment();oe.monthNav=i("div","flatpickr-month"),oe.prevMonthNav=i("span","flatpickr-prev-month"),oe.prevMonthNav.innerHTML=oe.config.prevArrow,oe.currentMonthElement=i("span","cur-month"),oe.currentMonthElement.title=oe.l10n.scrollTitle;var t=o("cur-year");return oe.currentYearElement=t.childNodes[0],oe.currentYearElement.title=oe.l10n.scrollTitle,oe.config.minDate&&(oe.currentYearElement.min=oe.config.minDate.getFullYear().toString()),oe.config.maxDate&&(oe.currentYearElement.max=oe.config.maxDate.getFullYear().toString(),oe.currentYearElement.disabled=!!oe.config.minDate&&oe.config.minDate.getFullYear()===oe.config.maxDate.getFullYear()),oe.nextMonthNav=i("span","flatpickr-next-month"),oe.nextMonthNav.innerHTML=oe.config.nextArrow,oe.navigationCurrentMonth=i("span","flatpickr-current-month"),oe.navigationCurrentMonth.appendChild(oe.currentMonthElement),oe.navigationCurrentMonth.appendChild(t),e.appendChild(oe.prevMonthNav),e.appendChild(oe.navigationCurrentMonth),e.appendChild(oe.nextMonthNav),oe.monthNav.appendChild(e),Object.defineProperty(oe,"_hidePrevMonthArrow",{get:function(){return oe.__hidePrevMonthArrow},set:function(e){oe.__hidePrevMonthArrow!==e&&(oe.prevMonthNav.style.display=e?"none":"block"),oe.__hidePrevMonthArrow=e}}),Object.defineProperty(oe,"_hideNextMonthArrow",{get:function(){return oe.__hideNextMonthArrow},set:function(e){oe.__hideNextMonthArrow!==e&&(oe.nextMonthNav.style.display=e?"none":"block"),oe.__hideNextMonthArrow=e}}),te(),oe.monthNav}()),oe.innerContainer=i("div","flatpickr-innerContainer"),oe.config.weekNumbers){var t=function(){oe.calendarContainer.classList.add("hasWeeks");var e=i("div","flatpickr-weekwrapper");e.appendChild(i("span","flatpickr-weekday",oe.l10n.weekAbbreviation));var t=i("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,r=t.weekNumbers;oe.innerContainer.appendChild(n),oe.weekNumbers=r,oe.weekWrapper=n}oe.rContainer=i("div","flatpickr-rContainer"),oe.rContainer.appendChild(P()),oe.daysContainer||(oe.daysContainer=i("div","flatpickr-days"),oe.daysContainer.tabIndex=-1),A(),oe.rContainer.appendChild(oe.daysContainer),oe.innerContainer.appendChild(oe.rContainer),e.appendChild(oe.innerContainer)}oe.config.enableTime&&e.appendChild(function(){oe.calendarContainer.classList.add("hasTime"),oe.config.noCalendar&&oe.calendarContainer.classList.add("noCalendar"),oe.timeContainer=i("div","flatpickr-time"),oe.timeContainer.tabIndex=-1;var e=i("span","flatpickr-time-separator",":"),t=o("flatpickr-hour");oe.hourElement=t.childNodes[0];var n=o("flatpickr-minute");if(oe.minuteElement=n.childNodes[0],oe.hourElement.tabIndex=oe.minuteElement.tabIndex=-1,oe.hourElement.value=g(oe.latestSelectedDateObj?oe.latestSelectedDateObj.getHours():oe.config.time_24hr?oe.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(oe.config.defaultHour)),oe.minuteElement.value=g(oe.latestSelectedDateObj?oe.latestSelectedDateObj.getMinutes():oe.config.defaultMinute),oe.hourElement.step=oe.config.hourIncrement.toString(),oe.minuteElement.step=oe.config.minuteIncrement.toString(),oe.hourElement.min=oe.config.time_24hr?"0":"1",oe.hourElement.max=oe.config.time_24hr?"23":"12",oe.minuteElement.min="0",oe.minuteElement.max="59",oe.hourElement.title=oe.minuteElement.title=oe.l10n.scrollTitle,oe.timeContainer.appendChild(t),oe.timeContainer.appendChild(e),oe.timeContainer.appendChild(n),oe.config.time_24hr&&oe.timeContainer.classList.add("time24hr"),oe.config.enableSeconds){oe.timeContainer.classList.add("hasSeconds");var a=o("flatpickr-second");oe.secondElement=a.childNodes[0],oe.secondElement.value=g(oe.latestSelectedDateObj?oe.latestSelectedDateObj.getSeconds():oe.config.defaultSeconds),oe.secondElement.step=oe.minuteElement.step,oe.secondElement.min=oe.minuteElement.min,oe.secondElement.max=oe.minuteElement.max,oe.timeContainer.appendChild(i("span","flatpickr-time-separator",":")),oe.timeContainer.appendChild(a)}return oe.config.time_24hr||(oe.amPM=i("span","flatpickr-am-pm",oe.l10n.amPM[p((oe.latestSelectedDateObj?oe.hourElement.value:oe.config.defaultHour)>11)]),oe.amPM.title=oe.l10n.toggleTitle,oe.amPM.tabIndex=-1,oe.timeContainer.appendChild(oe.amPM)),oe.timeContainer}()),a(oe.calendarContainer,"rangeMode","range"===oe.config.mode),a(oe.calendarContainer,"animate",oe.config.animate),oe.calendarContainer.appendChild(e);var l=void 0!==oe.config.appendTo&&oe.config.appendTo.nodeType;if((oe.config.inline||oe.config.static)&&(oe.calendarContainer.classList.add(oe.config.inline?"inline":"static"),oe.config.inline&&!l&&oe.element.parentNode&&oe.element.parentNode.insertBefore(oe.calendarContainer,oe._input.nextSibling),oe.config.static)){var c=i("div","flatpickr-wrapper");oe.element.parentNode&&oe.element.parentNode.insertBefore(c,oe.element),c.appendChild(oe.element),oe.altInput&&c.appendChild(oe.altInput),c.appendChild(oe.calendarContainer)}oe.config.static||oe.config.inline||(void 0!==oe.config.appendTo?oe.config.appendTo:window.document.body).appendChild(oe.calendarContainer)}(),function(){if(oe.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(oe.element.querySelectorAll("[data-"+e+"]"),function(t){return y(t,"click",oe[e])})}),oe.isMobile)!function(){var e=oe.config.enableTime?oe.config.noCalendar?"time":"datetime-local":"date";oe.mobileInput=i("input",oe.input.className+" flatpickr-mobile"),oe.mobileInput.step=oe.input.getAttribute("step")||"any",oe.mobileInput.tabIndex=1,oe.mobileInput.type=e,oe.mobileInput.disabled=oe.input.disabled,oe.mobileInput.placeholder=oe.input.placeholder,oe.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",oe.selectedDates.length&&(oe.mobileInput.defaultValue=oe.mobileInput.value=oe.formatDate(oe.selectedDates[0],oe.mobileFormatStr)),oe.config.minDate&&(oe.mobileInput.min=oe.formatDate(oe.config.minDate,"Y-m-d")),oe.config.maxDate&&(oe.mobileInput.max=oe.formatDate(oe.config.maxDate,"Y-m-d")),oe.input.type="hidden",void 0!==oe.altInput&&(oe.altInput.type="hidden");try{oe.input.parentNode&&oe.input.parentNode.insertBefore(oe.mobileInput,oe.input.nextSibling)}catch(e){}oe.mobileInput.addEventListener("change",function(e){oe.setDate(e.target.value,!1,oe.mobileFormatStr),Q("onChange"),Q("onClose")})}();else{var e=n(K,50);oe._debouncedChange=n(E,300),"range"===oe.config.mode&&oe.daysContainer&&y(oe.daysContainer,"mouseover",function(e){return J(e.target)}),y(window.document.body,"keydown",B),oe.config.static||y(oe._input,"keydown",B),oe.config.inline||oe.config.static||y(window,"resize",e),void 0!==window.ontouchstart&&y(window.document.body,"touchstart",H),y(window.document.body,"mousedown",x(H)),y(oe._input,"blur",H),!0===oe.config.clickOpens&&(y(oe._input,"focus",oe.open),y(oe._input,"mousedown",x(oe.open))),void 0!==oe.daysContainer&&(oe.monthNav.addEventListener("wheel",function(e){return e.preventDefault()}),y(oe.monthNav,"wheel",n(ae,10)),y(oe.monthNav,"mousedown",x(ie)),y(oe.monthNav,["keyup","increment"],b),y(oe.daysContainer,"mousedown",x(z)),oe.config.animate&&(y(oe.daysContainer,["webkitAnimationEnd","animationend"],N),y(oe.monthNav,["webkitAnimationEnd","animationend"],S))),void 0!==oe.timeContainer&&void 0!==oe.minuteElement&&void 0!==oe.hourElement&&(y(oe.timeContainer,["wheel","input","increment"],f),y(oe.timeContainer,"mousedown",x(_)),y(oe.timeContainer,["wheel","increment"],oe._debouncedChange),y(oe.timeContainer,"input",E),y([oe.hourElement,oe.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==oe.secondElement&&y(oe.secondElement,"focus",function(){return oe.secondElement&&oe.secondElement.select()}),void 0!==oe.amPM&&y(oe.amPM,"mousedown",x(function(e){f(e),E()})))}}(),(oe.selectedDates.length||oe.config.noCalendar)&&(oe.config.enableTime&&v(oe.config.noCalendar?oe.latestSelectedDateObj||oe.config.minDate:void 0),ne(!1)),oe.showTimeInput=oe.selectedDates.length>0||oe.config.noCalendar,void 0!==oe.weekWrapper&&void 0!==oe.daysContainer&&(oe.calendarContainer.style.width=oe.daysContainer.offsetWidth+oe.weekWrapper.offsetWidth+"px"),oe.isMobile||$(),Q("onReady"),oe}function l(e,t){for(var n=Array.prototype.slice.call(e),a=[],i=0;i",noCalendar:!1,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},m={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"]},g=function(e){return("0"+e).slice(-2)},p=function(e){return!0===e?1:0},h=function(e){return e instanceof Array?e:[e]},v=function(){},D={D:v,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t){e.setHours(e.getHours()%12+12*p(/pm/i.test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t){var n=parseInt(t);return new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0)},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:v,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},w:v,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},C={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"(am|AM|Am|aM|pm|PM|Pm|pM)",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},w={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[w.w(e,t,n)]},F:function(e,t,n){return s(w.n(e,t,n)-1,!1,t)},G:function(e,t,n){return g(w.h(e,t,n))},H:function(e){return g(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e){return e.getHours()>11?"PM":"AM"},M:function(e,t){return s(e.getMonth(),!0,t)},S:function(e){return g(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return g(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return g(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return g(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}};return"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return l(this,e)},HTMLElement.prototype.flatpickr=function(e){return l([this],e)}),c=function(e,t){return e instanceof NodeList?l(e,t):l("string"==typeof e?window.document.querySelectorAll(e):[e],t)},window.flatpickr=c,c.defaultConfig=f,c.l10ns={en:d({},m),default:d({},m)},c.localize=function(e){c.l10ns.default=d({},c.l10ns.default,e)},c.setDefaults=function(e){c.defaultConfig=d({},c.defaultConfig,e)},void 0!==t&&(t.fn.flatpickr=function(e){return l(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},c},e.exports=n()}).call(t,n(0))},function(e,t,n){n(3),n(4),n(5),n(6),n(7)},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n.n(a),o=n(1);n.n(o),i()(function(){i()("input[type=date]").each(function(){var e=i()(this);e.data("calendar-enabled")&&e.flatpickr(i.a.extend({altInput:!0},e.data("calendar-config")))})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n.n(a),o=n(1);n.n(o),i()(function(){i()("input[type=datetime-local]").each(function(){var e=i()(this);e.data("calendar-enabled")&&e.flatpickr(i.a.extend({altInput:!0,enableTime:!0},e.data("calendar-config")))})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n.n(a),o=n(1);n.n(o),i()(function(){i()("input[type=time]").each(function(){var e=i()(this);e.data("calendar-enabled")&&e.flatpickr(i.a.extend({altInput:!0,enableTime:!0,noCalendar:!0},e.data("calendar-config")))})})}]); -------------------------------------------------------------------------------- /admin/client/dist/js/bundle.js: -------------------------------------------------------------------------------- 1 | !function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/resources/vendor/silverware/calendar/admin/client/dist/",t(t.s=2)}([function(e,t){e.exports=jQuery},function(e,t,n){(function(t){var n;n=function(){"use strict";function e(e,t,n){return!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}function n(e,t,n){var a;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=setTimeout(function(){a=null,n||e.apply(i,o)},t),n&&!a&&e.apply(i,o)}}function a(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function i(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function o(e){var t=i("div","numInputWrapper"),n=i("input","numInput "+e),a=i("span","arrowUp"),o=i("span","arrowDown");return n.type="text",n.pattern="\\d*",t.appendChild(n),t.appendChild(a),t.appendChild(o),t}function r(t,r){function l(e){return e.bind(oe)}function f(e){oe.config.noCalendar&&!oe.selectedDates.length&&(oe.setDate((new Date).setHours(oe.config.defaultHour,oe.config.defaultMinute,oe.config.defaultSeconds),!1),m(),ne()),function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==oe.amPM&&e.target===oe.amPM&&(oe.amPM.textContent=oe.l10n.amPM["AM"===oe.amPM.textContent?1:0]);var a=Number(n.min),i=Number(n.max),o=Number(n.step),r=parseInt(n.value,10),l=e.delta||(t?38===e.which?1:-1:Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY))||0),c=r+o*l;if(void 0!==n.value&&2===n.value.length){var d=n===oe.hourElement,s=n===oe.minuteElement;ci&&(c=n===oe.hourElement?c-i-p(!oe.amPM):a,s&&I(void 0,1,oe.hourElement)),oe.amPM&&d&&(1===o?c+r===23:Math.abs(c-r)>o)&&(oe.amPM.textContent="PM"===oe.amPM.textContent?"AM":"PM"),n.value=g(c)}}(e),0!==oe.selectedDates.length&&(!oe.minDateHasTime||"input"!==e.type||e.target.value.length>=2?(m(),ne()):setTimeout(function(){m(),ne()},1e3))}function m(){if(void 0!==oe.hourElement&&void 0!==oe.minuteElement){var t,n,a=(parseInt(oe.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(oe.minuteElement.value,10)||0)%60,o=void 0!==oe.secondElement?(parseInt(oe.secondElement.value,10)||0)%60:0;void 0!==oe.amPM&&(t=a,n=oe.amPM.textContent,a=t%12+12*p("PM"===n)),oe.config.minDate&&oe.minDateHasTime&&oe.latestSelectedDateObj&&0===e(oe.latestSelectedDateObj,oe.config.minDate)&&(a=Math.max(a,oe.config.minDate.getHours()))===oe.config.minDate.getHours()&&(i=Math.max(i,oe.config.minDate.getMinutes())),oe.config.maxDate&&oe.maxDateHasTime&&oe.latestSelectedDateObj&&0===e(oe.latestSelectedDateObj,oe.config.maxDate)&&(a=Math.min(a,oe.config.maxDate.getHours()))===oe.config.maxDate.getHours()&&(i=Math.min(i,oe.config.maxDate.getMinutes())),M(a,i,o)}}function v(e){var t=e||oe.latestSelectedDateObj;t&&M(t.getHours(),t.getMinutes(),t.getSeconds())}function M(e,t,n){void 0!==oe.latestSelectedDateObj&&oe.latestSelectedDateObj.setHours(e%24,t,n||0,0),oe.hourElement&&oe.minuteElement&&!oe.isMobile&&(oe.hourElement.value=g(oe.config.time_24hr?e:(12+e)%12+12*p(e%12==0)),oe.minuteElement.value=g(t),void 0!==oe.amPM&&(oe.amPM.textContent=e>=12?"PM":"AM"),void 0!==oe.secondElement&&(oe.secondElement.value=g(n)))}function b(e){var t=parseInt(e.target.value)+(e.delta||0);4!==t.toString().length&&"Enter"!==e.key||(oe.currentYearElement.blur(),/[^\d]/.test(t.toString())||R(t))}function y(e,t,n){return t instanceof Array?t.forEach(function(t){return y(e,t,n)}):e instanceof Array?e.forEach(function(e){return y(e,t,n)}):(e.addEventListener(t,n),void oe._handlers.push({element:e,event:t,handler:n}))}function x(e){return function(t){return 1===t.which&&e(t)}}function E(){Q("onChange")}function k(){oe._animationLoop.forEach(function(e){return e()}),oe._animationLoop=[]}function N(e){if(oe.daysContainer&&oe.daysContainer.childNodes.length>1)switch(e.animationName){case"fpSlideLeft":oe.daysContainer.lastChild&&oe.daysContainer.lastChild.classList.remove("slideLeftNew"),oe.daysContainer.removeChild(oe.daysContainer.firstChild),oe.days=oe.daysContainer.firstChild,k();break;case"fpSlideRight":oe.daysContainer.firstChild&&oe.daysContainer.firstChild.classList.remove("slideRightNew"),oe.daysContainer.removeChild(oe.daysContainer.lastChild),oe.days=oe.daysContainer.firstChild,k()}}function S(e){switch(e.animationName){case"fpSlideLeftNew":case"fpSlideRightNew":oe.navigationCurrentMonth.classList.remove("slideLeftNew"),oe.navigationCurrentMonth.classList.remove("slideRightNew");for(var t=oe.navigationCurrentMonth;t.nextSibling&&/curr/.test(t.nextSibling.className);)oe.monthNav.removeChild(t.nextSibling);for(;t.previousSibling&&/curr/.test(t.previousSibling.className);)oe.monthNav.removeChild(t.previousSibling);oe.oldCurMonth=void 0}}function T(e){var t=void 0!==e?Z(e):oe.latestSelectedDateObj||(oe.config.minDate&&oe.config.minDate>oe.now?oe.config.minDate:oe.config.maxDate&&oe.config.maxDateoe.minRangeDate&&noe.selectedDates[0]&&(oe.maxRangeDate=n)),"range"===oe.config.mode&&(function(t){return!("range"!==oe.config.mode||oe.selectedDates.length<2)&&e(t,oe.selectedDates[0])>=0&&e(t,oe.selectedDates[1])<=0}(n)&&!ee(n)&&c.classList.add("inRange"),1===oe.selectedDates.length&&void 0!==oe.minRangeDate&&void 0!==oe.maxRangeDate&&(noe.maxRangeDate)&&c.classList.add("notAllowed")),oe.weekNumbers&&"prevMonthDay"!==t&&o%7==1&&oe.weekNumbers.insertAdjacentHTML("beforeend",""+oe.config.getWeek(n)+""),Q("onDayCreate",c),c}function O(e,t){var n=e+t||0,a=void 0!==e?oe.days.childNodes[n]:oe.selectedDateElem||oe.todayDateElem||oe.days.childNodes[0],i=function(){(a=a||oe.days.childNodes[n]).focus(),"range"===oe.config.mode&&J(a)};if(void 0===a&&0!==t)return t>0?(oe.changeMonth(1,!0,void 0,!0),n%=42):t<0&&(oe.changeMonth(-1,!0,void 0,!0),n+=42),F(i);i()}function F(e){!0===oe.config.animate?oe._animationLoop.push(e):e()}function A(e){if(void 0!==oe.daysContainer){var t=(new Date(oe.currentYear,oe.currentMonth,1).getDay()-oe.l10n.firstDayOfWeek+7)%7,n="range"===oe.config.mode,a=oe.utils.getDaysInMonth((oe.currentMonth-1+12)%12),o=oe.utils.getDaysInMonth(),r=window.document.createDocumentFragment(),l=a+1-t,c=0;for(oe.weekNumbers&&oe.weekNumbers.firstChild&&(oe.weekNumbers.textContent=""),n&&(oe.minRangeDate=new Date(oe.currentYear,oe.currentMonth-1,l),oe.maxRangeDate=new Date(oe.currentYear,oe.currentMonth+1,(42-t)%o));l<=a;l++,c++)r.appendChild(Y("prevMonthDay",new Date(oe.currentYear,oe.currentMonth-1,l),l,c));for(l=1;l<=o;l++,c++)r.appendChild(Y("",new Date(oe.currentYear,oe.currentMonth,l),l,c));for(var d=o+1;d<=42-t;d++,c++)r.appendChild(Y("nextMonthDay",new Date(oe.currentYear,oe.currentMonth+1,d%o),d,c));n&&1===oe.selectedDates.length&&r.childNodes[0]?(oe._hidePrevMonthArrow=oe._hidePrevMonthArrow||!!oe.minRangeDate&&oe.minRangeDate>r.childNodes[0].dateObj,oe._hideNextMonthArrow=oe._hideNextMonthArrow||!!oe.maxRangeDate&&oe.maxRangeDate1;)oe.daysContainer.removeChild(oe.daysContainer.firstChild);else!function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(oe.daysContainer);e&&e>=0?oe.daysContainer.appendChild(s):oe.daysContainer.insertBefore(s,oe.daysContainer.firstChild),oe.days=oe.daysContainer.childNodes[0]}}function P(){oe.weekdayContainer||(oe.weekdayContainer=i("div","flatpickr-weekdays"));var e=oe.l10n.firstDayOfWeek,t=oe.l10n.weekdays.shorthand.slice();return e>0&&e\n "+t.join("")+"\n \n ",oe.weekdayContainer}function L(e,t,n,a){void 0===t&&(t=!0),void 0===n&&(n=oe.config.animate),void 0===a&&(a=!1);var i=t?e:e-oe.currentMonth;if(!(i<0&&oe._hidePrevMonthArrow||i>0&&oe._hideNextMonthArrow)){if(oe.currentMonth+=i,(oe.currentMonth<0||oe.currentMonth>11)&&(oe.currentYear+=oe.currentMonth>11?1:-1,oe.currentMonth=(oe.currentMonth+12)%12,Q("onYearChange")),A(n?i:void 0),!n)return Q("onMonthChange"),te();var o=oe.navigationCurrentMonth;if(i<0)for(;o.nextSibling&&/curr/.test(o.nextSibling.className);)oe.monthNav.removeChild(o.nextSibling);else if(i>0)for(;o.previousSibling&&/curr/.test(o.previousSibling.className);)oe.monthNav.removeChild(o.previousSibling);oe.oldCurMonth=oe.navigationCurrentMonth,oe.navigationCurrentMonth=oe.monthNav.insertBefore(oe.oldCurMonth.cloneNode(!0),i>0?oe.oldCurMonth.nextSibling:oe.oldCurMonth);var r=oe.daysContainer;if(r.firstChild&&r.lastChild&&(i>0?(r.firstChild.classList.add("slideLeft"),r.lastChild.classList.add("slideLeftNew"),oe.oldCurMonth.classList.add("slideLeft"),oe.navigationCurrentMonth.classList.add("slideLeftNew")):i<0&&(r.firstChild.classList.add("slideRightNew"),r.lastChild.classList.add("slideRight"),oe.oldCurMonth.classList.add("slideRight"),oe.navigationCurrentMonth.classList.add("slideRightNew"))),oe.currentMonthElement=oe.navigationCurrentMonth.firstChild,oe.currentYearElement=oe.navigationCurrentMonth.lastChild.childNodes[0],te(),oe.oldCurMonth.firstChild&&(oe.oldCurMonth.firstChild.textContent=s(oe.currentMonth-i,oe.config.shorthandCurrentMonth,oe.l10n)),Q("onMonthChange"),a&&document.activeElement&&document.activeElement.$i){var l=document.activeElement.$i;F(function(){O(l,0)})}}}function j(e){return!(!oe.config.appendTo||!oe.config.appendTo.contains(e))||oe.calendarContainer.contains(e)}function H(e){if(oe.isOpen&&!oe.config.inline){var t=j(e.target),n=e.target===oe.input||e.target===oe.altInput||oe.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(oe.input)||~e.path.indexOf(oe.altInput));("blur"===e.type?n&&e.relatedTarget&&!j(e.relatedTarget):!n&&!t)&&-1===oe.config.ignoredFocusElements.indexOf(e.target)&&(oe.close(),"range"===oe.config.mode&&1===oe.selectedDates.length&&(oe.clear(!1),oe.redraw()))}}function R(e){if(!(!e||oe.currentYearElement.min&&eparseInt(oe.currentYearElement.max))){var t=e,n=oe.currentYear!==t;oe.currentYear=t||oe.currentYear,oe.config.maxDate&&oe.currentYear===oe.config.maxDate.getFullYear()?oe.currentMonth=Math.min(oe.config.maxDate.getMonth(),oe.currentMonth):oe.config.minDate&&oe.currentYear===oe.config.minDate.getFullYear()&&(oe.currentMonth=Math.max(oe.config.minDate.getMonth(),oe.currentMonth)),n&&(oe.redraw(),Q("onYearChange"))}}function W(t,n){void 0===n&&(n=!0);var a=oe.parseDate(t,void 0,n);if(oe.config.minDate&&a&&e(a,oe.config.minDate,void 0!==n?n:!oe.minDateHasTime)<0||oe.config.maxDate&&a&&e(a,oe.config.maxDate,void 0!==n?n:!oe.maxDateHasTime)>0)return!1;if(!oe.config.enable.length&&!oe.config.disable.length)return!0;if(void 0===a)return!1;for(var i=oe.config.enable.length>0,o=i?oe.config.enable:oe.config.disable,r=0,l=void 0;r=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function B(e){var t=e.target===oe._input,n=j(e.target),a=oe.config.allowInput,i=oe.isOpen&&(!a||!t),o=oe.config.inline&&t&&!a;if("Enter"===e.key&&t){if(a)return oe.setDate(oe._input.value,!0,e.target===oe.altInput?oe.config.altFormat:oe.config.dateFormat),e.target.blur();oe.open()}else if(n||i||o){var r=!!oe.timeContainer&&oe.timeContainer.contains(e.target);switch(e.key){case"Enter":r?ne():z(e);break;case"Escape":e.preventDefault(),oe.close();break;case"Backspace":case"Delete":t&&!oe.config.allowInput&&oe.clear();break;case"ArrowLeft":case"ArrowRight":if(r)oe.hourElement&&oe.hourElement.focus();else if(e.preventDefault(),oe.daysContainer){var l="ArrowRight"===e.key?1:-1;e.ctrlKey?L(l,!0,void 0,!0):O(e.target.$i,l)}break;case"ArrowUp":case"ArrowDown":e.preventDefault();var c="ArrowDown"===e.key?1:-1;oe.daysContainer&&void 0!==e.target.$i?e.ctrlKey?(R(oe.currentYear-c),O(e.target.$i,0)):r||O(e.target.$i,7*c):oe.config.enableTime&&(!r&&oe.hourElement&&oe.hourElement.focus(),f(e),oe._debouncedChange());break;case"Tab":e.target===oe.hourElement?(e.preventDefault(),oe.minuteElement.select()):e.target===oe.minuteElement&&(oe.secondElement||oe.amPM)?(e.preventDefault(),void 0!==oe.secondElement?oe.secondElement.focus():void 0!==oe.amPM&&oe.amPM.focus()):e.target===oe.secondElement&&oe.amPM&&(e.preventDefault(),oe.amPM.focus());break;case"a":void 0!==oe.amPM&&e.target===oe.amPM&&(oe.amPM.textContent="AM",m(),ne());break;case"p":void 0!==oe.amPM&&e.target===oe.amPM&&(oe.amPM.textContent="PM",m(),ne())}Q("onKeyDown",e)}}function J(e){if(1===oe.selectedDates.length&&e.classList.contains("flatpickr-day")&&void 0!==oe.minRangeDate&&void 0!==oe.maxRangeDate){for(var t=e.dateObj,n=oe.parseDate(oe.selectedDates[0],void 0,!0),a=Math.min(t.getTime(),oe.selectedDates[0].getTime()),i=Math.max(t.getTime(),oe.selectedDates[0].getTime()),o=!1,r=a;roe.maxRangeDate.getTime(),d=oe.days.childNodes[l];if(c)return d.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){d.classList.remove(e)}),"continue";if(o&&!c)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){d.classList.remove(e)});var s=Math.max(oe.minRangeDate.getTime(),a),u=Math.min(oe.maxRangeDate.getTime(),i);e.classList.add(tt&&r===n.getTime()&&d.classList.add("endRange"),r>=s&&r<=u&&d.classList.add("inRange")}(l,c)}}function K(){!oe.isOpen||oe.config.static||oe.config.inline||$()}function U(e){return function(t){var n=oe.config["_"+e+"Date"]=oe.parseDate(t),a=oe.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(oe["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),oe.selectedDates&&(oe.selectedDates=oe.selectedDates.filter(function(e){return W(e)}),oe.selectedDates.length||"min"!==e||v(n),ne()),oe.daysContainer&&(q(),void 0!==n?oe.currentYearElement[e]=n.getFullYear().toString():oe.currentYearElement.removeAttribute(e),oe.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function $(e){if(void 0===e&&(e=oe._positionElement),void 0!==oe.calendarContainer){var t=oe.calendarContainer.offsetHeight,n=oe.calendarContainer.offsetWidth,i=oe.config.position,o=e.getBoundingClientRect(),r=window.innerHeight-o.bottom,l="above"===i||"below"!==i&&rt,c=window.pageYOffset+o.top+(l?-t-2:e.offsetHeight+2);if(a(oe.calendarContainer,"arrowTop",!l),a(oe.calendarContainer,"arrowBottom",l),!oe.config.inline){var d=window.pageXOffset+o.left,s=window.document.body.offsetWidth-o.right,u=d+n>window.document.body.offsetWidth;a(oe.calendarContainer,"rightMost",u),oe.config.static||(oe.calendarContainer.style.top=c+"px",u?(oe.calendarContainer.style.left="auto",oe.calendarContainer.style.right=s+"px"):(oe.calendarContainer.style.left=d+"px",oe.calendarContainer.style.right="auto"))}}}function q(){oe.config.noCalendar||oe.isMobile||(P(),te(),A())}function z(t){t.preventDefault(),t.stopPropagation();var n=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(t.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")});if(void 0!==n){var a=n,i=oe.latestSelectedDateObj=new Date(a.dateObj.getTime()),o=i.getMonth()!==oe.currentMonth&&"range"!==oe.config.mode;if(oe.selectedDateElem=a,"single"===oe.config.mode)oe.selectedDates=[i];else if("multiple"===oe.config.mode){var r=ee(i);r?oe.selectedDates.splice(parseInt(r),1):oe.selectedDates.push(i)}else"range"===oe.config.mode&&(2===oe.selectedDates.length&&oe.clear(),oe.selectedDates.push(i),0!==e(i,oe.selectedDates[0],!0)&&oe.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(m(),o){var l=oe.currentYear!==i.getFullYear();oe.currentYear=i.getFullYear(),oe.currentMonth=i.getMonth(),l&&Q("onYearChange"),Q("onMonthChange")}if(A(),oe.config.minDate&&oe.minDateHasTime&&oe.config.enableTime&&0===e(i,oe.config.minDate)&&v(oe.config.minDate),ne(),oe.config.enableTime&&setTimeout(function(){return oe.showTimeInput=!0},50),"range"===oe.config.mode&&(1===oe.selectedDates.length?(J(a),oe._hidePrevMonthArrow=oe._hidePrevMonthArrow||void 0!==oe.minRangeDate&&oe.minRangeDate>oe.days.childNodes[0].dateObj,oe._hideNextMonthArrow=oe._hideNextMonthArrow||void 0!==oe.maxRangeDate&&oe.maxRangeDate0)for(var a=0;n[a]&&aoe.config.maxDate.getMonth():oe.currentYear>oe.config.maxDate.getFullYear()))}function ne(e){if(void 0===e&&(e=!0),!oe.selectedDates.length)return oe.clear(e);void 0!==oe.mobileInput&&oe.mobileFormatStr&&(oe.mobileInput.value=void 0!==oe.latestSelectedDateObj?oe.formatDate(oe.latestSelectedDateObj,oe.mobileFormatStr):"");var t="range"!==oe.config.mode?oe.config.conjunction:oe.l10n.rangeSeparator;oe.input.value=oe.selectedDates.map(function(e){return oe.formatDate(e,oe.config.dateFormat)}).join(t),void 0!==oe.altInput&&(oe.altInput.value=oe.selectedDates.map(function(e){return oe.formatDate(e,oe.config.altFormat)}).join(t)),!1!==e&&Q("onValueUpdate")}function ae(e){e.preventDefault();var t=oe.currentYearElement.parentNode&&oe.currentYearElement.parentNode.contains(e.target);if(e.target===oe.currentMonthElement||t){var n=function(e){return(e.wheelDelta||-e.deltaY)>=0?1:-1}(e);t?(R(oe.currentYear+n),e.target.value=oe.currentYear.toString()):oe.changeMonth(n,!0,!1)}}function ie(e){var t=oe.prevMonthNav.contains(e.target),n=oe.nextMonthNav.contains(e.target);t||n?L(t?-1:1):e.target===oe.currentYearElement?(e.preventDefault(),oe.currentYearElement.select()):"arrowUp"===e.target.className?oe.changeYear(oe.currentYear+1):"arrowDown"===e.target.className&&oe.changeYear(oe.currentYear-1)}var oe={};return oe.parseDate=Z,oe.formatDate=function(e,t){return void 0!==oe.config&&void 0!==oe.config.formatDate?oe.config.formatDate(e,t):t.split("").map(function(t,n,a){return w[t]&&"\\"!==a[n-1]?w[t](e,oe.l10n,oe.config):"\\"!==t?t:""}).join("")},oe._animationLoop=[],oe._handlers=[],oe._bind=y,oe._setHoursFromDate=v,oe.changeMonth=L,oe.changeYear=R,oe.clear=function(e){void 0===e&&(e=!0),oe.input.value="",oe.altInput&&(oe.altInput.value=""),oe.mobileInput&&(oe.mobileInput.value=""),oe.selectedDates=[],oe.latestSelectedDateObj=void 0,oe.showTimeInput=!1,oe.redraw(),!0===e&&Q("onChange")},oe.close=function(){oe.isOpen=!1,oe.isMobile||(oe.calendarContainer.classList.remove("open"),oe._input.classList.remove("active")),Q("onClose")},oe._createElement=i,oe.destroy=function(){void 0!==oe.config&&Q("onDestroy");for(var e=oe._handlers.length;e--;){var t=oe._handlers[e];t.element.removeEventListener(t.event,t.handler)}oe._handlers=[],oe.mobileInput?(oe.mobileInput.parentNode&&oe.mobileInput.parentNode.removeChild(oe.mobileInput),oe.mobileInput=void 0):oe.calendarContainer&&oe.calendarContainer.parentNode&&oe.calendarContainer.parentNode.removeChild(oe.calendarContainer),oe.altInput&&(oe.input.type="text",oe.altInput.parentNode&&oe.altInput.parentNode.removeChild(oe.altInput),delete oe.altInput),oe.input&&(oe.input.type=oe.input._type,oe.input.classList.remove("flatpickr-input"),oe.input.removeAttribute("readonly"),oe.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete oe[e]}catch(e){}})},oe.isEnabled=W,oe.jumpToDate=T,oe.open=function(e,t){if(void 0===t&&(t=oe._input),oe.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),setTimeout(function(){void 0!==oe.mobileInput&&oe.mobileInput.click()},0),void Q("onOpen");oe.isOpen||oe._input.disabled||oe.config.inline||(oe.isOpen=!0,oe.calendarContainer.classList.add("open"),$(t),oe._input.classList.add("active"),Q("onOpen"))},oe.redraw=q,oe.set=function(e,t){null!==e&&"object"==typeof e?Object.assign(oe.config,e):oe.config[e]=t,oe.redraw(),T()},oe.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=void 0),0!==e&&!e)return oe.clear(t);G(e,n),oe.showTimeInput=oe.selectedDates.length>0,oe.latestSelectedDateObj=oe.selectedDates[0],oe.redraw(),T(),v(),ne(t),t&&Q("onChange")},oe.toggle=function(){if(oe.isOpen)return oe.close();oe.open()},oe.element=oe.input=t,oe.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange"];oe.config=d({},c.defaultConfig);var a=d({},r,JSON.parse(JSON.stringify(t.dataset||{}))),i={};Object.defineProperty(oe.config,"enable",{get:function(){return oe.config._enable||[]},set:function(e){oe.config._enable=V(e)}}),Object.defineProperty(oe.config,"disable",{get:function(){return oe.config._disable||[]},set:function(e){oe.config._disable=V(e)}}),!a.dateFormat&&a.enableTime&&(i.dateFormat=a.noCalendar?"H:i"+(a.enableSeconds?":S":""):c.defaultConfig.dateFormat+" H:i"+(a.enableSeconds?":S":"")),a.altInput&&a.enableTime&&!a.altFormat&&(i.altFormat=a.noCalendar?"h:i"+(a.enableSeconds?":S K":" K"):c.defaultConfig.altFormat+" h:i"+(a.enableSeconds?":S":"")+" K"),Object.defineProperty(oe.config,"minDate",{get:function(){return oe.config._minDate},set:U("min")}),Object.defineProperty(oe.config,"maxDate",{get:function(){return oe.config._maxDate},set:U("max")}),Object.assign(oe.config,i,a);for(var o=0;ooe.now.getTime()?oe.config.minDate:oe.config.maxDate&&oe.config.maxDate.getTime()0||oe.config.minDate.getMinutes()>0||oe.config.minDate.getSeconds()>0),oe.maxDateHasTime=!!oe.config.maxDate&&(oe.config.maxDate.getHours()>0||oe.config.maxDate.getMinutes()>0||oe.config.maxDate.getSeconds()>0),Object.defineProperty(oe,"showTimeInput",{get:function(){return oe._showTimeInput},set:function(e){oe._showTimeInput=e,oe.calendarContainer&&a(oe.calendarContainer,"showTimeInput",e),$()}})}(),oe.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=oe.currentMonth),void 0===t&&(t=oe.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:oe.l10n.daysInMonth[e]}},oe.isMobile||function(){var e=window.document.createDocumentFragment();if(oe.calendarContainer=i("div","flatpickr-calendar"),oe.calendarContainer.tabIndex=-1,!oe.config.noCalendar){if(e.appendChild(function(){var e=window.document.createDocumentFragment();oe.monthNav=i("div","flatpickr-month"),oe.prevMonthNav=i("span","flatpickr-prev-month"),oe.prevMonthNav.innerHTML=oe.config.prevArrow,oe.currentMonthElement=i("span","cur-month"),oe.currentMonthElement.title=oe.l10n.scrollTitle;var t=o("cur-year");return oe.currentYearElement=t.childNodes[0],oe.currentYearElement.title=oe.l10n.scrollTitle,oe.config.minDate&&(oe.currentYearElement.min=oe.config.minDate.getFullYear().toString()),oe.config.maxDate&&(oe.currentYearElement.max=oe.config.maxDate.getFullYear().toString(),oe.currentYearElement.disabled=!!oe.config.minDate&&oe.config.minDate.getFullYear()===oe.config.maxDate.getFullYear()),oe.nextMonthNav=i("span","flatpickr-next-month"),oe.nextMonthNav.innerHTML=oe.config.nextArrow,oe.navigationCurrentMonth=i("span","flatpickr-current-month"),oe.navigationCurrentMonth.appendChild(oe.currentMonthElement),oe.navigationCurrentMonth.appendChild(t),e.appendChild(oe.prevMonthNav),e.appendChild(oe.navigationCurrentMonth),e.appendChild(oe.nextMonthNav),oe.monthNav.appendChild(e),Object.defineProperty(oe,"_hidePrevMonthArrow",{get:function(){return oe.__hidePrevMonthArrow},set:function(e){oe.__hidePrevMonthArrow!==e&&(oe.prevMonthNav.style.display=e?"none":"block"),oe.__hidePrevMonthArrow=e}}),Object.defineProperty(oe,"_hideNextMonthArrow",{get:function(){return oe.__hideNextMonthArrow},set:function(e){oe.__hideNextMonthArrow!==e&&(oe.nextMonthNav.style.display=e?"none":"block"),oe.__hideNextMonthArrow=e}}),te(),oe.monthNav}()),oe.innerContainer=i("div","flatpickr-innerContainer"),oe.config.weekNumbers){var t=function(){oe.calendarContainer.classList.add("hasWeeks");var e=i("div","flatpickr-weekwrapper");e.appendChild(i("span","flatpickr-weekday",oe.l10n.weekAbbreviation));var t=i("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,r=t.weekNumbers;oe.innerContainer.appendChild(n),oe.weekNumbers=r,oe.weekWrapper=n}oe.rContainer=i("div","flatpickr-rContainer"),oe.rContainer.appendChild(P()),oe.daysContainer||(oe.daysContainer=i("div","flatpickr-days"),oe.daysContainer.tabIndex=-1),A(),oe.rContainer.appendChild(oe.daysContainer),oe.innerContainer.appendChild(oe.rContainer),e.appendChild(oe.innerContainer)}oe.config.enableTime&&e.appendChild(function(){oe.calendarContainer.classList.add("hasTime"),oe.config.noCalendar&&oe.calendarContainer.classList.add("noCalendar"),oe.timeContainer=i("div","flatpickr-time"),oe.timeContainer.tabIndex=-1;var e=i("span","flatpickr-time-separator",":"),t=o("flatpickr-hour");oe.hourElement=t.childNodes[0];var n=o("flatpickr-minute");if(oe.minuteElement=n.childNodes[0],oe.hourElement.tabIndex=oe.minuteElement.tabIndex=-1,oe.hourElement.value=g(oe.latestSelectedDateObj?oe.latestSelectedDateObj.getHours():oe.config.time_24hr?oe.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(oe.config.defaultHour)),oe.minuteElement.value=g(oe.latestSelectedDateObj?oe.latestSelectedDateObj.getMinutes():oe.config.defaultMinute),oe.hourElement.step=oe.config.hourIncrement.toString(),oe.minuteElement.step=oe.config.minuteIncrement.toString(),oe.hourElement.min=oe.config.time_24hr?"0":"1",oe.hourElement.max=oe.config.time_24hr?"23":"12",oe.minuteElement.min="0",oe.minuteElement.max="59",oe.hourElement.title=oe.minuteElement.title=oe.l10n.scrollTitle,oe.timeContainer.appendChild(t),oe.timeContainer.appendChild(e),oe.timeContainer.appendChild(n),oe.config.time_24hr&&oe.timeContainer.classList.add("time24hr"),oe.config.enableSeconds){oe.timeContainer.classList.add("hasSeconds");var a=o("flatpickr-second");oe.secondElement=a.childNodes[0],oe.secondElement.value=g(oe.latestSelectedDateObj?oe.latestSelectedDateObj.getSeconds():oe.config.defaultSeconds),oe.secondElement.step=oe.minuteElement.step,oe.secondElement.min=oe.minuteElement.min,oe.secondElement.max=oe.minuteElement.max,oe.timeContainer.appendChild(i("span","flatpickr-time-separator",":")),oe.timeContainer.appendChild(a)}return oe.config.time_24hr||(oe.amPM=i("span","flatpickr-am-pm",oe.l10n.amPM[p((oe.latestSelectedDateObj?oe.hourElement.value:oe.config.defaultHour)>11)]),oe.amPM.title=oe.l10n.toggleTitle,oe.amPM.tabIndex=-1,oe.timeContainer.appendChild(oe.amPM)),oe.timeContainer}()),a(oe.calendarContainer,"rangeMode","range"===oe.config.mode),a(oe.calendarContainer,"animate",oe.config.animate),oe.calendarContainer.appendChild(e);var l=void 0!==oe.config.appendTo&&oe.config.appendTo.nodeType;if((oe.config.inline||oe.config.static)&&(oe.calendarContainer.classList.add(oe.config.inline?"inline":"static"),oe.config.inline&&!l&&oe.element.parentNode&&oe.element.parentNode.insertBefore(oe.calendarContainer,oe._input.nextSibling),oe.config.static)){var c=i("div","flatpickr-wrapper");oe.element.parentNode&&oe.element.parentNode.insertBefore(c,oe.element),c.appendChild(oe.element),oe.altInput&&c.appendChild(oe.altInput),c.appendChild(oe.calendarContainer)}oe.config.static||oe.config.inline||(void 0!==oe.config.appendTo?oe.config.appendTo:window.document.body).appendChild(oe.calendarContainer)}(),function(){if(oe.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(oe.element.querySelectorAll("[data-"+e+"]"),function(t){return y(t,"click",oe[e])})}),oe.isMobile)!function(){var e=oe.config.enableTime?oe.config.noCalendar?"time":"datetime-local":"date";oe.mobileInput=i("input",oe.input.className+" flatpickr-mobile"),oe.mobileInput.step=oe.input.getAttribute("step")||"any",oe.mobileInput.tabIndex=1,oe.mobileInput.type=e,oe.mobileInput.disabled=oe.input.disabled,oe.mobileInput.placeholder=oe.input.placeholder,oe.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",oe.selectedDates.length&&(oe.mobileInput.defaultValue=oe.mobileInput.value=oe.formatDate(oe.selectedDates[0],oe.mobileFormatStr)),oe.config.minDate&&(oe.mobileInput.min=oe.formatDate(oe.config.minDate,"Y-m-d")),oe.config.maxDate&&(oe.mobileInput.max=oe.formatDate(oe.config.maxDate,"Y-m-d")),oe.input.type="hidden",void 0!==oe.altInput&&(oe.altInput.type="hidden");try{oe.input.parentNode&&oe.input.parentNode.insertBefore(oe.mobileInput,oe.input.nextSibling)}catch(e){}oe.mobileInput.addEventListener("change",function(e){oe.setDate(e.target.value,!1,oe.mobileFormatStr),Q("onChange"),Q("onClose")})}();else{var e=n(K,50);oe._debouncedChange=n(E,300),"range"===oe.config.mode&&oe.daysContainer&&y(oe.daysContainer,"mouseover",function(e){return J(e.target)}),y(window.document.body,"keydown",B),oe.config.static||y(oe._input,"keydown",B),oe.config.inline||oe.config.static||y(window,"resize",e),void 0!==window.ontouchstart&&y(window.document.body,"touchstart",H),y(window.document.body,"mousedown",x(H)),y(oe._input,"blur",H),!0===oe.config.clickOpens&&(y(oe._input,"focus",oe.open),y(oe._input,"mousedown",x(oe.open))),void 0!==oe.daysContainer&&(oe.monthNav.addEventListener("wheel",function(e){return e.preventDefault()}),y(oe.monthNav,"wheel",n(ae,10)),y(oe.monthNav,"mousedown",x(ie)),y(oe.monthNav,["keyup","increment"],b),y(oe.daysContainer,"mousedown",x(z)),oe.config.animate&&(y(oe.daysContainer,["webkitAnimationEnd","animationend"],N),y(oe.monthNav,["webkitAnimationEnd","animationend"],S))),void 0!==oe.timeContainer&&void 0!==oe.minuteElement&&void 0!==oe.hourElement&&(y(oe.timeContainer,["wheel","input","increment"],f),y(oe.timeContainer,"mousedown",x(_)),y(oe.timeContainer,["wheel","increment"],oe._debouncedChange),y(oe.timeContainer,"input",E),y([oe.hourElement,oe.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==oe.secondElement&&y(oe.secondElement,"focus",function(){return oe.secondElement&&oe.secondElement.select()}),void 0!==oe.amPM&&y(oe.amPM,"mousedown",x(function(e){f(e),E()})))}}(),(oe.selectedDates.length||oe.config.noCalendar)&&(oe.config.enableTime&&v(oe.config.noCalendar?oe.latestSelectedDateObj||oe.config.minDate:void 0),ne(!1)),oe.showTimeInput=oe.selectedDates.length>0||oe.config.noCalendar,void 0!==oe.weekWrapper&&void 0!==oe.daysContainer&&(oe.calendarContainer.style.width=oe.daysContainer.offsetWidth+oe.weekWrapper.offsetWidth+"px"),oe.isMobile||$(),Q("onReady"),oe}function l(e,t){for(var n=Array.prototype.slice.call(e),a=[],i=0;i",noCalendar:!1,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},m={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"]},g=function(e){return("0"+e).slice(-2)},p=function(e){return!0===e?1:0},h=function(e){return e instanceof Array?e:[e]},v=function(){},D={D:v,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t){e.setHours(e.getHours()%12+12*p(/pm/i.test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t){var n=parseInt(t);return new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0)},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:v,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},w:v,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},C={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"(am|AM|Am|aM|pm|PM|Pm|pM)",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},w={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[w.w(e,t,n)]},F:function(e,t,n){return s(w.n(e,t,n)-1,!1,t)},G:function(e,t,n){return g(w.h(e,t,n))},H:function(e){return g(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e){return e.getHours()>11?"PM":"AM"},M:function(e,t){return s(e.getMonth(),!0,t)},S:function(e){return g(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return g(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return g(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return g(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}};return"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return l(this,e)},HTMLElement.prototype.flatpickr=function(e){return l([this],e)}),c=function(e,t){return e instanceof NodeList?l(e,t):l("string"==typeof e?window.document.querySelectorAll(e):[e],t)},window.flatpickr=c,c.defaultConfig=f,c.l10ns={en:d({},m),default:d({},m)},c.localize=function(e){c.l10ns.default=d({},c.l10ns.default,e)},c.setDefaults=function(e){c.defaultConfig=d({},c.defaultConfig,e)},void 0!==t&&(t.fn.flatpickr=function(e){return l(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},c},e.exports=n()}).call(t,n(0))},function(e,t,n){n(3),n(4),n(5),n(6),n(7)},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n.n(a),o=n(1);n.n(o),i.a.entwine("silverware.datefield",function(e){e("input[type=date]").entwine({onmatch:function(){var t=e(this);t.data("calendar-enabled")&&t.flatpickr(e.extend({altInput:!0},t.data("calendar-config"))),this._super()}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n.n(a),o=n(1);n.n(o),i.a.entwine("silverware.datetimefield",function(e){e("input[type=datetime-local]").entwine({onmatch:function(){var t=e(this);t.data("calendar-enabled")&&t.flatpickr(e.extend({altInput:!0,enableTime:!0},t.data("calendar-config"))),this._super()}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n.n(a),o=n(1);n.n(o),i.a.entwine("silverware.timefield",function(e){e("input[type=time]").entwine({onmatch:function(){var t=e(this);t.data("calendar-enabled")&&t.flatpickr(e.extend({altInput:!0,enableTime:!0,noCalendar:!0},t.data("calendar-config"))),this._super()}})})}]); --------------------------------------------------------------------------------