master-control 0.5.11 → 0.5.13

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.
@@ -8746,154 +8746,217 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
8746
8746
  type: Output
8747
8747
  }] } });
8748
8748
 
8749
+ const DEFAULT_COVER_OPTIONS = [
8750
+ { label: '40 L', value: '40 L' },
8751
+ { label: '50 L', value: '50 L' },
8752
+ { label: '60 L', value: '60 L' },
8753
+ { label: '90 L', value: '90 L' },
8754
+ { label: '1 Cr', value: '1 Cr' },
8755
+ { label: '2 Cr', value: '2 Cr' },
8756
+ { label: '3 Cr', value: '3 Cr' }
8757
+ ];
8758
+ const DEFAULT_TERM_OPTIONS = [
8759
+ { label: '30', value: '30' },
8760
+ { label: '35', value: '35' },
8761
+ { label: '40', value: '40' },
8762
+ { label: '45', value: '45' },
8763
+ { label: '50', value: '50' },
8764
+ { label: '55', value: '55' },
8765
+ { label: '60', value: '60' }
8766
+ ];
8767
+ const DEFAULT_PAYMENT_TERM_OPTIONS = [
8768
+ { label: 'Pay till age 60', value: 'pay_till_age_60' },
8769
+ { label: 'Pay till age 55', value: 'pay_till_age_55' },
8770
+ { label: 'Pay till age 50', value: 'pay_till_age_50' }
8771
+ ];
8749
8772
  class LifeCoverDetailsComponent {
8750
8773
  field = input.required();
8774
+ coverDetails = null;
8775
+ termDetails = null;
8776
+ premiumDetails = null;
8751
8777
  textButtonClick = new EventEmitter();
8752
8778
  sliderValueChange = new EventEmitter();
8753
8779
  coverProgress = 3;
8754
8780
  termProgress = 3;
8755
- coverScaleLabels = [];
8756
8781
  coverBadgeValues = [];
8757
8782
  termScaleLabels = [];
8758
- termBadgeValues = [];
8759
8783
  paymentTermOptions = [];
8760
8784
  paymentTermValue = '';
8761
- constructor() {
8762
- effect(() => {
8763
- const configData = this.field()?.configData || {};
8764
- this.coverScaleLabels = this.resolveScaleLabels(configData.coverScaleLabels, [
8765
- '40 L',
8766
- '50 L',
8767
- '60 L',
8768
- '90 L',
8769
- '1 Cr',
8770
- '2 Cr',
8771
- '3 Cr'
8772
- ]);
8773
- this.coverBadgeValues = this.resolveScaleLabels(configData.coverBadgeValues, []);
8774
- this.termScaleLabels = this.resolveScaleLabels(configData.termScaleLabels, [
8775
- '30',
8776
- '35',
8777
- '40',
8778
- '45',
8779
- '50',
8780
- '55',
8781
- '60'
8782
- ]);
8783
- this.termBadgeValues = this.resolveScaleLabels(configData.termBadgeValues, []);
8784
- this.paymentTermOptions = this.resolveSelectOptions(configData.premiumOptions, [
8785
- { label: 'Pay till age 60', value: 'pay_till_age_60' },
8786
- { label: 'Pay till age 55', value: 'pay_till_age_55' },
8787
- { label: 'Pay till age 50', value: 'pay_till_age_50' }
8788
- ]);
8789
- this.coverProgress = this.normalizeValue(configData.coverProgress, this.getSliderMin('cover'), this.getSliderMax('cover'), 3);
8790
- this.termProgress = this.normalizeValue(configData.termProgress, this.getSliderMin('term'), this.getSliderMax('term'), 3);
8791
- this.paymentTermValue = this.resolvePaymentTermValue(configData.premiumValue);
8792
- });
8785
+ coverDetailsState = {};
8786
+ termDetailsState = {};
8787
+ premiumDetailsState = {};
8788
+ ngOnChanges(changes) {
8789
+ if (changes['coverDetails'] || changes['termDetails'] || changes['premiumDetails']) {
8790
+ this.initializeComponentState();
8791
+ }
8793
8792
  }
8794
8793
  onTextButtonClick() {
8795
8794
  this.textButtonClick.emit();
8796
8795
  }
8797
8796
  onCoverSliderChange(value) {
8798
8797
  this.coverProgress = value;
8799
- this.updateConfigData('coverProgress', value);
8800
- this.updateConfigData('coverSelectedLabel', this.getSelectedScaleLabel('cover', value));
8798
+ this.coverDetailsState = {
8799
+ ...this.coverDetailsState,
8800
+ coverProgress: value
8801
+ };
8801
8802
  this.sliderValueChange.emit({
8802
8803
  sliderType: 'cover',
8803
8804
  value,
8804
8805
  selectedLabel: this.getSelectedScaleLabel('cover', value),
8805
- configData: this.field()?.configData
8806
+ displayValue: this.getSelectedDisplayValue('cover', value),
8807
+ field: this.field(),
8808
+ coverDetails: this.coverDetailsState,
8809
+ termDetails: this.termDetailsState,
8810
+ premiumDetails: this.premiumDetailsState
8806
8811
  });
8807
8812
  }
8808
8813
  onTermSliderChange(value) {
8809
8814
  this.termProgress = value;
8810
- this.updateConfigData('termProgress', value);
8811
- this.updateConfigData('termSelectedLabel', this.getSelectedScaleLabel('term', value));
8815
+ const selectedDisplayValue = this.getSelectedDisplayValue('term', value);
8816
+ this.termDetailsState = {
8817
+ ...this.termDetailsState,
8818
+ termProgress: value,
8819
+ termValue: selectedDisplayValue
8820
+ };
8812
8821
  this.sliderValueChange.emit({
8813
8822
  sliderType: 'term',
8814
8823
  value,
8815
8824
  selectedLabel: this.getSelectedScaleLabel('term', value),
8816
- configData: this.field()?.configData
8825
+ displayValue: selectedDisplayValue,
8826
+ field: this.field(),
8827
+ coverDetails: this.coverDetailsState,
8828
+ termDetails: this.termDetailsState,
8829
+ premiumDetails: this.premiumDetailsState
8817
8830
  });
8818
8831
  }
8819
8832
  onPaymentTermChange(value) {
8820
8833
  this.paymentTermValue = value;
8821
- this.updateConfigData('premiumValue', value);
8834
+ this.premiumDetailsState = {
8835
+ ...this.premiumDetailsState,
8836
+ premiumValue: value
8837
+ };
8822
8838
  }
8823
8839
  getSliderMin(type) {
8824
- const labels = type === 'cover' ? this.coverScaleLabels : this.termScaleLabels;
8825
- if (labels.length > 0) {
8840
+ const options = type === 'cover' ? this.coverBadgeValues : this.termScaleLabels;
8841
+ if (options.length > 0) {
8826
8842
  return 0;
8827
8843
  }
8828
- const configData = this.field()?.configData || {};
8829
- return type === 'cover' ? configData.coverMin ?? 0 : configData.termMin ?? 0;
8844
+ return type === 'cover'
8845
+ ? Number(this.coverDetailsState.coverMin ?? 0)
8846
+ : Number(this.termDetailsState.termMin ?? 0);
8830
8847
  }
8831
8848
  getSliderMax(type) {
8832
- const labels = type === 'cover' ? this.coverScaleLabels : this.termScaleLabels;
8833
- if (labels.length > 0) {
8834
- return labels.length - 1;
8849
+ const options = type === 'cover' ? this.coverBadgeValues : this.termScaleLabels;
8850
+ if (options.length > 0) {
8851
+ return options.length - 1;
8835
8852
  }
8836
- const configData = this.field()?.configData || {};
8837
- return type === 'cover' ? configData.coverMax ?? 100 : configData.termMax ?? 100;
8853
+ return type === 'cover'
8854
+ ? Number(this.coverDetailsState.coverMax ?? 100)
8855
+ : Number(this.termDetailsState.termMax ?? 100);
8838
8856
  }
8839
8857
  getSliderStep(type) {
8840
- const labels = type === 'cover' ? this.coverScaleLabels : this.termScaleLabels;
8841
- if (labels.length > 0) {
8858
+ const options = type === 'cover' ? this.coverBadgeValues : this.termScaleLabels;
8859
+ if (options.length > 0) {
8842
8860
  return 1;
8843
8861
  }
8844
- const configData = this.field()?.configData || {};
8845
- return type === 'cover' ? configData.coverStep ?? 1 : configData.termStep ?? 1;
8862
+ return type === 'cover'
8863
+ ? Number(this.coverDetailsState.coverStep ?? 1)
8864
+ : Number(this.termDetailsState.termStep ?? 1);
8846
8865
  }
8847
8866
  getSelectedScaleLabel(type, value) {
8848
- const labels = type === 'cover' ? this.coverScaleLabels : this.termScaleLabels;
8867
+ const options = type === 'cover' ? this.coverBadgeValues : this.termScaleLabels;
8849
8868
  const currentValue = value ?? (type === 'cover' ? this.coverProgress : this.termProgress);
8850
- if (labels.length > 0) {
8851
- return labels[currentValue] || '';
8869
+ if (options.length > 0) {
8870
+ return options[currentValue]?.label || '';
8852
8871
  }
8853
8872
  return '';
8854
8873
  }
8855
8874
  getBadgeValue(type) {
8856
- const configData = this.field()?.configData || {};
8857
- const selectedBadgeValue = this.getSelectedBadgeValue(type);
8875
+ const selectedBadgeValue = this.getSelectedDisplayValue(type);
8858
8876
  if (type === 'cover') {
8859
- return selectedBadgeValue || configData.coverValue || this.getSelectedScaleLabel('cover') || 'INR 25,00,000';
8877
+ return selectedBadgeValue || 'INR 25,00,000';
8860
8878
  }
8861
- return selectedBadgeValue || configData.termValue || this.getSelectedScaleLabel('term') || '20 Years';
8879
+ return selectedBadgeValue || this.termDetailsState.termValue || '20 Years';
8862
8880
  }
8863
8881
  getControlLabel(type) {
8864
- const configData = this.field()?.configData || {};
8865
8882
  if (type === 'cover') {
8866
- return configData.coverLabel || 'Life Cover';
8883
+ return this.coverDetailsState.coverLabel || 'Life Cover';
8867
8884
  }
8868
8885
  if (type === 'term') {
8869
- return configData.termLabel || 'Cover Till Age';
8886
+ return this.termDetailsState.termLabel || 'Cover Till Age';
8870
8887
  }
8871
- return configData.premiumLabel || 'Premium Payment Term';
8888
+ return this.premiumDetailsState.premiumLabel || 'Premium Payment Term';
8872
8889
  }
8873
8890
  getActionLabel() {
8874
8891
  const configData = this.field()?.configData || {};
8875
8892
  return configData.buttonLabel || configData.textButtonLabel || 'Calculate Premium';
8876
8893
  }
8877
8894
  getDecorationLabel() {
8878
- return this.field()?.configData?.coverAccentLabel || '';
8895
+ return this.coverDetailsState.coverAccentLabel || '';
8879
8896
  }
8880
- updateConfigData(key, value) {
8881
- const currentField = this.field();
8882
- if (!currentField) {
8883
- return;
8884
- }
8885
- currentField.configData = currentField.configData || {};
8886
- currentField.configData[key] = value;
8897
+ initializeComponentState() {
8898
+ this.coverDetailsState = {
8899
+ ...(this.coverDetails || {})
8900
+ };
8901
+ this.coverBadgeValues = this.resolveDisplayOptions(this.coverDetailsState.coverBadgeValues, DEFAULT_COVER_OPTIONS);
8902
+ this.coverProgress = this.normalizeValue(this.coverDetailsState.coverProgress, this.getSliderMin('cover'), this.getSliderMax('cover'), 3);
8903
+ this.coverDetailsState = {
8904
+ ...this.coverDetailsState,
8905
+ coverProgress: this.coverProgress
8906
+ };
8907
+ this.termDetailsState = {
8908
+ ...(this.termDetails || {})
8909
+ };
8910
+ this.termScaleLabels = this.resolveDisplayOptions(this.termDetailsState.termScaleLabels, DEFAULT_TERM_OPTIONS);
8911
+ this.termProgress = this.normalizeValue(this.termDetailsState.termProgress, this.getSliderMin('term'), this.getSliderMax('term'), 3);
8912
+ this.termDetailsState = {
8913
+ ...this.termDetailsState,
8914
+ termProgress: this.termProgress,
8915
+ termValue: this.getSelectedDisplayValue('term', this.termProgress) || this.termDetailsState.termValue
8916
+ };
8917
+ this.premiumDetailsState = {
8918
+ ...(this.premiumDetails || {})
8919
+ };
8920
+ this.paymentTermOptions = this.resolveSelectOptions(this.premiumDetailsState.premiumOptions, DEFAULT_PAYMENT_TERM_OPTIONS);
8921
+ this.paymentTermValue = this.resolvePaymentTermValue(this.premiumDetailsState.premiumValue);
8922
+ this.premiumDetailsState = {
8923
+ ...this.premiumDetailsState,
8924
+ premiumValue: this.paymentTermValue
8925
+ };
8887
8926
  }
8888
- resolveScaleLabels(value, fallback) {
8927
+ resolveDisplayOptions(value, fallback) {
8889
8928
  if (!Array.isArray(value)) {
8890
- return fallback;
8929
+ return fallback.map((option) => ({ ...option }));
8891
8930
  }
8892
- return value.map((item) => `${item ?? ''}`.trim()).filter(Boolean);
8931
+ const options = value
8932
+ .map((item) => {
8933
+ if (typeof item === 'string') {
8934
+ const resolvedValue = item.trim();
8935
+ if (resolvedValue) {
8936
+ return {
8937
+ label: resolvedValue,
8938
+ value: resolvedValue
8939
+ };
8940
+ }
8941
+ }
8942
+ if (item && typeof item === 'object') {
8943
+ const label = `${item.label ?? ''}`.trim();
8944
+ const resolvedValue = `${item.value ?? label}`.trim();
8945
+ if (label || resolvedValue) {
8946
+ return {
8947
+ label: label || resolvedValue,
8948
+ value: resolvedValue || label
8949
+ };
8950
+ }
8951
+ }
8952
+ return null;
8953
+ })
8954
+ .filter((option) => option !== null);
8955
+ return options.length > 0 ? options : fallback.map((option) => ({ ...option }));
8893
8956
  }
8894
8957
  resolveSelectOptions(value, fallback) {
8895
8958
  if (!Array.isArray(value)) {
8896
- return fallback;
8959
+ return fallback.map((option) => ({ ...option }));
8897
8960
  }
8898
8961
  const options = value
8899
8962
  .map((option) => {
@@ -8916,7 +8979,7 @@ class LifeCoverDetailsComponent {
8916
8979
  return null;
8917
8980
  })
8918
8981
  .filter((option) => option !== null);
8919
- return options.length > 0 ? options : fallback;
8982
+ return options.length > 0 ? options : fallback.map((option) => ({ ...option }));
8920
8983
  }
8921
8984
  resolvePaymentTermValue(value) {
8922
8985
  const stringValue = `${value ?? ''}`.trim();
@@ -8931,37 +8994,328 @@ class LifeCoverDetailsComponent {
8931
8994
  }
8932
8995
  return this.paymentTermOptions[0]?.value || '';
8933
8996
  }
8934
- getSelectedBadgeValue(type) {
8935
- const badges = type === 'cover' ? this.coverBadgeValues : this.termBadgeValues;
8936
- const currentValue = type === 'cover' ? this.coverProgress : this.termProgress;
8937
- if (badges.length > 0) {
8938
- return badges[currentValue] || '';
8997
+ getSelectedDisplayValue(type, value) {
8998
+ const options = type === 'cover' ? this.coverBadgeValues : this.termScaleLabels;
8999
+ const currentValue = value ?? (type === 'cover' ? this.coverProgress : this.termProgress);
9000
+ if (options.length > 0) {
9001
+ return options[currentValue]?.value || options[currentValue]?.label || '';
8939
9002
  }
8940
- return '';
9003
+ return this.getSelectedScaleLabel(type, currentValue);
8941
9004
  }
8942
9005
  normalizeValue(value, min, max, fallback) {
8943
9006
  const numericValue = Number(value);
8944
9007
  if (Number.isNaN(numericValue)) {
8945
- return fallback;
9008
+ return Math.min(Math.max(fallback, min), max);
8946
9009
  }
8947
9010
  return Math.min(Math.max(numericValue, min), max);
8948
9011
  }
8949
9012
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8950
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: LifeCoverDetailsComponent, isStandalone: true, selector: "lib-life-cover-details", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { textButtonClick: "textButtonClick", sliderValueChange: "sliderValueChange" }, ngImport: i0, template: "<div class=\"life-cover-container\" *ngIf=\"field()?.isVisible\">\n <div class=\"life-cover-card\">\n <div class=\"control-block slider-block\">\n <div class=\"label-row label-row--top\">\n <span class=\"control-label control-label--large\">{{ getControlLabel('cover') }}</span>\n <div class=\"value-badge-wrap\">\n <!-- <span class=\"accent-badge\" *ngIf=\"getDecorationLabel()\">{{ getDecorationLabel() }}</span> -->\n <span class=\"value-badge\">{{ getBadgeValue('cover') }}</span>\n </div>\n </div>\n <mat-slider class=\"life-slider\"\n [min]=\"getSliderMin('cover')\"\n [max]=\"getSliderMax('cover')\"\n [step]=\"getSliderStep('cover')\"\n [discrete]=\"false\"\n [showTickMarks]=\"false\">\n <input matSliderThumb [(ngModel)]=\"coverProgress\" (valueChange)=\"onCoverSliderChange($event)\" />\n </mat-slider>\n <div class=\"scale-row\" *ngIf=\"coverScaleLabels.length; else coverHintRow\">\n <span\n class=\"scale-label\"\n *ngFor=\"let label of coverScaleLabels; let index = index\"\n [class.is-active]=\"index === coverProgress\">\n {{ label }}\n </span>\n </div>\n <ng-template #coverHintRow>\n <div class=\"hint-row\">\n <span>{{ field()?.configData?.coverMinHint || 'INR 1,00,000' }}</span>\n <span>{{ field()?.configData?.coverMaxHint || 'INR 1,00,00,000' }}</span>\n </div>\n </ng-template>\n </div>\n\n <div class=\"row-divider row-divider--dashed\"></div>\n\n <div class=\"control-block slider-block\">\n <div class=\"label-row\">\n <span class=\"control-label control-label--large\">{{ getControlLabel('term') }}</span>\n <span class=\"value-badge value-badge--compact\">{{ getBadgeValue('term') }}</span>\n </div>\n <mat-slider class=\"life-slider\"\n [min]=\"getSliderMin('term')\"\n [max]=\"getSliderMax('term')\"\n [step]=\"getSliderStep('term')\"\n [discrete]=\"false\"\n [showTickMarks]=\"false\">\n <input matSliderThumb [(ngModel)]=\"termProgress\" (valueChange)=\"onTermSliderChange($event)\" />\n </mat-slider>\n <div class=\"scale-row\" *ngIf=\"termScaleLabels.length; else termHintRow\">\n <span\n class=\"scale-label\"\n *ngFor=\"let label of termScaleLabels; let index = index\"\n [class.is-active]=\"index === termProgress\">\n {{ label }}\n </span>\n </div>\n <ng-template #termHintRow>\n <div class=\"hint-row\">\n <span>{{ field()?.configData?.termMinHint || '5 Years' }}</span>\n <span>{{ field()?.configData?.termMaxHint || '40 Years' }}</span>\n </div>\n </ng-template>\n </div>\n\n <div class=\"row-divider row-divider--dashed\"></div>\n\n <div class=\"control-block input-block\">\n <div class=\"label-row\">\n <span class=\"control-label\">{{ getControlLabel('premium') }}</span>\n </div>\n <div class=\"select-shell\">\n <select class=\"select-input\" [(ngModel)]=\"paymentTermValue\" (ngModelChange)=\"onPaymentTermChange($event)\">\n <option *ngFor=\"let option of paymentTermOptions\" [ngValue]=\"option.value\">\n {{ option.label }}\n </option>\n </select>\n <span class=\"select-chevron\" aria-hidden=\"true\"></span>\n </div>\n </div>\n </div>\n\n <div class=\"button-row\">\n <button type=\"button\" class=\"primary-button\" (click)=\"onTextButtonClick()\">\n {{ getActionLabel() }}\n </button>\n </div>\n</div>\n", styles: [".life-cover-container{width:min(540px,100%);border:1px solid #dbe4ef;border-radius:28px;background:linear-gradient(180deg,#f7fbff,#fff);box-shadow:0 18px 40px #22365414;overflow:hidden}.life-cover-card{padding:28px 28px 20px}.control-block{display:flex;flex-direction:column;gap:16px}.slider-block{min-height:132px}.input-block{gap:12px}.label-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.label-row--top{align-items:flex-start}.control-label{color:#2b3138;font-family:Mulish,sans-serif!important;font-size:16px;font-weight:800;line-height:1.3}.control-label--large{font-size:24px;font-weight:800;line-height:1.2}.value-badge-wrap{position:relative;display:inline-flex;align-items:flex-start;justify-content:flex-end;padding-top:6px}.accent-badge{position:absolute;top:-16px;left:16px;width:34px;height:34px;border:3px solid #30343b;border-radius:50%;background:linear-gradient(180deg,#ff6b2e,#ff4f1d);box-shadow:0 8px 14px #0003;color:#fff;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:28px;text-align:center}.value-badge{min-width:106px;height:46px;padding:0 18px;border:2px solid #d7d7d7;border-radius:10px;background:#fff;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:20px;font-weight:700;line-height:42px;text-align:center}.value-badge--compact{min-width:74px}.life-slider{width:100%;margin:0;--mdc-slider-active-track-color: #ffb400;--mdc-slider-inactive-track-color: #eef2f7;--mdc-slider-active-track-height: 10px;--mdc-slider-inactive-track-height: 10px;--mdc-slider-active-track-shape: 999px;--mdc-slider-inactive-track-shape: 999px;--mdc-slider-handle-color: #ffb400;--mdc-slider-focus-handle-color: #ffb400;--mdc-slider-hover-handle-color: #ffb400;--mat-mdc-slider-ripple-color: rgba(255, 180, 0, .22)}::ng-deep .life-slider .mdc-slider{padding:0}::ng-deep .life-slider .mdc-slider__track{height:10px}::ng-deep .life-slider .mdc-slider__track--active_fill{border-color:#ffb400!important}::ng-deep .life-slider .mdc-slider__track--inactive{background-color:#eef2f7!important}::ng-deep .life-slider .mdc-slider__thumb-knob{width:18px!important;height:18px!important;border:6px solid #ffb400!important;background-color:#fff!important;box-sizing:border-box}::ng-deep .life-slider .mdc-slider__thumb:before,::ng-deep .life-slider .mdc-slider__thumb:after{background-color:#ffb40029!important}.scale-row,.hint-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:center;gap:8px}.scale-label,.hint-row span{color:#8b929b;font-family:Mulish,sans-serif!important;font-size:13px;font-weight:600;line-height:1.4}.scale-label{text-align:center}.scale-label:first-child{text-align:left}.scale-label:last-child{text-align:right}.scale-label.is-active{color:#444;font-weight:800}.hint-row span:last-child{text-align:right}.row-divider{margin:16px 0 28px}.row-divider--dashed{border-top:2px dashed #d8dfe7}.select-shell{position:relative}.select-input{width:100%;height:60px;padding:0 56px 0 22px;border:2px solid #d7d7d7;border-radius:18px;background:#fff;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:600;line-height:1.2;appearance:none;outline:none}.select-input:focus{border-color:#ffb400;box-shadow:0 0 0 3px #ffb40024}.select-chevron{position:absolute;top:50%;right:24px;width:12px;height:12px;border-right:4px solid #2f3136;border-bottom:4px solid #2f3136;transform:translateY(-60%) rotate(45deg);pointer-events:none}.button-row{padding:22px 28px 28px;border-top:1px solid #dbe4ef;background:#fff}.primary-button{width:100%;height:58px;border:0;border-radius:18px;background:linear-gradient(90deg,#ffb400,#ffc11b);color:#1f2125;font-family:Mulish,sans-serif!important;font-size:20px;font-weight:800;line-height:1.2;box-shadow:0 10px 24px #ffb4003d}.primary-button:hover{background:linear-gradient(90deg,#ffb000,#ffbe0e)}@media (max-width: 576px){.life-cover-card{padding:22px 20px 18px}.control-label--large{font-size:18px}.value-badge{min-width:84px;height:42px;padding:0 14px;font-size:17px;line-height:38px}.scale-label,.hint-row span{font-size:12px}.select-input{height:54px;font-size:16px}.button-row{padding:18px 20px 22px}.primary-button{height:54px;font-size:18px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4.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: i4.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatSliderModule }, { kind: "component", type: i3$1.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i3$1.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }] });
9013
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: LifeCoverDetailsComponent, isStandalone: true, selector: "lib-life-cover-details", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, coverDetails: { classPropertyName: "coverDetails", publicName: "coverDetails", isSignal: false, isRequired: false, transformFunction: null }, termDetails: { classPropertyName: "termDetails", publicName: "termDetails", isSignal: false, isRequired: false, transformFunction: null }, premiumDetails: { classPropertyName: "premiumDetails", publicName: "premiumDetails", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { textButtonClick: "textButtonClick", sliderValueChange: "sliderValueChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"life-cover-container\" *ngIf=\"field()?.isVisible\">\n <div class=\"life-cover-card\">\n <div class=\"control-block slider-block\">\n <div class=\"label-row label-row--top\">\n <span class=\"control-label control-label--large\">{{ getControlLabel('cover') }}</span>\n <div class=\"value-badge-wrap\">\n <!-- <span class=\"accent-badge\" *ngIf=\"getDecorationLabel()\">{{ getDecorationLabel() }}</span> -->\n <span class=\"value-badge\">{{ getBadgeValue('cover') }}</span>\n </div>\n </div>\n <mat-slider class=\"life-slider\"\n [min]=\"getSliderMin('cover')\"\n [max]=\"getSliderMax('cover')\"\n [step]=\"getSliderStep('cover')\"\n [discrete]=\"false\"\n [showTickMarks]=\"false\">\n <input matSliderThumb [(ngModel)]=\"coverProgress\" (valueChange)=\"onCoverSliderChange($event)\" />\n </mat-slider>\n <div class=\"scale-row\" *ngIf=\"coverBadgeValues.length; else coverHintRow\">\n <span\n class=\"scale-label\"\n *ngFor=\"let option of coverBadgeValues; let index = index\"\n [class.is-active]=\"index === coverProgress\">\n {{ option.label }}\n </span>\n </div>\n <ng-template #coverHintRow>\n <div class=\"hint-row\">\n <span>{{ coverDetailsState.coverMinHint || 'INR 1,00,000' }}</span>\n <span>{{ coverDetailsState.coverMaxHint || 'INR 1,00,00,000' }}</span>\n </div>\n </ng-template>\n </div>\n\n <div class=\"row-divider row-divider--dashed\"></div>\n\n <div class=\"control-block slider-block\">\n <div class=\"label-row\">\n <span class=\"control-label control-label--large\">{{ getControlLabel('term') }}</span>\n <span class=\"value-badge value-badge--compact\">{{ getBadgeValue('term') }}</span>\n </div>\n <mat-slider class=\"life-slider\"\n [min]=\"getSliderMin('term')\"\n [max]=\"getSliderMax('term')\"\n [step]=\"getSliderStep('term')\"\n [discrete]=\"false\"\n [showTickMarks]=\"false\">\n <input matSliderThumb [(ngModel)]=\"termProgress\" (valueChange)=\"onTermSliderChange($event)\" />\n </mat-slider>\n <div class=\"scale-row\" *ngIf=\"termScaleLabels.length; else termHintRow\">\n <span\n class=\"scale-label\"\n *ngFor=\"let option of termScaleLabels; let index = index\"\n [class.is-active]=\"index === termProgress\">\n {{ option.label }}\n </span>\n </div>\n <ng-template #termHintRow>\n <div class=\"hint-row\">\n <span>{{ termDetailsState.termMinHint || '5 Years' }}</span>\n <span>{{ termDetailsState.termMaxHint || '40 Years' }}</span>\n </div>\n </ng-template>\n </div>\n\n <div class=\"row-divider row-divider--dashed\"></div>\n\n <div class=\"control-block input-block\">\n <div class=\"label-row\">\n <span class=\"control-label\">{{ getControlLabel('premium') }}</span>\n </div>\n <div class=\"select-shell\">\n <select class=\"select-input\" [(ngModel)]=\"paymentTermValue\" (ngModelChange)=\"onPaymentTermChange($event)\">\n <option *ngFor=\"let option of paymentTermOptions\" [ngValue]=\"option.value\">\n {{ option.label }}\n </option>\n </select>\n <span class=\"select-chevron\" aria-hidden=\"true\"></span>\n </div>\n </div>\n </div>\n\n <div class=\"button-row\">\n <button type=\"button\" class=\"primary-button\" (click)=\"onTextButtonClick()\">\n {{ getActionLabel() }}\n </button>\n </div>\n</div>\n", styles: [".life-cover-container{width:min(540px,100%);border:1px solid #dbe4ef;border-radius:28px;background:linear-gradient(180deg,#e5f0fa80 50%,#fff);box-shadow:0 18px 40px #22365414;overflow:hidden}.life-cover-card{padding:28px 28px 20px}.control-block{display:flex;flex-direction:column;gap:16px}.slider-block{min-height:132px}.input-block{gap:12px}.label-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.label-row--top{align-items:flex-start}.control-label{color:#2b3138;font-family:Mulish,sans-serif!important;font-size:16px;font-weight:800;line-height:1.3}.control-label--large{font-size:24px;font-weight:800;line-height:1.2}.value-badge-wrap{position:relative;display:inline-flex;align-items:flex-start;justify-content:flex-end;padding-top:6px}.accent-badge{position:absolute;top:-16px;left:16px;width:34px;height:34px;border:3px solid #30343b;border-radius:50%;background:linear-gradient(180deg,#ff6b2e,#ff4f1d);box-shadow:0 8px 14px #0003;color:#fff;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:28px;text-align:center}.value-badge{min-width:106px;height:46px;padding:0 18px;border:2px solid #d7d7d7;border-radius:10px;background:#fff;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:20px;font-weight:700;line-height:42px;text-align:center}.value-badge--compact{min-width:74px}.life-slider{width:100%;margin:0;--mdc-slider-active-track-color: #ffb400;--mdc-slider-inactive-track-color: #eef2f7;--mdc-slider-active-track-height: 10px;--mdc-slider-inactive-track-height: 10px;--mdc-slider-active-track-shape: 999px;--mdc-slider-inactive-track-shape: 999px;--mdc-slider-handle-color: #ffb400;--mdc-slider-focus-handle-color: #ffb400;--mdc-slider-hover-handle-color: #ffb400;--mat-mdc-slider-ripple-color: rgba(255, 180, 0, .22)}::ng-deep .life-slider .mdc-slider{padding:0}::ng-deep .life-slider .mdc-slider__track{height:10px}::ng-deep .life-slider .mdc-slider__track--active_fill{border-color:#ffb400!important}::ng-deep .life-slider .mdc-slider__track--inactive{background-color:#eef2f7!important}::ng-deep .life-slider .mdc-slider__thumb-knob{width:18px!important;height:18px!important;border:6px solid #ffb400!important;background-color:#fff!important;box-sizing:border-box}::ng-deep .life-slider .mdc-slider__thumb:before,::ng-deep .life-slider .mdc-slider__thumb:after{background-color:#ffb40029!important}.scale-row,.hint-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:center;gap:8px}.scale-label,.hint-row span{color:#8b929b;font-family:Mulish,sans-serif!important;font-size:13px;font-weight:600;line-height:1.4}.scale-label{text-align:center}.scale-label:first-child{text-align:left}.scale-label:last-child{text-align:right}.scale-label.is-active{color:#444;font-weight:800}.hint-row span:last-child{text-align:right}.row-divider{margin:16px 0 28px}.row-divider--dashed{border-top:2px dashed #d8dfe7}.select-shell{position:relative}.select-input{width:100%;height:60px;padding:0 56px 0 22px;border:2px solid #d7d7d7;border-radius:18px;background:#fff;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:600;line-height:1.2;appearance:none;outline:none}.select-input:focus{border-color:#ffb400;box-shadow:0 0 0 3px #ffb40024}.select-chevron{position:absolute;top:50%;right:24px;width:12px;height:12px;border-right:4px solid #2f3136;border-bottom:4px solid #2f3136;transform:translateY(-60%) rotate(45deg);pointer-events:none}.button-row{padding:22px 28px 28px;border-top:1px solid #dbe4ef;background:#fff}.primary-button{width:100%;height:58px;border:0;border-radius:18px;background:linear-gradient(90deg,#ffb400,#ffc11b);color:#1f2125;font-family:Mulish,sans-serif!important;font-size:20px;font-weight:800;line-height:1.2;box-shadow:0 10px 24px #ffb4003d}.primary-button:hover{background:linear-gradient(90deg,#ffb000,#ffbe0e)}@media (max-width: 576px){.life-cover-card{padding:22px 20px 18px}.control-label--large{font-size:18px}.value-badge{min-width:84px;height:42px;padding:0 14px;font-size:17px;line-height:38px}.scale-label,.hint-row span{font-size:12px}.select-input{height:54px;font-size:16px}.button-row{padding:18px 20px 22px}.primary-button{height:54px;font-size:18px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4.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: i4.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatSliderModule }, { kind: "component", type: i3$1.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i3$1.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }] });
8951
9014
  }
8952
9015
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsComponent, decorators: [{
8953
9016
  type: Component,
8954
- args: [{ selector: 'lib-life-cover-details', standalone: true, imports: [CommonModule, FormsModule, MatSliderModule], template: "<div class=\"life-cover-container\" *ngIf=\"field()?.isVisible\">\n <div class=\"life-cover-card\">\n <div class=\"control-block slider-block\">\n <div class=\"label-row label-row--top\">\n <span class=\"control-label control-label--large\">{{ getControlLabel('cover') }}</span>\n <div class=\"value-badge-wrap\">\n <!-- <span class=\"accent-badge\" *ngIf=\"getDecorationLabel()\">{{ getDecorationLabel() }}</span> -->\n <span class=\"value-badge\">{{ getBadgeValue('cover') }}</span>\n </div>\n </div>\n <mat-slider class=\"life-slider\"\n [min]=\"getSliderMin('cover')\"\n [max]=\"getSliderMax('cover')\"\n [step]=\"getSliderStep('cover')\"\n [discrete]=\"false\"\n [showTickMarks]=\"false\">\n <input matSliderThumb [(ngModel)]=\"coverProgress\" (valueChange)=\"onCoverSliderChange($event)\" />\n </mat-slider>\n <div class=\"scale-row\" *ngIf=\"coverScaleLabels.length; else coverHintRow\">\n <span\n class=\"scale-label\"\n *ngFor=\"let label of coverScaleLabels; let index = index\"\n [class.is-active]=\"index === coverProgress\">\n {{ label }}\n </span>\n </div>\n <ng-template #coverHintRow>\n <div class=\"hint-row\">\n <span>{{ field()?.configData?.coverMinHint || 'INR 1,00,000' }}</span>\n <span>{{ field()?.configData?.coverMaxHint || 'INR 1,00,00,000' }}</span>\n </div>\n </ng-template>\n </div>\n\n <div class=\"row-divider row-divider--dashed\"></div>\n\n <div class=\"control-block slider-block\">\n <div class=\"label-row\">\n <span class=\"control-label control-label--large\">{{ getControlLabel('term') }}</span>\n <span class=\"value-badge value-badge--compact\">{{ getBadgeValue('term') }}</span>\n </div>\n <mat-slider class=\"life-slider\"\n [min]=\"getSliderMin('term')\"\n [max]=\"getSliderMax('term')\"\n [step]=\"getSliderStep('term')\"\n [discrete]=\"false\"\n [showTickMarks]=\"false\">\n <input matSliderThumb [(ngModel)]=\"termProgress\" (valueChange)=\"onTermSliderChange($event)\" />\n </mat-slider>\n <div class=\"scale-row\" *ngIf=\"termScaleLabels.length; else termHintRow\">\n <span\n class=\"scale-label\"\n *ngFor=\"let label of termScaleLabels; let index = index\"\n [class.is-active]=\"index === termProgress\">\n {{ label }}\n </span>\n </div>\n <ng-template #termHintRow>\n <div class=\"hint-row\">\n <span>{{ field()?.configData?.termMinHint || '5 Years' }}</span>\n <span>{{ field()?.configData?.termMaxHint || '40 Years' }}</span>\n </div>\n </ng-template>\n </div>\n\n <div class=\"row-divider row-divider--dashed\"></div>\n\n <div class=\"control-block input-block\">\n <div class=\"label-row\">\n <span class=\"control-label\">{{ getControlLabel('premium') }}</span>\n </div>\n <div class=\"select-shell\">\n <select class=\"select-input\" [(ngModel)]=\"paymentTermValue\" (ngModelChange)=\"onPaymentTermChange($event)\">\n <option *ngFor=\"let option of paymentTermOptions\" [ngValue]=\"option.value\">\n {{ option.label }}\n </option>\n </select>\n <span class=\"select-chevron\" aria-hidden=\"true\"></span>\n </div>\n </div>\n </div>\n\n <div class=\"button-row\">\n <button type=\"button\" class=\"primary-button\" (click)=\"onTextButtonClick()\">\n {{ getActionLabel() }}\n </button>\n </div>\n</div>\n", styles: [".life-cover-container{width:min(540px,100%);border:1px solid #dbe4ef;border-radius:28px;background:linear-gradient(180deg,#f7fbff,#fff);box-shadow:0 18px 40px #22365414;overflow:hidden}.life-cover-card{padding:28px 28px 20px}.control-block{display:flex;flex-direction:column;gap:16px}.slider-block{min-height:132px}.input-block{gap:12px}.label-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.label-row--top{align-items:flex-start}.control-label{color:#2b3138;font-family:Mulish,sans-serif!important;font-size:16px;font-weight:800;line-height:1.3}.control-label--large{font-size:24px;font-weight:800;line-height:1.2}.value-badge-wrap{position:relative;display:inline-flex;align-items:flex-start;justify-content:flex-end;padding-top:6px}.accent-badge{position:absolute;top:-16px;left:16px;width:34px;height:34px;border:3px solid #30343b;border-radius:50%;background:linear-gradient(180deg,#ff6b2e,#ff4f1d);box-shadow:0 8px 14px #0003;color:#fff;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:28px;text-align:center}.value-badge{min-width:106px;height:46px;padding:0 18px;border:2px solid #d7d7d7;border-radius:10px;background:#fff;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:20px;font-weight:700;line-height:42px;text-align:center}.value-badge--compact{min-width:74px}.life-slider{width:100%;margin:0;--mdc-slider-active-track-color: #ffb400;--mdc-slider-inactive-track-color: #eef2f7;--mdc-slider-active-track-height: 10px;--mdc-slider-inactive-track-height: 10px;--mdc-slider-active-track-shape: 999px;--mdc-slider-inactive-track-shape: 999px;--mdc-slider-handle-color: #ffb400;--mdc-slider-focus-handle-color: #ffb400;--mdc-slider-hover-handle-color: #ffb400;--mat-mdc-slider-ripple-color: rgba(255, 180, 0, .22)}::ng-deep .life-slider .mdc-slider{padding:0}::ng-deep .life-slider .mdc-slider__track{height:10px}::ng-deep .life-slider .mdc-slider__track--active_fill{border-color:#ffb400!important}::ng-deep .life-slider .mdc-slider__track--inactive{background-color:#eef2f7!important}::ng-deep .life-slider .mdc-slider__thumb-knob{width:18px!important;height:18px!important;border:6px solid #ffb400!important;background-color:#fff!important;box-sizing:border-box}::ng-deep .life-slider .mdc-slider__thumb:before,::ng-deep .life-slider .mdc-slider__thumb:after{background-color:#ffb40029!important}.scale-row,.hint-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:center;gap:8px}.scale-label,.hint-row span{color:#8b929b;font-family:Mulish,sans-serif!important;font-size:13px;font-weight:600;line-height:1.4}.scale-label{text-align:center}.scale-label:first-child{text-align:left}.scale-label:last-child{text-align:right}.scale-label.is-active{color:#444;font-weight:800}.hint-row span:last-child{text-align:right}.row-divider{margin:16px 0 28px}.row-divider--dashed{border-top:2px dashed #d8dfe7}.select-shell{position:relative}.select-input{width:100%;height:60px;padding:0 56px 0 22px;border:2px solid #d7d7d7;border-radius:18px;background:#fff;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:600;line-height:1.2;appearance:none;outline:none}.select-input:focus{border-color:#ffb400;box-shadow:0 0 0 3px #ffb40024}.select-chevron{position:absolute;top:50%;right:24px;width:12px;height:12px;border-right:4px solid #2f3136;border-bottom:4px solid #2f3136;transform:translateY(-60%) rotate(45deg);pointer-events:none}.button-row{padding:22px 28px 28px;border-top:1px solid #dbe4ef;background:#fff}.primary-button{width:100%;height:58px;border:0;border-radius:18px;background:linear-gradient(90deg,#ffb400,#ffc11b);color:#1f2125;font-family:Mulish,sans-serif!important;font-size:20px;font-weight:800;line-height:1.2;box-shadow:0 10px 24px #ffb4003d}.primary-button:hover{background:linear-gradient(90deg,#ffb000,#ffbe0e)}@media (max-width: 576px){.life-cover-card{padding:22px 20px 18px}.control-label--large{font-size:18px}.value-badge{min-width:84px;height:42px;padding:0 14px;font-size:17px;line-height:38px}.scale-label,.hint-row span{font-size:12px}.select-input{height:54px;font-size:16px}.button-row{padding:18px 20px 22px}.primary-button{height:54px;font-size:18px}}\n"] }]
8955
- }], ctorParameters: () => [], propDecorators: { textButtonClick: [{
9017
+ args: [{ selector: 'lib-life-cover-details', standalone: true, imports: [CommonModule, FormsModule, MatSliderModule], template: "<div class=\"life-cover-container\" *ngIf=\"field()?.isVisible\">\n <div class=\"life-cover-card\">\n <div class=\"control-block slider-block\">\n <div class=\"label-row label-row--top\">\n <span class=\"control-label control-label--large\">{{ getControlLabel('cover') }}</span>\n <div class=\"value-badge-wrap\">\n <!-- <span class=\"accent-badge\" *ngIf=\"getDecorationLabel()\">{{ getDecorationLabel() }}</span> -->\n <span class=\"value-badge\">{{ getBadgeValue('cover') }}</span>\n </div>\n </div>\n <mat-slider class=\"life-slider\"\n [min]=\"getSliderMin('cover')\"\n [max]=\"getSliderMax('cover')\"\n [step]=\"getSliderStep('cover')\"\n [discrete]=\"false\"\n [showTickMarks]=\"false\">\n <input matSliderThumb [(ngModel)]=\"coverProgress\" (valueChange)=\"onCoverSliderChange($event)\" />\n </mat-slider>\n <div class=\"scale-row\" *ngIf=\"coverBadgeValues.length; else coverHintRow\">\n <span\n class=\"scale-label\"\n *ngFor=\"let option of coverBadgeValues; let index = index\"\n [class.is-active]=\"index === coverProgress\">\n {{ option.label }}\n </span>\n </div>\n <ng-template #coverHintRow>\n <div class=\"hint-row\">\n <span>{{ coverDetailsState.coverMinHint || 'INR 1,00,000' }}</span>\n <span>{{ coverDetailsState.coverMaxHint || 'INR 1,00,00,000' }}</span>\n </div>\n </ng-template>\n </div>\n\n <div class=\"row-divider row-divider--dashed\"></div>\n\n <div class=\"control-block slider-block\">\n <div class=\"label-row\">\n <span class=\"control-label control-label--large\">{{ getControlLabel('term') }}</span>\n <span class=\"value-badge value-badge--compact\">{{ getBadgeValue('term') }}</span>\n </div>\n <mat-slider class=\"life-slider\"\n [min]=\"getSliderMin('term')\"\n [max]=\"getSliderMax('term')\"\n [step]=\"getSliderStep('term')\"\n [discrete]=\"false\"\n [showTickMarks]=\"false\">\n <input matSliderThumb [(ngModel)]=\"termProgress\" (valueChange)=\"onTermSliderChange($event)\" />\n </mat-slider>\n <div class=\"scale-row\" *ngIf=\"termScaleLabels.length; else termHintRow\">\n <span\n class=\"scale-label\"\n *ngFor=\"let option of termScaleLabels; let index = index\"\n [class.is-active]=\"index === termProgress\">\n {{ option.label }}\n </span>\n </div>\n <ng-template #termHintRow>\n <div class=\"hint-row\">\n <span>{{ termDetailsState.termMinHint || '5 Years' }}</span>\n <span>{{ termDetailsState.termMaxHint || '40 Years' }}</span>\n </div>\n </ng-template>\n </div>\n\n <div class=\"row-divider row-divider--dashed\"></div>\n\n <div class=\"control-block input-block\">\n <div class=\"label-row\">\n <span class=\"control-label\">{{ getControlLabel('premium') }}</span>\n </div>\n <div class=\"select-shell\">\n <select class=\"select-input\" [(ngModel)]=\"paymentTermValue\" (ngModelChange)=\"onPaymentTermChange($event)\">\n <option *ngFor=\"let option of paymentTermOptions\" [ngValue]=\"option.value\">\n {{ option.label }}\n </option>\n </select>\n <span class=\"select-chevron\" aria-hidden=\"true\"></span>\n </div>\n </div>\n </div>\n\n <div class=\"button-row\">\n <button type=\"button\" class=\"primary-button\" (click)=\"onTextButtonClick()\">\n {{ getActionLabel() }}\n </button>\n </div>\n</div>\n", styles: [".life-cover-container{width:min(540px,100%);border:1px solid #dbe4ef;border-radius:28px;background:linear-gradient(180deg,#e5f0fa80 50%,#fff);box-shadow:0 18px 40px #22365414;overflow:hidden}.life-cover-card{padding:28px 28px 20px}.control-block{display:flex;flex-direction:column;gap:16px}.slider-block{min-height:132px}.input-block{gap:12px}.label-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.label-row--top{align-items:flex-start}.control-label{color:#2b3138;font-family:Mulish,sans-serif!important;font-size:16px;font-weight:800;line-height:1.3}.control-label--large{font-size:24px;font-weight:800;line-height:1.2}.value-badge-wrap{position:relative;display:inline-flex;align-items:flex-start;justify-content:flex-end;padding-top:6px}.accent-badge{position:absolute;top:-16px;left:16px;width:34px;height:34px;border:3px solid #30343b;border-radius:50%;background:linear-gradient(180deg,#ff6b2e,#ff4f1d);box-shadow:0 8px 14px #0003;color:#fff;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:28px;text-align:center}.value-badge{min-width:106px;height:46px;padding:0 18px;border:2px solid #d7d7d7;border-radius:10px;background:#fff;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:20px;font-weight:700;line-height:42px;text-align:center}.value-badge--compact{min-width:74px}.life-slider{width:100%;margin:0;--mdc-slider-active-track-color: #ffb400;--mdc-slider-inactive-track-color: #eef2f7;--mdc-slider-active-track-height: 10px;--mdc-slider-inactive-track-height: 10px;--mdc-slider-active-track-shape: 999px;--mdc-slider-inactive-track-shape: 999px;--mdc-slider-handle-color: #ffb400;--mdc-slider-focus-handle-color: #ffb400;--mdc-slider-hover-handle-color: #ffb400;--mat-mdc-slider-ripple-color: rgba(255, 180, 0, .22)}::ng-deep .life-slider .mdc-slider{padding:0}::ng-deep .life-slider .mdc-slider__track{height:10px}::ng-deep .life-slider .mdc-slider__track--active_fill{border-color:#ffb400!important}::ng-deep .life-slider .mdc-slider__track--inactive{background-color:#eef2f7!important}::ng-deep .life-slider .mdc-slider__thumb-knob{width:18px!important;height:18px!important;border:6px solid #ffb400!important;background-color:#fff!important;box-sizing:border-box}::ng-deep .life-slider .mdc-slider__thumb:before,::ng-deep .life-slider .mdc-slider__thumb:after{background-color:#ffb40029!important}.scale-row,.hint-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:center;gap:8px}.scale-label,.hint-row span{color:#8b929b;font-family:Mulish,sans-serif!important;font-size:13px;font-weight:600;line-height:1.4}.scale-label{text-align:center}.scale-label:first-child{text-align:left}.scale-label:last-child{text-align:right}.scale-label.is-active{color:#444;font-weight:800}.hint-row span:last-child{text-align:right}.row-divider{margin:16px 0 28px}.row-divider--dashed{border-top:2px dashed #d8dfe7}.select-shell{position:relative}.select-input{width:100%;height:60px;padding:0 56px 0 22px;border:2px solid #d7d7d7;border-radius:18px;background:#fff;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:600;line-height:1.2;appearance:none;outline:none}.select-input:focus{border-color:#ffb400;box-shadow:0 0 0 3px #ffb40024}.select-chevron{position:absolute;top:50%;right:24px;width:12px;height:12px;border-right:4px solid #2f3136;border-bottom:4px solid #2f3136;transform:translateY(-60%) rotate(45deg);pointer-events:none}.button-row{padding:22px 28px 28px;border-top:1px solid #dbe4ef;background:#fff}.primary-button{width:100%;height:58px;border:0;border-radius:18px;background:linear-gradient(90deg,#ffb400,#ffc11b);color:#1f2125;font-family:Mulish,sans-serif!important;font-size:20px;font-weight:800;line-height:1.2;box-shadow:0 10px 24px #ffb4003d}.primary-button:hover{background:linear-gradient(90deg,#ffb000,#ffbe0e)}@media (max-width: 576px){.life-cover-card{padding:22px 20px 18px}.control-label--large{font-size:18px}.value-badge{min-width:84px;height:42px;padding:0 14px;font-size:17px;line-height:38px}.scale-label,.hint-row span{font-size:12px}.select-input{height:54px;font-size:16px}.button-row{padding:18px 20px 22px}.primary-button{height:54px;font-size:18px}}\n"] }]
9018
+ }], propDecorators: { coverDetails: [{
9019
+ type: Input
9020
+ }], termDetails: [{
9021
+ type: Input
9022
+ }], premiumDetails: [{
9023
+ type: Input
9024
+ }], textButtonClick: [{
8956
9025
  type: Output
8957
9026
  }], sliderValueChange: [{
8958
9027
  type: Output
8959
9028
  }] } });
8960
9029
 
9030
+ const DEFAULT_SUMMARY_ITEMS = [
9031
+ {
9032
+ label: 'Life Cover',
9033
+ value: '₹90 L',
9034
+ appearance: 'pill'
9035
+ },
9036
+ {
9037
+ label: 'Cover Till Age',
9038
+ value: '70',
9039
+ appearance: 'pill'
9040
+ },
9041
+ {
9042
+ label: 'Cover Till Age',
9043
+ value: 'Pay till age 60',
9044
+ appearance: 'link'
9045
+ }
9046
+ ];
9047
+ class LifeCoverDetailsViewComponent {
9048
+ field = input.required();
9049
+ summaryItems = null;
9050
+ summaryItemsState = [...DEFAULT_SUMMARY_ITEMS];
9051
+ ngOnChanges(changes) {
9052
+ if (changes['summaryItems']) {
9053
+ this.initializeSummaryItems();
9054
+ }
9055
+ }
9056
+ initializeSummaryItems() {
9057
+ if (Array.isArray(this.summaryItems) && this.summaryItems.length > 0) {
9058
+ const normalizedItems = this.summaryItems
9059
+ .map((item) => {
9060
+ const appearance = item?.appearance === 'link' ? 'link' : item?.appearance === 'text' ? 'text' : 'pill';
9061
+ return {
9062
+ label: `${item?.label ?? ''}`.trim(),
9063
+ value: `${item?.value ?? ''}`.trim(),
9064
+ appearance
9065
+ };
9066
+ })
9067
+ .filter((item) => item.label && item.value);
9068
+ this.summaryItemsState = normalizedItems.length > 0 ? normalizedItems : [...DEFAULT_SUMMARY_ITEMS];
9069
+ return;
9070
+ }
9071
+ this.summaryItemsState = [...DEFAULT_SUMMARY_ITEMS];
9072
+ }
9073
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9074
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: LifeCoverDetailsViewComponent, isStandalone: true, selector: "lib-life-cover-details-view", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, summaryItems: { classPropertyName: "summaryItems", publicName: "summaryItems", isSignal: false, isRequired: false, transformFunction: null } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"life-cover-view\" *ngIf=\"field()?.isVisible\">\n <ng-container *ngFor=\"let item of summaryItemsState; let last = last\">\n <div class=\"summary-row\">\n <span class=\"summary-label\">{{ item.label }}</span>\n\n <span\n class=\"summary-value\"\n [class.summary-value--pill]=\"item.appearance === 'pill'\"\n [class.summary-value--link]=\"item.appearance === 'link'\"\n [class.summary-value--text]=\"item.appearance === 'text'\">\n {{ item.value }}\n </span>\n </div>\n\n <div class=\"row-divider\" *ngIf=\"!last\"></div>\n </ng-container>\n</div>\n", styles: [".life-cover-view{width:min(420px,100%);padding:20px 22px;border:1px solid #cfd8e3;border-radius:24px;background:linear-gradient(180deg,#e5f0fa80 50%,#fff);box-shadow:0 6px 18px #2339540f}.summary-row{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:18px}.summary-label{color:#40464d;font-family:Mulish,sans-serif!important;font-size:16px;font-weight:700;line-height:1.4}.summary-value{font-family:Mulish,sans-serif!important;font-size:16px;line-height:1.3;white-space:nowrap}.summary-value--pill{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border:1px solid #d5d5d5;border-radius:8px;background:#fff;color:#505050;font-weight:700;box-shadow:0 1px #00000005}.summary-value--link{color:#0d4fb8;font-weight:800}.summary-value--text{color:#505050;font-weight:700}.row-divider{margin:10px 0 14px;border-top:2px dashed #d8dee6}@media (max-width: 576px){.life-cover-view{width:100%;padding:18px 16px;border-radius:20px}.summary-row{gap:12px}.summary-label,.summary-value{font-size:15px}.summary-value--pill{min-height:32px;padding:0 12px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
9075
+ }
9076
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsViewComponent, decorators: [{
9077
+ type: Component,
9078
+ args: [{ selector: 'lib-life-cover-details-view', standalone: true, imports: [CommonModule], template: "<div class=\"life-cover-view\" *ngIf=\"field()?.isVisible\">\n <ng-container *ngFor=\"let item of summaryItemsState; let last = last\">\n <div class=\"summary-row\">\n <span class=\"summary-label\">{{ item.label }}</span>\n\n <span\n class=\"summary-value\"\n [class.summary-value--pill]=\"item.appearance === 'pill'\"\n [class.summary-value--link]=\"item.appearance === 'link'\"\n [class.summary-value--text]=\"item.appearance === 'text'\">\n {{ item.value }}\n </span>\n </div>\n\n <div class=\"row-divider\" *ngIf=\"!last\"></div>\n </ng-container>\n</div>\n", styles: [".life-cover-view{width:min(420px,100%);padding:20px 22px;border:1px solid #cfd8e3;border-radius:24px;background:linear-gradient(180deg,#e5f0fa80 50%,#fff);box-shadow:0 6px 18px #2339540f}.summary-row{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:18px}.summary-label{color:#40464d;font-family:Mulish,sans-serif!important;font-size:16px;font-weight:700;line-height:1.4}.summary-value{font-family:Mulish,sans-serif!important;font-size:16px;line-height:1.3;white-space:nowrap}.summary-value--pill{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border:1px solid #d5d5d5;border-radius:8px;background:#fff;color:#505050;font-weight:700;box-shadow:0 1px #00000005}.summary-value--link{color:#0d4fb8;font-weight:800}.summary-value--text{color:#505050;font-weight:700}.row-divider{margin:10px 0 14px;border-top:2px dashed #d8dee6}@media (max-width: 576px){.life-cover-view{width:100%;padding:18px 16px;border-radius:20px}.summary-row{gap:12px}.summary-label,.summary-value{font-size:15px}.summary-value--pill{min-height:32px;padding:0 12px}}\n"] }]
9079
+ }], propDecorators: { summaryItems: [{
9080
+ type: Input
9081
+ }] } });
9082
+
9083
+ const DEFAULT_POST_PREMIUM_CONFIG = {
9084
+ planName: 'Glow Plus Pure Term',
9085
+ coverLabel: 'Life Cover',
9086
+ coverValue: '\u20B91 Cr',
9087
+ ageLabel: 'Cover Till Age',
9088
+ ageValue: '65 yrs',
9089
+ firstYearLabel: '1st-Yr Premium',
9090
+ firstYearValue: '\u20B911,675',
9091
+ firstYearSuffix: '/yr',
9092
+ renewalLabel: '2nd-Yr Onward Premium',
9093
+ renewalValue: '\u20B912,675',
9094
+ renewalSuffix: '/yr',
9095
+ primaryActionLabel: 'Continue with Quote',
9096
+ secondaryActionLabel: 'View creative'
9097
+ };
9098
+ class LifeCoverDetailsPostPremiumCalculationComponent {
9099
+ field = null;
9100
+ premiumSummary = null;
9101
+ premiumSummaryState = { ...DEFAULT_POST_PREMIUM_CONFIG };
9102
+ isShowFinalQuoteSummary = false;
9103
+ previousIsShowFinalQuoteSummary = false;
9104
+ ngOnChanges(changes) {
9105
+ if (changes['premiumSummary']) {
9106
+ this.initializePremiumSummary();
9107
+ }
9108
+ if (changes['field']) {
9109
+ this.syncFinalQuoteSummaryState();
9110
+ }
9111
+ }
9112
+ ngDoCheck() {
9113
+ const currentValue = this.resolveBoolean(this.field?.configData?.isShowFinalQuoteSummary, false);
9114
+ if (currentValue !== this.previousIsShowFinalQuoteSummary) {
9115
+ this.previousIsShowFinalQuoteSummary = currentValue;
9116
+ this.isShowFinalQuoteSummary = currentValue;
9117
+ }
9118
+ }
9119
+ initializePremiumSummary() {
9120
+ const premiumSummary = this.premiumSummary || {};
9121
+ this.premiumSummaryState = {
9122
+ planName: this.resolveValue(premiumSummary.planName, DEFAULT_POST_PREMIUM_CONFIG.planName),
9123
+ coverLabel: this.resolveValue(premiumSummary.coverLabel, DEFAULT_POST_PREMIUM_CONFIG.coverLabel),
9124
+ coverValue: this.resolveValue(premiumSummary.coverValue, DEFAULT_POST_PREMIUM_CONFIG.coverValue),
9125
+ ageLabel: this.resolveValue(premiumSummary.ageLabel, DEFAULT_POST_PREMIUM_CONFIG.ageLabel),
9126
+ ageValue: this.resolveValue(premiumSummary.ageValue, DEFAULT_POST_PREMIUM_CONFIG.ageValue),
9127
+ firstYearLabel: this.resolveValue(premiumSummary.firstYearLabel, DEFAULT_POST_PREMIUM_CONFIG.firstYearLabel),
9128
+ firstYearValue: this.resolveValue(premiumSummary.firstYearValue, DEFAULT_POST_PREMIUM_CONFIG.firstYearValue),
9129
+ firstYearSuffix: this.resolveValue(premiumSummary.firstYearSuffix, DEFAULT_POST_PREMIUM_CONFIG.firstYearSuffix),
9130
+ renewalLabel: this.resolveValue(premiumSummary.renewalLabel, DEFAULT_POST_PREMIUM_CONFIG.renewalLabel),
9131
+ renewalValue: this.resolveValue(premiumSummary.renewalValue, DEFAULT_POST_PREMIUM_CONFIG.renewalValue),
9132
+ renewalSuffix: this.resolveValue(premiumSummary.renewalSuffix, DEFAULT_POST_PREMIUM_CONFIG.renewalSuffix),
9133
+ primaryActionLabel: this.resolveValue(premiumSummary.primaryActionLabel, DEFAULT_POST_PREMIUM_CONFIG.primaryActionLabel),
9134
+ secondaryActionLabel: this.resolveValue(premiumSummary.secondaryActionLabel, DEFAULT_POST_PREMIUM_CONFIG.secondaryActionLabel)
9135
+ };
9136
+ }
9137
+ getViewBiLabel() {
9138
+ const label = this.premiumSummaryState.primaryActionLabel;
9139
+ return label === DEFAULT_POST_PREMIUM_CONFIG.primaryActionLabel ? 'View BI' : label;
9140
+ }
9141
+ getViewCreativeLabel() {
9142
+ return this.premiumSummaryState.secondaryActionLabel || 'View creative';
9143
+ }
9144
+ syncFinalQuoteSummaryState() {
9145
+ this.isShowFinalQuoteSummary = this.resolveBoolean(this.field?.configData?.isShowFinalQuoteSummary, false);
9146
+ this.previousIsShowFinalQuoteSummary = this.isShowFinalQuoteSummary;
9147
+ }
9148
+ resolveValue(value, fallback) {
9149
+ if (typeof value === 'string') {
9150
+ const trimmedValue = value.trim();
9151
+ return trimmedValue || fallback;
9152
+ }
9153
+ return fallback;
9154
+ }
9155
+ resolveBoolean(value, fallback) {
9156
+ if (typeof value === 'boolean') {
9157
+ return value;
9158
+ }
9159
+ return fallback;
9160
+ }
9161
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsPostPremiumCalculationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9162
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: LifeCoverDetailsPostPremiumCalculationComponent, isStandalone: true, selector: "lib-life-cover-details-post-premium-calculation", inputs: { field: "field", premiumSummary: "premiumSummary" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"post-premium-wrapper\"\n [class.post-premium-wrapper--final]=\"isShowFinalQuoteSummary\"\n *ngIf=\"field?.isVisible\">\n <div class=\"post-premium-card\" [class.post-premium-card--final]=\"isShowFinalQuoteSummary\">\n <div class=\"post-premium-header\">\n <div class=\"post-premium-header-main\">\n <div class=\"post-premium-success-badge\" *ngIf=\"isShowFinalQuoteSummary\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"m6.5 12.6 3.2 3.2 7.8-8.1\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"3\" />\n </svg>\n </div>\n\n <h3 class=\"post-premium-title\" [class.post-premium-title--final]=\"isShowFinalQuoteSummary\">\n {{ premiumSummaryState.planName }}\n </h3>\n </div>\n\n <button *ngIf=\"isShowFinalQuoteSummary; else defaultPlanIcon\" type=\"button\" class=\"view-bi-button\">\n {{ getViewBiLabel() }}\n </button>\n\n <ng-template #defaultPlanIcon>\n <div class=\"post-premium-icon\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"M12 4v4.5m0 0 5.5 2.5m-5.5-2.5L6.5 11m5.5-2.5V20M4.5 7h15m-13 11h11\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"1.7\" />\n <path\n d=\"M4.8 11h3.4l-1.7 3.1zm11 0h3.4l-1.7 3.1z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linejoin=\"round\"\n stroke-width=\"1.4\" />\n </svg>\n </div>\n </ng-template>\n </div>\n\n <div class=\"post-premium-panel\" [class.post-premium-panel--final]=\"isShowFinalQuoteSummary\">\n <div class=\"post-premium-grid\">\n <div class=\"metric-block\">\n <span class=\"metric-label\">{{ premiumSummaryState.coverLabel }}</span>\n <span class=\"metric-value\">{{ premiumSummaryState.coverValue }}</span>\n </div>\n\n <div class=\"metric-block metric-block--end\">\n <span class=\"metric-label\">{{ premiumSummaryState.ageLabel }}</span>\n <span class=\"metric-value\">{{ premiumSummaryState.ageValue }}</span>\n </div>\n </div>\n\n <div class=\"metric-divider\"></div>\n\n <div class=\"post-premium-grid\">\n <div class=\"metric-block\">\n <span class=\"metric-label\">{{ premiumSummaryState.firstYearLabel }}</span>\n <span class=\"metric-value metric-value--compact\">\n <span>{{ premiumSummaryState.firstYearValue }}</span>\n <span class=\"metric-suffix\">{{ premiumSummaryState.firstYearSuffix }}</span>\n </span>\n </div>\n\n <div class=\"metric-block metric-block--end\">\n <span class=\"metric-label\">{{ premiumSummaryState.renewalLabel }}</span>\n <span class=\"metric-value metric-value--compact\">\n <span>{{ premiumSummaryState.renewalValue }}</span>\n <span class=\"metric-suffix\">{{ premiumSummaryState.renewalSuffix }}</span>\n </span>\n </div>\n </div>\n </div>\n\n <div class=\"post-premium-actions\" *ngIf=\"isShowFinalQuoteSummary\">\n <button type=\"button\" class=\"action-button action-button--secondary action-button--final\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M16.6 7.2a2.6 2.6 0 1 0-2.4-3.7l-5.1 3.1a2.6 2.6 0 1 0 0 6.7l5.1 3.1a2.6 2.6 0 1 0 .8-1.3l-5.1-3.1a2.6 2.6 0 0 0 0-1.9l5.1-3.1c.4.7 1.1 1.2 1.9 1.2Z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2.1\" />\n </svg>\n <span>Payment Link</span>\n </button>\n\n <button type=\"button\" class=\"action-button action-button--secondary action-button--final\">\n <svg viewBox=\"0 0 20 20\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M10 2.3 11.4 6l3.7 1.4-3.7 1.4L10 12.5 8.6 8.8 4.9 7.4 8.6 6 10 2.3Zm5.1 8.3.8 2.1 2.1.8-2.1.8-.8 2.1-.8-2.1-2.1-.8 2.1-.8.8-2.1ZM4.8 11.5l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9.9-2.4Z\"\n fill=\"currentColor\" />\n </svg>\n <span>{{ getViewCreativeLabel() }}</span>\n </button>\n </div>\n </div>\n</div>\n", styles: [".post-premium-wrapper{width:min(425px,100%);display:flex;flex-direction:column;gap:16px}.post-premium-wrapper--final{width:min(820px,100%)}.post-premium-card{padding:18px 16px 14px;border:1.5px solid #b8c9ff;border-radius:24px;background:linear-gradient(180deg,#e5f0fa80 50%,#fff);box-shadow:0 10px 24px #5a76ba29}.post-premium-card--final{padding:28px 34px 30px;border-color:#9be5d7;background:linear-gradient(180deg,#edf9f6,#fff);box-shadow:0 14px 32px #56a89b1f}.post-premium-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.post-premium-card--final .post-premium-header{margin-bottom:26px}.post-premium-header-main{min-width:0;display:flex;align-items:center;gap:16px}.post-premium-title{margin:0;color:#0e57ce;font-family:Mulish,sans-serif!important;font-size:17px;font-weight:800;line-height:1.35}.post-premium-title--final{color:#464646;font-size:28px;font-weight:700}.post-premium-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid #6d6d6d;border-radius:9px;background:#fff;color:#404040;box-shadow:0 2px 8px #0000000a;flex-shrink:0}.post-premium-icon svg{width:20px;height:20px}.post-premium-success-badge{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#0a9d82;color:#fff;box-shadow:0 8px 20px #0a9d8233;flex-shrink:0}.post-premium-success-badge svg{width:20px;height:20px}.view-bi-button{min-height:66px;padding:0 34px;border:none;border-radius:999px;background:#ffb703;color:#4c3c16;font-family:Mulish,sans-serif!important;font-size:26px;font-weight:800;line-height:1;box-shadow:0 12px 24px #ffb7033d;cursor:pointer;flex-shrink:0}.post-premium-panel{padding:16px 14px 18px;border:1px solid #ececec;border-radius:18px;background:#fff;box-shadow:0 2px 10px #273a560a}.post-premium-panel--final{padding:34px 30px 30px;border:3px solid #efefef;border-radius:24px;box-shadow:0 6px 16px #374a640a}.post-premium-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.post-premium-card--final .post-premium-grid{gap:30px}.metric-block{display:flex;flex-direction:column;gap:6px;min-width:0}.metric-block--end{align-items:flex-end;text-align:right}.metric-label{color:#9a9a9a;font-family:Mulish,sans-serif!important;font-size:14px;font-weight:600;line-height:1.3}.post-premium-card--final .metric-label{color:#707070;font-size:22px;font-weight:500}.metric-value{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:900;line-height:1.3}.post-premium-card--final .metric-value{font-size:36px;font-weight:800}.metric-value--compact{display:inline-flex;align-items:baseline;gap:2px}.metric-suffix{font-size:13px;font-weight:700}.post-premium-card--final .metric-suffix{font-size:20px;font-weight:700}.metric-divider{margin:12px 0 10px;border-top:2px dashed #d6d6d6}.post-premium-card--final .metric-divider{margin:24px 0 26px;border-top-width:4px;border-top-color:#d9d9d9}.post-premium-actions{display:flex;align-items:center;gap:12px}.post-premium-card--final .post-premium-actions{margin-top:28px;gap:24px}.action-button{min-height:52px;padding:0 18px;border-radius:999px;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:1;border:1.5px solid transparent;cursor:pointer;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease}.action-button:hover{transform:translateY(-1px)}.action-button--primary{flex:1 1 56%;background:#ffb703;color:#514320;box-shadow:0 10px 18px #ffb70347}.action-button--secondary{flex:1 1 44%;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;border-color:#5f5f5f;color:#4e4e4e}.action-button--secondary svg{width:18px;height:18px;flex-shrink:0}.action-button--final{min-height:70px;padding:0 26px;border-width:3px;border-color:#6c6c6c;color:#343434;font-size:22px;font-weight:700;gap:10px;box-shadow:0 6px 14px #4747470f}.action-button--final svg{width:24px;height:24px}@media (max-width: 576px){.post-premium-card{padding:16px 14px 14px;border-radius:22px}.post-premium-card--final{padding:22px 18px 24px}.post-premium-panel{padding:14px 12px 16px;border-radius:16px}.post-premium-panel--final{padding:20px 18px 22px;border-radius:20px}.post-premium-grid{gap:14px}.metric-label{font-size:13px}.post-premium-card--final .metric-label{font-size:16px}.metric-value{font-size:17px}.post-premium-card--final .metric-value{font-size:28px}.post-premium-card--final .metric-suffix{font-size:16px}.post-premium-title--final{font-size:20px}.post-premium-success-badge{width:34px;height:34px}.view-bi-button{min-height:50px;padding:0 20px;font-size:20px}.post-premium-actions{flex-direction:column;align-items:stretch}.action-button{width:100%}.action-button--final{min-height:58px;font-size:18px}.action-button--final svg{width:20px;height:20px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
9163
+ }
9164
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsPostPremiumCalculationComponent, decorators: [{
9165
+ type: Component,
9166
+ args: [{ selector: 'lib-life-cover-details-post-premium-calculation', standalone: true, imports: [CommonModule], template: "<div\n class=\"post-premium-wrapper\"\n [class.post-premium-wrapper--final]=\"isShowFinalQuoteSummary\"\n *ngIf=\"field?.isVisible\">\n <div class=\"post-premium-card\" [class.post-premium-card--final]=\"isShowFinalQuoteSummary\">\n <div class=\"post-premium-header\">\n <div class=\"post-premium-header-main\">\n <div class=\"post-premium-success-badge\" *ngIf=\"isShowFinalQuoteSummary\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"m6.5 12.6 3.2 3.2 7.8-8.1\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"3\" />\n </svg>\n </div>\n\n <h3 class=\"post-premium-title\" [class.post-premium-title--final]=\"isShowFinalQuoteSummary\">\n {{ premiumSummaryState.planName }}\n </h3>\n </div>\n\n <button *ngIf=\"isShowFinalQuoteSummary; else defaultPlanIcon\" type=\"button\" class=\"view-bi-button\">\n {{ getViewBiLabel() }}\n </button>\n\n <ng-template #defaultPlanIcon>\n <div class=\"post-premium-icon\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"M12 4v4.5m0 0 5.5 2.5m-5.5-2.5L6.5 11m5.5-2.5V20M4.5 7h15m-13 11h11\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"1.7\" />\n <path\n d=\"M4.8 11h3.4l-1.7 3.1zm11 0h3.4l-1.7 3.1z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linejoin=\"round\"\n stroke-width=\"1.4\" />\n </svg>\n </div>\n </ng-template>\n </div>\n\n <div class=\"post-premium-panel\" [class.post-premium-panel--final]=\"isShowFinalQuoteSummary\">\n <div class=\"post-premium-grid\">\n <div class=\"metric-block\">\n <span class=\"metric-label\">{{ premiumSummaryState.coverLabel }}</span>\n <span class=\"metric-value\">{{ premiumSummaryState.coverValue }}</span>\n </div>\n\n <div class=\"metric-block metric-block--end\">\n <span class=\"metric-label\">{{ premiumSummaryState.ageLabel }}</span>\n <span class=\"metric-value\">{{ premiumSummaryState.ageValue }}</span>\n </div>\n </div>\n\n <div class=\"metric-divider\"></div>\n\n <div class=\"post-premium-grid\">\n <div class=\"metric-block\">\n <span class=\"metric-label\">{{ premiumSummaryState.firstYearLabel }}</span>\n <span class=\"metric-value metric-value--compact\">\n <span>{{ premiumSummaryState.firstYearValue }}</span>\n <span class=\"metric-suffix\">{{ premiumSummaryState.firstYearSuffix }}</span>\n </span>\n </div>\n\n <div class=\"metric-block metric-block--end\">\n <span class=\"metric-label\">{{ premiumSummaryState.renewalLabel }}</span>\n <span class=\"metric-value metric-value--compact\">\n <span>{{ premiumSummaryState.renewalValue }}</span>\n <span class=\"metric-suffix\">{{ premiumSummaryState.renewalSuffix }}</span>\n </span>\n </div>\n </div>\n </div>\n\n <div class=\"post-premium-actions\" *ngIf=\"isShowFinalQuoteSummary\">\n <button type=\"button\" class=\"action-button action-button--secondary action-button--final\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M16.6 7.2a2.6 2.6 0 1 0-2.4-3.7l-5.1 3.1a2.6 2.6 0 1 0 0 6.7l5.1 3.1a2.6 2.6 0 1 0 .8-1.3l-5.1-3.1a2.6 2.6 0 0 0 0-1.9l5.1-3.1c.4.7 1.1 1.2 1.9 1.2Z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2.1\" />\n </svg>\n <span>Payment Link</span>\n </button>\n\n <button type=\"button\" class=\"action-button action-button--secondary action-button--final\">\n <svg viewBox=\"0 0 20 20\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M10 2.3 11.4 6l3.7 1.4-3.7 1.4L10 12.5 8.6 8.8 4.9 7.4 8.6 6 10 2.3Zm5.1 8.3.8 2.1 2.1.8-2.1.8-.8 2.1-.8-2.1-2.1-.8 2.1-.8.8-2.1ZM4.8 11.5l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9.9-2.4Z\"\n fill=\"currentColor\" />\n </svg>\n <span>{{ getViewCreativeLabel() }}</span>\n </button>\n </div>\n </div>\n</div>\n", styles: [".post-premium-wrapper{width:min(425px,100%);display:flex;flex-direction:column;gap:16px}.post-premium-wrapper--final{width:min(820px,100%)}.post-premium-card{padding:18px 16px 14px;border:1.5px solid #b8c9ff;border-radius:24px;background:linear-gradient(180deg,#e5f0fa80 50%,#fff);box-shadow:0 10px 24px #5a76ba29}.post-premium-card--final{padding:28px 34px 30px;border-color:#9be5d7;background:linear-gradient(180deg,#edf9f6,#fff);box-shadow:0 14px 32px #56a89b1f}.post-premium-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.post-premium-card--final .post-premium-header{margin-bottom:26px}.post-premium-header-main{min-width:0;display:flex;align-items:center;gap:16px}.post-premium-title{margin:0;color:#0e57ce;font-family:Mulish,sans-serif!important;font-size:17px;font-weight:800;line-height:1.35}.post-premium-title--final{color:#464646;font-size:28px;font-weight:700}.post-premium-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid #6d6d6d;border-radius:9px;background:#fff;color:#404040;box-shadow:0 2px 8px #0000000a;flex-shrink:0}.post-premium-icon svg{width:20px;height:20px}.post-premium-success-badge{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#0a9d82;color:#fff;box-shadow:0 8px 20px #0a9d8233;flex-shrink:0}.post-premium-success-badge svg{width:20px;height:20px}.view-bi-button{min-height:66px;padding:0 34px;border:none;border-radius:999px;background:#ffb703;color:#4c3c16;font-family:Mulish,sans-serif!important;font-size:26px;font-weight:800;line-height:1;box-shadow:0 12px 24px #ffb7033d;cursor:pointer;flex-shrink:0}.post-premium-panel{padding:16px 14px 18px;border:1px solid #ececec;border-radius:18px;background:#fff;box-shadow:0 2px 10px #273a560a}.post-premium-panel--final{padding:34px 30px 30px;border:3px solid #efefef;border-radius:24px;box-shadow:0 6px 16px #374a640a}.post-premium-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.post-premium-card--final .post-premium-grid{gap:30px}.metric-block{display:flex;flex-direction:column;gap:6px;min-width:0}.metric-block--end{align-items:flex-end;text-align:right}.metric-label{color:#9a9a9a;font-family:Mulish,sans-serif!important;font-size:14px;font-weight:600;line-height:1.3}.post-premium-card--final .metric-label{color:#707070;font-size:22px;font-weight:500}.metric-value{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:900;line-height:1.3}.post-premium-card--final .metric-value{font-size:36px;font-weight:800}.metric-value--compact{display:inline-flex;align-items:baseline;gap:2px}.metric-suffix{font-size:13px;font-weight:700}.post-premium-card--final .metric-suffix{font-size:20px;font-weight:700}.metric-divider{margin:12px 0 10px;border-top:2px dashed #d6d6d6}.post-premium-card--final .metric-divider{margin:24px 0 26px;border-top-width:4px;border-top-color:#d9d9d9}.post-premium-actions{display:flex;align-items:center;gap:12px}.post-premium-card--final .post-premium-actions{margin-top:28px;gap:24px}.action-button{min-height:52px;padding:0 18px;border-radius:999px;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:1;border:1.5px solid transparent;cursor:pointer;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease}.action-button:hover{transform:translateY(-1px)}.action-button--primary{flex:1 1 56%;background:#ffb703;color:#514320;box-shadow:0 10px 18px #ffb70347}.action-button--secondary{flex:1 1 44%;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;border-color:#5f5f5f;color:#4e4e4e}.action-button--secondary svg{width:18px;height:18px;flex-shrink:0}.action-button--final{min-height:70px;padding:0 26px;border-width:3px;border-color:#6c6c6c;color:#343434;font-size:22px;font-weight:700;gap:10px;box-shadow:0 6px 14px #4747470f}.action-button--final svg{width:24px;height:24px}@media (max-width: 576px){.post-premium-card{padding:16px 14px 14px;border-radius:22px}.post-premium-card--final{padding:22px 18px 24px}.post-premium-panel{padding:14px 12px 16px;border-radius:16px}.post-premium-panel--final{padding:20px 18px 22px;border-radius:20px}.post-premium-grid{gap:14px}.metric-label{font-size:13px}.post-premium-card--final .metric-label{font-size:16px}.metric-value{font-size:17px}.post-premium-card--final .metric-value{font-size:28px}.post-premium-card--final .metric-suffix{font-size:16px}.post-premium-title--final{font-size:20px}.post-premium-success-badge{width:34px;height:34px}.view-bi-button{min-height:50px;padding:0 20px;font-size:20px}.post-premium-actions{flex-direction:column;align-items:stretch}.action-button{width:100%}.action-button--final{min-height:58px;font-size:18px}.action-button--final svg{width:20px;height:20px}}\n"] }]
9167
+ }], propDecorators: { field: [{
9168
+ type: Input
9169
+ }], premiumSummary: [{
9170
+ type: Input
9171
+ }] } });
9172
+
9173
+ const DEFAULT_ADDON_ITEM = {
9174
+ title: 'Inbuilt Accelerated Terminal Illness Benefit',
9175
+ amount: '\u20B90',
9176
+ moneyColor: '#0f9d73',
9177
+ sumAssuredLabel: 'Sum Assured:',
9178
+ sumAssuredValue: '\u20B91 Cr',
9179
+ checked: true,
9180
+ checkboxDisabled: true
9181
+ };
9182
+ const DEFAULT_ADDON_CONFIG = {
9183
+ borderColor: '#ffb703',
9184
+ dividerColor: '#ded9d1',
9185
+ moneyColor: '#0f9d73',
9186
+ checkboxCheckedColor: '#ffb703',
9187
+ checkboxDisabledColor: '#bcbcbc',
9188
+ checkboxUncheckedBorderColor: '#d1d5db',
9189
+ checkboxDisabledUncheckedColor: '#f3f4f6',
9190
+ sumAssuredBackgroundColor: '#ffefc2',
9191
+ sumAssuredTextColor: '#4a4a4a',
9192
+ showNudge: true,
9193
+ nudgeLabel: 'No Extra Premium',
9194
+ nudgeBackgroundColor: '#ffd56f',
9195
+ nudgeTextColor: '#3f3f46',
9196
+ addons: [DEFAULT_ADDON_ITEM]
9197
+ };
9198
+ class LifeCoverAddonDetailsComponent {
9199
+ field = input.required();
9200
+ addOnConfigData = null;
9201
+ addonSelectionChange = new EventEmitter();
9202
+ addonItems = [];
9203
+ viewConfigState = this.getDefaultAddonConfig();
9204
+ ngOnChanges(changes) {
9205
+ if (changes['addOnConfigData']) {
9206
+ this.initializeAddonConfig();
9207
+ }
9208
+ }
9209
+ onAddonCheckboxChange(checked, addonIndex) {
9210
+ const updatedAddons = this.addonItems.map((addon, index) => index === addonIndex
9211
+ ? {
9212
+ ...addon,
9213
+ checked
9214
+ }
9215
+ : addon);
9216
+ this.addonItems = updatedAddons;
9217
+ this.viewConfigState = {
9218
+ ...this.viewConfigState,
9219
+ addons: updatedAddons
9220
+ };
9221
+ const updatedField = {
9222
+ ...this.field(),
9223
+ addOnConfigData: {
9224
+ ...this.viewConfigState,
9225
+ addons: updatedAddons
9226
+ }
9227
+ };
9228
+ this.addonSelectionChange.emit({
9229
+ field: updatedField,
9230
+ addons: updatedAddons,
9231
+ selectedAddons: updatedAddons.filter((addon) => addon.checked),
9232
+ unselectedAddons: updatedAddons.filter((addon) => !addon.checked),
9233
+ changedAddon: updatedAddons[addonIndex]
9234
+ });
9235
+ }
9236
+ get isSingleAddon() {
9237
+ return this.addonItems.length === 1;
9238
+ }
9239
+ initializeAddonConfig() {
9240
+ const configData = this.addOnConfigData || {};
9241
+ const defaultConfig = this.getDefaultAddonConfig();
9242
+ const sourceAddons = Array.isArray(configData.addons) && configData.addons.length > 0
9243
+ ? configData.addons
9244
+ : defaultConfig.addons;
9245
+ const moneyColor = this.resolveColor(configData.moneyColor ?? configData.amountColor, defaultConfig.moneyColor);
9246
+ const defaultCheckboxDisabled = this.resolveBoolean(configData.checkboxDisabled, false);
9247
+ const normalizedAddons = sourceAddons
9248
+ .map((item) => this.normalizeAddonItem(item, moneyColor, defaultCheckboxDisabled))
9249
+ .filter((item) => item.title);
9250
+ this.viewConfigState = {
9251
+ borderColor: this.resolveColor(configData.borderColor, defaultConfig.borderColor),
9252
+ dividerColor: this.resolveColor(configData.dividerColor, defaultConfig.dividerColor),
9253
+ moneyColor,
9254
+ checkboxCheckedColor: this.resolveColor(configData.checkboxCheckedColor, defaultConfig.checkboxCheckedColor),
9255
+ checkboxDisabledColor: this.resolveColor(configData.checkboxDisabledColor, defaultConfig.checkboxDisabledColor),
9256
+ checkboxUncheckedBorderColor: this.resolveColor(configData.checkboxUncheckedBorderColor, defaultConfig.checkboxUncheckedBorderColor),
9257
+ checkboxDisabledUncheckedColor: this.resolveColor(configData.checkboxDisabledUncheckedColor, defaultConfig.checkboxDisabledUncheckedColor),
9258
+ sumAssuredBackgroundColor: this.resolveColor(configData.sumAssuredBackgroundColor, defaultConfig.sumAssuredBackgroundColor),
9259
+ sumAssuredTextColor: this.resolveColor(configData.sumAssuredTextColor, defaultConfig.sumAssuredTextColor),
9260
+ showNudge: this.resolveBoolean(configData.showNudge, defaultConfig.showNudge),
9261
+ nudgeLabel: this.resolveText(configData.nudgeLabel, defaultConfig.nudgeLabel),
9262
+ nudgeBackgroundColor: this.resolveColor(configData.nudgeBackgroundColor, defaultConfig.nudgeBackgroundColor),
9263
+ nudgeTextColor: this.resolveColor(configData.nudgeTextColor, defaultConfig.nudgeTextColor),
9264
+ addons: normalizedAddons.length > 0 ? normalizedAddons : defaultConfig.addons
9265
+ };
9266
+ this.addonItems = this.viewConfigState.addons.map((addon) => ({ ...addon }));
9267
+ }
9268
+ resolveText(value, fallback) {
9269
+ if (typeof value === 'string') {
9270
+ const trimmedValue = value.trim();
9271
+ return trimmedValue || fallback;
9272
+ }
9273
+ return fallback;
9274
+ }
9275
+ resolveColor(value, fallback) {
9276
+ return this.resolveText(value, fallback);
9277
+ }
9278
+ resolveBoolean(value, fallback) {
9279
+ if (typeof value === 'boolean') {
9280
+ return value;
9281
+ }
9282
+ return fallback;
9283
+ }
9284
+ normalizeAddonItem(item, moneyColor, defaultCheckboxDisabled) {
9285
+ return {
9286
+ ...(item || {}),
9287
+ title: this.resolveText(item?.title, DEFAULT_ADDON_ITEM.title),
9288
+ amount: this.resolveText(item?.amount, DEFAULT_ADDON_ITEM.amount),
9289
+ moneyColor: this.resolveColor(item?.moneyColor ?? item?.amountColor, moneyColor),
9290
+ sumAssuredLabel: this.resolveText(item?.sumAssuredLabel, DEFAULT_ADDON_ITEM.sumAssuredLabel),
9291
+ sumAssuredValue: this.resolveText(item?.sumAssuredValue, DEFAULT_ADDON_ITEM.sumAssuredValue),
9292
+ checked: this.resolveBoolean(item?.checked, DEFAULT_ADDON_ITEM.checked),
9293
+ checkboxDisabled: this.resolveBoolean(item?.checkboxDisabled, defaultCheckboxDisabled)
9294
+ };
9295
+ }
9296
+ getDefaultAddonConfig() {
9297
+ return {
9298
+ ...DEFAULT_ADDON_CONFIG,
9299
+ addons: DEFAULT_ADDON_CONFIG.addons.map((addon) => ({ ...addon }))
9300
+ };
9301
+ }
9302
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverAddonDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9303
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: LifeCoverAddonDetailsComponent, isStandalone: true, selector: "lib-life-cover-addon-details", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, addOnConfigData: { classPropertyName: "addOnConfigData", publicName: "addOnConfigData", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { addonSelectionChange: "addonSelectionChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"addon-details-wrapper\" *ngIf=\"field()?.isVisible\">\n <div\n class=\"addon-card\"\n [class.addon-card--single]=\"isSingleAddon\"\n [class.addon-card--multiple]=\"!isSingleAddon\"\n [style.--addon-border-color]=\"viewConfigState.borderColor\"\n [style.--addon-divider-color]=\"viewConfigState.dividerColor\"\n [style.--addon-chip-bg]=\"viewConfigState.sumAssuredBackgroundColor\"\n [style.--addon-chip-color]=\"viewConfigState.sumAssuredTextColor\"\n [style.--addon-nudge-bg]=\"viewConfigState.nudgeBackgroundColor\"\n [style.--addon-nudge-color]=\"viewConfigState.nudgeTextColor\"\n [style.--addon-check-color]=\"viewConfigState.checkboxCheckedColor\"\n [style.--addon-check-disabled-color]=\"viewConfigState.checkboxDisabledColor\"\n [style.--addon-unchecked-border]=\"viewConfigState.checkboxUncheckedBorderColor\"\n [style.--addon-unchecked-disabled-bg]=\"viewConfigState.checkboxDisabledUncheckedColor\">\n <div class=\"addon-nudge\" *ngIf=\"viewConfigState.showNudge && viewConfigState.nudgeLabel\">\n <span class=\"addon-nudge__icon\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"m12 3.8 2.3 4.7 5.2.8-3.8 3.7.9 5.2L12 15.8l-4.6 2.4.9-5.2L4.5 9.3l5.2-.8L12 3.8Z\"\n fill=\"currentColor\" />\n </svg>\n </span>\n <span>{{ viewConfigState.nudgeLabel }}</span>\n </div>\n\n <ng-container *ngFor=\"let addon of addonItems; let last = last; let index = index\">\n <div class=\"addon-item\">\n <div class=\"addon-item__header\">\n <mat-checkbox\n class=\"addon-checkbox\"\n [checked]=\"addon.checked\"\n [disabled]=\"addon.checkboxDisabled\"\n [disableRipple]=\"true\"\n [aria-label]=\"addon.title\"\n [class.addon-checkbox--checked]=\"addon.checked\"\n [class.addon-checkbox--disabled]=\"addon.checkboxDisabled\"\n [class.addon-checkbox--disabled-checked]=\"addon.checkboxDisabled && addon.checked\"\n [class.addon-checkbox--disabled-unchecked]=\"addon.checkboxDisabled && !addon.checked\"\n (change)=\"onAddonCheckboxChange($event.checked, index)\">\n </mat-checkbox>\n\n <div class=\"addon-copy\">\n <div class=\"addon-title-row\">\n <h3 class=\"addon-title\">{{ addon.title }}</h3>\n <span class=\"addon-amount\" [style.color]=\"addon.moneyColor\">{{ addon.amount }}</span>\n </div>\n\n <div class=\"addon-sum-chip\">\n <span class=\"addon-sum-chip__label\">{{ addon.sumAssuredLabel }}</span>\n <span class=\"addon-sum-chip__value\">{{ addon.sumAssuredValue }}</span>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"addon-divider\" *ngIf=\"!last\"></div>\n </ng-container>\n </div>\n</div>\n", styles: [".addon-details-wrapper{width:min(860px,100%)}.addon-card{position:relative;padding:28px 30px 30px;border:3px solid var(--addon-border-color, #ffb703);border-radius:30px;background:#fff;box-shadow:0 10px 24px #37508214}.addon-card--single{padding-top:34px}.addon-nudge{position:absolute;top:-22px;left:28px;display:inline-flex;align-items:center;gap:10px;padding:8px 16px 8px 12px;border:2px solid var(--addon-border-color, #ffb703);border-radius:16px;background:linear-gradient(270deg,#ffd666,#fff1cc 76.92%);color:var(--addon-nudge-color, #3f3f46);font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:1.15;box-shadow:0 6px 12px #ffb70329}.addon-nudge__icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.addon-nudge__icon svg{width:20px;height:20px}.addon-item__header{display:flex;align-items:flex-start;gap:22px}.addon-checkbox{display:inline-flex;flex-shrink:0;padding-top:2px;--mdc-checkbox-disabled-selected-icon-color: var(--addon-check-disabled-color, #bcbcbc);--mdc-checkbox-disabled-selected-checkmark-color: #ffffff;--mdc-checkbox-disabled-unselected-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-selected-checkmark-color: #ffffff;--mdc-checkbox-selected-focus-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-hover-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-pressed-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-unselected-focus-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-hover-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-pressed-icon-color: var(--addon-unchecked-border, #d1d5db)}.addon-checkbox ::ng-deep .mdc-form-field{display:inline-flex;align-items:flex-start}.addon-checkbox ::ng-deep .mdc-label{display:none}.addon-checkbox ::ng-deep .mdc-checkbox{padding:0;margin:0;flex:0 0 40px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-touch-target,.addon-checkbox ::ng-deep .mdc-checkbox__native-control,.addon-checkbox ::ng-deep .mdc-checkbox{width:40px;height:40px}.addon-checkbox ::ng-deep .mdc-checkbox__background{width:38px;height:38px;top:1px;left:1px;border-radius:7px;border-width:2.5px!important;border-color:var(--addon-unchecked-border, #d1d5db)}.addon-checkbox ::ng-deep .mdc-checkbox__checkmark{width:100%;height:100%}.addon-checkbox ::ng-deep .mdc-checkbox__checkmark-path{stroke-width:3.4px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-ripple,.addon-checkbox ::ng-deep .mdc-checkbox__ripple{display:none}.addon-checkbox--checked ::ng-deep .mdc-checkbox__background{background-color:var(--addon-check-color, #ffb703)!important;border-color:transparent!important}.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark{opacity:1!important}.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark-path{stroke-dashoffset:0!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__background,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__background{background-color:var(--addon-check-disabled-color, #bcbcbc)!important;border-color:transparent!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__checkmark{opacity:1!important;color:#fff!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark-path,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__checkmark-path{stroke-dashoffset:0!important}.addon-checkbox--disabled-unchecked ::ng-deep .mdc-checkbox__background{background-color:#fff;border-color:var(--addon-unchecked-border, #d1d5db)!important}.addon-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:18px}.addon-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.addon-title{margin:0;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:30px;font-weight:800;line-height:1.25;letter-spacing:-.02em}.addon-amount{flex-shrink:0;font-family:Mulish,sans-serif!important;font-size:30px;font-weight:900;line-height:1.1;letter-spacing:-.03em}.addon-sum-chip{width:fit-content;display:inline-flex;align-items:center;gap:10px;padding:14px 22px;margin-left:0;border-radius:22px;background:var(--addon-chip-bg, #ffefc2);color:var(--addon-chip-color, #4a4a4a);font-family:Mulish,sans-serif!important;font-size:24px;line-height:1.2}.addon-sum-chip__label{font-weight:500}.addon-sum-chip__value{font-weight:800}.addon-divider{margin:28px 0;border-top:4px dashed var(--addon-divider-color, #ded9d1)}@media (max-width: 991px){.addon-card{padding:26px 22px;border-radius:26px}.addon-nudge{left:22px;font-size:17px}.addon-title,.addon-amount{font-size:24px}.addon-sum-chip{font-size:20px}}@media (max-width: 767px){.addon-card{padding:24px 18px 22px;border-radius:24px}.addon-item__header{gap:16px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-touch-target,.addon-checkbox ::ng-deep .mdc-checkbox__native-control,.addon-checkbox ::ng-deep .mdc-checkbox{width:34px;height:34px;flex-basis:34px}.addon-checkbox ::ng-deep .mdc-checkbox__background{width:32px;height:32px;border-width:2px!important;border-radius:6px}.addon-title-row{gap:12px}.addon-title,.addon-amount{font-size:20px}.addon-sum-chip{padding:12px 18px;font-size:18px;border-radius:18px}.addon-divider{margin:22px 0;border-top-width:3px}}@media (max-width: 575px){.addon-card{padding:20px 14px 18px;border-radius:22px}.addon-nudge{top:-18px;left:16px;gap:8px;padding:7px 14px 7px 10px;font-size:15px;border-radius:14px}.addon-title-row{flex-direction:column;align-items:flex-start}.addon-title,.addon-amount{font-size:18px}.addon-copy{gap:14px}.addon-sum-chip{width:100%;justify-content:center;flex-wrap:wrap;gap:6px;font-size:17px;text-align:center}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i4$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }] });
9304
+ }
9305
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverAddonDetailsComponent, decorators: [{
9306
+ type: Component,
9307
+ args: [{ selector: 'lib-life-cover-addon-details', standalone: true, imports: [CommonModule, MatCheckboxModule], template: "<div class=\"addon-details-wrapper\" *ngIf=\"field()?.isVisible\">\n <div\n class=\"addon-card\"\n [class.addon-card--single]=\"isSingleAddon\"\n [class.addon-card--multiple]=\"!isSingleAddon\"\n [style.--addon-border-color]=\"viewConfigState.borderColor\"\n [style.--addon-divider-color]=\"viewConfigState.dividerColor\"\n [style.--addon-chip-bg]=\"viewConfigState.sumAssuredBackgroundColor\"\n [style.--addon-chip-color]=\"viewConfigState.sumAssuredTextColor\"\n [style.--addon-nudge-bg]=\"viewConfigState.nudgeBackgroundColor\"\n [style.--addon-nudge-color]=\"viewConfigState.nudgeTextColor\"\n [style.--addon-check-color]=\"viewConfigState.checkboxCheckedColor\"\n [style.--addon-check-disabled-color]=\"viewConfigState.checkboxDisabledColor\"\n [style.--addon-unchecked-border]=\"viewConfigState.checkboxUncheckedBorderColor\"\n [style.--addon-unchecked-disabled-bg]=\"viewConfigState.checkboxDisabledUncheckedColor\">\n <div class=\"addon-nudge\" *ngIf=\"viewConfigState.showNudge && viewConfigState.nudgeLabel\">\n <span class=\"addon-nudge__icon\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"m12 3.8 2.3 4.7 5.2.8-3.8 3.7.9 5.2L12 15.8l-4.6 2.4.9-5.2L4.5 9.3l5.2-.8L12 3.8Z\"\n fill=\"currentColor\" />\n </svg>\n </span>\n <span>{{ viewConfigState.nudgeLabel }}</span>\n </div>\n\n <ng-container *ngFor=\"let addon of addonItems; let last = last; let index = index\">\n <div class=\"addon-item\">\n <div class=\"addon-item__header\">\n <mat-checkbox\n class=\"addon-checkbox\"\n [checked]=\"addon.checked\"\n [disabled]=\"addon.checkboxDisabled\"\n [disableRipple]=\"true\"\n [aria-label]=\"addon.title\"\n [class.addon-checkbox--checked]=\"addon.checked\"\n [class.addon-checkbox--disabled]=\"addon.checkboxDisabled\"\n [class.addon-checkbox--disabled-checked]=\"addon.checkboxDisabled && addon.checked\"\n [class.addon-checkbox--disabled-unchecked]=\"addon.checkboxDisabled && !addon.checked\"\n (change)=\"onAddonCheckboxChange($event.checked, index)\">\n </mat-checkbox>\n\n <div class=\"addon-copy\">\n <div class=\"addon-title-row\">\n <h3 class=\"addon-title\">{{ addon.title }}</h3>\n <span class=\"addon-amount\" [style.color]=\"addon.moneyColor\">{{ addon.amount }}</span>\n </div>\n\n <div class=\"addon-sum-chip\">\n <span class=\"addon-sum-chip__label\">{{ addon.sumAssuredLabel }}</span>\n <span class=\"addon-sum-chip__value\">{{ addon.sumAssuredValue }}</span>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"addon-divider\" *ngIf=\"!last\"></div>\n </ng-container>\n </div>\n</div>\n", styles: [".addon-details-wrapper{width:min(860px,100%)}.addon-card{position:relative;padding:28px 30px 30px;border:3px solid var(--addon-border-color, #ffb703);border-radius:30px;background:#fff;box-shadow:0 10px 24px #37508214}.addon-card--single{padding-top:34px}.addon-nudge{position:absolute;top:-22px;left:28px;display:inline-flex;align-items:center;gap:10px;padding:8px 16px 8px 12px;border:2px solid var(--addon-border-color, #ffb703);border-radius:16px;background:linear-gradient(270deg,#ffd666,#fff1cc 76.92%);color:var(--addon-nudge-color, #3f3f46);font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:1.15;box-shadow:0 6px 12px #ffb70329}.addon-nudge__icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.addon-nudge__icon svg{width:20px;height:20px}.addon-item__header{display:flex;align-items:flex-start;gap:22px}.addon-checkbox{display:inline-flex;flex-shrink:0;padding-top:2px;--mdc-checkbox-disabled-selected-icon-color: var(--addon-check-disabled-color, #bcbcbc);--mdc-checkbox-disabled-selected-checkmark-color: #ffffff;--mdc-checkbox-disabled-unselected-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-selected-checkmark-color: #ffffff;--mdc-checkbox-selected-focus-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-hover-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-pressed-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-unselected-focus-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-hover-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-pressed-icon-color: var(--addon-unchecked-border, #d1d5db)}.addon-checkbox ::ng-deep .mdc-form-field{display:inline-flex;align-items:flex-start}.addon-checkbox ::ng-deep .mdc-label{display:none}.addon-checkbox ::ng-deep .mdc-checkbox{padding:0;margin:0;flex:0 0 40px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-touch-target,.addon-checkbox ::ng-deep .mdc-checkbox__native-control,.addon-checkbox ::ng-deep .mdc-checkbox{width:40px;height:40px}.addon-checkbox ::ng-deep .mdc-checkbox__background{width:38px;height:38px;top:1px;left:1px;border-radius:7px;border-width:2.5px!important;border-color:var(--addon-unchecked-border, #d1d5db)}.addon-checkbox ::ng-deep .mdc-checkbox__checkmark{width:100%;height:100%}.addon-checkbox ::ng-deep .mdc-checkbox__checkmark-path{stroke-width:3.4px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-ripple,.addon-checkbox ::ng-deep .mdc-checkbox__ripple{display:none}.addon-checkbox--checked ::ng-deep .mdc-checkbox__background{background-color:var(--addon-check-color, #ffb703)!important;border-color:transparent!important}.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark{opacity:1!important}.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark-path{stroke-dashoffset:0!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__background,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__background{background-color:var(--addon-check-disabled-color, #bcbcbc)!important;border-color:transparent!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__checkmark{opacity:1!important;color:#fff!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark-path,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__checkmark-path{stroke-dashoffset:0!important}.addon-checkbox--disabled-unchecked ::ng-deep .mdc-checkbox__background{background-color:#fff;border-color:var(--addon-unchecked-border, #d1d5db)!important}.addon-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:18px}.addon-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.addon-title{margin:0;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:30px;font-weight:800;line-height:1.25;letter-spacing:-.02em}.addon-amount{flex-shrink:0;font-family:Mulish,sans-serif!important;font-size:30px;font-weight:900;line-height:1.1;letter-spacing:-.03em}.addon-sum-chip{width:fit-content;display:inline-flex;align-items:center;gap:10px;padding:14px 22px;margin-left:0;border-radius:22px;background:var(--addon-chip-bg, #ffefc2);color:var(--addon-chip-color, #4a4a4a);font-family:Mulish,sans-serif!important;font-size:24px;line-height:1.2}.addon-sum-chip__label{font-weight:500}.addon-sum-chip__value{font-weight:800}.addon-divider{margin:28px 0;border-top:4px dashed var(--addon-divider-color, #ded9d1)}@media (max-width: 991px){.addon-card{padding:26px 22px;border-radius:26px}.addon-nudge{left:22px;font-size:17px}.addon-title,.addon-amount{font-size:24px}.addon-sum-chip{font-size:20px}}@media (max-width: 767px){.addon-card{padding:24px 18px 22px;border-radius:24px}.addon-item__header{gap:16px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-touch-target,.addon-checkbox ::ng-deep .mdc-checkbox__native-control,.addon-checkbox ::ng-deep .mdc-checkbox{width:34px;height:34px;flex-basis:34px}.addon-checkbox ::ng-deep .mdc-checkbox__background{width:32px;height:32px;border-width:2px!important;border-radius:6px}.addon-title-row{gap:12px}.addon-title,.addon-amount{font-size:20px}.addon-sum-chip{padding:12px 18px;font-size:18px;border-radius:18px}.addon-divider{margin:22px 0;border-top-width:3px}}@media (max-width: 575px){.addon-card{padding:20px 14px 18px;border-radius:22px}.addon-nudge{top:-18px;left:16px;gap:8px;padding:7px 14px 7px 10px;font-size:15px;border-radius:14px}.addon-title-row{flex-direction:column;align-items:flex-start}.addon-title,.addon-amount{font-size:18px}.addon-copy{gap:14px}.addon-sum-chip{width:100%;justify-content:center;flex-wrap:wrap;gap:6px;font-size:17px;text-align:center}}\n"] }]
9308
+ }], propDecorators: { addOnConfigData: [{
9309
+ type: Input
9310
+ }], addonSelectionChange: [{
9311
+ type: Output
9312
+ }] } });
9313
+
8961
9314
  class MasterControlComponent {
8962
9315
  field = input.required();
8963
9316
  formGroup = new FormGroup({});
8964
9317
  lifeCoverSliderValueChange = new EventEmitter();
9318
+ lifeCoverAddonSelectionChange = new EventEmitter();
8965
9319
  constructor() {
8966
9320
  effect(() => {
8967
9321
  initializeFieldNameAttribute(this.field());
@@ -8970,8 +9324,11 @@ class MasterControlComponent {
8970
9324
  onLifeCoverSliderValueChange(event) {
8971
9325
  this.lifeCoverSliderValueChange.emit(event);
8972
9326
  }
9327
+ onLifeCoverAddonSelectionChange(event) {
9328
+ this.lifeCoverAddonSelectionChange.emit(event);
9329
+ }
8973
9330
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8974
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: MasterControlComponent, isStandalone: true, selector: "lib-master-control", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { lifeCoverSliderValueChange: "lifeCoverSliderValueChange" }, ngImport: i0, template: "@switch (field()?.controlType) {\n @case ('top-header') {\n <lib-top-header [field]=\"field()\" />\n }\n @case ('footer') {\n <lib-footer [field]=\"field()\" />\n }\n @case('footer-buttons')\n {\n <lib-footer-with-buttons [field]=\"field()\"></lib-footer-with-buttons>\n }\n @case('text') {\n <lib-textbox [field]=\"field()\"></lib-textbox>\n }\n @case('select') {\n <lib-select [field]=\"field()\"/>\n }\n\n @case('radio') {\n <lib-radio [field]=\"field()\" />\n }\n\n @case('toggle') {\n <lib-toggle [field]=\"field()\" />\n }\n\n @case('file') {\n <lib-upload [field]=\"field()\" />\n }\n\n @case('date') {\n <lib-dob [field]=\"field()\" />\n }\n\n @case('mobileNumber') {\n <lib-mob-number [field]=\"field()\" />\n }\n\n @case('info') {\n <lib-info [field]=\"field()\" />\n }\n\n @case('checkbox') {\n <lib-checkbox [field]=\"field()\" />\n }\n\n @case('textarea') {\n <lib-textarea [field]=\"field()\" />\n }\n\n @case ('button') {\n <lib-button [field]=\"field()\" />\n }\n\n @case ('tab') {\n <lib-tab [field]=\"field()\" />\n }\n\n @case ('autocomplete') {\n <lib-autocomplete [field]=\"field()\" />\n }\n\n @case ('multipleSelect') {\n <lib-multiple-select [field]=\"field()\" />\n }\n\n @case ('textboxWithSelect') {\n <lib-select-textbox [field]=\"field()\" />\n }\n\n @case ('otpTextbox') {\n <lib-otp-textbox [field]=\"field()\" />\n }\n\n @case ('amountTextbox') {\n <lib-amount-textbox [field]=\"field()\" />\n }\n\n @case ('suffixTextbox') {\n <lib-suffix-textbox [field]=\"field()\" />\n }\n\n @case ('otpMobNumber') {\n <lib-otp-mob-number [field]=\"field()\" />\n }\n\n @case ('tagMobNumber') {\n <lib-tag-mob-number [field]=\"field()\" />\n }\n\n @case ('dateWithAge') {\n <lib-age-date [field]=\"field()\" />\n }\n\n @case ('additionButton') {\n <lib-addition-button [field]=\"field()\" />\n }\n\n @case ('infoTextbox') {\n <lib-info-textbox [field]=\"field()\" />\n }\n\n @case ('textboxWithImage') {\n <lib-textbox-with-image [field]=\"field()\" />\n }\n\n @case ('emailWithDomain') {\n <lib-email-with-domain [field]=\"field()\" />\n }\n\n @case ('imageUpload') {\n <lib-image-upload [field]=\"field()\" />\n }\n\n @case ('downloadDocument') {\n <lib-download-document [field]=\"field()\" />\n }\n\n @case ('addDocument') {\n <lib-add-document [field]=\"field()\" />\n }\n\n @case ('hyperlink') {\n <lib-hyperlink [field]=\"field()\" />\n }\n\n @case ('textboxWithUnderscore') {\n <lib-textbox-with-underscore [field]=\"field()\" />\n }\n\n @case ('underscoreMobNumber') {\n <lib-underscore-mob-number [field]=\"field()\" />\n }\n\n @case ('downloadIconButton') {\n <lib-icon-button [field]=\"field()\" />\n }\n\n @case ('image') {\n <lib-image [field]=\"field()\" />\n }\n @case ('stepper') {\n <lib-stepper [field]=\"field()\" />\n }\n @case ('card') {\n <lib-card [field]=\"field()\" />\n }\n @case ('hrLine') {\n <lib-hr-line [field]=\"field()\" />\n }\n @case ('searchMultiSelect') {\n <lib-search-multi-select [field]=\"field()\" />\n }\n @case ('subscriptTextbox') {\n <lib-subscript-textbox [field]=\"field()\" />\n }\n @case ('label') {\n <lib-label [field]=\"field()\" />\n }\n @case ('subHeading') {\n <lib-sub-header [field]=\"field()\" />\n }\n @case ('heading') {\n <lib-header [field]=\"field()\" />\n }\n @case ('table') {\n <lib-table [field]=\"field()\" />\n }\n @case ('textboxWithText') {\n <lib-textbox-with-text [field]=\"field()\" />\n }\n @case ('loader') {\n <lib-loader [field]=\"field()\" />\n }\n @case ('discount') {\n <lib-discount [field]=\"field()\" />\n }\n @case ('optionalBenefitCard') {\n <lib-benefit-card [field]=\"field()\" />\n }\n @case ('errorSnackbar') {\n <lib-error-snackbar [field]=\"field()\" />\n }\n @case ('warningSnackbar') {\n <lib-warning-snackbar [field]=\"field()\" />\n }\n @case ('successSnackbar') {\n <lib-success-snackbar [field]=\"field()\" />\n }\n @case ('neutralSnackbar') {\n <lib-neutral-snackbar [field]=\"field()\" />\n }\n @case ('boldLabel') {\n <lib-grey-label [field]=\"field()\" />\n }\n @case ('iframe') {\n <lib-iframe [field]=\"field()\" />\n }\n @case ('toggleButton') {\n <lib-toggle-button [field]=\"field()\" />\n }\n @case ('payGetCard') {\n <lib-pay-get-card [field]=\"field()\" />\n }\n @case ('inBuiltBenefit') {\n <lib-in-built-benefit [field]=\"field()\" />\n }\n @case ('otherBenefit') {\n <lib-other-benefits [field]=\"field()\" />\n }\n @case ('annuityRateLogo') {\n <lib-annuity-rate-logo [field]=\"field()\" />\n }\n @case ('discountAnnuity') {\n <lib-discount-v2 [field]=\"field()\" />\n }\n @case ('labelValue'){\n <lib-label-value-card [field]=\"field()\" />\n }\n @case ('medicalQuestions'){\n <lib-medial-questions [field]=\"field()\" />\n }\n @case ('nudge'){\n <lib-page-nudge [field]=\"field()\"/>\n }\n @case ('progressBar'){\n <lib-progress-bar [field]=\"field()\"/>\n }\n @case ('accordian'){\n <lib-accordian [field]=\"field()\"/>\n }\n @case ('miscInfo'){\n <lib-miscellaneous-info-bar [field]=\"field()\"/>\n }\n @case ('plainText'){\n <lib-plain-text [field]=\"field()\"/>\n }\n @case ('menu'){\n <lib-menu [field]=\"field()\" />\n }\n @case ('stepperWithArrow') {\n <lib-stepper-with-arrow [field]=\"field()\" />\n }\n @case ('labelWithImage') {\n <lib-label-with-image [field]=\"field()\" />\n }\n @case ('motorGlowPlanDetails') {\n <lib-motor-glow-plan-details [field]=\"field()\" />\n }\n @case ('premiumToAnnuityCalculator') {\n <lib-annuity-premium-calculator [field]=\"field()\" />\n } @case ('footerProgressBar') {\n <lib-footer-design [field]=\"field()\" />\n }\n @case ('annuityGrowthRateOption') {\n <lib-annuity-calculator-radio [field]=\"field()\" />\n }\n @case ('textboxWithRadio') {\n <lib-textbox-with-radio [field]=\"field()\" />\n }\n @case ('lifeCoverDetails') {\n <lib-life-cover-details [field]=\"field()\" (sliderValueChange)=\"onLifeCoverSliderValueChange($event)\" />\n }\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: TextboxComponent, selector: "lib-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: SelectComponent, selector: "lib-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange", "infoClick"] }, { kind: "component", type: RadioComponent, selector: "lib-radio", inputs: ["reactiveFormControlobject", "field"], outputs: ["change"] }, { kind: "component", type: ToggleComponent, selector: "lib-toggle", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: UploadComponent, selector: "lib-upload", inputs: ["documentUploaderField", "openQuoteImageObj", "field", "reactiveFormControlobject"], outputs: ["filesChanged", "fileRemoved", "filePreview"] }, { kind: "component", type: DobComponent, selector: "lib-dob", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: MobNumberComponent, selector: "lib-mob-number", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: InfoComponent, selector: "lib-info", inputs: ["field"] }, { kind: "component", type: CheckboxComponent, selector: "lib-checkbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: TextareaComponent, selector: "lib-textarea", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: ButtonComponent, selector: "lib-button", inputs: ["field"] }, { kind: "component", type: TabComponent, selector: "lib-tab", inputs: ["field"], outputs: ["selectedIndexChange"] }, { kind: "component", type: AutocompleteComponent, selector: "lib-autocomplete", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "selectionChanged", "valueChanged", "optionSelected"] }, { kind: "component", type: MultipleSelectComponent, selector: "lib-multiple-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "component", type: SelectTextboxComponent, selector: "lib-select-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "component", type: OtpTextboxComponent, selector: "lib-otp-textbox", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: AmountTextboxComponent, selector: "lib-amount-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: SuffixTextboxComponent, selector: "lib-suffix-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: OtpMobNumberComponent, selector: "lib-otp-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: TagMobNumberComponent, selector: "lib-tag-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: AgeDateComponent, selector: "lib-age-date", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: AdditionButtonComponent, selector: "lib-addition-button", inputs: ["field"] }, { kind: "component", type: InfoTextboxComponent, selector: "lib-info-textbox", inputs: ["field", "reactiveFormControlobject", "fields"], outputs: ["infoClick"] }, { kind: "component", type: TextboxWithImageComponent, selector: "lib-textbox-with-image", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: EmailWithDomainComponent, selector: "lib-email-with-domain", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: ImageUploadComponent, selector: "lib-image-upload", inputs: ["field"] }, { kind: "component", type: DownloadDocumentComponent, selector: "lib-download-document", inputs: ["field"] }, { kind: "component", type: AddDocumentComponent, selector: "lib-add-document", inputs: ["field"] }, { kind: "component", type: HyperlinkComponent, selector: "lib-hyperlink", inputs: ["field"] }, { kind: "component", type: TextboxWithUnderscoreComponent, selector: "lib-textbox-with-underscore", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: UnderscoreMobNumberComponent, selector: "lib-underscore-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: IconButtonComponent, selector: "lib-icon-button", inputs: ["field"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: ImageComponent, selector: "lib-image", inputs: ["field"] }, { kind: "component", type: StepperComponent, selector: "lib-stepper", inputs: ["field"] }, { kind: "component", type: CardComponent, selector: "lib-card", inputs: ["field"], outputs: ["cardDetailsClicked"] }, { kind: "component", type: HrLineComponent, selector: "lib-hr-line", inputs: ["field"] }, { kind: "component", type: SearchMultiSelectComponent, selector: "lib-search-multi-select", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: SubscriptTextboxComponent, selector: "lib-subscript-textbox", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: LabelComponent, selector: "lib-label", inputs: ["field"] }, { kind: "component", type: SubHeaderComponent, selector: "lib-sub-header", inputs: ["field"] }, { kind: "component", type: HeaderComponent, selector: "lib-header", inputs: ["field"] }, { kind: "component", type: TextboxWithTextComponent, selector: "lib-textbox-with-text", inputs: ["reactiveFormControlobject", "field"], outputs: ["blur"] }, { kind: "component", type: DiscountComponent, selector: "lib-discount", inputs: ["field"] }, { kind: "component", type: BenefitCardComponent, selector: "lib-benefit-card", inputs: ["field"] }, { kind: "component", type: TableComponent, selector: "lib-table", inputs: ["field", "readonly"], outputs: ["actionItemClicked", "tablePaginationClicked"] }, { kind: "component", type: LoaderComponent, selector: "lib-loader", inputs: ["field"] }, { kind: "component", type: WarningSnackbarComponent, selector: "lib-warning-snackbar", inputs: ["field"] }, { kind: "component", type: SuccessSnackbarComponent, selector: "lib-success-snackbar", inputs: ["field"] }, { kind: "component", type: NeutralSnackbarComponent, selector: "lib-neutral-snackbar", inputs: ["field"] }, { kind: "component", type: ErrorSnackbarComponent, selector: "lib-error-snackbar", inputs: ["field"] }, { kind: "component", type: GreyLabelComponent, selector: "lib-grey-label", inputs: ["field"] }, { kind: "component", type: IframeComponent, selector: "lib-iframe", inputs: ["field"] }, { kind: "component", type: ToggleButtonComponent, selector: "lib-toggle-button", inputs: ["reactiveFormControlobject", "field"], outputs: ["selectionChanged", "change"] }, { kind: "component", type: PayGetCardComponent, selector: "lib-pay-get-card", inputs: ["field", "payAmount", "premiumAmount", "ptValue", "years", "frequency", "payamountOptions"] }, { kind: "component", type: InBuiltBenefitComponent, selector: "lib-in-built-benefit", inputs: ["field", "premiumAmount", "premiumAmountShort"] }, { kind: "component", type: OtherBenefitsComponent, selector: "lib-other-benefits", inputs: ["field"] }, { kind: "component", type: AnnuityRateLogoComponent, selector: "lib-annuity-rate-logo", inputs: ["field", "ratePercent", "imageSrc"] }, { kind: "component", type: DiscountV2Component, selector: "lib-discount-v2", inputs: ["field"] }, { kind: "component", type: LabelValueCardComponent, selector: "lib-label-value-card", inputs: ["field"] }, { kind: "component", type: MedialQuestionsComponent, selector: "lib-medial-questions", inputs: ["clusterId", "triggerValidation", "locationDetails", "medialQuestionResponse", "personUWOpenQuoteResponse", "defaultValues", "personType", "field"], outputs: ["questionsValueChange", "locationDetailsChange"] }, { kind: "component", type: PageNudgeComponent, selector: "lib-page-nudge", inputs: ["field"] }, { kind: "component", type: ProgressBarComponent, selector: "lib-progress-bar", inputs: ["field"] }, { kind: "component", type: AccordianComponent, selector: "lib-accordian", inputs: ["field"] }, { kind: "component", type: MiscellaneousInfoBarComponent, selector: "lib-miscellaneous-info-bar", inputs: ["field", "details"] }, { kind: "component", type: PlainTextComponent, selector: "lib-plain-text", inputs: ["field"] }, { kind: "component", type: MenuComponent, selector: "lib-menu", inputs: ["field"] }, { kind: "component", type: StepperWIthArrowComponent, selector: "lib-stepper-with-arrow", inputs: ["field", "currentStepValue", "autoProgress", "autoProgressDelay"], outputs: ["selectedStep"] }, { kind: "component", type: LabelWithImageComponent, selector: "lib-label-with-image", inputs: ["field"] }, { kind: "component", type: TopHeaderComponent, selector: "lib-top-header", inputs: ["field"] }, { kind: "component", type: FooterComponent, selector: "lib-footer", inputs: ["field"] }, { kind: "component", type: FooterWithButtonsComponent, selector: "lib-footer-with-buttons", inputs: ["field"] }, { kind: "component", type: MotorGlowPlanDetailsComponent, selector: "lib-motor-glow-plan-details", inputs: ["field"], outputs: ["editPlanClick"] }, { kind: "component", type: AnnuityPremiumCalculatorComponent, selector: "lib-annuity-premium-calculator", inputs: ["field", "triggerValidation", "premiumDetails"], outputs: ["onCalcualteButtonClick", "onGenerateSummaryClick", "onAnnuityPremiumChange", "onMinimumPremiumValueChange", "onAutioDebitValueChange", "onGuranteedAnnuityValueChange", "onDigitBossSwitchToggle", "onGrowthRateOptionSelected"] }, { kind: "component", type: FooterDesignComponent, selector: "lib-footer-design", inputs: ["field"] }, { kind: "component", type: AnnuityCalculatorRadioComponent, selector: "lib-annuity-calculator-radio", inputs: ["preSelectConfig", "reactiveFormControlobject", "field"], outputs: ["change", "growthRateChange"] }, { kind: "component", type: TextboxWithRadioComponent, selector: "lib-textbox-with-radio", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "change", "input"] }, { kind: "component", type: LifeCoverDetailsComponent, selector: "lib-life-cover-details", inputs: ["field"], outputs: ["textButtonClick", "sliderValueChange"] }] });
9331
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: MasterControlComponent, isStandalone: true, selector: "lib-master-control", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { lifeCoverSliderValueChange: "lifeCoverSliderValueChange", lifeCoverAddonSelectionChange: "lifeCoverAddonSelectionChange" }, ngImport: i0, template: "@switch (field()?.controlType) {\n @case ('top-header') {\n <lib-top-header [field]=\"field()\" />\n }\n @case ('footer') {\n <lib-footer [field]=\"field()\" />\n }\n @case('footer-buttons')\n {\n <lib-footer-with-buttons [field]=\"field()\"></lib-footer-with-buttons>\n }\n @case('text') {\n <lib-textbox [field]=\"field()\"></lib-textbox>\n }\n @case('select') {\n <lib-select [field]=\"field()\"/>\n }\n\n @case('radio') {\n <lib-radio [field]=\"field()\" />\n }\n\n @case('toggle') {\n <lib-toggle [field]=\"field()\" />\n }\n\n @case('file') {\n <lib-upload [field]=\"field()\" />\n }\n\n @case('date') {\n <lib-dob [field]=\"field()\" />\n }\n\n @case('mobileNumber') {\n <lib-mob-number [field]=\"field()\" />\n }\n\n @case('info') {\n <lib-info [field]=\"field()\" />\n }\n\n @case('checkbox') {\n <lib-checkbox [field]=\"field()\" />\n }\n\n @case('textarea') {\n <lib-textarea [field]=\"field()\" />\n }\n\n @case ('button') {\n <lib-button [field]=\"field()\" />\n }\n\n @case ('tab') {\n <lib-tab [field]=\"field()\" />\n }\n\n @case ('autocomplete') {\n <lib-autocomplete [field]=\"field()\" />\n }\n\n @case ('multipleSelect') {\n <lib-multiple-select [field]=\"field()\" />\n }\n\n @case ('textboxWithSelect') {\n <lib-select-textbox [field]=\"field()\" />\n }\n\n @case ('otpTextbox') {\n <lib-otp-textbox [field]=\"field()\" />\n }\n\n @case ('amountTextbox') {\n <lib-amount-textbox [field]=\"field()\" />\n }\n\n @case ('suffixTextbox') {\n <lib-suffix-textbox [field]=\"field()\" />\n }\n\n @case ('otpMobNumber') {\n <lib-otp-mob-number [field]=\"field()\" />\n }\n\n @case ('tagMobNumber') {\n <lib-tag-mob-number [field]=\"field()\" />\n }\n\n @case ('dateWithAge') {\n <lib-age-date [field]=\"field()\" />\n }\n\n @case ('additionButton') {\n <lib-addition-button [field]=\"field()\" />\n }\n\n @case ('infoTextbox') {\n <lib-info-textbox [field]=\"field()\" />\n }\n\n @case ('textboxWithImage') {\n <lib-textbox-with-image [field]=\"field()\" />\n }\n\n @case ('emailWithDomain') {\n <lib-email-with-domain [field]=\"field()\" />\n }\n\n @case ('imageUpload') {\n <lib-image-upload [field]=\"field()\" />\n }\n\n @case ('downloadDocument') {\n <lib-download-document [field]=\"field()\" />\n }\n\n @case ('addDocument') {\n <lib-add-document [field]=\"field()\" />\n }\n\n @case ('hyperlink') {\n <lib-hyperlink [field]=\"field()\" />\n }\n\n @case ('textboxWithUnderscore') {\n <lib-textbox-with-underscore [field]=\"field()\" />\n }\n\n @case ('underscoreMobNumber') {\n <lib-underscore-mob-number [field]=\"field()\" />\n }\n\n @case ('downloadIconButton') {\n <lib-icon-button [field]=\"field()\" />\n }\n\n @case ('image') {\n <lib-image [field]=\"field()\" />\n }\n @case ('stepper') {\n <lib-stepper [field]=\"field()\" />\n }\n @case ('card') {\n <lib-card [field]=\"field()\" />\n }\n @case ('hrLine') {\n <lib-hr-line [field]=\"field()\" />\n }\n @case ('searchMultiSelect') {\n <lib-search-multi-select [field]=\"field()\" />\n }\n @case ('subscriptTextbox') {\n <lib-subscript-textbox [field]=\"field()\" />\n }\n @case ('label') {\n <lib-label [field]=\"field()\" />\n }\n @case ('subHeading') {\n <lib-sub-header [field]=\"field()\" />\n }\n @case ('heading') {\n <lib-header [field]=\"field()\" />\n }\n @case ('table') {\n <lib-table [field]=\"field()\" />\n }\n @case ('textboxWithText') {\n <lib-textbox-with-text [field]=\"field()\" />\n }\n @case ('loader') {\n <lib-loader [field]=\"field()\" />\n }\n @case ('discount') {\n <lib-discount [field]=\"field()\" />\n }\n @case ('optionalBenefitCard') {\n <lib-benefit-card [field]=\"field()\" />\n }\n @case ('errorSnackbar') {\n <lib-error-snackbar [field]=\"field()\" />\n }\n @case ('warningSnackbar') {\n <lib-warning-snackbar [field]=\"field()\" />\n }\n @case ('successSnackbar') {\n <lib-success-snackbar [field]=\"field()\" />\n }\n @case ('neutralSnackbar') {\n <lib-neutral-snackbar [field]=\"field()\" />\n }\n @case ('boldLabel') {\n <lib-grey-label [field]=\"field()\" />\n }\n @case ('iframe') {\n <lib-iframe [field]=\"field()\" />\n }\n @case ('toggleButton') {\n <lib-toggle-button [field]=\"field()\" />\n }\n @case ('payGetCard') {\n <lib-pay-get-card [field]=\"field()\" />\n }\n @case ('inBuiltBenefit') {\n <lib-in-built-benefit [field]=\"field()\" />\n }\n @case ('otherBenefit') {\n <lib-other-benefits [field]=\"field()\" />\n }\n @case ('annuityRateLogo') {\n <lib-annuity-rate-logo [field]=\"field()\" />\n }\n @case ('discountAnnuity') {\n <lib-discount-v2 [field]=\"field()\" />\n }\n @case ('labelValue'){\n <lib-label-value-card [field]=\"field()\" />\n }\n @case ('medicalQuestions'){\n <lib-medial-questions [field]=\"field()\" />\n }\n @case ('nudge'){\n <lib-page-nudge [field]=\"field()\"/>\n }\n @case ('progressBar'){\n <lib-progress-bar [field]=\"field()\"/>\n }\n @case ('accordian'){\n <lib-accordian [field]=\"field()\"/>\n }\n @case ('miscInfo'){\n <lib-miscellaneous-info-bar [field]=\"field()\"/>\n }\n @case ('plainText'){\n <lib-plain-text [field]=\"field()\"/>\n }\n @case ('menu'){\n <lib-menu [field]=\"field()\" />\n }\n @case ('stepperWithArrow') {\n <lib-stepper-with-arrow [field]=\"field()\" />\n }\n @case ('labelWithImage') {\n <lib-label-with-image [field]=\"field()\" />\n }\n @case ('motorGlowPlanDetails') {\n <lib-motor-glow-plan-details [field]=\"field()\" />\n }\n @case ('premiumToAnnuityCalculator') {\n <lib-annuity-premium-calculator [field]=\"field()\" />\n } @case ('footerProgressBar') {\n <lib-footer-design [field]=\"field()\" />\n }\n @case ('annuityGrowthRateOption') {\n <lib-annuity-calculator-radio [field]=\"field()\" />\n }\n @case ('textboxWithRadio') {\n <lib-textbox-with-radio [field]=\"field()\" />\n }\n @case ('lifeCoverDetails') {\n <lib-life-cover-details\n [field]=\"field()\"\n [coverDetails]=\"field()?.coverDetails\"\n [termDetails]=\"field()?.termDetails\"\n [premiumDetails]=\"field()?.premiumDetails\"\n (sliderValueChange)=\"onLifeCoverSliderValueChange($event)\" />\n }\n @case ('lifeCoverDetailsView') {\n <lib-life-cover-details-view\n [field]=\"field()\"\n [summaryItems]=\"field()?.summaryItems\" />\n }\n @case ('lifeCoverDetailsPostPremiumCalculation') {\n <lib-life-cover-details-post-premium-calculation\n [field]=\"field()\"\n [premiumSummary]=\"field()?.premiumSummary\" />\n }\n @case ('lifeCoverAddonDetails') {\n <lib-life-cover-addon-details\n [field]=\"field()\"\n [addOnConfigData]=\"field()?.addOnConfigData\"\n (addonSelectionChange)=\"onLifeCoverAddonSelectionChange($event)\" />\n }\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: TextboxComponent, selector: "lib-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: SelectComponent, selector: "lib-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange", "infoClick"] }, { kind: "component", type: RadioComponent, selector: "lib-radio", inputs: ["reactiveFormControlobject", "field"], outputs: ["change"] }, { kind: "component", type: ToggleComponent, selector: "lib-toggle", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: UploadComponent, selector: "lib-upload", inputs: ["documentUploaderField", "openQuoteImageObj", "field", "reactiveFormControlobject"], outputs: ["filesChanged", "fileRemoved", "filePreview"] }, { kind: "component", type: DobComponent, selector: "lib-dob", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: MobNumberComponent, selector: "lib-mob-number", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: InfoComponent, selector: "lib-info", inputs: ["field"] }, { kind: "component", type: CheckboxComponent, selector: "lib-checkbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: TextareaComponent, selector: "lib-textarea", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: ButtonComponent, selector: "lib-button", inputs: ["field"] }, { kind: "component", type: TabComponent, selector: "lib-tab", inputs: ["field"], outputs: ["selectedIndexChange"] }, { kind: "component", type: AutocompleteComponent, selector: "lib-autocomplete", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "selectionChanged", "valueChanged", "optionSelected"] }, { kind: "component", type: MultipleSelectComponent, selector: "lib-multiple-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "component", type: SelectTextboxComponent, selector: "lib-select-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "component", type: OtpTextboxComponent, selector: "lib-otp-textbox", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: AmountTextboxComponent, selector: "lib-amount-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: SuffixTextboxComponent, selector: "lib-suffix-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: OtpMobNumberComponent, selector: "lib-otp-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: TagMobNumberComponent, selector: "lib-tag-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: AgeDateComponent, selector: "lib-age-date", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: AdditionButtonComponent, selector: "lib-addition-button", inputs: ["field"] }, { kind: "component", type: InfoTextboxComponent, selector: "lib-info-textbox", inputs: ["field", "reactiveFormControlobject", "fields"], outputs: ["infoClick"] }, { kind: "component", type: TextboxWithImageComponent, selector: "lib-textbox-with-image", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: EmailWithDomainComponent, selector: "lib-email-with-domain", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: ImageUploadComponent, selector: "lib-image-upload", inputs: ["field"] }, { kind: "component", type: DownloadDocumentComponent, selector: "lib-download-document", inputs: ["field"] }, { kind: "component", type: AddDocumentComponent, selector: "lib-add-document", inputs: ["field"] }, { kind: "component", type: HyperlinkComponent, selector: "lib-hyperlink", inputs: ["field"] }, { kind: "component", type: TextboxWithUnderscoreComponent, selector: "lib-textbox-with-underscore", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: UnderscoreMobNumberComponent, selector: "lib-underscore-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: IconButtonComponent, selector: "lib-icon-button", inputs: ["field"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: ImageComponent, selector: "lib-image", inputs: ["field"] }, { kind: "component", type: StepperComponent, selector: "lib-stepper", inputs: ["field"] }, { kind: "component", type: CardComponent, selector: "lib-card", inputs: ["field"], outputs: ["cardDetailsClicked"] }, { kind: "component", type: HrLineComponent, selector: "lib-hr-line", inputs: ["field"] }, { kind: "component", type: SearchMultiSelectComponent, selector: "lib-search-multi-select", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: SubscriptTextboxComponent, selector: "lib-subscript-textbox", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: LabelComponent, selector: "lib-label", inputs: ["field"] }, { kind: "component", type: SubHeaderComponent, selector: "lib-sub-header", inputs: ["field"] }, { kind: "component", type: HeaderComponent, selector: "lib-header", inputs: ["field"] }, { kind: "component", type: TextboxWithTextComponent, selector: "lib-textbox-with-text", inputs: ["reactiveFormControlobject", "field"], outputs: ["blur"] }, { kind: "component", type: DiscountComponent, selector: "lib-discount", inputs: ["field"] }, { kind: "component", type: BenefitCardComponent, selector: "lib-benefit-card", inputs: ["field"] }, { kind: "component", type: TableComponent, selector: "lib-table", inputs: ["field", "readonly"], outputs: ["actionItemClicked", "tablePaginationClicked"] }, { kind: "component", type: LoaderComponent, selector: "lib-loader", inputs: ["field"] }, { kind: "component", type: WarningSnackbarComponent, selector: "lib-warning-snackbar", inputs: ["field"] }, { kind: "component", type: SuccessSnackbarComponent, selector: "lib-success-snackbar", inputs: ["field"] }, { kind: "component", type: NeutralSnackbarComponent, selector: "lib-neutral-snackbar", inputs: ["field"] }, { kind: "component", type: ErrorSnackbarComponent, selector: "lib-error-snackbar", inputs: ["field"] }, { kind: "component", type: GreyLabelComponent, selector: "lib-grey-label", inputs: ["field"] }, { kind: "component", type: IframeComponent, selector: "lib-iframe", inputs: ["field"] }, { kind: "component", type: ToggleButtonComponent, selector: "lib-toggle-button", inputs: ["reactiveFormControlobject", "field"], outputs: ["selectionChanged", "change"] }, { kind: "component", type: PayGetCardComponent, selector: "lib-pay-get-card", inputs: ["field", "payAmount", "premiumAmount", "ptValue", "years", "frequency", "payamountOptions"] }, { kind: "component", type: InBuiltBenefitComponent, selector: "lib-in-built-benefit", inputs: ["field", "premiumAmount", "premiumAmountShort"] }, { kind: "component", type: OtherBenefitsComponent, selector: "lib-other-benefits", inputs: ["field"] }, { kind: "component", type: AnnuityRateLogoComponent, selector: "lib-annuity-rate-logo", inputs: ["field", "ratePercent", "imageSrc"] }, { kind: "component", type: DiscountV2Component, selector: "lib-discount-v2", inputs: ["field"] }, { kind: "component", type: LabelValueCardComponent, selector: "lib-label-value-card", inputs: ["field"] }, { kind: "component", type: MedialQuestionsComponent, selector: "lib-medial-questions", inputs: ["clusterId", "triggerValidation", "locationDetails", "medialQuestionResponse", "personUWOpenQuoteResponse", "defaultValues", "personType", "field"], outputs: ["questionsValueChange", "locationDetailsChange"] }, { kind: "component", type: PageNudgeComponent, selector: "lib-page-nudge", inputs: ["field"] }, { kind: "component", type: ProgressBarComponent, selector: "lib-progress-bar", inputs: ["field"] }, { kind: "component", type: AccordianComponent, selector: "lib-accordian", inputs: ["field"] }, { kind: "component", type: MiscellaneousInfoBarComponent, selector: "lib-miscellaneous-info-bar", inputs: ["field", "details"] }, { kind: "component", type: PlainTextComponent, selector: "lib-plain-text", inputs: ["field"] }, { kind: "component", type: MenuComponent, selector: "lib-menu", inputs: ["field"] }, { kind: "component", type: StepperWIthArrowComponent, selector: "lib-stepper-with-arrow", inputs: ["field", "currentStepValue", "autoProgress", "autoProgressDelay"], outputs: ["selectedStep"] }, { kind: "component", type: LabelWithImageComponent, selector: "lib-label-with-image", inputs: ["field"] }, { kind: "component", type: TopHeaderComponent, selector: "lib-top-header", inputs: ["field"] }, { kind: "component", type: FooterComponent, selector: "lib-footer", inputs: ["field"] }, { kind: "component", type: FooterWithButtonsComponent, selector: "lib-footer-with-buttons", inputs: ["field"] }, { kind: "component", type: MotorGlowPlanDetailsComponent, selector: "lib-motor-glow-plan-details", inputs: ["field"], outputs: ["editPlanClick"] }, { kind: "component", type: AnnuityPremiumCalculatorComponent, selector: "lib-annuity-premium-calculator", inputs: ["field", "triggerValidation", "premiumDetails"], outputs: ["onCalcualteButtonClick", "onGenerateSummaryClick", "onAnnuityPremiumChange", "onMinimumPremiumValueChange", "onAutioDebitValueChange", "onGuranteedAnnuityValueChange", "onDigitBossSwitchToggle", "onGrowthRateOptionSelected"] }, { kind: "component", type: FooterDesignComponent, selector: "lib-footer-design", inputs: ["field"] }, { kind: "component", type: AnnuityCalculatorRadioComponent, selector: "lib-annuity-calculator-radio", inputs: ["preSelectConfig", "reactiveFormControlobject", "field"], outputs: ["change", "growthRateChange"] }, { kind: "component", type: TextboxWithRadioComponent, selector: "lib-textbox-with-radio", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "change", "input"] }, { kind: "component", type: LifeCoverDetailsComponent, selector: "lib-life-cover-details", inputs: ["field", "coverDetails", "termDetails", "premiumDetails"], outputs: ["textButtonClick", "sliderValueChange"] }, { kind: "component", type: LifeCoverDetailsViewComponent, selector: "lib-life-cover-details-view", inputs: ["field", "summaryItems"] }, { kind: "component", type: LifeCoverDetailsPostPremiumCalculationComponent, selector: "lib-life-cover-details-post-premium-calculation", inputs: ["field", "premiumSummary"] }, { kind: "component", type: LifeCoverAddonDetailsComponent, selector: "lib-life-cover-addon-details", inputs: ["field", "addOnConfigData"], outputs: ["addonSelectionChange"] }] });
8975
9332
  }
8976
9333
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlComponent, decorators: [{
8977
9334
  type: Component,
@@ -9055,12 +9412,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
9055
9412
  FooterDesignComponent,
9056
9413
  AnnuityCalculatorRadioComponent,
9057
9414
  TextboxWithRadioComponent,
9058
- LifeCoverDetailsComponent
9059
- ], template: "@switch (field()?.controlType) {\n @case ('top-header') {\n <lib-top-header [field]=\"field()\" />\n }\n @case ('footer') {\n <lib-footer [field]=\"field()\" />\n }\n @case('footer-buttons')\n {\n <lib-footer-with-buttons [field]=\"field()\"></lib-footer-with-buttons>\n }\n @case('text') {\n <lib-textbox [field]=\"field()\"></lib-textbox>\n }\n @case('select') {\n <lib-select [field]=\"field()\"/>\n }\n\n @case('radio') {\n <lib-radio [field]=\"field()\" />\n }\n\n @case('toggle') {\n <lib-toggle [field]=\"field()\" />\n }\n\n @case('file') {\n <lib-upload [field]=\"field()\" />\n }\n\n @case('date') {\n <lib-dob [field]=\"field()\" />\n }\n\n @case('mobileNumber') {\n <lib-mob-number [field]=\"field()\" />\n }\n\n @case('info') {\n <lib-info [field]=\"field()\" />\n }\n\n @case('checkbox') {\n <lib-checkbox [field]=\"field()\" />\n }\n\n @case('textarea') {\n <lib-textarea [field]=\"field()\" />\n }\n\n @case ('button') {\n <lib-button [field]=\"field()\" />\n }\n\n @case ('tab') {\n <lib-tab [field]=\"field()\" />\n }\n\n @case ('autocomplete') {\n <lib-autocomplete [field]=\"field()\" />\n }\n\n @case ('multipleSelect') {\n <lib-multiple-select [field]=\"field()\" />\n }\n\n @case ('textboxWithSelect') {\n <lib-select-textbox [field]=\"field()\" />\n }\n\n @case ('otpTextbox') {\n <lib-otp-textbox [field]=\"field()\" />\n }\n\n @case ('amountTextbox') {\n <lib-amount-textbox [field]=\"field()\" />\n }\n\n @case ('suffixTextbox') {\n <lib-suffix-textbox [field]=\"field()\" />\n }\n\n @case ('otpMobNumber') {\n <lib-otp-mob-number [field]=\"field()\" />\n }\n\n @case ('tagMobNumber') {\n <lib-tag-mob-number [field]=\"field()\" />\n }\n\n @case ('dateWithAge') {\n <lib-age-date [field]=\"field()\" />\n }\n\n @case ('additionButton') {\n <lib-addition-button [field]=\"field()\" />\n }\n\n @case ('infoTextbox') {\n <lib-info-textbox [field]=\"field()\" />\n }\n\n @case ('textboxWithImage') {\n <lib-textbox-with-image [field]=\"field()\" />\n }\n\n @case ('emailWithDomain') {\n <lib-email-with-domain [field]=\"field()\" />\n }\n\n @case ('imageUpload') {\n <lib-image-upload [field]=\"field()\" />\n }\n\n @case ('downloadDocument') {\n <lib-download-document [field]=\"field()\" />\n }\n\n @case ('addDocument') {\n <lib-add-document [field]=\"field()\" />\n }\n\n @case ('hyperlink') {\n <lib-hyperlink [field]=\"field()\" />\n }\n\n @case ('textboxWithUnderscore') {\n <lib-textbox-with-underscore [field]=\"field()\" />\n }\n\n @case ('underscoreMobNumber') {\n <lib-underscore-mob-number [field]=\"field()\" />\n }\n\n @case ('downloadIconButton') {\n <lib-icon-button [field]=\"field()\" />\n }\n\n @case ('image') {\n <lib-image [field]=\"field()\" />\n }\n @case ('stepper') {\n <lib-stepper [field]=\"field()\" />\n }\n @case ('card') {\n <lib-card [field]=\"field()\" />\n }\n @case ('hrLine') {\n <lib-hr-line [field]=\"field()\" />\n }\n @case ('searchMultiSelect') {\n <lib-search-multi-select [field]=\"field()\" />\n }\n @case ('subscriptTextbox') {\n <lib-subscript-textbox [field]=\"field()\" />\n }\n @case ('label') {\n <lib-label [field]=\"field()\" />\n }\n @case ('subHeading') {\n <lib-sub-header [field]=\"field()\" />\n }\n @case ('heading') {\n <lib-header [field]=\"field()\" />\n }\n @case ('table') {\n <lib-table [field]=\"field()\" />\n }\n @case ('textboxWithText') {\n <lib-textbox-with-text [field]=\"field()\" />\n }\n @case ('loader') {\n <lib-loader [field]=\"field()\" />\n }\n @case ('discount') {\n <lib-discount [field]=\"field()\" />\n }\n @case ('optionalBenefitCard') {\n <lib-benefit-card [field]=\"field()\" />\n }\n @case ('errorSnackbar') {\n <lib-error-snackbar [field]=\"field()\" />\n }\n @case ('warningSnackbar') {\n <lib-warning-snackbar [field]=\"field()\" />\n }\n @case ('successSnackbar') {\n <lib-success-snackbar [field]=\"field()\" />\n }\n @case ('neutralSnackbar') {\n <lib-neutral-snackbar [field]=\"field()\" />\n }\n @case ('boldLabel') {\n <lib-grey-label [field]=\"field()\" />\n }\n @case ('iframe') {\n <lib-iframe [field]=\"field()\" />\n }\n @case ('toggleButton') {\n <lib-toggle-button [field]=\"field()\" />\n }\n @case ('payGetCard') {\n <lib-pay-get-card [field]=\"field()\" />\n }\n @case ('inBuiltBenefit') {\n <lib-in-built-benefit [field]=\"field()\" />\n }\n @case ('otherBenefit') {\n <lib-other-benefits [field]=\"field()\" />\n }\n @case ('annuityRateLogo') {\n <lib-annuity-rate-logo [field]=\"field()\" />\n }\n @case ('discountAnnuity') {\n <lib-discount-v2 [field]=\"field()\" />\n }\n @case ('labelValue'){\n <lib-label-value-card [field]=\"field()\" />\n }\n @case ('medicalQuestions'){\n <lib-medial-questions [field]=\"field()\" />\n }\n @case ('nudge'){\n <lib-page-nudge [field]=\"field()\"/>\n }\n @case ('progressBar'){\n <lib-progress-bar [field]=\"field()\"/>\n }\n @case ('accordian'){\n <lib-accordian [field]=\"field()\"/>\n }\n @case ('miscInfo'){\n <lib-miscellaneous-info-bar [field]=\"field()\"/>\n }\n @case ('plainText'){\n <lib-plain-text [field]=\"field()\"/>\n }\n @case ('menu'){\n <lib-menu [field]=\"field()\" />\n }\n @case ('stepperWithArrow') {\n <lib-stepper-with-arrow [field]=\"field()\" />\n }\n @case ('labelWithImage') {\n <lib-label-with-image [field]=\"field()\" />\n }\n @case ('motorGlowPlanDetails') {\n <lib-motor-glow-plan-details [field]=\"field()\" />\n }\n @case ('premiumToAnnuityCalculator') {\n <lib-annuity-premium-calculator [field]=\"field()\" />\n } @case ('footerProgressBar') {\n <lib-footer-design [field]=\"field()\" />\n }\n @case ('annuityGrowthRateOption') {\n <lib-annuity-calculator-radio [field]=\"field()\" />\n }\n @case ('textboxWithRadio') {\n <lib-textbox-with-radio [field]=\"field()\" />\n }\n @case ('lifeCoverDetails') {\n <lib-life-cover-details [field]=\"field()\" (sliderValueChange)=\"onLifeCoverSliderValueChange($event)\" />\n }\n}\n" }]
9415
+ LifeCoverDetailsComponent,
9416
+ LifeCoverDetailsViewComponent,
9417
+ LifeCoverDetailsPostPremiumCalculationComponent,
9418
+ LifeCoverAddonDetailsComponent
9419
+ ], template: "@switch (field()?.controlType) {\n @case ('top-header') {\n <lib-top-header [field]=\"field()\" />\n }\n @case ('footer') {\n <lib-footer [field]=\"field()\" />\n }\n @case('footer-buttons')\n {\n <lib-footer-with-buttons [field]=\"field()\"></lib-footer-with-buttons>\n }\n @case('text') {\n <lib-textbox [field]=\"field()\"></lib-textbox>\n }\n @case('select') {\n <lib-select [field]=\"field()\"/>\n }\n\n @case('radio') {\n <lib-radio [field]=\"field()\" />\n }\n\n @case('toggle') {\n <lib-toggle [field]=\"field()\" />\n }\n\n @case('file') {\n <lib-upload [field]=\"field()\" />\n }\n\n @case('date') {\n <lib-dob [field]=\"field()\" />\n }\n\n @case('mobileNumber') {\n <lib-mob-number [field]=\"field()\" />\n }\n\n @case('info') {\n <lib-info [field]=\"field()\" />\n }\n\n @case('checkbox') {\n <lib-checkbox [field]=\"field()\" />\n }\n\n @case('textarea') {\n <lib-textarea [field]=\"field()\" />\n }\n\n @case ('button') {\n <lib-button [field]=\"field()\" />\n }\n\n @case ('tab') {\n <lib-tab [field]=\"field()\" />\n }\n\n @case ('autocomplete') {\n <lib-autocomplete [field]=\"field()\" />\n }\n\n @case ('multipleSelect') {\n <lib-multiple-select [field]=\"field()\" />\n }\n\n @case ('textboxWithSelect') {\n <lib-select-textbox [field]=\"field()\" />\n }\n\n @case ('otpTextbox') {\n <lib-otp-textbox [field]=\"field()\" />\n }\n\n @case ('amountTextbox') {\n <lib-amount-textbox [field]=\"field()\" />\n }\n\n @case ('suffixTextbox') {\n <lib-suffix-textbox [field]=\"field()\" />\n }\n\n @case ('otpMobNumber') {\n <lib-otp-mob-number [field]=\"field()\" />\n }\n\n @case ('tagMobNumber') {\n <lib-tag-mob-number [field]=\"field()\" />\n }\n\n @case ('dateWithAge') {\n <lib-age-date [field]=\"field()\" />\n }\n\n @case ('additionButton') {\n <lib-addition-button [field]=\"field()\" />\n }\n\n @case ('infoTextbox') {\n <lib-info-textbox [field]=\"field()\" />\n }\n\n @case ('textboxWithImage') {\n <lib-textbox-with-image [field]=\"field()\" />\n }\n\n @case ('emailWithDomain') {\n <lib-email-with-domain [field]=\"field()\" />\n }\n\n @case ('imageUpload') {\n <lib-image-upload [field]=\"field()\" />\n }\n\n @case ('downloadDocument') {\n <lib-download-document [field]=\"field()\" />\n }\n\n @case ('addDocument') {\n <lib-add-document [field]=\"field()\" />\n }\n\n @case ('hyperlink') {\n <lib-hyperlink [field]=\"field()\" />\n }\n\n @case ('textboxWithUnderscore') {\n <lib-textbox-with-underscore [field]=\"field()\" />\n }\n\n @case ('underscoreMobNumber') {\n <lib-underscore-mob-number [field]=\"field()\" />\n }\n\n @case ('downloadIconButton') {\n <lib-icon-button [field]=\"field()\" />\n }\n\n @case ('image') {\n <lib-image [field]=\"field()\" />\n }\n @case ('stepper') {\n <lib-stepper [field]=\"field()\" />\n }\n @case ('card') {\n <lib-card [field]=\"field()\" />\n }\n @case ('hrLine') {\n <lib-hr-line [field]=\"field()\" />\n }\n @case ('searchMultiSelect') {\n <lib-search-multi-select [field]=\"field()\" />\n }\n @case ('subscriptTextbox') {\n <lib-subscript-textbox [field]=\"field()\" />\n }\n @case ('label') {\n <lib-label [field]=\"field()\" />\n }\n @case ('subHeading') {\n <lib-sub-header [field]=\"field()\" />\n }\n @case ('heading') {\n <lib-header [field]=\"field()\" />\n }\n @case ('table') {\n <lib-table [field]=\"field()\" />\n }\n @case ('textboxWithText') {\n <lib-textbox-with-text [field]=\"field()\" />\n }\n @case ('loader') {\n <lib-loader [field]=\"field()\" />\n }\n @case ('discount') {\n <lib-discount [field]=\"field()\" />\n }\n @case ('optionalBenefitCard') {\n <lib-benefit-card [field]=\"field()\" />\n }\n @case ('errorSnackbar') {\n <lib-error-snackbar [field]=\"field()\" />\n }\n @case ('warningSnackbar') {\n <lib-warning-snackbar [field]=\"field()\" />\n }\n @case ('successSnackbar') {\n <lib-success-snackbar [field]=\"field()\" />\n }\n @case ('neutralSnackbar') {\n <lib-neutral-snackbar [field]=\"field()\" />\n }\n @case ('boldLabel') {\n <lib-grey-label [field]=\"field()\" />\n }\n @case ('iframe') {\n <lib-iframe [field]=\"field()\" />\n }\n @case ('toggleButton') {\n <lib-toggle-button [field]=\"field()\" />\n }\n @case ('payGetCard') {\n <lib-pay-get-card [field]=\"field()\" />\n }\n @case ('inBuiltBenefit') {\n <lib-in-built-benefit [field]=\"field()\" />\n }\n @case ('otherBenefit') {\n <lib-other-benefits [field]=\"field()\" />\n }\n @case ('annuityRateLogo') {\n <lib-annuity-rate-logo [field]=\"field()\" />\n }\n @case ('discountAnnuity') {\n <lib-discount-v2 [field]=\"field()\" />\n }\n @case ('labelValue'){\n <lib-label-value-card [field]=\"field()\" />\n }\n @case ('medicalQuestions'){\n <lib-medial-questions [field]=\"field()\" />\n }\n @case ('nudge'){\n <lib-page-nudge [field]=\"field()\"/>\n }\n @case ('progressBar'){\n <lib-progress-bar [field]=\"field()\"/>\n }\n @case ('accordian'){\n <lib-accordian [field]=\"field()\"/>\n }\n @case ('miscInfo'){\n <lib-miscellaneous-info-bar [field]=\"field()\"/>\n }\n @case ('plainText'){\n <lib-plain-text [field]=\"field()\"/>\n }\n @case ('menu'){\n <lib-menu [field]=\"field()\" />\n }\n @case ('stepperWithArrow') {\n <lib-stepper-with-arrow [field]=\"field()\" />\n }\n @case ('labelWithImage') {\n <lib-label-with-image [field]=\"field()\" />\n }\n @case ('motorGlowPlanDetails') {\n <lib-motor-glow-plan-details [field]=\"field()\" />\n }\n @case ('premiumToAnnuityCalculator') {\n <lib-annuity-premium-calculator [field]=\"field()\" />\n } @case ('footerProgressBar') {\n <lib-footer-design [field]=\"field()\" />\n }\n @case ('annuityGrowthRateOption') {\n <lib-annuity-calculator-radio [field]=\"field()\" />\n }\n @case ('textboxWithRadio') {\n <lib-textbox-with-radio [field]=\"field()\" />\n }\n @case ('lifeCoverDetails') {\n <lib-life-cover-details\n [field]=\"field()\"\n [coverDetails]=\"field()?.coverDetails\"\n [termDetails]=\"field()?.termDetails\"\n [premiumDetails]=\"field()?.premiumDetails\"\n (sliderValueChange)=\"onLifeCoverSliderValueChange($event)\" />\n }\n @case ('lifeCoverDetailsView') {\n <lib-life-cover-details-view\n [field]=\"field()\"\n [summaryItems]=\"field()?.summaryItems\" />\n }\n @case ('lifeCoverDetailsPostPremiumCalculation') {\n <lib-life-cover-details-post-premium-calculation\n [field]=\"field()\"\n [premiumSummary]=\"field()?.premiumSummary\" />\n }\n @case ('lifeCoverAddonDetails') {\n <lib-life-cover-addon-details\n [field]=\"field()\"\n [addOnConfigData]=\"field()?.addOnConfigData\"\n (addonSelectionChange)=\"onLifeCoverAddonSelectionChange($event)\" />\n }\n}\n" }]
9060
9420
  }], ctorParameters: () => [], propDecorators: { formGroup: [{
9061
9421
  type: Input
9062
9422
  }], lifeCoverSliderValueChange: [{
9063
9423
  type: Output
9424
+ }], lifeCoverAddonSelectionChange: [{
9425
+ type: Output
9064
9426
  }] } });
