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';
@@ -252,133 +252,358 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
252
252
 
253
253
  class CodeInputComponent {
254
254
  constructor() {
255
- this.codeSet = new EventEmitter();
255
+ this.codeLength = 6;
256
+ this.codeCompleted = new EventEmitter();
256
257
  this.timeOut = new EventEmitter();
257
258
  this.resendClick = new EventEmitter();
258
- this.inputs = ['', '', '', '', '', ''];
259
- this.isPaste = false;
260
- this.sendAgain = false;
261
- this.showLoader = false;
262
- this.wrongCode = false;
259
+ this._ = true;
263
260
  this.showTimer = false;
264
- this.isDisabled = true;
261
+ this._inputState = 'ENTERING';
262
+ this._showCodeText = false;
265
263
  }
266
- get classes() {
267
- const mode = this.wrongCode ? 'input-wrong' : '';
268
- return `code-input__${mode}`;
264
+ get inputs() {
265
+ return this.form.get('inputs');
269
266
  }
270
- startTimer() {
271
- clearInterval(this.interval);
272
- this.time = this.secondsUntilRetry;
273
- this.interval = setInterval(() => {
274
- if (this.time > 0) {
275
- this.time--;
276
- }
277
- else {
278
- this.sendAgain = true;
279
- this.showTimer = false;
280
- this.timeOut.emit();
281
- clearInterval(this.interval);
282
- }
283
- }, 1000);
267
+ get showCodeText() {
268
+ return this._showCodeText;
269
+ }
270
+ set showCodeText(value) {
271
+ if (value) {
272
+ this.startTimer();
273
+ }
274
+ else {
275
+ this.stopTimer();
276
+ }
277
+ this._showCodeText = value;
278
+ }
279
+ get inputState() {
280
+ return this._inputState;
281
+ }
282
+ set inputState(state) {
283
+ switch (state) {
284
+ case 'ENTERING':
285
+ this.clear();
286
+ for (let i = 1; i < this.inputs.length; i++) {
287
+ this.inputs.controls[i].disable();
288
+ }
289
+ this.inputs.controls[0].enable();
290
+ this.getNativeInputByIndex(0).focus();
291
+ break;
292
+ case 'COMPLETED':
293
+ if (!this.showCodeText) {
294
+ const lastInput = this.getNativeInputByIndex(this.inputs.length - 1);
295
+ lastInput.blur();
296
+ this.codeCompleted.emit();
297
+ this.showCodeText = true;
298
+ }
299
+ break;
300
+ }
301
+ this._inputState = state;
302
+ }
303
+ ngOnInit() {
304
+ const inputsArray = [
305
+ new FormControl(),
306
+ new FormControl(),
307
+ new FormControl(),
308
+ new FormControl()
309
+ ];
310
+ if (this.codeLength === 6) {
311
+ inputsArray.push(new FormControl(), new FormControl());
312
+ }
313
+ this.form = new FormGroup({
314
+ inputs: new FormArray(inputsArray)
315
+ });
316
+ for (let i = 1; i < this.inputs.length; i++) {
317
+ this.inputs.controls[i].disable();
318
+ }
284
319
  }
285
- trackByInput(index) {
286
- return index;
287
- }
288
- onMove(e, i) {
289
- this.isPaste = true;
290
- const value = this.inputs[i];
291
- if (value.length > 0) {
292
- const nextIndex = i < 5 ? i + 1 : 5;
293
- const nextInput = document.getElementById(`${nextIndex}`);
294
- if (nextIndex <= 5) {
295
- nextInput.disabled = false;
296
- nextInput.focus();
320
+ writeValue(value) {
321
+ if (value === null) {
322
+ value = [];
323
+ }
324
+ if (!this.validateValueLength(value)) {
325
+ throw new Error(`Value's length too long, expected ${this.inputs.length}, got ${value.length}`);
326
+ }
327
+ this.castToCodeModel(value);
328
+ // вьюшка еще не прошла инициализацию
329
+ if (this.inputsContainer !== undefined) {
330
+ this.showCodeText = false;
331
+ this.inputState = 'ENTERING';
332
+ }
333
+ this.setInputsValues(value);
334
+ if (value.length === this.inputs.length &&
335
+ this.inputsContainer !== undefined) {
336
+ this.inputState = 'COMPLETED';
337
+ }
338
+ }
339
+ setDisabledState(isDisabled) {
340
+ if (isDisabled) {
341
+ this.inputs.disable();
342
+ }
343
+ else {
344
+ let foundNonNullishFlag = false;
345
+ this.inputs.controls
346
+ .slice()
347
+ .reverse()
348
+ .reduce((prev, curr) => {
349
+ if ((curr.value === '' || curr.value === null) &&
350
+ !foundNonNullishFlag) {
351
+ curr.disable();
352
+ }
353
+ else {
354
+ foundNonNullishFlag = true;
355
+ curr.enable();
356
+ if (prev.disabled) {
357
+ prev.enable();
358
+ }
359
+ }
360
+ return curr;
361
+ });
362
+ if (!foundNonNullishFlag) {
363
+ this.inputs.controls[0].enable();
364
+ if (this.inputsContainer) {
365
+ this.getNativeInputByIndex(0).focus();
366
+ }
297
367
  }
298
368
  }
369
+ }
370
+ onKeyDown(e, controlIndex) {
371
+ const value = this.inputs.controls[controlIndex].value;
372
+ if (!this.validateKeyboardInput(e) &&
373
+ !(e.key === 'v' && e.ctrlKey === true)) {
374
+ return false;
375
+ }
376
+ if (value && value.length > 0) {
377
+ this.inputs.controls[controlIndex].setValue('');
378
+ }
379
+ }
380
+ onKeyUp(e, controlIndex) {
381
+ if (!this.validateKeyboardInput(e)) {
382
+ return;
383
+ }
299
384
  if (e.key === 'Backspace') {
300
- const prevIndex = i <= 5 ? i - 1 : 5;
301
- const prevInput = document.getElementById(`${prevIndex}`);
302
- if (prevIndex >= 0) {
303
- prevInput.focus();
304
- }
385
+ this.moveCursorBackward(controlIndex);
386
+ return;
305
387
  }
306
- if (i === 5 && value.length > 0) {
307
- this.onSubmit();
308
- this.clear();
309
- document.getElementById('0').focus();
388
+ const value = this.inputs.controls[controlIndex].value;
389
+ this.moveCursorForward(controlIndex);
390
+ if (controlIndex === this.inputs.length - 1 && value && value.length > 0) {
391
+ this.inputState = 'COMPLETED';
310
392
  }
311
393
  }
312
394
  onPaste(e) {
313
- const data = e.clipboardData.getData('text');
314
- const slicedData = data.split('');
315
- for (const i of this.inputs.keys()) {
316
- this.inputs[i] = slicedData[i];
317
- }
318
- if (!isFinite(Number(data))) {
319
- this.clear();
395
+ const data = e.clipboardData.getData('text').trim();
396
+ if (!isFinite(data) ||
397
+ data.length > this.inputs.length) {
320
398
  return false;
321
399
  }
322
- if (data.length === 6) {
323
- this.onSubmit();
400
+ this.clear();
401
+ for (let i = 0; i < data.length; i++) {
402
+ this.inputs.controls[i].enable();
403
+ this.inputs.controls[i].setValue(data[i]);
324
404
  }
405
+ if (data.length < this.inputs.length) {
406
+ this.inputs.controls[data.length].enable();
407
+ }
408
+ const currentValue = this.form.value.inputs.join('');
409
+ if (currentValue.length === this.inputs.length) {
410
+ this.inputState = 'COMPLETED';
411
+ }
412
+ return false;
325
413
  }
326
- onSubmit() {
327
- this.wrongCode = true;
328
- this.showTimer = true;
329
- this.startTimer();
330
- this.codeSet.emit();
331
- }
332
- clear() {
333
- for (const i of this.inputs.keys()) {
334
- this.inputs[i] = '';
414
+ /**
415
+ * Фокусируется на следующием поле ввода
416
+ *
417
+ * @param relativeIndex индекс текущего поля ввода
418
+ */
419
+ moveCursorForward(relativeIndex) {
420
+ if (relativeIndex >= this.inputs.length - 1) {
421
+ return;
335
422
  }
423
+ this.inputs.controls[relativeIndex + 1].enable();
424
+ const nextInput = this.getNativeInputByIndex(relativeIndex + 1);
425
+ nextInput.focus();
336
426
  }
337
- resend() {
338
- this.resendClick.emit();
427
+ moveCursorBackward(relativeIndex) {
428
+ const prevInput = this.getNativeInputByIndex(Math.max(0, relativeIndex - 1));
429
+ prevInput.focus();
430
+ // находим последний непустой инпут
431
+ let lastNonNullishInputIndex = this.inputs.controls
432
+ .slice()
433
+ .reverse()
434
+ .findIndex((input) => input.value !== '' && input.value !== null);
435
+ if (lastNonNullishInputIndex === this.inputs.length - 1) {
436
+ lastNonNullishInputIndex = 0;
437
+ }
438
+ else if (lastNonNullishInputIndex !== -1) {
439
+ lastNonNullishInputIndex =
440
+ this.inputs.length - lastNonNullishInputIndex - 1;
441
+ }
442
+ /**
443
+ * Устанавливаем состояние текущего поля ввода на disabled,
444
+ * при условии, что все последующие поля пусты
445
+ */
446
+ if (lastNonNullishInputIndex < relativeIndex) {
447
+ if (lastNonNullishInputIndex >= 0) {
448
+ this.inputs.controls
449
+ .slice(lastNonNullishInputIndex + 1)
450
+ .forEach((input, index) => {
451
+ if (index === 0) {
452
+ return;
453
+ }
454
+ input.disable();
455
+ });
456
+ if (lastNonNullishInputIndex !== this.inputs.length &&
457
+ relativeIndex - lastNonNullishInputIndex - 1 !== 0) {
458
+ lastNonNullishInputIndex = lastNonNullishInputIndex + 1;
459
+ }
460
+ }
461
+ else {
462
+ this.inputs.controls.slice(1).forEach((input) => {
463
+ input.disable();
464
+ });
465
+ lastNonNullishInputIndex = 0;
466
+ this.getNativeInputByIndex(lastNonNullishInputIndex).focus();
467
+ }
468
+ this.getNativeInputByIndex(lastNonNullishInputIndex).focus();
469
+ }
339
470
  }
340
- numberOnly(e) {
341
- const key = Number(e.key);
342
- if (e.code === 'Space') {
471
+ /**
472
+ * Проверка того, что длина передаваемого значения не превышает количества полей ввода
473
+ */
474
+ validateValueLength(value) {
475
+ if ((isNaN(value) &&
476
+ value &&
477
+ value.length > this.inputs.length) ||
478
+ (!isNaN(value) && value.toString().length > this.inputs.length)) {
479
+ if (!isNaN(value)) {
480
+ value = value.toString();
481
+ }
343
482
  return false;
344
483
  }
345
- else if (isFinite(key)) {
484
+ return true;
485
+ }
486
+ /**
487
+ * Проверка валидности нажатой клавиши
488
+ */
489
+ validateKeyboardInput(e) {
490
+ const key = e.key;
491
+ if (/\d/.test(key) || key === 'Backspace') {
346
492
  return true;
347
493
  }
348
494
  else {
349
495
  return false;
350
496
  }
351
497
  }
498
+ /**
499
+ * Переводит валидную строку / число в массив элементов CodeModel
500
+ */
501
+ castToCodeModel(value) {
502
+ if (typeof value === 'string' || value instanceof String) {
503
+ value = value.split('');
504
+ }
505
+ else if (!isNaN(value)) {
506
+ value = value.toString().split('');
507
+ }
508
+ return value;
509
+ }
510
+ registerOnChange(fn) {
511
+ this.form.valueChanges.subscribe(fn);
512
+ }
513
+ registerOnTouched(fn) {
514
+ this.onTouch = fn;
515
+ }
516
+ setInputsValues(values) {
517
+ this.inputs.controls.map((input, index) => {
518
+ var _a;
519
+ input.setValue((_a = values[index]) !== null && _a !== void 0 ? _a : '');
520
+ if (index < values.length) {
521
+ input.enable();
522
+ }
523
+ });
524
+ }
525
+ getNativeInputByIndex(index) {
526
+ const nativeInputsArray = this.inputsContainer.first
527
+ .nativeElement;
528
+ return nativeInputsArray[index];
529
+ }
530
+ startTimer() {
531
+ this.showTimer = true;
532
+ this.time = this.secondsUntilRetry;
533
+ this.interval = setInterval(() => {
534
+ if (this.time > 0) {
535
+ this.time--;
536
+ }
537
+ else {
538
+ this.stopTimer();
539
+ this.timeOut.emit();
540
+ }
541
+ }, 1000);
542
+ }
543
+ stopTimer() {
544
+ this.time = this.secondsUntilRetry;
545
+ this.showTimer = false;
546
+ clearInterval(this.interval);
547
+ }
548
+ clear() {
549
+ this.setInputsValues([]);
550
+ }
551
+ resend() {
552
+ this.clear();
553
+ this.showCodeText = false;
554
+ this.inputState = 'ENTERING';
555
+ this.resendClick.emit();
556
+ }
352
557
  }
353
558
  CodeInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
354
- 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"] }] });
559
+ 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: [
560
+ {
561
+ provide: NG_VALUE_ACCESSOR,
562
+ useExisting: forwardRef(() => CodeInputComponent),
563
+ multi: true
564
+ }
565
+ ], 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 });
355
566
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputComponent, decorators: [{
356
567
  type: Component,
357
- 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"] }]
568
+ args: [{ selector: 'aeb-code-input', providers: [
569
+ {
570
+ provide: NG_VALUE_ACCESSOR,
571
+ useExisting: forwardRef(() => CodeInputComponent),
572
+ multi: true
573
+ }
574
+ ], 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"] }]
358
575
  }], propDecorators: { title: [{
359
576
  type: Input
360
577
  }], secondsUntilRetry: [{
361
578
  type: Input
362
579
  }], tip: [{
363
580
  type: Input
364
- }], codeSet: [{
581
+ }], codeLength: [{
582
+ type: Input
583
+ }], codeCompleted: [{
365
584
  type: Output
366
585
  }], timeOut: [{
367
586
  type: Output
368
587
  }], resendClick: [{
369
588
  type: Output
589
+ }], inputsContainer: [{
590
+ type: ViewChildren,
591
+ args: ['inputsContainer']
592
+ }], _: [{
593
+ type: HostBinding,
594
+ args: ['class.code-input']
370
595
  }] } });
371
596
 
372
597
  class CodeInputModule {
373
598
  }
374
599
  CodeInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
375
- CodeInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, declarations: [CodeInputComponent], imports: [CommonModule, FormsModule], exports: [CodeInputComponent] });
376
- CodeInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, imports: [CommonModule, FormsModule] });
600
+ CodeInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, declarations: [CodeInputComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule], exports: [CodeInputComponent] });
601
+ CodeInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, imports: [CommonModule, FormsModule, ReactiveFormsModule] });
377
602
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CodeInputModule, decorators: [{
378
603
  type: NgModule,
379
604
  args: [{
380
605
  declarations: [CodeInputComponent],
381
- imports: [CommonModule, FormsModule],
606
+ imports: [CommonModule, FormsModule, ReactiveFormsModule],
382
607
  exports: [CodeInputComponent]
383
608
  }]
384
609
  }] });
@@ -771,10 +996,10 @@ class NewButtonComponent {
771
996
  }
772
997
  }
773
998
  NewButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NewButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
774
- 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 });
999
+ 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 });
775
1000
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NewButtonComponent, decorators: [{
776
1001
  type: Component,
777
- 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"] }]
1002
+ 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"] }]
778
1003
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { label: [{
779
1004
  type: Input
780
1005
  }], fill: [{
@@ -3837,6 +4062,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
3837
4062
  }]
3838
4063
  }] });
