aeb-ui-kit 10.0.0-preview.1147 → 10.0.0-preview.1149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, viewChild, input, computed, effect, HostBinding, ViewEncapsulation, Component, NgModule, Input, Directive, inject, ElementRef, HostListener, ContentChild, ChangeDetectionStrategy, Renderer2, EventEmitter, forwardRef, Output, ViewChild, ComponentFactoryResolver, Injector, ApplicationRef, RendererFactory2, Injectable, output, Pipe, LOCALE_ID, ChangeDetectorRef, ContentChildren, TemplateRef, ViewChildren } from '@angular/core';
2
+ import { signal, viewChild, input, computed, effect, HostBinding, ViewEncapsulation, Component, NgModule, Input, Directive, inject, ElementRef, HostListener, ContentChild, ChangeDetectionStrategy, Renderer2, EventEmitter, forwardRef, Output, ViewChild, ComponentFactoryResolver, Injector, ApplicationRef, RendererFactory2, Injectable, output, Pipe, viewChildren, LOCALE_ID, ChangeDetectorRef, ContentChildren, TemplateRef, ViewChildren } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
- import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/common';
4
+ import { CommonModule, DOCUMENT, NgClass, TitleCasePipe, DatePipe, formatDate, formatNumber } from '@angular/common';
5
5
  import * as i3 from '@angular/forms';
6
6
  import { NG_VALUE_ACCESSOR, FormBuilder, FormControl, Validators, FormsModule, ReactiveFormsModule, NgControl } from '@angular/forms';
7
7
  import { Subject, timer, map, takeUntil, Subscription, filter, fromEvent, debounce, debounceTime } from 'rxjs';
8
8
  import { trigger, state, transition, style, animate, query, stagger } from '@angular/animations';
9
- import { addWeeks, addDays, isSameMonth, getWeeksInMonth, startOfMonth, startOfWeek, addMonths, subMonths, eachYearOfInterval, getYear, addYears, subYears, differenceInYears, startOfYear, isToday, isValid, isSameDay, getMonth, setMonth, areIntervalsOverlapping, startOfDay, endOfDay, parse, format, getDaysInMonth, isExists, compareAsc, getDate } from 'date-fns';
10
- import { ru } from 'date-fns/locale';
11
9
  import '@angular/common/locales/global/ru';
12
10
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
13
11
 
@@ -86,11 +84,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
86
84
 
87
85
  class ActionBarComponent {
88
86
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ActionBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
89
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: ActionBarComponent, isStandalone: false, selector: "aeb-action-bar", inputs: { isOpen: "isOpen", zIndex: "zIndex" }, ngImport: i0, template: "<div\n class=\"aeb-action-bar\"\n [style]=\"'z-index: ' + zIndex\"\n [ngClass]=\"{\n 'aeb-action-bar--open': isOpen\n }\"\n>\n <ng-content />\n</div>\n", styles: [".aeb-action-bar{position:fixed;bottom:-90px;z-index:1000;width:100vw;height:90px;background-color:var(--color-mono-0);transition:position,.2s}.aeb-action-bar--open{bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None }); }
87
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: ActionBarComponent, isStandalone: false, selector: "aeb-action-bar", inputs: { isOpen: "isOpen", zIndex: "zIndex" }, ngImport: i0, template: "<div\n class=\"aeb-action-bar\"\n [style]=\"'z-index: ' + (zIndex || 'var(--z-fixed)')\"\n [ngClass]=\"{\n 'aeb-action-bar--open': isOpen\n }\"\n>\n <ng-content />\n</div>\n", styles: [".aeb-action-bar{position:fixed;bottom:-90px;z-index:var(--z-fixed);width:100vw;height:90px;background-color:var(--color-mono-0);transition:position,.2s}.aeb-action-bar--open{bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None }); }
90
88
  }
91
89
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ActionBarComponent, decorators: [{
92
90
  type: Component,
93
- args: [{ selector: 'aeb-action-bar', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div\n class=\"aeb-action-bar\"\n [style]=\"'z-index: ' + zIndex\"\n [ngClass]=\"{\n 'aeb-action-bar--open': isOpen\n }\"\n>\n <ng-content />\n</div>\n", styles: [".aeb-action-bar{position:fixed;bottom:-90px;z-index:1000;width:100vw;height:90px;background-color:var(--color-mono-0);transition:position,.2s}.aeb-action-bar--open{bottom:0}\n"] }]
91
+ args: [{ selector: 'aeb-action-bar', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div\n class=\"aeb-action-bar\"\n [style]=\"'z-index: ' + (zIndex || 'var(--z-fixed)')\"\n [ngClass]=\"{\n 'aeb-action-bar--open': isOpen\n }\"\n>\n <ng-content />\n</div>\n", styles: [".aeb-action-bar{position:fixed;bottom:-90px;z-index:var(--z-fixed);width:100vw;height:90px;background-color:var(--color-mono-0);transition:position,.2s}.aeb-action-bar--open{bottom:0}\n"] }]
94
92
  }], propDecorators: { isOpen: [{
95
93
  type: Input
96
94
  }], zIndex: [{
@@ -577,7 +575,7 @@ class CodeInputComponent {
577
575
  useExisting: forwardRef(() => CodeInputComponent),
578
576
  multi: true
579
577
  }
580
- ], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "@if (title) {\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n}\n@if (tip) {\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n}\n<div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n>\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n [disabled]=\"disabled\"\n inputmode=\"numeric\"\n [autofocus]=\"isAutofocus\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleInputBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n @for (value of [].constructor(codeLength); track $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[$index] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input-caret':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input-caret--has-error':\n inputValue.length === $index && isFocus && !disabled && hasError\n }\"\n ></div>\n </span>\n }\n</div>\n@if (hasError || isResendable) {\n <div class=\"aeb-code-input__text\">\n @if (hasError) {\n <span class=\"aeb-code-input__text-wrong\">{{ errorMessage }}</span>\n }\n @if (isResendable) {\n @if (showTimer) {\n <div class=\"aeb-code-input__text-wrapper\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n }\n @if (showCodeText) {\n <span class=\"aeb-code-input__text-again\" (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n }\n }\n </div>\n}\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;color:var(--c-t-primary);background-color:none}@media screen and (max-width: 599px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:10;pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:56px;height:64px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--c-bg-surface-medium);border-radius:var(--border-rounded);box-sizing:border-box;font-size:var(--font-size-lm);font-weight:500;cursor:text}@media screen and (max-width: 599px){.aeb-code-input__field-input{width:48px;height:56px;font-size:var(--font-size-l)}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--c-t-links)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--c-t-critical);background-color:var(--c-btn-ws-default)}.aeb-code-input__field-input-caret{width:2px;height:24px;background-color:var(--c-t-links);animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}.aeb-code-input__field-input-caret--has-error{background-color:var(--c-t-critical)}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 16px;font-size:var(--font-size-l);text-align:center;font-weight:500}@media screen and (max-width: 599px){.aeb-code-input__title{font-size:18px;margin:0 0 8px}}.aeb-code-input__tip{margin-bottom:32px;text-align:center;color:var(--c-t-secondary)}@media screen and (max-width: 599px){.aeb-code-input__tip{font-size:14px;margin-bottom:24px}}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:32px;font-size:var(--font-size-s);line-height:20px}@media screen and (max-width: 599px){.aeb-code-input__text{margin-top:24px;font-size:14px}}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--c-t-secondary)}.aeb-code-input__text-time{color:var(--c-t-links)}.aeb-code-input__text-again{color:var(--c-t-links);cursor:pointer}.aeb-code-input__text-wrong{color:var(--c-t-critical);text-align:center;font-size:16px}@media screen and (max-width: 599px){.aeb-code-input__text-wrong{font-size:12px}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
578
+ ], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "@if (title) {\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n}\n@if (tip) {\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n}\n<div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n>\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n [disabled]=\"disabled\"\n inputmode=\"numeric\"\n [autofocus]=\"isAutofocus\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleInputBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n @for (value of [].constructor(codeLength); track $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[$index] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input-caret':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input-caret--has-error':\n inputValue.length === $index && isFocus && !disabled && hasError\n }\"\n ></div>\n </span>\n }\n</div>\n@if (hasError || isResendable) {\n <div class=\"aeb-code-input__text\">\n @if (hasError) {\n <span class=\"aeb-code-input__text-wrong\">{{ errorMessage }}</span>\n }\n @if (isResendable) {\n @if (showTimer) {\n <div class=\"aeb-code-input__text-wrapper\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n }\n @if (showCodeText) {\n <span class=\"aeb-code-input__text-again\" (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n }\n }\n </div>\n}\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;color:var(--c-t-primary);background-color:none}@media screen and (max-width: 599px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:var(--z-dropdown);pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:56px;height:64px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--c-bg-surface-medium);border-radius:var(--border-rounded);box-sizing:border-box;font-size:var(--font-size-lm);font-weight:500;cursor:text}@media screen and (max-width: 599px){.aeb-code-input__field-input{width:48px;height:56px;font-size:var(--font-size-l)}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--c-t-links)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--c-t-critical);background-color:var(--c-btn-ws-default)}.aeb-code-input__field-input-caret{width:2px;height:24px;background-color:var(--c-t-links);animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}.aeb-code-input__field-input-caret--has-error{background-color:var(--c-t-critical)}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 16px;font-size:var(--font-size-l);text-align:center;font-weight:500}@media screen and (max-width: 599px){.aeb-code-input__title{font-size:18px;margin:0 0 8px}}.aeb-code-input__tip{margin-bottom:32px;text-align:center;color:var(--c-t-secondary)}@media screen and (max-width: 599px){.aeb-code-input__tip{font-size:14px;margin-bottom:24px}}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:32px;font-size:var(--font-size-s);line-height:20px}@media screen and (max-width: 599px){.aeb-code-input__text{margin-top:24px;font-size:14px}}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--c-t-secondary)}.aeb-code-input__text-time{color:var(--c-t-links)}.aeb-code-input__text-again{color:var(--c-t-links);cursor:pointer}.aeb-code-input__text-wrong{color:var(--c-t-critical);text-align:center;font-size:16px}@media screen and (max-width: 599px){.aeb-code-input__text-wrong{font-size:12px}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
581
579
  }
582
580
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: CodeInputComponent, decorators: [{
583
581
  type: Component,
@@ -587,7 +585,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
587
585
  useExisting: forwardRef(() => CodeInputComponent),
588
586
  multi: true
589
587
  }
590
- ], encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (title) {\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n}\n@if (tip) {\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n}\n<div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n>\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n [disabled]=\"disabled\"\n inputmode=\"numeric\"\n [autofocus]=\"isAutofocus\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleInputBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n @for (value of [].constructor(codeLength); track $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[$index] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input-caret':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input-caret--has-error':\n inputValue.length === $index && isFocus && !disabled && hasError\n }\"\n ></div>\n </span>\n }\n</div>\n@if (hasError || isResendable) {\n <div class=\"aeb-code-input__text\">\n @if (hasError) {\n <span class=\"aeb-code-input__text-wrong\">{{ errorMessage }}</span>\n }\n @if (isResendable) {\n @if (showTimer) {\n <div class=\"aeb-code-input__text-wrapper\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n }\n @if (showCodeText) {\n <span class=\"aeb-code-input__text-again\" (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n }\n }\n </div>\n}\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;color:var(--c-t-primary);background-color:none}@media screen and (max-width: 599px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:10;pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:56px;height:64px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--c-bg-surface-medium);border-radius:var(--border-rounded);box-sizing:border-box;font-size:var(--font-size-lm);font-weight:500;cursor:text}@media screen and (max-width: 599px){.aeb-code-input__field-input{width:48px;height:56px;font-size:var(--font-size-l)}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--c-t-links)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--c-t-critical);background-color:var(--c-btn-ws-default)}.aeb-code-input__field-input-caret{width:2px;height:24px;background-color:var(--c-t-links);animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}.aeb-code-input__field-input-caret--has-error{background-color:var(--c-t-critical)}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 16px;font-size:var(--font-size-l);text-align:center;font-weight:500}@media screen and (max-width: 599px){.aeb-code-input__title{font-size:18px;margin:0 0 8px}}.aeb-code-input__tip{margin-bottom:32px;text-align:center;color:var(--c-t-secondary)}@media screen and (max-width: 599px){.aeb-code-input__tip{font-size:14px;margin-bottom:24px}}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:32px;font-size:var(--font-size-s);line-height:20px}@media screen and (max-width: 599px){.aeb-code-input__text{margin-top:24px;font-size:14px}}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--c-t-secondary)}.aeb-code-input__text-time{color:var(--c-t-links)}.aeb-code-input__text-again{color:var(--c-t-links);cursor:pointer}.aeb-code-input__text-wrong{color:var(--c-t-critical);text-align:center;font-size:16px}@media screen and (max-width: 599px){.aeb-code-input__text-wrong{font-size:12px}}\n"] }]
588
+ ], encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (title) {\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n}\n@if (tip) {\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n}\n<div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n>\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n [disabled]=\"disabled\"\n inputmode=\"numeric\"\n [autofocus]=\"isAutofocus\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleInputBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n @for (value of [].constructor(codeLength); track $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[$index] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input-caret':\n inputValue.length === $index && isFocus && !disabled,\n 'aeb-code-input__field-input-caret--has-error':\n inputValue.length === $index && isFocus && !disabled && hasError\n }\"\n ></div>\n </span>\n }\n</div>\n@if (hasError || isResendable) {\n <div class=\"aeb-code-input__text\">\n @if (hasError) {\n <span class=\"aeb-code-input__text-wrong\">{{ errorMessage }}</span>\n }\n @if (isResendable) {\n @if (showTimer) {\n <div class=\"aeb-code-input__text-wrapper\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n }\n @if (showCodeText) {\n <span class=\"aeb-code-input__text-again\" (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n }\n }\n </div>\n}\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;color:var(--c-t-primary);background-color:none}@media screen and (max-width: 599px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:var(--z-dropdown);pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:56px;height:64px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--c-bg-surface-medium);border-radius:var(--border-rounded);box-sizing:border-box;font-size:var(--font-size-lm);font-weight:500;cursor:text}@media screen and (max-width: 599px){.aeb-code-input__field-input{width:48px;height:56px;font-size:var(--font-size-l)}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--c-t-links)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--c-t-critical);background-color:var(--c-btn-ws-default)}.aeb-code-input__field-input-caret{width:2px;height:24px;background-color:var(--c-t-links);animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}.aeb-code-input__field-input-caret--has-error{background-color:var(--c-t-critical)}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 16px;font-size:var(--font-size-l);text-align:center;font-weight:500}@media screen and (max-width: 599px){.aeb-code-input__title{font-size:18px;margin:0 0 8px}}.aeb-code-input__tip{margin-bottom:32px;text-align:center;color:var(--c-t-secondary)}@media screen and (max-width: 599px){.aeb-code-input__tip{font-size:14px;margin-bottom:24px}}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:32px;font-size:var(--font-size-s);line-height:20px}@media screen and (max-width: 599px){.aeb-code-input__text{margin-top:24px;font-size:14px}}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--c-t-secondary)}.aeb-code-input__text-time{color:var(--c-t-links)}.aeb-code-input__text-again{color:var(--c-t-links);cursor:pointer}.aeb-code-input__text-wrong{color:var(--c-t-critical);text-align:center;font-size:16px}@media screen and (max-width: 599px){.aeb-code-input__text-wrong{font-size:12px}}\n"] }]
591
589
  }], propDecorators: { title: [{
592
590
  type: Input
593
591
  }], secondsUntilRetry: [{
@@ -941,11 +939,11 @@ class TooltipComponent {
941
939
  }
942
940
  }
943
941
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
944
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: TooltipComponent, isStandalone: false, selector: "aeb-tooltip", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, html: { classPropertyName: "html", publicName: "html", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, contentEl: { classPropertyName: "contentEl", publicName: "contentEl", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "tooltip", first: true, predicate: ["tooltip"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<div #tooltip [class]=\"'aeb-tooltip aeb-tooltip--' + type()\">\n @if (title()) {\n <p class=\"aeb-tooltip__title\">{{ title() }}</p>\n }\n <div\n #container\n class=\"aeb-tooltip__container\"\n [innerHTML]=\"!contentEl() ? html() || data() : null\"\n ></div>\n</div>\n", styles: ["@keyframes out{0%{transform:scale(0)}to{transform:scale(1)}}.aeb-tooltip{position:fixed;z-index:9999;pointer-events:none;border-radius:20px;opacity:0;transition:opacity .2s;min-width:194px;padding:20px;box-sizing:border-box;display:flex;flex-direction:column}.aeb-tooltip:before{position:absolute;width:14px;height:14px;content:\"\";transform:rotate(45deg);background-color:inherit}.aeb-tooltip--open{opacity:1;animation:out .2s}.aeb-tooltip--primary{background-color:var(--c-bg-light);box-shadow:0 0 12px #27303e1f}.aeb-tooltip--secondary{background-color:var(--c-bg-surface-medium)}.aeb-tooltip__title{font-weight:500;font-size:16px;margin:0 0 8px}.aeb-tooltip__container{position:relative;align-items:center;justify-content:center;width:100%;font-size:14px;color:var(--c-t-primary);word-break:keep-all;white-space:nowrap}.aeb-tooltip--top:before{bottom:-7px;left:calc(50% - 7px)}.aeb-tooltip--right:before{top:calc(50% - 7px);left:-7px}.aeb-tooltip--bottom:before{top:-7px;left:calc(50% - 7px)}.aeb-tooltip--left:before{top:calc(50% - 7px);left:calc(100% - 7px)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
942
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: TooltipComponent, isStandalone: false, selector: "aeb-tooltip", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, html: { classPropertyName: "html", publicName: "html", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, contentEl: { classPropertyName: "contentEl", publicName: "contentEl", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "tooltip", first: true, predicate: ["tooltip"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<div #tooltip [class]=\"'aeb-tooltip aeb-tooltip--' + type()\">\n @if (title()) {\n <p class=\"aeb-tooltip__title\">{{ title() }}</p>\n }\n <div\n #container\n class=\"aeb-tooltip__container\"\n [innerHTML]=\"!contentEl() ? html() || data() : null\"\n ></div>\n</div>\n", styles: ["@keyframes out{0%{transform:scale(0)}to{transform:scale(1)}}.aeb-tooltip{position:fixed;z-index:var(--z-tooltip);pointer-events:none;border-radius:20px;opacity:0;transition:opacity .2s;min-width:194px;padding:20px;box-sizing:border-box;display:flex;flex-direction:column}.aeb-tooltip:before{position:absolute;width:14px;height:14px;content:\"\";transform:rotate(45deg);background-color:inherit}.aeb-tooltip--open{opacity:1;animation:out .2s}.aeb-tooltip--primary{background-color:var(--c-bg-light);box-shadow:0 0 12px #27303e1f}.aeb-tooltip--secondary{background-color:var(--c-bg-surface-medium)}.aeb-tooltip__title{font-weight:500;font-size:16px;margin:0 0 8px}.aeb-tooltip__container{position:relative;align-items:center;justify-content:center;width:100%;font-size:14px;color:var(--c-t-primary);word-break:keep-all;white-space:nowrap}.aeb-tooltip--top:before{bottom:-7px;left:calc(50% - 7px)}.aeb-tooltip--right:before{top:calc(50% - 7px);left:-7px}.aeb-tooltip--bottom:before{top:-7px;left:calc(50% - 7px)}.aeb-tooltip--left:before{top:calc(50% - 7px);left:calc(100% - 7px)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
945
943
  }
946
944
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: TooltipComponent, decorators: [{
947
945
  type: Component,
948
- args: [{ selector: 'aeb-tooltip', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div #tooltip [class]=\"'aeb-tooltip aeb-tooltip--' + type()\">\n @if (title()) {\n <p class=\"aeb-tooltip__title\">{{ title() }}</p>\n }\n <div\n #container\n class=\"aeb-tooltip__container\"\n [innerHTML]=\"!contentEl() ? html() || data() : null\"\n ></div>\n</div>\n", styles: ["@keyframes out{0%{transform:scale(0)}to{transform:scale(1)}}.aeb-tooltip{position:fixed;z-index:9999;pointer-events:none;border-radius:20px;opacity:0;transition:opacity .2s;min-width:194px;padding:20px;box-sizing:border-box;display:flex;flex-direction:column}.aeb-tooltip:before{position:absolute;width:14px;height:14px;content:\"\";transform:rotate(45deg);background-color:inherit}.aeb-tooltip--open{opacity:1;animation:out .2s}.aeb-tooltip--primary{background-color:var(--c-bg-light);box-shadow:0 0 12px #27303e1f}.aeb-tooltip--secondary{background-color:var(--c-bg-surface-medium)}.aeb-tooltip__title{font-weight:500;font-size:16px;margin:0 0 8px}.aeb-tooltip__container{position:relative;align-items:center;justify-content:center;width:100%;font-size:14px;color:var(--c-t-primary);word-break:keep-all;white-space:nowrap}.aeb-tooltip--top:before{bottom:-7px;left:calc(50% - 7px)}.aeb-tooltip--right:before{top:calc(50% - 7px);left:-7px}.aeb-tooltip--bottom:before{top:-7px;left:calc(50% - 7px)}.aeb-tooltip--left:before{top:calc(50% - 7px);left:calc(100% - 7px)}\n"] }]
946
+ args: [{ selector: 'aeb-tooltip', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div #tooltip [class]=\"'aeb-tooltip aeb-tooltip--' + type()\">\n @if (title()) {\n <p class=\"aeb-tooltip__title\">{{ title() }}</p>\n }\n <div\n #container\n class=\"aeb-tooltip__container\"\n [innerHTML]=\"!contentEl() ? html() || data() : null\"\n ></div>\n</div>\n", styles: ["@keyframes out{0%{transform:scale(0)}to{transform:scale(1)}}.aeb-tooltip{position:fixed;z-index:var(--z-tooltip);pointer-events:none;border-radius:20px;opacity:0;transition:opacity .2s;min-width:194px;padding:20px;box-sizing:border-box;display:flex;flex-direction:column}.aeb-tooltip:before{position:absolute;width:14px;height:14px;content:\"\";transform:rotate(45deg);background-color:inherit}.aeb-tooltip--open{opacity:1;animation:out .2s}.aeb-tooltip--primary{background-color:var(--c-bg-light);box-shadow:0 0 12px #27303e1f}.aeb-tooltip--secondary{background-color:var(--c-bg-surface-medium)}.aeb-tooltip__title{font-weight:500;font-size:16px;margin:0 0 8px}.aeb-tooltip__container{position:relative;align-items:center;justify-content:center;width:100%;font-size:14px;color:var(--c-t-primary);word-break:keep-all;white-space:nowrap}.aeb-tooltip--top:before{bottom:-7px;left:calc(50% - 7px)}.aeb-tooltip--right:before{top:calc(50% - 7px);left:-7px}.aeb-tooltip--bottom:before{top:-7px;left:calc(50% - 7px)}.aeb-tooltip--left:before{top:calc(50% - 7px);left:calc(100% - 7px)}\n"] }]
949
947
  }], propDecorators: { tooltip: [{
950
948
  type: ViewChild,
951
949
  args: ['tooltip']
@@ -1297,34 +1295,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
1297
1295
  args: ['document:click', ['$event']]
1298
1296
  }] } });
1299
1297
 
1298
+ const weekLocal = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
1299
+
1300
+ class DateToStrPipe {
1301
+ transform(value) {
1302
+ return value ? `${value.getDate()}` : '';
1303
+ }
1304
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DateToStrPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1305
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: DateToStrPipe, isStandalone: true, name: "dateToStr" }); }
1306
+ }
1307
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DateToStrPipe, decorators: [{
1308
+ type: Pipe,
1309
+ args: [{ name: 'dateToStr' }]
1310
+ }] });
1311
+
1300
1312
  class DatepickerUtilsService {
1301
- static { this.weekLocal = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс']; }
1302
- static { this.monthsLocal = [
1303
- 'Январь',
1304
- 'Февраль',
1305
- 'Март',
1306
- 'Апрель',
1307
- 'Май',
1308
- 'Июнь',
1309
- 'Июль',
1310
- 'Август',
1311
- 'Сентябрь',
1312
- 'Октябрь',
1313
- 'Ноябрь',
1314
- 'Декабрь'
1315
- ]; }
1313
+ // Public methods
1316
1314
  genWeek(week, month, count) {
1317
- const begginingOfWeek = addWeeks(week, count);
1318
- return ([...new Array(7)]
1319
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
1315
+ const begginingOfWeek = this.addWeeks(week, count);
1316
+ return [...new Array(7)]
1320
1317
  .map((_) => begginingOfWeek)
1321
- .map((day, index) => addDays(day, index))
1322
- .map((day) => (isSameMonth(month, day) ? day : null)));
1318
+ .map((day, index) => this.addDays(day, index))
1319
+ .map((day) => (this.isSameMonth(month, day) ? day : null));
1323
1320
  }
1324
1321
  genMonth(date) {
1325
- const WEEKS_TOTAL = getWeeksInMonth(date);
1326
- const START_OF_MONTH = startOfMonth(date);
1327
- const START_OF_WEEK = startOfWeek(START_OF_MONTH, { locale: ru });
1322
+ const WEEKS_TOTAL = this.getWeeksInMonth(date);
1323
+ const START_OF_MONTH = this.startOfMonth(date);
1324
+ const START_OF_WEEK = this.startOfWeek(START_OF_MONTH);
1328
1325
  return [...new Array(WEEKS_TOTAL + 1)]
1329
1326
  .map((_, index) => {
1330
1327
  const week = this.genWeek(START_OF_WEEK, START_OF_MONTH, index);
@@ -1333,89 +1330,111 @@ class DatepickerUtilsService {
1333
1330
  .filter((week) => !!week);
1334
1331
  }
1335
1332
  addMonths(date, count) {
1336
- return addMonths(date, count);
1333
+ const result = new Date(date);
1334
+ result.setMonth(result.getMonth() + count);
1335
+ return result;
1337
1336
  }
1338
1337
  subMonths(date, count) {
1339
- return subMonths(date, count);
1338
+ const result = new Date(date);
1339
+ result.setMonth(result.getMonth() - count);
1340
+ return result;
1340
1341
  }
1341
1342
  genYears(min, max) {
1342
- return eachYearOfInterval({
1343
- start: min,
1344
- end: max
1345
- }).map((date) => getYear(date));
1343
+ return this.eachYearOfInterval(min, max).map((date) => date.getFullYear());
1346
1344
  }
1347
1345
  addYears(date, count) {
1348
- return addYears(date, count);
1346
+ const result = new Date(date);
1347
+ result.setFullYear(result.getFullYear() + count);
1348
+ return result;
1349
1349
  }
1350
1350
  subYears(date, count) {
1351
- return subYears(date, count);
1351
+ const result = new Date(date);
1352
+ result.setFullYear(result.getFullYear() - count);
1353
+ return result;
1352
1354
  }
1353
1355
  yearsDiff(a, b) {
1354
- return differenceInYears(a, b);
1356
+ return this.differenceInYears(a, b);
1355
1357
  }
1356
1358
  startOfYear(date) {
1357
- return startOfYear(date);
1359
+ return new Date(date.getFullYear(), 0, 1);
1358
1360
  }
1359
1361
  isToday(date) {
1360
- return isToday(date);
1362
+ const today = new Date();
1363
+ return this.isSameDay(date, today);
1361
1364
  }
1362
1365
  isSameDay(dateLeft, dateRight) {
1363
- if (!isValid(dateLeft) || !isValid(dateRight)) {
1366
+ if (!this.isValid(dateLeft) || !this.isValid(dateRight)) {
1364
1367
  return false;
1365
1368
  }
1366
- return isSameDay(dateLeft, dateRight);
1369
+ return (dateLeft.getFullYear() === dateRight.getFullYear() &&
1370
+ dateLeft.getMonth() === dateRight.getMonth() &&
1371
+ dateLeft.getDate() === dateRight.getDate());
1367
1372
  }
1368
1373
  getMonth(date) {
1369
- return getMonth(date);
1374
+ return date.getMonth();
1370
1375
  }
1371
1376
  getYear(date) {
1372
- return getYear(date);
1377
+ return date.getFullYear();
1373
1378
  }
1374
1379
  setMonth(month, year) {
1375
- return setMonth(new Date(year, 0, 1), month);
1380
+ return new Date(year, month, 1);
1376
1381
  }
1377
1382
  isMinOverlap(minDate, date) {
1378
- if (!isValid(minDate) || !isValid(date)) {
1383
+ if (!this.isValid(minDate) || !this.isValid(date)) {
1379
1384
  return false;
1380
1385
  }
1381
- return areIntervalsOverlapping({
1382
- start: subYears(minDate, 9999),
1383
- end: startOfDay(minDate)
1386
+ return this.areIntervalsOverlapping({
1387
+ start: this.subYears(minDate, 9999),
1388
+ end: this.startOfDay(minDate)
1384
1389
  }, {
1385
- start: startOfDay(date),
1386
- end: endOfDay(date)
1390
+ start: this.startOfDay(date),
1391
+ end: this.endOfDay(date)
1387
1392
  });
1388
1393
  }
1389
1394
  isMaxOverlap(maxDate, date) {
1390
- if (!isValid(maxDate) || !isValid(date)) {
1395
+ if (!this.isValid(maxDate) || !this.isValid(date)) {
1391
1396
  return false;
1392
1397
  }
1393
- return areIntervalsOverlapping({
1394
- start: addDays(startOfDay(maxDate), 1),
1395
- end: addYears(maxDate, 9999)
1398
+ return this.areIntervalsOverlapping({
1399
+ start: this.addDays(this.startOfDay(maxDate), 1),
1400
+ end: this.addYears(maxDate, 9999)
1396
1401
  }, {
1397
- start: startOfDay(date),
1398
- end: endOfDay(date)
1402
+ start: this.startOfDay(date),
1403
+ end: this.endOfDay(date)
1399
1404
  });
1400
1405
  }
1401
1406
  parseDate(date) {
1402
- return parse(date, 'dd.MM.yyyy', new Date());
1407
+ // Parse date in format dd.MM.yyyy
1408
+ const parts = date.split('.');
1409
+ if (parts.length === 3) {
1410
+ const day = parseInt(parts[0], 10);
1411
+ const month = parseInt(parts[1], 10) - 1; // Month is 0-indexed
1412
+ const year = parseInt(parts[2], 10);
1413
+ return new Date(year, month, day);
1414
+ }
1415
+ return new Date();
1403
1416
  }
1404
1417
  formatDate(date) {
1405
- if (isValid(date)) {
1406
- return format(date, 'dd.MM.yyyy');
1418
+ if (this.isValid(date)) {
1419
+ const day = date.getDate().toString().padStart(2, '0');
1420
+ const month = (date.getMonth() + 1).toString().padStart(2, '0');
1421
+ const year = date.getFullYear().toString();
1422
+ return `${day}.${month}.${year}`;
1407
1423
  }
1424
+ return '';
1408
1425
  }
1409
1426
  dayLimit(month, year) {
1410
- return month ? getDaysInMonth(new Date(year, month)) : 31;
1427
+ return month !== undefined
1428
+ ? this.getDaysInMonth(new Date(year, month))
1429
+ : 31;
1411
1430
  }
1412
1431
  excludedMonths(day, year) {
1413
1432
  return [...new Array(12)]
1414
1433
  .map((_, i) => i)
1415
- .filter((month) => isExists(year, month, day));
1434
+ .filter((month) => this.isExists(year, month, day));
1416
1435
  }
1417
1436
  validYear(day = 1, month = 0, year) {
1418
- return isExists(year, month, day);
1437
+ return this.isExists(year, month, day);
1419
1438
  }
1420
1439
  validDate(day, month, year, limit) {
1421
1440
  const targetDate = [day, month, year].filter((item) => !!item).length === 3
@@ -1429,10 +1448,10 @@ class DatepickerUtilsService {
1429
1448
  parseInt(year) <= this.getYear(limit[1])
1430
1449
  : true;
1431
1450
  const moreThenMin = targetDate
1432
- ? compareAsc(targetDate, limit[0]) !== -1
1451
+ ? this.compareAsc(targetDate, limit[0]) !== -1
1433
1452
  : true;
1434
1453
  const lessThenMax = targetDate
1435
- ? compareAsc(targetDate, limit[1]) !== 1
1454
+ ? this.compareAsc(targetDate, limit[1]) !== 1
1436
1455
  : true;
1437
1456
  return validDay && validMonth && validYear && moreThenMin && lessThenMax;
1438
1457
  }
@@ -1446,116 +1465,109 @@ class DatepickerUtilsService {
1446
1465
  const regExp = /(0[1-9]|1[0-9]|2[0-9]|3[0-2])\.(0[1-9]|1[0-2])\.(\d{4})/;
1447
1466
  return !!term.match(regExp);
1448
1467
  }
1449
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1450
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerUtilsService, providedIn: 'root' }); }
1451
- }
1452
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerUtilsService, decorators: [{
1453
- type: Injectable,
1454
- args: [{
1455
- providedIn: 'root'
1456
- }]
1457
- }] });
1458
-
1459
- const range = (min, max) => [...new Array(max - min)].map((_, idx) => idx + min);
1460
- class MaskUtilsService {
1461
- static { this.allowedKeys = [
1462
- 'Backspace',
1463
- 'ArrowLeft',
1464
- 'ArrowRight',
1465
- 'End',
1466
- 'Home',
1467
- 'Enter'
1468
- ]; }
1469
- inputSegmentOverflow([day, month, year], event, woDays) {
1470
- const tsCrutchEl = event.target;
1471
- const isNumberInp = Number.isInteger(parseInt(event.key));
1472
- if (!isNumberInp) {
1473
- return;
1474
- }
1475
- const firstRange = range(0, 3);
1476
- const secondRange = woDays
1477
- ? range(month.length + 1, month.length + 6)
1478
- : range(day.length + 1, day.length + 4);
1479
- const thirdRange = range(day.length + month.length + 2, day.length + month.length + 7);
1480
- const conditions = woDays
1481
- ? [
1482
- month.length === 2 && firstRange.includes(tsCrutchEl.selectionStart),
1483
- year.length === 4 && secondRange.includes(tsCrutchEl.selectionStart)
1484
- ]
1485
- : [
1486
- day.length === 2 && firstRange.includes(tsCrutchEl.selectionStart),
1487
- month.length === 2 && secondRange.includes(tsCrutchEl.selectionStart),
1488
- year.length === 4 && thirdRange.includes(tsCrutchEl.selectionStart)
1489
- ];
1490
- for (const condition of conditions) {
1491
- if (condition) {
1492
- return true;
1493
- }
1468
+ // Private helper methods
1469
+ isValid(date) {
1470
+ return date instanceof Date && !isNaN(date.getTime());
1471
+ }
1472
+ startOfDay(date) {
1473
+ const result = new Date(date);
1474
+ result.setHours(0, 0, 0, 0);
1475
+ return result;
1476
+ }
1477
+ endOfDay(date) {
1478
+ const result = new Date(date);
1479
+ result.setHours(23, 59, 59, 999);
1480
+ return result;
1481
+ }
1482
+ startOfMonth(date) {
1483
+ return new Date(date.getFullYear(), date.getMonth(), 1);
1484
+ }
1485
+ startOfWeek(date) {
1486
+ const result = new Date(date);
1487
+ const day = result.getDay();
1488
+ const diff = result.getDate() - day + (day === 0 ? -6 : 1); // Adjust when day is Sunday
1489
+ result.setDate(diff);
1490
+ return this.startOfDay(result);
1491
+ }
1492
+ addDays(date, days) {
1493
+ const result = new Date(date);
1494
+ result.setDate(result.getDate() + days);
1495
+ return result;
1496
+ }
1497
+ addWeeks(date, weeks) {
1498
+ return this.addDays(date, weeks * 7);
1499
+ }
1500
+ isSameMonth(date1, date2) {
1501
+ return (date1.getFullYear() === date2.getFullYear() &&
1502
+ date1.getMonth() === date2.getMonth());
1503
+ }
1504
+ getWeeksInMonth(date) {
1505
+ const startOfMonth = this.startOfMonth(date);
1506
+ const endOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0);
1507
+ const startOfFirstWeek = this.startOfWeek(startOfMonth);
1508
+ const endOfLastWeek = this.startOfWeek(endOfMonth);
1509
+ const diffInDays = Math.ceil((endOfLastWeek.getTime() - startOfFirstWeek.getTime()) /
1510
+ (1000 * 60 * 60 * 24));
1511
+ return Math.ceil(diffInDays / 7);
1512
+ }
1513
+ getDaysInMonth(date) {
1514
+ return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
1515
+ }
1516
+ isExists(year, month, day) {
1517
+ const date = new Date(year, month, day);
1518
+ return (date.getFullYear() === year &&
1519
+ date.getMonth() === month &&
1520
+ date.getDate() === day);
1521
+ }
1522
+ compareAsc(date1, date2) {
1523
+ if (date1 < date2) {
1524
+ return -1;
1525
+ }
1526
+ if (date1 > date2) {
1527
+ return 1;
1494
1528
  }
1495
- return false;
1529
+ return 0;
1496
1530
  }
1497
- breakInput(event) {
1498
- return (condition) => {
1499
- if (condition) {
1500
- event.preventDefault();
1501
- }
1502
- };
1531
+ differenceInYears(date1, date2) {
1532
+ return date1.getFullYear() - date2.getFullYear();
1503
1533
  }
1504
- predictInput(input, key, inputIndex, withoutDays) {
1505
- const base = withoutDays
1506
- ? ['', '', '.', '', '', '', '']
1507
- : ['', '', '.', '', '', '.', '', '', '', ''];
1508
- input.split('').forEach((item, idx) => (base[idx] = item));
1509
- const newInput = [
1510
- ...base.slice(0, inputIndex),
1511
- key,
1512
- ...base.slice(inputIndex, base.length)
1513
- ];
1514
- return withoutDays
1515
- ? `01.${newInput.filter((item) => !!item).join('')}`
1516
- : newInput.filter((item) => !!item).join('');
1534
+ eachYearOfInterval(start, end) {
1535
+ const years = [];
1536
+ const startYear = start.getFullYear();
1537
+ const endYear = end.getFullYear();
1538
+ for (let year = startYear; year <= endYear; year++) {
1539
+ years.push(new Date(year, 0, 1));
1540
+ }
1541
+ return years;
1517
1542
  }
1518
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MaskUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1519
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MaskUtilsService, providedIn: 'root' }); }
1543
+ areIntervalsOverlapping(interval1, interval2) {
1544
+ return interval1.start <= interval2.end && interval2.start <= interval1.end;
1545
+ }
1546
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1547
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerUtilsService, providedIn: 'root' }); }
1520
1548
  }
1521
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MaskUtilsService, decorators: [{
1549
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerUtilsService, decorators: [{
1522
1550
  type: Injectable,
1523
1551
  args: [{
1524
1552
  providedIn: 'root'
1525
1553
  }]
1526
1554
  }] });
1527
1555
 
1528
- class DateToStrPipe {
1529
- transform(value) {
1530
- return value ? `${getDate(value)}` : '';
1531
- }
1532
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DateToStrPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1533
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: DateToStrPipe, isStandalone: false, name: "dateToStr" }); }
1534
- }
1535
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DateToStrPipe, decorators: [{
1536
- type: Pipe,
1537
- args: [{
1538
- name: 'dateToStr',
1539
- standalone: false
1540
- }]
1541
- }] });
1542
-
1543
- class IsTodayPipe {
1556
+ class IsDisabledPipe {
1544
1557
  constructor() {
1545
1558
  this.utils = inject(DatepickerUtilsService);
1546
1559
  }
1547
- transform(date) {
1548
- return this.utils.isToday(date);
1560
+ transform(date, minDate, maxDate, excludedDates) {
1561
+ return (this.utils.isMinOverlap(minDate, date) ||
1562
+ this.utils.isMaxOverlap(maxDate, date) ||
1563
+ !!excludedDates.filter((item) => this.utils.isSameDay(item, date)).length);
1549
1564
  }
1550
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsTodayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1551
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: IsTodayPipe, isStandalone: false, name: "isToday" }); }
1565
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsDisabledPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1566
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: IsDisabledPipe, isStandalone: true, name: "isDisabled" }); }
1552
1567
  }
