@datarailsshared/datarailsshared 1.6.73 → 1.6.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Output, Input, Injectable, inject, ChangeDetectorRef, DestroyRef, ChangeDetectionStrategy, HostBinding, TemplateRef, HostListener, Directive, forwardRef, ViewChild, ContentChild, Pipe, ComponentFactoryResolver, Injector, Inject, Optional, ViewEncapsulation, PLATFORM_ID, ContentChildren, ElementRef, Host, ViewContainerRef, NgModule, InjectionToken, SkipSelf } from '@angular/core';
2
+ import { EventEmitter, Component, Output, Input, Injectable, inject, ChangeDetectorRef, DestroyRef, ChangeDetectionStrategy, HostBinding, TemplateRef, HostListener, Directive, forwardRef, ViewChild, ContentChild, Pipe, ComponentFactoryResolver, Injector, Inject, Optional, ViewEncapsulation, PLATFORM_ID, ContentChildren, ElementRef, Host, ViewContainerRef, NgModule, ViewChildren, InjectionToken, SkipSelf } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, isPlatformBrowser, DOCUMENT } from '@angular/common';
5
5
  import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
@@ -11,8 +11,8 @@ import * as i1$2 from '@angular/forms';
11
11
  import { NG_VALUE_ACCESSOR, FormBuilder, FormGroup, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
12
12
  import { Observable, BehaviorSubject, distinctUntilChanged, Subject, startWith, takeUntil, noop as noop$3, combineLatest, from, merge as merge$1, fromEvent, filter as filter$1, switchMap as switchMap$1, map as map$2, observeOn, asyncScheduler, withLatestFrom, first as first$1, interval, throwError, finalize as finalize$1, tap as tap$1, defer } from 'rxjs';
13
13
  import * as _ from 'lodash';
14
- import { isNil, isObject, cloneDeep, find, indexOf, reduce, map as map$1, isNumber, merge, forEach, some, orderBy, filter as filter$2, includes, pull, concat, isString, isBoolean, takeRight, take } from 'lodash';
15
- import { skip, debounceTime, filter, distinctUntilChanged as distinctUntilChanged$1, takeUntil as takeUntil$1, startWith as startWith$1, map, tap, shareReplay, switchMap, first, catchError, finalize, take as take$1 } from 'rxjs/operators';
14
+ import { isNil, isObject, cloneDeep, find, indexOf, reduce, map as map$1, isNumber, merge, forEach, some, orderBy, filter as filter$2, includes, pull, concat, isString, isBoolean } from 'lodash';
15
+ import { skip, debounceTime, filter, distinctUntilChanged as distinctUntilChanged$1, takeUntil as takeUntil$1, startWith as startWith$1, map, tap, shareReplay, switchMap, first, catchError, finalize, take } from 'rxjs/operators';
16
16
  import * as i5 from '@angular/material/datepicker';
17
17
  import { MatCalendar, DateRange, MAT_DATE_RANGE_SELECTION_STRATEGY, MatDatepickerModule } from '@angular/material/datepicker';
18
18
  import { transition, style, animate, trigger, state } from '@angular/animations';
@@ -1057,7 +1057,7 @@ class DrModelDebounceChangeDirective {
1057
1057
 
1058
1058
  const _c0$G = ["prefix"];
1059
1059
  const _c1$j = ["suffix"];
1060
- const _c2$8 = ["inputRef"];
1060
+ const _c2$9 = ["inputRef"];
1061
1061
  function DrInputComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
1062
1062
  const _r8 = i0.ɵɵgetCurrentView();
1063
1063
  i0.ɵɵelementContainerStart(0);
@@ -1102,8 +1102,8 @@ function DrInputComponent_button_7_Template(rf, ctx) { if (rf & 1) {
1102
1102
  i0.ɵɵadvance(1);
1103
1103
  i0.ɵɵtextInterpolate1(" ", ctx_r5._buttonOptions.text, "\n");
1104
1104
  } }
1105
- const _c3$6 = [[["", "prefixIcon", ""]], [["", "suffixIcon", ""]]];
1106
- const _c4$4 = ["[prefixIcon]", "[suffixIcon]"];
1105
+ const _c3$7 = [[["", "prefixIcon", ""]], [["", "suffixIcon", ""]]];
1106
+ const _c4$5 = ["[prefixIcon]", "[suffixIcon]"];
1107
1107
  class DrInputComponent {
1108
1108
  set disabled(value) {
1109
1109
  this.setDisabledState(value);
@@ -1272,7 +1272,7 @@ class DrInputComponent {
1272
1272
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.prefixIcon = _t.first);
1273
1273
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.suffixIcon = _t.first);
1274
1274
  } }, viewQuery: function DrInputComponent_Query(rf, ctx) { if (rf & 1) {
1275
- i0.ɵɵviewQuery(_c2$8, 5);
1275
+ i0.ɵɵviewQuery(_c2$9, 5);
1276
1276
  } if (rf & 2) {
1277
1277
  let _t;
1278
1278
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
@@ -1286,8 +1286,8 @@ class DrInputComponent {
1286
1286
  useExisting: forwardRef((() => DrInputComponent)),
1287
1287
  multi: true,
1288
1288
  },
1289
- ])], ngContentSelectors: _c4$4, decls: 8, vars: 5, consts: [[4, "ngIf", "ngIfElse"], ["maskedInput", ""], ["class", "clear-icon", 3, "click", 4, "ngIf"], ["class", "search-icon", 3, "click", 4, "ngIf"], [3, "click", 4, "ngIf"], [3, "ngModel", "disabled", "readonly", "type", "placeholder", "name", "min", "max", "minlength", "maxlength", "step", "ngModelChange", "ngModelDebounceChange", "blur", "focus"], ["inputRef", ""], [3, "ngModel", "disabled", "readonly", "type", "placeholder", "name", "min", "max", "minlength", "maxlength", "mask", "suffix", "prefix", "step", "ngModelChange", "ngModelDebounceChange", "blur", "focus"], [1, "clear-icon", 3, "click"], [1, "search-icon", 3, "click"], [3, "click"]], template: function DrInputComponent_Template(rf, ctx) { if (rf & 1) {
1290
- i0.ɵɵprojectionDef(_c3$6);
1289
+ ])], ngContentSelectors: _c4$5, decls: 8, vars: 5, consts: [[4, "ngIf", "ngIfElse"], ["maskedInput", ""], ["class", "clear-icon", 3, "click", 4, "ngIf"], ["class", "search-icon", 3, "click", 4, "ngIf"], [3, "click", 4, "ngIf"], [3, "ngModel", "disabled", "readonly", "type", "placeholder", "name", "min", "max", "minlength", "maxlength", "step", "ngModelChange", "ngModelDebounceChange", "blur", "focus"], ["inputRef", ""], [3, "ngModel", "disabled", "readonly", "type", "placeholder", "name", "min", "max", "minlength", "maxlength", "mask", "suffix", "prefix", "step", "ngModelChange", "ngModelDebounceChange", "blur", "focus"], [1, "clear-icon", 3, "click"], [1, "search-icon", 3, "click"], [3, "click"]], template: function DrInputComponent_Template(rf, ctx) { if (rf & 1) {
1290
+ i0.ɵɵprojectionDef(_c3$7);
1291
1291
  i0.ɵɵprojection(0);
1292
1292
  i0.ɵɵtemplate(1, DrInputComponent_ng_container_1_Template, 3, 11, "ng-container", 0);
1293
1293
  i0.ɵɵtemplate(2, DrInputComponent_ng_template_2_Template, 2, 14, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
@@ -1385,9 +1385,9 @@ class DrInputComponent {
1385
1385
 
1386
1386
  const _c0$F = ["labelTemplate"];
1387
1387
  const _c1$i = ["multiLabelTemplate"];
1388
- const _c2$7 = ["optionTemplate"];
1389
- const _c3$5 = ["optionHeaderTemplate"];
1390
- const _c4$3 = ["optionFooterTemplate"];
1388
+ const _c2$8 = ["optionTemplate"];
1389
+ const _c3$6 = ["optionHeaderTemplate"];
1390
+ const _c4$4 = ["optionFooterTemplate"];
1391
1391
  const _c5 = function (a0) { return { item: a0 }; };
1392
1392
  function DrSelectComponent_2_ng_template_0_Template(rf, ctx) { if (rf & 1) {
1393
1393
  i0.ɵɵelementContainer(0, 6);
@@ -1622,9 +1622,9 @@ class DrSelectComponent {
1622
1622
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrSelectComponent, selectors: [["dr-select"]], contentQueries: function DrSelectComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
1623
1623
  i0.ɵɵcontentQuery(dirIndex, _c0$F, 5);
1624
1624
  i0.ɵɵcontentQuery(dirIndex, _c1$i, 5);
1625
- i0.ɵɵcontentQuery(dirIndex, _c2$7, 5);
1626
- i0.ɵɵcontentQuery(dirIndex, _c3$5, 5);
1627
- i0.ɵɵcontentQuery(dirIndex, _c4$3, 5);
1625
+ i0.ɵɵcontentQuery(dirIndex, _c2$8, 5);
1626
+ i0.ɵɵcontentQuery(dirIndex, _c3$6, 5);
1627
+ i0.ɵɵcontentQuery(dirIndex, _c4$4, 5);
1628
1628
  } if (rf & 2) {
1629
1629
  let _t;
1630
1630
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelTemplate = _t.first);
@@ -5573,7 +5573,7 @@ function StepperComponent_ng_container_3_div_1_ng_template_6_Template(rf, ctx) {
5573
5573
  i0.ɵɵadvance(1);
5574
5574
  i0.ɵɵtextInterpolate(index_r11 + 1);
5575
5575
  } }
5576
- const _c2$6 = function (a0, a1, a2) { return { index: a0, isLast: a1, step: a2 }; };
5576
+ const _c2$7 = function (a0, a1, a2) { return { index: a0, isLast: a1, step: a2 }; };
5577
5577
  function StepperComponent_ng_container_3_div_1_ng_container_10_Template(rf, ctx) { if (rf & 1) {
5578
5578
  i0.ɵɵelementContainer(0, 25);
5579
5579
  } if (rf & 2) {
@@ -5583,7 +5583,7 @@ function StepperComponent_ng_container_3_div_1_ng_container_10_Template(rf, ctx)
5583
5583
  const step_r10 = ctx_r23.$implicit;
5584
5584
  i0.ɵɵnextContext();
5585
5585
  const _r6 = i0.ɵɵreference(8);
5586
- i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$6, index_r11, isLast_r12, step_r10));
5586
+ i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$7, index_r11, isLast_r12, step_r10));
5587
5587
  } }
5588
5588
  function StepperComponent_ng_container_3_div_1_span_11_Template(rf, ctx) { if (rf & 1) {
5589
5589
  i0.ɵɵelementStart(0, "span", 26);
@@ -5603,9 +5603,9 @@ function StepperComponent_ng_container_3_div_1_ng_container_12_Template(rf, ctx)
5603
5603
  const step_r10 = ctx_r25.$implicit;
5604
5604
  i0.ɵɵnextContext();
5605
5605
  const _r6 = i0.ɵɵreference(8);
5606
- i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$6, index_r11, isLast_r12, step_r10));
5606
+ i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$7, index_r11, isLast_r12, step_r10));
5607
5607
  } }