3839
4064
 
4065
+ class ResponseComponent {
4066
+ constructor() {
4067
+ this.mode = 'light';
4068
+ }
4069
+ ngOnInit() { }
4070
+ }
4071
+ ResponseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4072
+ 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"] }] });
4073
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseComponent, decorators: [{
4074
+ type: Component,
4075
+ args: [{ selector: 'aeb-response', template: "<img\n *ngIf=\"code\"\n [src]=\"'/images/responses/' + code + '-' + mode + '.svg'\"\n [alt]=\"code\"\n/>\n" }]
4076
+ }], ctorParameters: function () { return []; }, propDecorators: { code: [{
4077
+ type: Input
4078
+ }], mode: [{
4079
+ type: Input
4080
+ }] } });
4081
+
4082
+ class ResponseModule {
4083
+ }
4084
+ ResponseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4085
+ ResponseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, declarations: [ResponseComponent], imports: [CommonModule] });
4086
+ ResponseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, imports: [CommonModule] });
4087
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ResponseModule, decorators: [{
4088
+ type: NgModule,
4089
+ args: [{
4090
+ declarations: [ResponseComponent],
4091
+ imports: [CommonModule]
4092
+ }]
4093
+ }] });
4094
+
3840
4095
  class HighlightPipe {
3841
4096
  transform(value, ...args) {
3842
4097
  return `${value.replace(RegExp(args[0]), `<b>${args[0]}</b>`)}`;
@@ -4761,7 +5016,8 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4761
5016
  NewsCardModule,
4762
5017
  DropdownModule,
4763
5018
  TableModule,
4764
- ModalModule], exports: [NewButtonModule,
5019
+ ModalModule,
5020
+ ResponseModule], exports: [NewButtonModule,
4765
5021
  CheckboxModule,
4766
5022
  HeaderModule,
4767
5023
  SidebarModule,
@@ -4793,7 +5049,8 @@ AebUiKitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
4793
5049
  NewsCardModule,
4794
5050
  DropdownModule,
4795
5051
  TableModule,
4796
- ModalModule] });
5052
+ ModalModule,
5053
+ ResponseModule] });
4797
5054
  AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, imports: [CodeInputModule,
4798
5055
  NewButtonModule,
4799
5056
  CheckboxModule,
@@ -4827,7 +5084,8 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
4827
5084
  NewsCardModule,
4828
5085
  DropdownModule,
4829
5086
  TableModule,
4830
- ModalModule, NewButtonModule,
5087
+ ModalModule,
5088
+ ResponseModule, NewButtonModule,
4831
5089
  CheckboxModule,
4832
5090
  HeaderModule,
4833
5091
  SidebarModule,
@@ -4859,7 +5117,8 @@ AebUiKitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
4859
5117
  NewsCardModule,
4860
5118
  DropdownModule,
4861
5119
  TableModule,
4862
- ModalModule] });
5120
+ ModalModule,
5121
+ ResponseModule] });
4863
5122
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AebUiKitModule, decorators: [{
4864
5123
  type: NgModule,
4865
5124
  args: [{
@@ -4898,7 +5157,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4898
5157
  NewsCardModule,
4899
5158
  DropdownModule,
4900
5159
  TableModule,
4901
- ModalModule
5160
+ ModalModule,
5161
+ ResponseModule
4902
5162
  ],
4903
5163
  exports: [
4904
5164
  NewButtonModule,
@@ -4933,7 +5193,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4933
5193
  NewsCardModule,
4934
5194
  DropdownModule,
4935
5195
  TableModule,
4936
- ModalModule
5196
+ ModalModule,
5197
+ ResponseModule
4937
5198
  ]
4938
5199
  }]
4939
5200
  }] });
@@ -5180,5 +5441,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
5180
5441
  * Generated bundle index. Do not edit.
5181
5442
  */
5182
5443
 
5183
- 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 };
5444
+ 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 };
5184
5445
  //# sourceMappingURL=aeb-ui-kit.mjs.map