1553
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsTodayPipe, decorators: [{
1568
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsDisabledPipe, decorators: [{
1554
1569
  type: Pipe,
1555
- args: [{
1556
- name: 'isToday',
1557
- standalone: false
1558
- }]
1570
+ args: [{ name: 'isDisabled' }]
1559
1571
  }] });
1560
1572
 
1561
1573
  class IsSameDatePipe {
@@ -1566,34 +1578,26 @@ class IsSameDatePipe {
1566
1578
  return this.utils.isSameDay(date1, date2);
1567
1579
  }
1568
1580
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsSameDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1569
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: IsSameDatePipe, isStandalone: false, name: "isSameDate" }); }
1581
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: IsSameDatePipe, isStandalone: true, name: "isSameDate" }); }
1570
1582
  }
1571
1583
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsSameDatePipe, decorators: [{
1572
1584
  type: Pipe,
1573
- args: [{
1574
- name: 'isSameDate',
1575
- standalone: false
1576
- }]
1585
+ args: [{ name: 'isSameDate' }]
1577
1586
  }] });
1578
1587
 
1579
- class IsDisabledPipe {
1588
+ class IsTodayPipe {
1580
1589
  constructor() {
1581
1590
  this.utils = inject(DatepickerUtilsService);
1582
1591
  }
1583
- transform(date, minDate, maxDate, excludedDates) {
1584
- return (this.utils.isMinOverlap(minDate, date) ||
1585
- this.utils.isMaxOverlap(maxDate, date) ||
1586
- !!excludedDates.filter((item) => this.utils.isSameDay(item, date)).length);
1592
+ transform(date) {
1593
+ return this.utils.isToday(date);
1587
1594
  }
1588
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsDisabledPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1589
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: IsDisabledPipe, isStandalone: false, name: "isDisabled" }); }
1595
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsTodayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1596
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: IsTodayPipe, isStandalone: true, name: "isToday" }); }
1590
1597
  }
1591
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsDisabledPipe, decorators: [{
1598
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsTodayPipe, decorators: [{
1592
1599
  type: Pipe,
1593
- args: [{
1594
- name: 'isDisabled',
1595
- standalone: false
1596
- }]
1600
+ args: [{ name: 'isToday' }]
1597
1601
  }] });
1598
1602
 
1599
1603
  /**
@@ -1601,425 +1605,591 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
1601
1605
  */
1602
1606
  class DatepickerMonthComponent {
1603
1607
  constructor() {
1604
- this.setDate = new EventEmitter();
1605
- this.week = DatepickerUtilsService.weekLocal;
1608
+ this.month = input(undefined, ...(ngDevMode ? [{ debugName: "month" }] : []));
1609
+ this.date = input(undefined, ...(ngDevMode ? [{ debugName: "date" }] : []));
1610
+ this.minDate = input(undefined, ...(ngDevMode ? [{ debugName: "minDate" }] : []));
1611
+ this.maxDate = input(undefined, ...(ngDevMode ? [{ debugName: "maxDate" }] : []));
1612
+ this.excludedDates = input(undefined, ...(ngDevMode ? [{ debugName: "excludedDates" }] : []));
1613
+ this.setDate = output();
1614
+ this.week = signal(weekLocal, ...(ngDevMode ? [{ debugName: "week" }] : []));
1606
1615
  }
1607
1616
  emitDate(date) {
1608
1617
  this.setDate.emit(date);
1609
1618
  }
1610
1619
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1611
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DatepickerMonthComponent, isStandalone: false, selector: "aeb-datepicker-month", inputs: { month: "month", date: "date", minDate: "minDate", maxDate: "maxDate", excludedDates: "excludedDates" }, outputs: { setDate: "setDate" }, ngImport: i0, template: "<div class=\"aeb-datepicker-month__week\">\n @for (day of week; track $index) {\n <div class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\">\n {{ day }}\n </div>\n }\n</div>\n@for (week of month; track $index) {\n <div class=\"aeb-datepicker-month__week\">\n @for (day of week; track $index) {\n @if (!!day) {\n <div\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': day | isToday,\n 'aeb-datepicker-month__day--picked': day | isSameDate: date,\n 'aeb-datepicker-month__day--disabled':\n day | isDisabled: minDate : maxDate : excludedDates\n }\"\n (click)=\"emitDate(day)\"\n >\n {{ day | dateToStr }}\n </div>\n } @else {\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n ></div>\n }\n }\n </div>\n}\n", styles: [".aeb-datepicker-month__week{display:flex;align-items:center;width:fit-content}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:28px;font-size:var(--font-size-s);cursor:pointer;border-radius:var(--border-lightly-rounded)}.aeb-datepicker-month__day:hover{border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-month__day--stub{pointer-events:none;cursor:none}.aeb-datepicker-month__day--stub:hover{border:var(--no-border)}.aeb-datepicker-month__day--today{border:var(--border-thin) solid var(--color-mono-200)}.aeb-datepicker-month__day--picked{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--no-border)}.aeb-datepicker-month__day--disabled{color:var(--color-mono-200);pointer-events:none;cursor:none}.aeb-datepicker-month__day--disabled:hover{border:var(--no-border)}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:var(--font-size-xxs);color:var(--color-mono-200);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:var(--no-border)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: DateToStrPipe, name: "dateToStr" }, { kind: "pipe", type: IsTodayPipe, name: "isToday" }, { kind: "pipe", type: IsSameDatePipe, name: "isSameDate" }, { kind: "pipe", type: IsDisabledPipe, name: "isDisabled" }], encapsulation: i0.ViewEncapsulation.None }); }
1620
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DatepickerMonthComponent, isStandalone: true, selector: "div[aebDatepickerMonth]", inputs: { month: { classPropertyName: "month", publicName: "month", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, excludedDates: { classPropertyName: "excludedDates", publicName: "excludedDates", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { setDate: "setDate" }, ngImport: i0, template: "<div class=\"aeb-datepicker-month__header\">\n @for (day of week(); track $index) {\n <div class=\"aeb-datepicker-month__header-day\">\n {{ day }}\n </div>\n }\n</div>\n@for (week of month(); track $index) {\n <div class=\"aeb-datepicker-month__week\">\n @for (day of week; track $index) {\n @if (!!day) {\n <div\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': day | isToday,\n 'aeb-datepicker-month__day--picked': day | isSameDate: date(),\n 'aeb-datepicker-month__day--disabled':\n day | isDisabled: minDate() : maxDate() : excludedDates()\n }\"\n (click)=\"emitDate(day)\"\n >\n {{ day | dateToStr }}\n </div>\n } @else {\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n ></div>\n }\n }\n </div>\n}\n", styles: [".aeb-datepicker-month__header{display:flex;align-items:center;justify-content:space-between;width:fit-content;margin-bottom:16px;font-size:12px;gap:8px}.aeb-datepicker-month__header-day{text-align:center;font-size:12px;color:var(--c-t-secondary);cursor:default;width:32px;height:14px}.aeb-datepicker-month__week{display:flex;align-items:center;width:fit-content}.aeb-datepicker-month__week:not(:last-child){margin-bottom:8px}.aeb-datepicker-month__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:26px;font-size:16px;cursor:pointer;border-radius:8px}.aeb-datepicker-month__day:hover{background-color:var(--c-btn-ps-default)}.aeb-datepicker-month__day--stub{pointer-events:none;cursor:none}.aeb-datepicker-month__day--today{background-color:var(--c-btn-ps-default)}.aeb-datepicker-month__day--picked{color:var(--c-bg-light);background-color:var(--c-btn-p-default)}.aeb-datepicker-month__day--picked:hover{background-color:var(--c-btn-p-hovered)}.aeb-datepicker-month__day--disabled{color:var(--c-btn-p-disabled);pointer-events:none;cursor:none}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: DateToStrPipe, name: "dateToStr" }, { kind: "pipe", type: IsTodayPipe, name: "isToday" }, { kind: "pipe", type: IsSameDatePipe, name: "isSameDate" }, { kind: "pipe", type: IsDisabledPipe, name: "isDisabled" }], encapsulation: i0.ViewEncapsulation.None }); }
1612
1621
  }
1613
1622
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerMonthComponent, decorators: [{
1614
1623
  type: Component,
1615
- args: [{ selector: 'aeb-datepicker-month', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-datepicker-month__week\">\n @for (day of week; track $index) {\n <div class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\">\n {{ day }}\n </div>\n }\n</div>\n@for (week of month; track $index) {\n <div class=\"aeb-datepicker-month__week\">\n @for (day of week; track $index) {\n @if (!!day) {\n <div\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': day | isToday,\n 'aeb-datepicker-month__day--picked': day | isSameDate: date,\n 'aeb-datepicker-month__day--disabled':\n day | isDisabled: minDate : maxDate : excludedDates\n }\"\n (click)=\"emitDate(day)\"\n >\n {{ day | dateToStr }}\n </div>\n } @else {\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n ></div>\n }\n }\n </div>\n}\n", styles: [".aeb-datepicker-month__week{display:flex;align-items:center;width:fit-content}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:28px;font-size:var(--font-size-s);cursor:pointer;border-radius:var(--border-lightly-rounded)}.aeb-datepicker-month__day:hover{border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-month__day--stub{pointer-events:none;cursor:none}.aeb-datepicker-month__day--stub:hover{border:var(--no-border)}.aeb-datepicker-month__day--today{border:var(--border-thin) solid var(--color-mono-200)}.aeb-datepicker-month__day--picked{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--no-border)}.aeb-datepicker-month__day--disabled{color:var(--color-mono-200);pointer-events:none;cursor:none}.aeb-datepicker-month__day--disabled:hover{border:var(--no-border)}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:var(--font-size-xxs);color:var(--color-mono-200);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:var(--no-border)}\n"] }]
1616
- }], ctorParameters: () => [], propDecorators: { month: [{
1617
- type: Input
1618
- }], date: [{
1619
- type: Input
1620
- }], minDate: [{
1621
- type: Input
1622
- }], maxDate: [{
1623
- type: Input
1624
- }], excludedDates: [{
1625
- type: Input
1626
- }], setDate: [{
1627
- type: Output
1628
- }] } });
1624
+ args: [{ selector: 'div[aebDatepickerMonth]', encapsulation: ViewEncapsulation.None, imports: [NgClass, DateToStrPipe, IsTodayPipe, IsSameDatePipe, IsDisabledPipe], template: "<div class=\"aeb-datepicker-month__header\">\n @for (day of week(); track $index) {\n <div class=\"aeb-datepicker-month__header-day\">\n {{ day }}\n </div>\n }\n</div>\n@for (week of month(); track $index) {\n <div class=\"aeb-datepicker-month__week\">\n @for (day of week; track $index) {\n @if (!!day) {\n <div\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': day | isToday,\n 'aeb-datepicker-month__day--picked': day | isSameDate: date(),\n 'aeb-datepicker-month__day--disabled':\n day | isDisabled: minDate() : maxDate() : excludedDates()\n }\"\n (click)=\"emitDate(day)\"\n >\n {{ day | dateToStr }}\n </div>\n } @else {\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n ></div>\n }\n }\n </div>\n}\n", styles: [".aeb-datepicker-month__header{display:flex;align-items:center;justify-content:space-between;width:fit-content;margin-bottom:16px;font-size:12px;gap:8px}.aeb-datepicker-month__header-day{text-align:center;font-size:12px;color:var(--c-t-secondary);cursor:default;width:32px;height:14px}.aeb-datepicker-month__week{display:flex;align-items:center;width:fit-content}.aeb-datepicker-month__week:not(:last-child){margin-bottom:8px}.aeb-datepicker-month__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:26px;font-size:16px;cursor:pointer;border-radius:8px}.aeb-datepicker-month__day:hover{background-color:var(--c-btn-ps-default)}.aeb-datepicker-month__day--stub{pointer-events:none;cursor:none}.aeb-datepicker-month__day--today{background-color:var(--c-btn-ps-default)}.aeb-datepicker-month__day--picked{color:var(--c-bg-light);background-color:var(--c-btn-p-default)}.aeb-datepicker-month__day--picked:hover{background-color:var(--c-btn-p-hovered)}.aeb-datepicker-month__day--disabled{color:var(--c-btn-p-disabled);pointer-events:none;cursor:none}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}\n"] }]
1625
+ }], ctorParameters: () => [] });
1626
+
1627
+ const monthsLocal = [
1628
+ 'Январь',
1629
+ 'Февраль',
1630
+ 'Март',
1631
+ 'Апрель',
1632
+ 'Май',
1633
+ 'Июнь',
1634
+ 'Июль',
1635
+ 'Август',
1636
+ 'Сентябрь',
1637
+ 'Октябрь',
1638
+ 'Ноябрь',
1639
+ 'Декабрь'
1640
+ ];
1629
1641
 
1630
1642
  /**
1631
- * Компонента для отображения панели со списком лет/месяцев
1643
+ * Pipe to check if a month is disabled based on min/max date constraints
1632
1644
  */