5608
- const _c3$4 = function (a0) { return { step: a0 }; };
5608
+ const _c3$5 = function (a0) { return { step: a0 }; };
5609
5609
  function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
5610
5610
  const _r28 = i0.ɵɵgetCurrentView();
5611
5611
  i0.ɵɵelementStart(0, "div", 10);
@@ -5632,7 +5632,7 @@ function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
5632
5632
  i0.ɵɵclassProp("step-setup", ctx_r14.inlineLabels);
5633
5633
  i0.ɵɵattribute("data-analytics", ctx_r14.getDataAnalyticsTag(step_r10));
5634
5634
  i0.ɵɵadvance(1);
5635
- i0.ɵɵproperty("drTooltip", step_r10.description && _r4)("drTooltipContext", i0.ɵɵpureFunction1(22, _c3$4, step_r10))("drTooltipPosition", "bottom");
5635
+ i0.ɵɵproperty("drTooltip", step_r10.description && _r4)("drTooltipContext", i0.ɵɵpureFunction1(22, _c3$5, step_r10))("drTooltipPosition", "bottom");
5636
5636
  i0.ɵɵadvance(1);
5637
5637
  i0.ɵɵclassProp("active", ctx_r14.currentStep === step_r10)("completed", step_r10.completed);
5638
5638
  i0.ɵɵadvance(1);
@@ -6699,7 +6699,7 @@ function DrChatSuggestionsComponent_ng_template_3_Template(rf, ctx) { if (rf & 1
6699
6699
  i0.ɵɵadvance(1);
6700
6700
  i0.ɵɵproperty("ngForOf", ctx_r3.visibleValues);
6701
6701
  } }
6702
- const _c2$5 = function (a0, a1, a2, a3) { return { "chat-suggestions--three-cols": a0, "chat-suggestions--two-cols": a1, "chat-suggestions--one-col": a2, "chat-suggestions--button-mode": a3 }; };
6702
+ const _c2$6 = function (a0, a1, a2, a3) { return { "chat-suggestions--three-cols": a0, "chat-suggestions--two-cols": a1, "chat-suggestions--one-col": a2, "chat-suggestions--button-mode": a3 }; };
6703
6703
  class DrChatSuggestionsComponent {
6704
6704
  get hiddenValues() {
6705
6705
  return JSON.parse(localStorage.getItem('aiChatSuggestions')) || [];
@@ -6805,7 +6805,7 @@ class DrChatSuggestionsComponent {
6805
6805
  i0.ɵɵtemplate(3, DrChatSuggestionsComponent_ng_template_3_Template, 2, 6, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
6806
6806
  } if (rf & 2) {
6807
6807
  const _r2 = i0.ɵɵreference(4);
6808
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(3, _c2$5, ctx.colsCount === 3, ctx.colsCount === 2, ctx.colsCount === 1, ctx.buttonMode));
6808
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(3, _c2$6, ctx.colsCount === 3, ctx.colsCount === 2, ctx.colsCount === 1, ctx.buttonMode));
6809
6809
  i0.ɵɵadvance(2);
6810
6810
  i0.ɵɵproperty("ngIf", ctx.buttonMode)("ngIfElse", _r2);
6811
6811
  } }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, DrButtonComponent], styles: ["[_nghost-%COMP%]{display:flex;align-items:flex-start;justify-content:center}[_nghost-%COMP%] .chat-suggestions[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:center;max-width:956px}[_nghost-%COMP%] .chat-suggestions--button-mode[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%] .chat-suggestions--button-mode[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{padding-top:32px}[_nghost-%COMP%] .chat-suggestions--one-col[_ngcontent-%COMP%]{padding-left:0;grid-template-columns:repeat(1,300px)}[_nghost-%COMP%] .chat-suggestions--one-col[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{grid-template-columns:repeat(1,300px)}[_nghost-%COMP%] .chat-suggestions--two-cols[_ngcontent-%COMP%]{padding-left:0;grid-template-columns:repeat(2,300px)}[_nghost-%COMP%] .chat-suggestions--two-cols[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{grid-template-columns:repeat(2,300px)}[_nghost-%COMP%] .chat-suggestions--three-cols[_ngcontent-%COMP%]{padding-left:0;grid-template-columns:repeat(3,300px)}[_nghost-%COMP%] .chat-suggestions--three-cols[_ngcontent-%COMP%] .chat-suggestions__container[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .chat-suggestions--three-cols[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{grid-template-columns:repeat(3,300px)}[_nghost-%COMP%] .chat-suggestions__container[_ngcontent-%COMP%]{display:flex;position:relative;width:auto;margin-top:12px;padding:0 16px}[_nghost-%COMP%] .chat-suggestions__container__button[_ngcontent-%COMP%]{z-index:3;background:linear-gradient(-90deg,#6969ff,#4eb7df) border-box;border-radius:2em;border:1.5px solid transparent}[_nghost-%COMP%] .chat-suggestions__container__button[_ngcontent-%COMP%] button{background:#fff;border-radius:24px;color:#4646ce;border:none;cursor:pointer}[_nghost-%COMP%] .chat-suggestions__container[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{display:none;position:absolute;width:100%;bottom:0;left:0;padding-bottom:56px;z-index:2}[_nghost-%COMP%] .chat-suggestions__container--opened[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .chat-suggestions__container--opened[_ngcontent-%COMP%] .chat-suggestions__container__button[_ngcontent-%COMP%] button{color:#4646ce;background:#f2f2fb}[_nghost-%COMP%] .chat-suggestions__container--opened[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{display:grid;align-items:center;justify-content:center}[_nghost-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{padding:0 16px;display:grid;gap:28px;grid-auto-rows:minmax(86px,auto);background:#ffffffb3}[_nghost-%COMP%] .chat-suggestions__items__item[_ngcontent-%COMP%]{display:inline-flex;min-height:86px;width:300px;align-items:center;justify-content:center;text-align:center;padding:16px;border-radius:8px;background:#f2f2fb;box-shadow:0 1px 2px #00000026;font-size:14px;line-height:24px;color:#25258c}[_nghost-%COMP%] .chat-suggestions__items__item[_ngcontent-%COMP%]:hover{cursor:pointer;background:#eaeaff}"], changeDetection: 0 }); }
