aeb-ui-kit 2.2.0 → 2.3.0-mr.545-feature-dp-5499

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.
Files changed (30) hide show
  1. package/assets/images/responses/401-dark.svg +27 -0
  2. package/assets/images/responses/401-light.svg +27 -0
  3. package/assets/images/responses/403-dark.svg +39 -0
  4. package/assets/images/responses/403-light.svg +38 -0
  5. package/assets/images/responses/404-dark.svg +47 -0
  6. package/assets/images/responses/404-light.svg +40 -0
  7. package/assets/images/responses/429-dark.svg +33 -0
  8. package/assets/images/responses/429-light.svg +33 -0
  9. package/assets/images/responses/500-dark.svg +43 -0
  10. package/assets/images/responses/500-light.svg +43 -0
  11. package/assets/images/responses/503-dark.svg +43 -0
  12. package/assets/images/responses/503-light.svg +43 -0
  13. package/esm2020/lib/aeb-ui-kit.module.mjs +14 -7
  14. package/esm2020/lib/code-input/code-input.component.mjs +299 -74
  15. package/esm2020/lib/code-input/code-input.module.mjs +5 -5
  16. package/esm2020/lib/new-button/new-button.component.mjs +2 -2
  17. package/esm2020/lib/response/response.component.mjs +20 -0
  18. package/esm2020/lib/response/response.module.mjs +17 -0
  19. package/esm2020/public-api.mjs +5 -1
  20. package/fesm2015/aeb-ui-kit.mjs +347 -86
  21. package/fesm2015/aeb-ui-kit.mjs.map +1 -1
  22. package/fesm2020/aeb-ui-kit.mjs +346 -86
  23. package/fesm2020/aeb-ui-kit.mjs.map +1 -1
  24. package/lib/aeb-ui-kit.module.d.ts +2 -1
  25. package/lib/code-input/code-input.component.d.ts +50 -16
  26. package/lib/code-input/code-input.module.d.ts +1 -1
  27. package/lib/response/response.component.d.ts +10 -0
  28. package/lib/response/response.module.d.ts +8 -0
  29. package/package.json +1 -1
  30. package/public-api.d.ts +4 -0
@@ -1,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, Input, ViewChild, NgModule, EventEmitter, forwardRef, Output, HostBinding, Directive, Optional, Self, HostListener, ContentChild, Injectable, Inject, Pipe, LOCALE_ID, ViewChildren, inject, ChangeDetectorRef, ContentChildren } from '@angular/core';
2
+ import { Component, ViewEncapsulation, Input, ViewChild, NgModule, EventEmitter, forwardRef, Output, HostBinding, ViewChildren, Directive, Optional, Self, HostListener, ContentChild, Injectable, Inject, Pipe, LOCALE_ID, inject, ChangeDetectorRef, ContentChildren } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, formatDate, formatNumber } from '@angular/common';
5
5
  import * as i1$1 from '@angular/forms';
