master-control 0.5.12 → 0.5.14
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.
- package/esm2022/lib/life-cover-addon-details/life-cover-addon-details.component.mjs +8 -3
- package/esm2022/lib/life-cover-details/life-cover-details.component.mjs +35 -3
- package/esm2022/lib/life-cover-details-post-premium-calculation/life-cover-details-post-premium-calculation.component.mjs +158 -10
- package/esm2022/lib/master-control.component.mjs +8 -4
- package/esm2022/lib/premium-breakdown/premium-breakdown.component.mjs +96 -0
- package/esm2022/lib/vehicle-coverage-plans/vehicle-coverage-plans.component.mjs +83 -0
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/master-control.mjs +374 -16
- package/fesm2022/master-control.mjs.map +1 -1
- package/lib/life-cover-addon-details/life-cover-addon-details.component.d.ts +2 -0
- package/lib/life-cover-details/life-cover-details.component.d.ts +5 -0
- package/lib/life-cover-details-post-premium-calculation/life-cover-details-post-premium-calculation.component.d.ts +39 -3
- package/lib/premium-breakdown/premium-breakdown.component.d.ts +31 -0
- package/lib/vehicle-coverage-plans/vehicle-coverage-plans.component.d.ts +26 -0
- package/master-control-0.5.14.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/master-control-0.5.12.tgz +0 -0
|
@@ -8894,6 +8894,31 @@ class LifeCoverDetailsComponent {
|
|
|
8894
8894
|
getDecorationLabel() {
|
|
8895
8895
|
return this.coverDetailsState.coverAccentLabel || '';
|
|
8896
8896
|
}
|
|
8897
|
+
isSectionVisible(section) {
|
|
8898
|
+
const configData = this.getConfigData();
|
|
8899
|
+
const visibilityKeyMap = {
|
|
8900
|
+
cover: 'showCoverSection',
|
|
8901
|
+
term: 'showTermSection',
|
|
8902
|
+
premium: 'showPremiumSection',
|
|
8903
|
+
button: 'showButtonSection'
|
|
8904
|
+
};
|
|
8905
|
+
const configuredValue = configData[visibilityKeyMap[section]];
|
|
8906
|
+
return typeof configuredValue === 'boolean' ? configuredValue : true;
|
|
8907
|
+
}
|
|
8908
|
+
shouldShowDividerAfter(section) {
|
|
8909
|
+
if (!this.isSectionVisible(section)) {
|
|
8910
|
+
return false;
|
|
8911
|
+
}
|
|
8912
|
+
if (section === 'cover') {
|
|
8913
|
+
return this.isSectionVisible('term') || this.isSectionVisible('premium');
|
|
8914
|
+
}
|
|
8915
|
+
return this.isSectionVisible('premium');
|
|
8916
|
+
}
|
|
8917
|
+
isCompactVariant() {
|
|
8918
|
+
return this.isSectionVisible('cover')
|
|
8919
|
+
&& !this.isSectionVisible('term')
|
|
8920
|
+
&& !this.isSectionVisible('premium');
|
|
8921
|
+
}
|
|
8897
8922
|
initializeComponentState() {
|
|
8898
8923
|
this.coverDetailsState = {
|
|
8899
8924
|
...(this.coverDetails || {})
|
|
@@ -9009,12 +9034,19 @@ class LifeCoverDetailsComponent {
|
|
|
9009
9034
|
}
|
|
9010
9035
|
return Math.min(Math.max(numericValue, min), max);
|
|
9011
9036
|
}
|
|
9037
|
+
getConfigData() {
|
|
9038
|
+
const configData = this.field()?.configData;
|
|
9039
|
+
if (configData && typeof configData === 'object') {
|
|
9040
|
+
return configData;
|
|
9041
|
+
}
|
|
9042
|
+
return {};
|
|
9043
|
+
}
|
|
9012
9044
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
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"] }] });
|
|
9045
|
+
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\n class=\"life-cover-container\"\n [class.life-cover-container--compact]=\"isCompactVariant()\"\n *ngIf=\"field()?.isVisible\">\n <div class=\"life-cover-card\">\n <div class=\"control-block slider-block\" *ngIf=\"isSectionVisible('cover')\">\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\" *ngIf=\"shouldShowDividerAfter('cover')\"></div>\n\n <div class=\"control-block slider-block\" *ngIf=\"isSectionVisible('term')\">\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\" *ngIf=\"shouldShowDividerAfter('term')\"></div>\n\n <div class=\"control-block input-block\" *ngIf=\"isSectionVisible('premium')\">\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\" *ngIf=\"isSectionVisible('button')\">\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}.life-cover-container--compact{width:min(456px,100%)}.life-cover-container--compact .life-cover-card{padding:26px 24px 16px}.life-cover-container--compact .slider-block{min-height:auto;gap:14px}.life-cover-container--compact .control-label--large{font-size:18px;line-height:1.3}.life-cover-container--compact .value-badge{min-width:72px;height:42px;padding:0 14px;font-size:17px;line-height:38px}.life-cover-container--compact .scale-label,.life-cover-container--compact .hint-row span{font-size:12px}.life-cover-container--compact .button-row{padding:18px 24px 20px}.life-cover-container--compact .primary-button{height:46px;border-radius:14px;font-size:18px;box-shadow:none}.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"] }] });
|
|
9014
9046
|
}
|
|
9015
9047
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsComponent, decorators: [{
|
|
9016
9048
|
type: Component,
|
|
9017
|
-
args: [{ selector: 'lib-life-cover-details', standalone: true, imports: [CommonModule, FormsModule, MatSliderModule], template: "<div
|
|
9049
|
+
args: [{ selector: 'lib-life-cover-details', standalone: true, imports: [CommonModule, FormsModule, MatSliderModule], template: "<div\n class=\"life-cover-container\"\n [class.life-cover-container--compact]=\"isCompactVariant()\"\n *ngIf=\"field()?.isVisible\">\n <div class=\"life-cover-card\">\n <div class=\"control-block slider-block\" *ngIf=\"isSectionVisible('cover')\">\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\" *ngIf=\"shouldShowDividerAfter('cover')\"></div>\n\n <div class=\"control-block slider-block\" *ngIf=\"isSectionVisible('term')\">\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\" *ngIf=\"shouldShowDividerAfter('term')\"></div>\n\n <div class=\"control-block input-block\" *ngIf=\"isSectionVisible('premium')\">\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\" *ngIf=\"isSectionVisible('button')\">\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}.life-cover-container--compact{width:min(456px,100%)}.life-cover-container--compact .life-cover-card{padding:26px 24px 16px}.life-cover-container--compact .slider-block{min-height:auto;gap:14px}.life-cover-container--compact .control-label--large{font-size:18px;line-height:1.3}.life-cover-container--compact .value-badge{min-width:72px;height:42px;padding:0 14px;font-size:17px;line-height:38px}.life-cover-container--compact .scale-label,.life-cover-container--compact .hint-row span{font-size:12px}.life-cover-container--compact .button-row{padding:18px 24px 20px}.life-cover-container--compact .primary-button{height:46px;border-radius:14px;font-size:18px;box-shadow:none}.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
9050
|
}], propDecorators: { coverDetails: [{
|
|
9019
9051
|
type: Input
|
|
9020
9052
|
}], termDetails: [{
|
|
@@ -9086,6 +9118,9 @@ const DEFAULT_POST_PREMIUM_CONFIG = {
|
|
|
9086
9118
|
coverValue: '\u20B91 Cr',
|
|
9087
9119
|
ageLabel: 'Cover Till Age',
|
|
9088
9120
|
ageValue: '65 yrs',
|
|
9121
|
+
middleLabel: '',
|
|
9122
|
+
middleValue: '',
|
|
9123
|
+
middleSuffix: '',
|
|
9089
9124
|
firstYearLabel: '1st-Yr Premium',
|
|
9090
9125
|
firstYearValue: '\u20B911,675',
|
|
9091
9126
|
firstYearSuffix: '/yr',
|
|
@@ -9096,12 +9131,87 @@ const DEFAULT_POST_PREMIUM_CONFIG = {
|
|
|
9096
9131
|
secondaryActionLabel: 'View creative'
|
|
9097
9132
|
};
|
|
9098
9133
|
class LifeCoverDetailsPostPremiumCalculationComponent {
|
|
9099
|
-
field =
|
|
9134
|
+
field = null;
|
|
9100
9135
|
premiumSummary = null;
|
|
9101
9136
|
premiumSummaryState = { ...DEFAULT_POST_PREMIUM_CONFIG };
|
|
9137
|
+
isShowFinalQuoteSummary = false;
|
|
9138
|
+
isShowMotorPlanSummary = false;
|
|
9139
|
+
hideHeaderIcon = false;
|
|
9140
|
+
hideHeaderActionButton = false;
|
|
9141
|
+
showHeaderSuccessBadge = false;
|
|
9142
|
+
showActionButtons = false;
|
|
9143
|
+
headerActionLabel = 'View BI';
|
|
9144
|
+
primaryActionIconType = 'share';
|
|
9145
|
+
secondaryActionIconType = 'sparkle';
|
|
9146
|
+
previousIsShowFinalQuoteSummary = false;
|
|
9147
|
+
previousIsShowMotorPlanSummary = false;
|
|
9148
|
+
previousHideHeaderIcon = false;
|
|
9149
|
+
previousHideHeaderActionButton = false;
|
|
9150
|
+
previousShowHeaderSuccessBadge = false;
|
|
9151
|
+
previousShowActionButtons = false;
|
|
9152
|
+
previousHeaderActionLabel = 'View BI';
|
|
9153
|
+
previousPrimaryActionIconType = 'share';
|
|
9154
|
+
previousSecondaryActionIconType = 'sparkle';
|
|
9155
|
+
previousPremiumSummarySnapshot = '';
|
|
9102
9156
|
ngOnChanges(changes) {
|
|
9103
9157
|
if (changes['premiumSummary']) {
|
|
9104
9158
|
this.initializePremiumSummary();
|
|
9159
|
+
this.previousPremiumSummarySnapshot = this.createPremiumSummarySnapshot();
|
|
9160
|
+
}
|
|
9161
|
+
if (changes['field']) {
|
|
9162
|
+
this.syncFinalQuoteSummaryState();
|
|
9163
|
+
}
|
|
9164
|
+
}
|
|
9165
|
+
ngDoCheck() {
|
|
9166
|
+
const currentPremiumSummarySnapshot = this.createPremiumSummarySnapshot();
|
|
9167
|
+
if (currentPremiumSummarySnapshot !== this.previousPremiumSummarySnapshot) {
|
|
9168
|
+
this.previousPremiumSummarySnapshot = currentPremiumSummarySnapshot;
|
|
9169
|
+
this.initializePremiumSummary();
|
|
9170
|
+
}
|
|
9171
|
+
const currentFinalQuoteSummaryValue = this.resolveBoolean(this.field?.configData?.isShowFinalQuoteSummary, false);
|
|
9172
|
+
const currentMotorPlanSummaryValue = this.resolveBoolean(this.field?.configData?.isShowMotorPlanSummary, false);
|
|
9173
|
+
const currentHideHeaderIconValue = this.resolveBoolean(this.field?.configData?.hideHeaderIcon, false);
|
|
9174
|
+
const currentHideHeaderActionButtonValue = this.resolveBoolean(this.field?.configData?.hideHeaderActionButton, false);
|
|
9175
|
+
const currentShowHeaderSuccessBadgeValue = this.resolveBoolean(this.field?.configData?.showHeaderSuccessBadge, currentFinalQuoteSummaryValue || currentMotorPlanSummaryValue);
|
|
9176
|
+
const currentShowActionButtonsValue = this.resolveBoolean(this.field?.configData?.showActionButtons, currentFinalQuoteSummaryValue || currentMotorPlanSummaryValue);
|
|
9177
|
+
const currentHeaderActionLabel = this.resolveValue(this.field?.configData?.headerActionLabel, 'View BI');
|
|
9178
|
+
const currentPrimaryActionIconType = this.resolveActionIconType(this.field?.configData?.primaryActionIconType, currentMotorPlanSummaryValue ? 'view' : 'share');
|
|
9179
|
+
const currentSecondaryActionIconType = this.resolveActionIconType(this.field?.configData?.secondaryActionIconType, currentMotorPlanSummaryValue ? 'copy' : 'sparkle');
|
|
9180
|
+
if (currentFinalQuoteSummaryValue !== this.previousIsShowFinalQuoteSummary) {
|
|
9181
|
+
this.previousIsShowFinalQuoteSummary = currentFinalQuoteSummaryValue;
|
|
9182
|
+
this.isShowFinalQuoteSummary = currentFinalQuoteSummaryValue;
|
|
9183
|
+
}
|
|
9184
|
+
if (currentMotorPlanSummaryValue !== this.previousIsShowMotorPlanSummary) {
|
|
9185
|
+
this.previousIsShowMotorPlanSummary = currentMotorPlanSummaryValue;
|
|
9186
|
+
this.isShowMotorPlanSummary = currentMotorPlanSummaryValue;
|
|
9187
|
+
}
|
|
9188
|
+
if (currentHideHeaderIconValue !== this.previousHideHeaderIcon) {
|
|
9189
|
+
this.previousHideHeaderIcon = currentHideHeaderIconValue;
|
|
9190
|
+
this.hideHeaderIcon = currentHideHeaderIconValue;
|
|
9191
|
+
}
|
|
9192
|
+
if (currentHideHeaderActionButtonValue !== this.previousHideHeaderActionButton) {
|
|
9193
|
+
this.previousHideHeaderActionButton = currentHideHeaderActionButtonValue;
|
|
9194
|
+
this.hideHeaderActionButton = currentHideHeaderActionButtonValue;
|
|
9195
|
+
}
|
|
9196
|
+
if (currentShowHeaderSuccessBadgeValue !== this.previousShowHeaderSuccessBadge) {
|
|
9197
|
+
this.previousShowHeaderSuccessBadge = currentShowHeaderSuccessBadgeValue;
|
|
9198
|
+
this.showHeaderSuccessBadge = currentShowHeaderSuccessBadgeValue;
|
|
9199
|
+
}
|
|
9200
|
+
if (currentShowActionButtonsValue !== this.previousShowActionButtons) {
|
|
9201
|
+
this.previousShowActionButtons = currentShowActionButtonsValue;
|
|
9202
|
+
this.showActionButtons = currentShowActionButtonsValue;
|
|
9203
|
+
}
|
|
9204
|
+
if (currentHeaderActionLabel !== this.previousHeaderActionLabel) {
|
|
9205
|
+
this.previousHeaderActionLabel = currentHeaderActionLabel;
|
|
9206
|
+
this.headerActionLabel = currentHeaderActionLabel;
|
|
9207
|
+
}
|
|
9208
|
+
if (currentPrimaryActionIconType !== this.previousPrimaryActionIconType) {
|
|
9209
|
+
this.previousPrimaryActionIconType = currentPrimaryActionIconType;
|
|
9210
|
+
this.primaryActionIconType = currentPrimaryActionIconType;
|
|
9211
|
+
}
|
|
9212
|
+
if (currentSecondaryActionIconType !== this.previousSecondaryActionIconType) {
|
|
9213
|
+
this.previousSecondaryActionIconType = currentSecondaryActionIconType;
|
|
9214
|
+
this.secondaryActionIconType = currentSecondaryActionIconType;
|
|
9105
9215
|
}
|
|
9106
9216
|
}
|
|
9107
9217
|
initializePremiumSummary() {
|
|
@@ -9112,30 +9222,100 @@ class LifeCoverDetailsPostPremiumCalculationComponent {
|
|
|
9112
9222
|
coverValue: this.resolveValue(premiumSummary.coverValue, DEFAULT_POST_PREMIUM_CONFIG.coverValue),
|
|
9113
9223
|
ageLabel: this.resolveValue(premiumSummary.ageLabel, DEFAULT_POST_PREMIUM_CONFIG.ageLabel),
|
|
9114
9224
|
ageValue: this.resolveValue(premiumSummary.ageValue, DEFAULT_POST_PREMIUM_CONFIG.ageValue),
|
|
9225
|
+
middleLabel: this.resolveValue(premiumSummary.middleLabel, DEFAULT_POST_PREMIUM_CONFIG.middleLabel, true),
|
|
9226
|
+
middleValue: this.resolveValue(premiumSummary.middleValue, DEFAULT_POST_PREMIUM_CONFIG.middleValue, true),
|
|
9227
|
+
middleSuffix: this.resolveValue(premiumSummary.middleSuffix, DEFAULT_POST_PREMIUM_CONFIG.middleSuffix, true),
|
|
9115
9228
|
firstYearLabel: this.resolveValue(premiumSummary.firstYearLabel, DEFAULT_POST_PREMIUM_CONFIG.firstYearLabel),
|
|
9116
9229
|
firstYearValue: this.resolveValue(premiumSummary.firstYearValue, DEFAULT_POST_PREMIUM_CONFIG.firstYearValue),
|
|
9117
|
-
firstYearSuffix: this.resolveValue(premiumSummary.firstYearSuffix, DEFAULT_POST_PREMIUM_CONFIG.firstYearSuffix),
|
|
9230
|
+
firstYearSuffix: this.resolveValue(premiumSummary.firstYearSuffix, DEFAULT_POST_PREMIUM_CONFIG.firstYearSuffix, true),
|
|
9118
9231
|
renewalLabel: this.resolveValue(premiumSummary.renewalLabel, DEFAULT_POST_PREMIUM_CONFIG.renewalLabel),
|
|
9119
9232
|
renewalValue: this.resolveValue(premiumSummary.renewalValue, DEFAULT_POST_PREMIUM_CONFIG.renewalValue),
|
|
9120
|
-
renewalSuffix: this.resolveValue(premiumSummary.renewalSuffix, DEFAULT_POST_PREMIUM_CONFIG.renewalSuffix),
|
|
9233
|
+
renewalSuffix: this.resolveValue(premiumSummary.renewalSuffix, DEFAULT_POST_PREMIUM_CONFIG.renewalSuffix, true),
|
|
9121
9234
|
primaryActionLabel: this.resolveValue(premiumSummary.primaryActionLabel, DEFAULT_POST_PREMIUM_CONFIG.primaryActionLabel),
|
|
9122
9235
|
secondaryActionLabel: this.resolveValue(premiumSummary.secondaryActionLabel, DEFAULT_POST_PREMIUM_CONFIG.secondaryActionLabel)
|
|
9123
9236
|
};
|
|
9124
9237
|
}
|
|
9125
|
-
|
|
9238
|
+
isHighlightedSummary() {
|
|
9239
|
+
return this.isShowFinalQuoteSummary || this.isShowMotorPlanSummary;
|
|
9240
|
+
}
|
|
9241
|
+
hasMiddleSection() {
|
|
9242
|
+
return !!(this.premiumSummaryState.middleLabel || this.premiumSummaryState.middleValue);
|
|
9243
|
+
}
|
|
9244
|
+
hasMiddleSuffix() {
|
|
9245
|
+
return !!this.premiumSummaryState.middleSuffix;
|
|
9246
|
+
}
|
|
9247
|
+
hasFirstYearSuffix() {
|
|
9248
|
+
return !!this.premiumSummaryState.firstYearSuffix;
|
|
9249
|
+
}
|
|
9250
|
+
hasRenewalSuffix() {
|
|
9251
|
+
return !!this.premiumSummaryState.renewalSuffix;
|
|
9252
|
+
}
|
|
9253
|
+
isPrimaryActionFilled() {
|
|
9254
|
+
return this.isShowMotorPlanSummary;
|
|
9255
|
+
}
|
|
9256
|
+
getPrimaryActionLabel() {
|
|
9257
|
+
return this.premiumSummaryState.primaryActionLabel || DEFAULT_POST_PREMIUM_CONFIG.primaryActionLabel;
|
|
9258
|
+
}
|
|
9259
|
+
getSecondaryActionLabel() {
|
|
9260
|
+
return this.premiumSummaryState.secondaryActionLabel || DEFAULT_POST_PREMIUM_CONFIG.secondaryActionLabel;
|
|
9261
|
+
}
|
|
9262
|
+
syncFinalQuoteSummaryState() {
|
|
9263
|
+
const configData = this.field?.configData || {};
|
|
9264
|
+
this.isShowFinalQuoteSummary = this.resolveBoolean(configData.isShowFinalQuoteSummary, false);
|
|
9265
|
+
this.isShowMotorPlanSummary = this.resolveBoolean(configData.isShowMotorPlanSummary, false);
|
|
9266
|
+
this.hideHeaderIcon = this.resolveBoolean(configData.hideHeaderIcon, false);
|
|
9267
|
+
this.hideHeaderActionButton = this.resolveBoolean(configData.hideHeaderActionButton, false);
|
|
9268
|
+
this.showHeaderSuccessBadge = this.resolveBoolean(configData.showHeaderSuccessBadge, this.isHighlightedSummary());
|
|
9269
|
+
this.showActionButtons = this.resolveBoolean(configData.showActionButtons, this.isHighlightedSummary());
|
|
9270
|
+
this.headerActionLabel = this.resolveValue(configData.headerActionLabel, 'View BI');
|
|
9271
|
+
this.primaryActionIconType = this.resolveActionIconType(configData.primaryActionIconType, this.isShowMotorPlanSummary ? 'view' : 'share');
|
|
9272
|
+
this.secondaryActionIconType = this.resolveActionIconType(configData.secondaryActionIconType, this.isShowMotorPlanSummary ? 'copy' : 'sparkle');
|
|
9273
|
+
this.previousIsShowFinalQuoteSummary = this.isShowFinalQuoteSummary;
|
|
9274
|
+
this.previousIsShowMotorPlanSummary = this.isShowMotorPlanSummary;
|
|
9275
|
+
this.previousHideHeaderIcon = this.hideHeaderIcon;
|
|
9276
|
+
this.previousHideHeaderActionButton = this.hideHeaderActionButton;
|
|
9277
|
+
this.previousShowHeaderSuccessBadge = this.showHeaderSuccessBadge;
|
|
9278
|
+
this.previousShowActionButtons = this.showActionButtons;
|
|
9279
|
+
this.previousHeaderActionLabel = this.headerActionLabel;
|
|
9280
|
+
this.previousPrimaryActionIconType = this.primaryActionIconType;
|
|
9281
|
+
this.previousSecondaryActionIconType = this.secondaryActionIconType;
|
|
9282
|
+
}
|
|
9283
|
+
createPremiumSummarySnapshot() {
|
|
9284
|
+
return JSON.stringify(this.premiumSummary || {});
|
|
9285
|
+
}
|
|
9286
|
+
resolveValue(value, fallback, allowEmpty = false) {
|
|
9126
9287
|
if (typeof value === 'string') {
|
|
9127
9288
|
const trimmedValue = value.trim();
|
|
9128
|
-
|
|
9289
|
+
if (trimmedValue) {
|
|
9290
|
+
return trimmedValue;
|
|
9291
|
+
}
|
|
9292
|
+
if (allowEmpty) {
|
|
9293
|
+
return '';
|
|
9294
|
+
}
|
|
9295
|
+
}
|
|
9296
|
+
return fallback;
|
|
9297
|
+
}
|
|
9298
|
+
resolveBoolean(value, fallback) {
|
|
9299
|
+
if (typeof value === 'boolean') {
|
|
9300
|
+
return value;
|
|
9301
|
+
}
|
|
9302
|
+
return fallback;
|
|
9303
|
+
}
|
|
9304
|
+
resolveActionIconType(value, fallback) {
|
|
9305
|
+
if (value === 'share' || value === 'sparkle' || value === 'view' || value === 'copy') {
|
|
9306
|
+
return value;
|
|
9129
9307
|
}
|
|
9130
9308
|
return fallback;
|
|
9131
9309
|
}
|
|
9132
9310
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsPostPremiumCalculationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9133
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: LifeCoverDetailsPostPremiumCalculationComponent, isStandalone: true, selector: "lib-life-cover-details-post-premium-calculation", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, premiumSummary: { classPropertyName: "premiumSummary", publicName: "premiumSummary", isSignal: false, isRequired: false, transformFunction: null } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"post-premium-wrapper\" *ngIf=\"field()?.isVisible\">\n <div class=\"post-premium-card\">\n <div class=\"post-premium-header\">\n <h3 class=\"post-premium-title\">{{ premiumSummaryState.planName }}</h3>\n\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 </div>\n\n <div class=\"post-premium-panel\">\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 </div>\n\n <!-- <div class=\"post-premium-actions\">\n <button type=\"button\" class=\"action-button action-button--primary\">\n {{ premiumSummaryState.primaryActionLabel }}\n </button>\n\n <button type=\"button\" class=\"action-button action-button--secondary\">\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>{{ premiumSummaryState.secondaryActionLabel }}</span>\n </button>\n </div> -->\n</div>\n", styles: [".post-premium-wrapper{width:min(425px,100%);display:flex;flex-direction:column;gap:16px}.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-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom: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-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-panel{padding:16px 14px 18px;border:1px solid #ececec;border-radius:18px;background:#fff;box-shadow:0 2px 10px #273a560a}.post-premium-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.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}.metric-value{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:900;line-height:1.3}.metric-value--compact{display:inline-flex;align-items:baseline;gap:2px}.metric-suffix{font-size:13px;font-weight:700}.metric-divider{margin:12px 0 10px;border-top:2px dashed #d6d6d6}.post-premium-actions{display:flex;align-items:center;gap:12px}.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}@media (max-width: 576px){.post-premium-card{padding:16px 14px 14px;border-radius:22px}.post-premium-panel{padding:14px 12px 16px;border-radius:16px}.post-premium-grid{gap:14px}.metric-label{font-size:13px}.metric-value{font-size:17px}.post-premium-actions{flex-direction:column;align-items:stretch}.action-button{width:100%}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9311
|
+
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]=\"isHighlightedSummary()\"\n [class.post-premium-wrapper--motor]=\"isShowMotorPlanSummary\"\n *ngIf=\"field?.isVisible\">\n <div\n class=\"post-premium-card\"\n [class.post-premium-card--final]=\"isHighlightedSummary()\"\n [class.post-premium-card--motor]=\"isShowMotorPlanSummary\">\n <div class=\"post-premium-header\">\n <div class=\"post-premium-header-main\">\n <div class=\"post-premium-success-badge\" *ngIf=\"showHeaderSuccessBadge\" 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]=\"isHighlightedSummary()\">\n {{ premiumSummaryState.planName }}\n </h3>\n </div>\n\n <button\n *ngIf=\"isShowFinalQuoteSummary && !hideHeaderActionButton; else defaultPlanIcon\"\n type=\"button\"\n class=\"view-bi-button\">\n {{ headerActionLabel }}\n </button>\n\n <ng-template #defaultPlanIcon>\n <div class=\"post-premium-icon\" *ngIf=\"!hideHeaderIcon\" 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\n class=\"post-premium-panel\"\n [class.post-premium-panel--final]=\"isHighlightedSummary()\">\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 <ng-container *ngIf=\"hasMiddleSection(); else compactBottomGrid\">\n <div class=\"metric-divider\"></div>\n\n <div class=\"metric-block metric-block--full\">\n <span class=\"metric-label\">{{ premiumSummaryState.middleLabel }}</span>\n <span class=\"metric-value metric-value--compact\">\n <span>{{ premiumSummaryState.middleValue }}</span>\n <span class=\"metric-suffix\" *ngIf=\"hasMiddleSuffix()\">{{ premiumSummaryState.middleSuffix }}</span>\n </span>\n </div>\n\n <div class=\"metric-divider\"></div>\n\n <ng-container *ngTemplateOutlet=\"bottomMetrics\"></ng-container>\n </ng-container>\n\n <ng-template #compactBottomGrid>\n <div class=\"metric-divider\"></div>\n <ng-container *ngTemplateOutlet=\"bottomMetrics\"></ng-container>\n </ng-template>\n\n <ng-template #bottomMetrics>\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\" *ngIf=\"hasFirstYearSuffix()\">{{ 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\" *ngIf=\"hasRenewalSuffix()\">{{ premiumSummaryState.renewalSuffix }}</span>\n </span>\n </div>\n </div>\n </ng-template>\n </div>\n\n <div\n class=\"post-premium-actions\"\n [class.post-premium-actions--motor]=\"isShowMotorPlanSummary\"\n *ngIf=\"showActionButtons\">\n <button\n type=\"button\"\n class=\"action-button action-button--final\"\n [class.action-button--primary]=\"isPrimaryActionFilled()\"\n [class.action-button--secondary]=\"!isPrimaryActionFilled()\">\n <ng-container [ngSwitch]=\"primaryActionIconType\">\n <svg *ngSwitchCase=\"'view'\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M2.5 12s3.4-6 9.5-6 9.5 6 9.5 6-3.4 6-9.5 6-9.5-6-9.5-6Z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\" />\n <circle cx=\"12\" cy=\"12\" r=\"2.8\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" />\n </svg>\n <svg *ngSwitchCase=\"'copy'\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <rect x=\"9\" y=\"7\" width=\"10\" height=\"13\" rx=\"2\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" />\n <path\n d=\"M6 16H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\" />\n </svg>\n <svg *ngSwitchCase=\"'sparkle'\" 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 <svg *ngSwitchDefault 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 </ng-container>\n <span>{{ getPrimaryActionLabel() }}</span>\n </button>\n\n <button type=\"button\" class=\"action-button action-button--secondary action-button--final\">\n <ng-container [ngSwitch]=\"secondaryActionIconType\">\n <svg *ngSwitchCase=\"'view'\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M2.5 12s3.4-6 9.5-6 9.5 6 9.5 6-3.4 6-9.5 6-9.5-6-9.5-6Z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\" />\n <circle cx=\"12\" cy=\"12\" r=\"2.8\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" />\n </svg>\n <svg *ngSwitchCase=\"'copy'\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <rect x=\"9\" y=\"7\" width=\"10\" height=\"13\" rx=\"2\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" />\n <path\n d=\"M6 16H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\" />\n </svg>\n <svg *ngSwitchCase=\"'share'\" 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 <svg *ngSwitchDefault 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 </ng-container>\n <span>{{ getSecondaryActionLabel() }}</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-wrapper--motor{width:min(660px,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-card--motor{padding:26px 26px 24px}.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-card--motor .post-premium-header{margin-bottom:22px}.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-card--motor .post-premium-title--final{font-size:25px}.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}.post-premium-card--motor .post-premium-success-badge{width:36px;height:36px}.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-card--motor .post-premium-panel--final{padding:24px 24px 22px}.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-block--full{gap:8px;align-items:flex-start;text-align:left}.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}.post-premium-card--motor .metric-value{font-size:30px}.metric-value--compact{display:inline-flex;align-items:baseline;gap:2px;flex-wrap:wrap}.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-card--motor .metric-divider{margin:18px 0;border-top-width:3px}.post-premium-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.post-premium-card--final .post-premium-actions{margin-top:28px;gap:24px}.post-premium-actions--motor{gap:14px}.action-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;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{background:#ffb703;color:#514320;box-shadow:0 10px 18px #ffb70347}.action-button--secondary{background:#fff;border-color:#5f5f5f;color:#4e4e4e}.action-button--secondary svg{width:18px;height:18px;flex-shrink:0}.action-button--final{min-height:58px;padding:0 22px;border-width:3px;border-color:#6c6c6c;color:#343434;font-size:21px;font-weight:700;gap:10px;box-shadow:0 6px 14px #4747470f}.action-button--final svg{width:24px;height:24px}.post-premium-card--motor .action-button--primary{min-width:174px}.post-premium-card--motor .action-button--secondary{min-width:128px}@media (max-width: 576px){.post-premium-card{padding:16px 14px 14px;border-radius:22px}.post-premium-card--final{padding:22px 18px 24px}.post-premium-card--motor{padding:22px 16px}.post-premium-panel{padding:14px 12px 16px;border-radius:16px}.post-premium-panel--final{padding:20px 18px 22px;border-radius:20px}.post-premium-card--motor .post-premium-panel--final{padding:18px 16px}.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--motor .metric-value{font-size:24px}.post-premium-card--final .metric-suffix{font-size:16px}.post-premium-title--final,.post-premium-card--motor .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"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
|
|
9134
9312
|
}
|
|
9135
9313
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsPostPremiumCalculationComponent, decorators: [{
|
|
9136
9314
|
type: Component,
|
|
9137
|
-
args: [{ selector: 'lib-life-cover-details-post-premium-calculation', standalone: true, imports: [CommonModule], template: "<div class=\"post-premium-wrapper\" *ngIf=\"field()?.isVisible\">\n <div class=\"post-premium-card\">\n <div class=\"post-premium-header\">\n <h3 class=\"post-premium-title\">{{ premiumSummaryState.planName }}</h3>\n\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 </div>\n\n <div class=\"post-premium-panel\">\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 </div>\n\n <!-- <div class=\"post-premium-actions\">\n <button type=\"button\" class=\"action-button action-button--primary\">\n {{ premiumSummaryState.primaryActionLabel }}\n </button>\n\n <button type=\"button\" class=\"action-button action-button--secondary\">\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>{{ premiumSummaryState.secondaryActionLabel }}</span>\n </button>\n </div> -->\n</div>\n", styles: [".post-premium-wrapper{width:min(425px,100%);display:flex;flex-direction:column;gap:16px}.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-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom: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-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-panel{padding:16px 14px 18px;border:1px solid #ececec;border-radius:18px;background:#fff;box-shadow:0 2px 10px #273a560a}.post-premium-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.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}.metric-value{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:900;line-height:1.3}.metric-value--compact{display:inline-flex;align-items:baseline;gap:2px}.metric-suffix{font-size:13px;font-weight:700}.metric-divider{margin:12px 0 10px;border-top:2px dashed #d6d6d6}.post-premium-actions{display:flex;align-items:center;gap:12px}.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}@media (max-width: 576px){.post-premium-card{padding:16px 14px 14px;border-radius:22px}.post-premium-panel{padding:14px 12px 16px;border-radius:16px}.post-premium-grid{gap:14px}.metric-label{font-size:13px}.metric-value{font-size:17px}.post-premium-actions{flex-direction:column;align-items:stretch}.action-button{width:100%}}\n"] }]
|
|
9138
|
-
}], propDecorators: {
|
|
9315
|
+
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]=\"isHighlightedSummary()\"\n [class.post-premium-wrapper--motor]=\"isShowMotorPlanSummary\"\n *ngIf=\"field?.isVisible\">\n <div\n class=\"post-premium-card\"\n [class.post-premium-card--final]=\"isHighlightedSummary()\"\n [class.post-premium-card--motor]=\"isShowMotorPlanSummary\">\n <div class=\"post-premium-header\">\n <div class=\"post-premium-header-main\">\n <div class=\"post-premium-success-badge\" *ngIf=\"showHeaderSuccessBadge\" 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]=\"isHighlightedSummary()\">\n {{ premiumSummaryState.planName }}\n </h3>\n </div>\n\n <button\n *ngIf=\"isShowFinalQuoteSummary && !hideHeaderActionButton; else defaultPlanIcon\"\n type=\"button\"\n class=\"view-bi-button\">\n {{ headerActionLabel }}\n </button>\n\n <ng-template #defaultPlanIcon>\n <div class=\"post-premium-icon\" *ngIf=\"!hideHeaderIcon\" 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\n class=\"post-premium-panel\"\n [class.post-premium-panel--final]=\"isHighlightedSummary()\">\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 <ng-container *ngIf=\"hasMiddleSection(); else compactBottomGrid\">\n <div class=\"metric-divider\"></div>\n\n <div class=\"metric-block metric-block--full\">\n <span class=\"metric-label\">{{ premiumSummaryState.middleLabel }}</span>\n <span class=\"metric-value metric-value--compact\">\n <span>{{ premiumSummaryState.middleValue }}</span>\n <span class=\"metric-suffix\" *ngIf=\"hasMiddleSuffix()\">{{ premiumSummaryState.middleSuffix }}</span>\n </span>\n </div>\n\n <div class=\"metric-divider\"></div>\n\n <ng-container *ngTemplateOutlet=\"bottomMetrics\"></ng-container>\n </ng-container>\n\n <ng-template #compactBottomGrid>\n <div class=\"metric-divider\"></div>\n <ng-container *ngTemplateOutlet=\"bottomMetrics\"></ng-container>\n </ng-template>\n\n <ng-template #bottomMetrics>\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\" *ngIf=\"hasFirstYearSuffix()\">{{ 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\" *ngIf=\"hasRenewalSuffix()\">{{ premiumSummaryState.renewalSuffix }}</span>\n </span>\n </div>\n </div>\n </ng-template>\n </div>\n\n <div\n class=\"post-premium-actions\"\n [class.post-premium-actions--motor]=\"isShowMotorPlanSummary\"\n *ngIf=\"showActionButtons\">\n <button\n type=\"button\"\n class=\"action-button action-button--final\"\n [class.action-button--primary]=\"isPrimaryActionFilled()\"\n [class.action-button--secondary]=\"!isPrimaryActionFilled()\">\n <ng-container [ngSwitch]=\"primaryActionIconType\">\n <svg *ngSwitchCase=\"'view'\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M2.5 12s3.4-6 9.5-6 9.5 6 9.5 6-3.4 6-9.5 6-9.5-6-9.5-6Z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\" />\n <circle cx=\"12\" cy=\"12\" r=\"2.8\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" />\n </svg>\n <svg *ngSwitchCase=\"'copy'\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <rect x=\"9\" y=\"7\" width=\"10\" height=\"13\" rx=\"2\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" />\n <path\n d=\"M6 16H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\" />\n </svg>\n <svg *ngSwitchCase=\"'sparkle'\" 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 <svg *ngSwitchDefault 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 </ng-container>\n <span>{{ getPrimaryActionLabel() }}</span>\n </button>\n\n <button type=\"button\" class=\"action-button action-button--secondary action-button--final\">\n <ng-container [ngSwitch]=\"secondaryActionIconType\">\n <svg *ngSwitchCase=\"'view'\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M2.5 12s3.4-6 9.5-6 9.5 6 9.5 6-3.4 6-9.5 6-9.5-6-9.5-6Z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\" />\n <circle cx=\"12\" cy=\"12\" r=\"2.8\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" />\n </svg>\n <svg *ngSwitchCase=\"'copy'\" viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <rect x=\"9\" y=\"7\" width=\"10\" height=\"13\" rx=\"2\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" />\n <path\n d=\"M6 16H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\" />\n </svg>\n <svg *ngSwitchCase=\"'share'\" 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 <svg *ngSwitchDefault 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 </ng-container>\n <span>{{ getSecondaryActionLabel() }}</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-wrapper--motor{width:min(660px,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-card--motor{padding:26px 26px 24px}.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-card--motor .post-premium-header{margin-bottom:22px}.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-card--motor .post-premium-title--final{font-size:25px}.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}.post-premium-card--motor .post-premium-success-badge{width:36px;height:36px}.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-card--motor .post-premium-panel--final{padding:24px 24px 22px}.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-block--full{gap:8px;align-items:flex-start;text-align:left}.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}.post-premium-card--motor .metric-value{font-size:30px}.metric-value--compact{display:inline-flex;align-items:baseline;gap:2px;flex-wrap:wrap}.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-card--motor .metric-divider{margin:18px 0;border-top-width:3px}.post-premium-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.post-premium-card--final .post-premium-actions{margin-top:28px;gap:24px}.post-premium-actions--motor{gap:14px}.action-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;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{background:#ffb703;color:#514320;box-shadow:0 10px 18px #ffb70347}.action-button--secondary{background:#fff;border-color:#5f5f5f;color:#4e4e4e}.action-button--secondary svg{width:18px;height:18px;flex-shrink:0}.action-button--final{min-height:58px;padding:0 22px;border-width:3px;border-color:#6c6c6c;color:#343434;font-size:21px;font-weight:700;gap:10px;box-shadow:0 6px 14px #4747470f}.action-button--final svg{width:24px;height:24px}.post-premium-card--motor .action-button--primary{min-width:174px}.post-premium-card--motor .action-button--secondary{min-width:128px}@media (max-width: 576px){.post-premium-card{padding:16px 14px 14px;border-radius:22px}.post-premium-card--final{padding:22px 18px 24px}.post-premium-card--motor{padding:22px 16px}.post-premium-panel{padding:14px 12px 16px;border-radius:16px}.post-premium-panel--final{padding:20px 18px 22px;border-radius:20px}.post-premium-card--motor .post-premium-panel--final{padding:18px 16px}.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--motor .metric-value{font-size:24px}.post-premium-card--final .metric-suffix{font-size:16px}.post-premium-title--final,.post-premium-card--motor .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"] }]
|
|
9316
|
+
}], propDecorators: { field: [{
|
|
9317
|
+
type: Input
|
|
9318
|
+
}], premiumSummary: [{
|
|
9139
9319
|
type: Input
|
|
9140
9320
|
}] } });
|
|
9141
9321
|
|
|
@@ -9149,6 +9329,7 @@ const DEFAULT_ADDON_ITEM = {
|
|
|
9149
9329
|
checkboxDisabled: true
|
|
9150
9330
|
};
|
|
9151
9331
|
const DEFAULT_ADDON_CONFIG = {
|
|
9332
|
+
layoutVariant: 'default',
|
|
9152
9333
|
borderColor: '#ffb703',
|
|
9153
9334
|
dividerColor: '#ded9d1',
|
|
9154
9335
|
moneyColor: '#0f9d73',
|
|
@@ -9205,6 +9386,9 @@ class LifeCoverAddonDetailsComponent {
|
|
|
9205
9386
|
get isSingleAddon() {
|
|
9206
9387
|
return this.addonItems.length === 1;
|
|
9207
9388
|
}
|
|
9389
|
+
get isCompactVariant() {
|
|
9390
|
+
return this.viewConfigState.layoutVariant === 'compact';
|
|
9391
|
+
}
|
|
9208
9392
|
initializeAddonConfig() {
|
|
9209
9393
|
const configData = this.addOnConfigData || {};
|
|
9210
9394
|
const defaultConfig = this.getDefaultAddonConfig();
|
|
@@ -9217,6 +9401,7 @@ class LifeCoverAddonDetailsComponent {
|
|
|
9217
9401
|
.map((item) => this.normalizeAddonItem(item, moneyColor, defaultCheckboxDisabled))
|
|
9218
9402
|
.filter((item) => item.title);
|
|
9219
9403
|
this.viewConfigState = {
|
|
9404
|
+
layoutVariant: this.resolveText(configData.layoutVariant, defaultConfig.layoutVariant),
|
|
9220
9405
|
borderColor: this.resolveColor(configData.borderColor, defaultConfig.borderColor),
|
|
9221
9406
|
dividerColor: this.resolveColor(configData.dividerColor, defaultConfig.dividerColor),
|
|
9222
9407
|
moneyColor,
|
|
@@ -9269,17 +9454,188 @@ class LifeCoverAddonDetailsComponent {
|
|
|
9269
9454
|
};
|
|
9270
9455
|
}
|
|
9271
9456
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverAddonDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9272
|
-
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"] }] });
|
|
9457
|
+
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\n class=\"addon-details-wrapper\"\n [class.addon-details-wrapper--compact]=\"isCompactVariant\"\n *ngIf=\"field()?.isVisible\">\n <div\n class=\"addon-card\"\n [class.addon-card--single]=\"isSingleAddon\"\n [class.addon-card--multiple]=\"!isSingleAddon\"\n [class.addon-card--compact]=\"isCompactVariant\"\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-details-wrapper--compact{width:min(430px,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-card--compact{padding:16px 16px 14px;border-width:2px;border-radius:20px;box-shadow:none}.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)}.addon-card--compact .addon-item__header{gap:12px}.addon-card--compact .addon-checkbox{padding-top:0}.addon-card--compact .addon-checkbox ::ng-deep .mdc-checkbox{flex-basis:24px}.addon-card--compact .addon-checkbox ::ng-deep .mat-mdc-checkbox-touch-target,.addon-card--compact .addon-checkbox ::ng-deep .mdc-checkbox__native-control,.addon-card--compact .addon-checkbox ::ng-deep .mdc-checkbox{width:24px;height:24px}.addon-card--compact .addon-checkbox ::ng-deep .mdc-checkbox__background{width:22px;height:22px;top:1px;left:1px;border-width:2px!important;border-radius:4px}.addon-card--compact .addon-checkbox ::ng-deep .mdc-checkbox__checkmark-path{stroke-width:3px}.addon-card--compact .addon-copy{gap:10px}.addon-card--compact .addon-title-row{align-items:flex-start;gap:12px}.addon-card--compact .addon-title,.addon-card--compact .addon-amount{font-size:17px;line-height:1.35;letter-spacing:0}.addon-card--compact .addon-title{font-weight:800}.addon-card--compact .addon-amount{font-weight:900}.addon-card--compact .addon-sum-chip{gap:6px;padding:7px 14px;border-radius:16px;font-size:14px}.addon-card--compact .addon-sum-chip__label{font-weight:500}.addon-card--compact .addon-sum-chip__value{font-weight:800}.addon-card--compact .addon-divider{margin:18px 0 16px;border-top-width:3px}@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}.addon-details-wrapper--compact{width:100%}.addon-card--compact{padding:16px 14px 14px;border-radius:18px}.addon-card--compact .addon-title-row{flex-direction:row;align-items:flex-start}.addon-card--compact .addon-title,.addon-card--compact .addon-amount{font-size:16px}.addon-card--compact .addon-sum-chip{width:fit-content;justify-content:flex-start;flex-wrap:nowrap;padding:7px 12px;font-size:13px;text-align:left}}\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"] }] });
|
|
9273
9458
|
}
|
|
9274
9459
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverAddonDetailsComponent, decorators: [{
|
|
9275
9460
|
type: Component,
|
|
9276
|
-
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"] }]
|
|
9461
|
+
args: [{ selector: 'lib-life-cover-addon-details', standalone: true, imports: [CommonModule, MatCheckboxModule], template: "<div\n class=\"addon-details-wrapper\"\n [class.addon-details-wrapper--compact]=\"isCompactVariant\"\n *ngIf=\"field()?.isVisible\">\n <div\n class=\"addon-card\"\n [class.addon-card--single]=\"isSingleAddon\"\n [class.addon-card--multiple]=\"!isSingleAddon\"\n [class.addon-card--compact]=\"isCompactVariant\"\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-details-wrapper--compact{width:min(430px,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-card--compact{padding:16px 16px 14px;border-width:2px;border-radius:20px;box-shadow:none}.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)}.addon-card--compact .addon-item__header{gap:12px}.addon-card--compact .addon-checkbox{padding-top:0}.addon-card--compact .addon-checkbox ::ng-deep .mdc-checkbox{flex-basis:24px}.addon-card--compact .addon-checkbox ::ng-deep .mat-mdc-checkbox-touch-target,.addon-card--compact .addon-checkbox ::ng-deep .mdc-checkbox__native-control,.addon-card--compact .addon-checkbox ::ng-deep .mdc-checkbox{width:24px;height:24px}.addon-card--compact .addon-checkbox ::ng-deep .mdc-checkbox__background{width:22px;height:22px;top:1px;left:1px;border-width:2px!important;border-radius:4px}.addon-card--compact .addon-checkbox ::ng-deep .mdc-checkbox__checkmark-path{stroke-width:3px}.addon-card--compact .addon-copy{gap:10px}.addon-card--compact .addon-title-row{align-items:flex-start;gap:12px}.addon-card--compact .addon-title,.addon-card--compact .addon-amount{font-size:17px;line-height:1.35;letter-spacing:0}.addon-card--compact .addon-title{font-weight:800}.addon-card--compact .addon-amount{font-weight:900}.addon-card--compact .addon-sum-chip{gap:6px;padding:7px 14px;border-radius:16px;font-size:14px}.addon-card--compact .addon-sum-chip__label{font-weight:500}.addon-card--compact .addon-sum-chip__value{font-weight:800}.addon-card--compact .addon-divider{margin:18px 0 16px;border-top-width:3px}@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}.addon-details-wrapper--compact{width:100%}.addon-card--compact{padding:16px 14px 14px;border-radius:18px}.addon-card--compact .addon-title-row{flex-direction:row;align-items:flex-start}.addon-card--compact .addon-title,.addon-card--compact .addon-amount{font-size:16px}.addon-card--compact .addon-sum-chip{width:fit-content;justify-content:flex-start;flex-wrap:nowrap;padding:7px 12px;font-size:13px;text-align:left}}\n"] }]
|
|
9277
9462
|
}], propDecorators: { addOnConfigData: [{
|
|
9278
9463
|
type: Input
|
|
9279
9464
|
}], addonSelectionChange: [{
|
|
9280
9465
|
type: Output
|
|
9281
9466
|
}] } });
|
|
9282
9467
|
|
|
9468
|
+
const DEFAULT_VEHICLE_COVERAGE_PLAN_ITEM = {
|
|
9469
|
+
title: 'Comprehensive',
|
|
9470
|
+
subtitle: 'Own Damage + Third Party + PA Cover',
|
|
9471
|
+
amount: '₹ 22,447'
|
|
9472
|
+
};
|
|
9473
|
+
const DEFAULT_VEHICLE_COVERAGE_PLANS_DATA = {
|
|
9474
|
+
headerLabel: 'Coverage Plans',
|
|
9475
|
+
idvLabel: 'IDV',
|
|
9476
|
+
idvValue: '₹4,17,059',
|
|
9477
|
+
plans: [
|
|
9478
|
+
DEFAULT_VEHICLE_COVERAGE_PLAN_ITEM,
|
|
9479
|
+
{
|
|
9480
|
+
title: 'Third Party Only',
|
|
9481
|
+
subtitle: 'Mandatory TP + PA Cover (no OD)',
|
|
9482
|
+
amount: '₹ 8,227'
|
|
9483
|
+
},
|
|
9484
|
+
{
|
|
9485
|
+
title: 'Standalone OD',
|
|
9486
|
+
subtitle: 'Own Damage only (existing TP policy)',
|
|
9487
|
+
amount: '₹ 10,796'
|
|
9488
|
+
}
|
|
9489
|
+
]
|
|
9490
|
+
};
|
|
9491
|
+
class VehicleCoveragePlansComponent {
|
|
9492
|
+
field = input.required();
|
|
9493
|
+
coveragePlansData = null;
|
|
9494
|
+
coveragePlansState = this.getDefaultCoveragePlansData();
|
|
9495
|
+
ngOnChanges(changes) {
|
|
9496
|
+
if (changes['coveragePlansData']) {
|
|
9497
|
+
this.initializeCoveragePlansData();
|
|
9498
|
+
}
|
|
9499
|
+
}
|
|
9500
|
+
initializeCoveragePlansData() {
|
|
9501
|
+
const coveragePlansData = this.coveragePlansData || {};
|
|
9502
|
+
const sourcePlans = Array.isArray(coveragePlansData.plans) && coveragePlansData.plans.length > 0
|
|
9503
|
+
? coveragePlansData.plans
|
|
9504
|
+
: DEFAULT_VEHICLE_COVERAGE_PLANS_DATA.plans;
|
|
9505
|
+
const normalizedPlans = sourcePlans
|
|
9506
|
+
.map((plan) => this.normalizeCoveragePlanItem(plan))
|
|
9507
|
+
.filter((plan) => plan.title && plan.amount);
|
|
9508
|
+
this.coveragePlansState = {
|
|
9509
|
+
headerLabel: this.resolveText(coveragePlansData.headerLabel, DEFAULT_VEHICLE_COVERAGE_PLANS_DATA.headerLabel),
|
|
9510
|
+
idvLabel: this.resolveText(coveragePlansData.idvLabel, DEFAULT_VEHICLE_COVERAGE_PLANS_DATA.idvLabel),
|
|
9511
|
+
idvValue: this.resolveText(coveragePlansData.idvValue, DEFAULT_VEHICLE_COVERAGE_PLANS_DATA.idvValue),
|
|
9512
|
+
plans: normalizedPlans.length > 0
|
|
9513
|
+
? normalizedPlans
|
|
9514
|
+
: this.getDefaultCoveragePlansData().plans
|
|
9515
|
+
};
|
|
9516
|
+
}
|
|
9517
|
+
normalizeCoveragePlanItem(plan) {
|
|
9518
|
+
return {
|
|
9519
|
+
title: this.resolveText(plan?.title, DEFAULT_VEHICLE_COVERAGE_PLAN_ITEM.title),
|
|
9520
|
+
subtitle: this.resolveText(plan?.subtitle, DEFAULT_VEHICLE_COVERAGE_PLAN_ITEM.subtitle),
|
|
9521
|
+
amount: this.resolveText(plan?.amount, DEFAULT_VEHICLE_COVERAGE_PLAN_ITEM.amount)
|
|
9522
|
+
};
|
|
9523
|
+
}
|
|
9524
|
+
resolveText(value, fallback) {
|
|
9525
|
+
if (typeof value === 'string') {
|
|
9526
|
+
const trimmedValue = value.trim();
|
|
9527
|
+
return trimmedValue || fallback;
|
|
9528
|
+
}
|
|
9529
|
+
return fallback;
|
|
9530
|
+
}
|
|
9531
|
+
getDefaultCoveragePlansData() {
|
|
9532
|
+
return {
|
|
9533
|
+
...DEFAULT_VEHICLE_COVERAGE_PLANS_DATA,
|
|
9534
|
+
plans: DEFAULT_VEHICLE_COVERAGE_PLANS_DATA.plans.map((plan) => ({ ...plan }))
|
|
9535
|
+
};
|
|
9536
|
+
}
|
|
9537
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: VehicleCoveragePlansComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9538
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: VehicleCoveragePlansComponent, isStandalone: true, selector: "lib-vehicle-coverage-plans", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, coveragePlansData: { classPropertyName: "coveragePlansData", publicName: "coveragePlansData", isSignal: false, isRequired: false, transformFunction: null } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"vehicle-coverage-plans\" *ngIf=\"field()?.isVisible\">\n <div class=\"vehicle-coverage-plans__header\">\n <span>{{ coveragePlansState.headerLabel }}</span>\n <span class=\"vehicle-coverage-plans__separator\">—</span>\n <span>{{ coveragePlansState.idvLabel }} {{ coveragePlansState.idvValue }}</span>\n </div>\n\n <div class=\"vehicle-coverage-plans__header-divider\"></div>\n\n <ng-container *ngFor=\"let plan of coveragePlansState.plans; let last = last\">\n <div class=\"vehicle-coverage-plan\">\n <div class=\"vehicle-coverage-plan__copy\">\n <h3 class=\"vehicle-coverage-plan__title\">{{ plan.title }}</h3>\n <p class=\"vehicle-coverage-plan__subtitle\" *ngIf=\"plan.subtitle\">{{ plan.subtitle }}</p>\n </div>\n\n <div class=\"vehicle-coverage-plan__amount\">{{ plan.amount }}</div>\n </div>\n\n <div class=\"vehicle-coverage-plan__divider\" *ngIf=\"!last\"></div>\n </ng-container>\n</div>\n", styles: [".vehicle-coverage-plans{width:min(690px,100%);padding:28px 26px 20px;border:2px solid #d7d7d7;border-radius:34px;background:#fff;box-shadow:0 8px 18px #3f3f3f0a}.vehicle-coverage-plans__header{color:#4f4f4f;font-family:Mulish,sans-serif!important;font-size:28px;font-weight:500;line-height:1.3;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.vehicle-coverage-plans__separator{color:#7a7a7a}.vehicle-coverage-plans__header-divider{margin:18px 0 22px;border-top:3px solid #dddddd}.vehicle-coverage-plan{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.vehicle-coverage-plan__copy{min-width:0;flex:1 1 auto}.vehicle-coverage-plan__title{margin:0;color:#4c4c4c;font-family:Mulish,sans-serif!important;font-size:28px;font-weight:700;line-height:1.3}.vehicle-coverage-plan__subtitle{margin:6px 0 0;color:#6f6f6f;font-family:Mulish,sans-serif!important;font-size:22px;font-weight:500;line-height:1.35}.vehicle-coverage-plan__amount{color:#4c4c4c;font-family:Mulish,sans-serif!important;font-size:28px;font-weight:800;line-height:1.3;white-space:nowrap;flex-shrink:0}.vehicle-coverage-plan__divider{margin:18px 0 20px;border-top:4px dashed #d9d9d9}@media (max-width: 768px){.vehicle-coverage-plans{padding:22px 18px 18px;border-radius:26px}.vehicle-coverage-plans__header{font-size:22px;gap:8px}.vehicle-coverage-plan{gap:16px}.vehicle-coverage-plan__title,.vehicle-coverage-plan__amount{font-size:22px}.vehicle-coverage-plan__subtitle{font-size:18px}}@media (max-width: 576px){.vehicle-coverage-plan{flex-direction:column;align-items:flex-start}.vehicle-coverage-plan__amount{font-size:20px}}\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"] }] });
|
|
9539
|
+
}
|
|
9540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: VehicleCoveragePlansComponent, decorators: [{
|
|
9541
|
+
type: Component,
|
|
9542
|
+
args: [{ selector: 'lib-vehicle-coverage-plans', standalone: true, imports: [CommonModule], template: "<div class=\"vehicle-coverage-plans\" *ngIf=\"field()?.isVisible\">\n <div class=\"vehicle-coverage-plans__header\">\n <span>{{ coveragePlansState.headerLabel }}</span>\n <span class=\"vehicle-coverage-plans__separator\">—</span>\n <span>{{ coveragePlansState.idvLabel }} {{ coveragePlansState.idvValue }}</span>\n </div>\n\n <div class=\"vehicle-coverage-plans__header-divider\"></div>\n\n <ng-container *ngFor=\"let plan of coveragePlansState.plans; let last = last\">\n <div class=\"vehicle-coverage-plan\">\n <div class=\"vehicle-coverage-plan__copy\">\n <h3 class=\"vehicle-coverage-plan__title\">{{ plan.title }}</h3>\n <p class=\"vehicle-coverage-plan__subtitle\" *ngIf=\"plan.subtitle\">{{ plan.subtitle }}</p>\n </div>\n\n <div class=\"vehicle-coverage-plan__amount\">{{ plan.amount }}</div>\n </div>\n\n <div class=\"vehicle-coverage-plan__divider\" *ngIf=\"!last\"></div>\n </ng-container>\n</div>\n", styles: [".vehicle-coverage-plans{width:min(690px,100%);padding:28px 26px 20px;border:2px solid #d7d7d7;border-radius:34px;background:#fff;box-shadow:0 8px 18px #3f3f3f0a}.vehicle-coverage-plans__header{color:#4f4f4f;font-family:Mulish,sans-serif!important;font-size:28px;font-weight:500;line-height:1.3;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.vehicle-coverage-plans__separator{color:#7a7a7a}.vehicle-coverage-plans__header-divider{margin:18px 0 22px;border-top:3px solid #dddddd}.vehicle-coverage-plan{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.vehicle-coverage-plan__copy{min-width:0;flex:1 1 auto}.vehicle-coverage-plan__title{margin:0;color:#4c4c4c;font-family:Mulish,sans-serif!important;font-size:28px;font-weight:700;line-height:1.3}.vehicle-coverage-plan__subtitle{margin:6px 0 0;color:#6f6f6f;font-family:Mulish,sans-serif!important;font-size:22px;font-weight:500;line-height:1.35}.vehicle-coverage-plan__amount{color:#4c4c4c;font-family:Mulish,sans-serif!important;font-size:28px;font-weight:800;line-height:1.3;white-space:nowrap;flex-shrink:0}.vehicle-coverage-plan__divider{margin:18px 0 20px;border-top:4px dashed #d9d9d9}@media (max-width: 768px){.vehicle-coverage-plans{padding:22px 18px 18px;border-radius:26px}.vehicle-coverage-plans__header{font-size:22px;gap:8px}.vehicle-coverage-plan{gap:16px}.vehicle-coverage-plan__title,.vehicle-coverage-plan__amount{font-size:22px}.vehicle-coverage-plan__subtitle{font-size:18px}}@media (max-width: 576px){.vehicle-coverage-plan{flex-direction:column;align-items:flex-start}.vehicle-coverage-plan__amount{font-size:20px}}\n"] }]
|
|
9543
|
+
}], propDecorators: { coveragePlansData: [{
|
|
9544
|
+
type: Input
|
|
9545
|
+
}] } });
|
|
9546
|
+
|
|
9547
|
+
const DEFAULT_PREMIUM_BREAKDOWN_ITEMS = [
|
|
9548
|
+
{ label: 'Third Party (TP)', value: '₹7,897' },
|
|
9549
|
+
{ label: 'Own Damage (OD)', value: '₹993.56' },
|
|
9550
|
+
{ label: 'PA Cover (Owner-Driver)', value: '₹330' },
|
|
9551
|
+
{ label: 'Breakdown Assistance', value: '₹155' },
|
|
9552
|
+
{ label: 'GST (18%)', value: '₹1,528' },
|
|
9553
|
+
{ label: 'Discount', value: '- ₹575', valueColor: '#00a67e' }
|
|
9554
|
+
];
|
|
9555
|
+
const DEFAULT_PREMIUM_BREAKDOWN_DATA = {
|
|
9556
|
+
title: 'Premium Breakdown',
|
|
9557
|
+
subtitle: '(Incl. GST)',
|
|
9558
|
+
items: DEFAULT_PREMIUM_BREAKDOWN_ITEMS,
|
|
9559
|
+
totalLabel: 'Annual Premium',
|
|
9560
|
+
totalValue: '₹10,015.74'
|
|
9561
|
+
};
|
|
9562
|
+
class PremiumBreakdownComponent {
|
|
9563
|
+
field = input.required();
|
|
9564
|
+
premiumBreakdownData = null;
|
|
9565
|
+
premiumBreakdownState = this.getDefaultPremiumBreakdownData();
|
|
9566
|
+
ngOnChanges(changes) {
|
|
9567
|
+
if (changes['premiumBreakdownData']) {
|
|
9568
|
+
this.initializePremiumBreakdownData();
|
|
9569
|
+
}
|
|
9570
|
+
}
|
|
9571
|
+
getItemValueColor(item) {
|
|
9572
|
+
if (item.valueColor && item.valueColor.trim()) {
|
|
9573
|
+
return item.valueColor.trim();
|
|
9574
|
+
}
|
|
9575
|
+
return item.value.trim().startsWith('-') ? '#00a67e' : '#4a4a4a';
|
|
9576
|
+
}
|
|
9577
|
+
getTotalValueColor() {
|
|
9578
|
+
if (this.premiumBreakdownState.totalValueColor?.trim()) {
|
|
9579
|
+
return this.premiumBreakdownState.totalValueColor.trim();
|
|
9580
|
+
}
|
|
9581
|
+
return '#4a4a4a';
|
|
9582
|
+
}
|
|
9583
|
+
initializePremiumBreakdownData() {
|
|
9584
|
+
const premiumBreakdownData = this.premiumBreakdownData || {};
|
|
9585
|
+
const sourceItems = Array.isArray(premiumBreakdownData.items) && premiumBreakdownData.items.length > 0
|
|
9586
|
+
? premiumBreakdownData.items
|
|
9587
|
+
: DEFAULT_PREMIUM_BREAKDOWN_DATA.items;
|
|
9588
|
+
const normalizedItems = sourceItems
|
|
9589
|
+
.map((item) => this.normalizePremiumBreakdownItem(item))
|
|
9590
|
+
.filter((item) => item.label && item.value);
|
|
9591
|
+
this.premiumBreakdownState = {
|
|
9592
|
+
title: this.resolveText(premiumBreakdownData.title, DEFAULT_PREMIUM_BREAKDOWN_DATA.title),
|
|
9593
|
+
subtitle: this.resolveText(premiumBreakdownData.subtitle, DEFAULT_PREMIUM_BREAKDOWN_DATA.subtitle),
|
|
9594
|
+
items: normalizedItems.length > 0
|
|
9595
|
+
? normalizedItems
|
|
9596
|
+
: this.getDefaultPremiumBreakdownData().items,
|
|
9597
|
+
totalLabel: this.resolveText(premiumBreakdownData.totalLabel, DEFAULT_PREMIUM_BREAKDOWN_DATA.totalLabel),
|
|
9598
|
+
totalValue: this.resolveText(premiumBreakdownData.totalValue, DEFAULT_PREMIUM_BREAKDOWN_DATA.totalValue),
|
|
9599
|
+
totalValueColor: this.resolveOptionalText(premiumBreakdownData.totalValueColor)
|
|
9600
|
+
};
|
|
9601
|
+
}
|
|
9602
|
+
normalizePremiumBreakdownItem(item) {
|
|
9603
|
+
return {
|
|
9604
|
+
label: this.resolveText(item?.label, ''),
|
|
9605
|
+
value: this.resolveText(item?.value, ''),
|
|
9606
|
+
valueColor: this.resolveOptionalText(item?.valueColor)
|
|
9607
|
+
};
|
|
9608
|
+
}
|
|
9609
|
+
resolveText(value, fallback) {
|
|
9610
|
+
if (typeof value === 'string') {
|
|
9611
|
+
const trimmedValue = value.trim();
|
|
9612
|
+
return trimmedValue || fallback;
|
|
9613
|
+
}
|
|
9614
|
+
return fallback;
|
|
9615
|
+
}
|
|
9616
|
+
resolveOptionalText(value) {
|
|
9617
|
+
if (typeof value === 'string') {
|
|
9618
|
+
const trimmedValue = value.trim();
|
|
9619
|
+
return trimmedValue || undefined;
|
|
9620
|
+
}
|
|
9621
|
+
return undefined;
|
|
9622
|
+
}
|
|
9623
|
+
getDefaultPremiumBreakdownData() {
|
|
9624
|
+
return {
|
|
9625
|
+
...DEFAULT_PREMIUM_BREAKDOWN_DATA,
|
|
9626
|
+
items: DEFAULT_PREMIUM_BREAKDOWN_DATA.items.map((item) => ({ ...item }))
|
|
9627
|
+
};
|
|
9628
|
+
}
|
|
9629
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PremiumBreakdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9630
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: PremiumBreakdownComponent, isStandalone: true, selector: "lib-premium-breakdown", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, premiumBreakdownData: { classPropertyName: "premiumBreakdownData", publicName: "premiumBreakdownData", isSignal: false, isRequired: false, transformFunction: null } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"premium-breakdown\" *ngIf=\"field()?.isVisible\">\n <div class=\"premium-breakdown__header\">\n <div class=\"premium-breakdown__icon\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <rect x=\"6\" y=\"4\" width=\"12\" height=\"16\" rx=\"1.8\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" />\n <path d=\"M9 2.8v3.1M15 2.8v3.1M8.5 8.5h7M8.5 11.8h7M8.5 15.1h4.2\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" />\n <rect x=\"15.3\" y=\"14.2\" width=\"2.7\" height=\"2.7\" rx=\".5\" fill=\"#ffb703\" />\n </svg>\n </div>\n\n <div class=\"premium-breakdown__header-copy\">\n <h3 class=\"premium-breakdown__title\">{{ premiumBreakdownState.title }}</h3>\n <p class=\"premium-breakdown__subtitle\" *ngIf=\"premiumBreakdownState.subtitle\">\n {{ premiumBreakdownState.subtitle }}\n </p>\n </div>\n </div>\n\n <div class=\"premium-breakdown__header-divider\"></div>\n\n <div class=\"premium-breakdown__rows\">\n <div class=\"premium-breakdown__row\" *ngFor=\"let item of premiumBreakdownState.items\">\n <span class=\"premium-breakdown__label\">{{ item.label }}</span>\n <span class=\"premium-breakdown__value\" [style.color]=\"getItemValueColor(item)\">{{ item.value }}</span>\n </div>\n </div>\n\n <div class=\"premium-breakdown__total-divider\"></div>\n\n <div class=\"premium-breakdown__total\">\n <span class=\"premium-breakdown__total-label\">{{ premiumBreakdownState.totalLabel }}</span>\n <span class=\"premium-breakdown__total-value\" [style.color]=\"getTotalValueColor()\">\n {{ premiumBreakdownState.totalValue }}\n </span>\n </div>\n</div>\n", styles: [".premium-breakdown{width:min(560px,100%);border:2px solid #d8d8d8;border-radius:28px;background:#fff;box-shadow:0 8px 18px #3a3a3a0a;overflow:hidden}.premium-breakdown__header{display:flex;align-items:center;gap:14px;padding:18px 20px 20px}.premium-breakdown__icon{width:68px;height:68px;display:inline-flex;align-items:center;justify-content:center;border:2px solid #d8d8d8;border-radius:12px;background:#fff;color:#5b5b5b;flex-shrink:0}.premium-breakdown__icon svg{width:34px;height:34px}.premium-breakdown__header-copy{min-width:0}.premium-breakdown__title{margin:0;color:#333;font-family:Mulish,sans-serif!important;font-size:24px;font-weight:800;line-height:1.25}.premium-breakdown__subtitle{margin:6px 0 0;color:#5d5d5d;font-family:Mulish,sans-serif!important;font-size:16px;font-weight:600;line-height:1.25}.premium-breakdown__header-divider{border-top:2px solid #dfdfdf}.premium-breakdown__rows{padding:18px 20px 10px}.premium-breakdown__row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.premium-breakdown__label{color:#666;font-family:Mulish,sans-serif!important;font-size:22px;font-weight:500;line-height:1.25}.premium-breakdown__value{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:22px;font-weight:700;line-height:1.25;text-align:right;white-space:nowrap;flex-shrink:0}.premium-breakdown__total-divider{margin:0 20px;border-top:4px dashed #dadada}.premium-breakdown__total{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px 20px}.premium-breakdown__total-label{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:24px;font-weight:800;line-height:1.25}.premium-breakdown__total-value{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:24px;font-weight:800;line-height:1.25;text-align:right}@media (max-width: 576px){.premium-breakdown__header{padding:16px}.premium-breakdown__icon{width:56px;height:56px}.premium-breakdown__icon svg{width:28px;height:28px}.premium-breakdown__title,.premium-breakdown__total-label,.premium-breakdown__total-value{font-size:20px}.premium-breakdown__label,.premium-breakdown__value{font-size:18px}.premium-breakdown__subtitle{font-size:14px}.premium-breakdown__rows{padding:16px 16px 8px}.premium-breakdown__row{margin-bottom:16px}.premium-breakdown__total-divider{margin:0 16px}.premium-breakdown__total{padding:16px}}\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"] }] });
|
|
9631
|
+
}
|
|
9632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PremiumBreakdownComponent, decorators: [{
|
|
9633
|
+
type: Component,
|
|
9634
|
+
args: [{ selector: 'lib-premium-breakdown', standalone: true, imports: [CommonModule], template: "<div class=\"premium-breakdown\" *ngIf=\"field()?.isVisible\">\n <div class=\"premium-breakdown__header\">\n <div class=\"premium-breakdown__icon\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <rect x=\"6\" y=\"4\" width=\"12\" height=\"16\" rx=\"1.8\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" />\n <path d=\"M9 2.8v3.1M15 2.8v3.1M8.5 8.5h7M8.5 11.8h7M8.5 15.1h4.2\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" />\n <rect x=\"15.3\" y=\"14.2\" width=\"2.7\" height=\"2.7\" rx=\".5\" fill=\"#ffb703\" />\n </svg>\n </div>\n\n <div class=\"premium-breakdown__header-copy\">\n <h3 class=\"premium-breakdown__title\">{{ premiumBreakdownState.title }}</h3>\n <p class=\"premium-breakdown__subtitle\" *ngIf=\"premiumBreakdownState.subtitle\">\n {{ premiumBreakdownState.subtitle }}\n </p>\n </div>\n </div>\n\n <div class=\"premium-breakdown__header-divider\"></div>\n\n <div class=\"premium-breakdown__rows\">\n <div class=\"premium-breakdown__row\" *ngFor=\"let item of premiumBreakdownState.items\">\n <span class=\"premium-breakdown__label\">{{ item.label }}</span>\n <span class=\"premium-breakdown__value\" [style.color]=\"getItemValueColor(item)\">{{ item.value }}</span>\n </div>\n </div>\n\n <div class=\"premium-breakdown__total-divider\"></div>\n\n <div class=\"premium-breakdown__total\">\n <span class=\"premium-breakdown__total-label\">{{ premiumBreakdownState.totalLabel }}</span>\n <span class=\"premium-breakdown__total-value\" [style.color]=\"getTotalValueColor()\">\n {{ premiumBreakdownState.totalValue }}\n </span>\n </div>\n</div>\n", styles: [".premium-breakdown{width:min(560px,100%);border:2px solid #d8d8d8;border-radius:28px;background:#fff;box-shadow:0 8px 18px #3a3a3a0a;overflow:hidden}.premium-breakdown__header{display:flex;align-items:center;gap:14px;padding:18px 20px 20px}.premium-breakdown__icon{width:68px;height:68px;display:inline-flex;align-items:center;justify-content:center;border:2px solid #d8d8d8;border-radius:12px;background:#fff;color:#5b5b5b;flex-shrink:0}.premium-breakdown__icon svg{width:34px;height:34px}.premium-breakdown__header-copy{min-width:0}.premium-breakdown__title{margin:0;color:#333;font-family:Mulish,sans-serif!important;font-size:24px;font-weight:800;line-height:1.25}.premium-breakdown__subtitle{margin:6px 0 0;color:#5d5d5d;font-family:Mulish,sans-serif!important;font-size:16px;font-weight:600;line-height:1.25}.premium-breakdown__header-divider{border-top:2px solid #dfdfdf}.premium-breakdown__rows{padding:18px 20px 10px}.premium-breakdown__row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.premium-breakdown__label{color:#666;font-family:Mulish,sans-serif!important;font-size:22px;font-weight:500;line-height:1.25}.premium-breakdown__value{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:22px;font-weight:700;line-height:1.25;text-align:right;white-space:nowrap;flex-shrink:0}.premium-breakdown__total-divider{margin:0 20px;border-top:4px dashed #dadada}.premium-breakdown__total{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px 20px}.premium-breakdown__total-label{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:24px;font-weight:800;line-height:1.25}.premium-breakdown__total-value{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:24px;font-weight:800;line-height:1.25;text-align:right}@media (max-width: 576px){.premium-breakdown__header{padding:16px}.premium-breakdown__icon{width:56px;height:56px}.premium-breakdown__icon svg{width:28px;height:28px}.premium-breakdown__title,.premium-breakdown__total-label,.premium-breakdown__total-value{font-size:20px}.premium-breakdown__label,.premium-breakdown__value{font-size:18px}.premium-breakdown__subtitle{font-size:14px}.premium-breakdown__rows{padding:16px 16px 8px}.premium-breakdown__row{margin-bottom:16px}.premium-breakdown__total-divider{margin:0 16px}.premium-breakdown__total{padding:16px}}\n"] }]
|
|
9635
|
+
}], propDecorators: { premiumBreakdownData: [{
|
|
9636
|
+
type: Input
|
|
9637
|
+
}] } });
|
|
9638
|
+
|
|
9283
9639
|
class MasterControlComponent {
|
|
9284
9640
|
field = input.required();
|
|
9285
9641
|
formGroup = new FormGroup({});
|
|
@@ -9297,7 +9653,7 @@ class MasterControlComponent {
|
|
|
9297
9653
|
this.lifeCoverAddonSelectionChange.emit(event);
|
|
9298
9654
|
}
|
|
9299
9655
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9300
|
-
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"] }] });
|
|
9656
|
+
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 @case ('vehicleCoveragePlans') {\n <lib-vehicle-coverage-plans\n [field]=\"field()\"\n [coveragePlansData]=\"field()?.coveragePlansData\" />\n }\n @case ('premiumBreakdown') {\n <lib-premium-breakdown\n [field]=\"field()\"\n [premiumBreakdownData]=\"field()?.premiumBreakdownData\" />\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"] }, { kind: "component", type: VehicleCoveragePlansComponent, selector: "lib-vehicle-coverage-plans", inputs: ["field", "coveragePlansData"] }, { kind: "component", type: PremiumBreakdownComponent, selector: "lib-premium-breakdown", inputs: ["field", "premiumBreakdownData"] }] });
|
|
9301
9657
|
}
|
|
9302
9658
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlComponent, decorators: [{
|
|
9303
9659
|
type: Component,
|
|
@@ -9384,8 +9740,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9384
9740
|
LifeCoverDetailsComponent,
|
|
9385
9741
|
LifeCoverDetailsViewComponent,
|
|
9386
9742
|
LifeCoverDetailsPostPremiumCalculationComponent,
|
|
9387
|
-
LifeCoverAddonDetailsComponent
|
|
9388
|
-
|
|
9743
|
+
LifeCoverAddonDetailsComponent,
|
|
9744
|
+
VehicleCoveragePlansComponent,
|
|
9745
|
+
PremiumBreakdownComponent
|
|
9746
|
+
], 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 @case ('vehicleCoveragePlans') {\n <lib-vehicle-coverage-plans\n [field]=\"field()\"\n [coveragePlansData]=\"field()?.coveragePlansData\" />\n }\n @case ('premiumBreakdown') {\n <lib-premium-breakdown\n [field]=\"field()\"\n [premiumBreakdownData]=\"field()?.premiumBreakdownData\" />\n }\n}\n" }]
|
|
9389
9747
|
}], ctorParameters: () => [], propDecorators: { formGroup: [{
|
|
9390
9748
|
type: Input
|
|
9391
9749
|
}], lifeCoverSliderValueChange: [{
|
|
@@ -9402,5 +9760,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9402
9760
|
* Generated bundle index. Do not edit.
|
|
9403
9761
|
*/
|
|
9404
9762
|
|
|
9405
|
-
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 };
|
|
9763
|
+
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, PremiumBreakdownComponent, RadioComponent, SearchMultiSelectComponent, SelectComponent, SelectTextboxComponent, StepperComponent, StepperWIthArrowComponent, SubHeaderComponent, SubscriptTextboxComponent, SuccessSnackbarComponent, SuffixTextboxComponent, TabComponent, TableComponent, TextareaComponent, TextboxComponent, TextboxWithImageComponent, TextboxWithRadioComponent, TextboxWithTextComponent, TextboxWithUnderscoreComponent, ToggleButtonComponent, ToggleComponent, UnderscoreMobNumberComponent, UploadComponent, VehicleCoveragePlansComponent, WarningSnackbarComponent };
|
|
9406
9764
|
//# sourceMappingURL=master-control.mjs.map
|