@@ -6830,7 +6830,7 @@ class DrChatSuggestionsComponent {
6830
6830
 
6831
6831
  const _c0$p = ["drChatHeader"];
6832
6832
  const _c1$b = ["drChatContent"];
6833
- const _c2$4 = ["messagesContainer"];
6833
+ const _c2$5 = ["messagesContainer"];
6834
6834
  function DrChatComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
6835
6835
  i0.ɵɵelementContainer(0, 8);
6836
6836
  } if (rf & 2) {
@@ -6874,8 +6874,8 @@ function DrChatComponent_dr_chat_suggestions_7_Template(rf, ctx) { if (rf & 1) {
6874
6874
  i0.ɵɵclassProp("chat__suggestions--full-height", ctx_r3.fullScreen && !(ctx_r3.messages == null ? null : ctx_r3.messages.length));
6875
6875
  i0.ɵɵproperty("values", ctx_r3.suggestions)("fullScreen", ctx_r3.fullScreen)("waitForReply", ctx_r3.waitForReply)("buttonMode", !!(ctx_r3.messages == null ? null : ctx_r3.messages.length));
6876
6876
  } }
6877
- const _c3$3 = [[["dr-chat-alert"]], [["dr-chat-form"]], [["dr-ai-search-input"]], [["dr-chat-message"]]];
6878
- const _c4$2 = ["dr-chat-alert", "dr-chat-form", "dr-ai-search-input", "dr-chat-message"];
6877
+ const _c3$4 = [[["dr-chat-alert"]], [["dr-chat-form"]], [["dr-ai-search-input"]], [["dr-chat-message"]]];
6878
+ const _c4$3 = ["dr-chat-alert", "dr-chat-form", "dr-ai-search-input", "dr-chat-message"];
6879
6879
  class DrChatComponent {
6880
6880
  set contentUpdateSubject(value) {
6881
6881
  if (value) {
@@ -6965,14 +6965,14 @@ class DrChatComponent {
6965
6965
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chatContent = _t.first);
6966
6966
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messages = _t);
6967
6967
  } }, viewQuery: function DrChatComponent_Query(rf, ctx) { if (rf & 1) {
6968
- i0.ɵɵviewQuery(_c2$4, 5);
6968
+ i0.ɵɵviewQuery(_c2$5, 5);
6969
6969
  i0.ɵɵviewQuery(DrChatSuggestionsComponent, 5);
6970
6970
  } if (rf & 2) {
6971
6971
  let _t;
6972
6972
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messagesContainer = _t.first);
6973
6973
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._chatSuggestions = _t.first);
6974
- } }, inputs: { fullScreen: "fullScreen", noMessagesPlaceholder: "noMessagesPlaceholder", contentUpdateSubject: "contentUpdateSubject", scrollBottom: "scrollBottom", suggestions: "suggestions", reopen: "reopen", waitForReply: "waitForReply", scrollDelay: "scrollDelay" }, outputs: { suggestionSelect: "suggestionSelect" }, features: [i0.ɵɵProvidersFeature([DrChatCustomMessageService])], ngContentSelectors: _c4$2, decls: 11, vars: 6, consts: [[1, "chat"], [1, "chat__sticky-top"], [3, "ngTemplateOutlet", 4, "ngIf"], [1, "chat__alert"], ["class", "chat__empty-state", 4, "ngIf"], ["class", "chat__messages", 4, "ngIf"], ["class", "chat__suggestions", 3, "values", "fullScreen", "waitForReply", "chat__suggestions--full-height", "buttonMode", "suggestionSelect", 4, "ngIf"], [1, "form"], [3, "ngTemplateOutlet"], [1, "chat__empty-state"], [1, "chat__empty-state__text"], [1, "chat__messages"], [1, "chat__messages__container"], ["messagesContainer", ""], [1, "chat__suggestions", 3, "values", "fullScreen", "waitForReply", "buttonMode", "suggestionSelect"]], template: function DrChatComponent_Template(rf, ctx) { if (rf & 1) {
6975
- i0.ɵɵprojectionDef(_c3$3);
6974
+ } }, inputs: { fullScreen: "fullScreen", noMessagesPlaceholder: "noMessagesPlaceholder", contentUpdateSubject: "contentUpdateSubject", scrollBottom: "scrollBottom", suggestions: "suggestions", reopen: "reopen", waitForReply: "waitForReply", scrollDelay: "scrollDelay" }, outputs: { suggestionSelect: "suggestionSelect" }, features: [i0.ɵɵProvidersFeature([DrChatCustomMessageService])], ngContentSelectors: _c4$3, decls: 11, vars: 6, consts: [[1, "chat"], [1, "chat__sticky-top"], [3, "ngTemplateOutlet", 4, "ngIf"], [1, "chat__alert"], ["class", "chat__empty-state", 4, "ngIf"], ["class", "chat__messages", 4, "ngIf"], ["class", "chat__suggestions", 3, "values", "fullScreen", "waitForReply", "chat__suggestions--full-height", "buttonMode", "suggestionSelect", 4, "ngIf"], [1, "form"], [3, "ngTemplateOutlet"], [1, "chat__empty-state"], [1, "chat__empty-state__text"], [1, "chat__messages"], [1, "chat__messages__container"], ["messagesContainer", ""], [1, "chat__suggestions", 3, "values", "fullScreen", "waitForReply", "buttonMode", "suggestionSelect"]], template: function DrChatComponent_Template(rf, ctx) { if (rf & 1) {
6975
+ i0.ɵɵprojectionDef(_c3$4);
6976
6976
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
6977
6977
  i0.ɵɵtemplate(2, DrChatComponent_ng_container_2_Template, 1, 1, "ng-container", 2);
6978
6978
  i0.ɵɵelementStart(3, "div", 3);
@@ -7065,9 +7065,9 @@ function DrChatFormDropdownComponent_i_14_Template(rf, ctx) { if (rf & 1) {
7065
7065
  function DrChatFormDropdownComponent_dr_dot_flashing_15_Template(rf, ctx) { if (rf & 1) {
7066
7066
  i0.ɵɵelement(0, "dr-dot-flashing", 15);
7067
7067
  } }
7068
- const _c2$3 = function (a0) { return { "message-row_loading": a0 }; };
7069
- const _c3$2 = function (a0, a1) { return { "message-row__input--focused": a0, "message-row__input--filled": a1 }; };
7070
- const _c4$1 = ["*"];
7068
+ const _c2$4 = function (a0) { return { "message-row_loading": a0 }; };
7069
+ const _c3$3 = function (a0, a1) { return { "message-row__input--focused": a0, "message-row__input--filled": a1 }; };
7070
+ const _c4$2 = ["*"];
7071
7071
  class DrChatFormDropdownComponent {
7072
7072
  constructor(cdr, domSanitizer) {
7073
7073
  this.cdr = cdr;
@@ -7235,7 +7235,7 @@ class DrChatFormDropdownComponent {
7235
7235
  i0.ɵɵlistener("drop", function DrChatFormDropdownComponent_drop_HostBindingHandler($event) { return ctx.onDrop($event); })("dragover", function DrChatFormDropdownComponent_dragover_HostBindingHandler($event) { return ctx.onDragOver($event); })("dragleave", function DrChatFormDropdownComponent_dragleave_HostBindingHandler($event) { return ctx.onDragLeave($event); });
7236
7236
  } if (rf & 2) {
7237
7237
  i0.ɵɵclassProp("file-over", ctx.fileOver);
7238
- } }, inputs: { isUploadingFiles: "isUploadingFiles", message: "message", messagePlaceholder: "messagePlaceholder", dropFiles: "dropFiles", dropFilePlaceholder: "dropFilePlaceholder", waitForReply: "waitForReply", showDotFlashing: "showDotFlashing" }, outputs: { send: "send", uploadFiles: "uploadFiles", abort: "abort", inputChange: "inputChange" }, ngContentSelectors: _c4$1, decls: 16, vars: 20, consts: [[1, "message-row", 3, "ngClass"], [1, "message-row__input", 3, "ngClass"], [3, "files", "isRemovable", "maxLengthText", "removeFileEvent", 4, "ngIf"], [1, "message-row__input-textarea-wrap"], ["type", "text", 3, "ngModel", "rows", "placeholder", "focus", "blur", "mouseenter", "mouseleave", "ngModelChange", "keydown.enter"], ["textAreaElement", ""], [1, "message-row__btns"], ["type", "file", "hidden", "", "multiple", "", 3, "change"], ["fileInput", ""], ["class", "dr-icon-send-arrow-up send-button", 3, "click", 4, "ngIf"], ["class", "dr-icon-stop abort-button", 3, "click", 4, "ngIf"], ["class", "wait-reply-dot-flashing", 4, "ngIf"], [3, "files", "isRemovable", "maxLengthText", "removeFileEvent"], [1, "dr-icon-send-arrow-up", "send-button", 3, "click"], [1, "dr-icon-stop", "abort-button", 3, "click"], [1, "wait-reply-dot-flashing"]], template: function DrChatFormDropdownComponent_Template(rf, ctx) { if (rf & 1) {
7238
+ } }, inputs: { isUploadingFiles: "isUploadingFiles", message: "message", messagePlaceholder: "messagePlaceholder", dropFiles: "dropFiles", dropFilePlaceholder: "dropFilePlaceholder", waitForReply: "waitForReply", showDotFlashing: "showDotFlashing" }, outputs: { send: "send", uploadFiles: "uploadFiles", abort: "abort", inputChange: "inputChange" }, ngContentSelectors: _c4$2, decls: 16, vars: 20, consts: [[1, "message-row", 3, "ngClass"], [1, "message-row__input", 3, "ngClass"], [3, "files", "isRemovable", "maxLengthText", "removeFileEvent", 4, "ngIf"], [1, "message-row__input-textarea-wrap"], ["type", "text", 3, "ngModel", "rows", "placeholder", "focus", "blur", "mouseenter", "mouseleave", "ngModelChange", "keydown.enter"], ["textAreaElement", ""], [1, "message-row__btns"], ["type", "file", "hidden", "", "multiple", "", 3, "change"], ["fileInput", ""], ["class", "dr-icon-send-arrow-up send-button", 3, "click", 4, "ngIf"], ["class", "dr-icon-stop abort-button", 3, "click", 4, "ngIf"], ["class", "wait-reply-dot-flashing", 4, "ngIf"], [3, "files", "isRemovable", "maxLengthText", "removeFileEvent"], [1, "dr-icon-send-arrow-up", "send-button", 3, "click"], [1, "dr-icon-stop", "abort-button", 3, "click"], [1, "wait-reply-dot-flashing"]], template: function DrChatFormDropdownComponent_Template(rf, ctx) { if (rf & 1) {
7239
7239
  i0.ɵɵprojectionDef();
7240
7240
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
7241
7241
  i0.ɵɵpipe(2, "async");
@@ -7257,9 +7257,9 @@ class DrChatFormDropdownComponent {
7257
7257
  } if (rf & 2) {
7258
7258
  const _r1 = i0.ɵɵreference(7);
7259
7259
  let tmp_1_0;
7260
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$3, ctx.isUploadingFiles));
7260
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$4, ctx.isUploadingFiles));
7261
7261
  i0.ɵɵadvance(1);
7262
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(17, _c3$2, ctx.inputFocus, !!(ctx.message == null ? null : (tmp_1_0 = ctx.message.trim()) == null ? null : tmp_1_0.length) || !!i0.ɵɵpipeBind1(2, 11, ctx.droppedFiles$).length));
7262
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(17, _c3$3, ctx.inputFocus, !!(ctx.message == null ? null : (tmp_1_0 = ctx.message.trim()) == null ? null : tmp_1_0.length) || !!i0.ɵɵpipeBind1(2, 11, ctx.droppedFiles$).length));
7263
7263
  i0.ɵɵadvance(2);
7264
7264
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(4, 13, ctx.droppedFiles$).length);
7265
7265
  i0.ɵɵadvance(3);
@@ -9436,7 +9436,7 @@ function DrDropdownComponent_dr_dropdown_item_4_ng_container_3_Template(rf, ctx)
9436
9436
  const act_r2 = i0.ɵɵnextContext().$implicit;
9437
9437
  i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$9, act_r2));