6
- import { NG_VALUE_ACCESSOR, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
6
+ import { NG_VALUE_ACCESSOR, FormControl, Validators, FormsModule, ReactiveFormsModule, FormGroup, FormArray } from '@angular/forms';
7
7
  import * as i2 from '@angular/platform-browser';
8
8
  import * as i1$2 from 'ngx-mask';
9
9
  import { NgxMaskModule } from 'ngx-mask';
@@ -251,133 +251,357 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
251
251
 
252
252
  class CodeInputComponent {
253
253
  constructor() {
254
- this.codeSet = new EventEmitter();
254
+ this.codeLength = 6;
255
+ this.codeCompleted = new EventEmitter();
255
256
  this.timeOut = new EventEmitter();
256
257
  this.resendClick = new EventEmitter();
257
- this.inputs = ['', '', '', '', '', ''];
258
- this.isPaste = false;
259
- this.sendAgain = false;
260
- this.showLoader = false;
261
- this.wrongCode = false;
258
+ this._ = true;
262
259
  this.showTimer = false;
263
- this.isDisabled = true;
260
+ this._inputState = 'ENTERING';
261
+ this._showCodeText = false;
264
262
  }
265
- get classes() {
266
- const mode = this.wrongCode ? 'input-wrong' : '';
267
- return `code-input__${mode}`;
263
+ get inputs() {
264
+ return this.form.get('inputs');
268
265
  }
269
- startTimer() {
270
- clearInterval(this.interval);
271
- this.time = this.secondsUntilRetry;
272
- this.interval = setInterval(() => {
273
- if (this.time > 0) {
274
- this.time--;
275
- }
276
- else {
277
- this.sendAgain = true;
278
- this.showTimer = false;
279
- this.timeOut.emit();
280
- clearInterval(this.interval);
281
- }
282
- }, 1000);
266
+ get showCodeText() {
267
+ return this._showCodeText;
268
+ }
269
+ set showCodeText(value) {
270
+ if (value) {
271
+ this.startTimer();
272
+ }
273
+ else {
274
+ this.stopTimer();
275
+ }
276
+ this._showCodeText = value;
277
+ }
278
+ get inputState() {
279
+ return this._inputState;
280
+ }
281
+ set inputState(state) {
282
+ switch (state) {
283
+ case 'ENTERING':
284
+ this.clear();
285
+ for (let i = 1; i < this.inputs.length; i++) {
286
+ this.inputs.controls[i].disable();
287
+ }
288
+ this.inputs.controls[0].enable();
289
+ this.getNativeInputByIndex(0).focus();
290
+ break;
291
+ case 'COMPLETED':
292
+ if (!this.showCodeText) {
293
+ const lastInput = this.getNativeInputByIndex(this.inputs.length - 1);
294
+ lastInput.blur();
295
+ this.codeCompleted.emit();
296
+ this.showCodeText = true;
297
+ }
298
+ break;
299
+ }
300
+ this._inputState = state;
301
+ }
302
+ ngOnInit() {
303
+ const inputsArray = [
304
+ new FormControl(),
305
+ new FormControl(),
306
+ new FormControl(),
307
+ new FormControl()
308
+ ];
309
+ if (this.codeLength === 6) {
310
+ inputsArray.push(new FormControl(), new FormControl());
311
+ }
312
+ this.form = new FormGroup({
313
+ inputs: new FormArray(inputsArray)
314
+ });
315
+ for (let i = 1; i < this.inputs.length; i++) {
316
+ this.inputs.controls[i].disable();
317
+ }
283
318
  }
284
- trackByInput(index) {
285
- return index;
286
- }
287
- onMove(e, i) {
288
- this.isPaste = true;
289
- const value = this.inputs[i];
290
- if (value.length > 0) {
291
- const nextIndex = i < 5 ? i + 1 : 5;
292
- const nextInput = document.getElementById(`${nextIndex}`);
293
- if (nextIndex <= 5) {
294
- nextInput.disabled = false;
295
- nextInput.focus();
319
+ writeValue(value) {
320
+ if (value === null) {
321
+ value = [];
322
+ }
323
+ if (!this.validateValueLength(value)) {
324
+ throw new Error(`Value's length too long, expected ${this.inputs.length}, got ${value.length}`);
325
+ }
326
+ this.castToCodeModel(value);
327
+ // вьюшка еще не прошла инициализацию
328
+ if (this.inputsContainer !== undefined) {
329
+ this.showCodeText = false;
330
+ this.inputState = 'ENTERING';
331
+ }
332
+ this.setInputsValues(value);
333
+ if (value.length === this.inputs.length &&
334
+ this.inputsContainer !== undefined) {
335
+ this.inputState = 'COMPLETED';
336
+ }
337
+ }
338
+ setDisabledState(isDisabled) {
339
+ if (isDisabled) {
340
+ this.inputs.disable();
341
+ }
342
+ else {
343
+ let foundNonNullishFlag = false;
344
+ this.inputs.controls
345
+ .slice()
346
+ .reverse()
347
+ .reduce((prev, curr) => {
348
+ if ((curr.value === '' || curr.value === null) &&
349
+ !foundNonNullishFlag) {
350
+ curr.disable();
351
+ }
352
+ else {
353
+ foundNonNullishFlag = true;
354
+ curr.enable();
355
+ if (prev.disabled) {
356
+ prev.enable();
357
+ }
358
+ }
359
+ return curr;
360
+ });
361
+ if (!foundNonNullishFlag) {
362
+ this.inputs.controls[0].enable();
363
+ if (this.inputsContainer) {
364
+ this.getNativeInputByIndex(0).focus();
365
+ }
296
366
  }
297
367
  }
368
+ }
369
+ onKeyDown(e, controlIndex) {
370
+ const value = this.inputs.controls[controlIndex].value;
371
+ if (!this.validateKeyboardInput(e) &&
372
+ !(e.key === 'v' && e.ctrlKey === true)) {
373
+ return false;
374
+ }
375
+ if (value && value.length > 0) {
376
+ this.inputs.controls[controlIndex].setValue('');
377
+ }
378
+ }
379
+ onKeyUp(e, controlIndex) {
380
+ if (!this.validateKeyboardInput(e)) {
381
+ return;
382
+ }
298
383
  if (e.key === 'Backspace') {
299
- const prevIndex = i <= 5 ? i - 1 : 5;
300
- const prevInput = document.getElementById(`${prevIndex}`);
301
- if (prevIndex >= 0) {
302
- prevInput.focus();
303
- }
384
+ this.moveCursorBackward(controlIndex);
385
+ return;
304
386
  }
305
- if (i === 5 && value.length > 0) {
306
- this.onSubmit();
307
- this.clear();
308
- document.getElementById('0').focus();
387
+ const value = this.inputs.controls[controlIndex].value;
388
+ this.moveCursorForward(controlIndex);
389
+ if (controlIndex === this.inputs.length - 1 && value && value.length > 0) {
390
+ this.inputState = 'COMPLETED';
309
391
  }
310
392
  }
311
393
  onPaste(e) {
312
- const data = e.clipboardData.getData('text');
313
- const slicedData = data.split('');
314
- for (const i of this.inputs.keys()) {
315
- this.inputs[i] = slicedData[i];
316
- }
317
- if (!isFinite(Number(data))) {
318
- this.clear();
394
+ const data = e.clipboardData.getData('text').trim();
395
+ if (!isFinite(data) ||
396
+ data.length > this.inputs.length) {
319
397
  return false;
320
398
  }
321
- if (data.length === 6) {
322
- this.onSubmit();
399
+ this.clear();
400
+ for (let i = 0; i < data.length; i++) {
401
+ this.inputs.controls[i].enable();
402
+ this.inputs.controls[i].setValue(data[i]);
323
403
  }
404
+ if (data.length < this.inputs.length) {
405
+ this.inputs.controls[data.length].enable();
406
+ }
407
+ const currentValue = this.form.value.inputs.join('');
408
+ if (currentValue.length === this.inputs.length) {
409
+ this.inputState = 'COMPLETED';
410
+ }
411
+ return false;
324
412
  }
325
- onSubmit() {
326
- this.wrongCode = true;
327
- this.showTimer = true;
328
- this.startTimer();
329
- this.codeSet.emit();
330
- }
331
- clear() {
332
- for (const i of this.inputs.keys()) {
333
- this.inputs[i] = '';
413
+ /**
414
+ * Фокусируется на следующием поле ввода
415
+ *
416
+ * @param relativeIndex индекс текущего поля ввода
417
+ */
418
+ moveCursorForward(relativeIndex) {
419
+ if (relativeIndex >= this.inputs.length - 1) {
420
+ return;
334
421
  }
422
+ this.inputs.controls[relativeIndex + 1].enable();
423
+ const nextInput = this.getNativeInputByIndex(relativeIndex + 1);
424
+ nextInput.focus();
335
425
  }
336
- resend() {
337
- this.resendClick.emit();
426
+ moveCursorBackward(relativeIndex) {
427
+ const prevInput = this.getNativeInputByIndex(Math.max(0, relativeIndex - 1));
428
+ prevInput.focus();
429
+ // находим последний непустой инпут
430
+ let lastNonNullishInputIndex = this.inputs.controls
431
+ .slice()
432
+ .reverse()
433
+ .findIndex((input) => input.value !== '' && input.value !== null);
434
+ if (lastNonNullishInputIndex === this.inputs.length - 1) {
435
+ lastNonNullishInputIndex = 0;
436
+ }
437
+ else if (lastNonNullishInputIndex !== -1) {
438
+ lastNonNullishInputIndex =
439
+ this.inputs.length - lastNonNullishInputIndex - 1;
440
+ }
441
+ /**
442
+ * Устанавливаем состояние текущего поля ввода на disabled,
443
+ * при условии, что все последующие поля пусты
444
+ */
445
+ if (lastNonNullishInputIndex < relativeIndex) {
446
+ if (lastNonNullishInputIndex >= 0) {
447
+ this.inputs.controls
448
+ .slice(lastNonNullishInputIndex + 1)
449
+ .forEach((input, index) => {
450
+ if (index === 0) {
451
+ return;
452
+ }
453
+ input.disable();
454
+ });
455
+ if (lastNonNullishInputIndex !== this.inputs.length &&
456
+ relativeIndex - lastNonNullishInputIndex - 1 !== 0) {
457
+ lastNonNullishInputIndex = lastNonNullishInputIndex + 1;
458
+ }
459
+ }
460
+ else {
461
+ this.inputs.controls.slice(1).forEach((input) => {
462
+ input.disable();
463
+ });
464
+ lastNonNullishInputIndex = 0;
465
+ this.getNativeInputByIndex(lastNonNullishInputIndex).focus();
466
+ }
467
+ this.getNativeInputByIndex(lastNonNullishInputIndex).focus();
468
+ }
338
469
  }
339
- numberOnly(e) {
340
- const key = Number(e.key);
341
- if (e.code === 'Space') {
470
+ /**
471
+ * Проверка того, что длина передаваемого значения не превышает количества полей ввода
472
+ */
473
+ validateValueLength(value) {
474
+ if ((isNaN(value) &&
475
+ value &&
476
+ value.length > this.inputs.length) ||
477
+ (!isNaN(value) && value.toString().length > this.inputs.length)) {
478
+ if (!isNaN(value)) {
479
+ value = value.toString();
480
+ }
342
481
  return false;
343
482
  }
344
- else if (isFinite(key)) {
483
+ return true;
484
+ }
485
+ /**
486
+ * Проверка валидности нажатой клавиши
487
+ */
488
+ validateKeyboardInput(e) {
489
+ const key = e.key;
490
+ if (/\d/.test(key) || key === 'Backspace') {
345
491
  return true;
346
492
  }
347
493
  else {
348
494
  return false;
349
495
  }
350
496
  }
497
+ /**
498
+ * Переводит валидную строку / число в массив элементов CodeModel
499
+ */
500
+ castToCodeModel(value) {
501
+ if (typeof value === 'string' || value instanceof String) {
502
+ value = value.split('');
503
+ }
504
+ else if (!isNaN(value)) {
505
+ value = value.toString().split('');
506
+ }
507
+ return value;
508
+ }
509
+ registerOnChange(fn) {
510
+ this.form.valueChanges.subscribe(fn);
511
+ }
512
+ registerOnTouched(fn) {
513
+ this.onTouch = fn;
514
+ }
515
+ setInputsValues(values) {
516
+ this.inputs.controls.map((input, index) => {
517
+ input.setValue(values[index] ?? '');
518
+ if (index < values.length) {
519
+ input.enable();
520
+ }
521
+ });
522
+ }
523
+ getNativeInputByIndex(index) {
524
+ const nativeInputsArray = this.inputsContainer.first
525
+ .nativeElement;
526
+ return nativeInputsArray[index];
527
+ }
528
+ startTimer() {
529
+ this.showTimer = true;
530
+ this.time = this.secondsUntilRetry;
531
+ this.interval = setInterval(() => {
532
+ if (this.time > 0) {
533
+ this.time--;
534
+ }
535
+ else {
536
+ this.stopTimer();
537
+ this.timeOut.emit();
538
+ }
539
+ }, 1000);
540
+ }
541
+ stopTimer() {
542
+ this.time = this.secondsUntilRetry;
543
+ this.showTimer = false;
544
+ clearInterval(this.interval);
545
+ }
546
+ clear() {
547
+ this.setInputsValues([]);
548
+ }
549
+ resend() {
550
+ this.clear();
551
+ this.showCodeText = false;
552
+ this.inputState = 'ENTERING';
553
+ this.resendClick.emit();
554
+ }
351
555
  }
352
556
  CodeInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
353
- CodeInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CodeInputComponent, selector: "aeb-code-input", inputs: { title: "title", secondsUntilRetry: "secondsUntilRetry", tip: "tip" }, outputs: { codeSet: "codeSet", timeOut: "timeOut", resendClick: "resendClick" }, ngImport: i0, template: "<div class=\"code-input\">\n <h1>{{ title }}</h1>\n <span class=\"code-input__tip\">{{ tip }}</span>\n <div class=\"code-input__inputs\" *ngIf=\"!showLoader\" [ngClass]=\"classes\">\n <ng-container\n *ngFor=\"let input of inputs; let i = index; trackBy: trackByInput\"\n >\n <input\n [(ngModel)]=\"inputs[i]\"\n autocomplete=\"off\"\n (keypress)=\"numberOnly($event)\"\n (keyup)=\"onMove($event, i)\"\n (paste)=\"onPaste($event)\"\n value=\"input\"\n id=\"{{ i }}\"\n maxlength=\"1\"\n [disabled]=\"i === 0 ? false : true\"\n />\n </ng-container>\n </div>\n <div *ngIf=\"showLoader\" class=\"code-input__loader\">\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M30.2101 27.1713L27.2663 30.0952L29.223 34.7905L34.9375 29.1148L30.2101 27.1713ZM26.1754 30.5423H22.0021L20.0454 35.2376H28.1148L26.1754 30.5423ZM30.6776 21.9428V26.0706L35.3877 28.0141V19.9994L30.6776 21.9428ZM20.8939 30.0952L17.9501 27.1713L13.24 29.1148L18.9544 34.7905L20.8939 30.0952ZM29.223 13.223L27.2663 17.9183L30.2101 20.8421L34.9375 18.8986L29.223 13.223ZM22.0021 17.4539H26.1754L28.1148 12.7758H20.0454L22.0021 17.4539ZM17.4999 26.0706V21.9428L12.7898 19.9994V28.0141L17.4999 26.0706ZM17.9501 20.8421L20.8939 17.9183L18.9544 13.223L13.24 18.8986L17.9501 20.8421ZM26.4005 29.5448L29.656 26.2942V21.7021L26.4005 18.4687H21.777L18.5042 21.7021V26.2942L21.777 29.5448H26.4005ZM18.9891 36.2352C16.2011 35.2154 12.7898 31.6463 11.7681 29.0804C10.7465 26.5145 10.7414 21.9428 11.7681 18.933C12.7948 15.9232 15.875 12.7758 18.9891 11.7611C22.1031 10.7463 26.5877 10.7463 29.1884 11.7611C31.7891 12.7758 35.896 16.9272 36.4094 18.933C36.9227 20.9389 37.431 26.5145 36.4094 29.0804C35.3877 31.6463 31.7213 35.2154 29.1884 36.2352C26.6556 37.2549 21.777 37.2549 18.9891 36.2352Z\"\n fill=\"url(#paint0_linear_8482_9268)\"\n />\n <path\n d=\"M20 4C10.871 5.85308 4 13.9241 4 23.5999C4 32.183 9.40666 39.5032 17 42.3407\"\n stroke=\"url(#paint1_linear_8482_9268)\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M28 43.1998C37.129 41.3467 44 33.2757 44 23.5999C44 14.6446 38.1142 7.06403 30 4.5155\"\n stroke=\"url(#paint2_linear_8482_9268)\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n <defs>\n <linearGradient\n id=\"paint0_linear_8482_9268\"\n x1=\"24.9013\"\n y1=\"37\"\n x2=\"24.9013\"\n y2=\"11\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"#00B8FF\" />\n <stop offset=\"1\" stop-color=\"#0079D6\" />\n </linearGradient>\n <linearGradient\n id=\"paint1_linear_8482_9268\"\n x1=\"12.5547\"\n y1=\"42.3407\"\n x2=\"12.5547\"\n y2=\"4\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"#00B8FF\" />\n <stop offset=\"1\" stop-color=\"#0079D6\" />\n </linearGradient>\n <linearGradient\n id=\"paint2_linear_8482_9268\"\n x1=\"36.5547\"\n y1=\"43.1998\"\n x2=\"36.5547\"\n y2=\"4.5155\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"#00B8FF\" />\n <stop offset=\"1\" stop-color=\"#0079D6\" />\n </linearGradient>\n </defs>\n </svg>\n </div>\n <div class=\"code-input__text\">\n <span *ngIf=\"wrongCode\" class=\"code-input__text-wrong\">\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span>\n <div *ngIf=\"showTimer\">\n <span class=\"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=\"code-input__text-time\">{{ time }}</span>\n </div>\n <span *ngIf=\"sendAgain\" class=\"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 </div>\n</div>\n", styles: [".code-input{display:flex;flex-direction:column;align-items:center;width:632px;padding:48px;color:var(--darkblue);background-color:#fff}.code-input h1{width:-moz-fit-content;width:fit-content;margin:0 0 40px;font-size:24px}.code-input span{text-align:center}.code-input__tip{margin-bottom:40px}.code-input__inputs{display:flex;gap:16px}.code-input__inputs input{width:51px;height:56px;font-size:32px;text-align:center;border:solid 2px var(--gray);border-radius:10px;outline:none}.code-input__inputs input:focus{border:solid 2px var(--blue)}.code-input__inputs input:disabled{background-color:inherit}.code-input__input-wrong input{border:solid 2px var(--red)}.code-input__input-wrong input:focus{border:solid 2px var(--red)}.code-input__text{display:flex;flex-direction:column;margin-top:24px;font-size:16px;line-height:20px}.code-input__text-info{color:var(--gray)}.code-input__text-time{color:var(--blue)}.code-input__text-again{color:var(--blue);text-decoration:underline;cursor:pointer}.code-input__text-wrong{margin-bottom:8px;color:var(--red)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.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: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
557
+ CodeInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CodeInputComponent, selector: "aeb-code-input", inputs: { title: "title", secondsUntilRetry: "secondsUntilRetry", tip: "tip", codeLength: "codeLength" }, outputs: { codeCompleted: "codeCompleted", timeOut: "timeOut", resendClick: "resendClick" }, host: { properties: { "class.code-input": "this._" } }, providers: [
558
+ {
559
+ provide: NG_VALUE_ACCESSOR,
560
+ useExisting: forwardRef(() => CodeInputComponent),
561
+ multi: true
562
+ }
563
+ ], viewQueries: [{ propertyName: "inputsContainer", predicate: ["inputsContainer"], descendants: true }], ngImport: i0, template: "<h1>{{ title }}</h1>\n<span class=\"code-input__tip\">{{ tip }}</span>\n<div class=\"code-input__inputs\">\n <form [formGroup]=\"form\" #inputsContainer>\n <ng-container formArrayName=\"inputs\">\n <ng-container *ngFor=\"let input of inputs.controls; let i = index\">\n <input\n [formControlName]=\"i\"\n (keydown)=\"onKeyDown($event, i)\"\n (keyup)=\"onKeyUp($event, i)\"\n (paste)=\"onPaste($event)\"\n autocomplete=\"one-time-code\"\n type=\"tel\"\n maxlength=\"1\"\n pattern=\"[0-9]\"\n inputmode=\"numeric\"\n />\n </ng-container>\n </ng-container>\n </form>\n</div>\n<div class=\"code-input__text\">\n <span class=\"code-input__text-wrong\">\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span>\n <div *ngIf=\"showTimer\">\n <span class=\"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=\"code-input__text-time\">{{ time }}</span>\n </div>\n <span\n *ngIf=\"showCodeText && !showTimer\"\n class=\"code-input__text-again\"\n (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</div>\n", styles: [".code-input{display:flex;flex-direction:column;align-items:center;width:632px;padding:48px;color:var(--darkblue);background-color:#fff}.code-input h1{width:-moz-fit-content;width:fit-content;margin:0 0 40px;font-size:24px}.code-input span{text-align:center}.code-input__tip{margin-bottom:40px}.code-input__inputs form{display:flex;gap:16px}.code-input__inputs input{width:51px;height:56px;font-size:32px;text-align:center;border:solid 2px var(--gray);border-radius:10px;outline:none}.code-input__inputs input:focus{border:solid 2px var(--blue)}.code-input__inputs input:disabled{background-color:inherit}.code-input.ng-invalid input{border:solid 2px var(--red)}.code-input.ng-invalid input:focus{border:solid 2px var(--red)}.code-input.ng-invalid .code-input__text{margin-bottom:8px;color:var(--red)}.code-input.ng-invalid .code-input__text-wrong{margin-bottom:8px;color:var(--red);display:block}.code-input__text{display:flex;flex-direction:column;margin-top:24px;font-size:16px;line-height:20px}.code-input__text-info{color:var(--gray)}.code-input__text-time{color:var(--blue)}.code-input__text-again{color:var(--blue);text-decoration:underline;cursor:pointer}.code-input__text-wrong{display:none}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.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: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }], encapsulation: i0.ViewEncapsulation.None });
354
564
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputComponent, decorators: [{
355
565
  type: Component,
356
- args: [{ selector: 'aeb-code-input', template: "<div class=\"code-input\">\n <h1>{{ title }}</h1>\n <span class=\"code-input__tip\">{{ tip }}</span>\n <div class=\"code-input__inputs\" *ngIf=\"!showLoader\" [ngClass]=\"classes\">\n <ng-container\n *ngFor=\"let input of inputs; let i = index; trackBy: trackByInput\"\n >\n <input\n [(ngModel)]=\"inputs[i]\"\n autocomplete=\"off\"\n (keypress)=\"numberOnly($event)\"\n (keyup)=\"onMove($event, i)\"\n (paste)=\"onPaste($event)\"\n value=\"input\"\n id=\"{{ i }}\"\n maxlength=\"1\"\n [disabled]=\"i === 0 ? false : true\"\n />\n </ng-container>\n </div>\n <div *ngIf=\"showLoader\" class=\"code-input__loader\">\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M30.2101 27.1713L27.2663 30.0952L29.223 34.7905L34.9375 29.1148L30.2101 27.1713ZM26.1754 30.5423H22.0021L20.0454 35.2376H28.1148L26.1754 30.5423ZM30.6776 21.9428V26.0706L35.3877 28.0141V19.9994L30.6776 21.9428ZM20.8939 30.0952L17.9501 27.1713L13.24 29.1148L18.9544 34.7905L20.8939 30.0952ZM29.223 13.223L27.2663 17.9183L30.2101 20.8421L34.9375 18.8986L29.223 13.223ZM22.0021 17.4539H26.1754L28.1148 12.7758H20.0454L22.0021 17.4539ZM17.4999 26.0706V21.9428L12.7898 19.9994V28.0141L17.4999 26.0706ZM17.9501 20.8421L20.8939 17.9183L18.9544 13.223L13.24 18.8986L17.9501 20.8421ZM26.4005 29.5448L29.656 26.2942V21.7021L26.4005 18.4687H21.777L18.5042 21.7021V26.2942L21.777 29.5448H26.4005ZM18.9891 36.2352C16.2011 35.2154 12.7898 31.6463 11.7681 29.0804C10.7465 26.5145 10.7414 21.9428 11.7681 18.933C12.7948 15.9232 15.875 12.7758 18.9891 11.7611C22.1031 10.7463 26.5877 10.7463 29.1884 11.7611C31.7891 12.7758 35.896 16.9272 36.4094 18.933C36.9227 20.9389 37.431 26.5145 36.4094 29.0804C35.3877 31.6463 31.7213 35.2154 29.1884 36.2352C26.6556 37.2549 21.777 37.2549 18.9891 36.2352Z\"\n fill=\"url(#paint0_linear_8482_9268)\"\n />\n <path\n d=\"M20 4C10.871 5.85308 4 13.9241 4 23.5999C4 32.183 9.40666 39.5032 17 42.3407\"\n stroke=\"url(#paint1_linear_8482_9268)\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M28 43.1998C37.129 41.3467 44 33.2757 44 23.5999C44 14.6446 38.1142 7.06403 30 4.5155\"\n stroke=\"url(#paint2_linear_8482_9268)\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n <defs>\n <linearGradient\n id=\"paint0_linear_8482_9268\"\n x1=\"24.9013\"\n y1=\"37\"\n x2=\"24.9013\"\n y2=\"11\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"#00B8FF\" />\n <stop offset=\"1\" stop-color=\"#0079D6\" />\n </linearGradient>\n <linearGradient\n id=\"paint1_linear_8482_9268\"\n x1=\"12.5547\"\n y1=\"42.3407\"\n x2=\"12.5547\"\n y2=\"4\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"#00B8FF\" />\n <stop offset=\"1\" stop-color=\"#0079D6\" />\n </linearGradient>\n <linearGradient\n id=\"paint2_linear_8482_9268\"\n x1=\"36.5547\"\n y1=\"43.1998\"\n x2=\"36.5547\"\n y2=\"4.5155\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"#00B8FF\" />\n <stop offset=\"1\" stop-color=\"#0079D6\" />\n </linearGradient>\n </defs>\n </svg>\n </div>\n <div class=\"code-input__text\">\n <span *ngIf=\"wrongCode\" class=\"code-input__text-wrong\">\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span>\n <div *ngIf=\"showTimer\">\n <span class=\"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=\"code-input__text-time\">{{ time }}</span>\n </div>\n <span *ngIf=\"sendAgain\" class=\"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 </div>\n</div>\n", styles: [".code-input{display:flex;flex-direction:column;align-items:center;width:632px;padding:48px;color:var(--darkblue);background-color:#fff}.code-input h1{width:-moz-fit-content;width:fit-content;margin:0 0 40px;font-size:24px}.code-input span{text-align:center}.code-input__tip{margin-bottom:40px}.code-input__inputs{display:flex;gap:16px}.code-input__inputs input{width:51px;height:56px;font-size:32px;text-align:center;border:solid 2px var(--gray);border-radius:10px;outline:none}.code-input__inputs input:focus{border:solid 2px var(--blue)}.code-input__inputs input:disabled{background-color:inherit}.code-input__input-wrong input{border:solid 2px var(--red)}.code-input__input-wrong input:focus{border:solid 2px var(--red)}.code-input__text{display:flex;flex-direction:column;margin-top:24px;font-size:16px;line-height:20px}.code-input__text-info{color:var(--gray)}.code-input__text-time{color:var(--blue)}.code-input__text-again{color:var(--blue);text-decoration:underline;cursor:pointer}.code-input__text-wrong{margin-bottom:8px;color:var(--red)}\n"] }]
566
+ args: [{ selector: 'aeb-code-input', providers: [
567
+ {
568
+ provide: NG_VALUE_ACCESSOR,
569
+ useExisting: forwardRef(() => CodeInputComponent),
570
+ multi: true
571
+ }
572
+ ], encapsulation: ViewEncapsulation.None, template: "<h1>{{ title }}</h1>\n<span class=\"code-input__tip\">{{ tip }}</span>\n<div class=\"code-input__inputs\">\n <form [formGroup]=\"form\" #inputsContainer>\n <ng-container formArrayName=\"inputs\">\n <ng-container *ngFor=\"let input of inputs.controls; let i = index\">\n <input\n [formControlName]=\"i\"\n (keydown)=\"onKeyDown($event, i)\"\n (keyup)=\"onKeyUp($event, i)\"\n (paste)=\"onPaste($event)\"\n autocomplete=\"one-time-code\"\n type=\"tel\"\n maxlength=\"1\"\n pattern=\"[0-9]\"\n inputmode=\"numeric\"\n />\n </ng-container>\n </ng-container>\n </form>\n</div>\n<div class=\"code-input__text\">\n <span class=\"code-input__text-wrong\">\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span>\n <div *ngIf=\"showTimer\">\n <span class=\"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=\"code-input__text-time\">{{ time }}</span>\n </div>\n <span\n *ngIf=\"showCodeText && !showTimer\"\n class=\"code-input__text-again\"\n (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</div>\n", styles: [".code-input{display:flex;flex-direction:column;align-items:center;width:632px;padding:48px;color:var(--darkblue);background-color:#fff}.code-input h1{width:-moz-fit-content;width:fit-content;margin:0 0 40px;font-size:24px}.code-input span{text-align:center}.code-input__tip{margin-bottom:40px}.code-input__inputs form{display:flex;gap:16px}.code-input__inputs input{width:51px;height:56px;font-size:32px;text-align:center;border:solid 2px var(--gray);border-radius:10px;outline:none}.code-input__inputs input:focus{border:solid 2px var(--blue)}.code-input__inputs input:disabled{background-color:inherit}.code-input.ng-invalid input{border:solid 2px var(--red)}.code-input.ng-invalid input:focus{border:solid 2px var(--red)}.code-input.ng-invalid .code-input__text{margin-bottom:8px;color:var(--red)}.code-input.ng-invalid .code-input__text-wrong{margin-bottom:8px;color:var(--red);display:block}.code-input__text{display:flex;flex-direction:column;margin-top:24px;font-size:16px;line-height:20px}.code-input__text-info{color:var(--gray)}.code-input__text-time{color:var(--blue)}.code-input__text-again{color:var(--blue);text-decoration:underline;cursor:pointer}.code-input__text-wrong{display:none}\n"] }]
357
573
  }], propDecorators: { title: [{
358
574
  type: Input
359
575
  }], secondsUntilRetry: [{
360
576
  type: Input
361
577
  }], tip: [{
362
578
  type: Input
363
- }], codeSet: [{
579
+ }], codeLength: [{
580
+ type: Input
581
+ }], codeCompleted: [{
364
582
  type: Output
365
583
  }], timeOut: [{
366
584
  type: Output
367
585
  }], resendClick: [{
368
586
  type: Output
587
+ }], inputsContainer: [{
588
+ type: ViewChildren,
589
+ args: ['inputsContainer']
590
+ }], _: [{
591
+ type: HostBinding,
592
+ args: ['class.code-input']
369
593
  }] } });
370
594
 
371
595
  class CodeInputModule {
372
596
  }
373
597
  CodeInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
374
- CodeInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, declarations: [CodeInputComponent], imports: [CommonModule, FormsModule], exports: [CodeInputComponent] });
375
- CodeInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, imports: [CommonModule, FormsModule] });
598
+ CodeInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, declarations: [CodeInputComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule], exports: [CodeInputComponent] });
599
+ CodeInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, imports: [CommonModule, FormsModule, ReactiveFormsModule] });
376
600
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, decorators: [{
377
601
  type: NgModule,
378
602
  args: [{
379
603
  declarations: [CodeInputComponent],
380
- imports: [CommonModule, FormsModule],
604
+ imports: [CommonModule, FormsModule, ReactiveFormsModule],
381
605
  exports: [CodeInputComponent]
382
606
  }]
383
607
  }] });
@@ -766,10 +990,10 @@ class NewButtonComponent {
766
990
  }
767
991
  }
768
992
  NewButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NewButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
769
- NewButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NewButtonComponent, selector: "aeb-new-button", inputs: { label: "label", fill: "fill", showIcon: "showIcon", iconSource: "iconSource", disabledIconSource: "disabledIconSource", hoveredIconSource: "hoveredIconSource", disabled: "disabled", leftIcon: "leftIcon", rightIcon: "rightIcon", size: "size", tabIndex: "tabIndex", solid: "solid" }, host: { listeners: { "mouseover": "onOver()", "mouseleave": "onLeave()" }, properties: { "tabIndex": "this.tabIndex", "class.aeb-button": "this.isButton", "class.aeb-button-primary": "this.isPrimary", "class.aeb-button-solid": "this.isSolid", "class.aeb-button--fill": "this.isFill", "class.aeb-button-solid--disabled": "this.isSolidDisabled", "class.aeb-button-primary--disabled": "this.isPrimaryDisabled", "class.aeb-button--small": "this.isSmall" } }, ngImport: i0, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--left': label !== '' && showIcon && leftIcon\n }\"\n ></div>\n <div>{{ label }}</div>\n <div\n *ngIf=\"showIcon && rightIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('right'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-button{box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;height:56px;font-size:18px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px}.aeb-button--small{height:40px}.aeb-button--fill{width:100%}.aeb-button--fill .aeb-button__label-wrapper{justify-content:space-between;width:100%}.aeb-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-button__label-wrapper--small{padding:0 16px}.aeb-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-button__label-image--left{margin-right:8px}.aeb-button__label-image--right{margin-left:8px}.aeb-button-primary{color:var(--blue);background:var(--white);border:2px solid var(--blue)}.aeb-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:2px solid var(--gray-primary)}.aeb-button-primary:focus{outline:none}.aeb-button-primary:hover,.aeb-button-primary:focus{color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-button-primary:active{color:var(--blue-turquoise);background-image:linear-gradient(white,white),linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;border:double 2px transparent;border-radius:10px}.aeb-button-solid{color:var(--white);background:var(--blue);background-image:unset;border:2px solid var(--blue)}.aeb-button-solid--disabled{color:var(--gray-primary);color:var(--white);pointer-events:none;cursor:default;background:var(--gray-primary);border:2px solid var(--gray-primary)}.aeb-button-solid:focus{outline:none}.aeb-button-solid:hover,.aeb-button-solid:focus{color:var(--white);background:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-button-solid:active{color:var(--white);background-image:linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;background-origin:border-box;border:2px solid #02d1c5}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
993
+ NewButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NewButtonComponent, selector: "aeb-new-button", inputs: { label: "label", fill: "fill", showIcon: "showIcon", iconSource: "iconSource", disabledIconSource: "disabledIconSource", hoveredIconSource: "hoveredIconSource", disabled: "disabled", leftIcon: "leftIcon", rightIcon: "rightIcon", size: "size", tabIndex: "tabIndex", solid: "solid" }, host: { listeners: { "mouseover": "onOver()", "mouseleave": "onLeave()" }, properties: { "tabIndex": "this.tabIndex", "class.aeb-button": "this.isButton", "class.aeb-button-primary": "this.isPrimary", "class.aeb-button-solid": "this.isSolid", "class.aeb-button--fill": "this.isFill", "class.aeb-button-solid--disabled": "this.isSolidDisabled", "class.aeb-button-primary--disabled": "this.isPrimaryDisabled", "class.aeb-button--small": "this.isSmall" } }, ngImport: i0, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--left': label !== '' && showIcon && leftIcon\n }\"\n ></div>\n <div>{{ label }}</div>\n <div\n *ngIf=\"showIcon && rightIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('right'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-button{box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;height:56px;font-size:18px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px;-webkit-tap-highlight-color:transparent}.aeb-button--small{height:40px}.aeb-button--fill{width:100%}.aeb-button--fill .aeb-button__label-wrapper{justify-content:space-between;width:100%}.aeb-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-button__label-wrapper--small{padding:0 16px}.aeb-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-button__label-image--left{margin-right:8px}.aeb-button__label-image--right{margin-left:8px}.aeb-button-primary{color:var(--blue);background:var(--white);border:2px solid var(--blue)}.aeb-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:2px solid var(--gray-primary)}.aeb-button-primary:focus{outline:none}@media (hover: hover){.aeb-button-primary:hover,.aeb-button-primary:focus{color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}}.aeb-button-primary:active{color:var(--blue-turquoise);background-image:linear-gradient(white,white),linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;border:double 2px transparent;border-radius:10px}.aeb-button-solid{color:var(--white);background:var(--blue);background-image:unset;border:2px solid var(--blue)}.aeb-button-solid--disabled{color:var(--gray-primary);color:var(--white);pointer-events:none;cursor:default;background:var(--gray-primary);border:2px solid var(--gray-primary)}.aeb-button-solid:focus{outline:none}@media (hover: hover){.aeb-button-solid:hover,.aeb-button-solid:focus{color:var(--white);background:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}}.aeb-button-solid:active{color:var(--white);background-image:linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;background-origin:border-box;border:2px solid #02d1c5}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
770
994
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NewButtonComponent, decorators: [{
771
995
  type: Component,
772
- args: [{ selector: 'aeb-new-button', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--left': label !== '' && showIcon && leftIcon\n }\"\n ></div>\n <div>{{ label }}</div>\n <div\n *ngIf=\"showIcon && rightIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('right'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-button{box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;height:56px;font-size:18px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px}.aeb-button--small{height:40px}.aeb-button--fill{width:100%}.aeb-button--fill .aeb-button__label-wrapper{justify-content:space-between;width:100%}.aeb-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-button__label-wrapper--small{padding:0 16px}.aeb-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-button__label-image--left{margin-right:8px}.aeb-button__label-image--right{margin-left:8px}.aeb-button-primary{color:var(--blue);background:var(--white);border:2px solid var(--blue)}.aeb-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:2px solid var(--gray-primary)}.aeb-button-primary:focus{outline:none}.aeb-button-primary:hover,.aeb-button-primary:focus{color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-button-primary:active{color:var(--blue-turquoise);background-image:linear-gradient(white,white),linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;border:double 2px transparent;border-radius:10px}.aeb-button-solid{color:var(--white);background:var(--blue);background-image:unset;border:2px solid var(--blue)}.aeb-button-solid--disabled{color:var(--gray-primary);color:var(--white);pointer-events:none;cursor:default;background:var(--gray-primary);border:2px solid var(--gray-primary)}.aeb-button-solid:focus{outline:none}.aeb-button-solid:hover,.aeb-button-solid:focus{color:var(--white);background:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}.aeb-button-solid:active{color:var(--white);background-image:linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;background-origin:border-box;border:2px solid #02d1c5}\n"] }]
996
+ args: [{ selector: 'aeb-new-button', encapsulation: ViewEncapsulation.None, template: "<div class=\"aeb-button__label-wrapper\" *ngIf=\"label || showIcon; else content\">\n <div\n *ngIf=\"showIcon && leftIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('left'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--left': label !== '' && showIcon && leftIcon\n }\"\n ></div>\n <div>{{ label }}</div>\n <div\n *ngIf=\"showIcon && rightIcon\"\n [ngStyle]=\"{\n 'background-image': wrapWithCssURL(getCurrentIconSource('right'))\n }\"\n class=\"aeb-button__label-image\"\n [ngClass]=\"{\n 'aeb-button__label-image--right': label !== '' && showIcon && rightIcon\n }\"\n ></div>\n</div>\n<ng-template #content>\n <div class=\"aeb-button__label-wrapper\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".aeb-button{box-sizing:border-box;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;height:56px;font-size:18px;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:10px;-webkit-tap-highlight-color:transparent}.aeb-button--small{height:40px}.aeb-button--fill{width:100%}.aeb-button--fill .aeb-button__label-wrapper{justify-content:space-between;width:100%}.aeb-button__label-wrapper{display:flex;padding:0 24px;-webkit-user-select:none;user-select:none}.aeb-button__label-wrapper--small{padding:0 16px}.aeb-button__label-image{display:flex;align-items:center;width:24px;height:24px;background-repeat:no-repeat;background-size:contain}.aeb-button__label-image--left{margin-right:8px}.aeb-button__label-image--right{margin-left:8px}.aeb-button-primary{color:var(--blue);background:var(--white);border:2px solid var(--blue)}.aeb-button-primary--disabled{color:var(--gray-primary);pointer-events:none;cursor:default;border:2px solid var(--gray-primary)}.aeb-button-primary:focus{outline:none}@media (hover: hover){.aeb-button-primary:hover,.aeb-button-primary:focus{color:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}}.aeb-button-primary:active{color:var(--blue-turquoise);background-image:linear-gradient(white,white),linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;border:double 2px transparent;border-radius:10px}.aeb-button-solid{color:var(--white);background:var(--blue);background-image:unset;border:2px solid var(--blue)}.aeb-button-solid--disabled{color:var(--gray-primary);color:var(--white);pointer-events:none;cursor:default;background:var(--gray-primary);border:2px solid var(--gray-primary)}.aeb-button-solid:focus{outline:none}@media (hover: hover){.aeb-button-solid:hover,.aeb-button-solid:focus{color:var(--white);background:var(--blue-turquoise);border:2px solid var(--blue-turquoise)}}.aeb-button-solid:active{color:var(--white);background-image:linear-gradient(180deg,#11bef4 0%,#02d1c5 100%);background-clip:content-box,border-box;background-origin:border-box;border:2px solid #02d1c5}\n"] }]
773
997
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { label: [{
774
998
  type: Input
775
999
  }], fill: [{
@@ -3835,6 +4059,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
3835
4059
  }]
3836
4060
  }] });
3837
4061
 
4062
+ class ResponseComponent {
4063
+ constructor() {
4064
+ this.mode = 'light';
4065
+ }
4066
+ ngOnInit() { }
4067
+ }
4068
+ ResponseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4069
+ ResponseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ResponseComponent, selector: "aeb-response", inputs: { code: "code", mode: "mode" }, ngImport: i0, template: "<img\n *ngIf=\"code\"\n [src]=\"'/images/responses/' + code + '-' + mode + '.svg'\"\n [alt]=\"code\"\n/>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4070
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseComponent, decorators: [{
4071
+ type: Component,
4072
+ args: [{ selector: 'aeb-response', template: "<img\n *ngIf=\"code\"\n [src]=\"'/images/responses/' + code + '-' + mode + '.svg'\"\n [alt]=\"code\"\n/>\n" }]
4073
+ }], ctorParameters: function () { return []; }, propDecorators: { code: [{
4074
+ type: Input
4075
+ }], mode: [{
4076
+ type: Input
4077
+ }] } });
4078
+
4079
+ class ResponseModule {
4080
+ }
4081
+ ResponseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4082
+ ResponseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, declarations: [ResponseComponent], imports: [CommonModule] });
4083
+ ResponseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, imports: [CommonModule] });
4084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, decorators: [{
4085
+ type: NgModule,
4086
+ args: [{
4087
+ declarations: [ResponseComponent],
4088
+ imports: [CommonModule]
4089
+ }]
4090
+ }] });
4091
+
3838
4092
  class HighlightPipe {
3839
4093
  transform(value, ...args) {
3840
4094
  return `${value.replace(RegExp(args[0]), `<b>${args[0]}</b>`)}`;
@@ -4759,7 +5013,8 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4759
5013
  NewsCardModule,
4760
5014
  DropdownModule,
4761
5015
  TableModule,
4762
- ModalModule], exports: [NewButtonModule,
5016
+ ModalModule,
5017
+ ResponseModule], exports: [NewButtonModule,
4763
5018
  CheckboxModule,
4764
5019
  HeaderModule,
4765
5020
  SidebarModule,
@@ -4791,7 +5046,8 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4791
5046
  NewsCardModule,
4792
5047
  DropdownModule,
4793
5048
  TableModule,
4794
- ModalModule] });
5049
+ ModalModule,
5050
+ ResponseModule] });
4795
5051
  AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [CodeInputModule,
4796
5052
  NewButtonModule,
4797
5053
  CheckboxModule,
@@ -4825,7 +5081,8 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
4825
5081
  NewsCardModule,
4826
5082
  DropdownModule,
4827
5083
  TableModule,
4828
- ModalModule, NewButtonModule,
5084
+ ModalModule,
5085
+ ResponseModule, NewButtonModule,
4829
5086
  CheckboxModule,
4830
5087
  HeaderModule,
4831
5088
  SidebarModule,
@@ -4857,7 +5114,8 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
4857
5114
  NewsCardModule,
4858
5115
  DropdownModule,
4859
5116
  TableModule,
4860
- ModalModule] });
5117
+ ModalModule,
5118
+ ResponseModule] });
4861
5119
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, decorators: [{
4862
5120
  type: NgModule,
4863
5121
  args: [{
@@ -4896,7 +5154,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4896
5154
  NewsCardModule,
4897
5155
  DropdownModule,
4898
5156
  TableModule,
4899
- ModalModule
5157
+ ModalModule,
5158
+ ResponseModule
4900
5159
  ],
4901
5160
  exports: [
4902
5161
  NewButtonModule,
@@ -4931,7 +5190,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4931
5190
  NewsCardModule,
4932
5191
  DropdownModule,
4933
5192
  TableModule,
4934
- ModalModule
5193
+ ModalModule,
5194
+ ResponseModule
4935
5195
  ]
4936
5196
  }]
4937
5197
  }] });
@@ -5178,5 +5438,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
5178
5438
  * Generated bundle index. Do not edit.
5179
5439
  */
5180
5440
 
5181
- export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, FieldSliderComponent, FieldSliderModule, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, InputDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewButtonComponent, NewButtonModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OptionComponent, PaginationComponent, PaginationModule, PaginationOldComponent, PaginationOldModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TextareaDirective, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5441
+ export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, BreadcrumpsComponent, CheckboxComponent, CheckboxGroupComponent, CheckboxModule, ClickOutsideDirective, ClickOutsideModule, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, FieldSliderComponent, FieldSliderModule, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, InputDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewButtonComponent, NewButtonModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OptionComponent, PaginationComponent, PaginationModule, PaginationOldComponent, PaginationOldModule, 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, TextareaDirective, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5182
5442
  //# sourceMappingURL=aeb-ui-kit.mjs.map