9065
9427
 
9066
9428
  /*
@@ -9071,5 +9433,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
9071
9433
  * Generated bundle index. Do not edit.
9072
9434
  */
9073
9435
 
9074
- export { AddDocumentComponent, AdditionButtonComponent, AgeDateComponent, AmountTextboxComponent, AnnuityCalculatorRadioComponent, AnnuityPremiumCalculatorComponent, AnnuityRateLogoComponent, AutocompleteComponent, BenefitCardComponent, ButtonComponent, CardComponent, CheckboxComponent, DiscountComponent, DiscountV2Component, DobComponent, DownloadDocumentComponent, EmailWithDomainComponent, ErrorSnackbarComponent, FilePreviewComponent, FooterDesignComponent, GreyLabelComponent, HeaderComponent, HrLineComponent, HyperlinkComponent, IconButtonComponent, IframeComponent, ImageComponent, ImageUploadComponent, InBuiltBenefitComponent, InfoComponent, InfoTextboxComponent, LabelComponent, LabelValueCardComponent, LabelWithImageComponent, LifeCoverDetailsComponent, LoaderComponent, MY_DATE_FORMAT, MasterControlComponent, MasterControlService, MedialQuestionsComponent, MenuComponent, MobNumberComponent, MotorGlowPlanDetailsComponent, MultipleSelectComponent, NeutralSnackbarComponent, OtherBenefitsComponent, OtpMobNumberComponent, OtpTextboxComponent, PageNudgeComponent, PayGetCardComponent, RadioComponent, SearchMultiSelectComponent, SelectComponent, SelectTextboxComponent, StepperComponent, StepperWIthArrowComponent, SubHeaderComponent, SubscriptTextboxComponent, SuccessSnackbarComponent, SuffixTextboxComponent, TabComponent, TableComponent, TextareaComponent, TextboxComponent, TextboxWithImageComponent, TextboxWithRadioComponent, TextboxWithTextComponent, TextboxWithUnderscoreComponent, ToggleButtonComponent, ToggleComponent, UnderscoreMobNumberComponent, UploadComponent, WarningSnackbarComponent };
9436
+ export { AddDocumentComponent, AdditionButtonComponent, AgeDateComponent, AmountTextboxComponent, AnnuityCalculatorRadioComponent, AnnuityPremiumCalculatorComponent, AnnuityRateLogoComponent, AutocompleteComponent, BenefitCardComponent, ButtonComponent, CardComponent, CheckboxComponent, DiscountComponent, DiscountV2Component, DobComponent, DownloadDocumentComponent, EmailWithDomainComponent, ErrorSnackbarComponent, FilePreviewComponent, FooterDesignComponent, GreyLabelComponent, HeaderComponent, HrLineComponent, HyperlinkComponent, IconButtonComponent, IframeComponent, ImageComponent, ImageUploadComponent, InBuiltBenefitComponent, InfoComponent, InfoTextboxComponent, LabelComponent, LabelValueCardComponent, LabelWithImageComponent, LifeCoverAddonDetailsComponent, LifeCoverDetailsComponent, LifeCoverDetailsPostPremiumCalculationComponent, LifeCoverDetailsViewComponent, LoaderComponent, MY_DATE_FORMAT, MasterControlComponent, MasterControlService, MedialQuestionsComponent, MenuComponent, MobNumberComponent, MotorGlowPlanDetailsComponent, MultipleSelectComponent, NeutralSnackbarComponent, OtherBenefitsComponent, OtpMobNumberComponent, OtpTextboxComponent, PageNudgeComponent, PayGetCardComponent, RadioComponent, SearchMultiSelectComponent, SelectComponent, SelectTextboxComponent, StepperComponent, StepperWIthArrowComponent, SubHeaderComponent, SubscriptTextboxComponent, SuccessSnackbarComponent, SuffixTextboxComponent, TabComponent, TableComponent, TextareaComponent, TextboxComponent, TextboxWithImageComponent, TextboxWithRadioComponent, TextboxWithTextComponent, TextboxWithUnderscoreComponent, ToggleButtonComponent, ToggleComponent, UnderscoreMobNumberComponent, UploadComponent, WarningSnackbarComponent };
9075
9437
  //# sourceMappingURL=master-control.mjs.map