9438
9438
  } }
9439
- const _c2$2 = function () { return { withoutArrow: true }; };
9439
+ const _c2$3 = function () { return { withoutArrow: true }; };
9440
9440
  function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1) {
9441
9441
  const _r20 = i0.ɵɵgetCurrentView();
9442
9442
  i0.ɵɵelementStart(0, "dr-dropdown-item", 4);
@@ -9449,7 +9449,7 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
9449
9449
  const act_r2 = ctx.$implicit;
9450
9450
  const index_r3 = ctx.index;
9451
9451
  const ctx_r1 = i0.ɵɵnextContext();
9452
- i0.ɵɵproperty("drTooltip", ctx_r1.tooltipToShow(act_r2))("drTooltipPosition", "left")("drTooltipOptions", i0.ɵɵpureFunction0(15, _c2$2))("drTooltipClass", "dr-dropdown__tooltip")("drDropdown", ctx_r1.hasChildren(act_r2) && act_r2.children)("drDropdownClass", act_r2.childOptions == null ? null : act_r2.childOptions.class)("drDropdownInHover", true)("drDropdownPosition", act_r2.childOptions == null ? null : act_r2.childOptions.position)("disabled", ctx_r1.disabled(act_r2))("selected", ctx_r1.selected(act_r2))("divider", act_r2.separateLine);
9452
+ i0.ɵɵproperty("drTooltip", ctx_r1.tooltipToShow(act_r2))("drTooltipPosition", "left")("drTooltipOptions", i0.ɵɵpureFunction0(15, _c2$3))("drTooltipClass", "dr-dropdown__tooltip")("drDropdown", ctx_r1.hasChildren(act_r2) && act_r2.children)("drDropdownClass", act_r2.childOptions == null ? null : act_r2.childOptions.class)("drDropdownInHover", true)("drDropdownPosition", act_r2.childOptions == null ? null : act_r2.childOptions.position)("disabled", ctx_r1.disabled(act_r2))("selected", ctx_r1.selected(act_r2))("divider", act_r2.separateLine);
9453
9453
  i0.ɵɵattribute("data-analytics", ctx_r1.getDataAnalyticsTag(act_r2, index_r3));
9454
9454
  i0.ɵɵadvance(1);
9455
9455
  i0.ɵɵproperty("ngIf", !act_r2.templateRef);
@@ -9458,8 +9458,8 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
9458
9458
  i0.ɵɵadvance(1);
9459
9459
  i0.ɵɵproperty("ngIf", act_r2.templateRef);
9460
9460
  } }