1633
- class DatepickerTilesComponent {
1645
+ class IsMonthDisabledPipe {
1634
1646
  constructor() {
1635
1647
  this.utils = inject(DatepickerUtilsService);
1636
- this.isMonths = false;
1637
- this.isYears = false;
1638
- this.setYear = new EventEmitter();
1639
- this.setMonth = new EventEmitter();
1640
- this.woDays = false;
1641
- this.months = DatepickerUtilsService.monthsLocal;
1642
1648
  }
1643
- ngOnInit() {
1644
- this.years = this.utils.genYears(this.minYear, this.maxYear).reverse();
1645
- }
1646
- ngOnChanges(changes) {
1647
- if (changes.isYears && this.container) {
1648
- setTimeout(() => this.scrollYears());
1649
+ /**
1650
+ * Checks if a month should be disabled
1651
+ * @param month - The month index (0-11)
1652
+ * @param woDays - Whether to check without days (boolean)
1653
+ * @param year - The year for the month
1654
+ * @param minDate - Minimum allowed date
1655
+ * @param maxDate - Maximum allowed date
1656
+ * @returns true if the month should be disabled
1657
+ */
1658
+ transform(month, woDays, year, minDate, maxDate) {
1659
+ if (woDays) {
1660
+ return (this.utils.isMinOverlap(minDate, new Date(year, month)) ||
1661
+ this.utils.isMaxOverlap(maxDate, new Date(year, month)));
1649
1662
  }
1663
+ return false;
1664
+ }
1665
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsMonthDisabledPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1666
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: IsMonthDisabledPipe, isStandalone: true, name: "isMonthDisabled" }); }
1667
+ }
1668
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsMonthDisabledPipe, decorators: [{
1669
+ type: Pipe,
1670
+ args: [{
1671
+ name: 'isMonthDisabled',
1672
+ standalone: true
1673
+ }]
1674
+ }] });
1675
+
1676
+ /**
1677
+ * Компонента для отображения панели со списком месяцев
1678
+ */
1679
+ class DatepickerMonthTilesComponent {
1680
+ constructor() {
1681
+ this.year = input(undefined, ...(ngDevMode ? [{ debugName: "year" }] : []));
1682
+ this.month = input(undefined, ...(ngDevMode ? [{ debugName: "month" }] : []));
1683
+ this.minDate = input(undefined, ...(ngDevMode ? [{ debugName: "minDate" }] : []));
1684
+ this.maxDate = input(undefined, ...(ngDevMode ? [{ debugName: "maxDate" }] : []));
1685
+ this.woDays = input(false, ...(ngDevMode ? [{ debugName: "woDays" }] : []));
1686
+ this.setMonth = output();
1687
+ this.months = signal(monthsLocal, ...(ngDevMode ? [{ debugName: "months" }] : []));
1650
1688
  }
1651
1689
  emitMonth(month) {
1652
1690
  this.setMonth.emit(month);
1653
1691
  }
1654
- emitYear(year) {
1655
- this.setYear.emit(year);
1692
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerMonthTilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1693
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DatepickerMonthTilesComponent, isStandalone: true, selector: "div[aebDatepickerMonthTiles]", inputs: { year: { classPropertyName: "year", publicName: "year", isSignal: true, isRequired: false, transformFunction: null }, month: { classPropertyName: "month", publicName: "month", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, woDays: { classPropertyName: "woDays", publicName: "woDays", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { setMonth: "setMonth" }, host: { properties: { "class.aeb-datepicker-month-tiles": "true" } }, ngImport: i0, template: "@for (monthNum of months(); track monthNum; let i = $index) {\n <div\n class=\"aeb-datepicker-month-tiles__tile\"\n [ngClass]=\"{\n 'aeb-datepicker-month-tiles__tile--active': i === month(),\n 'aeb-datepicker-month-tiles__tile--disabled':\n i | isMonthDisabled: woDays() : year() : minDate() : maxDate()\n }\"\n (click)=\"emitMonth(i)\"\n >\n {{ monthNum }}\n </div>\n}\n", styles: [".aeb-datepicker-month-tiles{width:100%;max-height:192px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.aeb-datepicker-month-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-month-tiles__tile{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:42px;font-size:16px;border-radius:8px;cursor:pointer;padding:0}.aeb-datepicker-month-tiles__tile:hover{background-color:var(--c-btn-ps-default)}.aeb-datepicker-month-tiles__tile--active{color:var(--c-bg-light);background-color:var(--c-btn-p-default)}.aeb-datepicker-month-tiles__tile--active:hover{background-color:var(--c-btn-p-hovered)}.aeb-datepicker-month-tiles__tile--disabled{color:var(--c-btn-p-disabled);pointer-events:none;cursor:none}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: IsMonthDisabledPipe, name: "isMonthDisabled" }], encapsulation: i0.ViewEncapsulation.None }); }
1694
+ }
1695
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerMonthTilesComponent, decorators: [{
1696
+ type: Component,
1697
+ args: [{ selector: 'div[aebDatepickerMonthTiles]', encapsulation: ViewEncapsulation.None, host: {
1698
+ '[class.aeb-datepicker-month-tiles]': 'true'
1699
+ }, imports: [NgClass, IsMonthDisabledPipe], template: "@for (monthNum of months(); track monthNum; let i = $index) {\n <div\n class=\"aeb-datepicker-month-tiles__tile\"\n [ngClass]=\"{\n 'aeb-datepicker-month-tiles__tile--active': i === month(),\n 'aeb-datepicker-month-tiles__tile--disabled':\n i | isMonthDisabled: woDays() : year() : minDate() : maxDate()\n }\"\n (click)=\"emitMonth(i)\"\n >\n {{ monthNum }}\n </div>\n}\n", styles: [".aeb-datepicker-month-tiles{width:100%;max-height:192px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.aeb-datepicker-month-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-month-tiles__tile{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:42px;font-size:16px;border-radius:8px;cursor:pointer;padding:0}.aeb-datepicker-month-tiles__tile:hover{background-color:var(--c-btn-ps-default)}.aeb-datepicker-month-tiles__tile--active{color:var(--c-bg-light);background-color:var(--c-btn-p-default)}.aeb-datepicker-month-tiles__tile--active:hover{background-color:var(--c-btn-p-hovered)}.aeb-datepicker-month-tiles__tile--disabled{color:var(--c-btn-p-disabled);pointer-events:none;cursor:none}\n"] }]
1700
+ }], ctorParameters: () => [] });
1701
+
1702
+ /**
1703
+ * Pipe to check if a year is disabled based on min/max date constraints
1704
+ */
1705
+ class IsYearDisabledPipe {
1706
+ constructor() {
1707
+ this.utils = inject(DatepickerUtilsService);
1656
1708
  }
1657
- scrollYears() {
1658
- if (this.isMonths) {
1659
- return;
1709
+ /**
1710
+ * Checks if a year should be disabled
1711
+ * @param year - The year to check
1712
+ * @param woDays - Whether to check without days (boolean)
1713
+ * @param minDate - Minimum allowed date
1714
+ * @param maxDate - Maximum allowed date
1715
+ * @returns true if the year should be disabled
1716
+ */
1717
+ transform(year, woDays, minDate, maxDate) {
1718
+ if (woDays) {
1719
+ return (this.utils.isMinOverlap(minDate, new Date(year, 11, 31)) ||
1720
+ this.utils.isMaxOverlap(maxDate, new Date(year, 0)));
1660
1721
  }
1661
- const diff = Math.abs(this.utils.yearsDiff(this.utils.startOfYear(this.date), this.utils.startOfYear(this.maxYear)));
1662
- const yearRowHeight = 54;
1663
- const steps = Math.floor(diff / 3);
1664
- const padding = 6;
1665
- const marginDelta = steps;
1666
- this.container.nativeElement.scrollTop =
1667
- yearRowHeight * steps + marginDelta - padding;
1722
+ return false;
1668
1723
  }
1669
- isMonthDisabled(month) {
1670
- if (this.woDays) {
1671
- return (this.utils.isMinOverlap(this.minDate, new Date(this.year, month)) ||
1672
- this.utils.isMaxOverlap(this.maxDate, new Date(this.year, month)));
1673
- }
1674
- else {
1675
- return false;
1676
- }
1724
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsYearDisabledPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1725
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: IsYearDisabledPipe, isStandalone: true, name: "isYearDisabled" }); }
1726
+ }
1727
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: IsYearDisabledPipe, decorators: [{
1728
+ type: Pipe,
1729
+ args: [{
1730
+ name: 'isYearDisabled',
1731
+ standalone: true
1732
+ }]
1733
+ }] });
1734
+
1735
+ /**
1736
+ * Компонента для отображения панели со списком лет
1737
+ */
1738
+ class DatepickerYearTilesComponent {
1739
+ constructor() {
1740
+ this._utils = inject(DatepickerUtilsService);
1741
+ this.year = input(undefined, ...(ngDevMode ? [{ debugName: "year" }] : []));
1742
+ this.minYear = input(undefined, ...(ngDevMode ? [{ debugName: "minYear" }] : []));
1743
+ this.maxYear = input(undefined, ...(ngDevMode ? [{ debugName: "maxYear" }] : []));
1744
+ this.minDate = input(undefined, ...(ngDevMode ? [{ debugName: "minDate" }] : []));
1745
+ this.maxDate = input(undefined, ...(ngDevMode ? [{ debugName: "maxDate" }] : []));
1746
+ this.woDays = input(false, ...(ngDevMode ? [{ debugName: "woDays" }] : []));
1747
+ this.setYear = output();
1748
+ this.yearTiles = viewChildren('yearTile', ...(ngDevMode ? [{ debugName: "yearTiles" }] : []));
1749
+ this.years = signal([], ...(ngDevMode ? [{ debugName: "years" }] : []));
1677
1750
  }
1678
- isYearDisabled(year) {
1679
- if (this.woDays) {
1680
- return (this.utils.isMinOverlap(this.minDate, new Date(year, 11, 31)) ||
1681
- this.utils.isMaxOverlap(this.maxDate, new Date(year, 0)));
1682
- }
1683
- else {
1684
- return false;
1685
- }
1751
+ ngOnInit() {
1752
+ this.years.set(this._utils.genYears(this.minYear(), this.maxYear()).reverse());
1753
+ }
1754
+ ngAfterViewInit() {
1755
+ this.scrollToCurrentSelection();
1756
+ }
1757
+ emitYear(year) {
1758
+ this.setYear.emit(year);
1759
+ }
1760
+ scrollToCurrentSelection() {
1761
+ this.yearTiles().forEach((yearTile) => {
1762
+ if (this.year() === Number(yearTile.nativeElement.innerHTML)) {
1763
+ yearTile.nativeElement.scrollIntoView();
1764
+ }
1765
+ });
1686
1766
  }
1687
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerTilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1688
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DatepickerTilesComponent, isStandalone: false, selector: "aeb-datepicker-tiles", inputs: { date: "date", isMonths: "isMonths", isYears: "isYears", year: "year", month: "month", minYear: "minYear", maxYear: "maxYear", minDate: "minDate", maxDate: "maxDate", woDays: "woDays" }, outputs: { setYear: "setYear", setMonth: "setMonth" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"aeb-datepicker-tiles\" #container>\n <div\n class=\"aeb-datepicker-tiles__scroll\"\n [ngClass]=\"{ 'aeb-datepicker-tiles__scroll--months': isMonths }\"\n >\n @for (yearNum of years; track yearNum) {\n <div\n [style.display]=\"!isMonths ? 'flex' : 'none'\"\n class=\"aeb-datepicker-tiles__tile\"\n [ngClass]=\"{\n 'aeb-datepicker-tiles__tile--active': yearNum === year,\n 'aeb-datepicker-tiles__tile--disabled': isYearDisabled(yearNum)\n }\"\n (click)=\"emitYear(yearNum)\"\n >\n {{ yearNum }}\n </div>\n }\n @for (monthNum of months; track monthNum; let i = $index) {\n <div\n [style.display]=\"isMonths ? 'flex' : 'none'\"\n class=\"aeb-datepicker-tiles__tile\"\n [ngClass]=\"{\n 'aeb-datepicker-tiles__tile--active': i === month,\n 'aeb-datepicker-tiles__tile--disabled': isMonthDisabled(i)\n }\"\n (click)=\"emitMonth(i)\"\n >\n {{ monthNum }}\n </div>\n }\n </div>\n</div>\n", styles: [".aeb-datepicker-tiles{position:relative;width:272px;height:220px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.aeb-datepicker-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-tiles__scroll{position:absolute;display:grid;width:100%;height:100%;grid-template-columns:1fr 1fr 1fr;gap:12px 8px}.aeb-datepicker-tiles__tile{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:44px;font-size:var(--font-size-s);border:var(--border-thin) solid var(--color-mono-200);border-radius:var(--border-lightly-rounded)}.aeb-datepicker-tiles__tile:hover{cursor:pointer;border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-tiles__tile--active{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-tiles__tile--disabled{color:var(--color-mono-200);pointer-events:none;cursor:none}.aeb-datepicker-tiles__tile--disabled:hover{border:var(--no-border)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None }); }
1767
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerYearTilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1768
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DatepickerYearTilesComponent, isStandalone: true, selector: "div[aebDatepickerYearTiles]", inputs: { year: { classPropertyName: "year", publicName: "year", isSignal: true, isRequired: false, transformFunction: null }, minYear: { classPropertyName: "minYear", publicName: "minYear", isSignal: true, isRequired: false, transformFunction: null }, maxYear: { classPropertyName: "maxYear", publicName: "maxYear", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, woDays: { classPropertyName: "woDays", publicName: "woDays", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { setYear: "setYear" }, host: { properties: { "class.aeb-datepicker-year-tiles": "true" } }, viewQueries: [{ propertyName: "yearTiles", predicate: ["yearTile"], descendants: true, isSignal: true }], ngImport: i0, template: "@for (yearNum of years(); track yearNum) {\n <div\n #yearTile\n class=\"aeb-datepicker-year-tiles__tile\"\n [ngClass]=\"{\n 'aeb-datepicker-year-tiles__tile--active': yearNum === year(),\n 'aeb-datepicker-year-tiles__tile--disabled':\n yearNum | isYearDisabled: woDays() : minDate() : maxDate()\n }\"\n (click)=\"emitYear(yearNum)\"\n >\n {{ yearNum }}\n </div>\n}\n", styles: [".aeb-datepicker-year-tiles{width:100%;max-height:192px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none;display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:8px}.aeb-datepicker-year-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-year-tiles__tile{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:42px;font-size:16px;border-radius:8px;cursor:pointer;padding:0}.aeb-datepicker-year-tiles__tile:hover{background-color:var(--c-btn-ps-default)}.aeb-datepicker-year-tiles__tile--active{color:var(--c-bg-light);background-color:var(--c-btn-p-default)}.aeb-datepicker-year-tiles__tile--active:hover{background-color:var(--c-btn-p-hovered)}.aeb-datepicker-year-tiles__tile--disabled{color:var(--c-btn-p-disabled);pointer-events:none;cursor:none}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: IsYearDisabledPipe, name: "isYearDisabled" }], encapsulation: i0.ViewEncapsulation.None }); }
1689
1769
  }
1690
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerTilesComponent, decorators: [{
1770
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerYearTilesComponent, decorators: [{
1691
1771
  type: Component,
1692
- args: [{ selector: 'aeb-datepicker-tiles', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-datepicker-tiles\" #container>\n <div\n class=\"aeb-datepicker-tiles__scroll\"\n [ngClass]=\"{ 'aeb-datepicker-tiles__scroll--months': isMonths }\"\n >\n @for (yearNum of years; track yearNum) {\n <div\n [style.display]=\"!isMonths ? 'flex' : 'none'\"\n class=\"aeb-datepicker-tiles__tile\"\n [ngClass]=\"{\n 'aeb-datepicker-tiles__tile--active': yearNum === year,\n 'aeb-datepicker-tiles__tile--disabled': isYearDisabled(yearNum)\n }\"\n (click)=\"emitYear(yearNum)\"\n >\n {{ yearNum }}\n </div>\n }\n @for (monthNum of months; track monthNum; let i = $index) {\n <div\n [style.display]=\"isMonths ? 'flex' : 'none'\"\n class=\"aeb-datepicker-tiles__tile\"\n [ngClass]=\"{\n 'aeb-datepicker-tiles__tile--active': i === month,\n 'aeb-datepicker-tiles__tile--disabled': isMonthDisabled(i)\n }\"\n (click)=\"emitMonth(i)\"\n >\n {{ monthNum }}\n </div>\n }\n </div>\n</div>\n", styles: [".aeb-datepicker-tiles{position:relative;width:272px;height:220px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.aeb-datepicker-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-tiles__scroll{position:absolute;display:grid;width:100%;height:100%;grid-template-columns:1fr 1fr 1fr;gap:12px 8px}.aeb-datepicker-tiles__tile{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:44px;font-size:var(--font-size-s);border:var(--border-thin) solid var(--color-mono-200);border-radius:var(--border-lightly-rounded)}.aeb-datepicker-tiles__tile:hover{cursor:pointer;border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-tiles__tile--active{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-tiles__tile--disabled{color:var(--color-mono-200);pointer-events:none;cursor:none}.aeb-datepicker-tiles__tile--disabled:hover{border:var(--no-border)}\n"] }]
1693
- }], ctorParameters: () => [], propDecorators: { container: [{
1694
- type: ViewChild,
1695
- args: ['container']
1696
- }], date: [{
1697
- type: Input
1698
- }], isMonths: [{
1699
- type: Input
1700
- }], isYears: [{
1701
- type: Input
1702
- }], year: [{
1703
- type: Input
1704
- }], setYear: [{
1705
- type: Output
1706
- }], month: [{
1707
- type: Input
1708
- }], setMonth: [{
1709
- type: Output
1710
- }], minYear: [{
1711
- type: Input
1712
- }], maxYear: [{
1713
- type: Input
1714
- }], minDate: [{
1715
- type: Input
1716
- }], maxDate: [{
1717
- type: Input
1718
- }], woDays: [{
1719
- type: Input
1720
- }] } });
1772
+ args: [{ selector: 'div[aebDatepickerYearTiles]', encapsulation: ViewEncapsulation.None, host: {
1773
+ '[class.aeb-datepicker-year-tiles]': 'true'
1774
+ }, imports: [NgClass, IsYearDisabledPipe], template: "@for (yearNum of years(); track yearNum) {\n <div\n #yearTile\n class=\"aeb-datepicker-year-tiles__tile\"\n [ngClass]=\"{\n 'aeb-datepicker-year-tiles__tile--active': yearNum === year(),\n 'aeb-datepicker-year-tiles__tile--disabled':\n yearNum | isYearDisabled: woDays() : minDate() : maxDate()\n }\"\n (click)=\"emitYear(yearNum)\"\n >\n {{ yearNum }}\n </div>\n}\n", styles: [".aeb-datepicker-year-tiles{width:100%;max-height:192px;overflow:auto;-ms-overflow-style:none;scrollbar-width:none;display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:8px}.aeb-datepicker-year-tiles::-webkit-scrollbar{display:none}.aeb-datepicker-year-tiles__tile{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:42px;font-size:16px;border-radius:8px;cursor:pointer;padding:0}.aeb-datepicker-year-tiles__tile:hover{background-color:var(--c-btn-ps-default)}.aeb-datepicker-year-tiles__tile--active{color:var(--c-bg-light);background-color:var(--c-btn-p-default)}.aeb-datepicker-year-tiles__tile--active:hover{background-color:var(--c-btn-p-hovered)}.aeb-datepicker-year-tiles__tile--disabled{color:var(--c-btn-p-disabled);pointer-events:none;cursor:none}\n"] }]
1775
+ }], ctorParameters: () => [] });
1721
1776
 
1722
1777
  class DatepickerCoreComponent {
1723
1778
  constructor() {
1724
- this.utils = inject(DatepickerUtilsService);
1725
- this.withBackground = true;
1726
- this.align = 'right';
1727
- this.withoutDays = false;
1728
- this.hidden = true;
1729
- this.dateChange = new EventEmitter();
1730
- this.woDaysMonth = new EventEmitter();
1731
- this.woDaysYear = new EventEmitter();
1732
- this.woDaysMonthSubInc = new EventEmitter();
1733
- this.isShowYears = false;
1734
- this.isShowMonths = false;
1779
+ this._utils = inject(DatepickerUtilsService);
1780
+ this.date = input(undefined, ...(ngDevMode ? [{ debugName: "date" }] : []));
1781
+ this.minDate = input(undefined, ...(ngDevMode ? [{ debugName: "minDate" }] : []));
1782
+ this.maxDate = input(undefined, ...(ngDevMode ? [{ debugName: "maxDate" }] : []));
1783
+ this.excludedDates = input(undefined, ...(ngDevMode ? [{ debugName: "excludedDates" }] : []));
1784
+ this.minYear = input(undefined, ...(ngDevMode ? [{ debugName: "minYear" }] : []));
1785
+ this.maxYear = input(undefined, ...(ngDevMode ? [{ debugName: "maxYear" }] : []));
1786
+ this.withoutDays = input(false, ...(ngDevMode ? [{ debugName: "withoutDays" }] : []));
1787
+ this.hidden = input(true, ...(ngDevMode ? [{ debugName: "hidden" }] : []));
1788
+ this.dateChange = output();
1789
+ this.woDaysMonth = output();
1790
+ this.woDaysYear = output();
1791
+ this.woDaysMonthSubInc = output();
1792
+ this.month = signal(undefined, ...(ngDevMode ? [{ debugName: "month" }] : []));
1793
+ this.mode = signal('none', ...(ngDevMode ? [{ debugName: "mode" }] : []));
1794
+ this.currentMonth = signal(undefined, ...(ngDevMode ? [{ debugName: "currentMonth" }] : []));
1795
+ this.currentYear = signal(undefined, ...(ngDevMode ? [{ debugName: "currentYear" }] : []));
1735
1796
  }
1736
1797
  ngOnInit() {
1737
- this.currentMonth = this.utils.getMonth(this.date);
1738
- this.currentYear = this.utils.getYear(this.date);
1739
- this.month = this.utils.genMonth(this.date);
1740
- if (this.withoutDays) {
1741
- this.isShowMonths = true;
1742
- }
1743
- }
1744
- ngOnChanges(changes) {
1745
- if (changes.withoutDays && changes.withoutDays.currentValue) {
1746
- this.isShowMonths = true;
1798
+ this.currentMonth.set(this._utils.getMonth(this.date()));
1799
+ this.currentYear.set(this._utils.getYear(this.date()));
1800
+ this.month.set(this._utils.genMonth(this.date()));
1801
+ if (this.withoutDays()) {
1802
+ this.mode.set('months');
1747
1803
  }
1748
1804
  }
1749
1805
  addMonth() {
1750
1806
  const startOfMonth = this.firstDay();
1751
- if (this.currentMonth === 11) {
1752
- this.currentMonth = 0;
1753
- this.currentYear = this.currentYear + 1;
1807
+ if (this.currentMonth() === 11) {
1808
+ this.currentMonth.set(0);
1809
+ this.currentYear.update((value) => value + 1);
1754
1810
  }
1755
1811
  else {
1756
- this.currentMonth = this.currentMonth + 1;
1812
+ this.currentMonth.update((value) => value + 1);
1757
1813
  }
1758
- this.month = this.utils.genMonth(this.utils.addMonths(startOfMonth, 1));
1759
- if (this.withoutDays) {
1814
+ this.month.set(this._utils.genMonth(this._utils.addMonths(startOfMonth, 1)));
1815
+ if (this.withoutDays()) {
1760
1816
  this.woDaysMonthSubInc.emit(true);
1761
1817
  }
1762
1818
  }
1763
1819
  subMonth() {
1764
1820
  const startOfMonth = this.firstDay();
1765
- if (this.currentMonth === 0) {
1766
- this.currentMonth = 11;
1767
- this.currentYear = this.currentYear - 1;
1821
+ if (this.currentMonth() === 0) {
1822
+ this.currentMonth.set(11);
1823
+ this.currentYear.update((value) => value - 1);
1768
1824
  }
1769
1825
  else {
1770
- this.currentMonth = this.currentMonth - 1;
1826
+ this.currentMonth.update((value) => value - 1);
1771
1827
  }
1772
- this.month = this.utils.genMonth(this.utils.subMonths(startOfMonth, 1));
1773
- if (this.withoutDays) {
1828
+ this.month.set(this._utils.genMonth(this._utils.subMonths(startOfMonth, 1)));
1829
+ if (this.withoutDays()) {
1774
1830
  this.woDaysMonthSubInc.emit(false);
1775
1831
  }
1776
1832
  }
1777
1833
  setMonth(month, erase) {
1778
- if (this.withoutDays) {
1834
+ if (this.withoutDays()) {
1779
1835
  this.woDaysMonth.emit([month, erase]);
1780
- this.currentMonth = month;
1836
+ this.currentMonth.set(month);
1781
1837
  this.reDraw();
1782
1838
  return;
1783
1839
  }
1784
- this.currentMonth = month;
1785
- this.isShowMonths = false;
1840
+ this.currentMonth.set(month);
1841
+ this.mode.set('none');
1786
1842
  this.reDraw();
1787
1843
  }
1788
1844
  setYear(year, erase) {
1789
- if (this.withoutDays) {
1845
+ if (this.withoutDays()) {
1790
1846
  this.woDaysYear.emit([year, erase]);
1791
- this.currentYear = year;
1847
+ this.currentYear.set(year);
1792
1848
  this.reDraw();
1793
1849
  return;
1794
1850
  }
1795
- this.currentYear = year;
1796
- this.isShowYears = false;
1851
+ this.currentYear.set(year);
1852
+ this.mode.set('none');
1797
1853
  this.reDraw();
1798
1854
  }
1799
1855
  setDate(date) {
1800
1856
  this.dateChange.emit(date);
1801
1857
  }
1802
1858
  reDraw() {
1803
- const startOfMonth = this.utils.setMonth(this.currentMonth, this.currentYear);
1804
- this.month = this.utils.genMonth(startOfMonth);
1859
+ const startOfMonth = this._utils.setMonth(this.currentMonth(), this.currentYear());
1860
+ this.month.set(this._utils.genMonth(startOfMonth));
1805
1861
  }
1806
1862
  firstDay() {
1807
- return this.month[0].filter((item) => item)[0];
1863
+ return this.month()[0].filter((item) => item)[0];
1808
1864
  }
1809
1865
  showMonthsHandler() {
1810
- if (this.withoutDays && this.isShowMonths) {
1866
+ if (this.withoutDays() && this.mode() === 'months') {
1811
1867
  return;
1812
1868
  }
1813
- if (this.isShowYears) {
1814
- this.isShowYears = false;
1815
- }
1816
- this.isShowMonths = !this.isShowMonths;
1869
+ this.mode.set(this.mode() === 'months' ? 'none' : 'months');
1817
1870
  }
1818
1871
  showYearsHandler() {
1819
- if (this.withoutDays && this.isShowYears) {
1872
+ if (this.withoutDays() && this.mode() === 'years') {
1820
1873
  return;
1821
1874
  }
1822
- if (this.isShowMonths) {
1823
- this.isShowMonths = false;
1824
- }
1825
- this.isShowYears = !this.isShowYears;
1875
+ this.mode.set(this.mode() === 'years' ? 'none' : 'years');
1826
1876
  }
1827
1877
  startOfYear(year) {
1828
1878
  return new Date(year, 0, 1);
1829
1879
  }
1830
1880
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerCoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1831
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: DatepickerCoreComponent, isStandalone: false, selector: "aeb-datepicker-core", inputs: { date: "date", minDate: "minDate", maxDate: "maxDate", excludedDates: "excludedDates", minYear: "minYear", maxYear: "maxYear", withBackground: "withBackground", align: "align", withoutDays: "withoutDays", hidden: "hidden" }, outputs: { dateChange: "dateChange", woDaysMonth: "woDaysMonth", woDaysYear: "woDaysYear", woDaysMonthSubInc: "woDaysMonthSubInc" }, providers: [{ provide: LOCALE_ID, useValue: 'ru' }], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{\n 'aeb-datepicker-core--with-background': withBackground,\n 'aeb-datepicker-core--left': align === 'left',\n 'aeb-datepicker-core--right': align === 'right',\n 'aeb-datepicker-core--hidden': hidden\n }\"\n #container\n>\n <div class=\"aeb-datepicker-core__controls\">\n <div class=\"aeb-datepicker-core__arrow\" (click)=\"subMonth()\">\n <svg\n width=\"9\"\n height=\"16\"\n viewBox=\"0 0 9 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <div\n class=\"aeb-datepicker-core__btn aeb-datepicker-core__btn--month\"\n (click)=\"showMonthsHandler()\"\n >\n {{ firstDay() | date: 'LLLL' | titlecase }}\n <div\n class=\"aeb-datepicker-core__arrow-icon\"\n [ngClass]=\"{ 'aeb-datepicker-core__arrow-icon--active': isShowMonths }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-datepicker-core__btn\" (click)=\"showYearsHandler()\">\n {{ firstDay() | date: 'yyyy' }}\n <div\n class=\"aeb-datepicker-core__arrow-icon\"\n [ngClass]=\"{ 'aeb-datepicker-core__arrow-icon--active': isShowYears }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div\n class=\"aeb-datepicker-core__arrow aeb-datepicker-core__arrow--right\"\n (click)=\"addMonth()\"\n >\n <svg\n width=\"9\"\n height=\"16\"\n viewBox=\"0 0 9 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-datepicker-core__calendar\">\n <div [style.display]=\"!isShowYears && !isShowMonths ? 'block' : 'none'\">\n <aeb-datepicker-month\n [month]=\"month\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n (setDate)=\"setDate($event)\"\n >\n </aeb-datepicker-month>\n </div>\n <div [style.display]=\"isShowYears ? 'block' : 'none'\">\n <aeb-datepicker-tiles\n [year]=\"currentYear\"\n [date]=\"startOfYear(currentYear)\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (setYear)=\"setYear($event)\"\n [isYears]=\"isShowYears\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [woDays]=\"withoutDays\"\n >\n </aeb-datepicker-tiles>\n </div>\n <div [style.display]=\"isShowMonths ? 'block' : 'none'\">\n <aeb-datepicker-tiles\n [isMonths]=\"isShowMonths\"\n [month]=\"currentMonth\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (setMonth)=\"setMonth($event)\"\n [year]=\"currentYear\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [woDays]=\"withoutDays\"\n >\n </aeb-datepicker-tiles>\n </div>\n </div>\n</div>\n", styles: [".aeb-datepicker-core{z-index:9999;-webkit-user-select:none;user-select:none;position:absolute;top:72px}.aeb-datepicker-core--hidden{display:none}.aeb-datepicker-core--with-background{padding:10px;background-color:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-medium-rounded)}.aeb-datepicker-core__calendar{width:100%;min-height:220px}.aeb-datepicker-core__controls{display:flex;align-items:center;justify-content:center;margin-bottom:10px}.aeb-datepicker-core__arrow{cursor:pointer;display:flex}.aeb-datepicker-core__arrow--right{transform:rotate(180deg)}.aeb-datepicker-core__btn{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:72px;padding:6px 10px;margin-right:20px;font-size:var(--font-size-xs);cursor:pointer;border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-lightly-rounded)}.aeb-datepicker-core__btn--month{width:112px;margin-right:10px;margin-left:20px}.aeb-datepicker-core__arrow-icon{position:relative;bottom:2px;box-sizing:border-box}.aeb-datepicker-core__arrow-icon--active{transform:rotate(180deg)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: DatepickerMonthComponent, selector: "aeb-datepicker-month", inputs: ["month", "date", "minDate", "maxDate", "excludedDates"], outputs: ["setDate"] }, { kind: "component", type: DatepickerTilesComponent, selector: "aeb-datepicker-tiles", inputs: ["date", "isMonths", "isYears", "year", "month", "minYear", "maxYear", "minDate", "maxDate", "woDays"], outputs: ["setYear", "setMonth"] }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: i1.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None }); }
1881
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", type: DatepickerCoreComponent, isStandalone: true, selector: "div[aebDatepickerCore]", inputs: { date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, excludedDates: { classPropertyName: "excludedDates", publicName: "excludedDates", isSignal: true, isRequired: false, transformFunction: null }, minYear: { classPropertyName: "minYear", publicName: "minYear", isSignal: true, isRequired: false, transformFunction: null }, maxYear: { classPropertyName: "maxYear", publicName: "maxYear", isSignal: true, isRequired: false, transformFunction: null }, withoutDays: { classPropertyName: "withoutDays", publicName: "withoutDays", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateChange: "dateChange", woDaysMonth: "woDaysMonth", woDaysYear: "woDaysYear", woDaysMonthSubInc: "woDaysMonthSubInc" }, host: { properties: { "class.aeb-datepicker-core": "true", "class.aeb-datepicker-core--hidden": "hidden()" } }, providers: [{ provide: LOCALE_ID, useValue: 'ru' }], ngImport: i0, template: "<div class=\"aeb-datepicker-core__controls\">\n <div class=\"aeb-datepicker-core__arrow\" (click)=\"subMonth()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15 5L8.35355 11.6464C8.15829 11.8417 8.15829 12.1583 8.35355 12.3536L15 19\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <div\n class=\"aeb-datepicker-core__btn aeb-datepicker-core__btn--month\"\n [class.aeb-datepicker-core__btn--active]=\"mode() === 'months'\"\n (click)=\"showMonthsHandler()\"\n >\n {{ firstDay() | date: 'LLLL' | titlecase }}\n </div>\n <div\n class=\"aeb-datepicker-core__btn\"\n [class.aeb-datepicker-core__btn--active]=\"mode() === 'years'\"\n (click)=\"showYearsHandler()\"\n >\n {{ firstDay() | date: 'yyyy' }}\n </div>\n <div class=\"aeb-datepicker-core__arrow\" (click)=\"addMonth()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 5L15.6464 11.6464C15.8417 11.8417 15.8417 12.1583 15.6464 12.3536L9 19\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n</div>\n<div\n aebDatepickerMonth\n [style.display]=\"mode() === 'none' ? 'block' : 'none'\"\n [month]=\"month()\"\n [date]=\"date()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [excludedDates]=\"excludedDates()\"\n (setDate)=\"setDate($event)\"\n></div>\n\n<div\n aebDatepickerYearTiles\n [style.display]=\"mode() === 'years' ? 'grid' : 'none'\"\n [year]=\"currentYear()\"\n [minYear]=\"minYear()\"\n [maxYear]=\"maxYear()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [woDays]=\"withoutDays()\"\n (setYear)=\"setYear($event)\"\n></div>\n\n<div\n aebDatepickerMonthTiles\n [style.display]=\"mode() === 'months' ? 'grid' : 'none'\"\n [year]=\"currentYear()\"\n [month]=\"currentMonth()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [woDays]=\"withoutDays()\"\n (setMonth)=\"setMonth($event)\"\n></div>\n", styles: [".aeb-datepicker-core{z-index:var(--z-dropdown);-webkit-user-select:none;user-select:none;position:absolute;top:62px;background-color:var(--c-bg-light);padding:20px;border-radius:20px;box-shadow:0 4px 12px #27303e26;opacity:0;visibility:hidden;transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-datepicker-core--hidden{opacity:0;visibility:hidden;transform:scaleY(.8) rotateX(-60deg)}.aeb-datepicker-core:not(.aeb-datepicker-core--hidden){opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}.aeb-datepicker-core__calendar{width:100%}.aeb-datepicker-core__controls{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.aeb-datepicker-core__arrow{cursor:pointer;display:flex}.aeb-datepicker-core__btn{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:72px;height:32px;padding:6px 10px;margin-right:16px;font-size:14px;cursor:pointer;border-radius:8px;background-color:var(--c-bg-surface)}.aeb-datepicker-core__btn--month{width:112px;margin-right:8px;margin-left:16px}.aeb-datepicker-core__btn--active{color:var(--c-t-links)}\n"], dependencies: [{ kind: "component", type: DatepickerMonthComponent, selector: "div[aebDatepickerMonth]", inputs: ["month", "date", "minDate", "maxDate", "excludedDates"], outputs: ["setDate"] }, { kind: "component", type: DatepickerMonthTilesComponent, selector: "div[aebDatepickerMonthTiles]", inputs: ["year", "month", "minDate", "maxDate", "woDays"], outputs: ["setMonth"] }, { kind: "component", type: DatepickerYearTilesComponent, selector: "div[aebDatepickerYearTiles]", inputs: ["year", "minYear", "maxYear", "minDate", "maxDate", "woDays"], outputs: ["setYear"] }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None }); }
1832
1882
  }
1833
1883
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerCoreComponent, decorators: [{
1834
1884
  type: Component,
1835
- args: [{ selector: 'aeb-datepicker-core', providers: [{ provide: LOCALE_ID, useValue: 'ru' }], encapsulation: ViewEncapsulation.None, standalone: false, template: "<div\n class=\"aeb-datepicker-core\"\n [ngClass]=\"{\n 'aeb-datepicker-core--with-background': withBackground,\n 'aeb-datepicker-core--left': align === 'left',\n 'aeb-datepicker-core--right': align === 'right',\n 'aeb-datepicker-core--hidden': hidden\n }\"\n #container\n>\n <div class=\"aeb-datepicker-core__controls\">\n <div class=\"aeb-datepicker-core__arrow\" (click)=\"subMonth()\">\n <svg\n width=\"9\"\n height=\"16\"\n viewBox=\"0 0 9 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <div\n class=\"aeb-datepicker-core__btn aeb-datepicker-core__btn--month\"\n (click)=\"showMonthsHandler()\"\n >\n {{ firstDay() | date: 'LLLL' | titlecase }}\n <div\n class=\"aeb-datepicker-core__arrow-icon\"\n [ngClass]=\"{ 'aeb-datepicker-core__arrow-icon--active': isShowMonths }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-datepicker-core__btn\" (click)=\"showYearsHandler()\">\n {{ firstDay() | date: 'yyyy' }}\n <div\n class=\"aeb-datepicker-core__arrow-icon\"\n [ngClass]=\"{ 'aeb-datepicker-core__arrow-icon--active': isShowYears }\"\n >\n <svg\n width=\"10\"\n height=\"6\"\n viewBox=\"0 0 10 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 1L5.07071 4.92929C5.03166 4.96834 4.96834 4.96834 4.92929 4.92929L1 1\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div\n class=\"aeb-datepicker-core__arrow aeb-datepicker-core__arrow--right\"\n (click)=\"addMonth()\"\n >\n <svg\n width=\"9\"\n height=\"16\"\n viewBox=\"0 0 9 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 1L1.35355 7.64645C1.15829 7.84171 1.15829 8.15829 1.35355 8.35355L8 15\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-datepicker-core__calendar\">\n <div [style.display]=\"!isShowYears && !isShowMonths ? 'block' : 'none'\">\n <aeb-datepicker-month\n [month]=\"month\"\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n (setDate)=\"setDate($event)\"\n >\n </aeb-datepicker-month>\n </div>\n <div [style.display]=\"isShowYears ? 'block' : 'none'\">\n <aeb-datepicker-tiles\n [year]=\"currentYear\"\n [date]=\"startOfYear(currentYear)\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (setYear)=\"setYear($event)\"\n [isYears]=\"isShowYears\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [woDays]=\"withoutDays\"\n >\n </aeb-datepicker-tiles>\n </div>\n <div [style.display]=\"isShowMonths ? 'block' : 'none'\">\n <aeb-datepicker-tiles\n [isMonths]=\"isShowMonths\"\n [month]=\"currentMonth\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (setMonth)=\"setMonth($event)\"\n [year]=\"currentYear\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [woDays]=\"withoutDays\"\n >\n </aeb-datepicker-tiles>\n </div>\n </div>\n</div>\n", styles: [".aeb-datepicker-core{z-index:9999;-webkit-user-select:none;user-select:none;position:absolute;top:72px}.aeb-datepicker-core--hidden{display:none}.aeb-datepicker-core--with-background{padding:10px;background-color:var(--color-mono-0);border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-medium-rounded)}.aeb-datepicker-core__calendar{width:100%;min-height:220px}.aeb-datepicker-core__controls{display:flex;align-items:center;justify-content:center;margin-bottom:10px}.aeb-datepicker-core__arrow{cursor:pointer;display:flex}.aeb-datepicker-core__arrow--right{transform:rotate(180deg)}.aeb-datepicker-core__btn{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:72px;padding:6px 10px;margin-right:20px;font-size:var(--font-size-xs);cursor:pointer;border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-lightly-rounded)}.aeb-datepicker-core__btn--month{width:112px;margin-right:10px;margin-left:20px}.aeb-datepicker-core__arrow-icon{position:relative;bottom:2px;box-sizing:border-box}.aeb-datepicker-core__arrow-icon--active{transform:rotate(180deg)}\n"] }]
1836
- }], ctorParameters: () => [], propDecorators: { date: [{
1837
- type: Input
1838
- }], minDate: [{
1839
- type: Input
1840
- }], maxDate: [{
1841
- type: Input
1842
- }], excludedDates: [{
1843
- type: Input
1844
- }], minYear: [{
1845
- type: Input
1846
- }], maxYear: [{
1847
- type: Input
1848
- }], withBackground: [{
1849
- type: Input
1850
- }], align: [{
1851
- type: Input
1852
- }], withoutDays: [{
1853
- type: Input
1854
- }], hidden: [{
1855
- type: Input
1856
- }], dateChange: [{
1857
- type: Output
1858
- }], woDaysMonth: [{
1859
- type: Output
1860
- }], woDaysYear: [{
1861
- type: Output
1862
- }], woDaysMonthSubInc: [{
1863
- type: Output
1864
- }], container: [{
1865
- type: ViewChild,
1866
- args: ['container']
1867
- }] } });
1885
+ args: [{ selector: 'div[aebDatepickerCore]', providers: [{ provide: LOCALE_ID, useValue: 'ru' }], encapsulation: ViewEncapsulation.None, host: {
1886
+ '[class.aeb-datepicker-core]': 'true',
1887
+ '[class.aeb-datepicker-core--hidden]': 'hidden()'
1888
+ }, imports: [
1889
+ DatepickerMonthComponent,
1890
+ DatepickerMonthTilesComponent,
1891
+ DatepickerYearTilesComponent,
1892
+ TitleCasePipe,
1893
+ DatePipe
1894
+ ], template: "<div class=\"aeb-datepicker-core__controls\">\n <div class=\"aeb-datepicker-core__arrow\" (click)=\"subMonth()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M15 5L8.35355 11.6464C8.15829 11.8417 8.15829 12.1583 8.35355 12.3536L15 19\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n <div\n class=\"aeb-datepicker-core__btn aeb-datepicker-core__btn--month\"\n [class.aeb-datepicker-core__btn--active]=\"mode() === 'months'\"\n (click)=\"showMonthsHandler()\"\n >\n {{ firstDay() | date: 'LLLL' | titlecase }}\n </div>\n <div\n class=\"aeb-datepicker-core__btn\"\n [class.aeb-datepicker-core__btn--active]=\"mode() === 'years'\"\n (click)=\"showYearsHandler()\"\n >\n {{ firstDay() | date: 'yyyy' }}\n </div>\n <div class=\"aeb-datepicker-core__arrow\" (click)=\"addMonth()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9 5L15.6464 11.6464C15.8417 11.8417 15.8417 12.1583 15.6464 12.3536L9 19\"\n stroke=\"#1F2632\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n</div>\n<div\n aebDatepickerMonth\n [style.display]=\"mode() === 'none' ? 'block' : 'none'\"\n [month]=\"month()\"\n [date]=\"date()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [excludedDates]=\"excludedDates()\"\n (setDate)=\"setDate($event)\"\n></div>\n\n<div\n aebDatepickerYearTiles\n [style.display]=\"mode() === 'years' ? 'grid' : 'none'\"\n [year]=\"currentYear()\"\n [minYear]=\"minYear()\"\n [maxYear]=\"maxYear()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [woDays]=\"withoutDays()\"\n (setYear)=\"setYear($event)\"\n></div>\n\n<div\n aebDatepickerMonthTiles\n [style.display]=\"mode() === 'months' ? 'grid' : 'none'\"\n [year]=\"currentYear()\"\n [month]=\"currentMonth()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [woDays]=\"withoutDays()\"\n (setMonth)=\"setMonth($event)\"\n></div>\n", styles: [".aeb-datepicker-core{z-index:var(--z-dropdown);-webkit-user-select:none;user-select:none;position:absolute;top:62px;background-color:var(--c-bg-light);padding:20px;border-radius:20px;box-shadow:0 4px 12px #27303e26;opacity:0;visibility:hidden;transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-datepicker-core--hidden{opacity:0;visibility:hidden;transform:scaleY(.8) rotateX(-60deg)}.aeb-datepicker-core:not(.aeb-datepicker-core--hidden){opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}.aeb-datepicker-core__calendar{width:100%}.aeb-datepicker-core__controls{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.aeb-datepicker-core__arrow{cursor:pointer;display:flex}.aeb-datepicker-core__btn{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:72px;height:32px;padding:6px 10px;margin-right:16px;font-size:14px;cursor:pointer;border-radius:8px;background-color:var(--c-bg-surface)}.aeb-datepicker-core__btn--month{width:112px;margin-right:8px;margin-left:16px}.aeb-datepicker-core__btn--active{color:var(--c-t-links)}\n"] }]
1895
+ }], ctorParameters: () => [] });
1868
1896
 
1869
- const getScrollParent = (node) => {
1870
- if (node === null) {
1871
- return null;
1897
+ class MaskUtilsService {
1898
+ static { this.allowedKeys = [
1899
+ 'Backspace',
1900
+ 'Delete',
1901
+ 'ArrowLeft',
1902
+ 'ArrowRight',
1903
+ 'ArrowUp',
1904
+ 'ArrowDown',
1905
+ 'End',
1906
+ 'Home',
1907
+ 'Enter',
1908
+ 'Tab',
1909
+ 'Escape'
1910
+ ]; }
1911
+ /**
1912
+ * Formats input value with proper mask
1913
+ */
1914
+ formatInput(value, withoutDays = false) {
1915
+ // Remove all non-numeric characters
1916
+ const numbers = value.replace(/\D/g, '');
1917
+ if (withoutDays) {
1918
+ // Format as MM.YYYY
1919
+ if (numbers.length <= 2) {
1920
+ return numbers;
1921
+ }
1922
+ else if (numbers.length <= 6) {
1923
+ return `${numbers.slice(0, 2)}.${numbers.slice(2)}`;
1924
+ }
1925
+ else {
1926
+ return `${numbers.slice(0, 2)}.${numbers.slice(2, 6)}`;
1927
+ }
1928
+ }
1929
+ else {
1930
+ // Format as DD.MM.YYYY
1931
+ if (numbers.length <= 2) {
1932
+ return numbers;
1933
+ }
1934
+ else if (numbers.length <= 4) {
1935
+ return `${numbers.slice(0, 2)}.${numbers.slice(2)}`;
1936
+ }
1937
+ else if (numbers.length <= 8) {
1938
+ return `${numbers.slice(0, 2)}.${numbers.slice(2, 4)}.${numbers.slice(4)}`;
1939
+ }
1940
+ else {
1941
+ return `${numbers.slice(0, 2)}.${numbers.slice(2, 4)}.${numbers.slice(4, 8)}`;
1942
+ }
1943
+ }
1872
1944
  }
1873
- if (node.scrollHeight > node.clientHeight) {
1874
- return node;
1945
+ /**
1946
+ * Handles key input and returns formatted value with cursor position
1947
+ */
1948
+ handleKeyInput(currentValue, key, cursorPosition, withoutDays = false) {
1949
+ // Handle special keys
1950
+ if (MaskUtilsService.allowedKeys.includes(key)) {
1951
+ return this.handleSpecialKey(currentValue, key, cursorPosition, withoutDays);
1952
+ }
1953
+ // Handle numeric input
1954
+ if (!/^\d$/.test(key)) {
1955
+ return { value: currentValue, cursorPosition };
1956
+ }
1957
+ // Remove dots for processing
1958
+ const numbers = currentValue.replace(/\D/g, '');
1959
+ const newNumbers = this.insertAt(numbers, cursorPosition, key);
1960
+ const formatted = this.formatInput(newNumbers, withoutDays);
1961
+ // Calculate new cursor position
1962
+ const newCursorPosition = this.calculateCursorPosition(currentValue, formatted, cursorPosition, withoutDays);
1963
+ return { value: formatted, cursorPosition: newCursorPosition };
1875
1964
  }
1876
- else {
1877
- return getScrollParent(node.parentNode);
1965
+ /**
1966
+ * Validates if the input is a complete and valid date
1967
+ */
1968
+ isValidDate(value, withoutDays = false) {
1969
+ const numbers = value.replace(/\D/g, '');
1970
+ if (withoutDays) {
1971
+ // MM.YYYY format
1972
+ if (numbers.length !== 6) {
1973
+ return false;
1974
+ }
1975
+ const month = parseInt(numbers.slice(0, 2), 10);
1976
+ const year = parseInt(numbers.slice(2, 6), 10);
1977
+ return month >= 1 && month <= 12 && year >= 1000;
1978
+ }
1979
+ else {
1980
+ // DD.MM.YYYY format
1981
+ if (numbers.length !== 8) {
1982
+ return false;
1983
+ }
1984
+ const day = parseInt(numbers.slice(0, 2), 10);
1985
+ const month = parseInt(numbers.slice(2, 4), 10);
1986
+ const year = parseInt(numbers.slice(4, 8), 10);
1987
+ if (month < 1 || month > 12) {
1988
+ return false;
1989
+ }
1990
+ if (day < 1 || day > 31) {
1991
+ return false;
1992
+ }
1993
+ // Check if date exists (handles leap years, etc.)
1994
+ const date = new Date(year, month - 1, day);
1995
+ return (date.getFullYear() === year &&
1996
+ date.getMonth() === month - 1 &&
1997
+ date.getDate() === day);
1998
+ }
1878
1999
  }
1879
- };
2000
+ /**
2001
+ * Gets the maximum length for the input
2002
+ */
2003
+ getMaxLength(withoutDays = false) {
2004
+ return withoutDays ? 7 : 10; // MM.YYYY or DD.MM.YYYY
2005
+ }
2006
+ /**
2007
+ * Gets placeholder text
2008
+ */
2009
+ getPlaceholder(withoutDays = false) {
2010
+ return withoutDays ? 'MM.YYYY' : 'DD.MM.YYYY';
2011
+ }
2012
+ // Private helper methods
2013
+ handleSpecialKey(currentValue, key, cursorPosition, withoutDays) {
2014
+ const numbers = currentValue.replace(/\D/g, '');
2015
+ let newNumbers = numbers;
2016
+ let newCursorPosition = cursorPosition;
2017
+ switch (key) {
2018
+ case 'Backspace': {
2019
+ if (cursorPosition > 0) {
2020
+ // Find the position in the numbers string
2021
+ const numbersPosition = this.getNumbersPosition(currentValue, cursorPosition);
2022
+ if (numbersPosition > 0) {
2023
+ newNumbers =
2024
+ numbers.slice(0, numbersPosition - 1) +
2025
+ numbers.slice(numbersPosition);
2026
+ newCursorPosition = Math.max(0, cursorPosition - 1);
2027
+ }
2028
+ }
2029
+ break;
2030
+ }
2031
+ case 'Delete': {
2032
+ // Find the position in the numbers string
2033
+ const numbersPosition = this.getNumbersPosition(currentValue, cursorPosition);
2034
+ if (numbersPosition < numbers.length) {
2035
+ newNumbers =
2036
+ numbers.slice(0, numbersPosition) +
2037
+ numbers.slice(numbersPosition + 1);
2038
+ }
2039
+ break;
2040
+ }
2041
+ case 'ArrowLeft':
2042
+ newCursorPosition = Math.max(0, cursorPosition - 1);
2043
+ break;
2044
+ case 'ArrowRight':
2045
+ newCursorPosition = Math.min(currentValue.length, cursorPosition + 1);
2046
+ break;
2047
+ case 'Home':
2048
+ newCursorPosition = 0;
2049
+ break;
2050
+ case 'End':
2051
+ newCursorPosition = currentValue.length;
2052
+ break;
2053
+ }
2054
+ const formatted = this.formatInput(newNumbers, withoutDays);
2055
+ return { value: formatted, cursorPosition: newCursorPosition };
2056
+ }
2057
+ insertAt(str, index, char) {
2058
+ return str.slice(0, index) + char + str.slice(index);
2059
+ }
2060
+ calculateCursorPosition(oldValue, newValue, oldCursorPosition, withoutDays) {
2061
+ const oldNumbers = oldValue.replace(/\D/g, '');
2062
+ const newNumbers = newValue.replace(/\D/g, '');
2063
+ // If we're adding a character
2064
+ if (newNumbers.length > oldNumbers.length) {
2065
+ const numbersPosition = this.getNumbersPosition(oldValue, oldCursorPosition);
2066
+ if (withoutDays) {
2067
+ // MM.YYYY format
2068
+ if (numbersPosition === 2) {
2069
+ return 3; // After the dot
2070
+ }
2071
+ else if (numbersPosition === 6) {
2072
+ return newValue.length; // End of year
2073
+ }
2074
+ }
2075
+ else {
2076
+ // DD.MM.YYYY format
2077
+ if (numbersPosition === 2) {
2078
+ return 3; // After first dot
2079
+ }
2080
+ else if (numbersPosition === 4) {
2081
+ return 6; // After second dot
2082
+ }
2083
+ else if (numbersPosition === 8) {
2084
+ return newValue.length; // End of year
2085
+ }
2086
+ }
2087
+ return oldCursorPosition + 1;
2088
+ }
2089
+ return oldCursorPosition;
2090
+ }
2091
+ getNumbersPosition(formattedValue, cursorPosition) {
2092
+ const beforeCursor = formattedValue.slice(0, cursorPosition);
2093
+ return beforeCursor.replace(/\D/g, '').length;
2094
+ }
2095
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MaskUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2096
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MaskUtilsService, providedIn: 'root' }); }
2097
+ }
2098
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: MaskUtilsService, decorators: [{
2099
+ type: Injectable,
2100
+ args: [{
2101
+ providedIn: 'root'
2102
+ }]
2103
+ }] });
2104
+
1880
2105
  class DatepickerComponent {
1881
2106
  constructor() {
1882
- this.utils = inject(DatepickerUtilsService);
1883
- this.maskUtils = inject(MaskUtilsService);
1884
- this.cdr = inject(ChangeDetectorRef);
1885
- this.minDate = this.utils.subYears(new Date(), 100);
1886
- this.maxDate = this.utils.addYears(new Date(), 50);
1887
- this.excludedDates = [];
1888
- this.minYear = this.utils.subYears(new Date(), 100);
1889
- this.maxYear = this.utils.addYears(new Date(), 50);
1890
- this.withBackground = true;
1891
- this.align = 'right';
1892
- this.placeholder = 'Введите дату';
1893
- this.collapseOnChange = true;
1894
- this.withoutDays = false;
1895
- this.dateChange = new EventEmitter();
1896
- this.clearVl = '';
1897
- this.customPattern = {
1898
- y: { pattern: /[\d]/ },
1899
- 0: { pattern: /[0-3]/ },
1900
- 1: { pattern: /[\d]/ },
1901
- 2: { pattern: /[0-1]/ },
1902
- 3: { pattern: /[\d]/ },
1903
- m: { pattern: /[0-3]/ },
1904
- x: { pattern: /[\d]/ }
1905
- };
1906
- this.fixedPosition = '';
2107
+ this._utils = inject(DatepickerUtilsService);
2108
+ this.hasError = input(undefined, ...(ngDevMode ? [{ debugName: "hasError" }] : []));
2109
+ this.minDate = input(this._utils.subYears(new Date(), 100), ...(ngDevMode ? [{ debugName: "minDate" }] : []));
2110
+ this.maxDate = input(this._utils.addYears(new Date(), 50), ...(ngDevMode ? [{ debugName: "maxDate" }] : []));
2111
+ this.excludedDates = input([], ...(ngDevMode ? [{ debugName: "excludedDates" }] : []));
2112
+ this.minYear = input(this._utils.subYears(new Date(), 100), ...(ngDevMode ? [{ debugName: "minYear" }] : []));
2113
+ this.maxYear = input(this._utils.addYears(new Date(), 50), ...(ngDevMode ? [{ debugName: "maxYear" }] : []));
2114
+ this.placeholder = input('Введите дату', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
2115
+ this.collapseOnChange = input(true, ...(ngDevMode ? [{ debugName: "collapseOnChange" }] : []));
2116
+ this.withoutDays = input(false, ...(ngDevMode ? [{ debugName: "withoutDays" }] : []));
2117
+ this.dateChange = output();
2118
+ this.core = viewChild(DatepickerCoreComponent, ...(ngDevMode ? [{ debugName: "core" }] : []));
2119
+ this.input = viewChild(FormFieldDirective, ...(ngDevMode ? [{ debugName: "input" }] : []));
2120
+ this.internalDate = null;
1907
2121
  this.isOpen = false;
1908
2122
  this.disabled = false;
1909
2123
  this.touched = false;
1910
- this.isolatedAdjustCoreContainer = this.adjustCoreContainer.bind(this);
2124
+ }
2125
+ clickOutsideHandler() {
2126
+ if (this.isOpen) {
2127
+ this.isOpen = false;
2128
+ }
1911
2129
  }
1912
2130
  ngOnInit() {
1913
- if (this.withoutDays) {
1914
- this.date = this.date ? this.date : new Date();
1915
- const month = this.date.getMonth();
1916
- const year = this.date.getFullYear();
2131
+ if (this.withoutDays()) {
2132
+ this.internalDate = this.internalDate || new Date();
2133
+ const month = this.internalDate.getMonth();
2134
+ const year = this.internalDate.getFullYear();
1917
2135
  this.woDaysMonth = month;
1918
2136
  this.woDaysYear = year;
1919
2137
  return;
1920
2138
  }
1921
- this.inputValue = this.date ? this.utils.formatDate(this.date) : '';
1922
- this.date = this.date ? this.date : new Date();
2139
+ this.inputValue = this.internalDate
2140
+ ? this._utils.formatDate(this.internalDate)
2141
+ : '';
2142
+ this.internalDate = this.internalDate || new Date();
1923
2143
  }
1924
- ngOnChanges(changes) {
1925
- if (changes.date) {
1926
- this.writeValue(changes.date.currentValue);
1927
- if (!this.disabled &&
1928
- this.input !== undefined &&
1929
- !!changes.date.currentValue) {
1930
- this.onFormChange(changes.date.currentValue);
1931
- }
1932
- }
1933
- if (changes.withoutDays) {
1934
- this.writeValue(this.date);
1935
- if (!this.disabled && this.input !== undefined && !!this.date) {
1936
- this.onFormChange(changes.date.currentValue);
1937
- }
1938
- }
1939
- }
1940
- ngOnDestroy() {
1941
- document.removeEventListener('scroll', this.isolatedAdjustCoreContainer);
1942
- if (this.scrollParent) {
1943
- this.scrollParent.removeEventListener('scroll', this.isolatedAdjustCoreContainer);
1944
- }
1945
- }
1946
- ngAfterViewInit() {
1947
- this.addListeners();
1948
- this.adjustCoreContainer();
1949
- }
1950
- addListeners() {
1951
- const scrollParent = getScrollParent(this.container.nativeElement);
1952
- if (scrollParent) {
1953
- this.scrollParent = scrollParent;
1954
- scrollParent.addEventListener('scroll', this.isolatedAdjustCoreContainer);
2144
+ keyDownHandler(event) {
2145
+ // Only block non-numeric input and special characters
2146
+ if (!/^\d$/.test(event.key) &&
2147
+ !MaskUtilsService.allowedKeys.includes(event.key)) {
2148
+ event.preventDefault();
2149
+ return;
1955
2150
  }
1956
- document.addEventListener('scroll', this.isolatedAdjustCoreContainer);
1957
2151
  }
1958
- keyDownHandler(event) {
1959
- const tsCrutchEl = event.target;
1960
- const breakInput = this.maskUtils.breakInput(event);
1961
- const illegalSymbol = !Number.isInteger(parseInt(event.key)) &&
1962
- !MaskUtilsService.allowedKeys.includes(event.key);
1963
- breakInput(illegalSymbol);
1964
- const carretAfterDot = tsCrutchEl.value[tsCrutchEl.selectionStart - 1] === '.';
1965
- breakInput(event.key === 'Backspace' && carretAfterDot);
1966
- const splitStr = this.inputValue.split('.');
1967
- let inputSegmentOverflow;
1968
- if (this.withoutDays) {
1969
- const [month, year] = [splitStr[0] || '', splitStr[1] || ''];
1970
- inputSegmentOverflow = this.maskUtils.inputSegmentOverflow(['', month, year], event, this.withoutDays);
1971
- breakInput(inputSegmentOverflow);
2152
+ typeHandler() {
2153
+ // Simple auto-formatting as user types
2154
+ const numbers = this.inputValue.replace(/\D/g, '');
2155
+ let formatted = '';
2156
+ if (this.withoutDays()) {
2157
+ // MM.YYYY format
2158
+ if (numbers.length <= 2) {
2159
+ formatted = numbers;
2160
+ }
2161
+ else if (numbers.length <= 6) {
2162
+ formatted = `${numbers.slice(0, 2)}.${numbers.slice(2)}`;
2163
+ }
2164
+ else {
2165
+ formatted = `${numbers.slice(0, 2)}.${numbers.slice(2, 6)}`;
2166
+ }
1972
2167
  }
1973
2168
  else {
1974
- const [day, month, year] = [
1975
- splitStr[0] || '',
1976
- splitStr[1] || '',
1977
- splitStr[2] || ''
1978
- ];
1979
- inputSegmentOverflow = this.maskUtils.inputSegmentOverflow([day, month, year], event, this.withoutDays);
1980
- breakInput(inputSegmentOverflow);
1981
- }
1982
- if (Number.isInteger(parseInt(event.key)) && !inputSegmentOverflow) {
1983
- const [day, month, year] = this.maskUtils
1984
- .predictInput(this.inputValue, event.key, tsCrutchEl.selectionStart, this.withoutDays)
1985
- .split('.');
1986
- const ctrlDay = parseInt(day) ? day : '1';
1987
- const ctrlMonth = parseInt(month) ? month : '1';
1988
- const ctrlYear = Number.isInteger(parseInt(year)) && year.replace('_', '').length === 4
1989
- ? year
1990
- : null;
1991
- const valid = this.utils.validDate(ctrlDay, ctrlMonth, ctrlYear, [
1992
- this.minDate,
1993
- this.maxDate
1994
- ]);
1995
- breakInput(!valid);
2169
+ // DD.MM.YYYY format
2170
+ if (numbers.length <= 2) {
2171
+ formatted = numbers;
2172
+ }
2173
+ else if (numbers.length <= 4) {
2174
+ formatted = `${numbers.slice(0, 2)}.${numbers.slice(2)}`;
2175
+ }
2176
+ else if (numbers.length <= 8) {
2177
+ formatted = `${numbers.slice(0, 2)}.${numbers.slice(2, 4)}.${numbers.slice(4)}`;
2178
+ }
2179
+ else {
2180
+ formatted = `${numbers.slice(0, 2)}.${numbers.slice(2, 4)}.${numbers.slice(4, 8)}`;
2181
+ }
1996
2182
  }
1997
- }
1998
- typeHandler() {
1999
- const split = this.inputValue.split('.');
2000
- const isMasked = this.withoutDays ? split.length === 2 : split.length === 3;
2001
- this.clearVl = this.inputValue.replace(/\./g, '');
2002
- const dotCondition = !this.withoutDays
2003
- ? ((this.clearVl.length === 2 && split.length < 2) ||
2004
- this.clearVl.length === 4) &&
2005
- !isMasked &&
2006
- this.clearVl.length
2007
- : this.clearVl.length === 2 && !isMasked;
2008
- if (dotCondition) {
2009
- this.inputValue = `${this.inputValue}.`;
2183
+ // Update the input value if it changed
2184
+ if (formatted !== this.inputValue) {
2185
+ this.inputValue = formatted;
2010
2186
  }
2011
2187
  }
2012
2188
  clickInputHandler() {
2013
2189
  if (!this.isOpen) {
2014
- this.adjustCoreContainer();
2015
2190
  this.isOpen = true;
2016
2191
  }
2017
2192
  }
2018
- clickOutsideHandler() {
2019
- if (this.isOpen) {
2020
- this.isOpen = false;
2021
- }
2022
- }
2023
2193
  woMonthIncSub(base) {
2024
2194
  if (base) {
2025
2195
  if (this.woDaysMonth === 11) {
@@ -2050,10 +2220,7 @@ class DatepickerComponent {
2050
2220
  this.inputValue = targetDate;
2051
2221
  this.lastValidInput = this.inputValue;
2052
2222
  this.writeValue(new Date(this.woDaysYear, this.woDaysMonth, 1));
2053
- this.onFormChange(new Date(this.woDaysYear, this.woDaysMonth, 1));
2054
- }
2055
- if (this.collapseOnChange) {
2056
- this.isOpen = false;
2223
+ this._onChange(new Date(this.woDaysYear, this.woDaysMonth, 1));
2057
2224
  }
2058
2225
  }
2059
2226
  woDaysYearSet(value) {
@@ -2062,41 +2229,35 @@ class DatepickerComponent {
2062
2229
  let targetDate = `${String(this.woDaysMonth + 1).length === 1
2063
2230
  ? `0${this.woDaysMonth + 1}`
2064
2231
  : this.woDaysMonth + 1}.${this.woDaysYear}`;
2065
- if (this.utils.isMinOverlap(this.minDate, this.utils.parseDate(`01.${targetDate}`))) {
2066
- this.woDaysMonth = new Date(this.minDate).getMonth();
2232
+ const minDate = this.minDate();
2233
+ const maxDate = this.maxDate();
2234
+ if (this._utils.isMinOverlap(minDate, this._utils.parseDate(`01.${targetDate}`))) {
2235
+ this.woDaysMonth = new Date(minDate).getMonth();
2067
2236
  targetDate = `${String(this.woDaysMonth + 1).length === 1
2068
2237
  ? `0${this.woDaysMonth + 1}`
2069
2238
  : this.woDaysMonth + 1}.${this.woDaysYear}`;
2070
- this.core.setMonth(this.woDaysMonth);
2239
+ this.core().setMonth(this.woDaysMonth);
2071
2240
  }
2072
- else if (this.utils.isMaxOverlap(this.maxDate, this.utils.parseDate(`01.${targetDate}`))) {
2073
- this.woDaysMonth = new Date(this.maxDate).getMonth();
2241
+ else if (this._utils.isMaxOverlap(maxDate, this._utils.parseDate(`01.${targetDate}`))) {
2242
+ this.woDaysMonth = new Date(maxDate).getMonth();
2074
2243
  targetDate = `${String(this.woDaysMonth + 1).length === 1
2075
2244
  ? `0${this.woDaysMonth + 1}`
2076
2245
  : this.woDaysMonth + 1}.${this.woDaysYear}`;
2077
- this.core.setMonth(this.woDaysMonth);
2246
+ this.core().setMonth(this.woDaysMonth);
2078
2247
  }
2079
2248
  if (!erase) {
2080
2249
  this.inputValue = targetDate;
2081
2250
  this.lastValidInput = this.inputValue;
2082
2251
  this.writeValue(new Date(this.woDaysYear, this.woDaysMonth, 1));
2083
- this.onFormChange(new Date(this.woDaysYear, this.woDaysMonth, 1));
2084
- }
2085
- if (this.collapseOnChange) {
2086
- this.isOpen = false;
2252
+ this._onChange(new Date(this.woDaysYear, this.woDaysMonth, 1));
2087
2253
  }
2088
2254
  }
2089
2255
  isExcluded(date) {
2090
- return !!this.excludedDates.filter((item) => this.utils.isSameDay(item, date)).length;
2256
+ return !!this.excludedDates().filter((item) => this._utils.isSameDay(item, date)).length;
2091
2257
  }
2092
- /**
2093
- *
2094
- * @param date
2095
- * @returns
2096
- */
2097
2258
  isDisabled(date) {
2098
- return (this.utils.isMinOverlap(this.minDate, date) ||
2099
- this.utils.isMaxOverlap(this.maxDate, date) ||
2259
+ return (this._utils.isMinOverlap(this.minDate(), date) ||
2260
+ this._utils.isMaxOverlap(this.maxDate(), date) ||
2100
2261
  this.isExcluded(date));
2101
2262
  }
2102
2263
  handleInput(event) {
@@ -2104,131 +2265,110 @@ class DatepickerComponent {
2104
2265
  if (!this.touched) {
2105
2266
  this.touched = true;
2106
2267
  }
2107
- if (!event) {
2268
+ // Handle empty input
2269
+ if (!eventValue || eventValue.trim() === '') {
2108
2270
  this.writeValue(null);
2109
- this.onFormChange(null);
2110
- this.core.setMonth(this.utils.getMonth(new Date()), true);
2111
- this.core.setYear(this.utils.getYear(new Date()), true);
2112
- }
2113
- const inpToValid = this.withoutDays ? `01.${eventValue}` : eventValue;
2114
- if (!this.utils.validInput(inpToValid)) {
2115
- if (!event) {
2116
- this.lastValidInput = null;
2117
- this.inputValue = '';
2118
- return;
2119
- }
2120
- this.inputValue = this.lastValidInput || '';
2271
+ this._onChange(null);
2272
+ this.core().setMonth(this._utils.getMonth(new Date()), true);
2273
+ this.core().setYear(this._utils.getYear(new Date()), true);
2274
+ return;
2275
+ }
2276
+ // Check if the input is a complete date format
2277
+ const numbers = eventValue.replace(/\D/g, '');
2278
+ const isComplete = this.withoutDays()
2279
+ ? numbers.length === 6
2280
+ : numbers.length === 8;
2281
+ if (!isComplete) {
2282
+ // If it's not a complete date yet, don't process it
2121
2283
  return;
2122
2284
  }
2123
- if (this.withoutDays) {
2124
- this.woDaysMonth = this.utils.parseDate(inpToValid).getMonth();
2125
- this.woDaysYear = this.utils.parseDate(inpToValid).getFullYear();
2285
+ const inpToValid = this.withoutDays() ? `01.${eventValue}` : eventValue;
2286
+ // Additional validation using the existing utils
2287
+ if (!this._utils.validInput(inpToValid)) {
2288
+ this.inputValue = this.lastValidInput || '';
2289
+ return;
2126
2290
  }
2127
- if (this.isDisabled(this.utils.parseDate(inpToValid))) {
2291
+ const parsedDate = this._utils.parseDate(inpToValid);
2292
+ // Check if the date is within allowed range
2293
+ if (this.isDisabled(parsedDate)) {
2128
2294
  this.inputValue = this.lastValidInput || '';
2129
2295
  return;
2130
2296
  }
2297
+ // Update internal state
2131
2298
  this.lastValidInput = this.inputValue;
2132
- this.date = this.utils.parseDate(inpToValid);
2133
- this.core.setMonth(this.utils.getMonth(this.date));
2134
- this.core.setYear(this.utils.getYear(this.date));
2135
- this.writeValue(this.date);
2136
- this.onFormChange(this.date);
2299
+ this.internalDate = parsedDate;
2300
+ if (this.withoutDays()) {
2301
+ this.woDaysMonth = parsedDate.getMonth();
2302
+ this.woDaysYear = parsedDate.getFullYear();
2303
+ }
2304
+ // Update the calendar view
2305
+ this.core().setMonth(this._utils.getMonth(parsedDate));
2306
+ this.core().setYear(this._utils.getYear(parsedDate));
2307
+ // Emit the change
2308
+ this.writeValue(parsedDate);
2309
+ this._onChange(parsedDate);
2137
2310
  }
2138
2311
  handleOpen() {
2139
- if (!this.isOpen) {
2140
- this.adjustCoreContainer();
2141
- }
2142
2312
  this.isOpen = !this.isOpen;
2143
2313
  }
2144
- adjustCoreContainer() {
2145
- if (this.container) {
2146
- const { height: coreHeight } = this.core.container.nativeElement.getBoundingClientRect();
2147
- const height = document.documentElement.offsetHeight;
2148
- const { left, top, width, height: inputHeight, right: InputRight } = this.container.nativeElement.getBoundingClientRect();
2149
- const fromInputPadding = 66;
2150
- const coreBottomEstimate = coreHeight + top + fromInputPadding;
2151
- const bottomOverflow = coreBottomEstimate > height;
2152
- const coreTopEstimate = top - coreHeight - 20;
2153
- const topOverflow = coreTopEstimate < 0;
2154
- const centerVrAlign = top - coreHeight / 2 + inputHeight / 2;
2155
- const CORE_WIDTH = 296;
2156
- const coreRightEstimate = InputRight + CORE_WIDTH + 10;
2157
- const topAlign = bottomOverflow
2158
- ? topOverflow
2159
- ? centerVrAlign
2160
- : coreTopEstimate
2161
- : top + 66;
2162
- const hAlign = coreRightEstimate < window.innerWidth
2163
- ? left + width + 10
2164
- : left - CORE_WIDTH - 10;
2165
- const defaultHpos = this.align === 'right'
2166
- ? `left: ${left + width - CORE_WIDTH}px; top: ${topAlign}px`
2167
- : `left: ${left}px; top: ${topAlign}px`;
2168
- const centeredHpos = `left: ${hAlign}px; top: ${topAlign}px`;
2169
- this.fixedPosition =
2170
- bottomOverflow && topOverflow ? centeredHpos : defaultHpos;
2171
- this.cdr.detectChanges();
2172
- }
2173
- }
2174
2314
  handleDateChange(date) {
2175
2315
  if (!this.touched) {
2176
2316
  this.touched = true;
2177
2317
  }
2178
- this.inputValue = this.utils.formatDate(date);
2318
+ this.inputValue = this._utils.formatDate(date);
2179
2319
  this.lastValidInput = this.inputValue;
2180
- this.date = date;
2320
+ this.internalDate = date;
2181
2321
  this.writeValue(date);
2182
- this.onFormChange(date);
2183
- if (this.collapseOnChange) {
2322
+ this._onChange(date);
2323
+ if (this.collapseOnChange()) {
2184
2324
  this.isOpen = false;
2185
2325
  }
2186
2326
  }
2187
- registerOnChange(fn) {
2188
- this.onFormChange = fn;
2189
- }
2190
- registerOnTouched(fn) {
2191
- this.onTouch = fn;
2192
- }
2327
+ // ControlValueAccessor overrides
2193
2328
  writeValue(value) {
2194
2329
  if (this.disabled || (this.input === undefined && !value)) {
2195
2330
  return;
2196
2331
  }
2197
- this.date = value || new Date();
2198
- this.woDaysMonth = this.date.getMonth();
2199
- this.woDaysYear = this.date.getFullYear();
2332
+ this.internalDate = value || new Date();
2333
+ this.woDaysMonth = this.internalDate.getMonth();
2334
+ this.woDaysYear = this.internalDate.getFullYear();
2200
2335
  if (!value) {
2201
2336
  this.inputValue = '';
2202
2337
  }
2203
2338
  else {
2204
- const newInput = this.utils.formatDate(this.date);
2205
- this.inputValue = this.withoutDays ? newInput.slice(3, 10) : newInput;
2339
+ const newInput = this._utils.formatDate(this.internalDate);
2340
+ this.inputValue = this.withoutDays() ? newInput.slice(3, 10) : newInput;
2206
2341
  this.lastValidInput = this.inputValue;
2207
2342
  }
2208
- this.onTouch();
2343
+ this._onTouch();
2209
2344
  if (!this.touched) {
2210
2345
  this.touched = true;
2211
2346
  }
2212
2347
  this.dateChange.emit(value);
2213
2348
  }
2349
+ registerOnChange(fn) {
2350
+ this._onChange = fn;
2351
+ }
2352
+ registerOnTouched(fn) {
2353
+ this._onTouch = fn;
2354
+ }
2214
2355
  setDisabledState(disabled) {
2215
2356
  this.disabled = disabled;
2216
2357
  }
2217
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2218
- onFormChange(_value) {
2219
- // ingore
2358
+ _onChange(_) {
2359
+ // ignore
2220
2360
  }
2221
- onTouch() {
2361
+ _onTouch() {
2222
2362
  // ignore
2223
2363
  }
2224
2364
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2225
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: DatepickerComponent, isStandalone: false, selector: "aeb-datepicker", inputs: { date: "date", hasError: "hasError", minDate: "minDate", maxDate: "maxDate", excludedDates: "excludedDates", minYear: "minYear", maxYear: "maxYear", withBackground: "withBackground", align: "align", placeholder: "placeholder", collapseOnChange: "collapseOnChange", withoutDays: "withoutDays" }, outputs: { dateChange: "dateChange" }, providers: [
2365
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.2.4", type: DatepickerComponent, isStandalone: true, selector: "aeb-datepicker", inputs: { hasError: { classPropertyName: "hasError", publicName: "hasError", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, excludedDates: { classPropertyName: "excludedDates", publicName: "excludedDates", isSignal: true, isRequired: false, transformFunction: null }, minYear: { classPropertyName: "minYear", publicName: "minYear", isSignal: true, isRequired: false, transformFunction: null }, maxYear: { classPropertyName: "maxYear", publicName: "maxYear", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, collapseOnChange: { classPropertyName: "collapseOnChange", publicName: "collapseOnChange", isSignal: true, isRequired: false, transformFunction: null }, withoutDays: { classPropertyName: "withoutDays", publicName: "withoutDays", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateChange: "dateChange" }, host: { listeners: { "clickOutside": "clickOutsideHandler()" }, properties: { "class.aeb-datepicker": "true", "class.aeb-datepicker--disabled": "disabled" } }, providers: [
2226
2366
  {
2227
2367
  provide: NG_VALUE_ACCESSOR,
2228
2368
  useExisting: forwardRef(() => DatepickerComponent),
2229
2369
  multi: true
2230
2370
  }
2231
- ], viewQueries: [{ propertyName: "core", first: true, predicate: ["core"], descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"aeb-datepicker\"\n [ngClass]=\"{ 'aeb-datepicker--disabled': disabled }\"\n (clickOutside)=\"clickOutsideHandler()\"\n #container\n>\n <aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{ 'aeb-datepicker__field--onerror': hasError }\"\n >\n <label aebLabel class=\"aeb-datepicker__label\">\n {{ placeholder }}\n </label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n maxlength=\"10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler()\"\n (keydown)=\"keyDownHandler($event)\"\n #input\n />\n <div class=\"aeb-datepicker__calendar-icon\" (click)=\"handleOpen()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"5\"\n y=\"6\"\n width=\"14\"\n height=\"14\"\n rx=\"1\"\n stroke=\"#BFC6D0\"\n stroke-width=\"2\"\n />\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#BFC6D0\" />\n <rect\n x=\"9\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 9 3)\"\n fill=\"#BFC6D0\"\n />\n <rect\n x=\"17\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 17 3)\"\n fill=\"#BFC6D0\"\n />\n </svg>\n </div>\n </aeb-form-field>\n <aeb-datepicker-core\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (dateChange)=\"handleDateChange($event)\"\n [align]=\"align\"\n [withBackground]=\"withBackground\"\n [withoutDays]=\"withoutDays\"\n [hidden]=\"!isOpen\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n [style]=\"fixedPosition\"\n #core\n >\n </aeb-datepicker-core>\n</div>\n", styles: [".aeb-datepicker{position:relative;width:100%;color:var(--color-mono-900)}.aeb-datepicker--disabled{pointer-events:none;opacity:.7}.aeb-datepicker__field{position:relative;width:296px}.aeb-datepicker__field--onerror .aeb-datepicker__input{color:var(--color-red-500)!important;border:var(--border-skinny) solid var(--color-red-500)!important}.aeb-datepicker__field--onerror .aeb-datepicker__label{color:var(--color-red-500)}.aeb-datepicker__input{padding-right:35px!important}.aeb-datepicker__calendar-icon{position:absolute;top:16px;right:12px;width:24px;height:24px;cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showDescription", "showErrorMessage", "validateOnDirty", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "[aebLabel]", inputs: ["aebLabel"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }, { kind: "component", type: DatepickerCoreComponent, selector: "aeb-datepicker-core", inputs: ["date", "minDate", "maxDate", "excludedDates", "minYear", "maxYear", "withBackground", "align", "withoutDays", "hidden"], outputs: ["dateChange", "woDaysMonth", "woDaysYear", "woDaysMonthSubInc"] }], encapsulation: i0.ViewEncapsulation.None }); }
2371
+ ], viewQueries: [{ propertyName: "core", first: true, predicate: DatepickerCoreComponent, descendants: true, isSignal: true }, { propertyName: "input", first: true, predicate: FormFieldDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: ClickOutsideDirective, outputs: ["clickOutside", "clickOutside"] }], ngImport: i0, template: "<aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{ 'aeb-datepicker__field--onerror': hasError() }\"\n>\n <label aebLabel class=\"aeb-datepicker__label\">\n {{ placeholder() }}\n </label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n [maxlength]=\"withoutDays() ? 7 : 10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler()\"\n (keydown)=\"keyDownHandler($event)\"\n #input\n />\n <div class=\"aeb-datepicker__calendar-icon\" (click)=\"handleOpen()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"5\"\n y=\"6\"\n width=\"14\"\n height=\"14\"\n rx=\"1\"\n stroke=\"#BFC6D0\"\n stroke-width=\"2\"\n />\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#BFC6D0\" />\n <rect\n x=\"9\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 9 3)\"\n fill=\"#BFC6D0\"\n />\n <rect\n x=\"17\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 17 3)\"\n fill=\"#BFC6D0\"\n />\n </svg>\n </div>\n</aeb-form-field>\n<div\n aebDatepickerCore\n [date]=\"internalDate\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [excludedDates]=\"excludedDates()\"\n [minYear]=\"minYear()\"\n [maxYear]=\"maxYear()\"\n [withoutDays]=\"withoutDays()\"\n [hidden]=\"!isOpen\"\n (dateChange)=\"handleDateChange($event)\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n #core\n></div>\n", styles: [".aeb-datepicker{position:relative;width:100%;color:var(--c-t-primary)}.aeb-datepicker--disabled{pointer-events:none;opacity:.7}.aeb-datepicker__field{position:relative;min-width:312px}.aeb-datepicker__input{padding-right:35px!important}.aeb-datepicker__calendar-icon{position:absolute;top:16px;right:12px;width:24px;height:24px;cursor:pointer}\n"], dependencies: [{ kind: "ngmodule", type: FormFieldModule }, { kind: "component", type: FormFieldComponent, selector: "aeb-form-field", inputs: ["isInvalid", "showIcon", "showDescription", "showErrorMessage", "validateOnDirty", "disabled"] }, { kind: "directive", type: FormFieldDirective, selector: "input[aebInput], textarea[aebTextarea]", inputs: ["value"] }, { kind: "directive", type: LabelDirective, selector: "[aebLabel]", inputs: ["aebLabel"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: DatepickerCoreComponent, selector: "div[aebDatepickerCore]", inputs: ["date", "minDate", "maxDate", "excludedDates", "minYear", "maxYear", "withoutDays", "hidden"], outputs: ["dateChange", "woDaysMonth", "woDaysYear", "woDaysMonthSubInc"] }], encapsulation: i0.ViewEncapsulation.None }); }
2232
2372
  }
2233
2373
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerComponent, decorators: [{
2234
2374
  type: Component,
@@ -2238,79 +2378,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
2238
2378
  useExisting: forwardRef(() => DatepickerComponent),
2239
2379
  multi: true
2240
2380
  }
2241
- ], standalone: false, template: "<div\n class=\"aeb-datepicker\"\n [ngClass]=\"{ 'aeb-datepicker--disabled': disabled }\"\n (clickOutside)=\"clickOutsideHandler()\"\n #container\n>\n <aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{ 'aeb-datepicker__field--onerror': hasError }\"\n >\n <label aebLabel class=\"aeb-datepicker__label\">\n {{ placeholder }}\n </label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n maxlength=\"10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler()\"\n (keydown)=\"keyDownHandler($event)\"\n #input\n />\n <div class=\"aeb-datepicker__calendar-icon\" (click)=\"handleOpen()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"5\"\n y=\"6\"\n width=\"14\"\n height=\"14\"\n rx=\"1\"\n stroke=\"#BFC6D0\"\n stroke-width=\"2\"\n />\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#BFC6D0\" />\n <rect\n x=\"9\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 9 3)\"\n fill=\"#BFC6D0\"\n />\n <rect\n x=\"17\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 17 3)\"\n fill=\"#BFC6D0\"\n />\n </svg>\n </div>\n </aeb-form-field>\n <aeb-datepicker-core\n [date]=\"date\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [excludedDates]=\"excludedDates\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n (dateChange)=\"handleDateChange($event)\"\n [align]=\"align\"\n [withBackground]=\"withBackground\"\n [withoutDays]=\"withoutDays\"\n [hidden]=\"!isOpen\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n [style]=\"fixedPosition\"\n #core\n >\n </aeb-datepicker-core>\n</div>\n", styles: [".aeb-datepicker{position:relative;width:100%;color:var(--color-mono-900)}.aeb-datepicker--disabled{pointer-events:none;opacity:.7}.aeb-datepicker__field{position:relative;width:296px}.aeb-datepicker__field--onerror .aeb-datepicker__input{color:var(--color-red-500)!important;border:var(--border-skinny) solid var(--color-red-500)!important}.aeb-datepicker__field--onerror .aeb-datepicker__label{color:var(--color-red-500)}.aeb-datepicker__input{padding-right:35px!important}.aeb-datepicker__calendar-icon{position:absolute;top:16px;right:12px;width:24px;height:24px;cursor:pointer}\n"] }]
2242
- }], ctorParameters: () => [], propDecorators: { date: [{
2243
- type: Input
2244
- }], hasError: [{
2245
- type: Input
2246
- }], minDate: [{
2247
- type: Input
2248
- }], maxDate: [{
2249
- type: Input
2250
- }], excludedDates: [{
2251
- type: Input
2252
- }], minYear: [{
2253
- type: Input
2254
- }], maxYear: [{
2255
- type: Input
2256
- }], withBackground: [{
2257
- type: Input
2258
- }], align: [{
2259
- type: Input
2260
- }], placeholder: [{
2261
- type: Input
2262
- }], collapseOnChange: [{
2263
- type: Input
2264
- }], withoutDays: [{
2265
- type: Input
2266
- }], core: [{
2267
- type: ViewChild,
2268
- args: ['core']
2269
- }], input: [{
2270
- type: ViewChild,
2271
- args: ['input']
2272
- }], container: [{
2273
- type: ViewChild,
2274
- args: ['container']
2275
- }], dateChange: [{
2276
- type: Output
2277
- }] } });
2381
+ ], hostDirectives: [
2382
+ {
2383
+ directive: ClickOutsideDirective,
2384
+ outputs: ['clickOutside']
2385
+ }
2386
+ ], host: {
2387
+ '[class.aeb-datepicker]': 'true',
2388
+ '[class.aeb-datepicker--disabled]': 'disabled',
2389
+ '(clickOutside)': 'clickOutsideHandler()'
2390
+ }, imports: [FormFieldModule, NgClass, FormsModule, DatepickerCoreComponent], template: "<aeb-form-field\n class=\"aeb-datepicker__field\"\n [ngClass]=\"{ 'aeb-datepicker__field--onerror': hasError() }\"\n>\n <label aebLabel class=\"aeb-datepicker__label\">\n {{ placeholder() }}\n </label>\n <input\n aebInput\n type=\"text\"\n class=\"aeb-datepicker__input\"\n [maxlength]=\"withoutDays() ? 7 : 10\"\n [(ngModel)]=\"inputValue\"\n (change)=\"handleInput($event)\"\n (click)=\"clickInputHandler()\"\n (input)=\"typeHandler()\"\n (keydown)=\"keyDownHandler($event)\"\n #input\n />\n <div class=\"aeb-datepicker__calendar-icon\" (click)=\"handleOpen()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"5\"\n y=\"6\"\n width=\"14\"\n height=\"14\"\n rx=\"1\"\n stroke=\"#BFC6D0\"\n stroke-width=\"2\"\n />\n <rect x=\"4\" y=\"5\" width=\"16\" height=\"4\" rx=\"2\" fill=\"#BFC6D0\" />\n <rect\n x=\"9\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 9 3)\"\n fill=\"#BFC6D0\"\n />\n <rect\n x=\"17\"\n y=\"3\"\n width=\"3\"\n height=\"2\"\n rx=\"1\"\n transform=\"rotate(90 17 3)\"\n fill=\"#BFC6D0\"\n />\n </svg>\n </div>\n</aeb-form-field>\n<div\n aebDatepickerCore\n [date]=\"internalDate\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [excludedDates]=\"excludedDates()\"\n [minYear]=\"minYear()\"\n [maxYear]=\"maxYear()\"\n [withoutDays]=\"withoutDays()\"\n [hidden]=\"!isOpen\"\n (dateChange)=\"handleDateChange($event)\"\n (woDaysMonth)=\"woDaysMonthSet($event)\"\n (woDaysYear)=\"woDaysYearSet($event)\"\n (woDaysMonthSubInc)=\"woMonthIncSub($event)\"\n #core\n></div>\n", styles: [".aeb-datepicker{position:relative;width:100%;color:var(--c-t-primary)}.aeb-datepicker--disabled{pointer-events:none;opacity:.7}.aeb-datepicker__field{position:relative;min-width:312px}.aeb-datepicker__input{padding-right:35px!important}.aeb-datepicker__calendar-icon{position:absolute;top:16px;right:12px;width:24px;height:24px;cursor:pointer}\n"] }]
2391
+ }], ctorParameters: () => [] });
2278
2392
 
2279
2393
  class DatepickerModule {
2280
2394
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2281
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: DatepickerModule, declarations: [DatepickerComponent,
2282
- DatepickerCoreComponent,
2283
- DatepickerMonthComponent,
2284
- DatepickerTilesComponent,
2285
- DateToStrPipe,
2286
- IsTodayPipe,
2287
- IsSameDatePipe,
2288
- IsDisabledPipe], imports: [CommonModule, FormFieldModule, FormsModule, ClickOutsideDirective], exports: [DatepickerComponent,
2289
- DatepickerCoreComponent,
2290
- DatepickerMonthComponent,
2291
- DatepickerTilesComponent] }); }
2292
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerModule, imports: [CommonModule, FormFieldModule, FormsModule] }); }
2395
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: DatepickerModule, imports: [DatepickerComponent], exports: [DatepickerComponent] }); }
2396
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerModule, imports: [DatepickerComponent] }); }
2293
2397
  }
