!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/cdk/a11y"),require("@angular/cdk/overlay"),require("rxjs"),require("@angular/cdk/portal"),require("@angular/cdk/keycodes"),require("@angular/cdk/coercion"),require("rxjs/operators"),require("@angular/animations"),require("@angular/forms"),require("@angular/cdk/platform"),require("moment")):"function"==typeof define&&define.amd?define("@deepuppeds/angular-datetime-picker",["exports","@angular/core","@angular/common","@angular/cdk/a11y","@angular/cdk/overlay","rxjs","@angular/cdk/portal","@angular/cdk/keycodes","@angular/cdk/coercion","rxjs/operators","@angular/animations","@angular/forms","@angular/cdk/platform","moment"],t):t(((e=e||self).deepuppeds=e.deepuppeds||{},e.deepuppeds["angular-datetime-picker"]={}),e.ng.core,e.ng.common,e.ng.cdk.a11y,e.ng.cdk.overlay,e.rxjs,e.ng.cdk.portal,e.ng.cdk.keycodes,e.ng.cdk.coercion,e.rxjs.operators,e.ng.animations,e.ng.forms,e.ng.cdk.platform,e._moment)}(this,(function(e,t,i,n,r,a,o,s,l,c,d,p,u,h){"use strict";var m="default"in h?h.default:h,f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */function y(e,t){function i(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}Object.create;function g(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,a=i.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}Object.create;var w=function(){function e(e){this.changeDetector=e,this.stateChanges=a.Subscription.EMPTY}return Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled?this.dtPicker.disabled:!!this._disabled},set:function(e){this._disabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTTriggerDisabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){e.datepicker&&this.watchStateChanges()},e.prototype.ngAfterContentInit=function(){this.watchStateChanges()},e.prototype.ngOnDestroy=function(){this.stateChanges.unsubscribe()},e.prototype.handleClickOnHost=function(e){this.dtPicker&&(this.dtPicker.open(),e.stopPropagation())},e.prototype.watchStateChanges=function(){var e=this;this.stateChanges.unsubscribe();var t=this.dtPicker&&this.dtPicker.dtInput?this.dtPicker.dtInput.disabledChange:a.of(),i=this.dtPicker?this.dtPicker.disabledChange:a.of();this.stateChanges=a.merge(i,t).subscribe((function(){e.changeDetector.markForCheck()}))},e}();w.decorators=[{type:t.Directive,args:[{selector:"[owlDateTimeTrigger]",host:{"(click)":"handleClickOnHost($event)","[class.owl-dt-trigger-disabled]":"owlDTTriggerDisabledClass"}}]}],w.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},w.propDecorators={dtPicker:[{type:t.Input,args:["owlDateTimeTrigger"]}],disabled:[{type:t.Input}]};var T=function(){this.changes=new a.Subject,this.upSecondLabel="Add a second",this.downSecondLabel="Minus a second",this.upMinuteLabel="Add a minute",this.downMinuteLabel="Minus a minute",this.upHourLabel="Add a hour",this.downHourLabel="Minus a hour",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 21 years",this.nextMultiYearLabel="Next 21 years",this.switchToMonthViewLabel="Change to month view",this.switchToMultiYearViewLabel="Choose month and year",this.cancelBtnLabel="Cancel",this.setBtnLabel="Set",this.rangeFromLabel="From",this.rangeToLabel="To",this.hour12AMLabel="AM",this.hour12PMLabel="PM"};T.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new T},token:T,providedIn:"root"}),T.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var D=new t.InjectionToken("OWL_DATE_TIME_LOCALE",{providedIn:"root",factory:M});function M(){return t.inject(t.LOCALE_ID)}var k,C={provide:D,useExisting:t.LOCALE_ID},A=function(){function e(){this._localeChanges=new a.Subject,this.millisecondsInDay=864e5,this.milliseondsInMinute=6e4}return Object.defineProperty(e.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!1,configurable:!0}),e.prototype.compare=function(e,t){if(!this.isValid(e)||!this.isValid(t))throw Error("JSNativeDate: Cannot compare invalid dates.");var i=this.clone(e),n=this.clone(t),r=this.getTime(i)-this.getTime(n);return r<0?-1:r>0?1:r},e.prototype.compareYear=function(e,t){if(!this.isValid(e)||!this.isValid(t))throw Error("JSNativeDate: Cannot compare invalid dates.");var i=this.getYear(e)-this.getYear(t);return i<0?-1:i>0?1:0},e.prototype.deserialize=function(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()},e.prototype.setLocale=function(e){this.locale=e,this._localeChanges.next(e)},e.prototype.getLocale=function(){return this.locale},e.prototype.clampDate=function(e,t,i){return t&&this.compare(e,t)<0?t:i&&this.compare(e,i)>0?i:e},e}(),O=new t.InjectionToken("OWL_DATE_TIME_FORMATS"),I=0;!function(e){e.MONTH="month",e.YEAR="year",e.MULTI_YEARS="multi-years"}(k||(k={}));var _=function(){function e(e,t){var i=this;if(this.dateTimeAdapter=e,this.dateTimeFormats=t,this._showSecondsTimer=!1,this._hour12Timer=!1,this.startView=k.MONTH,this.yearOnly=!1,this.multiyearOnly=!1,this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._hideOtherMonths=!1,this.dateTimeChecker=function(e){return!!e&&(!i.dateTimeFilter||i.dateTimeFilter(e))&&(!i.minDateTime||i.dateTimeAdapter.compare(e,i.minDateTime)>=0)&&(!i.maxDateTime||i.dateTimeAdapter.compare(e,i.maxDateTime)<=0)},!this.dateTimeAdapter)throw Error("OwlDateTimePicker: No provider found for DateTimeAdapter. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");if(!this.dateTimeFormats)throw Error("OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");this._id="owl-dt-picker-"+I++}return Object.defineProperty(e.prototype,"showSecondsTimer",{get:function(){return this._showSecondsTimer},set:function(e){this._showSecondsTimer=l.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hour12Timer",{get:function(){return this._hour12Timer},set:function(e){this._hour12Timer=l.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stepHour",{get:function(){return this._stepHour},set:function(e){this._stepHour=l.coerceNumberProperty(e,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stepMinute",{get:function(){return this._stepMinute},set:function(e){this._stepMinute=l.coerceNumberProperty(e,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stepSecond",{get:function(){return this._stepSecond},set:function(e){this._stepSecond=l.coerceNumberProperty(e,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(e){e=l.coerceNumberProperty(e),this._firstDayOfWeek=e>6||e<0?void 0:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideOtherMonths",{get:function(){return this._hideOtherMonths},set:function(e){this._hideOtherMonths=l.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"formatString",{get:function(){return"both"===this.pickerType?this.dateTimeFormats.fullPickerInput:"calendar"===this.pickerType?this.dateTimeFormats.datePickerInput:this.dateTimeFormats.timePickerInput},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e}();_.decorators=[{type:t.Directive}],_.ctorParameters=function(){return[{type:A,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[O]}]}]},_.propDecorators={showSecondsTimer:[{type:t.Input}],hour12Timer:[{type:t.Input}],startView:[{type:t.Input}],yearOnly:[{type:t.Input}],multiyearOnly:[{type:t.Input}],stepHour:[{type:t.Input}],stepMinute:[{type:t.Input}],stepSecond:[{type:t.Input}],firstDayOfWeek:[{type:t.Input}],hideOtherMonths:[{type:t.Input}]};var S=function(){function e(e,i,n,r,o,s){var l=this;this.elmRef=e,this.pickerIntl=i,this.ngZone=n,this.cdRef=r,this.dateTimeAdapter=o,this.dateTimeFormats=s,this.DateView=k,this._dateClasses=[],this._activeDates=[],this._selecteds=[],this.startView=k.MONTH,this.yearOnly=!1,this.multiyearOnly=!1,this.pickerMomentChange=new t.EventEmitter,this.dateClicked=new t.EventEmitter,this.selectedChange=new t.EventEmitter,this.userSelection=new t.EventEmitter,this.yearSelected=new t.EventEmitter,this.monthSelected=new t.EventEmitter,this.intlChangesSub=a.Subscription.EMPTY,this.moveFocusOnNextTick=!1,this.dateFilterForViews=function(e){return!!e&&(!l.dateFilter||l.dateFilter(e))&&(!l.minDate||l.dateTimeAdapter.compare(e,l.minDate)>=0)&&(!l.maxDate||l.dateTimeAdapter.compare(e,l.maxDate)<=0)},this.intlChangesSub=this.pickerIntl.changes.subscribe((function(){l.cdRef.markForCheck()}))}return Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),e=this.getValidDate(e),this._minDate=e?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(e),this.dateTimeAdapter.getMonth(e),this.dateTimeAdapter.getDate(e)):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),e=this.getValidDate(e),this._maxDate=e?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(e),this.dateTimeAdapter.getMonth(e),this.dateTimeAdapter.getDate(e)):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){var t=this;this._selecteds=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateClasses",{get:function(){return this._dateClasses},set:function(e){this._dateClasses=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeDates",{get:function(){return this._activeDates},set:function(e){this._activeDates=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"periodButtonText",{get:function(){return this.isMonthView?this.dateTimeAdapter.format(this.pickerMoment,this.dateTimeFormats.monthYearLabel):this.dateTimeAdapter.getYearName(this.pickerMoment)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"periodButtonLabel",{get:function(){return this.isMonthView?this.pickerIntl.switchToMultiYearViewLabel:this.pickerIntl.switchToMonthViewLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevButtonLabel",{get:function(){return this._currentView===k.MONTH?this.pickerIntl.prevMonthLabel:this._currentView===k.YEAR?this.pickerIntl.prevYearLabel:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextButtonLabel",{get:function(){return this._currentView===k.MONTH?this.pickerIntl.nextMonthLabel:this._currentView===k.YEAR?this.pickerIntl.nextYearLabel:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentView",{get:function(){return this._currentView},set:function(e){this._currentView=e,this.moveFocusOnNextTick=!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showControlArrows",{get:function(){return this._currentView!==k.MULTI_YEARS},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMonthView",{get:function(){return this._currentView===k.MONTH},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTCalendarClass",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){this._currentView=this.startView},e.prototype.ngAfterViewChecked=function(){this.moveFocusOnNextTick&&(this.moveFocusOnNextTick=!1,this.focusActiveCell())},e.prototype.ngOnDestroy=function(){this.intlChangesSub.unsubscribe()},e.prototype.toggleViews=function(){var e=null;e=this._currentView===k.MONTH||this.multiyearOnly?k.MULTI_YEARS:this.yearOnly?this._currentView===k.YEAR?k.MULTI_YEARS:k.YEAR:k.MONTH,this.currentView=e},e.prototype.previousClicked=function(){this.pickerMoment=this.isMonthView?this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1):this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1),this.pickerMomentChange.emit(this.pickerMoment)},e.prototype.nextClicked=function(){this.pickerMoment=this.isMonthView?this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1):this.dateTimeAdapter.addCalendarYears(this.pickerMoment,1),this.pickerMomentChange.emit(this.pickerMoment)},e.prototype.dateSelected=function(e){this.dateFilterForViews(e)&&(this.dateClicked.emit(e),this.selectedChange.emit(e))},e.prototype.goToDateInView=function(e,t){this.handlePickerMomentChange(e),(!this.yearOnly&&!this.multiyearOnly||this.multiyearOnly&&t!==k.MONTH&&t!==k.YEAR||this.yearOnly&&t!==k.MONTH)&&(this.currentView=t)},e.prototype.handlePickerMomentChange=function(e){this.pickerMoment=this.dateTimeAdapter.clampDate(e,this.minDate,this.maxDate),this.pickerMomentChange.emit(this.pickerMoment)},e.prototype.userSelected=function(){this.userSelection.emit()},e.prototype.prevButtonEnabled=function(){return!this.minDate||!this.isSameView(this.pickerMoment,this.minDate)},e.prototype.nextButtonEnabled=function(){return!this.maxDate||!this.isSameView(this.pickerMoment,this.maxDate)},e.prototype.focusActiveCell=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.ngZone.onStable.asObservable().pipe(c.take(1)).subscribe((function(){e.elmRef.nativeElement.querySelector(".owl-dt-calendar-cell-active").focus()}))}))},e.prototype.selectYearInMultiYearView=function(e){this.yearSelected.emit(e)},e.prototype.selectMonthInYearView=function(e){this.monthSelected.emit(e)},e.prototype.isSameView=function(e,t){return this._currentView===k.MONTH?!(!e||!t||this.dateTimeAdapter.getYear(e)!==this.dateTimeAdapter.getYear(t)||this.dateTimeAdapter.getMonth(e)!==this.dateTimeAdapter.getMonth(t)):this._currentView===k.YEAR&&!(!e||!t||this.dateTimeAdapter.getYear(e)!==this.dateTimeAdapter.getYear(t))},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e}();S.decorators=[{type:t.Component,args:[{selector:"owl-date-time-calendar",exportAs:"owlDateTimeCalendar",template:'<div class="owl-dt-calendar-control">\n    \x3c!-- focus when keyboard tab (http://kizu.ru/en/blog/keyboard-only-focus/#x) --\x3e\n    <button class="owl-dt-control owl-dt-control-button owl-dt-control-arrow-button"\n            type="button" tabindex="0"\n            [style.visibility]="showControlArrows? \'visible\': \'hidden\'"\n            [disabled]="!prevButtonEnabled()"\n            [attr.aria-label]="prevButtonLabel"\n            (click)="previousClicked()">\n        <span class="owl-dt-control-content owl-dt-control-button-content" tabindex="-1">\n            \x3c!-- <editor-fold desc="SVG Arrow Left"> --\x3e\n        <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n                 version="1.1" x="0px" y="0px" viewBox="0 0 250.738 250.738"\n                 style="enable-background:new 0 0 250.738 250.738;" xml:space="preserve"\n                 width="100%" height="100%">\n                <path style="fill-rule: evenodd; clip-rule: evenodd;" d="M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546   c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681   l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z"/>\n            </svg>\n            \x3c!-- </editor-fold> --\x3e\n        </span>\n    </button>\n    <div class="owl-dt-calendar-control-content">\n        <button class="owl-dt-control owl-dt-control-button owl-dt-control-period-button"\n                type="button" tabindex="0"\n                [attr.aria-label]="periodButtonLabel"\n                (click)="toggleViews()">\n            <span class="owl-dt-control-content owl-dt-control-button-content" tabindex="-1">\n                {{periodButtonText}}\n\n                <span class="owl-dt-control-button-arrow"\n                      [style.transform]="\'rotate(\' + (isMonthView? 0 : 180) +\'deg)\'">\n                    \x3c!-- <editor-fold desc="SVG Arrow"> --\x3e\n                    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n                         width="50%" height="50%" viewBox="0 0 292.362 292.362" style="enable-background:new 0 0 292.362 292.362;"\n                         xml:space="preserve">\n                        <g>\n                            <path d="M286.935,69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952,0-9.233,1.807-12.85,5.424\n                                C1.807,72.998,0,77.279,0,82.228c0,4.948,1.807,9.229,5.424,12.847l127.907,127.907c3.621,3.617,7.902,5.428,12.85,5.428\n                                s9.233-1.811,12.847-5.428L286.935,95.074c3.613-3.617,5.427-7.898,5.427-12.847C292.362,77.279,290.548,72.998,286.935,69.377z"/>\n                        </g>\n                    </svg>\n                    \x3c!-- </editor-fold> --\x3e\n                </span>\n            </span>\n        </button>\n    </div>\n    <button class="owl-dt-control owl-dt-control-button owl-dt-control-arrow-button"\n            type="button" tabindex="0"\n            [style.visibility]="showControlArrows? \'visible\': \'hidden\'"\n            [disabled]="!nextButtonEnabled()"\n            [attr.aria-label]="nextButtonLabel"\n            (click)="nextClicked()">\n        <span class="owl-dt-control-content owl-dt-control-button-content" tabindex="-1">\n            \x3c!-- <editor-fold desc="SVG Arrow Right"> --\x3e\n        <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n                 viewBox="0 0 250.738 250.738" style="enable-background:new 0 0 250.738 250.738;" xml:space="preserve">\n                <path style="fill-rule:evenodd;clip-rule:evenodd;" d="M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n                    c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n                    c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n                    C197.237,120.447,195.534,115.448,191.75,111.689z"/>\n            </svg>\n            \x3c!-- </editor-fold> --\x3e\n        </span>\n    </button>\n</div>\n<div class="owl-dt-calendar-main" cdkMonitorSubtreeFocus [ngSwitch]="currentView" tabindex="-1">\n    <owl-date-time-month-view\n            *ngSwitchCase="DateView.MONTH"\n            [pickerMoment]="pickerMoment"\n            [firstDayOfWeek]="firstDayOfWeek"\n            [selected]="selected"\n            [selecteds]="selecteds"\n            [selectMode]="selectMode"\n            [minDate]="minDate"\n            [maxDate]="maxDate"\n            [dateFilter]="dateFilter"\n            [dateClasses]="dateClasses"\n            [activeDates]="activeDates"\n            [hideOtherMonths]="hideOtherMonths"\n            (pickerMomentChange)="handlePickerMomentChange($event)"\n            (selectedChange)="dateSelected($event)"\n            (userSelection)="userSelected()"></owl-date-time-month-view>\n\n    <owl-date-time-year-view\n            *ngSwitchCase="DateView.YEAR"\n            [pickerMoment]="pickerMoment"\n            [selected]="selected"\n            [selecteds]="selecteds"\n            [selectMode]="selectMode"\n            [minDate]="minDate"\n            [maxDate]="maxDate"\n            [dateFilter]="dateFilter"\n            (keyboardEnter)="focusActiveCell()"\n            (pickerMomentChange)="handlePickerMomentChange($event)"\n            (monthSelected)="selectMonthInYearView($event)"\n            (change)="goToDateInView($event, DateView.MONTH)"></owl-date-time-year-view>\n\n    <owl-date-time-multi-year-view\n            *ngSwitchCase="DateView.MULTI_YEARS"\n            [pickerMoment]="pickerMoment"\n            [selected]="selected"\n            [selecteds]="selecteds"\n            [selectMode]="selectMode"\n            [minDate]="minDate"\n            [maxDate]="maxDate"\n            [dateFilter]="dateFilter"\n            (keyboardEnter)="focusActiveCell()"\n            (pickerMomentChange)="handlePickerMomentChange($event)"\n            (yearSelected)="selectYearInMultiYearView($event)"\n            (change)="goToDateInView($event, DateView.YEAR)"></owl-date-time-multi-year-view>\n</div>\n',host:{"[class.owl-dt-calendar]":"owlDTCalendarClass"},preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],S.ctorParameters=function(){return[{type:t.ElementRef},{type:T},{type:t.NgZone},{type:t.ChangeDetectorRef},{type:A,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[O]}]}]},S.propDecorators={minDate:[{type:t.Input}],maxDate:[{type:t.Input}],pickerMoment:[{type:t.Input}],selected:[{type:t.Input}],selecteds:[{type:t.Input}],dateClasses:[{type:t.Input}],activeDates:[{type:t.Input}],dateFilter:[{type:t.Input}],firstDayOfWeek:[{type:t.Input}],selectMode:[{type:t.Input}],startView:[{type:t.Input}],yearOnly:[{type:t.Input}],multiyearOnly:[{type:t.Input}],hideOtherMonths:[{type:t.Input}],pickerMomentChange:[{type:t.Output}],dateClicked:[{type:t.Output}],selectedChange:[{type:t.Output}],userSelection:[{type:t.Output}],yearSelected:[{type:t.Output}],monthSelected:[{type:t.Output}]};var P=function(){function e(e,i,n,r,a){this.ngZone=e,this.elmRef=i,this.pickerIntl=n,this.cdRef=r,this.dateTimeAdapter=a,this.isPM=!1,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.selectedChange=new t.EventEmitter}return Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDateTime",{get:function(){return this._minDateTime},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDateTime=this.getValidDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDateTime",{get:function(){return this._maxDateTime},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDateTime=this.getValidDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourValue",{get:function(){return this.dateTimeAdapter.getHours(this.pickerMoment)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourBoxValue",{get:function(){var e=this.hourValue;return this.hour12Timer?(0===e?(e=12,this.isPM=!1):e>0&&e<12?this.isPM=!1:12===e?this.isPM=!0:e>12&&e<24&&(e-=12,this.isPM=!0),e):e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minuteValue",{get:function(){return this.dateTimeAdapter.getMinutes(this.pickerMoment)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"secondValue",{get:function(){return this.dateTimeAdapter.getSeconds(this.pickerMoment)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upHourButtonLabel",{get:function(){return this.pickerIntl.upHourLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"downHourButtonLabel",{get:function(){return this.pickerIntl.downHourLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upMinuteButtonLabel",{get:function(){return this.pickerIntl.upMinuteLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"downMinuteButtonLabel",{get:function(){return this.pickerIntl.downMinuteLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upSecondButtonLabel",{get:function(){return this.pickerIntl.upSecondLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"downSecondButtonLabel",{get:function(){return this.pickerIntl.downSecondLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hour12ButtonLabel",{get:function(){return this.isPM?this.pickerIntl.hour12PMLabel:this.pickerIntl.hour12AMLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTTimerClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTTimeTabIndex",{get:function(){return-1},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.focus=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.ngZone.onStable.asObservable().pipe(c.take(1)).subscribe((function(){e.elmRef.nativeElement.focus()}))}))},e.prototype.setHourValueViaInput=function(e){this.hour12Timer&&this.isPM&&e>=1&&e<=11?e+=12:this.hour12Timer&&!this.isPM&&12===e&&(e=0),this.setHourValue(e)},e.prototype.setHourValue=function(e){var t=this.dateTimeAdapter.setHours(this.pickerMoment,e);this.selectedChange.emit(t),this.cdRef.markForCheck()},e.prototype.setMinuteValue=function(e){var t=this.dateTimeAdapter.setMinutes(this.pickerMoment,e);this.selectedChange.emit(t),this.cdRef.markForCheck()},e.prototype.setSecondValue=function(e){var t=this.dateTimeAdapter.setSeconds(this.pickerMoment,e);this.selectedChange.emit(t),this.cdRef.markForCheck()},e.prototype.setMeridiem=function(e){this.isPM=!this.isPM;var t=this.hourValue;this.isPM?t+=12:t-=12,t>=0&&t<=23&&this.setHourValue(t),this.cdRef.markForCheck(),e.preventDefault()},e.prototype.upHourEnabled=function(){return!this.maxDateTime||this.compareHours(this.stepHour,this.maxDateTime)<1},e.prototype.downHourEnabled=function(){return!this.minDateTime||this.compareHours(-this.stepHour,this.minDateTime)>-1},e.prototype.upMinuteEnabled=function(){return!this.maxDateTime||this.compareMinutes(this.stepMinute,this.maxDateTime)<1},e.prototype.downMinuteEnabled=function(){return!this.minDateTime||this.compareMinutes(-this.stepMinute,this.minDateTime)>-1},e.prototype.upSecondEnabled=function(){return!this.maxDateTime||this.compareSeconds(this.stepSecond,this.maxDateTime)<1},e.prototype.downSecondEnabled=function(){return!this.minDateTime||this.compareSeconds(-this.stepSecond,this.minDateTime)>-1},e.prototype.compareHours=function(e,t){var i=this.dateTimeAdapter.getHours(this.pickerMoment)+e,n=this.dateTimeAdapter.setHours(this.pickerMoment,i);return this.dateTimeAdapter.compare(n,t)},e.prototype.compareMinutes=function(e,t){var i=this.dateTimeAdapter.getMinutes(this.pickerMoment)+e,n=this.dateTimeAdapter.setMinutes(this.pickerMoment,i);return this.dateTimeAdapter.compare(n,t)},e.prototype.compareSeconds=function(e,t){var i=this.dateTimeAdapter.getSeconds(this.pickerMoment)+e,n=this.dateTimeAdapter.setSeconds(this.pickerMoment,i);return this.dateTimeAdapter.compare(n,t)},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e}();P.decorators=[{type:t.Component,args:[{exportAs:"owlDateTimeTimer",selector:"owl-date-time-timer",template:'<owl-date-time-timer-box\n        [upBtnAriaLabel]="upHourButtonLabel"\n        [downBtnAriaLabel]="downHourButtonLabel"\n        [upBtnDisabled]="!upHourEnabled()"\n        [downBtnDisabled]="!downHourEnabled()"\n        [boxValue]="hourBoxValue"\n        [value]="hourValue" [min]="0" [max]="23"\n        [step]="stepHour" [inputLabel]="\'Hour\'"\n        (inputChange)="setHourValueViaInput($event)"\n        (valueChange)="setHourValue($event)"></owl-date-time-timer-box>\n<owl-date-time-timer-box\n        [showDivider]="true"\n        [upBtnAriaLabel]="upMinuteButtonLabel"\n        [downBtnAriaLabel]="downMinuteButtonLabel"\n        [upBtnDisabled]="!upMinuteEnabled()"\n        [downBtnDisabled]="!downMinuteEnabled()"\n        [value]="minuteValue" [min]="0" [max]="59"\n        [step]="stepMinute" [inputLabel]="\'Minute\'"\n        (inputChange)="setMinuteValue($event)"\n        (valueChange)="setMinuteValue($event)"></owl-date-time-timer-box>\n<owl-date-time-timer-box\n        *ngIf="showSecondsTimer"\n        [showDivider]="true"\n        [upBtnAriaLabel]="upSecondButtonLabel"\n        [downBtnAriaLabel]="downSecondButtonLabel"\n        [upBtnDisabled]="!upSecondEnabled()"\n        [downBtnDisabled]="!downSecondEnabled()"\n        [value]="secondValue" [min]="0" [max]="59"\n        [step]="stepSecond" [inputLabel]="\'Second\'"\n        (inputChange)="setSecondValue($event)"\n        (valueChange)="setSecondValue($event)"></owl-date-time-timer-box>\n\n<div *ngIf="hour12Timer" class="owl-dt-timer-hour12">\n    <button class="owl-dt-control-button owl-dt-timer-hour12-box"\n            type="button" tabindex="0"\n            (click)="setMeridiem($event)">\n        <span class="owl-dt-control-button-content" tabindex="-1">\n            {{hour12ButtonLabel}}\n        </span>\n    </button>\n</div>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{"[class.owl-dt-timer]":"owlDTTimerClass","[attr.tabindex]":"owlDTTimeTabIndex"},styles:[""]}]}],P.ctorParameters=function(){return[{type:t.NgZone},{type:t.ElementRef},{type:T},{type:t.ChangeDetectorRef},{type:A,decorators:[{type:t.Optional}]}]},P.propDecorators={pickerMoment:[{type:t.Input}],minDateTime:[{type:t.Input}],maxDateTime:[{type:t.Input}],showSecondsTimer:[{type:t.Input}],hour12Timer:[{type:t.Input}],stepHour:[{type:t.Input}],stepMinute:[{type:t.Input}],stepSecond:[{type:t.Input}],selectedChange:[{type:t.Output}]};var x={transformPicker:d.trigger("transformPicker",[d.state("void",d.style({opacity:0,transform:"scale(1, 0)"})),d.state("enter",d.style({opacity:1,transform:"scale(1, 1)"})),d.transition("void => enter",d.group([d.query("@fadeInPicker",d.animateChild(),{optional:!0}),d.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)")])),d.transition("enter => void",d.animate("100ms linear",d.style({opacity:0})))]),fadeInPicker:d.trigger("fadeInPicker",[d.state("enter",d.style({opacity:1})),d.state("void",d.style({opacity:0})),d.transition("void => enter",d.animate("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},E=function(){function e(e,t,i,n){this.cdRef=e,this.elmRef=t,this.pickerIntl=i,this.dateTimeAdapter=n,this.activeSelectedIndex=0,this.hidePicker$=new a.Subject,this.confirmSelected$=new a.Subject,this.pickerOpened$=new a.Subject,this._dateClasses=[],this._activeDates=[]}return Object.defineProperty(e.prototype,"hidePickerStream",{get:function(){return this.hidePicker$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"confirmSelectedStream",{get:function(){return this.confirmSelected$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerOpenedStream",{get:function(){return this.pickerOpened$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._clamPickerMoment},set:function(e){e&&(this._clamPickerMoment=this.dateTimeAdapter.clampDate(e,this.picker.minDateTime,this.picker.maxDateTime)),this.cdRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerType",{get:function(){return this.picker.pickerType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cancelLabel",{get:function(){return this.pickerIntl.cancelBtnLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"setLabel",{get:function(){return this.pickerIntl.setBtnLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fromLabel",{get:function(){return this.pickerIntl.rangeFromLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toLabel",{get:function(){return this.pickerIntl.rangeToLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fromFormattedValue",{get:function(){var e=this.picker.selecteds[0];return e?this.dateTimeAdapter.format(e,this.picker.formatString):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toFormattedValue",{get:function(){var e=this.picker.selecteds[1];return e?this.dateTimeAdapter.format(e,this.picker.formatString):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showControlButtons",{get:function(){return"dialog"===this.picker.pickerMode||"calendar"!==this.picker.pickerType&&"inline"!==this.picker.pickerMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerElm",{get:function(){return this.elmRef.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTContainerClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTPopupContainerClass",{get:function(){return"popup"===this.picker.pickerMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTDialogContainerClass",{get:function(){return"dialog"===this.picker.pickerMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTInlineContainerClass",{get:function(){return"inline"===this.picker.pickerMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTContainerDisabledClass",{get:function(){return this.picker.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTContainerId",{get:function(){return this.picker.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTContainerAnimation",{get:function(){return"inline"===this.picker.pickerMode?"":"enter"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateClasses",{get:function(){return this._dateClasses},set:function(e){this._dateClasses=e,e.length&&this.pickerIntl.changes.next()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeDates",{get:function(){return this._activeDates},set:function(e){this._activeDates=e,e.length&&this.pickerIntl.changes.next()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){"range"===this.picker.selectMode&&(this.picker.selecteds[0]&&(this.retainStartTime=this.dateTimeAdapter.clone(this.picker.selecteds[0])),this.picker.selecteds[1]&&(this.retainEndTime=this.dateTimeAdapter.clone(this.picker.selecteds[1])))},e.prototype.ngAfterContentInit=function(){this.initPicker()},e.prototype.ngAfterViewInit=function(){this.focusPicker()},e.prototype.handleContainerAnimationDone=function(e){"enter"===e.toState&&this.pickerOpened$.next()},e.prototype.dateSelected=function(e){var t;this.picker.isInSingleMode?(t=this.dateSelectedInSingleMode(e))?(this.pickerMoment=t,this.picker.select(t)):"calendar"===this.pickerType&&this.hidePicker$.next(null):this.picker.isInRangeMode&&(t=this.dateSelectedInRangeMode(e))&&(this.pickerMoment=t[this.activeSelectedIndex],this.picker.select(t))},e.prototype.timeSelected=function(e){if(this.pickerMoment=this.dateTimeAdapter.clone(e),this.picker.dateTimeChecker(this.pickerMoment))if(this.picker.isInSingleMode)this.picker.select(this.pickerMoment);else if(this.picker.isInRangeMode){var t=v(this.picker.selecteds);0===this.activeSelectedIndex&&t[1]&&1===this.dateTimeAdapter.compare(this.pickerMoment,t[1])||1===this.activeSelectedIndex&&t[0]&&-1===this.dateTimeAdapter.compare(this.pickerMoment,t[0])?(t[0]=this.pickerMoment,t[1]=this.pickerMoment):t[this.activeSelectedIndex]=this.pickerMoment,t[0]&&(this.retainStartTime=this.dateTimeAdapter.clone(t[0])),t[1]&&(this.retainEndTime=this.dateTimeAdapter.clone(t[1])),this.picker.select(t)}},e.prototype.onCancelClicked=function(e){this.hidePicker$.next(null),e.preventDefault()},e.prototype.onSetClicked=function(e){if(!this.picker.dateTimeChecker(this.pickerMoment))return this.hidePicker$.next(null),void e.preventDefault();this.confirmSelected$.next(e),e.preventDefault()},e.prototype.handleClickOnInfoGroup=function(e,t){this.setActiveSelectedIndex(t),e.preventDefault(),e.stopPropagation()},e.prototype.handleKeydownOnInfoGroup=function(e,t,i){switch(e.keyCode){case s.DOWN_ARROW:case s.RIGHT_ARROW:case s.UP_ARROW:case s.LEFT_ARROW:t.focus(),this.setActiveSelectedIndex(0===i?1:0),e.preventDefault(),e.stopPropagation();break;case s.SPACE:this.setActiveSelectedIndex(i),e.preventDefault(),e.stopPropagation();break;default:return}},e.prototype.setActiveSelectedIndex=function(e){if("range"===this.picker.selectMode&&this.activeSelectedIndex!==e){this.activeSelectedIndex=e;var t=this.picker.selecteds[this.activeSelectedIndex];this.picker.selecteds&&t&&(this.pickerMoment=this.dateTimeAdapter.clone(t))}},e.prototype.initPicker=function(){this.pickerMoment=this.picker.startAt||this.dateTimeAdapter.now(),this.activeSelectedIndex="rangeTo"===this.picker.selectMode?1:0},e.prototype.dateSelectedInSingleMode=function(e){return this.dateTimeAdapter.isSameDay(e,this.picker.selected)?null:this.updateAndCheckCalendarDate(e)},e.prototype.dateSelectedInRangeMode=function(e){var t=this.picker.selecteds[0],i=this.picker.selecteds[1],n=this.updateAndCheckCalendarDate(e);return n?("range"===this.picker.selectMode?this.picker.selecteds&&this.picker.selecteds.length&&!i&&t&&this.dateTimeAdapter.differenceInCalendarDays(n,t)>=0?(i=this.picker.endAt&&!this.retainEndTime?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(n),this.dateTimeAdapter.getMonth(n),this.dateTimeAdapter.getDate(n),this.dateTimeAdapter.getHours(this.picker.endAt),this.dateTimeAdapter.getMinutes(this.picker.endAt),this.dateTimeAdapter.getSeconds(this.picker.endAt)):this.retainEndTime?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(n),this.dateTimeAdapter.getMonth(n),this.dateTimeAdapter.getDate(n),this.dateTimeAdapter.getHours(this.retainEndTime),this.dateTimeAdapter.getMinutes(this.retainEndTime),this.dateTimeAdapter.getSeconds(this.retainEndTime)):n,this.activeSelectedIndex=1):(t=this.picker.startAt&&!this.retainStartTime?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(n),this.dateTimeAdapter.getMonth(n),this.dateTimeAdapter.getDate(n),this.dateTimeAdapter.getHours(this.picker.startAt),this.dateTimeAdapter.getMinutes(this.picker.startAt),this.dateTimeAdapter.getSeconds(this.picker.startAt)):this.retainStartTime?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(n),this.dateTimeAdapter.getMonth(n),this.dateTimeAdapter.getDate(n),this.dateTimeAdapter.getHours(this.retainStartTime),this.dateTimeAdapter.getMinutes(this.retainStartTime),this.dateTimeAdapter.getSeconds(this.retainStartTime)):n,i=null,this.activeSelectedIndex=0):"rangeFrom"===this.picker.selectMode?(t=n,i&&this.dateTimeAdapter.compare(t,i)>0&&(i=null)):"rangeTo"===this.picker.selectMode&&(i=n,t&&this.dateTimeAdapter.compare(t,i)>0&&(t=null)),[t,i]):null},e.prototype.updateAndCheckCalendarDate=function(e){var t;return"both"===this.picker.pickerType?(t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(e),this.dateTimeAdapter.getMonth(e),this.dateTimeAdapter.getDate(e),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment)),t=this.dateTimeAdapter.clampDate(t,this.picker.minDateTime,this.picker.maxDateTime)):t=this.dateTimeAdapter.clone(e),this.picker.dateTimeChecker(t)?t:null},e.prototype.focusPicker=function(){"inline"!==this.picker.pickerMode&&(this.calendar?this.calendar.focusActiveCell():this.timer&&this.timer.focus())},e}();E.decorators=[{type:t.Component,args:[{exportAs:"owlDateTimeContainer",selector:"owl-date-time-container",template:'<div [cdkTrapFocus]="picker.pickerMode !== \'inline\'"\n     [@fadeInPicker]="picker.pickerMode === \'inline\'? \'\' : \'enter\'"\n     class="owl-dt-container-inner">\n\n    <owl-date-time-calendar\n            *ngIf="pickerType === \'both\' || pickerType === \'calendar\'"\n            class="owl-dt-container-row"\n            [firstDayOfWeek]="picker.firstDayOfWeek"\n            [(pickerMoment)]="pickerMoment"\n            [selected]="picker.selected"\n            [selecteds]="picker.selecteds"\n            [selectMode]="picker.selectMode"\n            [minDate]="picker.minDateTime"\n            [maxDate]="picker.maxDateTime"\n            [dateFilter]="picker.dateTimeFilter"\n            [startView]="picker.startView"\n            [yearOnly]="picker.yearOnly"\n            [dateClasses]="dateClasses"\n            [activeDates]="activeDates"\n            [multiyearOnly]="picker.multiyearOnly"\n            [hideOtherMonths]="picker.hideOtherMonths"\n            (yearSelected)="picker.selectYear($event)"\n            (monthSelected)="picker.selectMonth($event)"\n            (dateClicked)="picker.selectDate($event)"\n            (selectedChange)="dateSelected($event)"></owl-date-time-calendar>\n\n    <owl-date-time-timer\n            *ngIf="pickerType === \'both\' || pickerType === \'timer\'"\n            class="owl-dt-container-row"\n            [pickerMoment]="pickerMoment"\n            [minDateTime]="picker.minDateTime"\n            [maxDateTime]="picker.maxDateTime"\n            [showSecondsTimer]="picker.showSecondsTimer"\n            [hour12Timer]="picker.hour12Timer"\n            [stepHour]="picker.stepHour"\n            [stepMinute]="picker.stepMinute"\n            [stepSecond]="picker.stepSecond"\n            (selectedChange)="timeSelected($event)"></owl-date-time-timer>\n\n    <div *ngIf="picker.isInRangeMode"\n         role="radiogroup"\n         class="owl-dt-container-info owl-dt-container-row">\n        <div role="radio" [tabindex]="activeSelectedIndex === 0 ? 0 : -1"\n             [attr.aria-checked]="activeSelectedIndex === 0"\n             class="owl-dt-control owl-dt-container-range owl-dt-container-from"\n             [ngClass]="{\'owl-dt-container-info-active\': activeSelectedIndex === 0}"\n             (click)="handleClickOnInfoGroup($event, 0)"\n             (keydown)="handleKeydownOnInfoGroup($event, to, 0)" #from>\n            <span class="owl-dt-control-content owl-dt-container-range-content" tabindex="-1">\n                <span class="owl-dt-container-info-label">{{fromLabel}}:</span>\n                <span class="owl-dt-container-info-value">{{fromFormattedValue}}</span>\n            </span>\n        </div>\n        <div role="radio" [tabindex]="activeSelectedIndex === 1 ? 0 : -1"\n             [attr.aria-checked]="activeSelectedIndex === 1"\n             class="owl-dt-control owl-dt-container-range owl-dt-container-to"\n             [ngClass]="{\'owl-dt-container-info-active\': activeSelectedIndex === 1}"\n             (click)="handleClickOnInfoGroup($event, 1)"\n             (keydown)="handleKeydownOnInfoGroup($event, from, 1)" #to>\n            <span class="owl-dt-control-content owl-dt-container-range-content" tabindex="-1">\n                <span class="owl-dt-container-info-label">{{toLabel}}:</span>\n                <span class="owl-dt-container-info-value">{{toFormattedValue}}</span>\n            </span>\n        </div>\n    </div>\n\n    <div *ngIf="showControlButtons" class="owl-dt-container-buttons owl-dt-container-row">\n        <button class="owl-dt-control owl-dt-control-button owl-dt-container-control-button"\n                type="button" tabindex="0"\n                (click)="onCancelClicked($event)">\n            <span class="owl-dt-control-content owl-dt-control-button-content" tabindex="-1">\n                {{cancelLabel}}\n            </span>\n        </button>\n        <button class="owl-dt-control owl-dt-control-button owl-dt-container-control-button"\n                type="button" tabindex="0"\n                (click)="onSetClicked($event)">\n            <span class="owl-dt-control-content owl-dt-control-button-content" tabindex="-1">\n                {{setLabel}}\n            </span>\n        </button>\n    </div>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1,animations:[x.transformPicker,x.fadeInPicker],host:{"(@transformPicker.done)":"handleContainerAnimationDone($event)","[class.owl-dt-container]":"owlDTContainerClass","[class.owl-dt-popup-container]":"owlDTPopupContainerClass","[class.owl-dt-dialog-container]":"owlDTDialogContainerClass","[class.owl-dt-inline-container]":"owlDTInlineContainerClass","[class.owl-dt-container-disabled]":"owlDTContainerDisabledClass","[attr.id]":"owlDTContainerId","[@transformPicker]":"owlDTContainerAnimation"},styles:[""]}]}],E.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:T},{type:A,decorators:[{type:t.Optional}]}]},E.propDecorators={calendar:[{type:t.ViewChild,args:[S]}],timer:[{type:t.ViewChild,args:[P]}]};var V=0,R=function(){this.ariaDescribedBy=null,this.autoFocus=!0,this.hasBackdrop=!0,this.data=null,this.disableClose=!1,this.role="dialog",this.paneClass="",this.event=null,this.backdropClass="",this.closeOnNavigation=!0,this.width="",this.height="",this.maxWidth="85vw",this.scrollStrategy=new r.NoopScrollStrategy,this.id="owl-dialog-"+V++},j=function(){function e(e,t,i,n){var r=this;this.overlayRef=e,this.container=t,this.id=i,this._beforeClose$=new a.Subject,this._afterOpen$=new a.Subject,this._afterClosed$=new a.Subject,this.locationChanged=a.Subscription.EMPTY,this.disableClose=this.container.config.disableClose,this.container.animationStateChanged.pipe(c.filter((function(e){return"done"===e.phaseName&&"enter"===e.toState})),c.take(1)).subscribe((function(){r._afterOpen$.next(),r._afterOpen$.complete()})),this.container.animationStateChanged.pipe(c.filter((function(e){return"done"===e.phaseName&&"exit"===e.toState})),c.take(1)).subscribe((function(){r.overlayRef.dispose(),r.locationChanged.unsubscribe(),r._afterClosed$.next(r.result),r._afterClosed$.complete(),r.componentInstance=null})),this.overlayRef.keydownEvents().pipe(c.filter((function(e){return e.keyCode===s.ESCAPE&&!r.disableClose}))).subscribe((function(){return r.close()})),n&&(this.locationChanged=n.subscribe((function(){r.container.config.closeOnNavigation&&r.close()})))}return e.prototype.close=function(e){var t=this;this.result=e,this.container.animationStateChanged.pipe(c.filter((function(e){return"start"===e.phaseName})),c.take(1)).subscribe((function(){t._beforeClose$.next(e),t._beforeClose$.complete(),t.overlayRef.detachBackdrop()})),this.container.startExitAnimation()},e.prototype.backdropClick=function(){return this.overlayRef.backdropClick()},e.prototype.keydownEvents=function(){return this.overlayRef.keydownEvents()},e.prototype.updatePosition=function(e){var t=this.getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this.overlayRef.updatePosition(),this},e.prototype.updateSize=function(e,t){return void 0===e&&(e="auto"),void 0===t&&(t="auto"),this.getPositionStrategy().width(e).height(t),this.overlayRef.updatePosition(),this},e.prototype.isAnimating=function(){return this.container.isAnimating},e.prototype.afterOpen=function(){return this._afterOpen$.asObservable()},e.prototype.beforeClose=function(){return this._beforeClose$.asObservable()},e.prototype.afterClosed=function(){return this._afterClosed$.asObservable()},e.prototype.getPositionStrategy=function(){return this.overlayRef.getConfig().positionStrategy},e}(),Y=function(e){function i(i,n,r,a){var o=e.call(this)||this;return o.changeDetector=i,o.elementRef=n,o.focusTrapFactory=r,o.document=a,o.portalOutlet=null,o.ariaLabelledBy=null,o.animationStateChanged=new t.EventEmitter,o.isAnimating=!1,o.state="enter",o.params={x:"0px",y:"0px",ox:"50%",oy:"50%",scale:0},o.elementFocusedBeforeDialogWasOpened=null,o}return y(i,e),Object.defineProperty(i.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerTabIndex",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerId",{get:function(){return this._config.id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerRole",{get:function(){return this._config.role||null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerAriaLabelledby",{get:function(){return this.ariaLabelledBy},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerAriaDescribedby",{get:function(){return this._config.ariaDescribedBy||null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDialogContainerAnimation",{get:function(){return{value:this.state,params:this.params}},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){},i.prototype.attachComponentPortal=function(e){if(this.portalOutlet.hasAttached())throw Error("Attempting to attach dialog content after content is already attached");return this.savePreviouslyFocusedElement(),this.portalOutlet.attachComponentPortal(e)},i.prototype.attachTemplatePortal=function(e){throw new Error("Method not implemented.")},i.prototype.setConfig=function(e){this._config=e,e.event&&this.calculateZoomOrigin(event)},i.prototype.onAnimationStart=function(e){this.isAnimating=!0,this.animationStateChanged.emit(e)},i.prototype.onAnimationDone=function(e){"enter"===e.toState?this.trapFocus():"exit"===e.toState&&this.restoreFocus(),this.animationStateChanged.emit(e),this.isAnimating=!1},i.prototype.startExitAnimation=function(){this.state="exit",this.changeDetector.markForCheck()},i.prototype.calculateZoomOrigin=function(e){if(e){var t=e.clientX,i=e.clientY,n=t-window.innerWidth/2,r=i-window.innerHeight/2,a=t/window.innerWidth,o=i/window.innerHeight;this.params.x=n+"px",this.params.y=r+"px",this.params.ox=100*a+"%",this.params.oy=100*o+"%",this.params.scale=0}},i.prototype.savePreviouslyFocusedElement=function(){var e=this;this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement,Promise.resolve().then((function(){return e.elementRef.nativeElement.focus()})))},i.prototype.trapFocus=function(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement)),this._config.autoFocus&&this.focusTrap.focusInitialElementWhenReady()},i.prototype.restoreFocus=function(){var e=this.elementFocusedBeforeDialogWasOpened;e&&"function"==typeof e.focus&&e.focus(),this.focusTrap&&this.focusTrap.destroy()},i}(o.BasePortalOutlet);Y.decorators=[{type:t.Component,args:[{selector:"owl-dialog-container",template:"<ng-template [cdkPortalOutlet]></ng-template>\n",animations:[d.trigger("slideModal",[d.transition("void => enter",[d.style({opacity:0,transform:"translateX({{ x }}) translateY({{ y }}) scale({{scale}})",transformOrigin:"{{ ox }} {{ oy }}"}),d.animate("300ms cubic-bezier(0.35, 0, 0.25, 1)",d.style("*")),d.animate("150ms",d.keyframes([d.style({transform:"scale(1)",offset:0}),d.style({transform:"scale(1.05)",offset:.3}),d.style({transform:"scale(.95)",offset:.8}),d.style({transform:"scale(1)",offset:1})])),d.animateChild()],{params:{x:"0px",y:"0px",ox:"50%",oy:"50%",scale:1}}),d.transition("enter => exit",[d.animateChild(),d.animate(200,d.style({opacity:0,transform:"translateX({{ x }}) translateY({{ y }}) scale({{scale}})"}))],{params:{x:"0px",y:"0px",ox:"50%",oy:"50%"}})])],host:{"(@slideModal.start)":"onAnimationStart($event)","(@slideModal.done)":"onAnimationDone($event)","[class.owl-dialog-container]":"owlDialogContainerClass","[attr.tabindex]":"owlDialogContainerTabIndex","[attr.id]":"owlDialogContainerId","[attr.role]":"owlDialogContainerRole","[attr.aria-labelledby]":"owlDialogContainerAriaLabelledby","[attr.aria-describedby]":"owlDialogContainerAriaDescribedby","[@slideModal]":"owlDialogContainerAnimation"}}]}],Y.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:n.FocusTrapFactory},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[i.DOCUMENT]}]}]},Y.propDecorators={portalOutlet:[{type:t.ViewChild,args:[o.CdkPortalOutlet,{static:!0}]}]};var L=new t.InjectionToken("OwlDialogData"),F=new t.InjectionToken("owl-dialog-scroll-strategy");function N(e){return function(){return e.scrollStrategies.block()}}var B={provide:F,deps:[r.Overlay],useFactory:N},W=new t.InjectionToken("owl-dialog-default-options"),H=function(){function e(e,t,i,n,r,o,s){var l=this;this.overlay=e,this.injector=t,this.location=i,this.defaultOptions=r,this.parentDialog=o,this.overlayContainer=s,this.ariaHiddenElements=new Map,this._openDialogsAtThisLevel=[],this._afterOpenAtThisLevel=new a.Subject,this._afterAllClosedAtThisLevel=new a.Subject,this.afterAllClosed=a.defer((function(){return l._openDialogsAtThisLevel.length?l._afterAllClosed:l._afterAllClosed.pipe(c.startWith(void 0))})),this.scrollStrategy=n,!o&&i&&i.subscribe((function(){return l.closeAll()}))}return Object.defineProperty(e.prototype,"openDialogs",{get:function(){return this.parentDialog?this.parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"afterOpen",{get:function(){return this.parentDialog?this.parentDialog.afterOpen:this._afterOpenAtThisLevel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_afterAllClosed",{get:function(){var e=this.parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!1,configurable:!0}),e.prototype.open=function(e,t){var i=this;if((t=function(e,t){return function(e){for(var t,i,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(null==e)throw TypeError("Cannot convert undefined or null to object");try{for(var a=g(n),o=a.next();!o.done;o=a.next()){var s=o.value;if(null!=s)for(var l in s)s.hasOwnProperty(l)&&(e[l]=s[l])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(t)throw t.error}}return e}(new R,e,t)}(t,this.defaultOptions)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'+t.id+'" exists already. The dialog id must be unique.');var n=this.createOverlay(t),r=this.attachDialogContainer(n,t),a=this.attachDialogContent(e,r,n,t);return this.openDialogs.length||this.hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe((function(){return i.removeOpenDialog(a)})),this.afterOpen.next(a),a},e.prototype.closeAll=function(){for(var e=this.openDialogs.length;e--;)this.openDialogs[e].close()},e.prototype.getDialogById=function(e){return this.openDialogs.find((function(t){return t.id===e}))},e.prototype.attachDialogContent=function(e,i,n,r){var a=new j(n,i,r.id,this.location);if(r.hasBackdrop&&n.backdropClick().subscribe((function(){a.disableClose||a.close()})),e instanceof t.TemplateRef);else{var s=this.createInjector(r,a,i),l=i.attachComponentPortal(new o.ComponentPortal(e,void 0,s));a.componentInstance=l.instance}return a.updateSize(r.width,r.height).updatePosition(r.position),a},e.prototype.createInjector=function(e,t,i){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=new WeakMap;return r.set(j,t),r.set(Y,i),r.set(L,e.data),new o.PortalInjector(n||this.injector,r)},e.prototype.createOverlay=function(e){var t=this.getOverlayConfig(e);return this.overlay.create(t)},e.prototype.attachDialogContainer=function(e,t){var i=new o.ComponentPortal(Y,t.viewContainerRef),n=e.attach(i);return n.instance.setConfig(t),n.instance},e.prototype.getOverlayConfig=function(e){var t=new r.OverlayConfig({positionStrategy:this.overlay.position().global(),scrollStrategy:e.scrollStrategy||this.scrollStrategy(),panelClass:e.paneClass,hasBackdrop:e.hasBackdrop,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight});return e.backdropClass&&(t.backdropClass=e.backdropClass),t},e.prototype.removeOpenDialog=function(e){var t=this._openDialogsAtThisLevel.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this.ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this.ariaHiddenElements.clear(),this._afterAllClosed.next()))},e.prototype.hideNonDialogContentFromAssistiveTechnology=function(){var e=this.overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,i=t.length-1;i>-1;i--){var n=t[i];n===e||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this.ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}},e}();H.decorators=[{type:t.Injectable}],H.ctorParameters=function(){return[{type:r.Overlay},{type:t.Injector},{type:i.Location,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[F]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[W]}]},{type:H,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:r.OverlayContainer}]};var z=new t.InjectionToken("owl-dtpicker-scroll-strategy");function $(e){return function(){return e.scrollStrategies.block()}}var q={provide:z,deps:[r.Overlay],useFactory:$},G=function(e){function i(i,n,r,o,s,l,c,d,p){var u=e.call(this,l,d)||this;return u.overlay=i,u.viewContainerRef=n,u.dialogService=r,u.ngZone=o,u.changeDetector=s,u.dateTimeAdapter=l,u.dateTimeFormats=d,u.document=p,u.backdropClass=[],u.panelClass=[],u._pickerType="both",u._pickerMode="popup",u._opened=!1,u._dateClasses=[],u._activeDates=[],u.afterPickerClosed=new t.EventEmitter,u.afterPickerOpen=new t.EventEmitter,u.yearSelected=new t.EventEmitter,u.monthSelected=new t.EventEmitter,u.dateSelected=new t.EventEmitter,u.confirmSelectedChange=new t.EventEmitter,u.disabledChange=new t.EventEmitter,u.dtInputSub=a.Subscription.EMPTY,u.hidePickerStreamSub=a.Subscription.EMPTY,u.confirmSelectedStreamSub=a.Subscription.EMPTY,u.pickerOpenedStreamSub=a.Subscription.EMPTY,u.focusedElementBeforeOpen=null,u._selecteds=[],u.defaultScrollStrategy=c,u}return y(i,e),Object.defineProperty(i.prototype,"startAt",{get:function(){return this._startAt?this._startAt:this._dtInput?"single"===this._dtInput.selectMode?this._dtInput.value||null:"range"===this._dtInput.selectMode||"rangeFrom"===this._dtInput.selectMode?this._dtInput.values[0]||null:"rangeTo"===this._dtInput.selectMode?this._dtInput.values[1]||null:void 0:null},set:function(e){this._startAt=this.getValidDate(this.dateTimeAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"endAt",{get:function(){return this._endAt?this._endAt:this._dtInput?"single"===this._dtInput.selectMode?this._dtInput.value||null:"range"===this._dtInput.selectMode||"rangeFrom"===this._dtInput.selectMode?this._dtInput.values[1]||null:void 0:null},set:function(e){this._endAt=this.getValidDate(this.dateTimeAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pickerType",{get:function(){return this._pickerType},set:function(e){e!==this._pickerType&&(this._pickerType=e,this._dtInput&&this._dtInput.formatNativeInputValue())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pickerMode",{get:function(){return this._pickerMode},set:function(e){this._pickerMode="popup"===e?e:"dialog"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._dtInput?this._dtInput.disabled:!!this._disabled},set:function(e){(e=l.coerceBooleanProperty(e))!==this._disabled&&(this._disabled=e,this.disabledChange.next(e))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"opened",{get:function(){return this._opened},set:function(e){e?this.open():this.close()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dateClasses",{get:function(){return this._dateClasses},set:function(e){this._dateClasses=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"activeDates",{get:function(){return this._activeDates},set:function(e){this._activeDates=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dtInput",{get:function(){return this._dtInput},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e,this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){this._selecteds=e,this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"minDateTime",{get:function(){return this._dtInput&&this._dtInput.min},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxDateTime",{get:function(){return this._dtInput&&this._dtInput.max},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dateTimeFilter",{get:function(){return this._dtInput&&this._dtInput.dateTimeFilter},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectMode",{get:function(){return this._dtInput.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isInSingleMode",{get:function(){return this._dtInput.isInSingleMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isInRangeMode",{get:function(){return this._dtInput.isInRangeMode},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){},i.prototype.ngOnDestroy=function(){this.close(),this.dtInputSub.unsubscribe(),this.disabledChange.complete(),this.popupRef&&this.popupRef.dispose()},i.prototype.registerInput=function(e){var t=this;if(this._dtInput)throw Error("A Owl DateTimePicker can only be associated with a single input.");this._dtInput=e,this.dtInputSub=this._dtInput.valueChange.subscribe((function(e){Array.isArray(e)?t.selecteds=e:t.selected=e}))},i.prototype.open=function(){var e=this;if(!this._opened&&!this.disabled){if(!this._dtInput)throw Error("Attempted to open an DateTimePicker with no associated input.");this.document&&(this.focusedElementBeforeOpen=this.document.activeElement),this.isInSingleMode?this.selected=this._dtInput.value:this.isInRangeMode&&(this.selecteds=this._dtInput.values),this.selected&&"calendar"!==this.pickerType&&this._startAt&&(this.selected=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.selected),this.dateTimeAdapter.getMonth(this.selected),this.dateTimeAdapter.getDate(this.selected),this.dateTimeAdapter.getHours(this._startAt),this.dateTimeAdapter.getMinutes(this._startAt),this.dateTimeAdapter.getSeconds(this._startAt))),"dialog"===this.pickerMode?this.openAsDialog():this.openAsPopup(),this.pickerContainer.picker=this,this.hidePickerStreamSub=this.pickerContainer.hidePickerStream.subscribe((function(){e.close()})),this.confirmSelectedStreamSub=this.pickerContainer.confirmSelectedStream.subscribe((function(t){e.confirmSelect(t)}))}},i.prototype.select=function(e){Array.isArray(e)?this.selecteds=v(e):this.selected=e,"dialog"!==this.pickerMode&&"calendar"===this.pickerType&&("single"===this.selectMode&&this.selected||"rangeFrom"===this.selectMode&&this.selecteds[0]||"rangeTo"===this.selectMode&&this.selecteds[1]||"range"===this.selectMode&&this.selecteds[0]&&this.selecteds[1])&&this.confirmSelect()},i.prototype.selectYear=function(e){this.yearSelected.emit(e)},i.prototype.selectMonth=function(e){this.monthSelected.emit(e)},i.prototype.selectDate=function(e){this.dateSelected.emit(e)},i.prototype.close=function(){var e=this;if(this._opened){this.popupRef&&this.popupRef.hasAttached()&&this.popupRef.detach(),this.pickerContainerPortal&&this.pickerContainerPortal.isAttached&&this.pickerContainerPortal.detach(),this.hidePickerStreamSub&&(this.hidePickerStreamSub.unsubscribe(),this.hidePickerStreamSub=null),this.confirmSelectedStreamSub&&(this.confirmSelectedStreamSub.unsubscribe(),this.confirmSelectedStreamSub=null),this.pickerOpenedStreamSub&&(this.pickerOpenedStreamSub.unsubscribe(),this.pickerOpenedStreamSub=null),this.dialogRef&&(this.dialogRef.close(),this.dialogRef=null);var t=function(){if(e._opened){e._opened=!1;var t=e.selected||e.selecteds;e.afterPickerClosed.emit(t),e.focusedElementBeforeOpen=null}};this.focusedElementBeforeOpen&&"function"==typeof this.focusedElementBeforeOpen.focus?(this.focusedElementBeforeOpen.focus(),setTimeout(t)):t()}},i.prototype.confirmSelect=function(e){if(this.isInSingleMode){var t=this.selected||this.startAt||this.dateTimeAdapter.now();this.confirmSelectedChange.emit(t)}else this.isInRangeMode&&this.confirmSelectedChange.emit(this.selecteds);this.close()},i.prototype.openAsDialog=function(){var e=this;this.dialogRef=this.dialogService.open(E,{autoFocus:!1,backdropClass:v(["cdk-overlay-dark-backdrop"],l.coerceArray(this.backdropClass)),paneClass:v(["owl-dt-dialog"],l.coerceArray(this.panelClass)),viewContainerRef:this.viewContainerRef,scrollStrategy:this.scrollStrategy||this.defaultScrollStrategy()}),this.pickerContainer=this.dialogRef.componentInstance,this.pickerContainer.dateClasses=this.dateClasses,this.pickerContainer.activeDates=this.activeDates,this.dialogRef.afterOpen().subscribe((function(){e.afterPickerOpen.emit(null),e._opened=!0})),this.dialogRef.afterClosed().subscribe((function(){return e.close()}))},i.prototype.openAsPopup=function(){var e=this;if(this.pickerContainerPortal||(this.pickerContainerPortal=new o.ComponentPortal(E,this.viewContainerRef)),this.popupRef||this.createPopup(),!this.popupRef.hasAttached()){var t=this.popupRef.attach(this.pickerContainerPortal);this.pickerContainer=t.instance,this.pickerContainer.dateClasses=this.dateClasses,this.pickerContainer.activeDates=this.activeDates,this.ngZone.onStable.asObservable().pipe(c.take(1)).subscribe((function(){e.popupRef.updatePosition()})),this.pickerOpenedStreamSub=this.pickerContainer.pickerOpenedStream.pipe(c.take(1)).subscribe((function(){e.afterPickerOpen.emit(null),e._opened=!0}))}},i.prototype.createPopup=function(){var e=this,t=new r.OverlayConfig({positionStrategy:this.createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:v(["cdk-overlay-transparent-backdrop"],l.coerceArray(this.backdropClass)),scrollStrategy:this.scrollStrategy||this.defaultScrollStrategy(),panelClass:v(["owl-dt-popup"],l.coerceArray(this.panelClass))});this.popupRef=this.overlay.create(t),a.merge(this.popupRef.backdropClick(),this.popupRef.detachments(),this.popupRef.keydownEvents().pipe(c.filter((function(t){return t.keyCode===s.ESCAPE||e._dtInput&&t.altKey&&t.keyCode===s.UP_ARROW})))).subscribe((function(){return e.close()}))},i.prototype.createPopupPositionStrategy=function(){return this.overlay.position().flexibleConnectedTo(this._dtInput.elementRef).withTransformOriginOn(".owl-dt-container").withFlexibleDimensions(!1).withPush(!1).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetY:-176},{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetY:-352}])},i}(_);G.decorators=[{type:t.Component,args:[{selector:"owl-date-time",exportAs:"owlDateTime",template:"",changeDetection:t.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1,styles:[""]}]}],G.ctorParameters=function(){return[{type:r.Overlay},{type:t.ViewContainerRef},{type:H},{type:t.NgZone},{type:t.ChangeDetectorRef},{type:A,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[z]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[O]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[i.DOCUMENT]}]}]},G.propDecorators={backdropClass:[{type:t.Input}],panelClass:[{type:t.Input}],startAt:[{type:t.Input}],endAt:[{type:t.Input}],pickerType:[{type:t.Input}],pickerMode:[{type:t.Input}],disabled:[{type:t.Input}],opened:[{type:t.Input}],dateClasses:[{type:t.Input}],activeDates:[{type:t.Input}],scrollStrategy:[{type:t.Input}],afterPickerClosed:[{type:t.Output}],afterPickerOpen:[{type:t.Output}],yearSelected:[{type:t.Output}],monthSelected:[{type:t.Output}],dateSelected:[{type:t.Output}]};var Z={provide:p.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return K})),multi:!0},U={provide:p.NG_VALIDATORS,useExisting:t.forwardRef((function(){return K})),multi:!0},K=function(){function e(e,i,n,r){var o=this;if(this.elmRef=e,this.renderer=i,this.dateTimeAdapter=n,this.dateTimeFormats=r,this._selectMode="single",this.rangeSeparator="-",this._values=[],this.dateTimeChange=new t.EventEmitter,this.dateTimeInput=new t.EventEmitter,this.dtPickerSub=a.Subscription.EMPTY,this.localeSub=a.Subscription.EMPTY,this.lastValueValid=!0,this.onModelChange=function(){},this.onModelTouched=function(){},this.validatorOnChange=function(){},this.parseValidator=function(){return o.lastValueValid?null:{owlDateTimeParse:{text:o.elmRef.nativeElement.value}}},this.minValidator=function(e){if(o.isInSingleMode){var t=o.getValidDate(o.dateTimeAdapter.deserialize(e.value));return!o.min||!t||o.dateTimeAdapter.compare(o.min,t)<=0?null:{owlDateTimeMin:{min:o.min,actual:t}}}if(o.isInRangeMode&&e.value){var i=o.getValidDate(o.dateTimeAdapter.deserialize(e.value[0])),n=o.getValidDate(o.dateTimeAdapter.deserialize(e.value[1]));return!o.min||!i||!n||o.dateTimeAdapter.compare(o.min,i)<=0?null:{owlDateTimeMin:{min:o.min,actual:[i,n]}}}},this.maxValidator=function(e){if(o.isInSingleMode){var t=o.getValidDate(o.dateTimeAdapter.deserialize(e.value));return!o.max||!t||o.dateTimeAdapter.compare(o.max,t)>=0?null:{owlDateTimeMax:{max:o.max,actual:t}}}if(o.isInRangeMode&&e.value){var i=o.getValidDate(o.dateTimeAdapter.deserialize(e.value[0])),n=o.getValidDate(o.dateTimeAdapter.deserialize(e.value[1]));return!o.max||!i||!n||o.dateTimeAdapter.compare(o.max,n)>=0?null:{owlDateTimeMax:{max:o.max,actual:[i,n]}}}},this.filterValidator=function(e){var t=o.getValidDate(o.dateTimeAdapter.deserialize(e.value));return o._dateTimeFilter&&t&&!o._dateTimeFilter(t)?{owlDateTimeFilter:!0}:null},this.rangeValidator=function(e){if(o.isInSingleMode||!e.value)return null;var t=o.getValidDate(o.dateTimeAdapter.deserialize(e.value[0])),i=o.getValidDate(o.dateTimeAdapter.deserialize(e.value[1]));return!t||!i||o.dateTimeAdapter.compare(t,i)<=0?null:{owlDateTimeRange:!0}},this.requiredRangeValidator=function(e){if(o.isInSingleMode||!e.value||!o.required)return null;var t=o.getValidDate(o.dateTimeAdapter.deserialize(e.value[0])),i=o.getValidDate(o.dateTimeAdapter.deserialize(e.value[1]));return t&&i?null:{owlRequiredDateTimeRange:[t,i]}},this.validator=p.Validators.compose([this.parseValidator,this.minValidator,this.maxValidator,this.filterValidator,this.rangeValidator,this.requiredRangeValidator]),this.valueChange=new t.EventEmitter,this.disabledChange=new t.EventEmitter,!this.dateTimeAdapter)throw Error("OwlDateTimePicker: No provider found for DateTimePicker. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");if(!this.dateTimeFormats)throw Error("OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");this.localeSub=this.dateTimeAdapter.localeChanges.subscribe((function(){o.value=o.value}))}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=""===e||e,this.validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDateTime",{set:function(e){this.registerDateTimePicker(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDateTimeFilter",{set:function(e){this._dateTimeFilter=e,this.validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateTimeFilter",{get:function(){return this._dateTimeFilter},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!!this._disabled},set:function(e){var t=l.coerceBooleanProperty(e),i=this.elmRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.disabledChange.emit(t)),t&&i.blur&&i.blur()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=this.getValidDate(this.dateTimeAdapter.deserialize(e)),this.validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=this.getValidDate(this.dateTimeAdapter.deserialize(e)),this.validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectMode",{get:function(){return this._selectMode},set:function(e){if("single"!==e&&"range"!==e&&"rangeFrom"!==e&&"rangeTo"!==e)throw Error("OwlDateTime Error: invalid selectMode value!");this._selectMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){e=this.dateTimeAdapter.deserialize(e),this.lastValueValid=!e||this.dateTimeAdapter.isValid(e),e=this.getValidDate(e);var t=this._value;this._value=e,this.formatNativeInputValue(),this.dateTimeAdapter.isEqual(t,e)||this.valueChange.emit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this._values},set:function(e){var t=this;e&&e.length>0?(this._values=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)})),this.lastValueValid=(!this._values[0]||this.dateTimeAdapter.isValid(this._values[0]))&&(!this._values[1]||this.dateTimeAdapter.isValid(this._values[1]))):(this._values=[],this.lastValueValid=!0),this.formatNativeInputValue(),this.valueChange.emit(this._values)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementRef",{get:function(){return this.elmRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this._selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this._selectMode||"rangeFrom"===this._selectMode||"rangeTo"===this._selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDateTimeInputAriaHaspopup",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDateTimeInputAriaOwns",{get:function(){return this.dtPicker.opened&&this.dtPicker.id||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minIso8601",{get:function(){return this.min?this.dateTimeAdapter.toIso8601(this.min):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxIso8601",{get:function(){return this.max?this.dateTimeAdapter.toIso8601(this.max):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDateTimeInputDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){if(!this.dtPicker)throw Error("OwlDateTimePicker: the picker input doesn't have any associated owl-date-time component")},e.prototype.ngAfterContentInit=function(){var e=this;this.dtPickerSub=this.dtPicker.confirmSelectedChange.subscribe((function(t){Array.isArray(t)?e.values=t:e.value=t,e.onModelChange(t),e.onModelTouched(),e.dateTimeChange.emit({source:e,value:t,input:e.elmRef.nativeElement}),e.dateTimeInput.emit({source:e,value:t,input:e.elmRef.nativeElement})}))},e.prototype.ngOnDestroy=function(){this.dtPickerSub.unsubscribe(),this.localeSub.unsubscribe(),this.valueChange.complete(),this.disabledChange.complete()},e.prototype.writeValue=function(e){this.isInSingleMode?this.value=e:this.values=e},e.prototype.registerOnChange=function(e){this.onModelChange=e},e.prototype.registerOnTouched=function(e){this.onModelTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.validate=function(e){return this.validator?this.validator(e):null},e.prototype.registerOnValidatorChange=function(e){this.validatorOnChange=e},e.prototype.handleKeydownOnHost=function(e){e.altKey&&e.keyCode===s.DOWN_ARROW&&(this.dtPicker.open(),e.preventDefault())},e.prototype.handleBlurOnHost=function(e){this.onModelTouched()},e.prototype.handleInputOnHost=function(e){var t=e.target.value;"single"===this._selectMode?this.changeInputInSingleMode(t):"range"===this._selectMode?this.changeInputInRangeMode(t):this.changeInputInRangeFromToMode(t)},e.prototype.handleChangeOnHost=function(e){var t;this.isInSingleMode?t=this.value:this.isInRangeMode&&(t=this.values),this.dateTimeChange.emit({source:this,value:t,input:this.elmRef.nativeElement})},e.prototype.formatNativeInputValue=function(){if(this.isInSingleMode)this.renderer.setProperty(this.elmRef.nativeElement,"value",this._value?this.dateTimeAdapter.format(this._value,this.dtPicker.formatString):"");else if(this.isInRangeMode)if(this._values&&this.values.length>0){var e=this._values[0],t=this._values[1],i=e?this.dateTimeAdapter.format(e,this.dtPicker.formatString):"",n=t?this.dateTimeAdapter.format(t,this.dtPicker.formatString):"";i||n?"range"===this._selectMode?this.renderer.setProperty(this.elmRef.nativeElement,"value",i+" "+this.rangeSeparator+" "+n):"rangeFrom"===this._selectMode?this.renderer.setProperty(this.elmRef.nativeElement,"value",i):"rangeTo"===this._selectMode&&this.renderer.setProperty(this.elmRef.nativeElement,"value",n):this.renderer.setProperty(this.elmRef.nativeElement,"value",null)}else this.renderer.setProperty(this.elmRef.nativeElement,"value","")},e.prototype.registerDateTimePicker=function(e){e&&(this.dtPicker=e,this.dtPicker.registerInput(this))},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e.prototype.convertTimeStringToDateTimeString=function(e,t){if(e){var i=t||this.dateTimeAdapter.now();return this.dateTimeAdapter.format(i,this.dateTimeFormats.datePickerInput)+" "+e}return null},e.prototype.changeInputInSingleMode=function(e){var t=e;"timer"===this.dtPicker.pickerType&&(t=this.convertTimeStringToDateTimeString(t,this.value));var i=this.dateTimeAdapter.parse(t,this.dateTimeFormats.parseInput);this.lastValueValid=!i||this.dateTimeAdapter.isValid(i),i=this.getValidDate(i),this.isSameValue(i,this._value)&&null!==i||(this._value=i,this.valueChange.emit(i),this.onModelChange(i),this.dateTimeInput.emit({source:this,value:i,input:this.elmRef.nativeElement}))},e.prototype.changeInputInRangeFromToMode=function(e){var t="rangeFrom"===this._selectMode?this._values[0]:this._values[1];"timer"===this.dtPicker.pickerType&&(e=this.convertTimeStringToDateTimeString(e,t));var i=this.dateTimeAdapter.parse(e,this.dateTimeFormats.parseInput);this.lastValueValid=!i||this.dateTimeAdapter.isValid(i),i=this.getValidDate(i),"rangeFrom"===this._selectMode&&this.isSameValue(i,this._values[0])&&i||"rangeTo"===this._selectMode&&this.isSameValue(i,this._values[1])&&i||(this._values="rangeFrom"===this._selectMode?[i,this._values[1]]:[this._values[0],i],this.valueChange.emit(this._values),this.onModelChange(this._values),this.dateTimeInput.emit({source:this,value:this._values,input:this.elmRef.nativeElement}))},e.prototype.changeInputInRangeMode=function(e){var t=e.split(this.rangeSeparator),i=t[0],n=t[1];"timer"===this.dtPicker.pickerType&&(i=this.convertTimeStringToDateTimeString(i,this.values[0]),n=this.convertTimeStringToDateTimeString(n,this.values[1]));var r=this.dateTimeAdapter.parse(i,this.dateTimeFormats.parseInput),a=this.dateTimeAdapter.parse(n,this.dateTimeFormats.parseInput);this.lastValueValid=(!r||this.dateTimeAdapter.isValid(r))&&(!a||this.dateTimeAdapter.isValid(a)),r=this.getValidDate(r),a=this.getValidDate(a),this.isSameValue(r,this._values[0])&&this.isSameValue(a,this._values[1])&&(null!==r||null!==a)||(this._values=[r,a],this.valueChange.emit(this._values),this.onModelChange(this._values),this.dateTimeInput.emit({source:this,value:this._values,input:this.elmRef.nativeElement}))},e.prototype.isSameValue=function(e,t){return e&&t?0===this.dateTimeAdapter.compare(e,t):e===t},e}();K.decorators=[{type:t.Directive,args:[{selector:"input[owlDateTime]",exportAs:"owlDateTimeInput",host:{"(keydown)":"handleKeydownOnHost($event)","(blur)":"handleBlurOnHost($event)","(input)":"handleInputOnHost($event)","(change)":"handleChangeOnHost($event)","[attr.aria-haspopup]":"owlDateTimeInputAriaHaspopup","[attr.aria-owns]":"owlDateTimeInputAriaOwns","[attr.min]":"minIso8601","[attr.max]":"maxIso8601","[disabled]":"owlDateTimeInputDisabled"},providers:[Z,U]}]}],K.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:A,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[O]}]}]},K.propDecorators={required:[{type:t.Input}],owlDateTime:[{type:t.Input}],owlDateTimeFilter:[{type:t.Input}],_disabled:[{type:t.Input}],min:[{type:t.Input}],max:[{type:t.Input}],selectMode:[{type:t.Input}],rangeSeparator:[{type:t.Input}],value:[{type:t.Input}],values:[{type:t.Input}],dateTimeChange:[{type:t.Output}],dateTimeInput:[{type:t.Output}]};var X=function(e,t,i,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=""),this.value=e,this.displayValue=t,this.ariaLabel=i,this.enabled=n,this.out=r,this.cellClass=a},J=function(){function e(e,i){this.elmRef=e,this.ngZone=i,this.activeCell=0,this.numCols=7,this.cellRatio=1,this.select=new t.EventEmitter}return Object.defineProperty(e.prototype,"owlDTCalendarBodyClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.selectCell=function(e){this.select.emit(e)},e.prototype.isActiveCell=function(e,t){return e*this.numCols+t===this.activeCell},e.prototype.isSelected=function(e){if(!this.selectedValues||0===this.selectedValues.length)return!1;if(this.isInSingleMode)return e===this.selectedValues[0];if(this.isInRangeMode){var t=this.selectedValues[0],i=this.selectedValues[1];return e===t||e===i}},e.prototype.isInRange=function(e){if(this.isInRangeMode){var t=this.selectedValues[0],i=this.selectedValues[1];return null!==t&&null!==i?e>=t&&e<=i:e===t||e===i}},e.prototype.isRangeFrom=function(e){if(this.isInRangeMode){var t=this.selectedValues[0];return null!==t&&e===t}},e.prototype.isRangeTo=function(e){if(this.isInRangeMode){var t=this.selectedValues[1];return null!==t&&e===t}},e.prototype.focusActiveCell=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.ngZone.onStable.asObservable().pipe(c.take(1)).subscribe((function(){e.elmRef.nativeElement.querySelector(".owl-dt-calendar-cell-active").focus()}))}))},e}();J.decorators=[{type:t.Component,args:[{selector:"[owl-date-time-calendar-body]",exportAs:"owlDateTimeCalendarBody",template:'<tr *ngFor="let row of rows; let rowIndex = index" role="row">\n    <td *ngFor="let item of row; let colIndex = index"\n        class="owl-dt-calendar-cell {{item.cellClass}}"\n        [tabindex]="isActiveCell(rowIndex, colIndex) ? 0 : -1"\n        [class.owl-dt-calendar-cell-active]="isActiveCell(rowIndex, colIndex)"\n        [class.owl-dt-calendar-cell-disabled]="!item.enabled"\n        [class.owl-dt-calendar-cell-in-range]="isInRange(item.value)"\n        [class.owl-dt-calendar-cell-range-from]="isRangeFrom(item.value)"\n        [class.owl-dt-calendar-cell-range-to]="isRangeTo(item.value)"\n        [attr.aria-label]="item.ariaLabel"\n        [attr.aria-disabled]="!item.enabled || null"\n        [style.width.%]="100 / numCols"\n        [style.paddingTop.%]="50 * cellRatio / numCols"\n        [style.paddingBottom.%]="50 * cellRatio / numCols"\n        (click)="selectCell(item)">\n        <span class="owl-dt-calendar-cell-content"\n              [ngClass]="{\n                \'owl-dt-calendar-cell-out\': item.out,\n                \'owl-dt-calendar-cell-today\': item.value === todayValue,\n                \'owl-dt-calendar-cell-selected\': isSelected(item.value)\n              }">\n            {{item.displayValue}}\n        </span>\n    </td>\n</tr>\n',host:{"[class.owl-dt-calendar-body]":"owlDTCalendarBodyClass"},preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],J.ctorParameters=function(){return[{type:t.ElementRef},{type:t.NgZone}]},J.propDecorators={activeCell:[{type:t.Input}],rows:[{type:t.Input}],numCols:[{type:t.Input}],cellRatio:[{type:t.Input}],todayValue:[{type:t.Input}],selectedValues:[{type:t.Input}],selectMode:[{type:t.Input}],select:[{type:t.Output}]};var Q=function(){function e(e,i,n){this.cdRef=e,this.dateTimeAdapter=i,this.dateTimeFormats=n,this.hideOtherMonths=!1,this.isDefaultFirstDayOfWeek=!0,this._selectMode="single",this._selecteds=[],this._dateClasses=[],this._activeDates=[],this.localeSub=a.Subscription.EMPTY,this.initiated=!1,this.selectedDates=[],this.selectedChange=new t.EventEmitter,this.userSelection=new t.EventEmitter,this.pickerMomentChange=new t.EventEmitter}return Object.defineProperty(e.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(e){e>=0&&e<=6&&e!==this._firstDayOfWeek&&(this._firstDayOfWeek=e,this.isDefaultFirstDayOfWeek=!1,this.initiated&&(this.generateWeekDays(),this.generateCalendar(),this.cdRef.markForCheck()))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectMode",{get:function(){return this._selectMode},set:function(e){this._selectMode=e,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){var t=this._selected;e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e),this.dateTimeAdapter.isSameDay(t,this._selected)||this.setSelectedDates()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){var t=this;this._selecteds=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)})),this.setSelectedDates()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(e){var t=this._pickerMoment;e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now(),this.firstDateOfMonth=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this._pickerMoment),this.dateTimeAdapter.getMonth(this._pickerMoment),1),!this.isSameMonth(t,this._pickerMoment)&&this.initiated&&this.generateCalendar()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateClasses",{get:function(){return this._dateClasses},set:function(e){this._dateClasses=e,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeDates",{get:function(){return this._activeDates},set:function(e){this._activeDates=e,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDate=this.getValidDate(e),this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDate=this.getValidDate(e),this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"weekdays",{get:function(){return this._weekdays},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"days",{get:function(){return this._days},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeCell",{get:function(){if(this.pickerMoment)return this.dateTimeAdapter.getDate(this.pickerMoment)+this.firstRowOffset-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTCalendarView",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.updateFirstDayOfWeek(this.dateTimeAdapter.getLocale()),this.generateWeekDays(),this.localeSub=this.dateTimeAdapter.localeChanges.subscribe((function(t){e.updateFirstDayOfWeek(t),e.generateWeekDays(),e.generateCalendar(),e.cdRef.markForCheck()}))},e.prototype.ngAfterContentInit=function(){this.generateCalendar(),this.initiated=!0},e.prototype.ngOnDestroy=function(){this.localeSub.unsubscribe()},e.prototype.selectCalendarCell=function(e){!e.enabled||this.hideOtherMonths&&e.out||this.selectDate(e.value)},e.prototype.selectDate=function(e){var t=e-1,i=this.dateTimeAdapter.addCalendarDays(this.firstDateOfMonth,t);this.selectedChange.emit(i),this.userSelection.emit()},e.prototype.handleCalendarKeydown=function(e){var t;switch(e.keyCode){case s.LEFT_ARROW:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,-1),this.pickerMomentChange.emit(t);break;case s.RIGHT_ARROW:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,1),this.pickerMomentChange.emit(t);break;case s.UP_ARROW:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,-7),this.pickerMomentChange.emit(t);break;case s.DOWN_ARROW:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,7),this.pickerMomentChange.emit(t);break;case s.HOME:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,1-this.dateTimeAdapter.getDate(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case s.END:t=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,this.dateTimeAdapter.getNumDaysInMonth(this.pickerMoment)-this.dateTimeAdapter.getDate(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case s.PAGE_UP:t=e.altKey?this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1):this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1),this.pickerMomentChange.emit(t);break;case s.PAGE_DOWN:t=e.altKey?this.dateTimeAdapter.addCalendarYears(this.pickerMoment,1):this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1),this.pickerMomentChange.emit(t);break;case s.ENTER:this.dateFilter&&!this.dateFilter(this.pickerMoment)||this.selectDate(this.dateTimeAdapter.getDate(this.pickerMoment));break;default:return}this.focusActiveCell(),e.preventDefault()},e.prototype.generateWeekDays=function(){var e=this.dateTimeAdapter.getDayOfWeekNames("long"),t=this.dateTimeAdapter.getDayOfWeekNames("short"),i=this.dateTimeAdapter.getDayOfWeekNames("narrow"),n=this.firstDayOfWeek,r=e.map((function(e,n){return{long:e,short:t[n],narrow:i[n]}}));this._weekdays=r.slice(n).concat(r.slice(0,n)),this.dateNames=this.dateTimeAdapter.getDateNames()},e.prototype.generateCalendar=function(){if(this.pickerMoment){this.todayDate=null;var e=0-(this.dateTimeAdapter.getDay(this.firstDateOfMonth)+(7-this.firstDayOfWeek))%7;this.firstRowOffset=Math.abs(e),this._days=[];for(var t=0;t<6;t++){for(var i=[],n=0;n<7;n++){var r=this.dateTimeAdapter.addCalendarDays(this.firstDateOfMonth,e),a=this.createDateCell(r,e);this.dateTimeAdapter.isSameDay(this.dateTimeAdapter.now(),r)&&(this.todayDate=e+1),i.push(a),e+=1}this._days.push(i)}this.setSelectedDates()}},e.prototype.updateFirstDayOfWeek=function(e){if(this.isDefaultFirstDayOfWeek)try{this._firstDayOfWeek=i.getLocaleFirstDayOfWeek(e)}catch(e){this._firstDayOfWeek=0}},e.prototype.createDateCell=function(e,t){var i=this.dateTimeAdapter.getNumDaysInMonth(this.pickerMoment),n=this.dateTimeAdapter.getDate(e).toString(),r=this.dateTimeAdapter.format(e,this.dateTimeFormats.dateA11yLabel),a=this.isDateEnabled(e),o=t+1,s=o<1||o>i,l="owl-dt-day-"+this.dateTimeAdapter.getDay(e);if(this._dateClasses.length){var c=this._dateClasses.find((function(t){return t.date.toDateString()==new Date(e.toString()).toDateString()}));c&&c.classes.forEach((function(e){l+=" owl-dt-extra-"+e}))}return new X(o,n,r,a,s,l)},e.prototype.isDateEnabled=function(e){var t=new Date(e.toString()).toDateString(),i=this.activeDates?this.activeDates.map((function(e){return e.toDateString()})):[];return!!e&&(!this.dateFilter||this.dateFilter(e))&&(!this.minDate||this.dateTimeAdapter.compare(e,this.minDate)>=0)&&(!this.maxDate||this.dateTimeAdapter.compare(e,this.maxDate)<=0)&&(!i.length||i.includes(t))},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e.prototype.isSameMonth=function(e,t){return!!(e&&t&&this.dateTimeAdapter.isValid(e)&&this.dateTimeAdapter.isValid(t)&&this.dateTimeAdapter.getYear(e)===this.dateTimeAdapter.getYear(t)&&this.dateTimeAdapter.getMonth(e)===this.dateTimeAdapter.getMonth(t))},e.prototype.setSelectedDates=function(){var e=this;if(this.selectedDates=[],this.firstDateOfMonth)if(this.isInSingleMode&&this.selected){var t=this.dateTimeAdapter.differenceInCalendarDays(this.selected,this.firstDateOfMonth);this.selectedDates[0]=t+1}else this.isInRangeMode&&this.selecteds&&(this.selectedDates=this.selecteds.map((function(t){return e.dateTimeAdapter.isValid(t)?e.dateTimeAdapter.differenceInCalendarDays(t,e.firstDateOfMonth)+1:null})))},e.prototype.focusActiveCell=function(){this.calendarBodyElm.focusActiveCell()},e}();Q.decorators=[{type:t.Component,args:[{selector:"owl-date-time-month-view",exportAs:"owlYearView",template:'<table class="owl-dt-calendar-table owl-dt-calendar-month-table"\n       [class.owl-dt-calendar-only-current-month]="hideOtherMonths">\n    <thead class="owl-dt-calendar-header">\n    <tr class="owl-dt-weekdays">\n        <th *ngFor="let weekday of weekdays"\n            [attr.aria-label]="weekday.long"\n            class="owl-dt-weekday" scope="col">\n            <span>{{weekday.short}}</span>\n        </th>\n    </tr>\n    <tr>\n        <th class="owl-dt-calendar-table-divider" aria-hidden="true" colspan="7"></th>\n    </tr>\n    </thead>\n    <tbody owl-date-time-calendar-body role="grid"\n           [rows]="days" [todayValue]="todayDate"\n           [selectedValues]="selectedDates"\n           [selectMode]="selectMode"\n           [activeCell]="activeCell"\n           (keydown)="handleCalendarKeydown($event)"\n           (select)="selectCalendarCell($event)">\n    </tbody>\n</table>\n',host:{"[class.owl-dt-calendar-view]":"owlDTCalendarView"},preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],Q.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:A,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[O]}]}]},Q.propDecorators={hideOtherMonths:[{type:t.Input}],firstDayOfWeek:[{type:t.Input}],selectMode:[{type:t.Input}],selected:[{type:t.Input}],selecteds:[{type:t.Input}],pickerMoment:[{type:t.Input}],dateFilter:[{type:t.Input}],dateClasses:[{type:t.Input}],activeDates:[{type:t.Input}],minDate:[{type:t.Input}],maxDate:[{type:t.Input}],selectedChange:[{type:t.Output}],userSelection:[{type:t.Output}],pickerMomentChange:[{type:t.Output}],calendarBodyElm:[{type:t.ViewChild,args:[J,{static:!0}]}]};var ee=function(){function e(e,i,n){this.cdRef=e,this.dateTimeAdapter=i,this.dateTimeFormats=n,this._selectMode="single",this._selecteds=[],this.localeSub=a.Subscription.EMPTY,this.initiated=!1,this.selectedMonths=[],this.change=new t.EventEmitter,this.monthSelected=new t.EventEmitter,this.pickerMomentChange=new t.EventEmitter,this.keyboardEnter=new t.EventEmitter,this.monthNames=this.dateTimeAdapter.getMonthNames("short")}return Object.defineProperty(e.prototype,"selectMode",{get:function(){return this._selectMode},set:function(e){this._selectMode=e,this.initiated&&(this.generateMonthList(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e),this.setSelectedMonths()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){this._selecteds=[];for(var t=0;t<e.length;t++){var i=this.dateTimeAdapter.deserialize(e[t]);this._selecteds.push(this.getValidDate(i))}this.setSelectedMonths()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(e){var t=this._pickerMoment;e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now(),!this.hasSameYear(t,this._pickerMoment)&&this.initiated&&this.generateMonthList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this.initiated&&this.generateMonthList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDate=this.getValidDate(e),this.initiated&&this.generateMonthList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDate=this.getValidDate(e),this.initiated&&this.generateMonthList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"months",{get:function(){return this._months},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeCell",{get:function(){if(this._pickerMoment)return this.dateTimeAdapter.getMonth(this._pickerMoment)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTCalendarView",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.localeSub=this.dateTimeAdapter.localeChanges.subscribe((function(){e.generateMonthList(),e.cdRef.markForCheck()}))},e.prototype.ngAfterContentInit=function(){this.generateMonthList(),this.initiated=!0},e.prototype.ngOnDestroy=function(){this.localeSub.unsubscribe()},e.prototype.selectCalendarCell=function(e){this.selectMonth(e.value)},e.prototype.selectMonth=function(e){var t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,1);this.monthSelected.emit(t);var i=this.dateTimeAdapter.getNumDaysInMonth(t),n=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,Math.min(i,this.dateTimeAdapter.getDate(this.pickerMoment)),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment));this.change.emit(n)},e.prototype.handleCalendarKeydown=function(e){var t;switch(e.keyCode){case s.LEFT_ARROW:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1),this.pickerMomentChange.emit(t);break;case s.RIGHT_ARROW:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1),this.pickerMomentChange.emit(t);break;case s.UP_ARROW:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-3),this.pickerMomentChange.emit(t);break;case s.DOWN_ARROW:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,3),this.pickerMomentChange.emit(t);break;case s.HOME:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-this.dateTimeAdapter.getMonth(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case s.END:t=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,11-this.dateTimeAdapter.getMonth(this.pickerMoment)),this.pickerMomentChange.emit(t);break;case s.PAGE_UP:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?-10:-1),this.pickerMomentChange.emit(t);break;case s.PAGE_DOWN:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?10:1),this.pickerMomentChange.emit(t);break;case s.ENTER:this.selectMonth(this.dateTimeAdapter.getMonth(this.pickerMoment)),this.keyboardEnter.emit();break;default:return}this.focusActiveCell(),e.preventDefault()},e.prototype.generateMonthList=function(){if(this.pickerMoment){this.setSelectedMonths(),this.todayMonth=this.getMonthInCurrentYear(this.dateTimeAdapter.now()),this._months=[];for(var e=0;e<4;e++){for(var t=[],i=0;i<3;i++){var n=i+3*e,r=this.createMonthCell(n);t.push(r)}this._months.push(t)}}},e.prototype.createMonthCell=function(e){var t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,1),i=this.dateTimeAdapter.format(t,this.dateTimeFormats.monthYearA11yLabel),n="owl-dt-month-"+e;return new X(e,this.monthNames[e],i,this.isMonthEnabled(e),!1,n)},e.prototype.isMonthEnabled=function(e){for(var t=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),e,1);this.dateTimeAdapter.getMonth(t)===e;t=this.dateTimeAdapter.addCalendarDays(t,1))if(t&&(!this.dateFilter||this.dateFilter(t))&&(!this.minDate||this.dateTimeAdapter.compare(t,this.minDate)>=0)&&(!this.maxDate||this.dateTimeAdapter.compare(t,this.maxDate)<=0))return!0;return!1},e.prototype.getMonthInCurrentYear=function(e){if(this.getValidDate(e)&&this.getValidDate(this._pickerMoment)){var t=this.dateTimeAdapter.compareYear(e,this._pickerMoment);return t<0?-1:t>0?12:this.dateTimeAdapter.getMonth(e)}return null},e.prototype.setSelectedMonths=function(){this.selectedMonths=[],this.isInSingleMode&&this.selected&&(this.selectedMonths[0]=this.getMonthInCurrentYear(this.selected)),this.isInRangeMode&&this.selecteds&&(this.selectedMonths[0]=this.getMonthInCurrentYear(this.selecteds[0]),this.selectedMonths[1]=this.getMonthInCurrentYear(this.selecteds[1]))},e.prototype.hasSameYear=function(e,t){return!(!e||!t||this.dateTimeAdapter.getYear(e)!==this.dateTimeAdapter.getYear(t))},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e.prototype.focusActiveCell=function(){this.calendarBodyElm.focusActiveCell()},e}();function te(){return ne.create()}function ie(e){return e.multiYear}ee.decorators=[{type:t.Component,args:[{selector:"owl-date-time-year-view",exportAs:"owlMonthView",template:'<table class="owl-dt-calendar-table owl-dt-calendar-year-table">\n    <thead class="owl-dt-calendar-header">\n    <tr>\n        <th class="owl-dt-calendar-table-divider" aria-hidden="true" colspan="3"></th>\n    </tr>\n    </thead>\n    <tbody owl-date-time-calendar-body role="grid"\n           [rows]="months" [numCols]="3" [cellRatio]="3 / 7"\n           [activeCell]="activeCell"\n           [todayValue]="todayMonth"\n           [selectedValues]="selectedMonths"\n           [selectMode]="selectMode"\n           (keydown)="handleCalendarKeydown($event)"\n           (select)="selectCalendarCell($event)">\n    </tbody>\n</table>\n',host:{"[class.owl-dt-calendar-view]":"owlDTCalendarView"},preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],ee.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:A,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[O]}]}]},ee.propDecorators={selectMode:[{type:t.Input}],selected:[{type:t.Input}],selecteds:[{type:t.Input}],pickerMoment:[{type:t.Input}],dateFilter:[{type:t.Input}],minDate:[{type:t.Input}],maxDate:[{type:t.Input}],change:[{type:t.Output}],monthSelected:[{type:t.Output}],pickerMomentChange:[{type:t.Output}],keyboardEnter:[{type:t.Output}],calendarBodyElm:[{type:t.ViewChild,args:[J,{static:!0}]}]};var ne=function(){function e(){}return e.create=function(){return{multiYear:{yearRows:7,yearsPerRow:3}}},e}(),re=function(){};re.all=new t.InjectionToken("All options token"),re.multiYear=new t.InjectionToken("Grid view options token");var ae=[{provide:re.all,useFactory:te},{provide:re.multiYear,useFactory:ie,deps:[re.all]}],oe=function(){function e(e,i,n,r){this.cdRef=e,this.pickerIntl=i,this.dateTimeAdapter=n,this.options=r,this._selectMode="single",this._selecteds=[],this.initiated=!1,this.change=new t.EventEmitter,this.yearSelected=new t.EventEmitter,this.pickerMomentChange=new t.EventEmitter,this.keyboardEnter=new t.EventEmitter}return Object.defineProperty(e.prototype,"selectMode",{get:function(){return this._selectMode},set:function(e){this._selectMode=e,this.initiated&&(this.setSelectedYears(),this.cdRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){var t=this._selected;e=this.dateTimeAdapter.deserialize(e),this._selected=this.getValidDate(e),this.dateTimeAdapter.isSameDay(t,this._selected)||this.setSelectedYears()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){var t=this;this._selecteds=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),t.getValidDate(e)})),this.setSelectedYears()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(e){var t=this._pickerMoment;e=this.dateTimeAdapter.deserialize(e),this._pickerMoment=this.getValidDate(e)||this.dateTimeAdapter.now(),t&&this._pickerMoment&&!this.isSameYearList(t,this._pickerMoment)&&this.generateYearList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this.initiated&&this.generateYearList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._minDate=this.getValidDate(e),this.initiated&&this.generateYearList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){e=this.dateTimeAdapter.deserialize(e),this._maxDate=this.getValidDate(e),this.initiated&&this.generateYearList()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todayYear",{get:function(){return this._todayYear},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"years",{get:function(){return this._years},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedYears",{get:function(){return this._selectedYears},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeCell",{get:function(){if(this._pickerMoment)return this.dateTimeAdapter.getYear(this._pickerMoment)%(this.options.yearsPerRow*this.options.yearRows)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableHeader",{get:function(){if(this._years&&this._years.length>0)return this._years[0][0].displayValue+" - "+this._years[this.options.yearRows-1][this.options.yearsPerRow-1].displayValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevButtonLabel",{get:function(){return this.pickerIntl.prevMultiYearLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextButtonLabel",{get:function(){return this.pickerIntl.nextMultiYearLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTCalendarView",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTCalendarMultiYearView",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){this._todayYear=this.dateTimeAdapter.getYear(this.dateTimeAdapter.now()),this.generateYearList(),this.initiated=!0},e.prototype.selectCalendarCell=function(e){this.selectYear(e.value)},e.prototype.selectYear=function(e){this.yearSelected.emit(this.dateTimeAdapter.createDate(e,0,1));var t=this.dateTimeAdapter.createDate(e,this.dateTimeAdapter.getMonth(this.pickerMoment),1),i=this.dateTimeAdapter.getNumDaysInMonth(t),n=this.dateTimeAdapter.createDate(e,this.dateTimeAdapter.getMonth(this.pickerMoment),Math.min(i,this.dateTimeAdapter.getDate(this.pickerMoment)),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment));this.change.emit(n)},e.prototype.prevYearList=function(e){this._pickerMoment=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1*this.options.yearsPerRow*this.options.yearRows),this.generateYearList(),e.preventDefault()},e.prototype.nextYearList=function(e){this._pickerMoment=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,this.options.yearsPerRow*this.options.yearRows),this.generateYearList(),e.preventDefault()},e.prototype.generateYearList=function(){this._years=[];for(var e=this.dateTimeAdapter.getYear(this._pickerMoment),t=e%(this.options.yearsPerRow*this.options.yearRows),i=0;i<this.options.yearRows;i++){for(var n=[],r=0;r<this.options.yearsPerRow;r++){var a=e-t+(r+i*this.options.yearsPerRow),o=this.createYearCell(a);n.push(o)}this._years.push(n)}},e.prototype.previousEnabled=function(){return!this.minDate||(!this.minDate||!this.isSameYearList(this._pickerMoment,this.minDate))},e.prototype.nextEnabled=function(){return!this.maxDate||!this.isSameYearList(this._pickerMoment,this.maxDate)},e.prototype.handleCalendarKeydown=function(e){var t;switch(e.keyCode){case s.LEFT_ARROW:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-1),this.pickerMomentChange.emit(t);break;case s.RIGHT_ARROW:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,1),this.pickerMomentChange.emit(t);break;case s.UP_ARROW:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-1*this.options.yearsPerRow),this.pickerMomentChange.emit(t);break;case s.DOWN_ARROW:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,this.options.yearsPerRow),this.pickerMomentChange.emit(t);break;case s.HOME:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-this.dateTimeAdapter.getYear(this._pickerMoment)%(this.options.yearsPerRow*this.options.yearRows)),this.pickerMomentChange.emit(t);break;case s.END:t=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,this.options.yearsPerRow*this.options.yearRows-this.dateTimeAdapter.getYear(this._pickerMoment)%(this.options.yearsPerRow*this.options.yearRows)-1),this.pickerMomentChange.emit(t);break;case s.PAGE_UP:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?this.options.yearsPerRow*this.options.yearRows*-10:this.options.yearsPerRow*this.options.yearRows*-1),this.pickerMomentChange.emit(t);break;case s.PAGE_DOWN:t=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,e.altKey?this.options.yearsPerRow*this.options.yearRows*10:this.options.yearsPerRow*this.options.yearRows),this.pickerMomentChange.emit(t);break;case s.ENTER:this.selectYear(this.dateTimeAdapter.getYear(this._pickerMoment)),this.keyboardEnter.emit();break;default:return}this.focusActiveCell(),e.preventDefault()},e.prototype.createYearCell=function(e){var t=this.dateTimeAdapter.createDate(e,0,1),i=this.dateTimeAdapter.getYearName(t),n="owl-dt-year-"+e;return new X(e,e.toString(),i,this.isYearEnabled(e),!1,n)},e.prototype.setSelectedYears=function(){var e=this;this._selectedYears=[],this.isInSingleMode&&this.selected&&(this._selectedYears[0]=this.dateTimeAdapter.getYear(this.selected)),this.isInRangeMode&&this.selecteds&&(this._selectedYears=this.selecteds.map((function(t){return e.dateTimeAdapter.isValid(t)?e.dateTimeAdapter.getYear(t):null})))},e.prototype.isYearEnabled=function(e){if(null==e||this.maxDate&&e>this.dateTimeAdapter.getYear(this.maxDate)||this.minDate&&e<this.dateTimeAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var t=this.dateTimeAdapter.createDate(e,0,1);this.dateTimeAdapter.getYear(t)===e;t=this.dateTimeAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1},e.prototype.isSameYearList=function(e,t){return Math.floor(this.dateTimeAdapter.getYear(e)/(this.options.yearsPerRow*this.options.yearRows))===Math.floor(this.dateTimeAdapter.getYear(t)/(this.options.yearsPerRow*this.options.yearRows))},e.prototype.getValidDate=function(e){return this.dateTimeAdapter.isDateInstance(e)&&this.dateTimeAdapter.isValid(e)?e:null},e.prototype.focusActiveCell=function(){this.calendarBodyElm.focusActiveCell()},e}();oe.decorators=[{type:t.Component,args:[{selector:"owl-date-time-multi-year-view",template:'<button class="owl-dt-control-button owl-dt-control-arrow-button"\n        [disabled]="!previousEnabled()" [attr.aria-label]="prevButtonLabel"\n        type="button" tabindex="0" (click)="prevYearList($event)">\n    <span class="owl-dt-control-button-content" tabindex="-1">\n        \x3c!-- <editor-fold desc="SVG Arrow Left"> --\x3e\n    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n             version="1.1" x="0px" y="0px" viewBox="0 0 250.738 250.738"\n             style="enable-background:new 0 0 250.738 250.738;" xml:space="preserve"\n             width="100%" height="100%">\n            <path style="fill-rule: evenodd; clip-rule: evenodd;" d="M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546   c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681   l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z"/>\n        </svg>\n        \x3c!-- </editor-fold> --\x3e\n    </span>\n</button>\n<table class="owl-dt-calendar-table owl-dt-calendar-multi-year-table">\n    <thead class="owl-dt-calendar-header">\n    <tr>\n        <th colspan="3">{{tableHeader}}</th>\n    </tr>\n    </thead>\n    <tbody owl-date-time-calendar-body role="grid"\n           [rows]="years" [numCols]="3" [cellRatio]="3 / 7"\n           [activeCell]="activeCell"\n           [todayValue]="todayYear"\n           [selectedValues]="selectedYears"\n           [selectMode]="selectMode"\n           (keydown)="handleCalendarKeydown($event)"\n           (select)="selectCalendarCell($event)"></tbody>\n</table>\n<button class="owl-dt-control-button owl-dt-control-arrow-button"\n        [disabled]="!nextEnabled()" [attr.aria-label]="nextButtonLabel"\n        type="button" tabindex="0" (click)="nextYearList($event)">\n    <span class="owl-dt-control-button-content" tabindex="-1">\n        \x3c!-- <editor-fold desc="SVG Arrow Right"> --\x3e\n    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n             viewBox="0 0 250.738 250.738" style="enable-background:new 0 0 250.738 250.738;" xml:space="preserve">\n            <path style="fill-rule:evenodd;clip-rule:evenodd;" d="M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n                c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n                c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n                C197.237,120.447,195.534,115.448,191.75,111.689z"/>\n        </svg>\n        \x3c!-- </editor-fold> --\x3e\n    </span>\n</button>\n',host:{"[class.owl-dt-calendar-view]":"owlDTCalendarView","[class.owl-dt-calendar-multi-year-view]":"owlDTCalendarMultiYearView"},preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],oe.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:T},{type:A,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[re.multiYear]}]}]},oe.propDecorators={selectMode:[{type:t.Input}],selected:[{type:t.Input}],selecteds:[{type:t.Input}],pickerMoment:[{type:t.Input}],dateFilter:[{type:t.Input}],minDate:[{type:t.Input}],maxDate:[{type:t.Input}],change:[{type:t.Output}],yearSelected:[{type:t.Output}],pickerMomentChange:[{type:t.Output}],keyboardEnter:[{type:t.Output}],calendarBodyElm:[{type:t.ViewChild,args:[J,{static:!0}]}]};var se=function(){function e(){this.showDivider=!1,this.step=1,this.valueChange=new t.EventEmitter,this.inputChange=new t.EventEmitter,this.inputStream=new a.Subject,this.inputStreamSub=a.Subscription.EMPTY,this.hasFocus=!1,this.onValueInputMouseWheelBind=this.onValueInputMouseWheel.bind(this)}return Object.defineProperty(e.prototype,"displayValue",{get:function(){if(this.hasFocus)return this.valueInput.nativeElement.value;var e=this.boxValue||this.value;return null===e||isNaN(e)?"":e<10?"0"+e.toString():e.toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"owlDTTimerBoxClass",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.inputStreamSub=this.inputStream.subscribe((function(t){if(t){var i=l.coerceNumberProperty(t,0);e.updateValueViaInput(i)}})),this.bindValueInputMouseWheel()},e.prototype.ngOnDestroy=function(){this.unbindValueInputMouseWheel(),this.inputStreamSub.unsubscribe()},e.prototype.upBtnClicked=function(){this.updateValue(this.value+this.step)},e.prototype.downBtnClicked=function(){this.updateValue(this.value-this.step)},e.prototype.handleInputChange=function(e){this.inputStream.next(e)},e.prototype.focusIn=function(){this.hasFocus=!0},e.prototype.focusOut=function(e){if(this.hasFocus=!1,e){var t=l.coerceNumberProperty(e,0);this.updateValueViaInput(t)}},e.prototype.updateValue=function(e){this.valueChange.emit(e)},e.prototype.updateValueViaInput=function(e){e>this.max||e<this.min||this.inputChange.emit(e)},e.prototype.onValueInputMouseWheel=function(e){var t=(e=e||window.event).wheelDelta||-e.deltaY||-e.detail;t>0?this.upBtnDisabled||this.upBtnClicked():t<0&&(this.downBtnDisabled||this.downBtnClicked()),e.preventDefault?e.preventDefault():e.returnValue=!1},e.prototype.bindValueInputMouseWheel=function(){this.valueInput.nativeElement.addEventListener("onwheel"in document?"wheel":"mousewheel",this.onValueInputMouseWheelBind)},e.prototype.unbindValueInputMouseWheel=function(){this.valueInput.nativeElement.removeEventListener("onwheel"in document?"wheel":"mousewheel",this.onValueInputMouseWheelBind)},e}();se.decorators=[{type:t.Component,args:[{exportAs:"owlDateTimeTimerBox",selector:"owl-date-time-timer-box",template:'<div *ngIf="showDivider" class="owl-dt-timer-divider" aria-hidden="true"></div>\n<button class="owl-dt-control-button owl-dt-control-arrow-button"\n        type="button" tabindex="-1"\n        [disabled]="upBtnDisabled"\n        [attr.aria-label]="upBtnAriaLabel"\n        (click)="upBtnClicked()">\n    <span class="owl-dt-control-button-content" tabindex="-1">\n        \x3c!-- <editor-fold desc="SVG Arrow Up"> --\x3e\n    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n                 version="1.1" x="0px" y="0px" viewBox="0 0 451.847 451.846"\n                 style="enable-background:new 0 0 451.847 451.846;" xml:space="preserve"\n                 width="100%" height="100%">\n                    <path d="M248.292,106.406l194.281,194.29c12.365,12.359,12.365,32.391,0,44.744c-12.354,12.354-32.391,12.354-44.744,0\n                        L225.923,173.529L54.018,345.44c-12.36,12.354-32.395,12.354-44.748,0c-12.359-12.354-12.359-32.391,0-44.75L203.554,106.4\n                        c6.18-6.174,14.271-9.259,22.369-9.259C234.018,97.141,242.115,100.232,248.292,106.406z"/>\n                </svg>\n        \x3c!-- </editor-fold> --\x3e\n    </span>\n</button>\n<label class="owl-dt-timer-content">\n    <input class="owl-dt-timer-input" maxlength="2"\n           [value]="displayValue"\n           (keydown.arrowup)="!upBtnDisabled && upBtnClicked()"\n           (keydown.arrowdown)="!downBtnDisabled && downBtnClicked()"\n           (input)="handleInputChange(valueInput.value)"\n           (focusin)="focusIn()"\n           (focusout)="focusOut(valueInput.value)"\n           #valueInput>\n    <span class="owl-hidden-accessible">{{inputLabel}}</span>\n</label>\n<button class="owl-dt-control-button owl-dt-control-arrow-button"\n        type="button" tabindex="-1"\n        [disabled]="downBtnDisabled"\n        [attr.aria-label]="downBtnAriaLabel"\n        (click)="downBtnClicked()">\n    <span class="owl-dt-control-button-content" tabindex="-1">\n        \x3c!-- <editor-fold desc="SVG Arrow Down"> --\x3e\n    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n                 version="1.1" x="0px" y="0px" viewBox="0 0 451.847 451.846"\n                 style="enable-background:new 0 0 451.847 451.846;" xml:space="preserve"\n                 width="100%" height="100%">\n                    <path d="M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751\n                        c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0\n                        c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"/>\n                </svg>\n        \x3c!-- </editor-fold> --\x3e\n    </span>\n</button>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{"[class.owl-dt-timer-box]":"owlDTTimerBoxClass"},styles:[""]}]}],se.ctorParameters=function(){return[]},se.propDecorators={showDivider:[{type:t.Input}],upBtnAriaLabel:[{type:t.Input}],upBtnDisabled:[{type:t.Input}],downBtnAriaLabel:[{type:t.Input}],downBtnDisabled:[{type:t.Input}],boxValue:[{type:t.Input}],value:[{type:t.Input}],min:[{type:t.Input}],max:[{type:t.Input}],step:[{type:t.Input}],inputLabel:[{type:t.Input}],valueChange:[{type:t.Output}],inputChange:[{type:t.Output}],valueInput:[{type:t.ViewChild,args:["valueInput",{static:!0}]}]};var le=function(){function e(){}return e.prototype.transform=function(e,t){var i=Math.floor(e),n=Math.floor(t);if(null===e||isNaN(i)||isNaN(n))return e;for(var r=i.toString();r.length<n;)r="0"+r;return r},e}();le.decorators=[{type:t.Pipe,args:[{name:"numberFixedLen"}]}];var ce={provide:p.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return de})),multi:!0},de=function(e){function i(i,n,r){var a=e.call(this,n,r)||this;return a.changeDetector=i,a.dateTimeAdapter=n,a.dateTimeFormats=r,a._pickerType="both",a._disabled=!1,a._selectMode="single",a._values=[],a.yearSelected=new t.EventEmitter,a.monthSelected=new t.EventEmitter,a.dateSelected=new t.EventEmitter,a._selecteds=[],a._dateClasses=[],a._activeDates=[],a.onModelChange=function(){},a.onModelTouched=function(){},a}return y(i,e),Object.defineProperty(i.prototype,"pickerType",{get:function(){return this._pickerType},set:function(e){e!==this._pickerType&&(this._pickerType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"disabled",{get:function(){return!!this._disabled},set:function(e){this._disabled=l.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectMode",{get:function(){return this._selectMode},set:function(e){if("single"!==e&&"range"!==e&&"rangeFrom"!==e&&"rangeTo"!==e)throw Error("OwlDateTime Error: invalid selectMode value!");this._selectMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"startAt",{get:function(){return this._startAt?this._startAt:"single"===this.selectMode?this.value||null:"range"===this.selectMode||"rangeFrom"===this.selectMode?this.values[0]||null:"rangeTo"===this.selectMode&&this.values[1]||null},set:function(e){this._startAt=this.getValidDate(this.dateTimeAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"endAt",{get:function(){return this._endAt?this._endAt:"single"===this.selectMode?this.value||null:("range"===this.selectMode||"rangeFrom"===this.selectMode)&&this.values[1]||null},set:function(e){this._endAt=this.getValidDate(this.dateTimeAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dateTimeFilter",{get:function(){return this._dateTimeFilter},set:function(e){this._dateTimeFilter=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"minDateTime",{get:function(){return this._min||null},set:function(e){this._min=this.getValidDate(this.dateTimeAdapter.deserialize(e)),this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxDateTime",{get:function(){return this._max||null},set:function(e){this._max=this.getValidDate(this.dateTimeAdapter.deserialize(e)),this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(e){e=this.dateTimeAdapter.deserialize(e),e=this.getValidDate(e),this._value=e,this.selected=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"values",{get:function(){return this._values},set:function(e){var t=this;e&&e.length>0?(e=e.map((function(e){return e=t.dateTimeAdapter.deserialize(e),(e=t.getValidDate(e))?t.dateTimeAdapter.clone(e):null})),this._values=v(e),this.selecteds=v(e)):(this._values=[],this.selecteds=[])},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e,this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selecteds",{get:function(){return this._selecteds},set:function(e){this._selecteds=e,this.changeDetector.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"opened",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dateClasses",{get:function(){return this._dateClasses},set:function(e){this.container.dateClasses=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"activeDates",{get:function(){return this._activeDates},set:function(e){this.container.activeDates=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pickerMode",{get:function(){return"inline"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isInSingleMode",{get:function(){return"single"===this._selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isInRangeMode",{get:function(){return"range"===this._selectMode||"rangeFrom"===this._selectMode||"rangeTo"===this._selectMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"owlDTInlineClass",{get:function(){return!0},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){this.container.picker=this},i.prototype.writeValue=function(e){this.isInSingleMode?(this.value=e,this.container.pickerMoment=e):(this.values=e,this.container.pickerMoment=this._values[this.container.activeSelectedIndex])},i.prototype.registerOnChange=function(e){this.onModelChange=e},i.prototype.registerOnTouched=function(e){this.onModelTouched=e},i.prototype.setDisabledState=function(e){this.disabled=e},i.prototype.select=function(e){this.disabled||(Array.isArray(e)?this.values=v(e):this.value=e,this.onModelChange(e),this.onModelTouched())},i.prototype.selectYear=function(e){this.yearSelected.emit(e)},i.prototype.selectMonth=function(e){this.monthSelected.emit(e)},i.prototype.selectDate=function(e){this.dateSelected.emit(e)},i}(_);de.decorators=[{type:t.Component,args:[{selector:"owl-date-time-inline",template:"<owl-date-time-container></owl-date-time-container>",host:{"[class.owl-dt-inline]":"owlDTInlineClass"},changeDetection:t.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1,providers:[ce],styles:[""]}]}],de.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:A,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[O]}]}]},de.propDecorators={container:[{type:t.ViewChild,args:[E,{static:!0}]}],pickerType:[{type:t.Input}],disabled:[{type:t.Input}],selectMode:[{type:t.Input}],startAt:[{type:t.Input}],endAt:[{type:t.Input}],dateTimeFilter:[{type:t.Input,args:["owlDateTimeFilter"]}],minDateTime:[{type:t.Input,args:["min"]}],maxDateTime:[{type:t.Input,args:["max"]}],value:[{type:t.Input}],values:[{type:t.Input}],yearSelected:[{type:t.Output}],monthSelected:[{type:t.Output}],dateSelected:[{type:t.Output}],dateClasses:[{type:t.Input}],activeDates:[{type:t.Input}]};var pe=function(){};pe.decorators=[{type:t.NgModule,args:[{imports:[i.CommonModule,n.A11yModule,r.OverlayModule,o.PortalModule],exports:[],declarations:[Y],providers:[B,H],entryComponents:[Y]}]}];var ue=function(){};function he(e,t){for(var i=Array(e),n=0;n<e;n++)i[n]=t(n);return i}function me(e,t,i,n,r,a){if(void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=0),t<0||t>11)throw Error('Invalid month index "'+t+'". Month index has to be between 0 and 11.');if(i<1)throw Error('Invalid date "'+i+'". Date has to be greater than 0.');if(n<0||n>23)throw Error('Invalid hours "'+n+'". Hours has to be between 0 and 23.');if(r<0||r>59)throw Error('Invalid minutes "'+r+'". Minutes has to between 0 and 59.');if(a<0||a>59)throw Error('Invalid seconds "'+a+'". Seconds has to be between 0 and 59.');var o=ye(e,t,i,n,r,a);if(o.getMonth()!==t)throw Error('Invalid date "'+i+'" for month with index "'+t+'".');return o}function fe(e){return ye(e.getFullYear(),e.getMonth()+1,0).getDate()}function ye(e,t,i,n,r,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=0);var o=new Date(e,t,i,n,r,a);return e>=0&&e<100&&o.setFullYear(o.getFullYear()-1900),o}ue.decorators=[{type:t.NgModule,args:[{imports:[i.CommonModule,r.OverlayModule,pe,n.A11yModule],exports:[S,P,w,K,G,de,oe,ee,Q],declarations:[w,K,G,E,oe,ee,Q,P,se,S,J,le,de],providers:v([T,q],ae),entryComponents:[E]}]}];var ge="undefined"!=typeof Intl,be={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},ve={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},we=he(31,(function(e){return String(e+1)})),Te=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:[+\-]\d{2}:\d{2}))?)?$/,De=function(e){function t(t,i){var n=e.call(this)||this;return n.owlDateTimeLocale=t,e.prototype.setLocale.call(n,t),n.useUtcForDisplay=!i.TRIDENT,n._clampDate=i.TRIDENT||i.EDGE,n}return y(t,e),t.prototype.getYear=function(e){return e.getFullYear()},t.prototype.getMonth=function(e){return e.getMonth()},t.prototype.getDay=function(e){return e.getDay()},t.prototype.getDate=function(e){return e.getDate()},t.prototype.getHours=function(e){return e.getHours()},t.prototype.getMinutes=function(e){return e.getMinutes()},t.prototype.getSeconds=function(e){return e.getSeconds()},t.prototype.getTime=function(e){return e.getTime()},t.prototype.getNumDaysInMonth=function(e){return fe(e)},t.prototype.differenceInCalendarDays=function(e,t){if(this.isValid(e)&&this.isValid(t)){var i=this.createDate(this.getYear(e),this.getMonth(e),this.getDate(e)),n=this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t)),r=this.getTime(i)-i.getTimezoneOffset()*this.milliseondsInMinute,a=this.getTime(n)-n.getTimezoneOffset()*this.milliseondsInMinute;return Math.round((r-a)/this.millisecondsInDay)}return null},t.prototype.getYearName=function(e){if(ge){var t=new Intl.DateTimeFormat(this.getLocale(),{year:"numeric",timeZone:"utc"});return this.stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))},t.prototype.getMonthNames=function(e){var t=this;if(ge){var i=new Intl.DateTimeFormat(this.getLocale(),{month:e,timeZone:"utc"});return he(12,(function(e){return t.stripDirectionalityCharacters(t._format(i,new Date(2017,e,1)))}))}return be[e]},t.prototype.getDayOfWeekNames=function(e){var t=this;if(ge){var i=new Intl.DateTimeFormat(this.getLocale(),{weekday:e,timeZone:"utc"});return he(7,(function(e){return t.stripDirectionalityCharacters(t._format(i,new Date(2017,0,e+1)))}))}return ve[e]},t.prototype.getDateNames=function(){var e=this;if(ge){var t=new Intl.DateTimeFormat(this.getLocale(),{day:"numeric",timeZone:"utc"});return he(31,(function(i){return e.stripDirectionalityCharacters(e._format(t,new Date(2017,0,i+1)))}))}return we},t.prototype.toIso8601=function(e){return e.toISOString()},t.prototype.isEqual=function(e,t){return!(!this.isValid(e)||!this.isValid(t))&&e.getTime()===t.getTime()},t.prototype.isSameDay=function(e,t){if(this.isValid(e)&&this.isValid(t)){var i=this.clone(e),n=this.clone(t);return i.setHours(0,0,0,0),n.setHours(0,0,0,0),i.getTime()===n.getTime()}return!1},t.prototype.isValid=function(e){return e&&!isNaN(e.getTime())},t.prototype.invalid=function(){return new Date(NaN)},t.prototype.isDateInstance=function(e){return e instanceof Date},t.prototype.addCalendarYears=function(e,t){return this.addCalendarMonths(e,12*t)},t.prototype.addCalendarMonths=function(e,t){var i=this.clone(e);t=Number(t);var n=i.getMonth()+t,r=new Date(0);r.setFullYear(i.getFullYear(),n,1),r.setHours(0,0,0,0);var a=this.getNumDaysInMonth(r);return i.setMonth(n,Math.min(a,i.getDate())),i},t.prototype.addCalendarDays=function(e,t){var i=this.clone(e);return t=Number(t),i.setDate(i.getDate()+t),i},t.prototype.setHours=function(e,t){var i=this.clone(e);return i.setHours(t),i},t.prototype.setMinutes=function(e,t){var i=this.clone(e);return i.setMinutes(t),i},t.prototype.setSeconds=function(e,t){var i=this.clone(e);return i.setSeconds(t),i},t.prototype.createDate=function(e,t,i,n,r,a){return void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=0),me(e,t,i,n,r,a)},t.prototype.clone=function(e){return this.createDate(this.getYear(e),this.getMonth(e),this.getDate(e),this.getHours(e),this.getMinutes(e),this.getSeconds(e))},t.prototype.now=function(){return new Date},t.prototype.format=function(e,t){if(!this.isValid(e))throw Error("JSNativeDate: Cannot format invalid date.");if(ge){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.getLocale(),t);return this.stripDirectionalityCharacters(this._format(i,e))}return this.stripDirectionalityCharacters(e.toDateString())},t.prototype.parse=function(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null},t.prototype.deserialize=function(t){if("string"==typeof t){if(!t)return null;if(Te.test(t)){var i=new Date(t);if(this.isValid(i))return i}}return e.prototype.deserialize.call(this,t)},t.prototype.stripDirectionalityCharacters=function(e){return e.replace(/[\u200e\u200f]/g,"")},t.prototype._format=function(e,t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.format(i)},t}(A);De.decorators=[{type:t.Injectable}],De.ctorParameters=function(){return[{type:String,decorators:[{type:t.Optional},{type:t.Inject,args:[D]}]},{type:u.Platform}]};var Me={parseInput:null,fullPickerInput:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},datePickerInput:{year:"numeric",month:"numeric",day:"numeric"},timePickerInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}},ke=function(){};ke.decorators=[{type:t.NgModule,args:[{imports:[u.PlatformModule],providers:[{provide:A,useClass:De}]}]}];var Ce=Me,Ae=function(){};Ae.decorators=[{type:t.NgModule,args:[{imports:[ke],providers:[{provide:O,useValue:Ce}]}]}];var Oe=m||h,Ie=new t.InjectionToken("OWL_MOMENT_DATE_TIME_ADAPTER_OPTIONS",{providedIn:"root",factory:_e});function _e(){return{useUtc:!1,parseStrict:!1}}function Se(e,t){for(var i=Array(e),n=0;n<e;n++)i[n]=t(n);return i}var Pe=function(e){function t(t,i){var n=e.call(this)||this;return n.owlDateTimeLocale=t,n.options=i,n.setLocale(t||Oe.locale()),n}return y(t,e),t.prototype.setLocale=function(t){var i=this;e.prototype.setLocale.call(this,t);var n=Oe.localeData(t);this._localeData={longMonths:n.months(),shortMonths:n.monthsShort(),longDaysOfWeek:n.weekdays(),shortDaysOfWeek:n.weekdaysShort(),narrowDaysOfWeek:n.weekdaysMin(),dates:Se(31,(function(e){return i.createDate(2017,0,e+1).format("D")}))}},t.prototype.getYear=function(e){return this.clone(e).year()},t.prototype.getMonth=function(e){return this.clone(e).month()},t.prototype.getDay=function(e){return this.clone(e).day()},t.prototype.getDate=function(e){return this.clone(e).date()},t.prototype.getHours=function(e){return this.clone(e).hours()},t.prototype.getMinutes=function(e){return this.clone(e).minutes()},t.prototype.getSeconds=function(e){return this.clone(e).seconds()},t.prototype.getTime=function(e){return this.clone(e).valueOf()},t.prototype.getNumDaysInMonth=function(e){return this.clone(e).daysInMonth()},t.prototype.differenceInCalendarDays=function(e,t){return this.clone(e).diff(t,"days")},t.prototype.getYearName=function(e){return this.clone(e).format("YYYY")},t.prototype.getMonthNames=function(e){return"long"===e?this._localeData.longMonths:this._localeData.shortMonths},t.prototype.getDayOfWeekNames=function(e){return"long"===e?this._localeData.longDaysOfWeek:"short"===e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek},t.prototype.getDateNames=function(){return this._localeData.dates},t.prototype.toIso8601=function(e){return this.clone(e).format()},t.prototype.isEqual=function(e,t){return e&&t?this.clone(e).isSame(this.clone(t)):e===t},t.prototype.isSameDay=function(e,t){return e&&t?this.clone(e).isSame(this.clone(t),"day"):e===t},t.prototype.isValid=function(e){return this.clone(e).isValid()},t.prototype.invalid=function(){return Oe.invalid()},t.prototype.isDateInstance=function(e){return Oe.isMoment(e)},t.prototype.addCalendarYears=function(e,t){return this.clone(e).add({years:t})},t.prototype.addCalendarMonths=function(e,t){return this.clone(e).add({months:t})},t.prototype.addCalendarDays=function(e,t){return this.clone(e).add({days:t})},t.prototype.setHours=function(e,t){return this.clone(e).hours(t)},t.prototype.setMinutes=function(e,t){return this.clone(e).minutes(t)},t.prototype.setSeconds=function(e,t){return this.clone(e).seconds(t)},t.prototype.createDate=function(e,t,i,n,r,a){if(void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=0),t<0||t>11)throw Error('Invalid month index "'+t+'". Month index has to be between 0 and 11.');if(i<1)throw Error('Invalid date "'+i+'". Date has to be greater than 0.');if(n<0||n>23)throw Error('Invalid hours "'+n+'". Hours has to be between 0 and 23.');if(r<0||r>59)throw Error('Invalid minutes "'+r+'". Minutes has to between 0 and 59.');if(a<0||a>59)throw Error('Invalid seconds "'+a+'". Seconds has to be between 0 and 59.');var o=this.createMoment({year:e,month:t,date:i,hours:n,minutes:r,seconds:a}).locale(this.getLocale());if(!o.isValid())throw Error('Invalid date "'+i+'" for month with index "'+t+'".');return o},t.prototype.clone=function(e){return this.createMoment(e).clone().locale(this.getLocale())},t.prototype.now=function(){return this.createMoment().locale(this.getLocale())},t.prototype.format=function(e,t){if(e=this.clone(e),!this.isValid(e))throw Error("MomentDateTimeAdapter: Cannot format invalid date.");return e.format(t)},t.prototype.parse=function(e,t){return e&&"string"==typeof e?this.createMoment(e,t,this.getLocale(),this.parseStrict):e?this.createMoment(e).locale(this.getLocale()):null},Object.defineProperty(t.prototype,"parseStrict",{get:function(){return this.options&&this.options.parseStrict},enumerable:!1,configurable:!0}),t.prototype.deserialize=function(t){var i;if(t instanceof Date&&(i=this.createMoment(t)),"string"==typeof t){if(!t)return null;i=this.createMoment(t,Oe.ISO_8601,this.parseStrict).locale(this.getLocale())}return i&&this.isValid(i)?i:e.prototype.deserialize.call(this,t)},t.prototype.createMoment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.options&&this.options.useUtc?Oe.utc.apply(Oe,v(e)):Oe.apply(void 0,v(e))},t}(A);Pe.decorators=[{type:t.Injectable}],Pe.ctorParameters=function(){return[{type:String,decorators:[{type:t.Optional},{type:t.Inject,args:[D]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Ie]}]}]};var xe=function(e){function t(t,i){var n=e.call(this)||this;return n.owlDateTimeLocale=t,e.prototype.setLocale.call(n,t),n.useUtcForDisplay=!i.TRIDENT,n._clampDate=i.TRIDENT||i.EDGE,n}return y(t,e),t.stripDirectionalityCharacters=function(e){return e.replace(t.search_ltr_rtl_pattern,"")},t._format=function(e,t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.format(i)},t.prototype.addCalendarDays=function(e,t){var i=new Date(e);return t=Number(t),i.setDate(i.getDate()+t),i.getTime()},t.prototype.addCalendarMonths=function(e,t){var i=new Date(e);t=Number(t);var n=i.getMonth()+t,r=new Date(0);r.setFullYear(i.getFullYear(),n,1),r.setHours(0,0,0,0);var a=this.getNumDaysInMonth(r.getTime());return i.setMonth(n,Math.min(a,i.getDate())),i.getTime()},t.prototype.addCalendarYears=function(e,t){return this.addCalendarMonths(e,12*t)},t.prototype.clone=function(e){return e},t.prototype.createDate=function(e,t,i,n,r,a){return void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=0),me(e,t,i,n,r,a).getTime()},t.prototype.differenceInCalendarDays=function(e,t){if(this.isValid(e)&&this.isValid(t)){var i=this.createDate(this.getYear(e),this.getMonth(e),this.getDate(e)),n=this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t)),r=this.getTime(i)-new Date(i).getTimezoneOffset()*this.milliseondsInMinute,a=this.getTime(n)-new Date(n).getTimezoneOffset()*this.milliseondsInMinute;return Math.round((r-a)/this.millisecondsInDay)}return null},t.prototype.format=function(e,i){if(!this.isValid(e))throw Error("JSNativeDate: Cannot format invalid date.");var n=new Date(e);if(ge){this._clampDate&&(n.getFullYear()<1||n.getFullYear()>9999)&&n.setFullYear(Math.max(1,Math.min(9999,n.getFullYear()))),i=Object.assign(Object.assign({},i),{timeZone:"utc"});var r=new Intl.DateTimeFormat(this.locale,i);return t.stripDirectionalityCharacters(t._format(r,n))}return t.stripDirectionalityCharacters(n.toDateString())},t.prototype.getDate=function(e){return new Date(e).getDate()},t.prototype.getDateNames=function(){if(ge){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return he(31,(function(i){return t.stripDirectionalityCharacters(t._format(e,new Date(2017,0,i+1)))}))}return we},t.prototype.getDay=function(e){return new Date(e).getDay()},t.prototype.getDayOfWeekNames=function(e){if(ge){var i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return he(7,(function(e){return t.stripDirectionalityCharacters(t._format(i,new Date(2017,0,e+1)))}))}return ve[e]},t.prototype.getHours=function(e){return new Date(e).getHours()},t.prototype.getMinutes=function(e){return new Date(e).getMinutes()},t.prototype.getMonth=function(e){return new Date(e).getMonth()},t.prototype.getMonthNames=function(e){if(ge){var i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return he(12,(function(e){return t.stripDirectionalityCharacters(t._format(i,new Date(2017,e,1)))}))}return be[e]},t.prototype.getNumDaysInMonth=function(e){return fe(new Date(e))},t.prototype.getSeconds=function(e){return new Date(e).getSeconds()},t.prototype.getTime=function(e){return e},t.prototype.getYear=function(e){return new Date(e).getFullYear()},t.prototype.getYearName=function(e){if(ge){var i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return t.stripDirectionalityCharacters(t._format(i,new Date(e)))}return String(this.getYear(e))},t.prototype.invalid=function(){return NaN},t.prototype.isDateInstance=function(e){return"number"==typeof e},t.prototype.isEqual=function(e,t){return!(!this.isValid(e)||!this.isValid(t))&&e===t},t.prototype.isSameDay=function(e,t){if(this.isValid(e)&&this.isValid(t)){var i=new Date(e),n=new Date(t);return i.setHours(0,0,0,0),n.setHours(0,0,0,0),i.getTime()===n.getTime()}return!1},t.prototype.isValid=function(e){return(e||0===e)&&!isNaN(e)},t.prototype.now=function(){return(new Date).getTime()},t.prototype.parse=function(e,t){return"number"==typeof e?e:e?new Date(Date.parse(e)).getTime():null},t.prototype.setHours=function(e,t){var i=new Date(e);return i.setHours(t),i.getTime()},t.prototype.setMinutes=function(e,t){var i=new Date(e);return i.setMinutes(t),i.getTime()},t.prototype.setSeconds=function(e,t){var i=new Date(e);return i.setSeconds(t),i.getTime()},t.prototype.toIso8601=function(e){return new Date(e).toISOString()},t}(A);xe.search_ltr_rtl_pattern="/[‎‏]/g",xe.decorators=[{type:t.Injectable}],xe.ctorParameters=function(){return[{type:String,decorators:[{type:t.Optional},{type:t.Inject,args:[D]}]},{type:u.Platform}]};var Ee={parseInput:"l LT",fullPickerInput:"l LT",datePickerInput:"l",timePickerInput:"LT",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"},Ve=function(){};Ve.decorators=[{type:t.NgModule,args:[{providers:[{provide:A,useClass:Pe,deps:[D,Ie]}]}]}];var Re=Ee,je=function(){};je.decorators=[{type:t.NgModule,args:[{imports:[Ve],providers:[{provide:O,useValue:Re}]}]}],e.CalendarCell=X,e.DateTimeAdapter=A,e.DefaultOptions=ne,e.MomentDateTimeAdapter=Pe,e.NativeDateTimeAdapter=De,e.OWL_DATETIME_VALIDATORS=U,e.OWL_DATETIME_VALUE_ACCESSOR=Z,e.OWL_DATE_TIME_FORMATS=O,e.OWL_DATE_TIME_LOCALE=D,e.OWL_DATE_TIME_LOCALE_PROVIDER=C,e.OWL_MOMENT_DATE_TIME_ADAPTER_OPTIONS=Ie,e.OWL_UNIX_TIMESTAMP_DATE_TIME_FORMATS={parseInput:null,fullPickerInput:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},datePickerInput:{year:"numeric",month:"numeric",day:"numeric"},timePickerInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}},e.OptionsTokens=re,e.OwlCalendarBodyComponent=J,e.OwlCalendarComponent=S,e.OwlDateTimeComponent=G,e.OwlDateTimeInlineComponent=de,e.OwlDateTimeInputDirective=K,e.OwlDateTimeIntl=T,e.OwlDateTimeModule=ue,e.OwlDateTimeTriggerDirective=w,e.OwlMomentDateTimeModule=je,e.OwlMonthViewComponent=Q,e.OwlMultiYearViewComponent=oe,e.OwlNativeDateTimeModule=Ae,e.OwlTimerComponent=P,e.OwlYearViewComponent=ee,e.UnixTimestampDateTimeAdapter=xe,e.defaultOptionsFactory=te,e.multiYearOptionsFactory=ie,e.optionsProviders=ae,e.ɵa=ke,e.ɵb=M,e.ɵc=_e,e.ɵd=ce,e.ɵe=z,e.ɵf=$,e.ɵg=q,e.ɵh=Ve,e.ɵi=pe,e.ɵj=Y,e.ɵk=F,e.ɵl=N,e.ɵm=B,e.ɵn=W,e.ɵo=H,e.ɵq=_,e.ɵr=E,e.ɵs=x,e.ɵt=se,e.ɵu=le,e.ɵv=Me,e.ɵw=Ee,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=deepuppeds-angular-datetime-picker.umd.min.js.map