master-control 0.5.13 → 0.5.15
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 +345 -6
- package/esm2022/lib/life-cover-details-post-premium-calculation/life-cover-details-post-premium-calculation.component.mjs +134 -17
- 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 +662 -28
- 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 +33 -0
- package/lib/life-cover-details-post-premium-calculation/life-cover-details-post-premium-calculation.component.d.ts +31 -2
- 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.15.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/master-control-0.5.13.tgz +0 -0
|
@@ -8785,6 +8785,10 @@ class LifeCoverDetailsComponent {
|
|
|
8785
8785
|
coverDetailsState = {};
|
|
8786
8786
|
termDetailsState = {};
|
|
8787
8787
|
premiumDetailsState = {};
|
|
8788
|
+
coverInputValue = '';
|
|
8789
|
+
termInputValue = '';
|
|
8790
|
+
coverInputError = '';
|
|
8791
|
+
termInputError = '';
|
|
8788
8792
|
ngOnChanges(changes) {
|
|
8789
8793
|
if (changes['coverDetails'] || changes['termDetails'] || changes['premiumDetails']) {
|
|
8790
8794
|
this.initializeComponentState();
|
|
@@ -8793,12 +8797,42 @@ class LifeCoverDetailsComponent {
|
|
|
8793
8797
|
onTextButtonClick() {
|
|
8794
8798
|
this.textButtonClick.emit();
|
|
8795
8799
|
}
|
|
8800
|
+
onBadgeFocus(type) {
|
|
8801
|
+
this.setInputError(type, '');
|
|
8802
|
+
this.setInputValue(type, this.getEditableIntegerValue(type));
|
|
8803
|
+
}
|
|
8804
|
+
onBadgeInput(type, value) {
|
|
8805
|
+
this.setInputError(type, '');
|
|
8806
|
+
this.setInputValue(type, value.replace(/\D+/g, ''));
|
|
8807
|
+
}
|
|
8808
|
+
onBadgeBlur(type) {
|
|
8809
|
+
const rawInputValue = this.getInputValue(type).trim();
|
|
8810
|
+
if (!rawInputValue) {
|
|
8811
|
+
this.syncSliderInputValues();
|
|
8812
|
+
return;
|
|
8813
|
+
}
|
|
8814
|
+
const numericValue = Number(rawInputValue);
|
|
8815
|
+
const resolvedInput = this.resolveSliderInput(type, numericValue);
|
|
8816
|
+
if (!resolvedInput) {
|
|
8817
|
+
this.setInputError(type, this.getSliderInputValidationMessage(type));
|
|
8818
|
+
this.syncSliderInputValues();
|
|
8819
|
+
return;
|
|
8820
|
+
}
|
|
8821
|
+
this.setInputError(type, '');
|
|
8822
|
+
if (type === 'cover') {
|
|
8823
|
+
this.onCoverSliderChange(resolvedInput.sliderValue);
|
|
8824
|
+
return;
|
|
8825
|
+
}
|
|
8826
|
+
this.onTermSliderChange(resolvedInput.sliderValue);
|
|
8827
|
+
}
|
|
8796
8828
|
onCoverSliderChange(value) {
|
|
8797
8829
|
this.coverProgress = value;
|
|
8830
|
+
this.coverInputError = '';
|
|
8798
8831
|
this.coverDetailsState = {
|
|
8799
8832
|
...this.coverDetailsState,
|
|
8800
8833
|
coverProgress: value
|
|
8801
8834
|
};
|
|
8835
|
+
this.syncSliderInputValues();
|
|
8802
8836
|
this.sliderValueChange.emit({
|
|
8803
8837
|
sliderType: 'cover',
|
|
8804
8838
|
value,
|
|
@@ -8812,12 +8846,14 @@ class LifeCoverDetailsComponent {
|
|
|
8812
8846
|
}
|
|
8813
8847
|
onTermSliderChange(value) {
|
|
8814
8848
|
this.termProgress = value;
|
|
8849
|
+
this.termInputError = '';
|
|
8815
8850
|
const selectedDisplayValue = this.getSelectedDisplayValue('term', value);
|
|
8816
8851
|
this.termDetailsState = {
|
|
8817
8852
|
...this.termDetailsState,
|
|
8818
8853
|
termProgress: value,
|
|
8819
8854
|
termValue: selectedDisplayValue
|
|
8820
8855
|
};
|
|
8856
|
+
this.syncSliderInputValues();
|
|
8821
8857
|
this.sliderValueChange.emit({
|
|
8822
8858
|
sliderType: 'term',
|
|
8823
8859
|
value,
|
|
@@ -8857,7 +8893,7 @@ class LifeCoverDetailsComponent {
|
|
|
8857
8893
|
getSliderStep(type) {
|
|
8858
8894
|
const options = type === 'cover' ? this.coverBadgeValues : this.termScaleLabels;
|
|
8859
8895
|
if (options.length > 0) {
|
|
8860
|
-
return
|
|
8896
|
+
return 0.01;
|
|
8861
8897
|
}
|
|
8862
8898
|
return type === 'cover'
|
|
8863
8899
|
? Number(this.coverDetailsState.coverStep ?? 1)
|
|
@@ -8867,10 +8903,20 @@ class LifeCoverDetailsComponent {
|
|
|
8867
8903
|
const options = type === 'cover' ? this.coverBadgeValues : this.termScaleLabels;
|
|
8868
8904
|
const currentValue = value ?? (type === 'cover' ? this.coverProgress : this.termProgress);
|
|
8869
8905
|
if (options.length > 0) {
|
|
8870
|
-
|
|
8906
|
+
const optionIndex = this.getNearestScaleIndex(type, currentValue);
|
|
8907
|
+
return optionIndex >= 0 ? options[optionIndex]?.label || '' : '';
|
|
8871
8908
|
}
|
|
8872
8909
|
return '';
|
|
8873
8910
|
}
|
|
8911
|
+
isScaleLabelActive(type, index) {
|
|
8912
|
+
return this.getNearestScaleIndex(type) === index;
|
|
8913
|
+
}
|
|
8914
|
+
getScaleLabelOffset(index, total) {
|
|
8915
|
+
if (total <= 1) {
|
|
8916
|
+
return 0;
|
|
8917
|
+
}
|
|
8918
|
+
return (index / (total - 1)) * 100;
|
|
8919
|
+
}
|
|
8874
8920
|
getBadgeValue(type) {
|
|
8875
8921
|
const selectedBadgeValue = this.getSelectedDisplayValue(type);
|
|
8876
8922
|
if (type === 'cover') {
|
|
@@ -8891,9 +8937,37 @@ class LifeCoverDetailsComponent {
|
|
|
8891
8937
|
const configData = this.field()?.configData || {};
|
|
8892
8938
|
return configData.buttonLabel || configData.textButtonLabel || 'Calculate Premium';
|
|
8893
8939
|
}
|
|
8940
|
+
getInputError(type) {
|
|
8941
|
+
return type === 'cover' ? this.coverInputError : this.termInputError;
|
|
8942
|
+
}
|
|
8894
8943
|
getDecorationLabel() {
|
|
8895
8944
|
return this.coverDetailsState.coverAccentLabel || '';
|
|
8896
8945
|
}
|
|
8946
|
+
isSectionVisible(section) {
|
|
8947
|
+
const configData = this.getConfigData();
|
|
8948
|
+
const visibilityKeyMap = {
|
|
8949
|
+
cover: 'showCoverSection',
|
|
8950
|
+
term: 'showTermSection',
|
|
8951
|
+
premium: 'showPremiumSection',
|
|
8952
|
+
button: 'showButtonSection'
|
|
8953
|
+
};
|
|
8954
|
+
const configuredValue = configData[visibilityKeyMap[section]];
|
|
8955
|
+
return typeof configuredValue === 'boolean' ? configuredValue : true;
|
|
8956
|
+
}
|
|
8957
|
+
shouldShowDividerAfter(section) {
|
|
8958
|
+
if (!this.isSectionVisible(section)) {
|
|
8959
|
+
return false;
|
|
8960
|
+
}
|
|
8961
|
+
if (section === 'cover') {
|
|
8962
|
+
return this.isSectionVisible('term') || this.isSectionVisible('premium');
|
|
8963
|
+
}
|
|
8964
|
+
return this.isSectionVisible('premium');
|
|
8965
|
+
}
|
|
8966
|
+
isCompactVariant() {
|
|
8967
|
+
return this.isSectionVisible('cover')
|
|
8968
|
+
&& !this.isSectionVisible('term')
|
|
8969
|
+
&& !this.isSectionVisible('premium');
|
|
8970
|
+
}
|
|
8897
8971
|
initializeComponentState() {
|
|
8898
8972
|
this.coverDetailsState = {
|
|
8899
8973
|
...(this.coverDetails || {})
|
|
@@ -8923,6 +8997,9 @@ class LifeCoverDetailsComponent {
|
|
|
8923
8997
|
...this.premiumDetailsState,
|
|
8924
8998
|
premiumValue: this.paymentTermValue
|
|
8925
8999
|
};
|
|
9000
|
+
this.coverInputError = '';
|
|
9001
|
+
this.termInputError = '';
|
|
9002
|
+
this.syncSliderInputValues();
|
|
8926
9003
|
}
|
|
8927
9004
|
resolveDisplayOptions(value, fallback) {
|
|
8928
9005
|
if (!Array.isArray(value)) {
|
|
@@ -8998,7 +9075,12 @@ class LifeCoverDetailsComponent {
|
|
|
8998
9075
|
const options = type === 'cover' ? this.coverBadgeValues : this.termScaleLabels;
|
|
8999
9076
|
const currentValue = value ?? (type === 'cover' ? this.coverProgress : this.termProgress);
|
|
9000
9077
|
if (options.length > 0) {
|
|
9001
|
-
|
|
9078
|
+
const exactIndex = Number.isInteger(currentValue) ? currentValue : -1;
|
|
9079
|
+
if (exactIndex >= 0 && exactIndex < options.length) {
|
|
9080
|
+
return options[exactIndex]?.value || options[exactIndex]?.label || '';
|
|
9081
|
+
}
|
|
9082
|
+
const comparableValue = this.getComparableValueForSliderPosition(type, currentValue);
|
|
9083
|
+
return this.formatSliderDisplayValue(type, comparableValue, this.getSliderPoints(type));
|
|
9002
9084
|
}
|
|
9003
9085
|
return this.getSelectedScaleLabel(type, currentValue);
|
|
9004
9086
|
}
|
|
@@ -9009,12 +9091,269 @@ class LifeCoverDetailsComponent {
|
|
|
9009
9091
|
}
|
|
9010
9092
|
return Math.min(Math.max(numericValue, min), max);
|
|
9011
9093
|
}
|
|
9094
|
+
getConfigData() {
|
|
9095
|
+
const configData = this.field()?.configData;
|
|
9096
|
+
if (configData && typeof configData === 'object') {
|
|
9097
|
+
return configData;
|
|
9098
|
+
}
|
|
9099
|
+
return {};
|
|
9100
|
+
}
|
|
9101
|
+
syncSliderInputValues() {
|
|
9102
|
+
this.coverInputValue = this.getBadgeValue('cover');
|
|
9103
|
+
this.termInputValue = this.getBadgeValue('term');
|
|
9104
|
+
}
|
|
9105
|
+
getEditableIntegerValue(type) {
|
|
9106
|
+
const currentPoint = this.getCurrentSliderPoint(type);
|
|
9107
|
+
if (currentPoint) {
|
|
9108
|
+
return `${currentPoint.inputValue}`;
|
|
9109
|
+
}
|
|
9110
|
+
const currentSliderValue = type === 'cover' ? this.coverProgress : this.termProgress;
|
|
9111
|
+
const comparableValue = this.getComparableValueForSliderPosition(type, currentSliderValue);
|
|
9112
|
+
return `${Math.round(comparableValue)}`;
|
|
9113
|
+
}
|
|
9114
|
+
getCurrentSliderPoint(type) {
|
|
9115
|
+
const currentSliderValue = type === 'cover' ? this.coverProgress : this.termProgress;
|
|
9116
|
+
return this.getSliderPoints(type).find((point) => point.sliderValue === currentSliderValue) || null;
|
|
9117
|
+
}
|
|
9118
|
+
resolveSliderInput(type, inputValue) {
|
|
9119
|
+
if (!Number.isInteger(inputValue)) {
|
|
9120
|
+
return null;
|
|
9121
|
+
}
|
|
9122
|
+
const sliderPoints = this.getSliderPoints(type);
|
|
9123
|
+
if (sliderPoints.length === 0) {
|
|
9124
|
+
return null;
|
|
9125
|
+
}
|
|
9126
|
+
if (!this.isInputWithinSliderRange(type, inputValue, sliderPoints)) {
|
|
9127
|
+
return null;
|
|
9128
|
+
}
|
|
9129
|
+
if (type === 'cover') {
|
|
9130
|
+
const exactDisplayMatch = sliderPoints.find((point) => point.inputValue === inputValue);
|
|
9131
|
+
if (exactDisplayMatch) {
|
|
9132
|
+
return {
|
|
9133
|
+
sliderValue: exactDisplayMatch.sliderValue,
|
|
9134
|
+
comparableValue: exactDisplayMatch.comparableValue,
|
|
9135
|
+
displayValue: exactDisplayMatch.displayValue
|
|
9136
|
+
};
|
|
9137
|
+
}
|
|
9138
|
+
}
|
|
9139
|
+
const comparableCandidates = this.getComparableCandidates(type, inputValue, sliderPoints);
|
|
9140
|
+
const comparableValues = sliderPoints.map((point) => point.comparableValue);
|
|
9141
|
+
const minComparableValue = Math.min(...comparableValues);
|
|
9142
|
+
const maxComparableValue = Math.max(...comparableValues);
|
|
9143
|
+
const targetComparableValue = comparableCandidates.find((candidate) => candidate >= minComparableValue && candidate <= maxComparableValue);
|
|
9144
|
+
if (targetComparableValue === undefined) {
|
|
9145
|
+
return null;
|
|
9146
|
+
}
|
|
9147
|
+
return {
|
|
9148
|
+
sliderValue: this.getInterpolatedSliderValue(sliderPoints, targetComparableValue),
|
|
9149
|
+
comparableValue: targetComparableValue,
|
|
9150
|
+
displayValue: this.formatSliderDisplayValue(type, targetComparableValue, sliderPoints)
|
|
9151
|
+
};
|
|
9152
|
+
}
|
|
9153
|
+
getSliderPoints(type) {
|
|
9154
|
+
const options = type === 'cover' ? this.coverBadgeValues : this.termScaleLabels;
|
|
9155
|
+
if (options.length > 0) {
|
|
9156
|
+
return options
|
|
9157
|
+
.map((option, index) => this.createSliderPoint(type, index, option.value || option.label))
|
|
9158
|
+
.filter((point) => point !== null);
|
|
9159
|
+
}
|
|
9160
|
+
const min = this.getSliderMin(type);
|
|
9161
|
+
const max = this.getSliderMax(type);
|
|
9162
|
+
const step = this.getSliderStep(type);
|
|
9163
|
+
const sliderPoints = [];
|
|
9164
|
+
for (let sliderValue = min; sliderValue <= max; sliderValue += step) {
|
|
9165
|
+
sliderPoints.push({
|
|
9166
|
+
sliderValue,
|
|
9167
|
+
inputValue: sliderValue,
|
|
9168
|
+
comparableValue: sliderValue,
|
|
9169
|
+
displayValue: `${sliderValue}`,
|
|
9170
|
+
unitType: 'plain'
|
|
9171
|
+
});
|
|
9172
|
+
}
|
|
9173
|
+
return sliderPoints;
|
|
9174
|
+
}
|
|
9175
|
+
createSliderPoint(type, sliderValue, displayValue) {
|
|
9176
|
+
const parsedValue = this.parseSliderPointValue(type, displayValue);
|
|
9177
|
+
if (!parsedValue) {
|
|
9178
|
+
return null;
|
|
9179
|
+
}
|
|
9180
|
+
return {
|
|
9181
|
+
sliderValue,
|
|
9182
|
+
displayValue: displayValue.trim(),
|
|
9183
|
+
inputValue: parsedValue.inputValue,
|
|
9184
|
+
comparableValue: parsedValue.comparableValue,
|
|
9185
|
+
unitType: parsedValue.unitType
|
|
9186
|
+
};
|
|
9187
|
+
}
|
|
9188
|
+
parseSliderPointValue(type, displayValue) {
|
|
9189
|
+
const normalizedValue = `${displayValue ?? ''}`.trim();
|
|
9190
|
+
const numericMatch = normalizedValue.replace(/,/g, '').match(/\d+/);
|
|
9191
|
+
if (!numericMatch) {
|
|
9192
|
+
return null;
|
|
9193
|
+
}
|
|
9194
|
+
const inputValue = Number(numericMatch[0]);
|
|
9195
|
+
if (!Number.isInteger(inputValue)) {
|
|
9196
|
+
return null;
|
|
9197
|
+
}
|
|
9198
|
+
if (type === 'term') {
|
|
9199
|
+
return {
|
|
9200
|
+
inputValue,
|
|
9201
|
+
comparableValue: inputValue,
|
|
9202
|
+
unitType: 'plain'
|
|
9203
|
+
};
|
|
9204
|
+
}
|
|
9205
|
+
const textTokens = normalizedValue.toLowerCase().match(/[a-z]+/g) || [];
|
|
9206
|
+
const hasCroreUnit = textTokens.some((token) => token === 'cr' || token === 'crore' || token === 'crores');
|
|
9207
|
+
const hasLakhUnit = textTokens.some((token) => token === 'l' || token === 'lac' || token === 'lakh' || token === 'lakhs');
|
|
9208
|
+
const comparableValue = hasCroreUnit ? inputValue * 100 : inputValue;
|
|
9209
|
+
return {
|
|
9210
|
+
inputValue,
|
|
9211
|
+
comparableValue,
|
|
9212
|
+
unitType: hasCroreUnit ? 'crore' : hasLakhUnit ? 'lakh' : 'plain'
|
|
9213
|
+
};
|
|
9214
|
+
}
|
|
9215
|
+
isInputWithinSliderRange(type, inputValue, sliderPoints) {
|
|
9216
|
+
const comparableCandidates = this.getComparableCandidates(type, inputValue, sliderPoints);
|
|
9217
|
+
const comparableValues = sliderPoints.map((point) => point.comparableValue);
|
|
9218
|
+
const minComparableValue = Math.min(...comparableValues);
|
|
9219
|
+
const maxComparableValue = Math.max(...comparableValues);
|
|
9220
|
+
return comparableCandidates.some((candidate) => candidate >= minComparableValue && candidate <= maxComparableValue);
|
|
9221
|
+
}
|
|
9222
|
+
getComparableCandidates(type, inputValue, sliderPoints) {
|
|
9223
|
+
if (type === 'term') {
|
|
9224
|
+
return [inputValue];
|
|
9225
|
+
}
|
|
9226
|
+
const candidates = new Set([inputValue]);
|
|
9227
|
+
const hasCrorePoint = sliderPoints.some((point) => point.unitType === 'crore');
|
|
9228
|
+
const hasIndianCurrencyPoint = hasCrorePoint || sliderPoints.some((point) => point.unitType === 'lakh');
|
|
9229
|
+
if (hasCrorePoint) {
|
|
9230
|
+
candidates.add(inputValue * 100);
|
|
9231
|
+
}
|
|
9232
|
+
if (hasIndianCurrencyPoint) {
|
|
9233
|
+
candidates.add(inputValue / 100000);
|
|
9234
|
+
}
|
|
9235
|
+
return [...candidates];
|
|
9236
|
+
}
|
|
9237
|
+
getNearestScaleIndex(type, value) {
|
|
9238
|
+
const options = type === 'cover' ? this.coverBadgeValues : this.termScaleLabels;
|
|
9239
|
+
if (options.length === 0) {
|
|
9240
|
+
return -1;
|
|
9241
|
+
}
|
|
9242
|
+
const currentValue = value ?? (type === 'cover' ? this.coverProgress : this.termProgress);
|
|
9243
|
+
const roundedIndex = Math.round(currentValue);
|
|
9244
|
+
return Math.min(Math.max(roundedIndex, 0), options.length - 1);
|
|
9245
|
+
}
|
|
9246
|
+
getComparableValueForSliderPosition(type, sliderValue) {
|
|
9247
|
+
const sliderPoints = this.getSliderPoints(type);
|
|
9248
|
+
if (sliderPoints.length === 0) {
|
|
9249
|
+
return sliderValue;
|
|
9250
|
+
}
|
|
9251
|
+
const exactPoint = sliderPoints.find((point) => point.sliderValue === sliderValue);
|
|
9252
|
+
if (exactPoint) {
|
|
9253
|
+
return exactPoint.comparableValue;
|
|
9254
|
+
}
|
|
9255
|
+
const firstPoint = sliderPoints[0];
|
|
9256
|
+
const lastPoint = sliderPoints[sliderPoints.length - 1];
|
|
9257
|
+
if (sliderValue <= firstPoint.sliderValue) {
|
|
9258
|
+
return firstPoint.comparableValue;
|
|
9259
|
+
}
|
|
9260
|
+
if (sliderValue >= lastPoint.sliderValue) {
|
|
9261
|
+
return lastPoint.comparableValue;
|
|
9262
|
+
}
|
|
9263
|
+
for (let index = 0; index < sliderPoints.length - 1; index += 1) {
|
|
9264
|
+
const leftPoint = sliderPoints[index];
|
|
9265
|
+
const rightPoint = sliderPoints[index + 1];
|
|
9266
|
+
if (sliderValue > leftPoint.sliderValue && sliderValue < rightPoint.sliderValue) {
|
|
9267
|
+
const sliderRange = rightPoint.sliderValue - leftPoint.sliderValue;
|
|
9268
|
+
const positionRatio = sliderRange === 0 ? 0 : (sliderValue - leftPoint.sliderValue) / sliderRange;
|
|
9269
|
+
return leftPoint.comparableValue
|
|
9270
|
+
+ ((rightPoint.comparableValue - leftPoint.comparableValue) * positionRatio);
|
|
9271
|
+
}
|
|
9272
|
+
}
|
|
9273
|
+
return firstPoint.comparableValue;
|
|
9274
|
+
}
|
|
9275
|
+
getInterpolatedSliderValue(sliderPoints, comparableValue) {
|
|
9276
|
+
if (sliderPoints.length === 0) {
|
|
9277
|
+
return 0;
|
|
9278
|
+
}
|
|
9279
|
+
const firstPoint = sliderPoints[0];
|
|
9280
|
+
const lastPoint = sliderPoints[sliderPoints.length - 1];
|
|
9281
|
+
if (comparableValue <= firstPoint.comparableValue) {
|
|
9282
|
+
return firstPoint.sliderValue;
|
|
9283
|
+
}
|
|
9284
|
+
if (comparableValue >= lastPoint.comparableValue) {
|
|
9285
|
+
return lastPoint.sliderValue;
|
|
9286
|
+
}
|
|
9287
|
+
for (let index = 0; index < sliderPoints.length - 1; index += 1) {
|
|
9288
|
+
const leftPoint = sliderPoints[index];
|
|
9289
|
+
const rightPoint = sliderPoints[index + 1];
|
|
9290
|
+
if (comparableValue === leftPoint.comparableValue) {
|
|
9291
|
+
return leftPoint.sliderValue;
|
|
9292
|
+
}
|
|
9293
|
+
if (comparableValue === rightPoint.comparableValue) {
|
|
9294
|
+
return rightPoint.sliderValue;
|
|
9295
|
+
}
|
|
9296
|
+
if (comparableValue > leftPoint.comparableValue && comparableValue < rightPoint.comparableValue) {
|
|
9297
|
+
const comparableRange = rightPoint.comparableValue - leftPoint.comparableValue;
|
|
9298
|
+
const positionRatio = comparableRange === 0 ? 0 : (comparableValue - leftPoint.comparableValue) / comparableRange;
|
|
9299
|
+
return leftPoint.sliderValue
|
|
9300
|
+
+ ((rightPoint.sliderValue - leftPoint.sliderValue) * positionRatio);
|
|
9301
|
+
}
|
|
9302
|
+
}
|
|
9303
|
+
return firstPoint.sliderValue;
|
|
9304
|
+
}
|
|
9305
|
+
formatSliderDisplayValue(type, comparableValue, sliderPoints) {
|
|
9306
|
+
if (type === 'term') {
|
|
9307
|
+
return `${Math.round(comparableValue)}`;
|
|
9308
|
+
}
|
|
9309
|
+
const hasCrorePoint = sliderPoints.some((point) => point.unitType === 'crore');
|
|
9310
|
+
const hasLakhPoint = sliderPoints.some((point) => point.unitType === 'lakh');
|
|
9311
|
+
if (hasCrorePoint && comparableValue >= 100) {
|
|
9312
|
+
return `${this.formatCompactNumber(comparableValue / 100)} Cr`;
|
|
9313
|
+
}
|
|
9314
|
+
if (hasLakhPoint) {
|
|
9315
|
+
return `${this.formatCompactNumber(comparableValue)} L`;
|
|
9316
|
+
}
|
|
9317
|
+
return this.formatCompactNumber(comparableValue);
|
|
9318
|
+
}
|
|
9319
|
+
formatCompactNumber(value) {
|
|
9320
|
+
if (Number.isInteger(value)) {
|
|
9321
|
+
return `${value}`;
|
|
9322
|
+
}
|
|
9323
|
+
return `${Number(value.toFixed(2))}`;
|
|
9324
|
+
}
|
|
9325
|
+
getSliderInputValidationMessage(type) {
|
|
9326
|
+
const sliderPoints = this.getSliderPoints(type);
|
|
9327
|
+
if (sliderPoints.length === 0) {
|
|
9328
|
+
return 'Enter a valid whole number.';
|
|
9329
|
+
}
|
|
9330
|
+
const firstPoint = sliderPoints[0];
|
|
9331
|
+
const lastPoint = sliderPoints[sliderPoints.length - 1];
|
|
9332
|
+
return `Allowed range: ${firstPoint.displayValue} to ${lastPoint.displayValue}.`;
|
|
9333
|
+
}
|
|
9334
|
+
setInputValue(type, value) {
|
|
9335
|
+
if (type === 'cover') {
|
|
9336
|
+
this.coverInputValue = value;
|
|
9337
|
+
return;
|
|
9338
|
+
}
|
|
9339
|
+
this.termInputValue = value;
|
|
9340
|
+
}
|
|
9341
|
+
getInputValue(type) {
|
|
9342
|
+
return type === 'cover' ? this.coverInputValue : this.termInputValue;
|
|
9343
|
+
}
|
|
9344
|
+
setInputError(type, value) {
|
|
9345
|
+
if (type === 'cover') {
|
|
9346
|
+
this.coverInputError = value;
|
|
9347
|
+
return;
|
|
9348
|
+
}
|
|
9349
|
+
this.termInputError = value;
|
|
9350
|
+
}
|
|
9012
9351
|
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"] }] });
|
|
9352
|
+
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 <input\n class=\"value-badge value-badge-input\"\n [class.value-badge--invalid]=\"getInputError('cover')\"\n [ngModel]=\"coverInputValue\"\n (ngModelChange)=\"onBadgeInput('cover', $event)\"\n (focus)=\"onBadgeFocus('cover')\"\n (blur)=\"onBadgeBlur('cover')\"\n inputmode=\"numeric\"\n pattern=\"[0-9]*\"\n autocomplete=\"off\"\n aria-label=\"Enter life cover value\" />\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 [class.scale-label--first]=\"index === 0\"\n [class.scale-label--last]=\"index === coverBadgeValues.length - 1\"\n *ngFor=\"let option of coverBadgeValues; let index = index\"\n [style.left.%]=\"getScaleLabelOffset(index, coverBadgeValues.length)\"\n [class.is-active]=\"isScaleLabelActive('cover', index)\">\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 <span class=\"validation-message\" *ngIf=\"getInputError('cover')\">{{ getInputError('cover') }}</span>\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 <div class=\"value-badge-wrap value-badge-wrap--compact\">\n <input\n class=\"value-badge value-badge-input value-badge--compact\"\n [class.value-badge--invalid]=\"getInputError('term')\"\n [ngModel]=\"termInputValue\"\n (ngModelChange)=\"onBadgeInput('term', $event)\"\n (focus)=\"onBadgeFocus('term')\"\n (blur)=\"onBadgeBlur('term')\"\n inputmode=\"numeric\"\n pattern=\"[0-9]*\"\n autocomplete=\"off\"\n aria-label=\"Enter cover till age value\" />\n </div>\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 [class.scale-label--first]=\"index === 0\"\n [class.scale-label--last]=\"index === termScaleLabels.length - 1\"\n *ngFor=\"let option of termScaleLabels; let index = index\"\n [style.left.%]=\"getScaleLabelOffset(index, termScaleLabels.length)\"\n [class.is-active]=\"isScaleLabelActive('term', index)\">\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 <span class=\"validation-message\" *ngIf=\"getInputError('term')\">{{ getInputError('term') }}</span>\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}.value-badge-wrap--compact{padding-top:0}.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}.value-badge-input{outline:none;appearance:none;cursor:text}.value-badge-input:focus{border-color:#ffb400;box-shadow:0 0 0 3px #ffb40024}.value-badge--invalid{border-color:#e24c4c;box-shadow:0 0 0 3px #e24c4c1f}.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{position:relative;min-height:24px}.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{position:absolute;top:0;transform:translate(-50%);text-align:center;white-space:nowrap}.scale-label--first{transform:translate(0);text-align:left}.scale-label--last{transform:translate(-100%);text-align:right}.scale-label.is-active{color:#444;font-weight:800}.hint-row span:last-child{text-align:right}.validation-message{color:#d94841;font-family:Mulish,sans-serif!important;font-size:12px;font-weight:700;line-height:1.4}.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.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { 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
9353
|
}
|
|
9015
9354
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsComponent, decorators: [{
|
|
9016
9355
|
type: Component,
|
|
9017
|
-
args: [{ selector: 'lib-life-cover-details', standalone: true, imports: [CommonModule, FormsModule, MatSliderModule], template: "<div class=\"life-cover-container\" *ngIf=\"field()?.isVisible\">\n <div class=\"life-cover-card\">\n <div class=\"control-block slider-block\">\n <div class=\"label-row label-row--top\">\n <span class=\"control-label control-label--large\">{{ getControlLabel('cover') }}</span>\n <div class=\"value-badge-wrap\">\n <!-- <span class=\"accent-badge\" *ngIf=\"getDecorationLabel()\">{{ getDecorationLabel() }}</span> -->\n <span class=\"value-badge\">{{ getBadgeValue('cover') }}</span>\n </div>\n </div>\n <mat-slider class=\"life-slider\"\n [min]=\"getSliderMin('cover')\"\n [max]=\"getSliderMax('cover')\"\n [step]=\"getSliderStep('cover')\"\n [discrete]=\"false\"\n [showTickMarks]=\"false\">\n <input matSliderThumb [(ngModel)]=\"coverProgress\" (valueChange)=\"onCoverSliderChange($event)\" />\n </mat-slider>\n <div class=\"scale-row\" *ngIf=\"coverBadgeValues.length; else coverHintRow\">\n <span\n class=\"scale-label\"\n *ngFor=\"let option of coverBadgeValues; let index = index\"\n [class.is-active]=\"index === coverProgress\">\n {{ option.label }}\n </span>\n </div>\n <ng-template #coverHintRow>\n <div class=\"hint-row\">\n <span>{{ coverDetailsState.coverMinHint || 'INR 1,00,000' }}</span>\n <span>{{ coverDetailsState.coverMaxHint || 'INR 1,00,00,000' }}</span>\n </div>\n </ng-template>\n </div>\n\n <div class=\"row-divider row-divider--dashed\"></div>\n\n <div class=\"control-block slider-block\">\n <div class=\"label-row\">\n <span class=\"control-label control-label--large\">{{ getControlLabel('term') }}</span>\n <span class=\"value-badge value-badge--compact\">{{ getBadgeValue('term') }}</span>\n </div>\n <mat-slider class=\"life-slider\"\n [min]=\"getSliderMin('term')\"\n [max]=\"getSliderMax('term')\"\n [step]=\"getSliderStep('term')\"\n [discrete]=\"false\"\n [showTickMarks]=\"false\">\n <input matSliderThumb [(ngModel)]=\"termProgress\" (valueChange)=\"onTermSliderChange($event)\" />\n </mat-slider>\n <div class=\"scale-row\" *ngIf=\"termScaleLabels.length; else termHintRow\">\n <span\n class=\"scale-label\"\n *ngFor=\"let option of termScaleLabels; let index = index\"\n [class.is-active]=\"index === termProgress\">\n {{ option.label }}\n </span>\n </div>\n <ng-template #termHintRow>\n <div class=\"hint-row\">\n <span>{{ termDetailsState.termMinHint || '5 Years' }}</span>\n <span>{{ termDetailsState.termMaxHint || '40 Years' }}</span>\n </div>\n </ng-template>\n </div>\n\n <div class=\"row-divider row-divider--dashed\"></div>\n\n <div class=\"control-block input-block\">\n <div class=\"label-row\">\n <span class=\"control-label\">{{ getControlLabel('premium') }}</span>\n </div>\n <div class=\"select-shell\">\n <select class=\"select-input\" [(ngModel)]=\"paymentTermValue\" (ngModelChange)=\"onPaymentTermChange($event)\">\n <option *ngFor=\"let option of paymentTermOptions\" [ngValue]=\"option.value\">\n {{ option.label }}\n </option>\n </select>\n <span class=\"select-chevron\" aria-hidden=\"true\"></span>\n </div>\n </div>\n </div>\n\n <div class=\"button-row\">\n <button type=\"button\" class=\"primary-button\" (click)=\"onTextButtonClick()\">\n {{ getActionLabel() }}\n </button>\n </div>\n</div>\n", styles: [".life-cover-container{width:min(540px,100%);border:1px solid #dbe4ef;border-radius:28px;background:linear-gradient(180deg,#e5f0fa80 50%,#fff);box-shadow:0 18px 40px #22365414;overflow:hidden}.life-cover-card{padding:28px 28px 20px}.control-block{display:flex;flex-direction:column;gap:16px}.slider-block{min-height:132px}.input-block{gap:12px}.label-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.label-row--top{align-items:flex-start}.control-label{color:#2b3138;font-family:Mulish,sans-serif!important;font-size:16px;font-weight:800;line-height:1.3}.control-label--large{font-size:24px;font-weight:800;line-height:1.2}.value-badge-wrap{position:relative;display:inline-flex;align-items:flex-start;justify-content:flex-end;padding-top:6px}.accent-badge{position:absolute;top:-16px;left:16px;width:34px;height:34px;border:3px solid #30343b;border-radius:50%;background:linear-gradient(180deg,#ff6b2e,#ff4f1d);box-shadow:0 8px 14px #0003;color:#fff;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:28px;text-align:center}.value-badge{min-width:106px;height:46px;padding:0 18px;border:2px solid #d7d7d7;border-radius:10px;background:#fff;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:20px;font-weight:700;line-height:42px;text-align:center}.value-badge--compact{min-width:74px}.life-slider{width:100%;margin:0;--mdc-slider-active-track-color: #ffb400;--mdc-slider-inactive-track-color: #eef2f7;--mdc-slider-active-track-height: 10px;--mdc-slider-inactive-track-height: 10px;--mdc-slider-active-track-shape: 999px;--mdc-slider-inactive-track-shape: 999px;--mdc-slider-handle-color: #ffb400;--mdc-slider-focus-handle-color: #ffb400;--mdc-slider-hover-handle-color: #ffb400;--mat-mdc-slider-ripple-color: rgba(255, 180, 0, .22)}::ng-deep .life-slider .mdc-slider{padding:0}::ng-deep .life-slider .mdc-slider__track{height:10px}::ng-deep .life-slider .mdc-slider__track--active_fill{border-color:#ffb400!important}::ng-deep .life-slider .mdc-slider__track--inactive{background-color:#eef2f7!important}::ng-deep .life-slider .mdc-slider__thumb-knob{width:18px!important;height:18px!important;border:6px solid #ffb400!important;background-color:#fff!important;box-sizing:border-box}::ng-deep .life-slider .mdc-slider__thumb:before,::ng-deep .life-slider .mdc-slider__thumb:after{background-color:#ffb40029!important}.scale-row,.hint-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:center;gap:8px}.scale-label,.hint-row span{color:#8b929b;font-family:Mulish,sans-serif!important;font-size:13px;font-weight:600;line-height:1.4}.scale-label{text-align:center}.scale-label:first-child{text-align:left}.scale-label:last-child{text-align:right}.scale-label.is-active{color:#444;font-weight:800}.hint-row span:last-child{text-align:right}.row-divider{margin:16px 0 28px}.row-divider--dashed{border-top:2px dashed #d8dfe7}.select-shell{position:relative}.select-input{width:100%;height:60px;padding:0 56px 0 22px;border:2px solid #d7d7d7;border-radius:18px;background:#fff;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:600;line-height:1.2;appearance:none;outline:none}.select-input:focus{border-color:#ffb400;box-shadow:0 0 0 3px #ffb40024}.select-chevron{position:absolute;top:50%;right:24px;width:12px;height:12px;border-right:4px solid #2f3136;border-bottom:4px solid #2f3136;transform:translateY(-60%) rotate(45deg);pointer-events:none}.button-row{padding:22px 28px 28px;border-top:1px solid #dbe4ef;background:#fff}.primary-button{width:100%;height:58px;border:0;border-radius:18px;background:linear-gradient(90deg,#ffb400,#ffc11b);color:#1f2125;font-family:Mulish,sans-serif!important;font-size:20px;font-weight:800;line-height:1.2;box-shadow:0 10px 24px #ffb4003d}.primary-button:hover{background:linear-gradient(90deg,#ffb000,#ffbe0e)}@media (max-width: 576px){.life-cover-card{padding:22px 20px 18px}.control-label--large{font-size:18px}.value-badge{min-width:84px;height:42px;padding:0 14px;font-size:17px;line-height:38px}.scale-label,.hint-row span{font-size:12px}.select-input{height:54px;font-size:16px}.button-row{padding:18px 20px 22px}.primary-button{height:54px;font-size:18px}}\n"] }]
|
|
9356
|
+
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 <input\n class=\"value-badge value-badge-input\"\n [class.value-badge--invalid]=\"getInputError('cover')\"\n [ngModel]=\"coverInputValue\"\n (ngModelChange)=\"onBadgeInput('cover', $event)\"\n (focus)=\"onBadgeFocus('cover')\"\n (blur)=\"onBadgeBlur('cover')\"\n inputmode=\"numeric\"\n pattern=\"[0-9]*\"\n autocomplete=\"off\"\n aria-label=\"Enter life cover value\" />\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 [class.scale-label--first]=\"index === 0\"\n [class.scale-label--last]=\"index === coverBadgeValues.length - 1\"\n *ngFor=\"let option of coverBadgeValues; let index = index\"\n [style.left.%]=\"getScaleLabelOffset(index, coverBadgeValues.length)\"\n [class.is-active]=\"isScaleLabelActive('cover', index)\">\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 <span class=\"validation-message\" *ngIf=\"getInputError('cover')\">{{ getInputError('cover') }}</span>\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 <div class=\"value-badge-wrap value-badge-wrap--compact\">\n <input\n class=\"value-badge value-badge-input value-badge--compact\"\n [class.value-badge--invalid]=\"getInputError('term')\"\n [ngModel]=\"termInputValue\"\n (ngModelChange)=\"onBadgeInput('term', $event)\"\n (focus)=\"onBadgeFocus('term')\"\n (blur)=\"onBadgeBlur('term')\"\n inputmode=\"numeric\"\n pattern=\"[0-9]*\"\n autocomplete=\"off\"\n aria-label=\"Enter cover till age value\" />\n </div>\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 [class.scale-label--first]=\"index === 0\"\n [class.scale-label--last]=\"index === termScaleLabels.length - 1\"\n *ngFor=\"let option of termScaleLabels; let index = index\"\n [style.left.%]=\"getScaleLabelOffset(index, termScaleLabels.length)\"\n [class.is-active]=\"isScaleLabelActive('term', index)\">\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 <span class=\"validation-message\" *ngIf=\"getInputError('term')\">{{ getInputError('term') }}</span>\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}.value-badge-wrap--compact{padding-top:0}.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}.value-badge-input{outline:none;appearance:none;cursor:text}.value-badge-input:focus{border-color:#ffb400;box-shadow:0 0 0 3px #ffb40024}.value-badge--invalid{border-color:#e24c4c;box-shadow:0 0 0 3px #e24c4c1f}.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{position:relative;min-height:24px}.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{position:absolute;top:0;transform:translate(-50%);text-align:center;white-space:nowrap}.scale-label--first{transform:translate(0);text-align:left}.scale-label--last{transform:translate(-100%);text-align:right}.scale-label.is-active{color:#444;font-weight:800}.hint-row span:last-child{text-align:right}.validation-message{color:#d94841;font-family:Mulish,sans-serif!important;font-size:12px;font-weight:700;line-height:1.4}.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
9357
|
}], propDecorators: { coverDetails: [{
|
|
9019
9358
|
type: Input
|
|
9020
9359
|
}], termDetails: [{
|
|
@@ -9086,6 +9425,9 @@ const DEFAULT_POST_PREMIUM_CONFIG = {
|
|
|
9086
9425
|
coverValue: '\u20B91 Cr',
|
|
9087
9426
|
ageLabel: 'Cover Till Age',
|
|
9088
9427
|
ageValue: '65 yrs',
|
|
9428
|
+
middleLabel: '',
|
|
9429
|
+
middleValue: '',
|
|
9430
|
+
middleSuffix: '',
|
|
9089
9431
|
firstYearLabel: '1st-Yr Premium',
|
|
9090
9432
|
firstYearValue: '\u20B911,675',
|
|
9091
9433
|
firstYearSuffix: '/yr',
|
|
@@ -9100,20 +9442,83 @@ class LifeCoverDetailsPostPremiumCalculationComponent {
|
|
|
9100
9442
|
premiumSummary = null;
|
|
9101
9443
|
premiumSummaryState = { ...DEFAULT_POST_PREMIUM_CONFIG };
|
|
9102
9444
|
isShowFinalQuoteSummary = false;
|
|
9445
|
+
isShowMotorPlanSummary = false;
|
|
9446
|
+
hideHeaderIcon = false;
|
|
9447
|
+
hideHeaderActionButton = false;
|
|
9448
|
+
showHeaderSuccessBadge = false;
|
|
9449
|
+
showActionButtons = false;
|
|
9450
|
+
headerActionLabel = 'View BI';
|
|
9451
|
+
primaryActionIconType = 'share';
|
|
9452
|
+
secondaryActionIconType = 'sparkle';
|
|
9103
9453
|
previousIsShowFinalQuoteSummary = false;
|
|
9454
|
+
previousIsShowMotorPlanSummary = false;
|
|
9455
|
+
previousHideHeaderIcon = false;
|
|
9456
|
+
previousHideHeaderActionButton = false;
|
|
9457
|
+
previousShowHeaderSuccessBadge = false;
|
|
9458
|
+
previousShowActionButtons = false;
|
|
9459
|
+
previousHeaderActionLabel = 'View BI';
|
|
9460
|
+
previousPrimaryActionIconType = 'share';
|
|
9461
|
+
previousSecondaryActionIconType = 'sparkle';
|
|
9462
|
+
previousPremiumSummarySnapshot = '';
|
|
9104
9463
|
ngOnChanges(changes) {
|
|
9105
9464
|
if (changes['premiumSummary']) {
|
|
9106
9465
|
this.initializePremiumSummary();
|
|
9466
|
+
this.previousPremiumSummarySnapshot = this.createPremiumSummarySnapshot();
|
|
9107
9467
|
}
|
|
9108
9468
|
if (changes['field']) {
|
|
9109
9469
|
this.syncFinalQuoteSummaryState();
|
|
9110
9470
|
}
|
|
9111
9471
|
}
|
|
9112
9472
|
ngDoCheck() {
|
|
9113
|
-
const
|
|
9114
|
-
if (
|
|
9115
|
-
this.
|
|
9116
|
-
this.
|
|
9473
|
+
const currentPremiumSummarySnapshot = this.createPremiumSummarySnapshot();
|
|
9474
|
+
if (currentPremiumSummarySnapshot !== this.previousPremiumSummarySnapshot) {
|
|
9475
|
+
this.previousPremiumSummarySnapshot = currentPremiumSummarySnapshot;
|
|
9476
|
+
this.initializePremiumSummary();
|
|
9477
|
+
}
|
|
9478
|
+
const currentFinalQuoteSummaryValue = this.resolveBoolean(this.field?.configData?.isShowFinalQuoteSummary, false);
|
|
9479
|
+
const currentMotorPlanSummaryValue = this.resolveBoolean(this.field?.configData?.isShowMotorPlanSummary, false);
|
|
9480
|
+
const currentHideHeaderIconValue = this.resolveBoolean(this.field?.configData?.hideHeaderIcon, false);
|
|
9481
|
+
const currentHideHeaderActionButtonValue = this.resolveBoolean(this.field?.configData?.hideHeaderActionButton, false);
|
|
9482
|
+
const currentShowHeaderSuccessBadgeValue = this.resolveBoolean(this.field?.configData?.showHeaderSuccessBadge, currentFinalQuoteSummaryValue || currentMotorPlanSummaryValue);
|
|
9483
|
+
const currentShowActionButtonsValue = this.resolveBoolean(this.field?.configData?.showActionButtons, currentFinalQuoteSummaryValue || currentMotorPlanSummaryValue);
|
|
9484
|
+
const currentHeaderActionLabel = this.resolveValue(this.field?.configData?.headerActionLabel, 'View BI');
|
|
9485
|
+
const currentPrimaryActionIconType = this.resolveActionIconType(this.field?.configData?.primaryActionIconType, currentMotorPlanSummaryValue ? 'view' : 'share');
|
|
9486
|
+
const currentSecondaryActionIconType = this.resolveActionIconType(this.field?.configData?.secondaryActionIconType, currentMotorPlanSummaryValue ? 'copy' : 'sparkle');
|
|
9487
|
+
if (currentFinalQuoteSummaryValue !== this.previousIsShowFinalQuoteSummary) {
|
|
9488
|
+
this.previousIsShowFinalQuoteSummary = currentFinalQuoteSummaryValue;
|
|
9489
|
+
this.isShowFinalQuoteSummary = currentFinalQuoteSummaryValue;
|
|
9490
|
+
}
|
|
9491
|
+
if (currentMotorPlanSummaryValue !== this.previousIsShowMotorPlanSummary) {
|
|
9492
|
+
this.previousIsShowMotorPlanSummary = currentMotorPlanSummaryValue;
|
|
9493
|
+
this.isShowMotorPlanSummary = currentMotorPlanSummaryValue;
|
|
9494
|
+
}
|
|
9495
|
+
if (currentHideHeaderIconValue !== this.previousHideHeaderIcon) {
|
|
9496
|
+
this.previousHideHeaderIcon = currentHideHeaderIconValue;
|
|
9497
|
+
this.hideHeaderIcon = currentHideHeaderIconValue;
|
|
9498
|
+
}
|
|
9499
|
+
if (currentHideHeaderActionButtonValue !== this.previousHideHeaderActionButton) {
|
|
9500
|
+
this.previousHideHeaderActionButton = currentHideHeaderActionButtonValue;
|
|
9501
|
+
this.hideHeaderActionButton = currentHideHeaderActionButtonValue;
|
|
9502
|
+
}
|
|
9503
|
+
if (currentShowHeaderSuccessBadgeValue !== this.previousShowHeaderSuccessBadge) {
|
|
9504
|
+
this.previousShowHeaderSuccessBadge = currentShowHeaderSuccessBadgeValue;
|
|
9505
|
+
this.showHeaderSuccessBadge = currentShowHeaderSuccessBadgeValue;
|
|
9506
|
+
}
|
|
9507
|
+
if (currentShowActionButtonsValue !== this.previousShowActionButtons) {
|
|
9508
|
+
this.previousShowActionButtons = currentShowActionButtonsValue;
|
|
9509
|
+
this.showActionButtons = currentShowActionButtonsValue;
|
|
9510
|
+
}
|
|
9511
|
+
if (currentHeaderActionLabel !== this.previousHeaderActionLabel) {
|
|
9512
|
+
this.previousHeaderActionLabel = currentHeaderActionLabel;
|
|
9513
|
+
this.headerActionLabel = currentHeaderActionLabel;
|
|
9514
|
+
}
|
|
9515
|
+
if (currentPrimaryActionIconType !== this.previousPrimaryActionIconType) {
|
|
9516
|
+
this.previousPrimaryActionIconType = currentPrimaryActionIconType;
|
|
9517
|
+
this.primaryActionIconType = currentPrimaryActionIconType;
|
|
9518
|
+
}
|
|
9519
|
+
if (currentSecondaryActionIconType !== this.previousSecondaryActionIconType) {
|
|
9520
|
+
this.previousSecondaryActionIconType = currentSecondaryActionIconType;
|
|
9521
|
+
this.secondaryActionIconType = currentSecondaryActionIconType;
|
|
9117
9522
|
}
|
|
9118
9523
|
}
|
|
9119
9524
|
initializePremiumSummary() {
|
|
@@ -9124,31 +9529,76 @@ class LifeCoverDetailsPostPremiumCalculationComponent {
|
|
|
9124
9529
|
coverValue: this.resolveValue(premiumSummary.coverValue, DEFAULT_POST_PREMIUM_CONFIG.coverValue),
|
|
9125
9530
|
ageLabel: this.resolveValue(premiumSummary.ageLabel, DEFAULT_POST_PREMIUM_CONFIG.ageLabel),
|
|
9126
9531
|
ageValue: this.resolveValue(premiumSummary.ageValue, DEFAULT_POST_PREMIUM_CONFIG.ageValue),
|
|
9532
|
+
middleLabel: this.resolveValue(premiumSummary.middleLabel, DEFAULT_POST_PREMIUM_CONFIG.middleLabel, true),
|
|
9533
|
+
middleValue: this.resolveValue(premiumSummary.middleValue, DEFAULT_POST_PREMIUM_CONFIG.middleValue, true),
|
|
9534
|
+
middleSuffix: this.resolveValue(premiumSummary.middleSuffix, DEFAULT_POST_PREMIUM_CONFIG.middleSuffix, true),
|
|
9127
9535
|
firstYearLabel: this.resolveValue(premiumSummary.firstYearLabel, DEFAULT_POST_PREMIUM_CONFIG.firstYearLabel),
|
|
9128
9536
|
firstYearValue: this.resolveValue(premiumSummary.firstYearValue, DEFAULT_POST_PREMIUM_CONFIG.firstYearValue),
|
|
9129
|
-
firstYearSuffix: this.resolveValue(premiumSummary.firstYearSuffix, DEFAULT_POST_PREMIUM_CONFIG.firstYearSuffix),
|
|
9537
|
+
firstYearSuffix: this.resolveValue(premiumSummary.firstYearSuffix, DEFAULT_POST_PREMIUM_CONFIG.firstYearSuffix, true),
|
|
9130
9538
|
renewalLabel: this.resolveValue(premiumSummary.renewalLabel, DEFAULT_POST_PREMIUM_CONFIG.renewalLabel),
|
|
9131
9539
|
renewalValue: this.resolveValue(premiumSummary.renewalValue, DEFAULT_POST_PREMIUM_CONFIG.renewalValue),
|
|
9132
|
-
renewalSuffix: this.resolveValue(premiumSummary.renewalSuffix, DEFAULT_POST_PREMIUM_CONFIG.renewalSuffix),
|
|
9540
|
+
renewalSuffix: this.resolveValue(premiumSummary.renewalSuffix, DEFAULT_POST_PREMIUM_CONFIG.renewalSuffix, true),
|
|
9133
9541
|
primaryActionLabel: this.resolveValue(premiumSummary.primaryActionLabel, DEFAULT_POST_PREMIUM_CONFIG.primaryActionLabel),
|
|
9134
9542
|
secondaryActionLabel: this.resolveValue(premiumSummary.secondaryActionLabel, DEFAULT_POST_PREMIUM_CONFIG.secondaryActionLabel)
|
|
9135
9543
|
};
|
|
9136
9544
|
}
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9545
|
+
isHighlightedSummary() {
|
|
9546
|
+
return this.isShowFinalQuoteSummary || this.isShowMotorPlanSummary;
|
|
9547
|
+
}
|
|
9548
|
+
hasMiddleSection() {
|
|
9549
|
+
return !!(this.premiumSummaryState.middleLabel || this.premiumSummaryState.middleValue);
|
|
9140
9550
|
}
|
|
9141
|
-
|
|
9142
|
-
return this.premiumSummaryState.
|
|
9551
|
+
hasMiddleSuffix() {
|
|
9552
|
+
return !!this.premiumSummaryState.middleSuffix;
|
|
9553
|
+
}
|
|
9554
|
+
hasFirstYearSuffix() {
|
|
9555
|
+
return !!this.premiumSummaryState.firstYearSuffix;
|
|
9556
|
+
}
|
|
9557
|
+
hasRenewalSuffix() {
|
|
9558
|
+
return !!this.premiumSummaryState.renewalSuffix;
|
|
9559
|
+
}
|
|
9560
|
+
isPrimaryActionFilled() {
|
|
9561
|
+
return this.isShowMotorPlanSummary;
|
|
9562
|
+
}
|
|
9563
|
+
getPrimaryActionLabel() {
|
|
9564
|
+
return this.premiumSummaryState.primaryActionLabel || DEFAULT_POST_PREMIUM_CONFIG.primaryActionLabel;
|
|
9565
|
+
}
|
|
9566
|
+
getSecondaryActionLabel() {
|
|
9567
|
+
return this.premiumSummaryState.secondaryActionLabel || DEFAULT_POST_PREMIUM_CONFIG.secondaryActionLabel;
|
|
9143
9568
|
}
|
|
9144
9569
|
syncFinalQuoteSummaryState() {
|
|
9145
|
-
|
|
9570
|
+
const configData = this.field?.configData || {};
|
|
9571
|
+
this.isShowFinalQuoteSummary = this.resolveBoolean(configData.isShowFinalQuoteSummary, false);
|
|
9572
|
+
this.isShowMotorPlanSummary = this.resolveBoolean(configData.isShowMotorPlanSummary, false);
|
|
9573
|
+
this.hideHeaderIcon = this.resolveBoolean(configData.hideHeaderIcon, false);
|
|
9574
|
+
this.hideHeaderActionButton = this.resolveBoolean(configData.hideHeaderActionButton, false);
|
|
9575
|
+
this.showHeaderSuccessBadge = this.resolveBoolean(configData.showHeaderSuccessBadge, this.isHighlightedSummary());
|
|
9576
|
+
this.showActionButtons = this.resolveBoolean(configData.showActionButtons, this.isHighlightedSummary());
|
|
9577
|
+
this.headerActionLabel = this.resolveValue(configData.headerActionLabel, 'View BI');
|
|
9578
|
+
this.primaryActionIconType = this.resolveActionIconType(configData.primaryActionIconType, this.isShowMotorPlanSummary ? 'view' : 'share');
|
|
9579
|
+
this.secondaryActionIconType = this.resolveActionIconType(configData.secondaryActionIconType, this.isShowMotorPlanSummary ? 'copy' : 'sparkle');
|
|
9146
9580
|
this.previousIsShowFinalQuoteSummary = this.isShowFinalQuoteSummary;
|
|
9147
|
-
|
|
9148
|
-
|
|
9581
|
+
this.previousIsShowMotorPlanSummary = this.isShowMotorPlanSummary;
|
|
9582
|
+
this.previousHideHeaderIcon = this.hideHeaderIcon;
|
|
9583
|
+
this.previousHideHeaderActionButton = this.hideHeaderActionButton;
|
|
9584
|
+
this.previousShowHeaderSuccessBadge = this.showHeaderSuccessBadge;
|
|
9585
|
+
this.previousShowActionButtons = this.showActionButtons;
|
|
9586
|
+
this.previousHeaderActionLabel = this.headerActionLabel;
|
|
9587
|
+
this.previousPrimaryActionIconType = this.primaryActionIconType;
|
|
9588
|
+
this.previousSecondaryActionIconType = this.secondaryActionIconType;
|
|
9589
|
+
}
|
|
9590
|
+
createPremiumSummarySnapshot() {
|
|
9591
|
+
return JSON.stringify(this.premiumSummary || {});
|
|
9592
|
+
}
|
|
9593
|
+
resolveValue(value, fallback, allowEmpty = false) {
|
|
9149
9594
|
if (typeof value === 'string') {
|
|
9150
9595
|
const trimmedValue = value.trim();
|
|
9151
|
-
|
|
9596
|
+
if (trimmedValue) {
|
|
9597
|
+
return trimmedValue;
|
|
9598
|
+
}
|
|
9599
|
+
if (allowEmpty) {
|
|
9600
|
+
return '';
|
|
9601
|
+
}
|
|
9152
9602
|
}
|
|
9153
9603
|
return fallback;
|
|
9154
9604
|
}
|
|
@@ -9158,12 +9608,18 @@ class LifeCoverDetailsPostPremiumCalculationComponent {
|
|
|
9158
9608
|
}
|
|
9159
9609
|
return fallback;
|
|
9160
9610
|
}
|
|
9611
|
+
resolveActionIconType(value, fallback) {
|
|
9612
|
+
if (value === 'share' || value === 'sparkle' || value === 'view' || value === 'copy') {
|
|
9613
|
+
return value;
|
|
9614
|
+
}
|
|
9615
|
+
return fallback;
|
|
9616
|
+
}
|
|
9161
9617
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsPostPremiumCalculationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9162
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: LifeCoverDetailsPostPremiumCalculationComponent, isStandalone: true, selector: "lib-life-cover-details-post-premium-calculation", inputs: { field: "field", premiumSummary: "premiumSummary" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"post-premium-wrapper\"\n [class.post-premium-wrapper--final]=\"isShowFinalQuoteSummary\"\n *ngIf=\"field?.isVisible\">\n <div class=\"post-premium-card\" [class.post-premium-card--final]=\"isShowFinalQuoteSummary\">\n <div class=\"post-premium-header\">\n <div class=\"post-premium-header-main\">\n <div class=\"post-premium-success-badge\" *ngIf=\"isShowFinalQuoteSummary\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"m6.5 12.6 3.2 3.2 7.8-8.1\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"3\" />\n </svg>\n </div>\n\n <h3 class=\"post-premium-title\" [class.post-premium-title--final]=\"isShowFinalQuoteSummary\">\n {{ premiumSummaryState.planName }}\n </h3>\n </div>\n\n <button *ngIf=\"isShowFinalQuoteSummary; else defaultPlanIcon\" type=\"button\" class=\"view-bi-button\">\n {{ getViewBiLabel() }}\n </button>\n\n <ng-template #defaultPlanIcon>\n <div class=\"post-premium-icon\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"M12 4v4.5m0 0 5.5 2.5m-5.5-2.5L6.5 11m5.5-2.5V20M4.5 7h15m-13 11h11\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"1.7\" />\n <path\n d=\"M4.8 11h3.4l-1.7 3.1zm11 0h3.4l-1.7 3.1z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linejoin=\"round\"\n stroke-width=\"1.4\" />\n </svg>\n </div>\n </ng-template>\n </div>\n\n <div class=\"post-premium-panel\" [class.post-premium-panel--final]=\"isShowFinalQuoteSummary\">\n <div class=\"post-premium-grid\">\n <div class=\"metric-block\">\n <span class=\"metric-label\">{{ premiumSummaryState.coverLabel }}</span>\n <span class=\"metric-value\">{{ premiumSummaryState.coverValue }}</span>\n </div>\n\n <div class=\"metric-block metric-block--end\">\n <span class=\"metric-label\">{{ premiumSummaryState.ageLabel }}</span>\n <span class=\"metric-value\">{{ premiumSummaryState.ageValue }}</span>\n </div>\n </div>\n\n <div class=\"metric-divider\"></div>\n\n <div class=\"post-premium-grid\">\n <div class=\"metric-block\">\n <span class=\"metric-label\">{{ premiumSummaryState.firstYearLabel }}</span>\n <span class=\"metric-value metric-value--compact\">\n <span>{{ premiumSummaryState.firstYearValue }}</span>\n <span class=\"metric-suffix\">{{ premiumSummaryState.firstYearSuffix }}</span>\n </span>\n </div>\n\n <div class=\"metric-block metric-block--end\">\n <span class=\"metric-label\">{{ premiumSummaryState.renewalLabel }}</span>\n <span class=\"metric-value metric-value--compact\">\n <span>{{ premiumSummaryState.renewalValue }}</span>\n <span class=\"metric-suffix\">{{ premiumSummaryState.renewalSuffix }}</span>\n </span>\n </div>\n </div>\n </div>\n\n <div class=\"post-premium-actions\" *ngIf=\"isShowFinalQuoteSummary\">\n <button type=\"button\" class=\"action-button action-button--secondary action-button--final\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M16.6 7.2a2.6 2.6 0 1 0-2.4-3.7l-5.1 3.1a2.6 2.6 0 1 0 0 6.7l5.1 3.1a2.6 2.6 0 1 0 .8-1.3l-5.1-3.1a2.6 2.6 0 0 0 0-1.9l5.1-3.1c.4.7 1.1 1.2 1.9 1.2Z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2.1\" />\n </svg>\n <span>Payment Link</span>\n </button>\n\n <button type=\"button\" class=\"action-button action-button--secondary action-button--final\">\n <svg viewBox=\"0 0 20 20\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M10 2.3 11.4 6l3.7 1.4-3.7 1.4L10 12.5 8.6 8.8 4.9 7.4 8.6 6 10 2.3Zm5.1 8.3.8 2.1 2.1.8-2.1.8-.8 2.1-.8-2.1-2.1-.8 2.1-.8.8-2.1ZM4.8 11.5l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9.9-2.4Z\"\n fill=\"currentColor\" />\n </svg>\n <span>{{ getViewCreativeLabel() }}</span>\n </button>\n </div>\n </div>\n</div>\n", styles: [".post-premium-wrapper{width:min(425px,100%);display:flex;flex-direction:column;gap:16px}.post-premium-wrapper--final{width:min(820px,100%)}.post-premium-card{padding:18px 16px 14px;border:1.5px solid #b8c9ff;border-radius:24px;background:linear-gradient(180deg,#e5f0fa80 50%,#fff);box-shadow:0 10px 24px #5a76ba29}.post-premium-card--final{padding:28px 34px 30px;border-color:#9be5d7;background:linear-gradient(180deg,#edf9f6,#fff);box-shadow:0 14px 32px #56a89b1f}.post-premium-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.post-premium-card--final .post-premium-header{margin-bottom:26px}.post-premium-header-main{min-width:0;display:flex;align-items:center;gap:16px}.post-premium-title{margin:0;color:#0e57ce;font-family:Mulish,sans-serif!important;font-size:17px;font-weight:800;line-height:1.35}.post-premium-title--final{color:#464646;font-size:28px;font-weight:700}.post-premium-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid #6d6d6d;border-radius:9px;background:#fff;color:#404040;box-shadow:0 2px 8px #0000000a;flex-shrink:0}.post-premium-icon svg{width:20px;height:20px}.post-premium-success-badge{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#0a9d82;color:#fff;box-shadow:0 8px 20px #0a9d8233;flex-shrink:0}.post-premium-success-badge svg{width:20px;height:20px}.view-bi-button{min-height:66px;padding:0 34px;border:none;border-radius:999px;background:#ffb703;color:#4c3c16;font-family:Mulish,sans-serif!important;font-size:26px;font-weight:800;line-height:1;box-shadow:0 12px 24px #ffb7033d;cursor:pointer;flex-shrink:0}.post-premium-panel{padding:16px 14px 18px;border:1px solid #ececec;border-radius:18px;background:#fff;box-shadow:0 2px 10px #273a560a}.post-premium-panel--final{padding:34px 30px 30px;border:3px solid #efefef;border-radius:24px;box-shadow:0 6px 16px #374a640a}.post-premium-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.post-premium-card--final .post-premium-grid{gap:30px}.metric-block{display:flex;flex-direction:column;gap:6px;min-width:0}.metric-block--end{align-items:flex-end;text-align:right}.metric-label{color:#9a9a9a;font-family:Mulish,sans-serif!important;font-size:14px;font-weight:600;line-height:1.3}.post-premium-card--final .metric-label{color:#707070;font-size:22px;font-weight:500}.metric-value{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:900;line-height:1.3}.post-premium-card--final .metric-value{font-size:36px;font-weight:800}.metric-value--compact{display:inline-flex;align-items:baseline;gap:2px}.metric-suffix{font-size:13px;font-weight:700}.post-premium-card--final .metric-suffix{font-size:20px;font-weight:700}.metric-divider{margin:12px 0 10px;border-top:2px dashed #d6d6d6}.post-premium-card--final .metric-divider{margin:24px 0 26px;border-top-width:4px;border-top-color:#d9d9d9}.post-premium-actions{display:flex;align-items:center;gap:12px}.post-premium-card--final .post-premium-actions{margin-top:28px;gap:24px}.action-button{min-height:52px;padding:0 18px;border-radius:999px;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:1;border:1.5px solid transparent;cursor:pointer;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease}.action-button:hover{transform:translateY(-1px)}.action-button--primary{flex:1 1 56%;background:#ffb703;color:#514320;box-shadow:0 10px 18px #ffb70347}.action-button--secondary{flex:1 1 44%;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;border-color:#5f5f5f;color:#4e4e4e}.action-button--secondary svg{width:18px;height:18px;flex-shrink:0}.action-button--final{min-height:70px;padding:0 26px;border-width:3px;border-color:#6c6c6c;color:#343434;font-size:22px;font-weight:700;gap:10px;box-shadow:0 6px 14px #4747470f}.action-button--final svg{width:24px;height:24px}@media (max-width: 576px){.post-premium-card{padding:16px 14px 14px;border-radius:22px}.post-premium-card--final{padding:22px 18px 24px}.post-premium-panel{padding:14px 12px 16px;border-radius:16px}.post-premium-panel--final{padding:20px 18px 22px;border-radius:20px}.post-premium-grid{gap:14px}.metric-label{font-size:13px}.post-premium-card--final .metric-label{font-size:16px}.metric-value{font-size:17px}.post-premium-card--final .metric-value{font-size:28px}.post-premium-card--final .metric-suffix{font-size:16px}.post-premium-title--final{font-size:20px}.post-premium-success-badge{width:34px;height:34px}.view-bi-button{min-height:50px;padding:0 20px;font-size:20px}.post-premium-actions{flex-direction:column;align-items:stretch}.action-button{width:100%}.action-button--final{min-height:58px;font-size:18px}.action-button--final svg{width:20px;height:20px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9618
|
+
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]" }] });
|
|
9163
9619
|
}
|
|
9164
9620
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsPostPremiumCalculationComponent, decorators: [{
|
|
9165
9621
|
type: Component,
|
|
9166
|
-
args: [{ selector: 'lib-life-cover-details-post-premium-calculation', standalone: true, imports: [CommonModule], template: "<div\n class=\"post-premium-wrapper\"\n [class.post-premium-wrapper--final]=\"isShowFinalQuoteSummary\"\n *ngIf=\"field?.isVisible\">\n <div class=\"post-premium-card\" [class.post-premium-card--final]=\"isShowFinalQuoteSummary\">\n <div class=\"post-premium-header\">\n <div class=\"post-premium-header-main\">\n <div class=\"post-premium-success-badge\" *ngIf=\"isShowFinalQuoteSummary\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"m6.5 12.6 3.2 3.2 7.8-8.1\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"3\" />\n </svg>\n </div>\n\n <h3 class=\"post-premium-title\" [class.post-premium-title--final]=\"isShowFinalQuoteSummary\">\n {{ premiumSummaryState.planName }}\n </h3>\n </div>\n\n <button *ngIf=\"isShowFinalQuoteSummary; else defaultPlanIcon\" type=\"button\" class=\"view-bi-button\">\n {{ getViewBiLabel() }}\n </button>\n\n <ng-template #defaultPlanIcon>\n <div class=\"post-premium-icon\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"M12 4v4.5m0 0 5.5 2.5m-5.5-2.5L6.5 11m5.5-2.5V20M4.5 7h15m-13 11h11\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"1.7\" />\n <path\n d=\"M4.8 11h3.4l-1.7 3.1zm11 0h3.4l-1.7 3.1z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linejoin=\"round\"\n stroke-width=\"1.4\" />\n </svg>\n </div>\n </ng-template>\n </div>\n\n <div class=\"post-premium-panel\" [class.post-premium-panel--final]=\"isShowFinalQuoteSummary\">\n <div class=\"post-premium-grid\">\n <div class=\"metric-block\">\n <span class=\"metric-label\">{{ premiumSummaryState.coverLabel }}</span>\n <span class=\"metric-value\">{{ premiumSummaryState.coverValue }}</span>\n </div>\n\n <div class=\"metric-block metric-block--end\">\n <span class=\"metric-label\">{{ premiumSummaryState.ageLabel }}</span>\n <span class=\"metric-value\">{{ premiumSummaryState.ageValue }}</span>\n </div>\n </div>\n\n <div class=\"metric-divider\"></div>\n\n <div class=\"post-premium-grid\">\n <div class=\"metric-block\">\n <span class=\"metric-label\">{{ premiumSummaryState.firstYearLabel }}</span>\n <span class=\"metric-value metric-value--compact\">\n <span>{{ premiumSummaryState.firstYearValue }}</span>\n <span class=\"metric-suffix\">{{ premiumSummaryState.firstYearSuffix }}</span>\n </span>\n </div>\n\n <div class=\"metric-block metric-block--end\">\n <span class=\"metric-label\">{{ premiumSummaryState.renewalLabel }}</span>\n <span class=\"metric-value metric-value--compact\">\n <span>{{ premiumSummaryState.renewalValue }}</span>\n <span class=\"metric-suffix\">{{ premiumSummaryState.renewalSuffix }}</span>\n </span>\n </div>\n </div>\n </div>\n\n <div class=\"post-premium-actions\" *ngIf=\"isShowFinalQuoteSummary\">\n <button type=\"button\" class=\"action-button action-button--secondary action-button--final\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M16.6 7.2a2.6 2.6 0 1 0-2.4-3.7l-5.1 3.1a2.6 2.6 0 1 0 0 6.7l5.1 3.1a2.6 2.6 0 1 0 .8-1.3l-5.1-3.1a2.6 2.6 0 0 0 0-1.9l5.1-3.1c.4.7 1.1 1.2 1.9 1.2Z\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2.1\" />\n </svg>\n <span>Payment Link</span>\n </button>\n\n <button type=\"button\" class=\"action-button action-button--secondary action-button--final\">\n <svg viewBox=\"0 0 20 20\" focusable=\"false\" aria-hidden=\"true\">\n <path\n d=\"M10 2.3 11.4 6l3.7 1.4-3.7 1.4L10 12.5 8.6 8.8 4.9 7.4 8.6 6 10 2.3Zm5.1 8.3.8 2.1 2.1.8-2.1.8-.8 2.1-.8-2.1-2.1-.8 2.1-.8.8-2.1ZM4.8 11.5l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9.9-2.4Z\"\n fill=\"currentColor\" />\n </svg>\n <span>{{ getViewCreativeLabel() }}</span>\n </button>\n </div>\n </div>\n</div>\n", styles: [".post-premium-wrapper{width:min(425px,100%);display:flex;flex-direction:column;gap:16px}.post-premium-wrapper--final{width:min(820px,100%)}.post-premium-card{padding:18px 16px 14px;border:1.5px solid #b8c9ff;border-radius:24px;background:linear-gradient(180deg,#e5f0fa80 50%,#fff);box-shadow:0 10px 24px #5a76ba29}.post-premium-card--final{padding:28px 34px 30px;border-color:#9be5d7;background:linear-gradient(180deg,#edf9f6,#fff);box-shadow:0 14px 32px #56a89b1f}.post-premium-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.post-premium-card--final .post-premium-header{margin-bottom:26px}.post-premium-header-main{min-width:0;display:flex;align-items:center;gap:16px}.post-premium-title{margin:0;color:#0e57ce;font-family:Mulish,sans-serif!important;font-size:17px;font-weight:800;line-height:1.35}.post-premium-title--final{color:#464646;font-size:28px;font-weight:700}.post-premium-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid #6d6d6d;border-radius:9px;background:#fff;color:#404040;box-shadow:0 2px 8px #0000000a;flex-shrink:0}.post-premium-icon svg{width:20px;height:20px}.post-premium-success-badge{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#0a9d82;color:#fff;box-shadow:0 8px 20px #0a9d8233;flex-shrink:0}.post-premium-success-badge svg{width:20px;height:20px}.view-bi-button{min-height:66px;padding:0 34px;border:none;border-radius:999px;background:#ffb703;color:#4c3c16;font-family:Mulish,sans-serif!important;font-size:26px;font-weight:800;line-height:1;box-shadow:0 12px 24px #ffb7033d;cursor:pointer;flex-shrink:0}.post-premium-panel{padding:16px 14px 18px;border:1px solid #ececec;border-radius:18px;background:#fff;box-shadow:0 2px 10px #273a560a}.post-premium-panel--final{padding:34px 30px 30px;border:3px solid #efefef;border-radius:24px;box-shadow:0 6px 16px #374a640a}.post-premium-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.post-premium-card--final .post-premium-grid{gap:30px}.metric-block{display:flex;flex-direction:column;gap:6px;min-width:0}.metric-block--end{align-items:flex-end;text-align:right}.metric-label{color:#9a9a9a;font-family:Mulish,sans-serif!important;font-size:14px;font-weight:600;line-height:1.3}.post-premium-card--final .metric-label{color:#707070;font-size:22px;font-weight:500}.metric-value{color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:900;line-height:1.3}.post-premium-card--final .metric-value{font-size:36px;font-weight:800}.metric-value--compact{display:inline-flex;align-items:baseline;gap:2px}.metric-suffix{font-size:13px;font-weight:700}.post-premium-card--final .metric-suffix{font-size:20px;font-weight:700}.metric-divider{margin:12px 0 10px;border-top:2px dashed #d6d6d6}.post-premium-card--final .metric-divider{margin:24px 0 26px;border-top-width:4px;border-top-color:#d9d9d9}.post-premium-actions{display:flex;align-items:center;gap:12px}.post-premium-card--final .post-premium-actions{margin-top:28px;gap:24px}.action-button{min-height:52px;padding:0 18px;border-radius:999px;font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:1;border:1.5px solid transparent;cursor:pointer;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease}.action-button:hover{transform:translateY(-1px)}.action-button--primary{flex:1 1 56%;background:#ffb703;color:#514320;box-shadow:0 10px 18px #ffb70347}.action-button--secondary{flex:1 1 44%;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;border-color:#5f5f5f;color:#4e4e4e}.action-button--secondary svg{width:18px;height:18px;flex-shrink:0}.action-button--final{min-height:70px;padding:0 26px;border-width:3px;border-color:#6c6c6c;color:#343434;font-size:22px;font-weight:700;gap:10px;box-shadow:0 6px 14px #4747470f}.action-button--final svg{width:24px;height:24px}@media (max-width: 576px){.post-premium-card{padding:16px 14px 14px;border-radius:22px}.post-premium-card--final{padding:22px 18px 24px}.post-premium-panel{padding:14px 12px 16px;border-radius:16px}.post-premium-panel--final{padding:20px 18px 22px;border-radius:20px}.post-premium-grid{gap:14px}.metric-label{font-size:13px}.post-premium-card--final .metric-label{font-size:16px}.metric-value{font-size:17px}.post-premium-card--final .metric-value{font-size:28px}.post-premium-card--final .metric-suffix{font-size:16px}.post-premium-title--final{font-size:20px}.post-premium-success-badge{width:34px;height:34px}.view-bi-button{min-height:50px;padding:0 20px;font-size:20px}.post-premium-actions{flex-direction:column;align-items:stretch}.action-button{width:100%}.action-button--final{min-height:58px;font-size:18px}.action-button--final svg{width:20px;height:20px}}\n"] }]
|
|
9622
|
+
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"] }]
|
|
9167
9623
|
}], propDecorators: { field: [{
|
|
9168
9624
|
type: Input
|
|
9169
9625
|
}], premiumSummary: [{
|
|
@@ -9180,6 +9636,7 @@ const DEFAULT_ADDON_ITEM = {
|
|
|
9180
9636
|
checkboxDisabled: true
|
|
9181
9637
|
};
|
|
9182
9638
|
const DEFAULT_ADDON_CONFIG = {
|
|
9639
|
+
layoutVariant: 'default',
|
|
9183
9640
|
borderColor: '#ffb703',
|
|
9184
9641
|
dividerColor: '#ded9d1',
|
|
9185
9642
|
moneyColor: '#0f9d73',
|
|
@@ -9236,6 +9693,9 @@ class LifeCoverAddonDetailsComponent {
|
|
|
9236
9693
|
get isSingleAddon() {
|
|
9237
9694
|
return this.addonItems.length === 1;
|
|
9238
9695
|
}
|
|
9696
|
+
get isCompactVariant() {
|
|
9697
|
+
return this.viewConfigState.layoutVariant === 'compact';
|
|
9698
|
+
}
|
|
9239
9699
|
initializeAddonConfig() {
|
|
9240
9700
|
const configData = this.addOnConfigData || {};
|
|
9241
9701
|
const defaultConfig = this.getDefaultAddonConfig();
|
|
@@ -9248,6 +9708,7 @@ class LifeCoverAddonDetailsComponent {
|
|
|
9248
9708
|
.map((item) => this.normalizeAddonItem(item, moneyColor, defaultCheckboxDisabled))
|
|
9249
9709
|
.filter((item) => item.title);
|
|
9250
9710
|
this.viewConfigState = {
|
|
9711
|
+
layoutVariant: this.resolveText(configData.layoutVariant, defaultConfig.layoutVariant),
|
|
9251
9712
|
borderColor: this.resolveColor(configData.borderColor, defaultConfig.borderColor),
|
|
9252
9713
|
dividerColor: this.resolveColor(configData.dividerColor, defaultConfig.dividerColor),
|
|
9253
9714
|
moneyColor,
|
|
@@ -9300,17 +9761,188 @@ class LifeCoverAddonDetailsComponent {
|
|
|
9300
9761
|
};
|
|
9301
9762
|
}
|
|
9302
9763
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverAddonDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9303
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: LifeCoverAddonDetailsComponent, isStandalone: true, selector: "lib-life-cover-addon-details", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, addOnConfigData: { classPropertyName: "addOnConfigData", publicName: "addOnConfigData", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { addonSelectionChange: "addonSelectionChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"addon-details-wrapper\" *ngIf=\"field()?.isVisible\">\n <div\n class=\"addon-card\"\n [class.addon-card--single]=\"isSingleAddon\"\n [class.addon-card--multiple]=\"!isSingleAddon\"\n [style.--addon-border-color]=\"viewConfigState.borderColor\"\n [style.--addon-divider-color]=\"viewConfigState.dividerColor\"\n [style.--addon-chip-bg]=\"viewConfigState.sumAssuredBackgroundColor\"\n [style.--addon-chip-color]=\"viewConfigState.sumAssuredTextColor\"\n [style.--addon-nudge-bg]=\"viewConfigState.nudgeBackgroundColor\"\n [style.--addon-nudge-color]=\"viewConfigState.nudgeTextColor\"\n [style.--addon-check-color]=\"viewConfigState.checkboxCheckedColor\"\n [style.--addon-check-disabled-color]=\"viewConfigState.checkboxDisabledColor\"\n [style.--addon-unchecked-border]=\"viewConfigState.checkboxUncheckedBorderColor\"\n [style.--addon-unchecked-disabled-bg]=\"viewConfigState.checkboxDisabledUncheckedColor\">\n <div class=\"addon-nudge\" *ngIf=\"viewConfigState.showNudge && viewConfigState.nudgeLabel\">\n <span class=\"addon-nudge__icon\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"m12 3.8 2.3 4.7 5.2.8-3.8 3.7.9 5.2L12 15.8l-4.6 2.4.9-5.2L4.5 9.3l5.2-.8L12 3.8Z\"\n fill=\"currentColor\" />\n </svg>\n </span>\n <span>{{ viewConfigState.nudgeLabel }}</span>\n </div>\n\n <ng-container *ngFor=\"let addon of addonItems; let last = last; let index = index\">\n <div class=\"addon-item\">\n <div class=\"addon-item__header\">\n <mat-checkbox\n class=\"addon-checkbox\"\n [checked]=\"addon.checked\"\n [disabled]=\"addon.checkboxDisabled\"\n [disableRipple]=\"true\"\n [aria-label]=\"addon.title\"\n [class.addon-checkbox--checked]=\"addon.checked\"\n [class.addon-checkbox--disabled]=\"addon.checkboxDisabled\"\n [class.addon-checkbox--disabled-checked]=\"addon.checkboxDisabled && addon.checked\"\n [class.addon-checkbox--disabled-unchecked]=\"addon.checkboxDisabled && !addon.checked\"\n (change)=\"onAddonCheckboxChange($event.checked, index)\">\n </mat-checkbox>\n\n <div class=\"addon-copy\">\n <div class=\"addon-title-row\">\n <h3 class=\"addon-title\">{{ addon.title }}</h3>\n <span class=\"addon-amount\" [style.color]=\"addon.moneyColor\">{{ addon.amount }}</span>\n </div>\n\n <div class=\"addon-sum-chip\">\n <span class=\"addon-sum-chip__label\">{{ addon.sumAssuredLabel }}</span>\n <span class=\"addon-sum-chip__value\">{{ addon.sumAssuredValue }}</span>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"addon-divider\" *ngIf=\"!last\"></div>\n </ng-container>\n </div>\n</div>\n", styles: [".addon-details-wrapper{width:min(860px,100%)}.addon-card{position:relative;padding:28px 30px 30px;border:3px solid var(--addon-border-color, #ffb703);border-radius:30px;background:#fff;box-shadow:0 10px 24px #37508214}.addon-card--single{padding-top:34px}.addon-nudge{position:absolute;top:-22px;left:28px;display:inline-flex;align-items:center;gap:10px;padding:8px 16px 8px 12px;border:2px solid var(--addon-border-color, #ffb703);border-radius:16px;background:linear-gradient(270deg,#ffd666,#fff1cc 76.92%);color:var(--addon-nudge-color, #3f3f46);font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:1.15;box-shadow:0 6px 12px #ffb70329}.addon-nudge__icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.addon-nudge__icon svg{width:20px;height:20px}.addon-item__header{display:flex;align-items:flex-start;gap:22px}.addon-checkbox{display:inline-flex;flex-shrink:0;padding-top:2px;--mdc-checkbox-disabled-selected-icon-color: var(--addon-check-disabled-color, #bcbcbc);--mdc-checkbox-disabled-selected-checkmark-color: #ffffff;--mdc-checkbox-disabled-unselected-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-selected-checkmark-color: #ffffff;--mdc-checkbox-selected-focus-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-hover-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-pressed-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-unselected-focus-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-hover-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-pressed-icon-color: var(--addon-unchecked-border, #d1d5db)}.addon-checkbox ::ng-deep .mdc-form-field{display:inline-flex;align-items:flex-start}.addon-checkbox ::ng-deep .mdc-label{display:none}.addon-checkbox ::ng-deep .mdc-checkbox{padding:0;margin:0;flex:0 0 40px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-touch-target,.addon-checkbox ::ng-deep .mdc-checkbox__native-control,.addon-checkbox ::ng-deep .mdc-checkbox{width:40px;height:40px}.addon-checkbox ::ng-deep .mdc-checkbox__background{width:38px;height:38px;top:1px;left:1px;border-radius:7px;border-width:2.5px!important;border-color:var(--addon-unchecked-border, #d1d5db)}.addon-checkbox ::ng-deep .mdc-checkbox__checkmark{width:100%;height:100%}.addon-checkbox ::ng-deep .mdc-checkbox__checkmark-path{stroke-width:3.4px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-ripple,.addon-checkbox ::ng-deep .mdc-checkbox__ripple{display:none}.addon-checkbox--checked ::ng-deep .mdc-checkbox__background{background-color:var(--addon-check-color, #ffb703)!important;border-color:transparent!important}.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark{opacity:1!important}.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark-path{stroke-dashoffset:0!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__background,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__background{background-color:var(--addon-check-disabled-color, #bcbcbc)!important;border-color:transparent!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__checkmark{opacity:1!important;color:#fff!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark-path,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__checkmark-path{stroke-dashoffset:0!important}.addon-checkbox--disabled-unchecked ::ng-deep .mdc-checkbox__background{background-color:#fff;border-color:var(--addon-unchecked-border, #d1d5db)!important}.addon-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:18px}.addon-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.addon-title{margin:0;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:30px;font-weight:800;line-height:1.25;letter-spacing:-.02em}.addon-amount{flex-shrink:0;font-family:Mulish,sans-serif!important;font-size:30px;font-weight:900;line-height:1.1;letter-spacing:-.03em}.addon-sum-chip{width:fit-content;display:inline-flex;align-items:center;gap:10px;padding:14px 22px;margin-left:0;border-radius:22px;background:var(--addon-chip-bg, #ffefc2);color:var(--addon-chip-color, #4a4a4a);font-family:Mulish,sans-serif!important;font-size:24px;line-height:1.2}.addon-sum-chip__label{font-weight:500}.addon-sum-chip__value{font-weight:800}.addon-divider{margin:28px 0;border-top:4px dashed var(--addon-divider-color, #ded9d1)}@media (max-width: 991px){.addon-card{padding:26px 22px;border-radius:26px}.addon-nudge{left:22px;font-size:17px}.addon-title,.addon-amount{font-size:24px}.addon-sum-chip{font-size:20px}}@media (max-width: 767px){.addon-card{padding:24px 18px 22px;border-radius:24px}.addon-item__header{gap:16px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-touch-target,.addon-checkbox ::ng-deep .mdc-checkbox__native-control,.addon-checkbox ::ng-deep .mdc-checkbox{width:34px;height:34px;flex-basis:34px}.addon-checkbox ::ng-deep .mdc-checkbox__background{width:32px;height:32px;border-width:2px!important;border-radius:6px}.addon-title-row{gap:12px}.addon-title,.addon-amount{font-size:20px}.addon-sum-chip{padding:12px 18px;font-size:18px;border-radius:18px}.addon-divider{margin:22px 0;border-top-width:3px}}@media (max-width: 575px){.addon-card{padding:20px 14px 18px;border-radius:22px}.addon-nudge{top:-18px;left:16px;gap:8px;padding:7px 14px 7px 10px;font-size:15px;border-radius:14px}.addon-title-row{flex-direction:column;align-items:flex-start}.addon-title,.addon-amount{font-size:18px}.addon-copy{gap:14px}.addon-sum-chip{width:100%;justify-content:center;flex-wrap:wrap;gap:6px;font-size:17px;text-align:center}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i4$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }] });
|
|
9764
|
+
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"] }] });
|
|
9304
9765
|
}
|
|
9305
9766
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverAddonDetailsComponent, decorators: [{
|
|
9306
9767
|
type: Component,
|
|
9307
|
-
args: [{ selector: 'lib-life-cover-addon-details', standalone: true, imports: [CommonModule, MatCheckboxModule], template: "<div class=\"addon-details-wrapper\" *ngIf=\"field()?.isVisible\">\n <div\n class=\"addon-card\"\n [class.addon-card--single]=\"isSingleAddon\"\n [class.addon-card--multiple]=\"!isSingleAddon\"\n [style.--addon-border-color]=\"viewConfigState.borderColor\"\n [style.--addon-divider-color]=\"viewConfigState.dividerColor\"\n [style.--addon-chip-bg]=\"viewConfigState.sumAssuredBackgroundColor\"\n [style.--addon-chip-color]=\"viewConfigState.sumAssuredTextColor\"\n [style.--addon-nudge-bg]=\"viewConfigState.nudgeBackgroundColor\"\n [style.--addon-nudge-color]=\"viewConfigState.nudgeTextColor\"\n [style.--addon-check-color]=\"viewConfigState.checkboxCheckedColor\"\n [style.--addon-check-disabled-color]=\"viewConfigState.checkboxDisabledColor\"\n [style.--addon-unchecked-border]=\"viewConfigState.checkboxUncheckedBorderColor\"\n [style.--addon-unchecked-disabled-bg]=\"viewConfigState.checkboxDisabledUncheckedColor\">\n <div class=\"addon-nudge\" *ngIf=\"viewConfigState.showNudge && viewConfigState.nudgeLabel\">\n <span class=\"addon-nudge__icon\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n d=\"m12 3.8 2.3 4.7 5.2.8-3.8 3.7.9 5.2L12 15.8l-4.6 2.4.9-5.2L4.5 9.3l5.2-.8L12 3.8Z\"\n fill=\"currentColor\" />\n </svg>\n </span>\n <span>{{ viewConfigState.nudgeLabel }}</span>\n </div>\n\n <ng-container *ngFor=\"let addon of addonItems; let last = last; let index = index\">\n <div class=\"addon-item\">\n <div class=\"addon-item__header\">\n <mat-checkbox\n class=\"addon-checkbox\"\n [checked]=\"addon.checked\"\n [disabled]=\"addon.checkboxDisabled\"\n [disableRipple]=\"true\"\n [aria-label]=\"addon.title\"\n [class.addon-checkbox--checked]=\"addon.checked\"\n [class.addon-checkbox--disabled]=\"addon.checkboxDisabled\"\n [class.addon-checkbox--disabled-checked]=\"addon.checkboxDisabled && addon.checked\"\n [class.addon-checkbox--disabled-unchecked]=\"addon.checkboxDisabled && !addon.checked\"\n (change)=\"onAddonCheckboxChange($event.checked, index)\">\n </mat-checkbox>\n\n <div class=\"addon-copy\">\n <div class=\"addon-title-row\">\n <h3 class=\"addon-title\">{{ addon.title }}</h3>\n <span class=\"addon-amount\" [style.color]=\"addon.moneyColor\">{{ addon.amount }}</span>\n </div>\n\n <div class=\"addon-sum-chip\">\n <span class=\"addon-sum-chip__label\">{{ addon.sumAssuredLabel }}</span>\n <span class=\"addon-sum-chip__value\">{{ addon.sumAssuredValue }}</span>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"addon-divider\" *ngIf=\"!last\"></div>\n </ng-container>\n </div>\n</div>\n", styles: [".addon-details-wrapper{width:min(860px,100%)}.addon-card{position:relative;padding:28px 30px 30px;border:3px solid var(--addon-border-color, #ffb703);border-radius:30px;background:#fff;box-shadow:0 10px 24px #37508214}.addon-card--single{padding-top:34px}.addon-nudge{position:absolute;top:-22px;left:28px;display:inline-flex;align-items:center;gap:10px;padding:8px 16px 8px 12px;border:2px solid var(--addon-border-color, #ffb703);border-radius:16px;background:linear-gradient(270deg,#ffd666,#fff1cc 76.92%);color:var(--addon-nudge-color, #3f3f46);font-family:Mulish,sans-serif!important;font-size:18px;font-weight:800;line-height:1.15;box-shadow:0 6px 12px #ffb70329}.addon-nudge__icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}.addon-nudge__icon svg{width:20px;height:20px}.addon-item__header{display:flex;align-items:flex-start;gap:22px}.addon-checkbox{display:inline-flex;flex-shrink:0;padding-top:2px;--mdc-checkbox-disabled-selected-icon-color: var(--addon-check-disabled-color, #bcbcbc);--mdc-checkbox-disabled-selected-checkmark-color: #ffffff;--mdc-checkbox-disabled-unselected-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-selected-checkmark-color: #ffffff;--mdc-checkbox-selected-focus-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-hover-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-selected-pressed-icon-color: var(--addon-check-color, #ffb703);--mdc-checkbox-unselected-focus-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-hover-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-icon-color: var(--addon-unchecked-border, #d1d5db);--mdc-checkbox-unselected-pressed-icon-color: var(--addon-unchecked-border, #d1d5db)}.addon-checkbox ::ng-deep .mdc-form-field{display:inline-flex;align-items:flex-start}.addon-checkbox ::ng-deep .mdc-label{display:none}.addon-checkbox ::ng-deep .mdc-checkbox{padding:0;margin:0;flex:0 0 40px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-touch-target,.addon-checkbox ::ng-deep .mdc-checkbox__native-control,.addon-checkbox ::ng-deep .mdc-checkbox{width:40px;height:40px}.addon-checkbox ::ng-deep .mdc-checkbox__background{width:38px;height:38px;top:1px;left:1px;border-radius:7px;border-width:2.5px!important;border-color:var(--addon-unchecked-border, #d1d5db)}.addon-checkbox ::ng-deep .mdc-checkbox__checkmark{width:100%;height:100%}.addon-checkbox ::ng-deep .mdc-checkbox__checkmark-path{stroke-width:3.4px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-ripple,.addon-checkbox ::ng-deep .mdc-checkbox__ripple{display:none}.addon-checkbox--checked ::ng-deep .mdc-checkbox__background{background-color:var(--addon-check-color, #ffb703)!important;border-color:transparent!important}.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark{opacity:1!important}.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark-path{stroke-dashoffset:0!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__background,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__background{background-color:var(--addon-check-disabled-color, #bcbcbc)!important;border-color:transparent!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__checkmark{opacity:1!important;color:#fff!important}.addon-checkbox--disabled.addon-checkbox--checked ::ng-deep .mdc-checkbox__checkmark-path,.addon-checkbox--disabled-checked ::ng-deep .mdc-checkbox__checkmark-path{stroke-dashoffset:0!important}.addon-checkbox--disabled-unchecked ::ng-deep .mdc-checkbox__background{background-color:#fff;border-color:var(--addon-unchecked-border, #d1d5db)!important}.addon-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:18px}.addon-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.addon-title{margin:0;color:#4a4a4a;font-family:Mulish,sans-serif!important;font-size:30px;font-weight:800;line-height:1.25;letter-spacing:-.02em}.addon-amount{flex-shrink:0;font-family:Mulish,sans-serif!important;font-size:30px;font-weight:900;line-height:1.1;letter-spacing:-.03em}.addon-sum-chip{width:fit-content;display:inline-flex;align-items:center;gap:10px;padding:14px 22px;margin-left:0;border-radius:22px;background:var(--addon-chip-bg, #ffefc2);color:var(--addon-chip-color, #4a4a4a);font-family:Mulish,sans-serif!important;font-size:24px;line-height:1.2}.addon-sum-chip__label{font-weight:500}.addon-sum-chip__value{font-weight:800}.addon-divider{margin:28px 0;border-top:4px dashed var(--addon-divider-color, #ded9d1)}@media (max-width: 991px){.addon-card{padding:26px 22px;border-radius:26px}.addon-nudge{left:22px;font-size:17px}.addon-title,.addon-amount{font-size:24px}.addon-sum-chip{font-size:20px}}@media (max-width: 767px){.addon-card{padding:24px 18px 22px;border-radius:24px}.addon-item__header{gap:16px}.addon-checkbox ::ng-deep .mat-mdc-checkbox-touch-target,.addon-checkbox ::ng-deep .mdc-checkbox__native-control,.addon-checkbox ::ng-deep .mdc-checkbox{width:34px;height:34px;flex-basis:34px}.addon-checkbox ::ng-deep .mdc-checkbox__background{width:32px;height:32px;border-width:2px!important;border-radius:6px}.addon-title-row{gap:12px}.addon-title,.addon-amount{font-size:20px}.addon-sum-chip{padding:12px 18px;font-size:18px;border-radius:18px}.addon-divider{margin:22px 0;border-top-width:3px}}@media (max-width: 575px){.addon-card{padding:20px 14px 18px;border-radius:22px}.addon-nudge{top:-18px;left:16px;gap:8px;padding:7px 14px 7px 10px;font-size:15px;border-radius:14px}.addon-title-row{flex-direction:column;align-items:flex-start}.addon-title,.addon-amount{font-size:18px}.addon-copy{gap:14px}.addon-sum-chip{width:100%;justify-content:center;flex-wrap:wrap;gap:6px;font-size:17px;text-align:center}}\n"] }]
|
|
9768
|
+
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"] }]
|
|
9308
9769
|
}], propDecorators: { addOnConfigData: [{
|
|
9309
9770
|
type: Input
|
|
9310
9771
|
}], addonSelectionChange: [{
|
|
9311
9772
|
type: Output
|
|
9312
9773
|
}] } });
|
|
9313
9774
|
|
|
9775
|
+
const DEFAULT_VEHICLE_COVERAGE_PLAN_ITEM = {
|
|
9776
|
+
title: 'Comprehensive',
|
|
9777
|
+
subtitle: 'Own Damage + Third Party + PA Cover',
|
|
9778
|
+
amount: '₹ 22,447'
|
|
9779
|
+
};
|
|
9780
|
+
const DEFAULT_VEHICLE_COVERAGE_PLANS_DATA = {
|
|
9781
|
+
headerLabel: 'Coverage Plans',
|
|
9782
|
+
idvLabel: 'IDV',
|
|
9783
|
+
idvValue: '₹4,17,059',
|
|
9784
|
+
plans: [
|
|
9785
|
+
DEFAULT_VEHICLE_COVERAGE_PLAN_ITEM,
|
|
9786
|
+
{
|
|
9787
|
+
title: 'Third Party Only',
|
|
9788
|
+
subtitle: 'Mandatory TP + PA Cover (no OD)',
|
|
9789
|
+
amount: '₹ 8,227'
|
|
9790
|
+
},
|
|
9791
|
+
{
|
|
9792
|
+
title: 'Standalone OD',
|
|
9793
|
+
subtitle: 'Own Damage only (existing TP policy)',
|
|
9794
|
+
amount: '₹ 10,796'
|
|
9795
|
+
}
|
|
9796
|
+
]
|
|
9797
|
+
};
|
|
9798
|
+
class VehicleCoveragePlansComponent {
|
|
9799
|
+
field = input.required();
|
|
9800
|
+
coveragePlansData = null;
|
|
9801
|
+
coveragePlansState = this.getDefaultCoveragePlansData();
|
|
9802
|
+
ngOnChanges(changes) {
|
|
9803
|
+
if (changes['coveragePlansData']) {
|
|
9804
|
+
this.initializeCoveragePlansData();
|
|
9805
|
+
}
|
|
9806
|
+
}
|
|
9807
|
+
initializeCoveragePlansData() {
|
|
9808
|
+
const coveragePlansData = this.coveragePlansData || {};
|
|
9809
|
+
const sourcePlans = Array.isArray(coveragePlansData.plans) && coveragePlansData.plans.length > 0
|
|
9810
|
+
? coveragePlansData.plans
|
|
9811
|
+
: DEFAULT_VEHICLE_COVERAGE_PLANS_DATA.plans;
|
|
9812
|
+
const normalizedPlans = sourcePlans
|
|
9813
|
+
.map((plan) => this.normalizeCoveragePlanItem(plan))
|
|
9814
|
+
.filter((plan) => plan.title && plan.amount);
|
|
9815
|
+
this.coveragePlansState = {
|
|
9816
|
+
headerLabel: this.resolveText(coveragePlansData.headerLabel, DEFAULT_VEHICLE_COVERAGE_PLANS_DATA.headerLabel),
|
|
9817
|
+
idvLabel: this.resolveText(coveragePlansData.idvLabel, DEFAULT_VEHICLE_COVERAGE_PLANS_DATA.idvLabel),
|
|
9818
|
+
idvValue: this.resolveText(coveragePlansData.idvValue, DEFAULT_VEHICLE_COVERAGE_PLANS_DATA.idvValue),
|
|
9819
|
+
plans: normalizedPlans.length > 0
|
|
9820
|
+
? normalizedPlans
|
|
9821
|
+
: this.getDefaultCoveragePlansData().plans
|
|
9822
|
+
};
|
|
9823
|
+
}
|
|
9824
|
+
normalizeCoveragePlanItem(plan) {
|
|
9825
|
+
return {
|
|
9826
|
+
title: this.resolveText(plan?.title, DEFAULT_VEHICLE_COVERAGE_PLAN_ITEM.title),
|
|
9827
|
+
subtitle: this.resolveText(plan?.subtitle, DEFAULT_VEHICLE_COVERAGE_PLAN_ITEM.subtitle),
|
|
9828
|
+
amount: this.resolveText(plan?.amount, DEFAULT_VEHICLE_COVERAGE_PLAN_ITEM.amount)
|
|
9829
|
+
};
|
|
9830
|
+
}
|
|
9831
|
+
resolveText(value, fallback) {
|
|
9832
|
+
if (typeof value === 'string') {
|
|
9833
|
+
const trimmedValue = value.trim();
|
|
9834
|
+
return trimmedValue || fallback;
|
|
9835
|
+
}
|
|
9836
|
+
return fallback;
|
|
9837
|
+
}
|
|
9838
|
+
getDefaultCoveragePlansData() {
|
|
9839
|
+
return {
|
|
9840
|
+
...DEFAULT_VEHICLE_COVERAGE_PLANS_DATA,
|
|
9841
|
+
plans: DEFAULT_VEHICLE_COVERAGE_PLANS_DATA.plans.map((plan) => ({ ...plan }))
|
|
9842
|
+
};
|
|
9843
|
+
}
|
|
9844
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: VehicleCoveragePlansComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9845
|
+
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"] }] });
|
|
9846
|
+
}
|
|
9847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: VehicleCoveragePlansComponent, decorators: [{
|
|
9848
|
+
type: Component,
|
|
9849
|
+
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"] }]
|
|
9850
|
+
}], propDecorators: { coveragePlansData: [{
|
|
9851
|
+
type: Input
|
|
9852
|
+
}] } });
|
|
9853
|
+
|
|
9854
|
+
const DEFAULT_PREMIUM_BREAKDOWN_ITEMS = [
|
|
9855
|
+
{ label: 'Third Party (TP)', value: '₹7,897' },
|
|
9856
|
+
{ label: 'Own Damage (OD)', value: '₹993.56' },
|
|
9857
|
+
{ label: 'PA Cover (Owner-Driver)', value: '₹330' },
|
|
9858
|
+
{ label: 'Breakdown Assistance', value: '₹155' },
|
|
9859
|
+
{ label: 'GST (18%)', value: '₹1,528' },
|
|
9860
|
+
{ label: 'Discount', value: '- ₹575', valueColor: '#00a67e' }
|
|
9861
|
+
];
|
|
9862
|
+
const DEFAULT_PREMIUM_BREAKDOWN_DATA = {
|
|
9863
|
+
title: 'Premium Breakdown',
|
|
9864
|
+
subtitle: '(Incl. GST)',
|
|
9865
|
+
items: DEFAULT_PREMIUM_BREAKDOWN_ITEMS,
|
|
9866
|
+
totalLabel: 'Annual Premium',
|
|
9867
|
+
totalValue: '₹10,015.74'
|
|
9868
|
+
};
|
|
9869
|
+
class PremiumBreakdownComponent {
|
|
9870
|
+
field = input.required();
|
|
9871
|
+
premiumBreakdownData = null;
|
|
9872
|
+
premiumBreakdownState = this.getDefaultPremiumBreakdownData();
|
|
9873
|
+
ngOnChanges(changes) {
|
|
9874
|
+
if (changes['premiumBreakdownData']) {
|
|
9875
|
+
this.initializePremiumBreakdownData();
|
|
9876
|
+
}
|
|
9877
|
+
}
|
|
9878
|
+
getItemValueColor(item) {
|
|
9879
|
+
if (item.valueColor && item.valueColor.trim()) {
|
|
9880
|
+
return item.valueColor.trim();
|
|
9881
|
+
}
|
|
9882
|
+
return item.value.trim().startsWith('-') ? '#00a67e' : '#4a4a4a';
|
|
9883
|
+
}
|
|
9884
|
+
getTotalValueColor() {
|
|
9885
|
+
if (this.premiumBreakdownState.totalValueColor?.trim()) {
|
|
9886
|
+
return this.premiumBreakdownState.totalValueColor.trim();
|
|
9887
|
+
}
|
|
9888
|
+
return '#4a4a4a';
|
|
9889
|
+
}
|
|
9890
|
+
initializePremiumBreakdownData() {
|
|
9891
|
+
const premiumBreakdownData = this.premiumBreakdownData || {};
|
|
9892
|
+
const sourceItems = Array.isArray(premiumBreakdownData.items) && premiumBreakdownData.items.length > 0
|
|
9893
|
+
? premiumBreakdownData.items
|
|
9894
|
+
: DEFAULT_PREMIUM_BREAKDOWN_DATA.items;
|
|
9895
|
+
const normalizedItems = sourceItems
|
|
9896
|
+
.map((item) => this.normalizePremiumBreakdownItem(item))
|
|
9897
|
+
.filter((item) => item.label && item.value);
|
|
9898
|
+
this.premiumBreakdownState = {
|
|
9899
|
+
title: this.resolveText(premiumBreakdownData.title, DEFAULT_PREMIUM_BREAKDOWN_DATA.title),
|
|
9900
|
+
subtitle: this.resolveText(premiumBreakdownData.subtitle, DEFAULT_PREMIUM_BREAKDOWN_DATA.subtitle),
|
|
9901
|
+
items: normalizedItems.length > 0
|
|
9902
|
+
? normalizedItems
|
|
9903
|
+
: this.getDefaultPremiumBreakdownData().items,
|
|
9904
|
+
totalLabel: this.resolveText(premiumBreakdownData.totalLabel, DEFAULT_PREMIUM_BREAKDOWN_DATA.totalLabel),
|
|
9905
|
+
totalValue: this.resolveText(premiumBreakdownData.totalValue, DEFAULT_PREMIUM_BREAKDOWN_DATA.totalValue),
|
|
9906
|
+
totalValueColor: this.resolveOptionalText(premiumBreakdownData.totalValueColor)
|
|
9907
|
+
};
|
|
9908
|
+
}
|
|
9909
|
+
normalizePremiumBreakdownItem(item) {
|
|
9910
|
+
return {
|
|
9911
|
+
label: this.resolveText(item?.label, ''),
|
|
9912
|
+
value: this.resolveText(item?.value, ''),
|
|
9913
|
+
valueColor: this.resolveOptionalText(item?.valueColor)
|
|
9914
|
+
};
|
|
9915
|
+
}
|
|
9916
|
+
resolveText(value, fallback) {
|
|
9917
|
+
if (typeof value === 'string') {
|
|
9918
|
+
const trimmedValue = value.trim();
|
|
9919
|
+
return trimmedValue || fallback;
|
|
9920
|
+
}
|
|
9921
|
+
return fallback;
|
|
9922
|
+
}
|
|
9923
|
+
resolveOptionalText(value) {
|
|
9924
|
+
if (typeof value === 'string') {
|
|
9925
|
+
const trimmedValue = value.trim();
|
|
9926
|
+
return trimmedValue || undefined;
|
|
9927
|
+
}
|
|
9928
|
+
return undefined;
|
|
9929
|
+
}
|
|
9930
|
+
getDefaultPremiumBreakdownData() {
|
|
9931
|
+
return {
|
|
9932
|
+
...DEFAULT_PREMIUM_BREAKDOWN_DATA,
|
|
9933
|
+
items: DEFAULT_PREMIUM_BREAKDOWN_DATA.items.map((item) => ({ ...item }))
|
|
9934
|
+
};
|
|
9935
|
+
}
|
|
9936
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PremiumBreakdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9937
|
+
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=\"\" aria-hidden=\"true\">\n <img style=\"scale: 2.6; margin: 26px;\" src=\"https://cdn.godigit.com/assets/Frame+2038086082.svg\" alt=\"icon\" />\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:12px 28px 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"] }] });
|
|
9938
|
+
}
|
|
9939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PremiumBreakdownComponent, decorators: [{
|
|
9940
|
+
type: Component,
|
|
9941
|
+
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=\"\" aria-hidden=\"true\">\n <img style=\"scale: 2.6; margin: 26px;\" src=\"https://cdn.godigit.com/assets/Frame+2038086082.svg\" alt=\"icon\" />\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:12px 28px 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"] }]
|
|
9942
|
+
}], propDecorators: { premiumBreakdownData: [{
|
|
9943
|
+
type: Input
|
|
9944
|
+
}] } });
|
|
9945
|
+
|
|
9314
9946
|
class MasterControlComponent {
|
|
9315
9947
|
field = input.required();
|
|
9316
9948
|
formGroup = new FormGroup({});
|
|
@@ -9328,7 +9960,7 @@ class MasterControlComponent {
|
|
|
9328
9960
|
this.lifeCoverAddonSelectionChange.emit(event);
|
|
9329
9961
|
}
|
|
9330
9962
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9331
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: MasterControlComponent, isStandalone: true, selector: "lib-master-control", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { lifeCoverSliderValueChange: "lifeCoverSliderValueChange", lifeCoverAddonSelectionChange: "lifeCoverAddonSelectionChange" }, ngImport: i0, template: "@switch (field()?.controlType) {\n @case ('top-header') {\n <lib-top-header [field]=\"field()\" />\n }\n @case ('footer') {\n <lib-footer [field]=\"field()\" />\n }\n @case('footer-buttons')\n {\n <lib-footer-with-buttons [field]=\"field()\"></lib-footer-with-buttons>\n }\n @case('text') {\n <lib-textbox [field]=\"field()\"></lib-textbox>\n }\n @case('select') {\n <lib-select [field]=\"field()\"/>\n }\n\n @case('radio') {\n <lib-radio [field]=\"field()\" />\n }\n\n @case('toggle') {\n <lib-toggle [field]=\"field()\" />\n }\n\n @case('file') {\n <lib-upload [field]=\"field()\" />\n }\n\n @case('date') {\n <lib-dob [field]=\"field()\" />\n }\n\n @case('mobileNumber') {\n <lib-mob-number [field]=\"field()\" />\n }\n\n @case('info') {\n <lib-info [field]=\"field()\" />\n }\n\n @case('checkbox') {\n <lib-checkbox [field]=\"field()\" />\n }\n\n @case('textarea') {\n <lib-textarea [field]=\"field()\" />\n }\n\n @case ('button') {\n <lib-button [field]=\"field()\" />\n }\n\n @case ('tab') {\n <lib-tab [field]=\"field()\" />\n }\n\n @case ('autocomplete') {\n <lib-autocomplete [field]=\"field()\" />\n }\n\n @case ('multipleSelect') {\n <lib-multiple-select [field]=\"field()\" />\n }\n\n @case ('textboxWithSelect') {\n <lib-select-textbox [field]=\"field()\" />\n }\n\n @case ('otpTextbox') {\n <lib-otp-textbox [field]=\"field()\" />\n }\n\n @case ('amountTextbox') {\n <lib-amount-textbox [field]=\"field()\" />\n }\n\n @case ('suffixTextbox') {\n <lib-suffix-textbox [field]=\"field()\" />\n }\n\n @case ('otpMobNumber') {\n <lib-otp-mob-number [field]=\"field()\" />\n }\n\n @case ('tagMobNumber') {\n <lib-tag-mob-number [field]=\"field()\" />\n }\n\n @case ('dateWithAge') {\n <lib-age-date [field]=\"field()\" />\n }\n\n @case ('additionButton') {\n <lib-addition-button [field]=\"field()\" />\n }\n\n @case ('infoTextbox') {\n <lib-info-textbox [field]=\"field()\" />\n }\n\n @case ('textboxWithImage') {\n <lib-textbox-with-image [field]=\"field()\" />\n }\n\n @case ('emailWithDomain') {\n <lib-email-with-domain [field]=\"field()\" />\n }\n\n @case ('imageUpload') {\n <lib-image-upload [field]=\"field()\" />\n }\n\n @case ('downloadDocument') {\n <lib-download-document [field]=\"field()\" />\n }\n\n @case ('addDocument') {\n <lib-add-document [field]=\"field()\" />\n }\n\n @case ('hyperlink') {\n <lib-hyperlink [field]=\"field()\" />\n }\n\n @case ('textboxWithUnderscore') {\n <lib-textbox-with-underscore [field]=\"field()\" />\n }\n\n @case ('underscoreMobNumber') {\n <lib-underscore-mob-number [field]=\"field()\" />\n }\n\n @case ('downloadIconButton') {\n <lib-icon-button [field]=\"field()\" />\n }\n\n @case ('image') {\n <lib-image [field]=\"field()\" />\n }\n @case ('stepper') {\n <lib-stepper [field]=\"field()\" />\n }\n @case ('card') {\n <lib-card [field]=\"field()\" />\n }\n @case ('hrLine') {\n <lib-hr-line [field]=\"field()\" />\n }\n @case ('searchMultiSelect') {\n <lib-search-multi-select [field]=\"field()\" />\n }\n @case ('subscriptTextbox') {\n <lib-subscript-textbox [field]=\"field()\" />\n }\n @case ('label') {\n <lib-label [field]=\"field()\" />\n }\n @case ('subHeading') {\n <lib-sub-header [field]=\"field()\" />\n }\n @case ('heading') {\n <lib-header [field]=\"field()\" />\n }\n @case ('table') {\n <lib-table [field]=\"field()\" />\n }\n @case ('textboxWithText') {\n <lib-textbox-with-text [field]=\"field()\" />\n }\n @case ('loader') {\n <lib-loader [field]=\"field()\" />\n }\n @case ('discount') {\n <lib-discount [field]=\"field()\" />\n }\n @case ('optionalBenefitCard') {\n <lib-benefit-card [field]=\"field()\" />\n }\n @case ('errorSnackbar') {\n <lib-error-snackbar [field]=\"field()\" />\n }\n @case ('warningSnackbar') {\n <lib-warning-snackbar [field]=\"field()\" />\n }\n @case ('successSnackbar') {\n <lib-success-snackbar [field]=\"field()\" />\n }\n @case ('neutralSnackbar') {\n <lib-neutral-snackbar [field]=\"field()\" />\n }\n @case ('boldLabel') {\n <lib-grey-label [field]=\"field()\" />\n }\n @case ('iframe') {\n <lib-iframe [field]=\"field()\" />\n }\n @case ('toggleButton') {\n <lib-toggle-button [field]=\"field()\" />\n }\n @case ('payGetCard') {\n <lib-pay-get-card [field]=\"field()\" />\n }\n @case ('inBuiltBenefit') {\n <lib-in-built-benefit [field]=\"field()\" />\n }\n @case ('otherBenefit') {\n <lib-other-benefits [field]=\"field()\" />\n }\n @case ('annuityRateLogo') {\n <lib-annuity-rate-logo [field]=\"field()\" />\n }\n @case ('discountAnnuity') {\n <lib-discount-v2 [field]=\"field()\" />\n }\n @case ('labelValue'){\n <lib-label-value-card [field]=\"field()\" />\n }\n @case ('medicalQuestions'){\n <lib-medial-questions [field]=\"field()\" />\n }\n @case ('nudge'){\n <lib-page-nudge [field]=\"field()\"/>\n }\n @case ('progressBar'){\n <lib-progress-bar [field]=\"field()\"/>\n }\n @case ('accordian'){\n <lib-accordian [field]=\"field()\"/>\n }\n @case ('miscInfo'){\n <lib-miscellaneous-info-bar [field]=\"field()\"/>\n }\n @case ('plainText'){\n <lib-plain-text [field]=\"field()\"/>\n }\n @case ('menu'){\n <lib-menu [field]=\"field()\" />\n }\n @case ('stepperWithArrow') {\n <lib-stepper-with-arrow [field]=\"field()\" />\n }\n @case ('labelWithImage') {\n <lib-label-with-image [field]=\"field()\" />\n }\n @case ('motorGlowPlanDetails') {\n <lib-motor-glow-plan-details [field]=\"field()\" />\n }\n @case ('premiumToAnnuityCalculator') {\n <lib-annuity-premium-calculator [field]=\"field()\" />\n } @case ('footerProgressBar') {\n <lib-footer-design [field]=\"field()\" />\n }\n @case ('annuityGrowthRateOption') {\n <lib-annuity-calculator-radio [field]=\"field()\" />\n }\n @case ('textboxWithRadio') {\n <lib-textbox-with-radio [field]=\"field()\" />\n }\n @case ('lifeCoverDetails') {\n <lib-life-cover-details\n [field]=\"field()\"\n [coverDetails]=\"field()?.coverDetails\"\n [termDetails]=\"field()?.termDetails\"\n [premiumDetails]=\"field()?.premiumDetails\"\n (sliderValueChange)=\"onLifeCoverSliderValueChange($event)\" />\n }\n @case ('lifeCoverDetailsView') {\n <lib-life-cover-details-view\n [field]=\"field()\"\n [summaryItems]=\"field()?.summaryItems\" />\n }\n @case ('lifeCoverDetailsPostPremiumCalculation') {\n <lib-life-cover-details-post-premium-calculation\n [field]=\"field()\"\n [premiumSummary]=\"field()?.premiumSummary\" />\n }\n @case ('lifeCoverAddonDetails') {\n <lib-life-cover-addon-details\n [field]=\"field()\"\n [addOnConfigData]=\"field()?.addOnConfigData\"\n (addonSelectionChange)=\"onLifeCoverAddonSelectionChange($event)\" />\n }\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: TextboxComponent, selector: "lib-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: SelectComponent, selector: "lib-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange", "infoClick"] }, { kind: "component", type: RadioComponent, selector: "lib-radio", inputs: ["reactiveFormControlobject", "field"], outputs: ["change"] }, { kind: "component", type: ToggleComponent, selector: "lib-toggle", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: UploadComponent, selector: "lib-upload", inputs: ["documentUploaderField", "openQuoteImageObj", "field", "reactiveFormControlobject"], outputs: ["filesChanged", "fileRemoved", "filePreview"] }, { kind: "component", type: DobComponent, selector: "lib-dob", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: MobNumberComponent, selector: "lib-mob-number", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: InfoComponent, selector: "lib-info", inputs: ["field"] }, { kind: "component", type: CheckboxComponent, selector: "lib-checkbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: TextareaComponent, selector: "lib-textarea", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: ButtonComponent, selector: "lib-button", inputs: ["field"] }, { kind: "component", type: TabComponent, selector: "lib-tab", inputs: ["field"], outputs: ["selectedIndexChange"] }, { kind: "component", type: AutocompleteComponent, selector: "lib-autocomplete", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "selectionChanged", "valueChanged", "optionSelected"] }, { kind: "component", type: MultipleSelectComponent, selector: "lib-multiple-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "component", type: SelectTextboxComponent, selector: "lib-select-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "component", type: OtpTextboxComponent, selector: "lib-otp-textbox", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: AmountTextboxComponent, selector: "lib-amount-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: SuffixTextboxComponent, selector: "lib-suffix-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: OtpMobNumberComponent, selector: "lib-otp-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: TagMobNumberComponent, selector: "lib-tag-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: AgeDateComponent, selector: "lib-age-date", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: AdditionButtonComponent, selector: "lib-addition-button", inputs: ["field"] }, { kind: "component", type: InfoTextboxComponent, selector: "lib-info-textbox", inputs: ["field", "reactiveFormControlobject", "fields"], outputs: ["infoClick"] }, { kind: "component", type: TextboxWithImageComponent, selector: "lib-textbox-with-image", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: EmailWithDomainComponent, selector: "lib-email-with-domain", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: ImageUploadComponent, selector: "lib-image-upload", inputs: ["field"] }, { kind: "component", type: DownloadDocumentComponent, selector: "lib-download-document", inputs: ["field"] }, { kind: "component", type: AddDocumentComponent, selector: "lib-add-document", inputs: ["field"] }, { kind: "component", type: HyperlinkComponent, selector: "lib-hyperlink", inputs: ["field"] }, { kind: "component", type: TextboxWithUnderscoreComponent, selector: "lib-textbox-with-underscore", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: UnderscoreMobNumberComponent, selector: "lib-underscore-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: IconButtonComponent, selector: "lib-icon-button", inputs: ["field"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: ImageComponent, selector: "lib-image", inputs: ["field"] }, { kind: "component", type: StepperComponent, selector: "lib-stepper", inputs: ["field"] }, { kind: "component", type: CardComponent, selector: "lib-card", inputs: ["field"], outputs: ["cardDetailsClicked"] }, { kind: "component", type: HrLineComponent, selector: "lib-hr-line", inputs: ["field"] }, { kind: "component", type: SearchMultiSelectComponent, selector: "lib-search-multi-select", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: SubscriptTextboxComponent, selector: "lib-subscript-textbox", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: LabelComponent, selector: "lib-label", inputs: ["field"] }, { kind: "component", type: SubHeaderComponent, selector: "lib-sub-header", inputs: ["field"] }, { kind: "component", type: HeaderComponent, selector: "lib-header", inputs: ["field"] }, { kind: "component", type: TextboxWithTextComponent, selector: "lib-textbox-with-text", inputs: ["reactiveFormControlobject", "field"], outputs: ["blur"] }, { kind: "component", type: DiscountComponent, selector: "lib-discount", inputs: ["field"] }, { kind: "component", type: BenefitCardComponent, selector: "lib-benefit-card", inputs: ["field"] }, { kind: "component", type: TableComponent, selector: "lib-table", inputs: ["field", "readonly"], outputs: ["actionItemClicked", "tablePaginationClicked"] }, { kind: "component", type: LoaderComponent, selector: "lib-loader", inputs: ["field"] }, { kind: "component", type: WarningSnackbarComponent, selector: "lib-warning-snackbar", inputs: ["field"] }, { kind: "component", type: SuccessSnackbarComponent, selector: "lib-success-snackbar", inputs: ["field"] }, { kind: "component", type: NeutralSnackbarComponent, selector: "lib-neutral-snackbar", inputs: ["field"] }, { kind: "component", type: ErrorSnackbarComponent, selector: "lib-error-snackbar", inputs: ["field"] }, { kind: "component", type: GreyLabelComponent, selector: "lib-grey-label", inputs: ["field"] }, { kind: "component", type: IframeComponent, selector: "lib-iframe", inputs: ["field"] }, { kind: "component", type: ToggleButtonComponent, selector: "lib-toggle-button", inputs: ["reactiveFormControlobject", "field"], outputs: ["selectionChanged", "change"] }, { kind: "component", type: PayGetCardComponent, selector: "lib-pay-get-card", inputs: ["field", "payAmount", "premiumAmount", "ptValue", "years", "frequency", "payamountOptions"] }, { kind: "component", type: InBuiltBenefitComponent, selector: "lib-in-built-benefit", inputs: ["field", "premiumAmount", "premiumAmountShort"] }, { kind: "component", type: OtherBenefitsComponent, selector: "lib-other-benefits", inputs: ["field"] }, { kind: "component", type: AnnuityRateLogoComponent, selector: "lib-annuity-rate-logo", inputs: ["field", "ratePercent", "imageSrc"] }, { kind: "component", type: DiscountV2Component, selector: "lib-discount-v2", inputs: ["field"] }, { kind: "component", type: LabelValueCardComponent, selector: "lib-label-value-card", inputs: ["field"] }, { kind: "component", type: MedialQuestionsComponent, selector: "lib-medial-questions", inputs: ["clusterId", "triggerValidation", "locationDetails", "medialQuestionResponse", "personUWOpenQuoteResponse", "defaultValues", "personType", "field"], outputs: ["questionsValueChange", "locationDetailsChange"] }, { kind: "component", type: PageNudgeComponent, selector: "lib-page-nudge", inputs: ["field"] }, { kind: "component", type: ProgressBarComponent, selector: "lib-progress-bar", inputs: ["field"] }, { kind: "component", type: AccordianComponent, selector: "lib-accordian", inputs: ["field"] }, { kind: "component", type: MiscellaneousInfoBarComponent, selector: "lib-miscellaneous-info-bar", inputs: ["field", "details"] }, { kind: "component", type: PlainTextComponent, selector: "lib-plain-text", inputs: ["field"] }, { kind: "component", type: MenuComponent, selector: "lib-menu", inputs: ["field"] }, { kind: "component", type: StepperWIthArrowComponent, selector: "lib-stepper-with-arrow", inputs: ["field", "currentStepValue", "autoProgress", "autoProgressDelay"], outputs: ["selectedStep"] }, { kind: "component", type: LabelWithImageComponent, selector: "lib-label-with-image", inputs: ["field"] }, { kind: "component", type: TopHeaderComponent, selector: "lib-top-header", inputs: ["field"] }, { kind: "component", type: FooterComponent, selector: "lib-footer", inputs: ["field"] }, { kind: "component", type: FooterWithButtonsComponent, selector: "lib-footer-with-buttons", inputs: ["field"] }, { kind: "component", type: MotorGlowPlanDetailsComponent, selector: "lib-motor-glow-plan-details", inputs: ["field"], outputs: ["editPlanClick"] }, { kind: "component", type: AnnuityPremiumCalculatorComponent, selector: "lib-annuity-premium-calculator", inputs: ["field", "triggerValidation", "premiumDetails"], outputs: ["onCalcualteButtonClick", "onGenerateSummaryClick", "onAnnuityPremiumChange", "onMinimumPremiumValueChange", "onAutioDebitValueChange", "onGuranteedAnnuityValueChange", "onDigitBossSwitchToggle", "onGrowthRateOptionSelected"] }, { kind: "component", type: FooterDesignComponent, selector: "lib-footer-design", inputs: ["field"] }, { kind: "component", type: AnnuityCalculatorRadioComponent, selector: "lib-annuity-calculator-radio", inputs: ["preSelectConfig", "reactiveFormControlobject", "field"], outputs: ["change", "growthRateChange"] }, { kind: "component", type: TextboxWithRadioComponent, selector: "lib-textbox-with-radio", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "change", "input"] }, { kind: "component", type: LifeCoverDetailsComponent, selector: "lib-life-cover-details", inputs: ["field", "coverDetails", "termDetails", "premiumDetails"], outputs: ["textButtonClick", "sliderValueChange"] }, { kind: "component", type: LifeCoverDetailsViewComponent, selector: "lib-life-cover-details-view", inputs: ["field", "summaryItems"] }, { kind: "component", type: LifeCoverDetailsPostPremiumCalculationComponent, selector: "lib-life-cover-details-post-premium-calculation", inputs: ["field", "premiumSummary"] }, { kind: "component", type: LifeCoverAddonDetailsComponent, selector: "lib-life-cover-addon-details", inputs: ["field", "addOnConfigData"], outputs: ["addonSelectionChange"] }] });
|
|
9963
|
+
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"] }] });
|
|
9332
9964
|
}
|
|
9333
9965
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlComponent, decorators: [{
|
|
9334
9966
|
type: Component,
|
|
@@ -9415,8 +10047,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9415
10047
|
LifeCoverDetailsComponent,
|
|
9416
10048
|
LifeCoverDetailsViewComponent,
|
|
9417
10049
|
LifeCoverDetailsPostPremiumCalculationComponent,
|
|
9418
|
-
LifeCoverAddonDetailsComponent
|
|
9419
|
-
|
|
10050
|
+
LifeCoverAddonDetailsComponent,
|
|
10051
|
+
VehicleCoveragePlansComponent,
|
|
10052
|
+
PremiumBreakdownComponent
|
|
10053
|
+
], 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" }]
|
|
9420
10054
|
}], ctorParameters: () => [], propDecorators: { formGroup: [{
|
|
9421
10055
|
type: Input
|
|
9422
10056
|
}], lifeCoverSliderValueChange: [{
|
|
@@ -9433,5 +10067,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
9433
10067
|
* Generated bundle index. Do not edit.
|
|
9434
10068
|
*/
|
|
9435
10069
|
|
|
9436
|
-
export { AddDocumentComponent, AdditionButtonComponent, AgeDateComponent, AmountTextboxComponent, AnnuityCalculatorRadioComponent, AnnuityPremiumCalculatorComponent, AnnuityRateLogoComponent, AutocompleteComponent, BenefitCardComponent, ButtonComponent, CardComponent, CheckboxComponent, DiscountComponent, DiscountV2Component, DobComponent, DownloadDocumentComponent, EmailWithDomainComponent, ErrorSnackbarComponent, FilePreviewComponent, FooterDesignComponent, GreyLabelComponent, HeaderComponent, HrLineComponent, HyperlinkComponent, IconButtonComponent, IframeComponent, ImageComponent, ImageUploadComponent, InBuiltBenefitComponent, InfoComponent, InfoTextboxComponent, LabelComponent, LabelValueCardComponent, LabelWithImageComponent, LifeCoverAddonDetailsComponent, LifeCoverDetailsComponent, LifeCoverDetailsPostPremiumCalculationComponent, LifeCoverDetailsViewComponent, LoaderComponent, MY_DATE_FORMAT, MasterControlComponent, MasterControlService, MedialQuestionsComponent, MenuComponent, MobNumberComponent, MotorGlowPlanDetailsComponent, MultipleSelectComponent, NeutralSnackbarComponent, OtherBenefitsComponent, OtpMobNumberComponent, OtpTextboxComponent, PageNudgeComponent, PayGetCardComponent, RadioComponent, SearchMultiSelectComponent, SelectComponent, SelectTextboxComponent, StepperComponent, StepperWIthArrowComponent, SubHeaderComponent, SubscriptTextboxComponent, SuccessSnackbarComponent, SuffixTextboxComponent, TabComponent, TableComponent, TextareaComponent, TextboxComponent, TextboxWithImageComponent, TextboxWithRadioComponent, TextboxWithTextComponent, TextboxWithUnderscoreComponent, ToggleButtonComponent, ToggleComponent, UnderscoreMobNumberComponent, UploadComponent, WarningSnackbarComponent };
|
|
10070
|
+
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 };
|
|
9437
10071
|
//# sourceMappingURL=master-control.mjs.map
|