2294
2398
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DatepickerModule, decorators: [{
2295
2399
  type: NgModule,
2296
2400
  args: [{
2297
- declarations: [
2298
- DatepickerComponent,
2299
- DatepickerCoreComponent,
2300
- DatepickerMonthComponent,
2301
- DatepickerTilesComponent,
2302
- DateToStrPipe,
2303
- IsTodayPipe,
2304
- IsSameDatePipe,
2305
- IsDisabledPipe
2306
- ],
2307
- imports: [CommonModule, FormFieldModule, FormsModule, ClickOutsideDirective],
2308
- exports: [
2309
- DatepickerComponent,
2310
- DatepickerCoreComponent,
2311
- DatepickerMonthComponent,
2312
- DatepickerTilesComponent
2313
- ]
2401
+ imports: [DatepickerComponent],
2402
+ exports: [DatepickerComponent]
2314
2403
  }]
2315
2404
  }] });
2316
2405
 
@@ -2328,8 +2417,12 @@ class DropdownMenu {
2328
2417
  get isTopClass() {
2329
2418
  return this.direction() === 'top';
2330
2419
  }
2420
+ // Сумма высоты опций
2331
2421
  get maxHeight() {
2332
- return this.maxShownOptions() * this.optionHeightPx() + 'px';
2422
+ return (this.maxShownOptions() * this.optionHeightPx() +
2423
+ 16 +
2424
+ this.maxShownOptions() * 2 +
2425
+ 'px');
2333
2426
  }
2334
2427
  get role() {
2335
2428
  return 'listbox';
@@ -2492,11 +2585,11 @@ class DropdownMenu {
2492
2585
  }, 0);
2493
2586
  }