9461
- const _c3$1 = [[["dr-dropdown-item"]]];
9462
- const _c4 = ["dr-dropdown-item"];
9461
+ const _c3$2 = [[["dr-dropdown-item"]]];
9462
+ const _c4$1 = ["dr-dropdown-item"];
9463
9463
  class DrDropdownComponent {
9464
9464
  set options(data) {
9465
9465
  if (data) {
@@ -9579,8 +9579,8 @@ class DrDropdownComponent {
9579
9579
  } if (rf & 2) {
9580
9580
  let _t;
9581
9581
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuContainer = _t.first);
9582
- } }, inputs: { options: "options" }, outputs: { onAction: "action" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c4, decls: 6, vars: 5, consts: [[1, "dr-dropdown"], ["menuContainer", ""], ["tabindex", "-1", "role", "listbox", 1, "dr-dropdown__container", 3, "mouseenter", "mouseleave"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown", 4, "ngFor", "ngForOf"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown"], ["dropdownItemContent", "", 4, "ngIf"], ["dropdownItemActions", "", 4, "ngIf"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["dropdownItemContent", ""], ["class", "dr-dropdown__icon", 3, "class", 4, "ngIf"], [1, "dr-dropdown__text"], [1, "dr-dropdown__icon"], ["dropdownItemActions", ""], [3, "class", "showOnHover", "mousedown", 4, "ngFor", "ngForOf"], ["class", "dr-icon-arrow-right", 4, "ngIf"], [3, "mousedown"], [1, "dr-icon-arrow-right"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function DrDropdownComponent_Template(rf, ctx) { if (rf & 1) {
9583
- i0.ɵɵprojectionDef(_c3$1);
9582
+ } }, inputs: { options: "options" }, outputs: { onAction: "action" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c4$1, decls: 6, vars: 5, consts: [[1, "dr-dropdown"], ["menuContainer", ""], ["tabindex", "-1", "role", "listbox", 1, "dr-dropdown__container", 3, "mouseenter", "mouseleave"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown", 4, "ngFor", "ngForOf"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown"], ["dropdownItemContent", "", 4, "ngIf"], ["dropdownItemActions", "", 4, "ngIf"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["dropdownItemContent", ""], ["class", "dr-dropdown__icon", 3, "class", 4, "ngIf"], [1, "dr-dropdown__text"], [1, "dr-dropdown__icon"], ["dropdownItemActions", ""], [3, "class", "showOnHover", "mousedown", 4, "ngFor", "ngForOf"], ["class", "dr-icon-arrow-right", 4, "ngIf"], [3, "mousedown"], [1, "dr-icon-arrow-right"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function DrDropdownComponent_Template(rf, ctx) { if (rf & 1) {
9583
+ i0.ɵɵprojectionDef(_c3$2);
9584
9584
  i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
9585
9585
  i0.ɵɵlistener("mouseenter", function DrDropdownComponent_Template_div_mouseenter_2_listener() { return ctx.onMouseenter(); })("mouseleave", function DrDropdownComponent_Template_div_mouseleave_2_listener() { return ctx.onMouseleave(); });
9586
9586
  i0.ɵɵprojection(3);
@@ -10351,8 +10351,8 @@ function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
10351
10351
  i0.ɵɵclassMap(ctx_r1.chevronIconClass);
10352
10352
  i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$5, ctx_r1.state, i0.ɵɵpureFunction1(3, _c0$c, ctx_r1.chevronRotationDegree)));
10353
10353
  } }
10354
- const _c2$1 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
10355
- const _c3 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
10354
+ const _c2$2 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
10355
+ const _c3$1 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
10356
10356
  class DrAccordionItemHeaderComponent {
10357
10357
  get isCollapsed() {
10358
10358
  return this.accordionItem.collapsed;
@@ -10407,8 +10407,8 @@ class DrAccordionItemHeaderComponent {
10407
10407
  i0.ɵɵattribute("aria-expanded", ctx.expanded)("tabindex", ctx.tabbable)("aria-disabled", ctx.disabled);
10408
10408
  i0.ɵɵclassMap(ctx.theme);
10409
10409
  i0.ɵɵclassProp("accordion-item-header-collapsed", ctx.isCollapsed)("accordion-item-header-expanded", ctx.expanded);
10410
- } }, inputs: { chevronOrientation: "chevronOrientation", chevronPosition: "chevronPosition", icon: "icon", toggleOnChevronClick: "toggleOnChevronClick" }, ngContentSelectors: _c3, decls: 5, vars: 2, consts: [[3, "class", "dr-accordion-item-header-icon--additional-padding", 4, "ngIf"], [3, "class", "click", 4, "ngIf"], [3, "click"]], template: function DrAccordionItemHeaderComponent_Template(rf, ctx) { if (rf & 1) {
10411
- i0.ɵɵprojectionDef(_c2$1);
10410
+ } }, inputs: { chevronOrientation: "chevronOrientation", chevronPosition: "chevronPosition", icon: "icon", toggleOnChevronClick: "toggleOnChevronClick" }, ngContentSelectors: _c3$1, decls: 5, vars: 2, consts: [[3, "class", "dr-accordion-item-header-icon--additional-padding", 4, "ngIf"], [3, "class", "click", 4, "ngIf"], [3, "click"]], template: function DrAccordionItemHeaderComponent_Template(rf, ctx) { if (rf & 1) {
10411
+ i0.ɵɵprojectionDef(_c2$2);
10412
10412
  i0.ɵɵtemplate(0, DrAccordionItemHeaderComponent_i_0_Template, 1, 4, "i", 0);
10413
10413
  i0.ɵɵtemplate(1, DrAccordionItemHeaderComponent_i_1_Template, 1, 8, "i", 1);
10414
10414
  i0.ɵɵprojection(2);
@@ -10804,7 +10804,7 @@ function DialogWrapperComponent_div_10_Template(rf, ctx) { if (rf & 1) {
10804
10804
  i0.ɵɵadvance(1);
10805
10805
  i0.ɵɵproperty("ngIf", ctx_r6.dialogData.acceptButton);
10806
10806
  } }
10807
- const _c2 = function (a0) { return { "flex-position": a0 }; };
10807
+ const _c2$1 = function (a0) { return { "flex-position": a0 }; };
10808
10808
  class DialogWrapperComponent {
10809
10809
  get elementClass() {
10810
10810
  return this.dialogData?.theme?.noThemeSizeClass ? null : this.dialogData?.theme?.themeSize || 'medium-modal';
@@ -10915,7 +10915,7 @@ class DialogWrapperComponent {
10915
10915
  i0.ɵɵproperty("ngIf", ctx.dialogData.title);
10916
10916
  i0.ɵɵadvance(1);
10917
10917
  i0.ɵɵclassProp("dialog-wrapper__content--no-padding", ctx.dialogData.theme == null ? null : ctx.dialogData.theme.contentNoPadding);
10918
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c2, (ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class) && !ctx.childComponent));
10918
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c2$1, (ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class) && !ctx.childComponent));
10919
10919
  i0.ɵɵadvance(1);
10920
10920
  i0.ɵɵproperty("ngIf", ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class);
10921
10921
  i0.ɵɵadvance(1);
@@ -13633,24 +13633,42 @@ class DrChipComponent {
13633
13633
  type: Output
13634
13634
  }] }); })();
13635
13635
 
13636
- function DrGalleryComponent_div_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
13636
+ const _c0$1 = ["carouselContainer"];
13637
+ const _c1 = ["carouselItem"];
13638
+ function DrGalleryComponent_dr_button_0_Template(rf, ctx) { if (rf & 1) {
13639
+ const _r5 = i0.ɵɵgetCurrentView();
13640
+ i0.ɵɵelementStart(0, "dr-button", 5);
13641
+ i0.ɵɵlistener("click", function DrGalleryComponent_dr_button_0_Template_dr_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.prev()); });
13642
+ i0.ɵɵelementEnd();
13643
+ } if (rf & 2) {
13644
+ i0.ɵɵproperty("icon", "dr-icon-arrow-left");
13645
+ } }
13646
+ function DrGalleryComponent_div_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
13637
13647
  i0.ɵɵelementContainer(0);
13638
13648
  } }
