import { Component, ViewEncapsulation } from '@angular/core';
import { ControlContainer, NgForm } from '@angular/forms';
import { ProcessService } from '../../../../services/process.service';
import { BsLocaleService } from 'ngx-bootstrap/datepicker';
import { LanguageService } from '../../../../services/language.service';
import { FVControlsAbstractTimeComponent } from '../../../shared/date.component';
/**
 * @Author [GrigoreMe](https://github.com/grigoreme)
 */
export class FVControlsDateComponent extends FVControlsAbstractTimeComponent {
    constructor(process, _localeService, language) {
        super(process, _localeService, language);
    }
    ngAfterViewInit() {
        super.AfterViewInit();
    }
    ngOnDestroy() {
        super.OnDestroy();
    }
}
FVControlsDateComponent.decorators = [
    { type: Component, args: [{
                selector: 'fv-controls-date',
                template: "<div *ngIf=\"control\" class=\"controlBox\" [attr.id]=\"'control-' + control.referenceName\">\n  <i *ngIf=\"buttonsDebug\" (click)=\"debugStatus =! debugStatus\" class=\"fa fa-stethoscope\"></i>\n  <ng-container *ngIf=\"!hideLabel\">\n    <span class=\"controlName\" [attr.id]=\"'label-' + control.referenceName\">{{ control?.label | ltranslate }}</span>\n    <span *ngIf=\"control?.isRequired\" class=\"required\">*</span>\n    <i *ngIf=\"tooltip\" class=\"fa fa-question-circle\" [tooltip]=\"tooltip | ltranslate\" container=\"body\" placement=\"top\"></i>\n  </ng-container>\n  <div *ngIf=\"debugStatus\" [innerText]=\"toString()\"></div>\n  <div class=\"input-group\" #container>\n    <input [attr.id]=\"'input-' + control.referenceName\" type=\"text\" class=\"form-control\" #dp=\"bsDatepicker\"\n      bsDatepicker [disabled]=\"disabled\" [readonly]=\"isReadOnly ? true : null\" [required]=\"control?.isRequired ? true : null\"\n      ngModel [name]=\"control?.key\" [bsConfig]=\"bsDateConfig\" [placeholder]=\"(control.placeholder || '') | ltranslate\"\n      [minDate]=\"minDate\" [maxDate]=\"maxDate\" [placement]=\"placement\">\n    <button [attr.id]=\"'date-' + control.referenceName\" *ngIf=\"!isReadOnly && !disabled\" [ngClass]=\"{'ng-invalid': formControl?.invalid, 'ng-touched': group?.touched, 'ng-dirty': group?.dirty, 'input-group-addon': true}\"\n      id=\"span-addon\" (click)=\"openCalendar(dp)\">\n      <i aria-hidden=\"true\" class=\"fa fa-calendar\"></i>\n    </button>\n  </div>\n  <fv-controls-validator *ngIf=\"group?.controls[control.key]\" [FVFormControl]=\"group?.controls[control.key]\" [group]=\"group\"\n    [control]=\"control\" [task]=\"task\" [tabIndex]=\"tabIndex\"></fv-controls-validator>\n</div>",
                viewProviders: [{ provide: ControlContainer, useExisting: NgForm }],
                encapsulation: ViewEncapsulation.None,
                styles: [".col{display:inline-flex;flex-basis:0;flex-grow:1;max-width:100%;min-width:50%}.col fv-form-tab{display:block;padding:0 5px;width:100%}.col fv-form-tab .controls-row{margin:0;padding:0;width:100%}.col fv-form-tab div{max-width:100%}.columns-0,.columns-1{max-width:100%;min-width:100%;width:100%}.columns-2{max-width:50%;min-width:50%;width:50%}.columns-3{max-width:33.33%;min-width:33.33%;width:33.33%}.columns-4{max-width:25%;min-width:25%;width:25%}.controlBox .input-group{display:inline-flex;margin-top:5px;width:100%}.controlBox>.input-group>button:not(.input-group-addon),.controlBox>.input-group>input,.controlBox>.input-group>select{height:40px!important;padding:10px;width:100%}.controlBox .input-group button.input-group-addon{height:40px;position:relative;width:35px}.controlBox .input-group span.controlName{color:red}.controlBox .input-group button.input-group-addon i{bottom:0;left:0;position:absolute;right:0;top:10px}.has-text-centered,.table,.table thead th{text-align:center}.gridForm{margin:0 0 10px;padding:0;width:100%}.gridForm .input-group>.form-control{border-radius:unset;margin-right:10px;max-width:50%;min-height:45px;min-width:80px}.gridForm .input-group>.addon{background:none;border:none;color:#36c}.grid-table tbody>tr>td{vertical-align:middle}span.required{color:red}form:not(.ng-untouched) .ng-invalid{border:1px solid red}form:not(.ng-untouched) .ng-invalid.input-group-addon{border-left:none!important}span.error-block{color:red}@media screen and (max-width:426px){.columns-2,.columns-3,.columns-4{max-width:100%;min-width:100%;width:100%}}.tree:last-of-type(.accordion){margin:0}select:disabled{background:#eee}navigator-bot,navigator-top{display:flex}fv-menu-folder:last-of-type>accordion:last-of-type{margin:0;padding:0}.button-group>button:not(:last-child):not(:first-child){margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}.fv_container,.fv_container>*,navigator-after,navigator-before{all:inherit!important;padding:0!important}.lookup-form .gridInputs{width:100%}.lookup-form .gridInputs select{width:40%}.lookup-form .gridInputs input{width:60%}.lookup-form .gridInputs,.lookup-form .gridInputs input,.lookup-form .gridInputs select{max-width:100%}.noMarginY{margin-bottom:0!important;margin-top:0!important}.placeholder,ng-select input:-moz-placeholder,ng-select input:-ms-input-placeholder,ng-select input:-webkit-input-placeholder,ng-select input:placeholder{color:#a9a9a9}select-dropdown>div{position:relative!important;top:0!important}select-dropdown div.options{text-align:left}bs-datepicker-navigation-view{display:block;text-align:center;width:100%}.bs-datepicker-head .previous{float:left}.bs-datepicker-head .next{float:right}textarea{min-height:45px;min-width:100%}.modal-dialog>.modal-content{max-height:100vh}.modal-content>.modal-body{max-height:85vh;overflow-y:auto;padding-bottom:0}.modal-content fv-navigator.nav-bottom{background-color:hsla(0,0%,99.2%,.62);border-bottom-left-radius:10px;border-bottom-right-radius:10px;bottom:0;display:block;height:50px;left:0;margin:0 2px;padding:0 3rem;position:-webkit-sticky;position:sticky;right:0;z-index:999}.modal-content fv-navigator .docked-buttons{width:auto}.modal-content fv-navigator .btn-col:not(.bottom){max-width:unset;padding:6px!important}.modal-dialog .modal-header .pull-right span{font-size:inherit!important}.basic-commands button{margin-right:5px;text-transform:capitalize}", ".bs-datepicker{align-items:stretch;background:#fff;box-shadow:0 0 10px 0 #aaa;display:flex;flex-flow:row wrap;position:relative;z-index:1}.bs-datepicker:after{clear:both;content:\"\";display:block}.bs-datepicker bs-day-picker{float:left}.bs-datepicker-btns button:active,.bs-datepicker-btns button:focus,.bs-datepicker-btns button:hover,.bs-datepicker-predefined-btns button:active,.bs-datepicker-predefined-btns button:focus,.bs-datepicker button:active,.bs-datepicker button:focus,.bs-datepicker button:hover,.bs-datepicker input:active,.bs-datepicker input:focus,.bs-datepicker input:hover{outline:none}.bs-datepicker-head{border-radius:3px 3px 0 0;height:50px;min-width:270px;padding:10px;text-align:justify}.bs-datepicker-head:after{content:\"\";display:inline-block;vertical-align:top;width:100%}.bs-datepicker-head button{background:transparent;border:0;color:#fff;cursor:pointer;display:inline-block;height:30px;line-height:30px;padding:0;text-align:center;transition:.3s;vertical-align:top}.bs-datepicker-head button[disabled],.bs-datepicker-head button[disabled]:active,.bs-datepicker-head button[disabled]:hover{background:hsla(0,0%,86.7%,.3);color:#f5f5f5;cursor:not-allowed}.bs-datepicker-head button.next,.bs-datepicker-head button.previous{border-radius:50%;height:30px;width:30px}.bs-datepicker-head button.next span,.bs-datepicker-head button.previous span{border-radius:50%;display:inline-block;font-size:28px;height:100%;line-height:1;position:relative;width:100%}.bs-datepicker-head button.current{border-radius:15px;max-width:155px;padding:0 13px}.bs-datepicker-head button:hover{background-color:rgba(0,0,0,.1)}.bs-datepicker-head button:active{background-color:rgba(0,0,0,.2)}.bs-datepicker-body{border:1px solid #e9edf0;border-radius:0 0 3px 3px;min-height:232px;min-width:278px;padding:10px}.bs-datepicker-body .days.weeks{position:relative;z-index:1}.bs-datepicker-body table{border-collapse:separate;border-spacing:0;width:100%}.bs-datepicker-body table th{color:#9aaec1;font-size:13px;font-weight:400;text-align:center}.bs-datepicker-body table td{color:#54708b;padding:0;position:relative;text-align:center}.bs-datepicker-body table td span{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;border-radius:50%;display:block;font-size:13px;margin:0 auto;position:relative}.bs-datepicker-body table td:not(.disabled) span{cursor:pointer}.bs-datepicker-body table td.is-highlighted:not(.disabled):not(.selected) span,.bs-datepicker-body table td span.is-highlighted:not(.disabled):not(.selected){background-color:#e9edf0;transition:0s}.bs-datepicker-body table td.disabled span,.bs-datepicker-body table td span.disabled{color:#9aaec1}.bs-datepicker-body table td.selected span,.bs-datepicker-body table td span.selected{color:#fff}.bs-datepicker-body table td.active{position:relative}.bs-datepicker-body table td.active.select-start:before{left:35%}.bs-datepicker-body table td.active.select-end:before{left:-85%}.bs-datepicker-body table td.active.select-end span:after,.bs-datepicker-body table td.active.select-start span:after,.bs-datepicker-body table td span.active.select-end:after,.bs-datepicker-body table td span.active.select-start:after{border-radius:50%;content:\"\";display:block;height:100%;position:absolute;top:0;transition:.3s;width:100%;z-index:-1}.bs-datepicker-body table td:before,.bs-datepicker-body table td span:before{background:transparent;bottom:6px;box-sizing:content-box;content:\"\";display:block;left:-2px;position:absolute;right:-2px;top:6px;z-index:-1}.bs-datepicker-body table td.active.select-start+td.active:before{left:-20%}.bs-datepicker-body table td:last-child.active:before{border-radius:0 3px 3px 0;left:-25%;width:125%}.bs-datepicker-body table td[class*=select-] span,.bs-datepicker-body table td span[class*=select-]{border-radius:50%;color:#fff}.bs-datepicker-body table.days span.active:not(.select-start):before,.bs-datepicker-body table.days span.in-range:not(.select-start):before,.bs-datepicker-body table.days td.active:not(.select-start):before,.bs-datepicker-body table.days td.in-range:not(.select-start):before{background:#e9edf0}.bs-datepicker-body table.days span{height:32px;line-height:32px;width:32px}.bs-datepicker-body table.days span.select-start{z-index:2}.bs-datepicker-body table.days span.in-range.select-end:before,.bs-datepicker-body table.days span.is-highlighted.in-range:before{background:none;left:0;right:0}.bs-datepicker-body table.days td.active+td.is-highlighted:before,.bs-datepicker-body table.days td.active+td.select-end:before,.bs-datepicker-body table.days td.in-range+td.is-highlighted:before,.bs-datepicker-body table.days td.in-range+td.select-end:before,.bs-datepicker-body table.days td.select-start+td.is-highlighted:before,.bs-datepicker-body table.days td.select-start+td.select-end:before{background:#e9edf0;width:100%}.bs-datepicker-body table.weeks tr td:nth-child(2).active:before{border-radius:3px 0 0 3px;left:0;width:100%}.bs-datepicker-body table:not(.weeks) tr td:first-child:before{border-radius:3px 0 0 3px}.bs-datepicker-body table.years td span{height:46px;line-height:45px;margin:0 auto;width:46px}.bs-datepicker-body table.years tr:not(:last-child) td span{margin-bottom:8px}.bs-datepicker-body table.months td{height:52px}.bs-datepicker-body table.months td span{border-radius:15px;padding:6px}.bs-datepicker .current-timedate{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;border:1px solid #e9edf0;border-radius:20px;color:#54708b;cursor:pointer;font-size:15px;height:30px;line-height:30px;margin-bottom:10px;text-align:center;text-transform:uppercase}.bs-datepicker .current-timedate span:not(:empty):before{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAQCAYAAADJViUEAAABMklEQVQoU9VTwW3CQBCcOUgBtEBKSAukAnBKME+wFCAlYIhk8sQlxFABtJAScAsuAPBEewYcxCP8ouxrPDsza61uiVN1o6RNHD4htSCmq49RfO71BvMJqBBkITRf1kmUW49nQRC9h1I5AZlBClaL8aP1fKgOOxCx8aSLs+Q19eZuNO8QmPqJRtDFguy7OAcDbJPs+/BKVPDIPrvD2ZJgWAmVe7O0rI0Vqs1seyWUXpuJoppYCa5L+U++NpNPkr5OE2oMdARsb3gykJT5ydZcL8Z9Ww60nxg2LhjON9li9OwXZzo+xLbp3nC2s9CL2RrueGyVrgwNm8HpsCzZ9EEW6kqXlo1GQe03FzP/7W8Hl0dBtu7Bf7zt6mIwvX1RvzDCm7+q3mAW0Dl/GPdUCeXrZLT9BrDrGkm4qlPvAAAAAElFTkSuQmCC);content:\"\";display:inline-block;height:16px;margin-right:4px;vertical-align:text-bottom;width:15px}.bs-datepicker-multiple{border-radius:4px 0 0 4px;display:inline-block}.bs-datepicker-multiple+.bs-datepicker-multiple{margin-left:10px}.bs-datepicker-multiple .bs-datepicker{box-shadow:none;position:relative}.bs-datepicker-multiple .bs-datepicker:not(:last-child){padding-right:10px}.bs-datepicker-multiple .bs-datepicker+.bs-datepicker:after{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAKCAYAAABrGwT5AAAA1ElEQVQoU42RsQrCUAxF77VuDu7O4oMWW//BURBBpZvgKk4uIrjoqKOTf+DopIO4uYggtFTfw3+pkQqCW1/G5J7kJiFy4m5MxUlxAzgIPHX+lzMPzupRYlYgxiR7vqsOP8YKzsTx0yxFMCUZ+q7aZzlr+OvgoWcAFyAHgat2jLWu48252DdqAihDJGSSJNUUxYmQjs3+hPQBlAh2rG2LCOPnaw3IiGDX99TRCs7ASJsNhUOA7d/LcuHvRG22FIZvsNXw1MX6VZExCilOQKEfeLXr/10+aC9Ho7arh7oAAAAASUVORK5CYII=);content:\"\";display:block;height:10px;left:-8px;position:absolute;top:25px;width:14px}.bs-datepicker-multiple .bs-datepicker .left{float:left}.bs-datepicker-multiple .bs-datepicker .right{float:right}.bs-datepicker-container{padding:15px}.bs-datepicker-custom-range{background:#eee;padding:15px}.bs-datepicker-predefined-btns button{background-color:#9aaec1;border:0;border-radius:4px;color:#fff;display:block;height:30px;margin-bottom:10px;padding:0 18px;text-align:left;transition:.3s;width:100%}.bs-datepicker-predefined-btns button:active,.bs-datepicker-predefined-btns button:hover{background-color:#54708b}.bs-datepicker .is-other-month{color:rgba(0,0,0,.25)}.bs-datepicker-buttons{border-top:1px solid #e9edf0;display:flex;flex-flow:row wrap;justify-content:flex-end;padding-top:10px}.bs-datepicker-buttons .btn-default{margin-left:10px}.bs-timepicker-container{padding:10px 0}.bs-timepicker-label{color:#54708b;margin-bottom:10px}.bs-timepicker-controls{display:inline-block;margin-right:10px;vertical-align:top}.bs-timepicker-controls button{background-color:#e9edf0;border:0;border-radius:50%;color:#54708b;font-size:16px;font-weight:700;height:20px;line-height:0;padding:0;transition:.3s;vertical-align:middle;width:20px}.bs-timepicker-controls button:hover{background-color:#d5dadd}.bs-timepicker-controls input{border:1px solid #e9edf0;border-radius:13px;height:25px;text-align:center;width:35px}.bs-timepicker .switch-time-format{background:#fff;border:1px solid #e9edf0;border-radius:20px;color:#54708b;font-size:13px;height:25px;min-width:54px;text-transform:uppercase}.bs-timepicker .switch-time-format img{margin-left:4px;vertical-align:initial}bs-datepicker-container,bs-daterangepicker-container{z-index:1080}@media (max-width:768px){bs-datepicker-container,bs-daterangepicker-container{left:50%!important;position:fixed!important;top:50%!important;transform:translate(-50%,-50%)}.bs-datepicker-multiple{display:flex}.bs-datepicker-multiple+.bs-datepicker-multiple{margin-left:0;margin-top:10px}}.theme-default .bs-datepicker-body table td.selected span,.theme-default .bs-datepicker-body table td[class*=select-] span:after,.theme-default .bs-datepicker-body table td span.selected,.theme-default .bs-datepicker-body table td span[class*=select-]:after,.theme-default .bs-datepicker-head{background-color:#777}.theme-default .bs-datepicker-body table td.week span{color:#777}.theme-green .bs-datepicker-body table td.selected span,.theme-green .bs-datepicker-body table td[class*=select-] span:after,.theme-green .bs-datepicker-body table td span.selected,.theme-green .bs-datepicker-body table td span[class*=select-]:after,.theme-green .bs-datepicker-head{background-color:#5cb85c}.theme-green .bs-datepicker-body table td.week span{color:#5cb85c}.theme-blue .bs-datepicker-body table td.selected span,.theme-blue .bs-datepicker-body table td[class*=select-] span:after,.theme-blue .bs-datepicker-body table td span.selected,.theme-blue .bs-datepicker-body table td span[class*=select-]:after,.theme-blue .bs-datepicker-head{background-color:#5bc0de}.theme-blue .bs-datepicker-body table td.week span{color:#5bc0de}.theme-dark-blue .bs-datepicker-body table td.selected span,.theme-dark-blue .bs-datepicker-body table td[class*=select-] span:after,.theme-dark-blue .bs-datepicker-body table td span.selected,.theme-dark-blue .bs-datepicker-body table td span[class*=select-]:after,.theme-dark-blue .bs-datepicker-head{background-color:#337ab7}.theme-dark-blue .bs-datepicker-body table td.week span{color:#337ab7}.theme-red .bs-datepicker-body table td.selected span,.theme-red .bs-datepicker-body table td[class*=select-] span:after,.theme-red .bs-datepicker-body table td span.selected,.theme-red .bs-datepicker-body table td span[class*=select-]:after,.theme-red .bs-datepicker-head{background-color:#d9534f}.theme-red .bs-datepicker-body table td.week span{color:#d9534f}.theme-orange .bs-datepicker-body table td.selected span,.theme-orange .bs-datepicker-body table td[class*=select-] span:after,.theme-orange .bs-datepicker-body table td span.selected,.theme-orange .bs-datepicker-body table td span[class*=select-]:after,.theme-orange .bs-datepicker-head{background-color:#f0ad4e}.theme-orange .bs-datepicker-body table td.week span{color:#f0ad4e}", ".bs-datepicker{align-items:stretch;background:#fff;box-shadow:0 0 10px 0 #aaa;display:flex;flex-flow:row wrap;position:relative;z-index:1}.bs-datepicker:after{clear:both;content:\"\";display:block}.bs-datepicker bs-day-picker{float:left}.bs-datepicker-btns button:active,.bs-datepicker-btns button:focus,.bs-datepicker-btns button:hover,.bs-datepicker-predefined-btns button:active,.bs-datepicker-predefined-btns button:focus,.bs-datepicker button:active,.bs-datepicker button:focus,.bs-datepicker button:hover,.bs-datepicker input:active,.bs-datepicker input:focus,.bs-datepicker input:hover{outline:none}.bs-datepicker-head{border-radius:3px 3px 0 0;height:50px;min-width:270px;padding:10px;text-align:justify}.bs-datepicker-head:after{content:\"\";display:inline-block;vertical-align:top;width:100%}.bs-datepicker-head button{background:transparent;border:0;color:#fff;cursor:pointer;display:inline-block;height:30px;line-height:30px;padding:0;text-align:center;transition:.3s;vertical-align:top}.bs-datepicker-head button[disabled],.bs-datepicker-head button[disabled]:active,.bs-datepicker-head button[disabled]:hover{background:hsla(0,0%,87%,.3);color:#f5f5f5;cursor:not-allowed}.bs-datepicker-head button.next,.bs-datepicker-head button.previous{border-radius:50%;height:30px;width:30px}.bs-datepicker-head button.next span,.bs-datepicker-head button.previous span{border-radius:50%;display:inline-block;font-size:28px;height:100%;line-height:1;position:relative;width:100%}.bs-datepicker-head button.current{border-radius:15px;max-width:155px;padding:0 13px}.bs-datepicker-head button:hover{background-color:rgba(0,0,0,.1)}.bs-datepicker-head button:active{background-color:rgba(0,0,0,.2)}.bs-datepicker-body{border:1px solid #e9edf0;border-radius:0 0 3px 3px;min-height:232px;min-width:278px;padding:10px}.bs-datepicker-body .days.weeks{position:relative;z-index:1}.bs-datepicker-body table{border-collapse:separate;border-spacing:0;width:100%}.bs-datepicker-body table th{color:#9aaec1;font-size:13px;font-weight:400;text-align:center}.bs-datepicker-body table td{color:#54708b;padding:0;position:relative;text-align:center}.bs-datepicker-body table td span{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;border-radius:50%;display:block;font-size:13px;margin:0 auto;position:relative}.bs-datepicker-body table td:not(.disabled) span{cursor:pointer}.bs-datepicker-body table td.is-highlighted:not(.disabled):not(.selected) span,.bs-datepicker-body table td span.is-highlighted:not(.disabled):not(.selected){background-color:#e9edf0;transition:0s}.bs-datepicker-body table td.disabled span,.bs-datepicker-body table td span.disabled{color:#9aaec1}.bs-datepicker-body table td.selected span,.bs-datepicker-body table td span.selected{color:#fff}.bs-datepicker-body table td.active{position:relative}.bs-datepicker-body table td.active.select-start:before{left:35%}.bs-datepicker-body table td.active.select-end:before{left:-85%}.bs-datepicker-body table td.active.select-end span:after,.bs-datepicker-body table td.active.select-start span:after,.bs-datepicker-body table td span.active.select-end:after,.bs-datepicker-body table td span.active.select-start:after{border-radius:50%;content:\"\";display:block;height:100%;position:absolute;top:0;transition:.3s;width:100%;z-index:-1}.bs-datepicker-body table td:before,.bs-datepicker-body table td span:before{background:transparent;bottom:6px;box-sizing:content-box;content:\"\";display:block;left:-2px;position:absolute;right:-2px;top:6px;z-index:-1}.bs-datepicker-body table td.active.select-start+td.active:before{left:-20%}.bs-datepicker-body table td:last-child.active:before{border-radius:0 3px 3px 0;left:-25%;width:125%}.bs-datepicker-body table td[class*=select-] span,.bs-datepicker-body table td span[class*=select-]{border-radius:50%;color:#fff}.bs-datepicker-body table.days span.active:not(.select-start):before,.bs-datepicker-body table.days span.in-range:not(.select-start):before,.bs-datepicker-body table.days td.active:not(.select-start):before,.bs-datepicker-body table.days td.in-range:not(.select-start):before{background:#e9edf0}.bs-datepicker-body table.days span{height:32px;line-height:32px;width:32px}.bs-datepicker-body table.days span.select-start{z-index:2}.bs-datepicker-body table.days span.in-range.select-end:before,.bs-datepicker-body table.days span.is-highlighted.in-range:before{background:none;left:0;right:0}.bs-datepicker-body table.days td.active+td.is-highlighted:before,.bs-datepicker-body table.days td.active+td.select-end:before,.bs-datepicker-body table.days td.in-range+td.is-highlighted:before,.bs-datepicker-body table.days td.in-range+td.select-end:before,.bs-datepicker-body table.days td.select-start+td.is-highlighted:before,.bs-datepicker-body table.days td.select-start+td.select-end:before{background:#e9edf0;width:100%}.bs-datepicker-body table.weeks tr td:nth-child(2).active:before{border-radius:3px 0 0 3px;left:0;width:100%}.bs-datepicker-body table:not(.weeks) tr td:first-child:before{border-radius:3px 0 0 3px}.bs-datepicker-body table.years td span{height:46px;line-height:45px;margin:0 auto;width:46px}.bs-datepicker-body table.years tr:not(:last-child) td span{margin-bottom:8px}.bs-datepicker-body table.months td{height:52px}.bs-datepicker-body table.months td span{border-radius:15px;padding:6px}.bs-datepicker .current-timedate{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;border:1px solid #e9edf0;border-radius:20px;color:#54708b;cursor:pointer;font-size:15px;height:30px;line-height:30px;margin-bottom:10px;text-align:center;text-transform:uppercase}.bs-datepicker .current-timedate span:not(:empty):before{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAQCAYAAADJViUEAAABMklEQVQoU9VTwW3CQBCcOUgBtEBKSAukAnBKME+wFCAlYIhk8sQlxFABtJAScAsuAPBEewYcxCP8ouxrPDsza61uiVN1o6RNHD4htSCmq49RfO71BvMJqBBkITRf1kmUW49nQRC9h1I5AZlBClaL8aP1fKgOOxCx8aSLs+Q19eZuNO8QmPqJRtDFguy7OAcDbJPs+/BKVPDIPrvD2ZJgWAmVe7O0rI0Vqs1seyWUXpuJoppYCa5L+U++NpNPkr5OE2oMdARsb3gykJT5ydZcL8Z9Ww60nxg2LhjON9li9OwXZzo+xLbp3nC2s9CL2RrueGyVrgwNm8HpsCzZ9EEW6kqXlo1GQe03FzP/7W8Hl0dBtu7Bf7zt6mIwvX1RvzDCm7+q3mAW0Dl/GPdUCeXrZLT9BrDrGkm4qlPvAAAAAElFTkSuQmCC);content:\"\";display:inline-block;height:16px;margin-right:4px;vertical-align:text-bottom;width:15px}.bs-datepicker-multiple{border-radius:4px 0 0 4px;display:inline-block}.bs-datepicker-multiple+.bs-datepicker-multiple{margin-left:10px}.bs-datepicker-multiple .bs-datepicker{box-shadow:none;position:relative}.bs-datepicker-multiple .bs-datepicker:not(:last-child){padding-right:10px}.bs-datepicker-multiple .bs-datepicker+.bs-datepicker:after{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAKCAYAAABrGwT5AAAA1ElEQVQoU42RsQrCUAxF77VuDu7O4oMWW//BURBBpZvgKk4uIrjoqKOTf+DopIO4uYggtFTfw3+pkQqCW1/G5J7kJiFy4m5MxUlxAzgIPHX+lzMPzupRYlYgxiR7vqsOP8YKzsTx0yxFMCUZ+q7aZzlr+OvgoWcAFyAHgat2jLWu48252DdqAihDJGSSJNUUxYmQjs3+hPQBlAh2rG2LCOPnaw3IiGDX99TRCs7ASJsNhUOA7d/LcuHvRG22FIZvsNXw1MX6VZExCilOQKEfeLXr/10+aC9Ho7arh7oAAAAASUVORK5CYII=);content:\"\";display:block;height:10px;left:-8px;position:absolute;top:25px;width:14px}.bs-datepicker-multiple .bs-datepicker .left{float:left}.bs-datepicker-multiple .bs-datepicker .right{float:right}.bs-datepicker-container{padding:15px}.bs-datepicker-custom-range{background:#eee;padding:15px}.bs-datepicker-predefined-btns button{background-color:#9aaec1;border:0;border-radius:4px;color:#fff;display:block;height:30px;margin-bottom:10px;padding:0 18px;text-align:left;transition:.3s;width:100%}.bs-datepicker-predefined-btns button:active,.bs-datepicker-predefined-btns button:hover{background-color:#54708b}.bs-datepicker .is-other-month{color:rgba(0,0,0,.25)}.bs-datepicker-buttons{border-top:1px solid #e9edf0;display:flex;flex-flow:row wrap;justify-content:flex-end;padding-top:10px}.bs-datepicker-buttons .btn-default{margin-left:10px}.bs-timepicker-container{padding:10px 0}.bs-timepicker-label{color:#54708b;margin-bottom:10px}.bs-timepicker-controls{display:inline-block;margin-right:10px;vertical-align:top}.bs-timepicker-controls button{background-color:#e9edf0;border:0;border-radius:50%;color:#54708b;font-size:16px;font-weight:700;height:20px;line-height:0;padding:0;transition:.3s;vertical-align:middle;width:20px}.bs-timepicker-controls button:hover{background-color:#d5dadd}.bs-timepicker-controls input{border:1px solid #e9edf0;border-radius:13px;height:25px;text-align:center;width:35px}.bs-timepicker .switch-time-format{background:#fff;border:1px solid #e9edf0;border-radius:20px;color:#54708b;font-size:13px;height:25px;min-width:54px;text-transform:uppercase}.bs-timepicker .switch-time-format img{margin-left:4px;vertical-align:initial}bs-datepicker-container,bs-daterangepicker-container{z-index:1080}@media (max-width:768px){bs-datepicker-container,bs-daterangepicker-container{left:50%!important;position:fixed!important;top:50%!important;transform:translate(-50%,-50%)}.bs-datepicker-multiple{display:flex}.bs-datepicker-multiple+.bs-datepicker-multiple{margin-left:0;margin-top:10px}}.theme-default .bs-datepicker-body table td.selected span,.theme-default .bs-datepicker-body table td[class*=select-] span:after,.theme-default .bs-datepicker-body table td span.selected,.theme-default .bs-datepicker-body table td span[class*=select-]:after,.theme-default .bs-datepicker-head{background-color:#777}.theme-default .bs-datepicker-body table td.week span{color:#777}.theme-green .bs-datepicker-body table td.selected span,.theme-green .bs-datepicker-body table td[class*=select-] span:after,.theme-green .bs-datepicker-body table td span.selected,.theme-green .bs-datepicker-body table td span[class*=select-]:after,.theme-green .bs-datepicker-head{background-color:#5cb85c}.theme-green .bs-datepicker-body table td.week span{color:#5cb85c}.theme-blue .bs-datepicker-body table td.selected span,.theme-blue .bs-datepicker-body table td[class*=select-] span:after,.theme-blue .bs-datepicker-body table td span.selected,.theme-blue .bs-datepicker-body table td span[class*=select-]:after,.theme-blue .bs-datepicker-head{background-color:#5bc0de}.theme-blue .bs-datepicker-body table td.week span{color:#5bc0de}.theme-dark-blue .bs-datepicker-body table td.selected span,.theme-dark-blue .bs-datepicker-body table td[class*=select-] span:after,.theme-dark-blue .bs-datepicker-body table td span.selected,.theme-dark-blue .bs-datepicker-body table td span[class*=select-]:after,.theme-dark-blue .bs-datepicker-head{background-color:#337ab7}.theme-dark-blue .bs-datepicker-body table td.week span{color:#337ab7}.theme-red .bs-datepicker-body table td.selected span,.theme-red .bs-datepicker-body table td[class*=select-] span:after,.theme-red .bs-datepicker-body table td span.selected,.theme-red .bs-datepicker-body table td span[class*=select-]:after,.theme-red .bs-datepicker-head{background-color:#d9534f}.theme-red .bs-datepicker-body table td.week span{color:#d9534f}.theme-orange .bs-datepicker-body table td.selected span,.theme-orange .bs-datepicker-body table td[class*=select-] span:after,.theme-orange .bs-datepicker-body table td span.selected,.theme-orange .bs-datepicker-body table td span[class*=select-]:after,.theme-orange .bs-datepicker-head{background-color:#f0ad4e}.theme-orange .bs-datepicker-body table td.week span{color:#f0ad4e}"]
            },] }
];
FVControlsDateComponent.ctorParameters = () => [
    { type: ProcessService },
    { type: BsLocaleService },
    { type: LanguageService }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvcmVuZGVyZXIvY29udHJvbHMvRGF0ZS9kYXRlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFpQixpQkFBaUIsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN2RixPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQ3RFLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDeEUsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUF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