2494
2587
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2495
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DropdownMenu, isStandalone: false, selector: "aeb-dropdown-menu", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, maxShownOptions: { classPropertyName: "maxShownOptions", publicName: "maxShownOptions", isSignal: true, isRequired: false, transformFunction: null }, optionSize: { classPropertyName: "optionSize", publicName: "optionSize", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, selectedOption: { classPropertyName: "selectedOption", publicName: "selectedOption", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { outsideClick: "outsideClick", optionSelect: "optionSelect" }, host: { listeners: { "clickOutside": "clickOutsideHandler($event)", "keydown": "onKeyDown($event)" }, properties: { "class.aeb-dropdown-menu": "this.isDropdownMenu", "class.open": "this.isOpenClass", "class.bottom": "this.isBottomClass", "class.top": "this.isTopClass", "style.max-height": "this.maxHeight", "attr.role": "this.role", "attr.aria-label": "this.ariaLabel" } }, ngImport: i0, template: "@for (option of options(); track option.value; let i = $index) {\n<div\n class=\"aeb-dropdown-menu__option\"\n [class.active]=\"option === selectedOption()\"\n [class.focused]=\"i === focusedIndex()\"\n [class.has-additional]=\"option.additional\"\n [style.height]=\"optionHeightPx() + 'px'\"\n [attr.tabindex]=\"-1\"\n [attr.role]=\"'option'\"\n [attr.aria-selected]=\"i === focusedIndex()\"\n (click)=\"selectOption(option.value)\"\n>\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n</div>\n}\n", styles: [".aeb-dropdown-menu{position:absolute;z-index:2;width:100%;left:0;background:var(--c-bg-light);padding:0;margin:0;border-radius:12px;box-shadow:0 4px 12px #27303e26;overflow-y:auto;opacity:0;visibility:hidden;color:var(--c-t-primary);transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-dropdown-menu__option{padding:0 24px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer;display:flex;justify-content:center;flex-direction:column}.aeb-dropdown-menu__option:hover,.aeb-dropdown-menu__option.active,.aeb-dropdown-menu__option.focused{background-color:var(--c-bg-surface)}.aeb-dropdown-menu__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu__option.has-additional{padding:0 24px}.aeb-dropdown-menu__option.has-additional small{display:block;margin-top:4px;line-height:16px;font-size:14px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-dropdown-menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-dropdown-menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
2588
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: DropdownMenu, isStandalone: false, selector: "aeb-dropdown-menu", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, maxShownOptions: { classPropertyName: "maxShownOptions", publicName: "maxShownOptions", isSignal: true, isRequired: false, transformFunction: null }, optionSize: { classPropertyName: "optionSize", publicName: "optionSize", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, selectedOption: { classPropertyName: "selectedOption", publicName: "selectedOption", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { outsideClick: "outsideClick", optionSelect: "optionSelect" }, host: { listeners: { "clickOutside": "clickOutsideHandler($event)", "keydown": "onKeyDown($event)" }, properties: { "class.aeb-dropdown-menu": "this.isDropdownMenu", "class.open": "this.isOpenClass", "class.bottom": "this.isBottomClass", "class.top": "this.isTopClass", "style.max-height": "this.maxHeight", "attr.role": "this.role", "attr.aria-label": "this.ariaLabel" } }, ngImport: i0, template: "@for (option of options(); track option.value; let i = $index) {\n<div\n class=\"aeb-dropdown-menu__option\"\n [class.active]=\"option === selectedOption()\"\n [class.focused]=\"i === focusedIndex()\"\n [class.has-additional]=\"option.additional\"\n [style.height]=\"optionHeightPx() + 'px'\"\n [attr.tabindex]=\"-1\"\n [attr.role]=\"'option'\"\n [attr.aria-selected]=\"i === focusedIndex()\"\n (click)=\"selectOption(option.value)\"\n>\n <div class=\"aeb-dropdown-menu__option-inner\">\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n </div>\n</div>\n}\n", styles: [".aeb-dropdown-menu{position:absolute;z-index:var(--z-dropdown);width:100%;left:0;background:var(--c-bg-light);margin:0;border-radius:12px;box-shadow:0 4px 12px #27303e26;overflow-y:auto;opacity:0;visibility:hidden;color:var(--c-t-primary);padding:8px 0 8px 8px;box-sizing:border-box;transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-dropdown-menu:empty{display:none}.aeb-dropdown-menu__option{padding:0 24px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer;display:flex;justify-content:center;flex-direction:column;border-radius:12px;margin-bottom:2px}.aeb-dropdown-menu__option:last-child{margin-bottom:0}.aeb-dropdown-menu__option:hover,.aeb-dropdown-menu__option.active,.aeb-dropdown-menu__option.focused{background-color:var(--c-bg-surface)}.aeb-dropdown-menu__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu__option.has-additional{padding:0 24px}.aeb-dropdown-menu__option.has-additional small{display:block;margin-top:4px;line-height:16px;font-size:14px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-dropdown-menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-dropdown-menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
2496
2589
  }
2497
2590
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: DropdownMenu, decorators: [{
2498
2591
  type: Component,
2499
- args: [{ selector: 'aeb-dropdown-menu', encapsulation: ViewEncapsulation.None, standalone: false, template: "@for (option of options(); track option.value; let i = $index) {\n<div\n class=\"aeb-dropdown-menu__option\"\n [class.active]=\"option === selectedOption()\"\n [class.focused]=\"i === focusedIndex()\"\n [class.has-additional]=\"option.additional\"\n [style.height]=\"optionHeightPx() + 'px'\"\n [attr.tabindex]=\"-1\"\n [attr.role]=\"'option'\"\n [attr.aria-selected]=\"i === focusedIndex()\"\n (click)=\"selectOption(option.value)\"\n>\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n</div>\n}\n", styles: [".aeb-dropdown-menu{position:absolute;z-index:2;width:100%;left:0;background:var(--c-bg-light);padding:0;margin:0;border-radius:12px;box-shadow:0 4px 12px #27303e26;overflow-y:auto;opacity:0;visibility:hidden;color:var(--c-t-primary);transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-dropdown-menu__option{padding:0 24px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer;display:flex;justify-content:center;flex-direction:column}.aeb-dropdown-menu__option:hover,.aeb-dropdown-menu__option.active,.aeb-dropdown-menu__option.focused{background-color:var(--c-bg-surface)}.aeb-dropdown-menu__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu__option.has-additional{padding:0 24px}.aeb-dropdown-menu__option.has-additional small{display:block;margin-top:4px;line-height:16px;font-size:14px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-dropdown-menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-dropdown-menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}\n"] }]
2592
+ args: [{ selector: 'aeb-dropdown-menu', encapsulation: ViewEncapsulation.None, standalone: false, template: "@for (option of options(); track option.value; let i = $index) {\n<div\n class=\"aeb-dropdown-menu__option\"\n [class.active]=\"option === selectedOption()\"\n [class.focused]=\"i === focusedIndex()\"\n [class.has-additional]=\"option.additional\"\n [style.height]=\"optionHeightPx() + 'px'\"\n [attr.tabindex]=\"-1\"\n [attr.role]=\"'option'\"\n [attr.aria-selected]=\"i === focusedIndex()\"\n (click)=\"selectOption(option.value)\"\n>\n <div class=\"aeb-dropdown-menu__option-inner\">\n <p>{{ option.label }}</p>\n @if (option.additional) {\n <small>{{ option.additional }}</small>\n }\n </div>\n</div>\n}\n", styles: [".aeb-dropdown-menu{position:absolute;z-index:var(--z-dropdown);width:100%;left:0;background:var(--c-bg-light);margin:0;border-radius:12px;box-shadow:0 4px 12px #27303e26;overflow-y:auto;opacity:0;visibility:hidden;color:var(--c-t-primary);padding:8px 0 8px 8px;box-sizing:border-box;transform:scaleY(.8) rotateX(-60deg);transform-origin:top center;transition:all .3s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,visibility;perspective:1000px;transform-style:preserve-3d}.aeb-dropdown-menu:empty{display:none}.aeb-dropdown-menu__option{padding:0 24px;box-sizing:border-box;line-height:20px;text-overflow:ellipsis;overflow:hidden;cursor:pointer;display:flex;justify-content:center;flex-direction:column;border-radius:12px;margin-bottom:2px}.aeb-dropdown-menu__option:last-child{margin-bottom:0}.aeb-dropdown-menu__option:hover,.aeb-dropdown-menu__option.active,.aeb-dropdown-menu__option.focused{background-color:var(--c-bg-surface)}.aeb-dropdown-menu__option p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu__option.has-additional{padding:0 24px}.aeb-dropdown-menu__option.has-additional small{display:block;margin-top:4px;line-height:16px;font-size:14px;color:var(--c-t-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aeb-dropdown-menu.bottom{top:calc(100% + 4px);transform-origin:top center;transform:scaleY(.8) rotateX(-60deg)}.aeb-dropdown-menu.top{bottom:calc(100% + 4px);top:auto;transform-origin:bottom center;transform:scaleY(.8) rotateX(60deg)}.aeb-dropdown-menu.open{opacity:1;visibility:visible;transform:scaleY(1) rotateX(0)}\n"] }]
2500
2593
  }], ctorParameters: () => [], propDecorators: { isDropdownMenu: [{
2501
2594
  type: HostBinding,
2502
2595
  args: ['class.aeb-dropdown-menu']
@@ -3512,11 +3605,11 @@ class HeaderComponent {
3512
3605
  }
3513
3606
  ngOnInit() { }
3514
3607
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3515
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: HeaderComponent, isStandalone: false, selector: "header[aebHeader]", inputs: { white: "white" }, host: { properties: { "class": "this.class", "class.white": "this.white" } }, ngImport: i0, template: "<ng-content />\n", styles: [".aeb-header-logo-icon{margin-right:18px}.aeb-header-logo-text{display:flex;align-items:center;font-size:var(--font-size-l);font-weight:var(--font-weight-medium);line-height:28px}.aeb-header{position:fixed;top:0;left:0;z-index:1001;box-sizing:border-box;display:flex;align-items:center;width:100%;height:80px;padding:0 28px;background-color:var(--color-mono-900)}.aeb-header.white{color:var(--color-mono-900);background-color:var(--color-mono-0);border-bottom:1px solid var(--lightgray)}.aeb-header.white .aeb-header-logo-text{color:var(--color-mono-900)}.aeb-header-subtitle{margin-left:24px;font-size:var(--font-size-xxs);font-weight:var(--font-weight-regular);line-height:14px;color:var(--color-mono-300)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
3608
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: HeaderComponent, isStandalone: false, selector: "header[aebHeader]", inputs: { white: "white" }, host: { properties: { "class": "this.class", "class.white": "this.white" } }, ngImport: i0, template: "<ng-content />\n", styles: [".aeb-header-logo-icon{margin-right:18px}.aeb-header-logo-text{display:flex;align-items:center;font-size:var(--font-size-l);font-weight:var(--font-weight-medium);line-height:28px}.aeb-header{position:fixed;top:0;left:0;z-index:var(--z-fixed);box-sizing:border-box;display:flex;align-items:center;width:100%;height:80px;padding:0 28px;background-color:var(--color-mono-900)}.aeb-header.white{color:var(--color-mono-900);background-color:var(--color-mono-0);border-bottom:1px solid var(--lightgray)}.aeb-header.white .aeb-header-logo-text{color:var(--color-mono-900)}.aeb-header-subtitle{margin-left:24px;font-size:var(--font-size-xxs);font-weight:var(--font-weight-regular);line-height:14px;color:var(--color-mono-300)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
3516
3609
  }
3517
3610
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: HeaderComponent, decorators: [{
3518
3611
  type: Component,
3519
- args: [{ selector: 'header[aebHeader]', encapsulation: ViewEncapsulation.None, standalone: false, template: "<ng-content />\n", styles: [".aeb-header-logo-icon{margin-right:18px}.aeb-header-logo-text{display:flex;align-items:center;font-size:var(--font-size-l);font-weight:var(--font-weight-medium);line-height:28px}.aeb-header{position:fixed;top:0;left:0;z-index:1001;box-sizing:border-box;display:flex;align-items:center;width:100%;height:80px;padding:0 28px;background-color:var(--color-mono-900)}.aeb-header.white{color:var(--color-mono-900);background-color:var(--color-mono-0);border-bottom:1px solid var(--lightgray)}.aeb-header.white .aeb-header-logo-text{color:var(--color-mono-900)}.aeb-header-subtitle{margin-left:24px;font-size:var(--font-size-xxs);font-weight:var(--font-weight-regular);line-height:14px;color:var(--color-mono-300)}\n"] }]
3612
+ args: [{ selector: 'header[aebHeader]', encapsulation: ViewEncapsulation.None, standalone: false, template: "<ng-content />\n", styles: [".aeb-header-logo-icon{margin-right:18px}.aeb-header-logo-text{display:flex;align-items:center;font-size:var(--font-size-l);font-weight:var(--font-weight-medium);line-height:28px}.aeb-header{position:fixed;top:0;left:0;z-index:var(--z-fixed);box-sizing:border-box;display:flex;align-items:center;width:100%;height:80px;padding:0 28px;background-color:var(--color-mono-900)}.aeb-header.white{color:var(--color-mono-900);background-color:var(--color-mono-0);border-bottom:1px solid var(--lightgray)}.aeb-header.white .aeb-header-logo-text{color:var(--color-mono-900)}.aeb-header-subtitle{margin-left:24px;font-size:var(--font-size-xxs);font-weight:var(--font-weight-regular);line-height:14px;color:var(--color-mono-300)}\n"] }]
3520
3613
  }], ctorParameters: () => [], propDecorators: { class: [{
3521
3614
  type: HostBinding,
3522
3615
  args: ['class']
@@ -3748,11 +3841,11 @@ class ModalComponent {
3748
3841
  }
3749
3842
  }
3750
3843
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3751
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: ModalComponent, isStandalone: false, selector: "aeb-modal", inputs: { isOpen: "isOpen", title: "title", size: "size", closeOnBackdropClick: "closeOnBackdropClick", controlsConfig: "controlsConfig" }, outputs: { leftBtnClick: "leftBtnClick", rightBtnClick: "rightBtnClick", closeBtnClick: "closeBtnClick" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.aeb-modal": "this.isModal", "class.aeb-modal--open": "this.isOpenClass" } }, ngImport: i0, template: "<div class=\"aeb-modal__window\" [class]=\"'aeb-modal__window--' + size\">\n <div class=\"aeb-modal__header\">\n <h2 class=\"aeb-modal__title\">{{ title }}</h2>\n @if (!controlsConfig.closeBtn.hidden) {\n <button class=\"aeb-modal__close-btn\" (click)=\"onCloseClick()\">\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.63074 9.63074L22.3692 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M22.3693 9.63074L9.63077 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n }\n </div>\n <ng-content />\n @if (!controlsConfig.leftBtn.hidden && !controlsConfig.rightBtn.hidden) {\n <span class=\"aeb-modal__btn-group\">\n @if (!controlsConfig.leftBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false || size === 'S'\"\n [variant]=\"controlsConfig.leftBtn.variant\"\n [isWarning]=\"controlsConfig.leftBtn.warning\"\n [disabled]=\"controlsConfig.leftBtn.disabled\"\n (click)=\"onCancelClick()\"\n >\n {{ controlsConfig.leftBtn.text }}\n </button>\n }\n @if (!controlsConfig.rightBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false || size === 'S'\"\n [variant]=\"controlsConfig.rightBtn.variant\"\n [isWarning]=\"controlsConfig.rightBtn.warning\"\n [disabled]=\"controlsConfig.rightBtn.disabled\"\n (click)=\"onSubmitClick()\"\n >\n {{ controlsConfig.rightBtn.text }}\n </button>\n }\n </span>\n }\n</div>\n", styles: [".aeb-modal{position:fixed;top:0;left:0;z-index:10000;display:flex;align-items:center;justify-content:center;width:100%;height:100vh;height:100dvh;margin:0;padding:0;border:none;cursor:pointer;opacity:0;visibility:hidden;background:transparent;transition:opacity .3s cubic-bezier(.4,0,.2,1),visibility .3s cubic-bezier(.4,0,.2,1),background-color .3s cubic-bezier(.4,0,.2,1)}.aeb-modal--open{opacity:1;visibility:visible;background-color:var(--c-bg-overlay)}.aeb-modal--open .aeb-modal__window{transform:scale(1) translateY(0);opacity:1}@media screen and (max-width: 599px){.aeb-modal--open .aeb-modal__window{transform:translateY(0)}}.aeb-modal--open .aeb-modal__header,.aeb-modal--open .aeb-modal__btn-group{transform:translateY(0);opacity:1}.aeb-modal--open .aeb-modal__window>:not(.aeb-modal__header,.aeb-modal__btn-group){transform:translateY(0);opacity:1}.aeb-modal__window{position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:32px;padding:32px;margin:16px;background-color:var(--c-bg-default);border-radius:var(--border-fully-rounded);box-shadow:var(--light-theme-shadows-shadow-smooth-high);width:100%;cursor:default;transform:scale(.8) translateY(20px);opacity:0;transition:transform .3s cubic-bezier(.34,1.56,.64,1),opacity .3s cubic-bezier(.4,0,.2,1)}.aeb-modal__window>:not(.aeb-modal__header,.aeb-modal__btn-group){transform:translateY(5px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .15s,opacity .4s cubic-bezier(.4,0,.2,1) .15s}.aeb-modal__window--auto{width:auto}.aeb-modal__window--S{max-width:480px}.aeb-modal__window--M{max-width:720px}.aeb-modal__window--L{max-width:900px}@media screen and (max-width: 599px){.aeb-modal__window{position:absolute;bottom:0;margin:0;border-radius:var(--border-rounded) var(--border-rounded) 0 0;padding:16px 16px 32px;transform:translateY(100%);transition:transform .4s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}.aeb-modal__window--S,.aeb-modal__window--M,.aeb-modal__window--L{max-width:100%}}.aeb-modal__header{display:flex;justify-content:space-between;transform:translateY(-10px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .1s,opacity .4s cubic-bezier(.4,0,.2,1) .1s}.aeb-modal__title{margin:0;color:var(--c-t-primary)}@media screen and (max-width: 599px){.aeb-modal__title{font-weight:500;font-size:22px}}.aeb-modal__close-btn{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;background:none;border:var(--no-border);box-shadow:var(--light-theme-shadows-shadow-smooth-high);transition:transform .2s cubic-bezier(.4,0,.2,1)}.aeb-modal__close-btn:hover{transform:scale(1.1)}.aeb-modal__close-btn:active{transform:scale(.95)}.aeb-modal__btn-group{display:flex;gap:16px;justify-content:flex-end;transform:translateY(10px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .2s,opacity .4s cubic-bezier(.4,0,.2,1) .2s}@media screen and (max-width: 599px){.aeb-modal__btn-group{flex-direction:column}}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[aebButton], a[aebButton]", inputs: ["fill", "isWarning", "size", "variant"] }], encapsulation: i0.ViewEncapsulation.None }); }
3844
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: ModalComponent, isStandalone: false, selector: "aeb-modal", inputs: { isOpen: "isOpen", title: "title", size: "size", closeOnBackdropClick: "closeOnBackdropClick", controlsConfig: "controlsConfig" }, outputs: { leftBtnClick: "leftBtnClick", rightBtnClick: "rightBtnClick", closeBtnClick: "closeBtnClick" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.aeb-modal": "this.isModal", "class.aeb-modal--open": "this.isOpenClass" } }, ngImport: i0, template: "<div class=\"aeb-modal__window\" [class]=\"'aeb-modal__window--' + size\">\n <div class=\"aeb-modal__header\">\n <h2 class=\"aeb-modal__title\">{{ title }}</h2>\n @if (!controlsConfig.closeBtn.hidden) {\n <button class=\"aeb-modal__close-btn\" (click)=\"onCloseClick()\">\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.63074 9.63074L22.3692 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M22.3693 9.63074L9.63077 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n }\n </div>\n <ng-content />\n @if (!controlsConfig.leftBtn.hidden && !controlsConfig.rightBtn.hidden) {\n <span class=\"aeb-modal__btn-group\">\n @if (!controlsConfig.leftBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false || size === 'S'\"\n [variant]=\"controlsConfig.leftBtn.variant\"\n [isWarning]=\"controlsConfig.leftBtn.warning\"\n [disabled]=\"controlsConfig.leftBtn.disabled\"\n (click)=\"onCancelClick()\"\n >\n {{ controlsConfig.leftBtn.text }}\n </button>\n }\n @if (!controlsConfig.rightBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false || size === 'S'\"\n [variant]=\"controlsConfig.rightBtn.variant\"\n [isWarning]=\"controlsConfig.rightBtn.warning\"\n [disabled]=\"controlsConfig.rightBtn.disabled\"\n (click)=\"onSubmitClick()\"\n >\n {{ controlsConfig.rightBtn.text }}\n </button>\n }\n </span>\n }\n</div>\n", styles: [".aeb-modal{position:fixed;top:0;left:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;width:100%;height:100vh;height:100dvh;margin:0;padding:0;border:none;cursor:pointer;opacity:0;visibility:hidden;background:transparent;transition:opacity .3s cubic-bezier(.4,0,.2,1),visibility .3s cubic-bezier(.4,0,.2,1),background-color .3s cubic-bezier(.4,0,.2,1)}.aeb-modal--open{opacity:1;visibility:visible;background-color:var(--c-bg-overlay)}.aeb-modal--open .aeb-modal__window{transform:scale(1) translateY(0);opacity:1}@media screen and (max-width: 599px){.aeb-modal--open .aeb-modal__window{transform:translateY(0)}}.aeb-modal--open .aeb-modal__header,.aeb-modal--open .aeb-modal__btn-group{transform:translateY(0);opacity:1}.aeb-modal--open .aeb-modal__window>:not(.aeb-modal__header,.aeb-modal__btn-group){transform:translateY(0);opacity:1}.aeb-modal__window{position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:32px;padding:32px;margin:16px;background-color:var(--c-bg-default);border-radius:var(--border-fully-rounded);box-shadow:var(--light-theme-shadows-shadow-smooth-high);width:100%;cursor:default;transform:scale(.8) translateY(20px);opacity:0;transition:transform .3s cubic-bezier(.34,1.56,.64,1),opacity .3s cubic-bezier(.4,0,.2,1)}.aeb-modal__window>:not(.aeb-modal__header,.aeb-modal__btn-group){transform:translateY(5px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .15s,opacity .4s cubic-bezier(.4,0,.2,1) .15s}.aeb-modal__window--auto{width:auto}.aeb-modal__window--S{max-width:480px}.aeb-modal__window--M{max-width:720px}.aeb-modal__window--L{max-width:900px}@media screen and (max-width: 599px){.aeb-modal__window{position:absolute;bottom:0;margin:0;border-radius:var(--border-rounded) var(--border-rounded) 0 0;padding:16px 16px 32px;transform:translateY(100%);transition:transform .4s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}.aeb-modal__window--S,.aeb-modal__window--M,.aeb-modal__window--L{max-width:100%}}.aeb-modal__header{display:flex;justify-content:space-between;transform:translateY(-10px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .1s,opacity .4s cubic-bezier(.4,0,.2,1) .1s}.aeb-modal__title{margin:0;color:var(--c-t-primary)}@media screen and (max-width: 599px){.aeb-modal__title{font-weight:500;font-size:22px}}.aeb-modal__close-btn{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;background:none;border:var(--no-border);box-shadow:var(--light-theme-shadows-shadow-smooth-high);transition:transform .2s cubic-bezier(.4,0,.2,1)}.aeb-modal__close-btn:hover{transform:scale(1.1)}.aeb-modal__close-btn:active{transform:scale(.95)}.aeb-modal__btn-group{display:flex;gap:16px;justify-content:flex-end;transform:translateY(10px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .2s,opacity .4s cubic-bezier(.4,0,.2,1) .2s}@media screen and (max-width: 599px){.aeb-modal__btn-group{flex-direction:column}}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[aebButton], a[aebButton]", inputs: ["fill", "isWarning", "size", "variant"] }], encapsulation: i0.ViewEncapsulation.None }); }
3752
3845
  }
3753
3846
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ModalComponent, decorators: [{
3754
3847
  type: Component,
3755
- args: [{ selector: 'aeb-modal', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-modal__window\" [class]=\"'aeb-modal__window--' + size\">\n <div class=\"aeb-modal__header\">\n <h2 class=\"aeb-modal__title\">{{ title }}</h2>\n @if (!controlsConfig.closeBtn.hidden) {\n <button class=\"aeb-modal__close-btn\" (click)=\"onCloseClick()\">\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.63074 9.63074L22.3692 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M22.3693 9.63074L9.63077 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n }\n </div>\n <ng-content />\n @if (!controlsConfig.leftBtn.hidden && !controlsConfig.rightBtn.hidden) {\n <span class=\"aeb-modal__btn-group\">\n @if (!controlsConfig.leftBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false || size === 'S'\"\n [variant]=\"controlsConfig.leftBtn.variant\"\n [isWarning]=\"controlsConfig.leftBtn.warning\"\n [disabled]=\"controlsConfig.leftBtn.disabled\"\n (click)=\"onCancelClick()\"\n >\n {{ controlsConfig.leftBtn.text }}\n </button>\n }\n @if (!controlsConfig.rightBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false || size === 'S'\"\n [variant]=\"controlsConfig.rightBtn.variant\"\n [isWarning]=\"controlsConfig.rightBtn.warning\"\n [disabled]=\"controlsConfig.rightBtn.disabled\"\n (click)=\"onSubmitClick()\"\n >\n {{ controlsConfig.rightBtn.text }}\n </button>\n }\n </span>\n }\n</div>\n", styles: [".aeb-modal{position:fixed;top:0;left:0;z-index:10000;display:flex;align-items:center;justify-content:center;width:100%;height:100vh;height:100dvh;margin:0;padding:0;border:none;cursor:pointer;opacity:0;visibility:hidden;background:transparent;transition:opacity .3s cubic-bezier(.4,0,.2,1),visibility .3s cubic-bezier(.4,0,.2,1),background-color .3s cubic-bezier(.4,0,.2,1)}.aeb-modal--open{opacity:1;visibility:visible;background-color:var(--c-bg-overlay)}.aeb-modal--open .aeb-modal__window{transform:scale(1) translateY(0);opacity:1}@media screen and (max-width: 599px){.aeb-modal--open .aeb-modal__window{transform:translateY(0)}}.aeb-modal--open .aeb-modal__header,.aeb-modal--open .aeb-modal__btn-group{transform:translateY(0);opacity:1}.aeb-modal--open .aeb-modal__window>:not(.aeb-modal__header,.aeb-modal__btn-group){transform:translateY(0);opacity:1}.aeb-modal__window{position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:32px;padding:32px;margin:16px;background-color:var(--c-bg-default);border-radius:var(--border-fully-rounded);box-shadow:var(--light-theme-shadows-shadow-smooth-high);width:100%;cursor:default;transform:scale(.8) translateY(20px);opacity:0;transition:transform .3s cubic-bezier(.34,1.56,.64,1),opacity .3s cubic-bezier(.4,0,.2,1)}.aeb-modal__window>:not(.aeb-modal__header,.aeb-modal__btn-group){transform:translateY(5px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .15s,opacity .4s cubic-bezier(.4,0,.2,1) .15s}.aeb-modal__window--auto{width:auto}.aeb-modal__window--S{max-width:480px}.aeb-modal__window--M{max-width:720px}.aeb-modal__window--L{max-width:900px}@media screen and (max-width: 599px){.aeb-modal__window{position:absolute;bottom:0;margin:0;border-radius:var(--border-rounded) var(--border-rounded) 0 0;padding:16px 16px 32px;transform:translateY(100%);transition:transform .4s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}.aeb-modal__window--S,.aeb-modal__window--M,.aeb-modal__window--L{max-width:100%}}.aeb-modal__header{display:flex;justify-content:space-between;transform:translateY(-10px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .1s,opacity .4s cubic-bezier(.4,0,.2,1) .1s}.aeb-modal__title{margin:0;color:var(--c-t-primary)}@media screen and (max-width: 599px){.aeb-modal__title{font-weight:500;font-size:22px}}.aeb-modal__close-btn{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;background:none;border:var(--no-border);box-shadow:var(--light-theme-shadows-shadow-smooth-high);transition:transform .2s cubic-bezier(.4,0,.2,1)}.aeb-modal__close-btn:hover{transform:scale(1.1)}.aeb-modal__close-btn:active{transform:scale(.95)}.aeb-modal__btn-group{display:flex;gap:16px;justify-content:flex-end;transform:translateY(10px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .2s,opacity .4s cubic-bezier(.4,0,.2,1) .2s}@media screen and (max-width: 599px){.aeb-modal__btn-group{flex-direction:column}}\n"] }]
3848
+ args: [{ selector: 'aeb-modal', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-modal__window\" [class]=\"'aeb-modal__window--' + size\">\n <div class=\"aeb-modal__header\">\n <h2 class=\"aeb-modal__title\">{{ title }}</h2>\n @if (!controlsConfig.closeBtn.hidden) {\n <button class=\"aeb-modal__close-btn\" (click)=\"onCloseClick()\">\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M9.63074 9.63074L22.3692 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M22.3693 9.63074L9.63077 22.3692\"\n stroke=\"#7D8591\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n }\n </div>\n <ng-content />\n @if (!controlsConfig.leftBtn.hidden && !controlsConfig.rightBtn.hidden) {\n <span class=\"aeb-modal__btn-group\">\n @if (!controlsConfig.leftBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false || size === 'S'\"\n [variant]=\"controlsConfig.leftBtn.variant\"\n [isWarning]=\"controlsConfig.leftBtn.warning\"\n [disabled]=\"controlsConfig.leftBtn.disabled\"\n (click)=\"onCancelClick()\"\n >\n {{ controlsConfig.leftBtn.text }}\n </button>\n }\n @if (!controlsConfig.rightBtn.hidden) {\n <button\n aebButton\n [size]=\"isMobileScreen ? 'M' : 'L'\"\n [fill]=\"isMobileScreen ? true : false || size === 'S'\"\n [variant]=\"controlsConfig.rightBtn.variant\"\n [isWarning]=\"controlsConfig.rightBtn.warning\"\n [disabled]=\"controlsConfig.rightBtn.disabled\"\n (click)=\"onSubmitClick()\"\n >\n {{ controlsConfig.rightBtn.text }}\n </button>\n }\n </span>\n }\n</div>\n", styles: [".aeb-modal{position:fixed;top:0;left:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;width:100%;height:100vh;height:100dvh;margin:0;padding:0;border:none;cursor:pointer;opacity:0;visibility:hidden;background:transparent;transition:opacity .3s cubic-bezier(.4,0,.2,1),visibility .3s cubic-bezier(.4,0,.2,1),background-color .3s cubic-bezier(.4,0,.2,1)}.aeb-modal--open{opacity:1;visibility:visible;background-color:var(--c-bg-overlay)}.aeb-modal--open .aeb-modal__window{transform:scale(1) translateY(0);opacity:1}@media screen and (max-width: 599px){.aeb-modal--open .aeb-modal__window{transform:translateY(0)}}.aeb-modal--open .aeb-modal__header,.aeb-modal--open .aeb-modal__btn-group{transform:translateY(0);opacity:1}.aeb-modal--open .aeb-modal__window>:not(.aeb-modal__header,.aeb-modal__btn-group){transform:translateY(0);opacity:1}.aeb-modal__window{position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:32px;padding:32px;margin:16px;background-color:var(--c-bg-default);border-radius:var(--border-fully-rounded);box-shadow:var(--light-theme-shadows-shadow-smooth-high);width:100%;cursor:default;transform:scale(.8) translateY(20px);opacity:0;transition:transform .3s cubic-bezier(.34,1.56,.64,1),opacity .3s cubic-bezier(.4,0,.2,1)}.aeb-modal__window>:not(.aeb-modal__header,.aeb-modal__btn-group){transform:translateY(5px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .15s,opacity .4s cubic-bezier(.4,0,.2,1) .15s}.aeb-modal__window--auto{width:auto}.aeb-modal__window--S{max-width:480px}.aeb-modal__window--M{max-width:720px}.aeb-modal__window--L{max-width:900px}@media screen and (max-width: 599px){.aeb-modal__window{position:absolute;bottom:0;margin:0;border-radius:var(--border-rounded) var(--border-rounded) 0 0;padding:16px 16px 32px;transform:translateY(100%);transition:transform .4s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}.aeb-modal__window--S,.aeb-modal__window--M,.aeb-modal__window--L{max-width:100%}}.aeb-modal__header{display:flex;justify-content:space-between;transform:translateY(-10px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .1s,opacity .4s cubic-bezier(.4,0,.2,1) .1s}.aeb-modal__title{margin:0;color:var(--c-t-primary)}@media screen and (max-width: 599px){.aeb-modal__title{font-weight:500;font-size:22px}}.aeb-modal__close-btn{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;background:none;border:var(--no-border);box-shadow:var(--light-theme-shadows-shadow-smooth-high);transition:transform .2s cubic-bezier(.4,0,.2,1)}.aeb-modal__close-btn:hover{transform:scale(1.1)}.aeb-modal__close-btn:active{transform:scale(.95)}.aeb-modal__btn-group{display:flex;gap:16px;justify-content:flex-end;transform:translateY(10px);opacity:0;transition:transform .4s cubic-bezier(.4,0,.2,1) .2s,opacity .4s cubic-bezier(.4,0,.2,1) .2s}@media screen and (max-width: 599px){.aeb-modal__btn-group{flex-direction:column}}\n"] }]
3756
3849
  }], ctorParameters: () => [], propDecorators: { isOpen: [{
3757
3850
  type: Input
3758
3851
  }], title: [{
@@ -3987,7 +4080,7 @@ class NotificationsComponent {
3987
4080
  this.notificationClose.emit(id);
3988
4081
  }
3989
4082
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: NotificationsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3990
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: NotificationsComponent, isStandalone: false, selector: "aeb-notifications", inputs: { notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, notificationsPosition: { classPropertyName: "notificationsPosition", publicName: "notificationsPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { notificationClick: "notificationClick", notificationClose: "notificationClose" }, host: { properties: { "class.aeb-notifications-container": "this.notificationContainer", "class.aeb-notifications-container--reversed": "this.areNotificationsReversed", "@listAnimation": "this.listAnimation", "class": "this.orientation" } }, ngImport: i0, template: "@for (item of notifications(); track item.id) {\n <aeb-notification\n [id]=\"item.id\"\n [header]=\"item.header\"\n [message]=\"item.message\"\n [lifeTime]=\"item.lifeTime\"\n [type]=\"item.type\"\n [buttonText]=\"item.buttonText\"\n (buttonClick)=\"item.onButtonClick($event)\"\n (clickNotification)=\"handleItemClick($event)\"\n (closeNotification)=\"handleItemClose($event)\"\n />\n}\n", styles: [".aeb-notifications-container{position:fixed;z-index:1500;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.aeb-notifications-container--reversed{flex-direction:column-reverse}.aeb-notifications-left{left:30px}.aeb-notifications-right{right:30px}.aeb-notifications-top{top:30px}.aeb-notifications-bottom{bottom:30px}\n"], dependencies: [{ kind: "component", type: NotificationComponent, selector: "aeb-notification", inputs: ["id", "header", "message", "type", "buttonText", "lifeTime"], outputs: ["buttonClick", "clickNotification", "closeNotification"] }], animations: [
4083
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: NotificationsComponent, isStandalone: false, selector: "aeb-notifications", inputs: { notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, notificationsPosition: { classPropertyName: "notificationsPosition", publicName: "notificationsPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { notificationClick: "notificationClick", notificationClose: "notificationClose" }, host: { properties: { "class.aeb-notifications-container": "this.notificationContainer", "class.aeb-notifications-container--reversed": "this.areNotificationsReversed", "@listAnimation": "this.listAnimation", "class": "this.orientation" } }, ngImport: i0, template: "@for (item of notifications(); track item.id) {\n <aeb-notification\n [id]=\"item.id\"\n [header]=\"item.header\"\n [message]=\"item.message\"\n [lifeTime]=\"item.lifeTime\"\n [type]=\"item.type\"\n [buttonText]=\"item.buttonText\"\n (buttonClick)=\"item.onButtonClick($event)\"\n (clickNotification)=\"handleItemClick($event)\"\n (closeNotification)=\"handleItemClose($event)\"\n />\n}\n", styles: [".aeb-notifications-container{position:fixed;z-index:var(--z-notification);display:flex;flex-direction:column;align-items:flex-start;gap:12px}.aeb-notifications-container--reversed{flex-direction:column-reverse}.aeb-notifications-left{left:30px}.aeb-notifications-right{right:30px}.aeb-notifications-top{top:30px}.aeb-notifications-bottom{bottom:30px}\n"], dependencies: [{ kind: "component", type: NotificationComponent, selector: "aeb-notification", inputs: ["id", "header", "message", "type", "buttonText", "lifeTime"], outputs: ["buttonClick", "clickNotification", "closeNotification"] }], animations: [
3991
4084
  trigger('listAnimation', [
3992
4085
  transition('* => *', [
3993
4086
  query(':enter', [
@@ -4025,7 +4118,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
4025
4118
  ], { optional: true })
4026
4119
  ])
4027
4120
  ])
4028
- ], template: "@for (item of notifications(); track item.id) {\n <aeb-notification\n [id]=\"item.id\"\n [header]=\"item.header\"\n [message]=\"item.message\"\n [lifeTime]=\"item.lifeTime\"\n [type]=\"item.type\"\n [buttonText]=\"item.buttonText\"\n (buttonClick)=\"item.onButtonClick($event)\"\n (clickNotification)=\"handleItemClick($event)\"\n (closeNotification)=\"handleItemClose($event)\"\n />\n}\n", styles: [".aeb-notifications-container{position:fixed;z-index:1500;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.aeb-notifications-container--reversed{flex-direction:column-reverse}.aeb-notifications-left{left:30px}.aeb-notifications-right{right:30px}.aeb-notifications-top{top:30px}.aeb-notifications-bottom{bottom:30px}\n"] }]
4121
+ ], template: "@for (item of notifications(); track item.id) {\n <aeb-notification\n [id]=\"item.id\"\n [header]=\"item.header\"\n [message]=\"item.message\"\n [lifeTime]=\"item.lifeTime\"\n [type]=\"item.type\"\n [buttonText]=\"item.buttonText\"\n (buttonClick)=\"item.onButtonClick($event)\"\n (clickNotification)=\"handleItemClick($event)\"\n (closeNotification)=\"handleItemClose($event)\"\n />\n}\n", styles: [".aeb-notifications-container{position:fixed;z-index:var(--z-notification);display:flex;flex-direction:column;align-items:flex-start;gap:12px}.aeb-notifications-container--reversed{flex-direction:column-reverse}.aeb-notifications-left{left:30px}.aeb-notifications-right{right:30px}.aeb-notifications-top{top:30px}.aeb-notifications-bottom{bottom:30px}\n"] }]
4029
4122
  }], propDecorators: { notificationContainer: [{
4030
4123
  type: HostBinding,
4031
4124
  args: ['class.aeb-notifications-container']
@@ -4393,11 +4486,11 @@ class PopUpComponent {
4393
4486
  this.popUp.nativeElement.style.pointerEvents = 'none';
4394
4487
  }
4395
4488
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: PopUpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4396
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: PopUpComponent, isStandalone: false, selector: "aeb-pop-up", inputs: { header: "header" }, viewQueries: [{ propertyName: "popUp", first: true, predicate: ["popUp"], descendants: true }], ngImport: i0, template: "<div class=\"aeb-pop-up\" #popUp>\n <div class=\"aeb-pop-up__header\">\n <div class=\"aeb-pop-up__heading\">\n {{ header }}\n </div>\n <div class=\"aeb-pop-up__close-icon\" (click)=\"hidePopUp()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.63086 5.63074L18.3693 18.3692\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M18.3691 5.63074L5.63065 18.3692\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-pop-up__container\">\n <ng-content />\n </div>\n</div>\n", styles: [".aeb-pop-up{position:fixed;z-index:2000;box-sizing:border-box;min-width:360px;padding:20px 16px;pointer-events:none;cursor:default;background-color:var(--color-mono-0);border-radius:var(--border-medium-rounded);box-shadow:0 3px 15px #00000040;opacity:var(--100-total);transition:opacity,.2s}.aeb-pop-up__header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding-bottom:15px;border-bottom:1px solid var(--color-mono-100)}.aeb-pop-up__heading{font-size:var(--font-size-xs);font-weight:var(--font-weight-medium)}.aeb-pop-up__close-icon{position:relative;top:1px;cursor:pointer}\n"], encapsulation: i0.ViewEncapsulation.None }); }
4489
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: PopUpComponent, isStandalone: false, selector: "aeb-pop-up", inputs: { header: "header" }, viewQueries: [{ propertyName: "popUp", first: true, predicate: ["popUp"], descendants: true }], ngImport: i0, template: "<div class=\"aeb-pop-up\" #popUp>\n <div class=\"aeb-pop-up__header\">\n <div class=\"aeb-pop-up__heading\">\n {{ header }}\n </div>\n <div class=\"aeb-pop-up__close-icon\" (click)=\"hidePopUp()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.63086 5.63074L18.3693 18.3692\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M18.3691 5.63074L5.63065 18.3692\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-pop-up__container\">\n <ng-content />\n </div>\n</div>\n", styles: [".aeb-pop-up{position:fixed;z-index:var(--z-popover);box-sizing:border-box;min-width:360px;padding:20px 16px;pointer-events:none;cursor:default;background-color:var(--color-mono-0);border-radius:var(--border-medium-rounded);box-shadow:0 3px 15px #00000040;opacity:var(--100-total);transition:opacity,.2s}.aeb-pop-up__header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding-bottom:15px;border-bottom:1px solid var(--color-mono-100)}.aeb-pop-up__heading{font-size:var(--font-size-xs);font-weight:var(--font-weight-medium)}.aeb-pop-up__close-icon{position:relative;top:1px;cursor:pointer}\n"], encapsulation: i0.ViewEncapsulation.None }); }
4397
4490
  }
4398
4491
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: PopUpComponent, decorators: [{
4399
4492
  type: Component,
4400
- args: [{ selector: 'aeb-pop-up', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-pop-up\" #popUp>\n <div class=\"aeb-pop-up__header\">\n <div class=\"aeb-pop-up__heading\">\n {{ header }}\n </div>\n <div class=\"aeb-pop-up__close-icon\" (click)=\"hidePopUp()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.63086 5.63074L18.3693 18.3692\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M18.3691 5.63074L5.63065 18.3692\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-pop-up__container\">\n <ng-content />\n </div>\n</div>\n", styles: [".aeb-pop-up{position:fixed;z-index:2000;box-sizing:border-box;min-width:360px;padding:20px 16px;pointer-events:none;cursor:default;background-color:var(--color-mono-0);border-radius:var(--border-medium-rounded);box-shadow:0 3px 15px #00000040;opacity:var(--100-total);transition:opacity,.2s}.aeb-pop-up__header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding-bottom:15px;border-bottom:1px solid var(--color-mono-100)}.aeb-pop-up__heading{font-size:var(--font-size-xs);font-weight:var(--font-weight-medium)}.aeb-pop-up__close-icon{position:relative;top:1px;cursor:pointer}\n"] }]
4493
+ args: [{ selector: 'aeb-pop-up', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-pop-up\" #popUp>\n <div class=\"aeb-pop-up__header\">\n <div class=\"aeb-pop-up__heading\">\n {{ header }}\n </div>\n <div class=\"aeb-pop-up__close-icon\" (click)=\"hidePopUp()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5.63086 5.63074L18.3693 18.3692\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M18.3691 5.63074L5.63065 18.3692\"\n stroke=\"#2F88F0\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </div>\n </div>\n <div class=\"aeb-pop-up__container\">\n <ng-content />\n </div>\n</div>\n", styles: [".aeb-pop-up{position:fixed;z-index:var(--z-popover);box-sizing:border-box;min-width:360px;padding:20px 16px;pointer-events:none;cursor:default;background-color:var(--color-mono-0);border-radius:var(--border-medium-rounded);box-shadow:0 3px 15px #00000040;opacity:var(--100-total);transition:opacity,.2s}.aeb-pop-up__header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding-bottom:15px;border-bottom:1px solid var(--color-mono-100)}.aeb-pop-up__heading{font-size:var(--font-size-xs);font-weight:var(--font-weight-medium)}.aeb-pop-up__close-icon{position:relative;top:1px;cursor:pointer}\n"] }]
4401
4494
  }], propDecorators: { popUp: [{
4402
4495
  type: ViewChild,
4403
4496
  args: ['popUp']
@@ -4701,11 +4794,11 @@ class SidebarComponent {
4701
4794
  this.toggleClick.emit(this.isOpen);
4702
4795
  }
4703
4796
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4704
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: SidebarComponent, isStandalone: false, selector: "aeb-sidebar", inputs: { isOpen: "isOpen", isRight: "isRight", isBurger: "isBurger" }, outputs: { toggleClick: "toggleClick" }, host: { properties: { "class": "this.class", "class.open": "this.isOpen", "class.right": "this.isRight", "class.aeb-sidebar--burger": "this.isBurgerLayout" } }, ngImport: i0, template: "@if (!isBurger) {\n <div class=\"aeb-sidebar-items\">\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </div>\n}\n\n@if (isBurger) {\n <div class=\"aeb-sidebar-burger\">\n <div class=\"aeb-sidebar-burger__icon\" (click)=\"handleToggleSidebar()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1.71387 12H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M1.71387 5.14258H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M1.71387 18.8574H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n </div>\n}\n\n@if (isBurger) {\n <div class=\"aeb-sidebar-items\">\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </div>\n}\n\n@if (isOpen) {\n <div class=\"aeb-sidebar-footer\">\n <!-- \u0421\u0432\u044F\u0437\u0430\u0442\u044C\u0441\u044F \u0441 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u043F\u043E \u043F\u043E\u0447\u0442\u0435\n <a href=\"mailto:support@aeb.ru\">support@aeb.ru</a> -->\n </div>\n}\n@if (!isBurger) {\n <div class=\"aeb-sidebar-toggle-icon\" (click)=\"handleToggleSidebar()\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M15.5359 6.30688L21.7602 13.3677C21.9199 13.5493 22 13.7653 22 14C22 14.2106 21.9341 14.4606 21.7515 14.6422L15.5318 21.6978C15.3721 21.8793 15.1534 22 14.8856 22C14.6176 22 14.399 21.8794 14.2394 21.6977C13.927 21.3423 13.9119 20.7814 14.244 20.4287L19.9121 14L14.2398 7.56653C13.9272 7.21101 13.9119 6.64939 14.2444 6.29664C14.4095 6.11179 14.6412 6 14.8921 6C15.1445 6 15.3769 6.1135 15.5359 6.30688Z\"\n fill=\"#9CA8AF\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.53586 6.30688L13.7602 13.3677C13.9199 13.5493 14 13.7653 14 14C14 14.2106 13.9341 14.4606 13.7515 14.6422L7.53175 21.6978C7.37212 21.8793 7.15341 22 6.88558 22C6.61765 22 6.39904 21.8794 6.2394 21.6977C5.92703 21.3423 5.91188 20.7814 6.24398 20.4287L11.9121 14L6.23978 7.56653C5.92725 7.21101 5.91186 6.64939 6.24438 6.29664C6.4095 6.11179 6.64121 6 6.89212 6C7.14455 6 7.37688 6.1135 7.53586 6.30688Z\"\n fill=\"#9CA8AF\"\n />\n </svg>\n </div>\n}\n\n<ng-template #contentTpl>\n <ng-content />\n</ng-template>\n", styles: [".aeb-sidebar{position:fixed;top:80px;left:0;z-index:1001;display:flex;flex-direction:column;justify-content:space-between;width:80px;height:calc(100vh - 80px);color:var(--color-mono-900);background-color:var(--color-mono-0);border-right:2px solid #f3f3f3}.aeb-sidebar.right{right:0;left:auto;border-right:none;border-left:2px solid #f3f3f3}.aeb-sidebar.right .aeb-sidebar-toggle-icon{transform:scaleX(-1)}.aeb-sidebar-items{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;width:100%;padding:14px 0 0}.aeb-sidebar-item{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;padding:14px 0;text-decoration:none;-webkit-user-select:none;user-select:none}.aeb-sidebar-item-icon{display:flex;flex:0 0 auto;width:28px;height:28px;opacity:.8}.aeb-sidebar-item-icon img{object-fit:contain;width:100%}.aeb-sidebar-item-label{display:none;margin-left:18px;font-size:var(--font-size-s);color:var(--color-mono-900)}.aeb-sidebar-item:hover{text-decoration:none;background-color:var(--color-mono-10)}.aeb-sidebar-item:hover>a{text-decoration:none}.aeb-sidebar-item.active{pointer-events:none}.aeb-sidebar-item.active .aeb-sidebar-item-label{color:var(--color-blue-500)}.aeb-sidebar-item.active .aeb-sidebar-item-icon svg{fill:var(--color-blue-500)}.aeb-sidebar-footer{padding-right:30px;padding-left:30px;margin-top:auto;font-size:var(--font-size-xxs);line-height:18px;color:var(--color-mono-300);text-align:center}.aeb-sidebar-footer a{color:var(--color-blue-500)}.aeb-sidebar-toggle-icon{box-sizing:border-box;display:flex;flex:0 0 auto;align-items:center;justify-content:center;height:50px;margin:16px 8px 10px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:var(--border-lightly-rounded);transition:all linear .23s}.aeb-sidebar-toggle-icon>svg{transition:all ease .23s}.aeb-sidebar-toggle-icon:hover{background-color:#f3f3f3}.aeb-sidebar-toggle-icon:hover>svg{transform:translate(2px)}.aeb-sidebar.open{width:260px}.aeb-sidebar.open .aeb-sidebar-item{justify-content:flex-start;padding:14px 28px}.aeb-sidebar.open .aeb-sidebar-item-label{display:inline-block}.aeb-sidebar.open .aeb-sidebar-toggle-icon{background-color:#f3f3f3}.aeb-sidebar.open .aeb-sidebar-toggle-icon>svg{transform:scaleX(-1)}.aeb-sidebar.open .aeb-sidebar-toggle-icon:hover{background-color:#e7e7e7}.aeb-sidebar.open .aeb-sidebar-toggle-icon:hover>svg{transform:translate(-2px) scaleX(-1)}.aeb-sidebar--burger{justify-content:flex-start;width:68px;overflow:hidden;transition:width,.2s}.aeb-sidebar--burger.open{display:flex;flex-direction:column;justify-content:space-between}.aeb-sidebar--burger.open .aeb-sidebar-items{overflow-y:auto}.aeb-sidebar--burger.open .aeb-sidebar-items .aeb-sidebar-item{padding:14px 0}.aeb-sidebar--burger .aeb-sidebar-burger{box-sizing:border-box;height:70px;padding:28px 24px}.aeb-sidebar--burger .aeb-sidebar-burger__icon{display:inline-block;cursor:pointer}.aeb-sidebar--burger .aeb-sidebar-items{box-sizing:border-box;display:block;width:260px;padding:0 24px;margin-bottom:30px;overflow:hidden}.aeb-sidebar--burger .aeb-sidebar-items .aeb-sidebar-item{justify-content:flex-start}.aeb-sidebar--burger .aeb-sidebar-footer{width:200px;margin-bottom:32px}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
4797
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: SidebarComponent, isStandalone: false, selector: "aeb-sidebar", inputs: { isOpen: "isOpen", isRight: "isRight", isBurger: "isBurger" }, outputs: { toggleClick: "toggleClick" }, host: { properties: { "class": "this.class", "class.open": "this.isOpen", "class.right": "this.isRight", "class.aeb-sidebar--burger": "this.isBurgerLayout" } }, ngImport: i0, template: "@if (!isBurger) {\n <div class=\"aeb-sidebar-items\">\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </div>\n}\n\n@if (isBurger) {\n <div class=\"aeb-sidebar-burger\">\n <div class=\"aeb-sidebar-burger__icon\" (click)=\"handleToggleSidebar()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1.71387 12H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M1.71387 5.14258H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M1.71387 18.8574H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n </div>\n}\n\n@if (isBurger) {\n <div class=\"aeb-sidebar-items\">\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </div>\n}\n\n@if (isOpen) {\n <div class=\"aeb-sidebar-footer\">\n <!-- \u0421\u0432\u044F\u0437\u0430\u0442\u044C\u0441\u044F \u0441 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u043F\u043E \u043F\u043E\u0447\u0442\u0435\n <a href=\"mailto:support@aeb.ru\">support@aeb.ru</a> -->\n </div>\n}\n@if (!isBurger) {\n <div class=\"aeb-sidebar-toggle-icon\" (click)=\"handleToggleSidebar()\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M15.5359 6.30688L21.7602 13.3677C21.9199 13.5493 22 13.7653 22 14C22 14.2106 21.9341 14.4606 21.7515 14.6422L15.5318 21.6978C15.3721 21.8793 15.1534 22 14.8856 22C14.6176 22 14.399 21.8794 14.2394 21.6977C13.927 21.3423 13.9119 20.7814 14.244 20.4287L19.9121 14L14.2398 7.56653C13.9272 7.21101 13.9119 6.64939 14.2444 6.29664C14.4095 6.11179 14.6412 6 14.8921 6C15.1445 6 15.3769 6.1135 15.5359 6.30688Z\"\n fill=\"#9CA8AF\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.53586 6.30688L13.7602 13.3677C13.9199 13.5493 14 13.7653 14 14C14 14.2106 13.9341 14.4606 13.7515 14.6422L7.53175 21.6978C7.37212 21.8793 7.15341 22 6.88558 22C6.61765 22 6.39904 21.8794 6.2394 21.6977C5.92703 21.3423 5.91188 20.7814 6.24398 20.4287L11.9121 14L6.23978 7.56653C5.92725 7.21101 5.91186 6.64939 6.24438 6.29664C6.4095 6.11179 6.64121 6 6.89212 6C7.14455 6 7.37688 6.1135 7.53586 6.30688Z\"\n fill=\"#9CA8AF\"\n />\n </svg>\n </div>\n}\n\n<ng-template #contentTpl>\n <ng-content />\n</ng-template>\n", styles: [".aeb-sidebar{position:fixed;top:80px;left:0;z-index:var(--z-fixed);display:flex;flex-direction:column;justify-content:space-between;width:80px;height:calc(100vh - 80px);color:var(--color-mono-900);background-color:var(--color-mono-0);border-right:2px solid #f3f3f3}.aeb-sidebar.right{right:0;left:auto;border-right:none;border-left:2px solid #f3f3f3}.aeb-sidebar.right .aeb-sidebar-toggle-icon{transform:scaleX(-1)}.aeb-sidebar-items{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;width:100%;padding:14px 0 0}.aeb-sidebar-item{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;padding:14px 0;text-decoration:none;-webkit-user-select:none;user-select:none}.aeb-sidebar-item-icon{display:flex;flex:0 0 auto;width:28px;height:28px;opacity:.8}.aeb-sidebar-item-icon img{object-fit:contain;width:100%}.aeb-sidebar-item-label{display:none;margin-left:18px;font-size:var(--font-size-s);color:var(--color-mono-900)}.aeb-sidebar-item:hover{text-decoration:none;background-color:var(--color-mono-10)}.aeb-sidebar-item:hover>a{text-decoration:none}.aeb-sidebar-item.active{pointer-events:none}.aeb-sidebar-item.active .aeb-sidebar-item-label{color:var(--color-blue-500)}.aeb-sidebar-item.active .aeb-sidebar-item-icon svg{fill:var(--color-blue-500)}.aeb-sidebar-footer{padding-right:30px;padding-left:30px;margin-top:auto;font-size:var(--font-size-xxs);line-height:18px;color:var(--color-mono-300);text-align:center}.aeb-sidebar-footer a{color:var(--color-blue-500)}.aeb-sidebar-toggle-icon{box-sizing:border-box;display:flex;flex:0 0 auto;align-items:center;justify-content:center;height:50px;margin:16px 8px 10px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:var(--border-lightly-rounded);transition:all linear .23s}.aeb-sidebar-toggle-icon>svg{transition:all ease .23s}.aeb-sidebar-toggle-icon:hover{background-color:#f3f3f3}.aeb-sidebar-toggle-icon:hover>svg{transform:translate(2px)}.aeb-sidebar.open{width:260px}.aeb-sidebar.open .aeb-sidebar-item{justify-content:flex-start;padding:14px 28px}.aeb-sidebar.open .aeb-sidebar-item-label{display:inline-block}.aeb-sidebar.open .aeb-sidebar-toggle-icon{background-color:#f3f3f3}.aeb-sidebar.open .aeb-sidebar-toggle-icon>svg{transform:scaleX(-1)}.aeb-sidebar.open .aeb-sidebar-toggle-icon:hover{background-color:#e7e7e7}.aeb-sidebar.open .aeb-sidebar-toggle-icon:hover>svg{transform:translate(-2px) scaleX(-1)}.aeb-sidebar--burger{justify-content:flex-start;width:68px;overflow:hidden;transition:width,.2s}.aeb-sidebar--burger.open{display:flex;flex-direction:column;justify-content:space-between}.aeb-sidebar--burger.open .aeb-sidebar-items{overflow-y:auto}.aeb-sidebar--burger.open .aeb-sidebar-items .aeb-sidebar-item{padding:14px 0}.aeb-sidebar--burger .aeb-sidebar-burger{box-sizing:border-box;height:70px;padding:28px 24px}.aeb-sidebar--burger .aeb-sidebar-burger__icon{display:inline-block;cursor:pointer}.aeb-sidebar--burger .aeb-sidebar-items{box-sizing:border-box;display:block;width:260px;padding:0 24px;margin-bottom:30px;overflow:hidden}.aeb-sidebar--burger .aeb-sidebar-items .aeb-sidebar-item{justify-content:flex-start}.aeb-sidebar--burger .aeb-sidebar-footer{width:200px;margin-bottom:32px}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
4705
4798
  }
4706
4799
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: SidebarComponent, decorators: [{
4707
4800
  type: Component,
4708
- args: [{ selector: 'aeb-sidebar', encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (!isBurger) {\n <div class=\"aeb-sidebar-items\">\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </div>\n}\n\n@if (isBurger) {\n <div class=\"aeb-sidebar-burger\">\n <div class=\"aeb-sidebar-burger__icon\" (click)=\"handleToggleSidebar()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1.71387 12H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M1.71387 5.14258H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M1.71387 18.8574H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n </div>\n}\n\n@if (isBurger) {\n <div class=\"aeb-sidebar-items\">\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </div>\n}\n\n@if (isOpen) {\n <div class=\"aeb-sidebar-footer\">\n <!-- \u0421\u0432\u044F\u0437\u0430\u0442\u044C\u0441\u044F \u0441 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u043F\u043E \u043F\u043E\u0447\u0442\u0435\n <a href=\"mailto:support@aeb.ru\">support@aeb.ru</a> -->\n </div>\n}\n@if (!isBurger) {\n <div class=\"aeb-sidebar-toggle-icon\" (click)=\"handleToggleSidebar()\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M15.5359 6.30688L21.7602 13.3677C21.9199 13.5493 22 13.7653 22 14C22 14.2106 21.9341 14.4606 21.7515 14.6422L15.5318 21.6978C15.3721 21.8793 15.1534 22 14.8856 22C14.6176 22 14.399 21.8794 14.2394 21.6977C13.927 21.3423 13.9119 20.7814 14.244 20.4287L19.9121 14L14.2398 7.56653C13.9272 7.21101 13.9119 6.64939 14.2444 6.29664C14.4095 6.11179 14.6412 6 14.8921 6C15.1445 6 15.3769 6.1135 15.5359 6.30688Z\"\n fill=\"#9CA8AF\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.53586 6.30688L13.7602 13.3677C13.9199 13.5493 14 13.7653 14 14C14 14.2106 13.9341 14.4606 13.7515 14.6422L7.53175 21.6978C7.37212 21.8793 7.15341 22 6.88558 22C6.61765 22 6.39904 21.8794 6.2394 21.6977C5.92703 21.3423 5.91188 20.7814 6.24398 20.4287L11.9121 14L6.23978 7.56653C5.92725 7.21101 5.91186 6.64939 6.24438 6.29664C6.4095 6.11179 6.64121 6 6.89212 6C7.14455 6 7.37688 6.1135 7.53586 6.30688Z\"\n fill=\"#9CA8AF\"\n />\n </svg>\n </div>\n}\n\n<ng-template #contentTpl>\n <ng-content />\n</ng-template>\n", styles: [".aeb-sidebar{position:fixed;top:80px;left:0;z-index:1001;display:flex;flex-direction:column;justify-content:space-between;width:80px;height:calc(100vh - 80px);color:var(--color-mono-900);background-color:var(--color-mono-0);border-right:2px solid #f3f3f3}.aeb-sidebar.right{right:0;left:auto;border-right:none;border-left:2px solid #f3f3f3}.aeb-sidebar.right .aeb-sidebar-toggle-icon{transform:scaleX(-1)}.aeb-sidebar-items{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;width:100%;padding:14px 0 0}.aeb-sidebar-item{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;padding:14px 0;text-decoration:none;-webkit-user-select:none;user-select:none}.aeb-sidebar-item-icon{display:flex;flex:0 0 auto;width:28px;height:28px;opacity:.8}.aeb-sidebar-item-icon img{object-fit:contain;width:100%}.aeb-sidebar-item-label{display:none;margin-left:18px;font-size:var(--font-size-s);color:var(--color-mono-900)}.aeb-sidebar-item:hover{text-decoration:none;background-color:var(--color-mono-10)}.aeb-sidebar-item:hover>a{text-decoration:none}.aeb-sidebar-item.active{pointer-events:none}.aeb-sidebar-item.active .aeb-sidebar-item-label{color:var(--color-blue-500)}.aeb-sidebar-item.active .aeb-sidebar-item-icon svg{fill:var(--color-blue-500)}.aeb-sidebar-footer{padding-right:30px;padding-left:30px;margin-top:auto;font-size:var(--font-size-xxs);line-height:18px;color:var(--color-mono-300);text-align:center}.aeb-sidebar-footer a{color:var(--color-blue-500)}.aeb-sidebar-toggle-icon{box-sizing:border-box;display:flex;flex:0 0 auto;align-items:center;justify-content:center;height:50px;margin:16px 8px 10px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:var(--border-lightly-rounded);transition:all linear .23s}.aeb-sidebar-toggle-icon>svg{transition:all ease .23s}.aeb-sidebar-toggle-icon:hover{background-color:#f3f3f3}.aeb-sidebar-toggle-icon:hover>svg{transform:translate(2px)}.aeb-sidebar.open{width:260px}.aeb-sidebar.open .aeb-sidebar-item{justify-content:flex-start;padding:14px 28px}.aeb-sidebar.open .aeb-sidebar-item-label{display:inline-block}.aeb-sidebar.open .aeb-sidebar-toggle-icon{background-color:#f3f3f3}.aeb-sidebar.open .aeb-sidebar-toggle-icon>svg{transform:scaleX(-1)}.aeb-sidebar.open .aeb-sidebar-toggle-icon:hover{background-color:#e7e7e7}.aeb-sidebar.open .aeb-sidebar-toggle-icon:hover>svg{transform:translate(-2px) scaleX(-1)}.aeb-sidebar--burger{justify-content:flex-start;width:68px;overflow:hidden;transition:width,.2s}.aeb-sidebar--burger.open{display:flex;flex-direction:column;justify-content:space-between}.aeb-sidebar--burger.open .aeb-sidebar-items{overflow-y:auto}.aeb-sidebar--burger.open .aeb-sidebar-items .aeb-sidebar-item{padding:14px 0}.aeb-sidebar--burger .aeb-sidebar-burger{box-sizing:border-box;height:70px;padding:28px 24px}.aeb-sidebar--burger .aeb-sidebar-burger__icon{display:inline-block;cursor:pointer}.aeb-sidebar--burger .aeb-sidebar-items{box-sizing:border-box;display:block;width:260px;padding:0 24px;margin-bottom:30px;overflow:hidden}.aeb-sidebar--burger .aeb-sidebar-items .aeb-sidebar-item{justify-content:flex-start}.aeb-sidebar--burger .aeb-sidebar-footer{width:200px;margin-bottom:32px}\n"] }]
4801
+ args: [{ selector: 'aeb-sidebar', encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (!isBurger) {\n <div class=\"aeb-sidebar-items\">\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </div>\n}\n\n@if (isBurger) {\n <div class=\"aeb-sidebar-burger\">\n <div class=\"aeb-sidebar-burger__icon\" (click)=\"handleToggleSidebar()\">\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1.71387 12H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M1.71387 5.14258H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M1.71387 18.8574H22.2853\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </div>\n </div>\n}\n\n@if (isBurger) {\n <div class=\"aeb-sidebar-items\">\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </div>\n}\n\n@if (isOpen) {\n <div class=\"aeb-sidebar-footer\">\n <!-- \u0421\u0432\u044F\u0437\u0430\u0442\u044C\u0441\u044F \u0441 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u043F\u043E \u043F\u043E\u0447\u0442\u0435\n <a href=\"mailto:support@aeb.ru\">support@aeb.ru</a> -->\n </div>\n}\n@if (!isBurger) {\n <div class=\"aeb-sidebar-toggle-icon\" (click)=\"handleToggleSidebar()\">\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M15.5359 6.30688L21.7602 13.3677C21.9199 13.5493 22 13.7653 22 14C22 14.2106 21.9341 14.4606 21.7515 14.6422L15.5318 21.6978C15.3721 21.8793 15.1534 22 14.8856 22C14.6176 22 14.399 21.8794 14.2394 21.6977C13.927 21.3423 13.9119 20.7814 14.244 20.4287L19.9121 14L14.2398 7.56653C13.9272 7.21101 13.9119 6.64939 14.2444 6.29664C14.4095 6.11179 14.6412 6 14.8921 6C15.1445 6 15.3769 6.1135 15.5359 6.30688Z\"\n fill=\"#9CA8AF\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M7.53586 6.30688L13.7602 13.3677C13.9199 13.5493 14 13.7653 14 14C14 14.2106 13.9341 14.4606 13.7515 14.6422L7.53175 21.6978C7.37212 21.8793 7.15341 22 6.88558 22C6.61765 22 6.39904 21.8794 6.2394 21.6977C5.92703 21.3423 5.91188 20.7814 6.24398 20.4287L11.9121 14L6.23978 7.56653C5.92725 7.21101 5.91186 6.64939 6.24438 6.29664C6.4095 6.11179 6.64121 6 6.89212 6C7.14455 6 7.37688 6.1135 7.53586 6.30688Z\"\n fill=\"#9CA8AF\"\n />\n </svg>\n </div>\n}\n\n<ng-template #contentTpl>\n <ng-content />\n</ng-template>\n", styles: [".aeb-sidebar{position:fixed;top:80px;left:0;z-index:var(--z-fixed);display:flex;flex-direction:column;justify-content:space-between;width:80px;height:calc(100vh - 80px);color:var(--color-mono-900);background-color:var(--color-mono-0);border-right:2px solid #f3f3f3}.aeb-sidebar.right{right:0;left:auto;border-right:none;border-left:2px solid #f3f3f3}.aeb-sidebar.right .aeb-sidebar-toggle-icon{transform:scaleX(-1)}.aeb-sidebar-items{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;width:100%;padding:14px 0 0}.aeb-sidebar-item{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;padding:14px 0;text-decoration:none;-webkit-user-select:none;user-select:none}.aeb-sidebar-item-icon{display:flex;flex:0 0 auto;width:28px;height:28px;opacity:.8}.aeb-sidebar-item-icon img{object-fit:contain;width:100%}.aeb-sidebar-item-label{display:none;margin-left:18px;font-size:var(--font-size-s);color:var(--color-mono-900)}.aeb-sidebar-item:hover{text-decoration:none;background-color:var(--color-mono-10)}.aeb-sidebar-item:hover>a{text-decoration:none}.aeb-sidebar-item.active{pointer-events:none}.aeb-sidebar-item.active .aeb-sidebar-item-label{color:var(--color-blue-500)}.aeb-sidebar-item.active .aeb-sidebar-item-icon svg{fill:var(--color-blue-500)}.aeb-sidebar-footer{padding-right:30px;padding-left:30px;margin-top:auto;font-size:var(--font-size-xxs);line-height:18px;color:var(--color-mono-300);text-align:center}.aeb-sidebar-footer a{color:var(--color-blue-500)}.aeb-sidebar-toggle-icon{box-sizing:border-box;display:flex;flex:0 0 auto;align-items:center;justify-content:center;height:50px;margin:16px 8px 10px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:var(--border-lightly-rounded);transition:all linear .23s}.aeb-sidebar-toggle-icon>svg{transition:all ease .23s}.aeb-sidebar-toggle-icon:hover{background-color:#f3f3f3}.aeb-sidebar-toggle-icon:hover>svg{transform:translate(2px)}.aeb-sidebar.open{width:260px}.aeb-sidebar.open .aeb-sidebar-item{justify-content:flex-start;padding:14px 28px}.aeb-sidebar.open .aeb-sidebar-item-label{display:inline-block}.aeb-sidebar.open .aeb-sidebar-toggle-icon{background-color:#f3f3f3}.aeb-sidebar.open .aeb-sidebar-toggle-icon>svg{transform:scaleX(-1)}.aeb-sidebar.open .aeb-sidebar-toggle-icon:hover{background-color:#e7e7e7}.aeb-sidebar.open .aeb-sidebar-toggle-icon:hover>svg{transform:translate(-2px) scaleX(-1)}.aeb-sidebar--burger{justify-content:flex-start;width:68px;overflow:hidden;transition:width,.2s}.aeb-sidebar--burger.open{display:flex;flex-direction:column;justify-content:space-between}.aeb-sidebar--burger.open .aeb-sidebar-items{overflow-y:auto}.aeb-sidebar--burger.open .aeb-sidebar-items .aeb-sidebar-item{padding:14px 0}.aeb-sidebar--burger .aeb-sidebar-burger{box-sizing:border-box;height:70px;padding:28px 24px}.aeb-sidebar--burger .aeb-sidebar-burger__icon{display:inline-block;cursor:pointer}.aeb-sidebar--burger .aeb-sidebar-items{box-sizing:border-box;display:block;width:260px;padding:0 24px;margin-bottom:30px;overflow:hidden}.aeb-sidebar--burger .aeb-sidebar-items .aeb-sidebar-item{justify-content:flex-start}.aeb-sidebar--burger .aeb-sidebar-footer{width:200px;margin-bottom:32px}\n"] }]
4709
4802
  }], propDecorators: { class: [{
4710
4803
  type: HostBinding,
4711
4804
  args: ['class']
@@ -5196,11 +5289,11 @@ class StepperComponent {
5196
5289
  this.goToNextStep();
5197
5290
  }
5198
5291
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: StepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5199
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: StepperComponent, isStandalone: false, selector: "aeb-stepper", inputs: { isDisabled: "isDisabled" }, outputs: { stepChanged: "stepChanged" }, queries: [{ propertyName: "stepperSteps", predicate: StepperStepComponent }], ngImport: i0, template: "<div class=\"stepper\">\n <div class=\"stepper-steps\">\n @for (step of steps; track step; let i = $index) {\n <div\n class=\"stepper-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"stepper-step-index\">\n @if (step.isCompleted) {\n <div>\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n } @else {\n <span class=\"stepper-step-index--prefix\">\u0428\u0430\u0433</span>\n <span> {{ i + 1 }} </span>\n <span class=\"stepper-step-index--postfix\"\n >\u0438\u0437 {{ steps.length }}</span\n >\n }\n </div>\n <div\n class=\"stepper-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n }\n <div class=\"stepper-steps-line\">\n @if (isDisabled === false) {\n <div\n class=\"stepper-steps-line-active\"\n [ngStyle]=\"{\n width: screenWidth | lineWidth: steps.length : completedSteps.length\n }\"\n ></div>\n }\n </div>\n </div>\n <div class=\"stepper-steps-content\">\n <ng-content />\n </div>\n</div>\n", styles: [".stepper{-webkit-user-select:none;user-select:none}.stepper-steps{position:relative;display:flex}.stepper-steps-line{position:absolute;top:27px;right:0;left:0;width:66%;height:6px;margin:0 auto;overflow:hidden;background-color:var(--color-mono-100)}.stepper-steps-line-active{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-blue-500);transition:width,.4s}.stepper-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.stepper-step-index{display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:12px;font-size:var(--font-size-lm);font-weight:var(--font-weight-medium);color:var(--white-primary);background-color:var(--color-mono-100);border-radius:30px}.stepper-step-index>div{display:flex}.stepper-step-index>span:first-child+span{display:flex;align-items:center}.stepper-step-index--prefix,.stepper-step-index--postfix{display:none}.stepper-step-title{font-size:var(--font-size-s);font-style:normal;font-weight:var(--font-weight-regular);line-height:20px;color:var(--color-mono-300);text-align:center}.stepper-step-title.disabled{color:var(--color-mono-100)}.stepper-step.active .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.active .stepper-step-title{color:var(--color-blue-500)}.stepper-step.completed .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.disabled .stepper-step-index{background-color:var(--color-mono-100)}.stepper-step.disabled .stepper-step-title{color:var(--color-mono-100)}@media (max-width: 767px){.stepper-steps{height:78px}.stepper-steps-line{top:unset;bottom:0;width:100%;background-color:var(--color-mono-100);border-radius:3px}.stepper-steps-line-active{border-radius:3px}.stepper-step{display:none;width:auto!important}.stepper-step-index{width:auto;height:auto;margin-bottom:0;font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:22.4px;color:var(--color-blue-500);background-color:unset}.stepper-step-index--prefix,.stepper-step-index--postfix,.stepper-step-index>span:first-child+span{display:inline}.stepper-step-title{display:none}.stepper-step.active{display:block}.stepper-step.active .stepper-step-index{display:block;background-color:unset}.stepper-step.active .stepper-step-title{display:block;margin-top:8px;font-weight:var(--font-weight-medium);color:var(--color-mono-900);text-align:left}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: LineWidthPipe, name: "lineWidth" }], encapsulation: i0.ViewEncapsulation.None }); }
5292
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: StepperComponent, isStandalone: false, selector: "aeb-stepper", inputs: { isDisabled: "isDisabled" }, outputs: { stepChanged: "stepChanged" }, queries: [{ propertyName: "stepperSteps", predicate: StepperStepComponent }], ngImport: i0, template: "<div class=\"stepper\">\n <div class=\"stepper-steps\">\n @for (step of steps; track step; let i = $index) {\n <div\n class=\"stepper-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"stepper-step-index\">\n @if (step.isCompleted) {\n <div>\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n } @else {\n <span class=\"stepper-step-index--prefix\">\u0428\u0430\u0433</span>\n <span> {{ i + 1 }} </span>\n <span class=\"stepper-step-index--postfix\"\n >\u0438\u0437 {{ steps.length }}</span\n >\n }\n </div>\n <div\n class=\"stepper-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n }\n <div class=\"stepper-steps-line\">\n @if (isDisabled === false) {\n <div\n class=\"stepper-steps-line-active\"\n [ngStyle]=\"{\n width: screenWidth | lineWidth: steps.length : completedSteps.length\n }\"\n ></div>\n }\n </div>\n </div>\n <div class=\"stepper-steps-content\">\n <ng-content />\n </div>\n</div>\n", styles: [".stepper{-webkit-user-select:none;user-select:none}.stepper-steps{position:relative;display:flex}.stepper-steps-line{position:absolute;top:27px;right:0;left:0;width:66%;height:6px;margin:0 auto;overflow:hidden;background-color:var(--color-mono-100)}.stepper-steps-line-active{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-blue-500);transition:width,.4s}.stepper-step{position:relative;z-index:var(--z-dropdown);display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.stepper-step-index{display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:12px;font-size:var(--font-size-lm);font-weight:var(--font-weight-medium);color:var(--white-primary);background-color:var(--color-mono-100);border-radius:30px}.stepper-step-index>div{display:flex}.stepper-step-index>span:first-child+span{display:flex;align-items:center}.stepper-step-index--prefix,.stepper-step-index--postfix{display:none}.stepper-step-title{font-size:var(--font-size-s);font-style:normal;font-weight:var(--font-weight-regular);line-height:20px;color:var(--color-mono-300);text-align:center}.stepper-step-title.disabled{color:var(--color-mono-100)}.stepper-step.active .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.active .stepper-step-title{color:var(--color-blue-500)}.stepper-step.completed .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.disabled .stepper-step-index{background-color:var(--color-mono-100)}.stepper-step.disabled .stepper-step-title{color:var(--color-mono-100)}@media (max-width: 767px){.stepper-steps{height:78px}.stepper-steps-line{top:unset;bottom:0;width:100%;background-color:var(--color-mono-100);border-radius:3px}.stepper-steps-line-active{border-radius:3px}.stepper-step{display:none;width:auto!important}.stepper-step-index{width:auto;height:auto;margin-bottom:0;font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:22.4px;color:var(--color-blue-500);background-color:unset}.stepper-step-index--prefix,.stepper-step-index--postfix,.stepper-step-index>span:first-child+span{display:inline}.stepper-step-title{display:none}.stepper-step.active{display:block}.stepper-step.active .stepper-step-index{display:block;background-color:unset}.stepper-step.active .stepper-step-title{display:block;margin-top:8px;font-weight:var(--font-weight-medium);color:var(--color-mono-900);text-align:left}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: LineWidthPipe, name: "lineWidth" }], encapsulation: i0.ViewEncapsulation.None }); }
5200
5293
  }
5201
5294
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: StepperComponent, decorators: [{
5202
5295
  type: Component,
5203
- args: [{ selector: 'aeb-stepper', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"stepper\">\n <div class=\"stepper-steps\">\n @for (step of steps; track step; let i = $index) {\n <div\n class=\"stepper-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"stepper-step-index\">\n @if (step.isCompleted) {\n <div>\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n } @else {\n <span class=\"stepper-step-index--prefix\">\u0428\u0430\u0433</span>\n <span> {{ i + 1 }} </span>\n <span class=\"stepper-step-index--postfix\"\n >\u0438\u0437 {{ steps.length }}</span\n >\n }\n </div>\n <div\n class=\"stepper-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n }\n <div class=\"stepper-steps-line\">\n @if (isDisabled === false) {\n <div\n class=\"stepper-steps-line-active\"\n [ngStyle]=\"{\n width: screenWidth | lineWidth: steps.length : completedSteps.length\n }\"\n ></div>\n }\n </div>\n </div>\n <div class=\"stepper-steps-content\">\n <ng-content />\n </div>\n</div>\n", styles: [".stepper{-webkit-user-select:none;user-select:none}.stepper-steps{position:relative;display:flex}.stepper-steps-line{position:absolute;top:27px;right:0;left:0;width:66%;height:6px;margin:0 auto;overflow:hidden;background-color:var(--color-mono-100)}.stepper-steps-line-active{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-blue-500);transition:width,.4s}.stepper-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.stepper-step-index{display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:12px;font-size:var(--font-size-lm);font-weight:var(--font-weight-medium);color:var(--white-primary);background-color:var(--color-mono-100);border-radius:30px}.stepper-step-index>div{display:flex}.stepper-step-index>span:first-child+span{display:flex;align-items:center}.stepper-step-index--prefix,.stepper-step-index--postfix{display:none}.stepper-step-title{font-size:var(--font-size-s);font-style:normal;font-weight:var(--font-weight-regular);line-height:20px;color:var(--color-mono-300);text-align:center}.stepper-step-title.disabled{color:var(--color-mono-100)}.stepper-step.active .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.active .stepper-step-title{color:var(--color-blue-500)}.stepper-step.completed .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.disabled .stepper-step-index{background-color:var(--color-mono-100)}.stepper-step.disabled .stepper-step-title{color:var(--color-mono-100)}@media (max-width: 767px){.stepper-steps{height:78px}.stepper-steps-line{top:unset;bottom:0;width:100%;background-color:var(--color-mono-100);border-radius:3px}.stepper-steps-line-active{border-radius:3px}.stepper-step{display:none;width:auto!important}.stepper-step-index{width:auto;height:auto;margin-bottom:0;font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:22.4px;color:var(--color-blue-500);background-color:unset}.stepper-step-index--prefix,.stepper-step-index--postfix,.stepper-step-index>span:first-child+span{display:inline}.stepper-step-title{display:none}.stepper-step.active{display:block}.stepper-step.active .stepper-step-index{display:block;background-color:unset}.stepper-step.active .stepper-step-title{display:block;margin-top:8px;font-weight:var(--font-weight-medium);color:var(--color-mono-900);text-align:left}}\n"] }]
5296
+ args: [{ selector: 'aeb-stepper', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"stepper\">\n <div class=\"stepper-steps\">\n @for (step of steps; track step; let i = $index) {\n <div\n class=\"stepper-step\"\n [ngStyle]=\"{ width: 100 / steps.length + '%' }\"\n [ngClass]=\"{\n active: step.isActive,\n completed: step.isCompleted,\n disabled: isDisabled\n }\"\n >\n <div class=\"stepper-step-index\">\n @if (step.isCompleted) {\n <div>\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 28 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4674 5.47186C26.1505 6.12666 26.1805 7.21877 25.5345 7.91115L11.9594 22.4601C11.3279 23.1369 10.2805 23.1835 9.59296 22.5654L2.5728 16.2545C1.8694 15.6222 1.80492 14.5316 2.42878 13.8186C3.05264 13.1057 4.1286 13.0403 4.832 13.6726L10.6186 18.8746L23.0608 5.53988C23.7068 4.84751 24.7843 4.81705 25.4674 5.47186Z\"\n fill=\"#FAFAFA\"\n />\n </svg>\n </div>\n } @else {\n <span class=\"stepper-step-index--prefix\">\u0428\u0430\u0433</span>\n <span> {{ i + 1 }} </span>\n <span class=\"stepper-step-index--postfix\"\n >\u0438\u0437 {{ steps.length }}</span\n >\n }\n </div>\n <div\n class=\"stepper-step-title\"\n [ngClass]=\"{\n disabled: isDisabled\n }\"\n >\n {{ step.title }}\n </div>\n </div>\n }\n <div class=\"stepper-steps-line\">\n @if (isDisabled === false) {\n <div\n class=\"stepper-steps-line-active\"\n [ngStyle]=\"{\n width: screenWidth | lineWidth: steps.length : completedSteps.length\n }\"\n ></div>\n }\n </div>\n </div>\n <div class=\"stepper-steps-content\">\n <ng-content />\n </div>\n</div>\n", styles: [".stepper{-webkit-user-select:none;user-select:none}.stepper-steps{position:relative;display:flex}.stepper-steps-line{position:absolute;top:27px;right:0;left:0;width:66%;height:6px;margin:0 auto;overflow:hidden;background-color:var(--color-mono-100)}.stepper-steps-line-active{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-blue-500);transition:width,.4s}.stepper-step{position:relative;z-index:var(--z-dropdown);display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.stepper-step-index{display:flex;flex-grow:0;flex-shrink:0;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:12px;font-size:var(--font-size-lm);font-weight:var(--font-weight-medium);color:var(--white-primary);background-color:var(--color-mono-100);border-radius:30px}.stepper-step-index>div{display:flex}.stepper-step-index>span:first-child+span{display:flex;align-items:center}.stepper-step-index--prefix,.stepper-step-index--postfix{display:none}.stepper-step-title{font-size:var(--font-size-s);font-style:normal;font-weight:var(--font-weight-regular);line-height:20px;color:var(--color-mono-300);text-align:center}.stepper-step-title.disabled{color:var(--color-mono-100)}.stepper-step.active .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.active .stepper-step-title{color:var(--color-blue-500)}.stepper-step.completed .stepper-step-index{background-color:var(--color-blue-500)}.stepper-step.disabled .stepper-step-index{background-color:var(--color-mono-100)}.stepper-step.disabled .stepper-step-title{color:var(--color-mono-100)}@media (max-width: 767px){.stepper-steps{height:78px}.stepper-steps-line{top:unset;bottom:0;width:100%;background-color:var(--color-mono-100);border-radius:3px}.stepper-steps-line-active{border-radius:3px}.stepper-step{display:none;width:auto!important}.stepper-step-index{width:auto;height:auto;margin-bottom:0;font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:22.4px;color:var(--color-blue-500);background-color:unset}.stepper-step-index--prefix,.stepper-step-index--postfix,.stepper-step-index>span:first-child+span{display:inline}.stepper-step-title{display:none}.stepper-step.active{display:block}.stepper-step.active .stepper-step-index{display:block;background-color:unset}.stepper-step.active .stepper-step-title{display:block;margin-top:8px;font-weight:var(--font-weight-medium);color:var(--color-mono-900);text-align:left}}\n"] }]
5204
5297
  }], ctorParameters: () => [], propDecorators: { stepperSteps: [{
5205
5298
  type: ContentChildren,
5206
5299
  args: [StepperStepComponent]
@@ -5422,11 +5515,11 @@ class VisaComponent {
5422
5515
  constructor() { }
5423
5516
  ngOnInit() { }
5424
5517
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: VisaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5425
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: VisaComponent, isStandalone: false, selector: "aeb-visa", ngImport: i0, template: "<div class=\"aeb-visa\">\n <h3>\u0412\u0438\u0437\u044B</h3>\n <div class=\"aeb-visa-timeline\">\n <ng-content />\n </div>\n</div>\n", styles: [".aeb-visa{box-sizing:border-box;width:100%;padding:24px 22px;color:var(--color-mono-900);background:var(--color-mono-0);border-radius:var(--border-base-rounded)}.aeb-visa>h3{margin:0;font-size:var(--font-size-md);font-weight:700;line-height:23px}.aeb-visa .aeb-visa-timeline{margin-top:3rem}.aeb-visa .aeb-visa-timeline>aeb-visa-item{display:flex;margin-bottom:2rem}.aeb-visa .aeb-visa-timeline aeb-visa-item:last-child{margin-bottom:0}.aeb-visa .aeb-visa-timeline aeb-visa-item:last-child .aeb-visa-progress{display:none}.aeb-visa .aeb-visa-timeline .aeb-visa-icon{position:relative;z-index:2;display:block;flex:none;width:20px;height:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-icon>svg{width:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-progress{position:relative;top:-9px;left:9px;z-index:-1;width:2px;height:70px;background:#e7eaec}.aeb-visa .aeb-visa-timeline .aeb-visa-progress.agreed{background:var(--color-green-500)}.aeb-visa .aeb-visa-timeline .aeb-visa-title{font-size:var(--font-size-s);line-height:22px;color:var(--color-mono-900)}.aeb-visa .aeb-visa-timeline .aeb-visa-status{margin-left:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-status.isReturned .aeb-visa-title{color:var(--color-red-500)}.aeb-visa .aeb-visa-timeline .aeb-visa-status.isAgreed .aeb-visa-title{color:var(--color-green-500)}.aeb-visa-subtitle{display:block;font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:22px;color:#9ca8af}@media (max-width: 767px){.aeb-visa>h3{font-size:var(--font-size-xs)}}\n"], encapsulation: i0.ViewEncapsulation.None }); }
5518
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: VisaComponent, isStandalone: false, selector: "aeb-visa", ngImport: i0, template: "<div class=\"aeb-visa\">\n <h3>\u0412\u0438\u0437\u044B</h3>\n <div class=\"aeb-visa-timeline\">\n <ng-content />\n </div>\n</div>\n", styles: [".aeb-visa{box-sizing:border-box;width:100%;padding:24px 22px;color:var(--color-mono-900);background:var(--color-mono-0);border-radius:var(--border-base-rounded)}.aeb-visa>h3{margin:0;font-size:var(--font-size-md);font-weight:700;line-height:23px}.aeb-visa .aeb-visa-timeline{margin-top:3rem}.aeb-visa .aeb-visa-timeline>aeb-visa-item{display:flex;margin-bottom:2rem}.aeb-visa .aeb-visa-timeline aeb-visa-item:last-child{margin-bottom:0}.aeb-visa .aeb-visa-timeline aeb-visa-item:last-child .aeb-visa-progress{display:none}.aeb-visa .aeb-visa-timeline .aeb-visa-icon{position:relative;z-index:var(--z-dropdown);display:block;flex:none;width:20px;height:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-icon>svg{width:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-progress{position:relative;top:-9px;left:9px;z-index:-1;width:2px;height:70px;background:#e7eaec}.aeb-visa .aeb-visa-timeline .aeb-visa-progress.agreed{background:var(--color-green-500)}.aeb-visa .aeb-visa-timeline .aeb-visa-title{font-size:var(--font-size-s);line-height:22px;color:var(--color-mono-900)}.aeb-visa .aeb-visa-timeline .aeb-visa-status{margin-left:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-status.isReturned .aeb-visa-title{color:var(--color-red-500)}.aeb-visa .aeb-visa-timeline .aeb-visa-status.isAgreed .aeb-visa-title{color:var(--color-green-500)}.aeb-visa-subtitle{display:block;font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:22px;color:#9ca8af}@media (max-width: 767px){.aeb-visa>h3{font-size:var(--font-size-xs)}}\n"], encapsulation: i0.ViewEncapsulation.None }); }
5426
5519
  }
5427
5520
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: VisaComponent, decorators: [{
5428
5521
  type: Component,
5429
- args: [{ selector: 'aeb-visa', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-visa\">\n <h3>\u0412\u0438\u0437\u044B</h3>\n <div class=\"aeb-visa-timeline\">\n <ng-content />\n </div>\n</div>\n", styles: [".aeb-visa{box-sizing:border-box;width:100%;padding:24px 22px;color:var(--color-mono-900);background:var(--color-mono-0);border-radius:var(--border-base-rounded)}.aeb-visa>h3{margin:0;font-size:var(--font-size-md);font-weight:700;line-height:23px}.aeb-visa .aeb-visa-timeline{margin-top:3rem}.aeb-visa .aeb-visa-timeline>aeb-visa-item{display:flex;margin-bottom:2rem}.aeb-visa .aeb-visa-timeline aeb-visa-item:last-child{margin-bottom:0}.aeb-visa .aeb-visa-timeline aeb-visa-item:last-child .aeb-visa-progress{display:none}.aeb-visa .aeb-visa-timeline .aeb-visa-icon{position:relative;z-index:2;display:block;flex:none;width:20px;height:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-icon>svg{width:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-progress{position:relative;top:-9px;left:9px;z-index:-1;width:2px;height:70px;background:#e7eaec}.aeb-visa .aeb-visa-timeline .aeb-visa-progress.agreed{background:var(--color-green-500)}.aeb-visa .aeb-visa-timeline .aeb-visa-title{font-size:var(--font-size-s);line-height:22px;color:var(--color-mono-900)}.aeb-visa .aeb-visa-timeline .aeb-visa-status{margin-left:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-status.isReturned .aeb-visa-title{color:var(--color-red-500)}.aeb-visa .aeb-visa-timeline .aeb-visa-status.isAgreed .aeb-visa-title{color:var(--color-green-500)}.aeb-visa-subtitle{display:block;font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:22px;color:#9ca8af}@media (max-width: 767px){.aeb-visa>h3{font-size:var(--font-size-xs)}}\n"] }]
5522
+ args: [{ selector: 'aeb-visa', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-visa\">\n <h3>\u0412\u0438\u0437\u044B</h3>\n <div class=\"aeb-visa-timeline\">\n <ng-content />\n </div>\n</div>\n", styles: [".aeb-visa{box-sizing:border-box;width:100%;padding:24px 22px;color:var(--color-mono-900);background:var(--color-mono-0);border-radius:var(--border-base-rounded)}.aeb-visa>h3{margin:0;font-size:var(--font-size-md);font-weight:700;line-height:23px}.aeb-visa .aeb-visa-timeline{margin-top:3rem}.aeb-visa .aeb-visa-timeline>aeb-visa-item{display:flex;margin-bottom:2rem}.aeb-visa .aeb-visa-timeline aeb-visa-item:last-child{margin-bottom:0}.aeb-visa .aeb-visa-timeline aeb-visa-item:last-child .aeb-visa-progress{display:none}.aeb-visa .aeb-visa-timeline .aeb-visa-icon{position:relative;z-index:var(--z-dropdown);display:block;flex:none;width:20px;height:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-icon>svg{width:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-progress{position:relative;top:-9px;left:9px;z-index:-1;width:2px;height:70px;background:#e7eaec}.aeb-visa .aeb-visa-timeline .aeb-visa-progress.agreed{background:var(--color-green-500)}.aeb-visa .aeb-visa-timeline .aeb-visa-title{font-size:var(--font-size-s);line-height:22px;color:var(--color-mono-900)}.aeb-visa .aeb-visa-timeline .aeb-visa-status{margin-left:20px}.aeb-visa .aeb-visa-timeline .aeb-visa-status.isReturned .aeb-visa-title{color:var(--color-red-500)}.aeb-visa .aeb-visa-timeline .aeb-visa-status.isAgreed .aeb-visa-title{color:var(--color-green-500)}.aeb-visa-subtitle{display:block;font-size:var(--font-size-s);font-weight:var(--font-weight-regular);line-height:22px;color:#9ca8af}@media (max-width: 767px){.aeb-visa>h3{font-size:var(--font-size-xs)}}\n"] }]
5430
5523
  }], ctorParameters: () => [] });
5431
5524
 
5432
5525
  class VisaItemComponent {
@@ -5885,5 +5978,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
5885
5978
  * Generated bundle index. Do not edit.
5886
5979
  */
5887
5980
 
5888
- export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebSwitchComponent, AebSwitchModule, AebUiKitModule, AutofocusDirective, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownMenu, DropdownMenuModule, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, PaginationComponent, PaginationModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5981
+ export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebSwitchComponent, AebSwitchModule, AebUiKitModule, AutofocusDirective, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DatepickerComponent, DatepickerModule, DragAndDropDirective, DropdownComponent, DropdownMenu, DropdownMenuModule, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, PaginationComponent, PaginationModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5889
5982
  //# sourceMappingURL=aeb-ui-kit.mjs.map