13639
- const _c0$1 = function (a0) { return { "dr-gallery-item_active": a0 }; };
13640
- const _c1 = function (a0) { return { $implicit: a0 }; };
13641
- function DrGalleryComponent_div_3_Template(rf, ctx) { if (rf & 1) {
13642
- i0.ɵɵelementStart(0, "div", 5);
13643
- i0.ɵɵtemplate(1, DrGalleryComponent_div_3_ng_container_1_Template, 1, 0, "ng-container", 6);
13649
+ const _c2 = function (a0) { return { "dr-gallery-item_active": a0 }; };
13650
+ const _c3 = function () { return {}; };
13651
+ const _c4 = function (a0) { return { $implicit: a0 }; };
13652
+ function DrGalleryComponent_div_4_Template(rf, ctx) { if (rf & 1) {
13653
+ i0.ɵɵelementStart(0, "div", 6, 7);
13654
+ i0.ɵɵtemplate(2, DrGalleryComponent_div_4_ng_container_2_Template, 1, 0, "ng-container", 8);
13644
13655
  i0.ɵɵelementEnd();
13645
13656
  } if (rf & 2) {
13646
- const item_r1 = ctx.$implicit;
13647
- const i_r2 = ctx.index;
13648
- const ctx_r0 = i0.ɵɵnextContext();
13649
- i0.ɵɵstyleMap(ctx_r0.getStyle());
13650
- i0.ɵɵstyleProp("transition", ctx_r0.transition);
13651
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$1, ctx_r0.centerIndex === i_r2));
13652
- i0.ɵɵadvance(1);
13653
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.template)("ngTemplateOutletContext", i0.ɵɵpureFunction1(9, _c1, item_r1));
13657
+ const item_r6 = ctx.$implicit;
13658
+ const i_r7 = ctx.index;
13659
+ const ctx_r2 = i0.ɵɵnextContext();
13660
+ i0.ɵɵstyleProp("transition", ctx_r2.transition);
13661
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c2, ctx_r2.centerIndex === i_r7))("ngStyle", ctx_r2.modeType === "loop" ? ctx_r2.getStyle() : i0.ɵɵpureFunction0(8, _c3));
13662
+ i0.ɵɵadvance(2);
13663
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.template)("ngTemplateOutletContext", i0.ɵɵpureFunction1(9, _c4, item_r6));
13664
+ } }
13665
+ function DrGalleryComponent_dr_button_5_Template(rf, ctx) { if (rf & 1) {
13666
+ const _r11 = i0.ɵɵgetCurrentView();
13667
+ i0.ɵɵelementStart(0, "dr-button", 9);
13668
+ i0.ɵɵlistener("click", function DrGalleryComponent_dr_button_5_Template_dr_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.next()); });
13669
+ i0.ɵɵelementEnd();
13670
+ } if (rf & 2) {
13671
+ i0.ɵɵproperty("iconSize", "24px")("icon", "dr-icon-arrow-right");
13654
13672
  } }
13655
13673
  class DrGalleryComponent {
13656
13674
  set items(value) {
@@ -13675,25 +13693,57 @@ class DrGalleryComponent {
13675
13693
  get centerIndex() {
13676
13694
  return this.itemsCount > 1 && this.itemsCount % 2 !== 0 ? this.activeIndex + Math.floor(this.itemsCount / 2) : null;
13677
13695
  }
13678
- ngOnChanges() {
13679
- this.activeIndex = this.itemsCount;
13680
- this.initializeCarousel();
13681
- this.updateTransform();
13682
- }
13683
13696
  constructor(cdr) {
13684
13697
  this.cdr = cdr;
13685
13698
  this._items = [];
13686
13699
  this._itemsCount = 3;
13687
13700
  this.defaultTransition = '250ms ease-in-out';
13688
13701
  this.noTransition = '0ms';
13702
+ this.modeType = 'loop';
13703
+ this.isOutsideBtns = false;
13689
13704
  this.activeIndex = 0;
13690
13705
  this.carouselItems = [];
13691
- this.transform = `translateX(0%)`;
13706
+ this.transform = 'translateX(0%)';
13692
13707
  this.transition = this.defaultTransition;
13708
+ this.itemOffsets = [];
13709
+ this.itemWidths = [];
13710
+ }
13711
+ ngAfterViewInit() {
13712
+ // Wait for initial render
13713
+ setTimeout(() => {
13714
+ this.calculateItemOffsets();
13715
+ this.updateTransform();
13716
+ });
13693
13717
  }
13694
13718
  initializeCarousel() {
13695
- this.carouselItems = [...takeRight(this.items, this.itemsCount), ...this.items, ...take(this.items, this.itemsCount)];
13696
- this.updateTransform();
13719
+ if (this.modeType === 'loop') {
13720
+ this.carouselItems = [
13721
+ ...this._items.slice(-this.itemsCount),
13722
+ ...this._items,
13723
+ ...this._items.slice(0, this.itemsCount),
13724
+ ];
13725
+ this.activeIndex = this.itemsCount;
13726
+ }
13727
+ else {
13728
+ this.carouselItems = [...this._items];
13729
+ this.activeIndex = 0;
13730
+ }
13731
+ setTimeout(() => {
13732
+ this.calculateItemOffsets();
13733
+ this.updateTransform();
13734
+ });
13735
+ }
13736
+ calculateItemOffsets() {
13737
+ this.itemOffsets = [];
13738
+ this.itemWidths = [];
13739
+ let offset = 0;
13740
+ const elements = this.itemElements.toArray();
13741
+ for (const el of elements) {
13742
+ const width = el.nativeElement.offsetWidth;
13743
+ this.itemOffsets.push(offset);
13744
+ this.itemWidths.push(width);
13745
+ offset += width;
13746
+ }
13697
13747
  }
13698
13748
  getStyle() {
13699
13749
  const percent = `calc(${100 / this.itemsCount}%)`;
@@ -13704,20 +13754,54 @@ class DrGalleryComponent {
13704
13754
  };
13705
13755
  }
13706
13756
  prev() {
13707
- this.activeIndex--;
13708
- this.transition = this.defaultTransition;
13709
- this.updateTransform();
13710
- if (this.activeIndex <= 0) {
13711
- this.resetIndexAfterDelay(this.carouselItems.length - this.items.length);
13757
+ if (this.modeType === 'loop') {
13758
+ this.activeIndex--;
13759
+ this.transition = this.defaultTransition;
13760
+ this.updateTransform();
13761
+ if (this.activeIndex <= 0) {
13762
+ this.resetIndexAfterDelay(this.carouselItems.length - this.items.length);
13763
+ }
13764
+ }
13765
+ else {
13766
+ if (this.activeIndex > 0) {
13767
+ this.activeIndex--;
13768
+ this.updateTransform();
13769
+ }
13712
13770
  }
13713
13771
  }
13714
13772
  next() {
13715
- this.activeIndex++;
13716
- this.transition = this.defaultTransition;
13717
- this.updateTransform();
13718
- if (this.activeIndex + this.itemsCount > this.carouselItems.length - 1) {
13719
- this.resetIndexAfterDelay(this.itemsCount);
13773
+ if (this.modeType === 'loop') {
13774
+ this.activeIndex++;
13775
+ this.transition = this.defaultTransition;
13776
+ this.updateTransform();
13777
+ if (this.activeIndex + this.itemsCount > this.carouselItems.length - 1) {
13778
+ this.resetIndexAfterDelay(this.itemsCount);
13779
+ }
13720
13780
  }
13781
+ else {
13782
+ if (this.activeIndex + 1 < this.carouselItems.length) {
13783
+ this.activeIndex++;
13784
+ this.updateTransform();
13785
+ }
13786
+ }
13787
+ }
13788
+ navigate(index) {
13789
+ this.activeIndex = index;
13790
+ this.updateTransform();
13791
+ }
13792
+ get canGoPrev() {
13793
+ if (this.modeType === 'loop')
13794
+ return true;
13795
+ return !!(this.activeIndex > 0);
13796
+ }
13797
+ get canGoNext() {
13798
+ if (this.modeType === 'loop')
13799
+ return true;
13800
+ const containerWidth = this.containerRef?.nativeElement?.offsetWidth || 0;
13801
+ const currentOffset = this.itemOffsets[this.activeIndex] || 0;
13802
+ const lastIndex = this.itemOffsets.length - 1;
13803
+ const totalContentWidth = this.itemOffsets[lastIndex] + this.itemWidths[lastIndex];
13804
+ return currentOffset + containerWidth < totalContentWidth - 1;
13721
13805
  }
13722
13806
  resetIndexAfterDelay(newIndex) {
13723
13807
  setTimeout(() => {
@@ -13727,9 +13811,17 @@ class DrGalleryComponent {
13727
13811
  }, 250);
13728
13812
  }
13729
13813
  updateTransform(skipTransition = false) {
13730
- this.transform = `translateX(${-100 * (this.activeIndex / this.itemsCount)}%)`;
13814
+ if (this.modeType === 'loop') {
13815
+ this.transform = `translateX(${-100 * (this.activeIndex / this.itemsCount)}%)`;
13816
+ }
13817
+ else {
13818
+ const offset = this.itemOffsets[this.activeIndex] || 0;
13819
+ this.transform = `translateX(-${offset}px)`;
13820
+ }
13731
13821
  if (skipTransition)
13732
13822
  this.transition = this.noTransition;
13823
+ else
13824
+ this.transition = this.defaultTransition;
13733
13825
  this.cdr.markForCheck();
13734
13826
  }
13735
13827
  /** @nocollapse */ static { this.ɵfac = function DrGalleryComponent_Factory(t) { return new (t || DrGalleryComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
@@ -13738,36 +13830,51 @@ class DrGalleryComponent {
13738
13830
  } if (rf & 2) {
13739
13831
  let _t;
13740
13832
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);
13741
- } }, inputs: { items: "items", itemsCount: "itemsCount" }, standalone: true, features: [i0.ɵɵNgOnChangesFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 8, consts: [["theme", "icon", 1, "dr-gallery-btn", "dr-gallery-btn_left", 3, "icon", "click"], [1, "dr-gallery-caroousel"], [1, "dr-gallery-items"], ["class", "dr-gallery-item", 3, "transition", "ngClass", "style", 4, "ngFor", "ngForOf"], ["theme", "icon", 1, "dr-gallery-btn", "dr-gallery-btn_right", 3, "iconSize", "icon", "click"], [1, "dr-gallery-item", 3, "ngClass"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function DrGalleryComponent_Template(rf, ctx) { if (rf & 1) {
13742
- i0.ɵɵelementStart(0, "dr-button", 0);
13743
- i0.ɵɵlistener("click", function DrGalleryComponent_Template_dr_button_click_0_listener() { return ctx.prev(); });
13744
- i0.ɵɵelementEnd();
13745
- i0.ɵɵelementStart(1, "div", 1)(2, "div", 2);
13746
- i0.ɵɵtemplate(3, DrGalleryComponent_div_3_Template, 2, 11, "div", 3);
13833
+ } }, viewQuery: function DrGalleryComponent_Query(rf, ctx) { if (rf & 1) {
13834
+ i0.ɵɵviewQuery(_c0$1, 5);
13835
+ i0.ɵɵviewQuery(_c1, 5);
13836
+ } if (rf & 2) {
13837
+ let _t;
13838
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerRef = _t.first);
13839
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemElements = _t);
13840
+ } }, inputs: { modeType: "modeType", isOutsideBtns: "isOutsideBtns", items: "items", itemsCount: "itemsCount" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 6, vars: 10, consts: [["class", "dr-gallery-btn dr-gallery-btn_left", "theme", "icon", 3, "icon", "click", 4, "ngIf"], ["carouselContainer", ""], [1, "dr-gallery-items"], ["class", "dr-gallery-item", 3, "transition", "ngClass", "ngStyle", 4, "ngFor", "ngForOf"], ["class", "dr-gallery-btn dr-gallery-btn_right", "theme", "icon", 3, "iconSize", "icon", "click", 4, "ngIf"], ["theme", "icon", 1, "dr-gallery-btn", "dr-gallery-btn_left", 3, "icon", "click"], [1, "dr-gallery-item", 3, "ngClass", "ngStyle"], ["carouselItem", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["theme", "icon", 1, "dr-gallery-btn", "dr-gallery-btn_right", 3, "iconSize", "icon", "click"]], template: function DrGalleryComponent_Template(rf, ctx) { if (rf & 1) {
13841
+ i0.ɵɵtemplate(0, DrGalleryComponent_dr_button_0_Template, 1, 1, "dr-button", 0);
13842
+ i0.ɵɵelementStart(1, "div", null, 1)(3, "div", 2);
13843
+ i0.ɵɵtemplate(4, DrGalleryComponent_div_4_Template, 3, 11, "div", 3);
13747
13844
  i0.ɵɵelementEnd()();
13748
- i0.ɵɵelementStart(4, "dr-button", 4);
13749
- i0.ɵɵlistener("click", function DrGalleryComponent_Template_dr_button_click_4_listener() { return ctx.next(); });
13750
- i0.ɵɵelementEnd();
13845
+ i0.ɵɵtemplate(5, DrGalleryComponent_dr_button_5_Template, 1, 2, "dr-button", 4);
13751
13846
  } if (rf & 2) {
13752
- i0.ɵɵproperty("icon", "dr-icon-arrow-left");
13847
+ i0.ɵɵproperty("ngIf", !ctx.isOutsideBtns);
13848
+ i0.ɵɵadvance(1);
13849
+ i0.ɵɵclassMapInterpolate1("dr-gallery-caroousel dr-gallery-caroousel_", ctx.modeType, "");
13753
13850
  i0.ɵɵadvance(2);
13754
13851
  i0.ɵɵstyleProp("transition", ctx.transition)("transform", ctx.transform);
13755
13852
  i0.ɵɵadvance(1);
13756
13853
  i0.ɵɵproperty("ngForOf", ctx.carouselItems);
13757
13854
  i0.ɵɵadvance(1);
13758
- i0.ɵɵproperty("iconSize", "24px")("icon", "dr-icon-arrow-right");
13759
- } }, dependencies: [CommonModule, i1.NgClass, i1.NgForOf, i1.NgTemplateOutlet, DrInputsModule, DrButtonComponent], styles: [".dr-gallery-caroousel[_ngcontent-%COMP%]{display:block;position:relative;overflow:hidden}.dr-gallery-items[_ngcontent-%COMP%]{display:flex;position:relative;align-items:flex-end;will-change:transform}.dr-gallery-item[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;padding:42px 24px;margin-top:-8px;flex-grow:1;width:100%;min-height:240px}.dr-gallery-item_active[_ngcontent-%COMP%]{transform:scale(1.2)}.dr-gallery-btn[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);z-index:9999;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:50%;box-shadow:0 4px 4px #00000040}.dr-gallery-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:40px!important;height:40px!important}.dr-gallery-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:50%}.dr-gallery-btn_left[_ngcontent-%COMP%]{left:0}.dr-gallery-btn_right[_ngcontent-%COMP%]{right:0}"], changeDetection: 0 }); }
13855
+ i0.ɵɵproperty("ngIf", !ctx.isOutsideBtns);
13856
+ } }, dependencies: [CommonModule, i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, DrInputsModule, DrButtonComponent], styles: [".dr-gallery-caroousel[_ngcontent-%COMP%]{display:block;position:relative;overflow:hidden}.dr-gallery-items[_ngcontent-%COMP%]{display:flex;position:relative;align-items:flex-end;will-change:transform}.dr-gallery-item[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;padding:42px 24px;margin-top:-8px;flex-grow:1}.dr-gallery-btn[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);z-index:9999;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:50%;box-shadow:0 4px 4px #00000040}.dr-gallery-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:40px!important;height:40px!important}.dr-gallery-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:50%}.dr-gallery-btn_left[_ngcontent-%COMP%]{left:0}.dr-gallery-btn_right[_ngcontent-%COMP%]{right:0}.dr-gallery-caroousel_loop[_ngcontent-%COMP%] .dr-gallery-item[_ngcontent-%COMP%]{width:100%;min-height:240px}.dr-gallery-caroousel_loop[_ngcontent-%COMP%] .dr-gallery-item_active[_ngcontent-%COMP%]{transform:scale(1.2)}"], changeDetection: 0 }); }
13760
13857
  }
13761
13858
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrGalleryComponent, [{
13762
13859
  type: Component,
13763
- args: [{ selector: 'dr-gallery', imports: [CommonModule, DrInputsModule], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<dr-button class=\"dr-gallery-btn dr-gallery-btn_left\" (click)=\"prev()\" theme=\"icon\" [icon]=\"'dr-icon-arrow-left'\"> </dr-button>\n<div class=\"dr-gallery-caroousel\">\n <div class=\"dr-gallery-items\" [style.transition]=\"transition\" [style.transform]=\"transform\">\n <div\n *ngFor=\"let item of carouselItems; let i = index\"\n class=\"dr-gallery-item\"\n [style.transition]=\"transition\"\n [ngClass]=\"{ 'dr-gallery-item_active': centerIndex === i }\"\n [style]=\"getStyle()\">\n <ng-container *ngTemplateOutlet=\"template; context: { $implicit: item }\"></ng-container>\n </div>\n </div>\n</div>\n\n<dr-button\n class=\"dr-gallery-btn dr-gallery-btn_right\"\n (click)=\"next()\"\n [iconSize]=\"'24px'\"\n theme=\"icon\"\n [icon]=\"'dr-icon-arrow-right'\"></dr-button>\n", styles: [".dr-gallery-caroousel{display:block;position:relative;overflow:hidden}.dr-gallery-items{display:flex;position:relative;align-items:flex-end;will-change:transform}.dr-gallery-item{box-sizing:border-box;position:relative;padding:42px 24px;margin-top:-8px;flex-grow:1;width:100%;min-height:240px}.dr-gallery-item_active{transform:scale(1.2)}.dr-gallery-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:9999;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:50%;box-shadow:0 4px 4px #00000040}.dr-gallery-btn button{width:40px!important;height:40px!important}.dr-gallery-btn button:hover{border-radius:50%}.dr-gallery-btn_left{left:0}.dr-gallery-btn_right{right:0}\n"] }]
13860
+ args: [{ selector: 'dr-gallery', imports: [CommonModule, DrInputsModule], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<dr-button\n *ngIf=\"!isOutsideBtns\"\n class=\"dr-gallery-btn dr-gallery-btn_left\"\n (click)=\"prev()\"\n theme=\"icon\"\n [icon]=\"'dr-icon-arrow-left'\">\n</dr-button>\n\n<div #carouselContainer class=\"dr-gallery-caroousel dr-gallery-caroousel_{{ modeType }}\">\n <div class=\"dr-gallery-items\" [style.transition]=\"transition\" [style.transform]=\"transform\">\n <div\n #carouselItem\n *ngFor=\"let item of carouselItems; let i = index\"\n class=\"dr-gallery-item\"\n [style.transition]=\"transition\"\n [ngClass]=\"{ 'dr-gallery-item_active': centerIndex === i }\"\n [ngStyle]=\"modeType === 'loop' ? getStyle() : {}\">\n <ng-container *ngTemplateOutlet=\"template; context: { $implicit: item }\"></ng-container>\n </div>\n </div>\n</div>\n\n<dr-button\n *ngIf=\"!isOutsideBtns\"\n class=\"dr-gallery-btn dr-gallery-btn_right\"\n (click)=\"next()\"\n [iconSize]=\"'24px'\"\n theme=\"icon\"\n [icon]=\"'dr-icon-arrow-right'\">\n</dr-button>\n", styles: [".dr-gallery-caroousel{display:block;position:relative;overflow:hidden}.dr-gallery-items{display:flex;position:relative;align-items:flex-end;will-change:transform}.dr-gallery-item{box-sizing:border-box;position:relative;padding:42px 24px;margin-top:-8px;flex-grow:1}.dr-gallery-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:9999;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:50%;box-shadow:0 4px 4px #00000040}.dr-gallery-btn button{width:40px!important;height:40px!important}.dr-gallery-btn button:hover{border-radius:50%}.dr-gallery-btn_left{left:0}.dr-gallery-btn_right{right:0}.dr-gallery-caroousel_loop .dr-gallery-item{width:100%;min-height:240px}.dr-gallery-caroousel_loop .dr-gallery-item_active{transform:scale(1.2)}\n"] }]
13764
13861
  }], function () { return [{ type: i0.ChangeDetectorRef }]; }, { template: [{
13765
13862
  type: ContentChild,
13766
13863
  args: [TemplateRef]
13864
+ }], modeType: [{
13865
+ type: Input
13866
+ }], isOutsideBtns: [{
13867
+ type: Input
13767
13868
  }], items: [{
13768
13869
  type: Input
13769
13870
  }], itemsCount: [{
13770
13871
  type: Input
13872
+ }], containerRef: [{
13873
+ type: ViewChild,
13874
+ args: ['carouselContainer']
13875
+ }], itemElements: [{
13876
+ type: ViewChildren,
13877
+ args: ['carouselItem']
13771
13878
  }] }); })();
13772
13879
 
13773
13880
  /**
@@ -14024,14 +14131,14 @@ class DrawerRef {
14024
14131
  this.id = _ref.id;
14025
14132
  // Emit when opening animation completes
14026
14133
  containerInstance._animationStateChanged
14027
- .pipe(filter((event) => event.phaseName === 'done' && event.toState === 'visible'), take$1(1))
14134
+ .pipe(filter((event) => event.phaseName === 'done' && event.toState === 'visible'), take(1))
14028
14135
  .subscribe(() => {
14029
14136
  this._afterOpened.next();
14030
14137
  this._afterOpened.complete();
14031
14138
  });
14032
14139
  // Dispose overlay when closing animation is complete
14033
14140
  containerInstance._animationStateChanged
14034
- .pipe(filter((event) => event.phaseName === 'done' && event.toState === 'hidden'), take$1(1))
14141
+ .pipe(filter((event) => event.phaseName === 'done' && event.toState === 'hidden'), take(1))
14035
14142
  .subscribe(() => {
14036
14143
  clearTimeout(this._closeFallbackTimeout);
14037
14144
  this._ref.close(this._result);
@@ -14058,7 +14165,7 @@ class DrawerRef {
14058
14165
  if (this.containerInstance && !this._afterDismissed.closed) {
14059
14166
  // Transition the backdrop in parallel to the drawer.
14060
14167
  this.containerInstance._animationStateChanged
14061
- .pipe(filter((event) => event.phaseName === 'start'), take$1(1))
14168
+ .pipe(filter((event) => event.phaseName === 'start'), take(1))
14062
14169
  .subscribe((event) => {
14063
14170
  // The logic that disposes of the overlay depends on the exit animation completing, however
14064
14171
  // it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback