master-control 0.5.18 → 0.5.20

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.
@@ -6735,7 +6735,7 @@ class MedialQuestionsComponent {
6735
6735
  this.questionsValueChange.emit(this.personUwAnswers);
6736
6736
  }
6737
6737
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MedialQuestionsComponent, deps: [{ token: i0.NgZone }, { token: MasterService }], target: i0.ɵɵFactoryTarget.Component });
6738
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: MedialQuestionsComponent, isStandalone: true, selector: "lib-medial-questions", inputs: { clusterId: { classPropertyName: "clusterId", publicName: "clusterId", isSignal: true, isRequired: false, transformFunction: null }, triggerValidation: { classPropertyName: "triggerValidation", publicName: "triggerValidation", isSignal: false, isRequired: false, transformFunction: null }, locationDetails: { classPropertyName: "locationDetails", publicName: "locationDetails", isSignal: false, isRequired: false, transformFunction: null }, medialQuestionResponse: { classPropertyName: "medialQuestionResponse", publicName: "medialQuestionResponse", isSignal: true, isRequired: false, transformFunction: null }, personUWOpenQuoteResponse: { classPropertyName: "personUWOpenQuoteResponse", publicName: "personUWOpenQuoteResponse", isSignal: true, isRequired: false, transformFunction: null }, defaultValues: { classPropertyName: "defaultValues", publicName: "defaultValues", isSignal: true, isRequired: false, transformFunction: null }, personType: { classPropertyName: "personType", publicName: "personType", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { questionsValueChange: "questionsValueChange", locationDetailsChange: "locationDetailsChange" }, viewQueries: [{ propertyName: "addressInput", first: true, predicate: ["addressInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngFor=\"let section of questionList\">\n <div *ngIf=\"\n !checkIfValueIsEmpty(section['questions']) &&\n section['showSection']\n \" class=\"p-3 mb-4\" id=\"personUwMedicalQuestions\">\n <h6 class=\"page-title bold-label\">\n {{ getTitleCase(section[\"sectionName\"]) }}\n </h6>\n <!--<lib-hr-line [field]=\"horizontalLineObj\" />-->\n <div *ngFor=\"let questions of section['questions']\" class=\"row\">\n <!-- <div *ngIf=\"questions['questionType'] === 'IMAGE TEXT'\">\n <img [src]=\"questions['sampleS3Link']\" class=\"d-block mx-auto\" [alt]=\"questions['title']\">\n <h3 [innerHTML]=\"questions['questionText']\"></h3>\n </div> -->\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'FREE TEXT' &&\n questions['cammundaQuestionCode'] !== 'QHT' &&\n questions['isShowQuestionInUI']\n \">\n <div class=\"col-12 px-0 my-1\">\n <lib-textbox [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n </div>\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'HEIGHTINPUT' &&\n questions['cammundaQuestionCode'] === 'QHTF' &&\n questions['isShowQuestionInUI']\n \">\n <label class=\"card-topic d-block field-lable\">Height\n <span style=\"color: #ee0000\">&#42;</span>\n </label>\n <div [class]=\" 'col-auto px-0 my-0 py-0 heightinput medicalQuestionsHeightInput'\"\n id=\"medicalQuestionsHeightInput\" (focusout)=\"validateField(questions.questionId, questions)\">\n <div class=\"row col-12 my-1\" *ngIf=\"personUwAnswers['medicalQuestionsHeightUnit'] === 'CM'\">\n <div class=\"col-7 py-0 heightInputs\">\n <lib-textbox [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHT']['field']\" />\n </div>\n <div class=\"col-5\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightUnit']\"\n [field]=\"medQuestionObj['heightObjectTypes']\" (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); checkAndUpdateHeightUnit()\" />\n </div>\n </div>\n <div class=\"row\" *ngIf=\"\n personUwAnswers[\n 'medicalQuestionsHeightUnit'\n ] === 'FEET'\n \">\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionFeetInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHTF']['field']\" />\n </div>\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsInchesInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHTI']['field']\" />\n </div>\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightUnit']\"\n [field]=\"medQuestionObj['heightObjectTypes']\" (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"checkAndUpdateHeightUnit()\" />\n </div>\n </div>\n\n </div>\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n <div class=\"row mt-0 pt-0\" *ngIf=\"\n questions['questionType'] === 'MAP' &&\n questions['isShowQuestionInUI']\n \">\n\n\n <div class=\"map-container\">\n <div class=\"address-search-container mb-3\">\n\n <div class=\"row mb-3\">\n <div class=\"col-6\">\n <label class=\"form-label card-topic\">Longitude</label>\n <input type=\"number\" class=\"form-control\" autocomplete=\"off\" [(ngModel)]=\"longitude\"\n placeholder=\"Enter longitude\" step=\"any\" readonly\n (blur)=\"validateField(questions.questionId, questions)\">\n </div>\n <div class=\"col-6\">\n <label class=\"form-label card-topic\">Latitude</label>\n <input type=\"number\" class=\"form-control\" autocomplete=\"off\" [(ngModel)]=\"latitude\"\n placeholder=\"Enter latitude\" step=\"any\" readonly\n (blur)=\"validateField(questions.questionId, questions)\">\n </div>\n </div>\n\n <input #addressInput type=\"text\" class=\"form-control\" placeholder=\"Search for address\"\n [(ngModel)]=\"currentAddress\"\n (keyup)=\"onAddressInputKeyup($event)\" (focus)=\"showDropdown = true\" (blur)=\"onInputBlur()\"\n autocomplete=\"off\">\n <div *ngIf=\"showDropdown && addressSuggestions.length > 0\"\n class=\"autocomplete-dropdown position-absolute w-100 mt-1\"\n style=\"z-index: 1000; max-height: 200px; overflow-y: auto; background: white; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);\">\n <div *ngFor=\"let suggestion of addressSuggestions; let i = index\" class=\"dropdown-item p-2\"\n style=\"cursor: pointer; border-bottom: 1px solid #eee;\" (mousedown)=\"selectAddress(suggestion)\"\n (mouseenter)=\"hoveredIndex = i\" [class.bg-light]=\"hoveredIndex === i\">\n <div class=\"fw-bold\">{{ suggestion.main_text }}</div>\n <small class=\"text-muted\">{{ suggestion.secondary_text }}</small>\n </div>\n </div>\n <small class=\"text-muted\">Start typing to search for addresses</small>\n </div>\n <google-map [center]=\"center\" [zoom]=\"zoom\" (mapClick)=\"onMapClick($event)\">\n <map-marker *ngIf=\"currentCoordinates?.lat && currentCoordinates?.lng\" [position]=\"currentCoordinates\" [options]=\"{ draggable: true }\" (mapDragend)=\"onMarkerDragEnd($event)\" (mapClick)=\"onMarkerClick($event)\"></map-marker>\n </google-map>\n </div>\n </div>\n\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n (questions['questionType'] === 'RADIO BUTTON' ||\n questions['questionType'] === 'ADDMORE') &&\n questions['isShowQuestionInUI']\n \">\n <lib-radio [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"questions['field']\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'CHECKBOX' &&\n questions['isShowQuestionInUI']\n \">\n <lib-multiple-select [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (click)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"\n validateField(questions.questionId, questions);\n valueChangeForMultiselect(questions)\n \"\n [field]=\"questions['field']\"\n />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DECLARATION' &&\n questions['isShowQuestionInUI']\n \">\n <lib-checkbox [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"questions['field']\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DROPDOWN' &&\n questions['isShowQuestionInUI']\n \" (focusout)=\"validateField(questions.questionId, questions)\">\n <lib-select [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'CALENDAR' &&\n questions['isShowQuestionInUI']\n \">\n <lib-dob [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <!-- <div\n class=\"\"\n *ngIf=\"\n questions['questionType'] === 'HEIGHTINPUT' &&\n questions['cammundaQuestionCode'] === 'QHTF' &&\n questions['isShowQuestionInUI']\n \"\n >\n </div> -->\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DOCUPLOAD' &&\n questions['isShowQuestionInUI']\n \">\n <lib-upload [field]=\"questions['field']\" (filePreview)=\"onDocumentFilePreview($event)\"\n (blur)=\"validateField(questions.questionId, questions);\" />\n <lib-file-preview *ngIf=\" previewFile\" [field]=\"questions['field']\" [file]=\"previewFile\"\n (closed)=\"closeFilePreview()\">\n </lib-file-preview>\n </div>\n\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'PASSPORT_UPLOAD' &&\n questions['isShowQuestionInUI']\n \">\n <!-- pending -->\n </div>\n </div>\n </div>\n</div>\n", styles: [".map-container{width:100%;position:relative}.address-search-container{position:relative}.address-search-container input{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;box-sizing:border-box}.address-search-container input:focus{outline:none;border-color:#4285f4;box-shadow:0 0 0 2px #4285f433}.pac-container{z-index:10000!important;border-radius:4px;border:1px solid #ddd;box-shadow:0 2px 6px #0000004d}.pac-item{padding:10px;border-bottom:1px solid #eee;cursor:pointer}.pac-item:hover{background-color:#f5f5f5}.selected-address{padding:8px;background-color:#f8f9fa;border-radius:4px;border-left:3px solid #28a745}.map-container ::ng-deep google-map>div{height:400px!important;width:auto!important}.medicalQues{font-size:12px;font-style:normal;font-weight:400;line-height:normal}.heightinput{border:2px solid #fb0;padding:10px;border-radius:4px;width:fit-content}.heightInputs{display:flex;align-items:center;gap:10px}.blink_me{animation:blinker 1s linear infinite}.invalid-field-one-ui{border:2px solid #dc3545!important;box-shadow:0 0 0 3px #dc354526!important}.invalid-field-one-ui:focus{border-color:#dc3545!important;box-shadow:0 0 0 3px #dc354540!important}@keyframes blinker{50%{opacity:0}}.error-message{font-size:12px;color:#dc3545;margin-top:4px;font-weight:400}.text-danger{color:#dc3545!important}.error-message:first-letter{text-transform:uppercase}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { 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.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { 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: ReactiveFormsModule }, { kind: "component", type: TextboxComponent, selector: "lib-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: RadioComponent, selector: "lib-radio", inputs: ["reactiveFormControlobject", "field"], outputs: ["change"] }, { kind: "component", type: CheckboxComponent, selector: "lib-checkbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: SelectComponent, selector: "lib-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange", "infoClick"] }, { kind: "component", type: DobComponent, selector: "lib-dob", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: UploadComponent, selector: "lib-upload", inputs: ["documentUploaderField", "openQuoteImageObj", "field", "reactiveFormControlobject"], outputs: ["filesChanged", "fileRemoved", "filePreview"] }, { kind: "component", type: MultipleSelectComponent, selector: "lib-multiple-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "ngmodule", type: GoogleMapsModule }, { kind: "component", type: i4$3.GoogleMap, selector: "google-map", inputs: ["height", "width", "mapId", "mapTypeId", "center", "zoom", "options"], outputs: ["mapInitialized", "authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }, { kind: "directive", type: i4$3.MapMarker, selector: "map-marker", inputs: ["title", "position", "label", "clickable", "options", "icon", "visible"], outputs: ["animationChanged", "mapClick", "clickableChanged", "cursorChanged", "mapDblclick", "mapDrag", "mapDragend", "draggableChanged", "mapDragstart", "flatChanged", "iconChanged", "mapMousedown", "mapMouseout", "mapMouseover", "mapMouseup", "positionChanged", "mapRightclick", "shapeChanged", "titleChanged", "visibleChanged", "zindexChanged", "markerInitialized"], exportAs: ["mapMarker"] }, { kind: "component", type: FilePreviewComponent, selector: "lib-file-preview", inputs: ["field", "file"], outputs: ["closed"] }] });
6738
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: MedialQuestionsComponent, isStandalone: true, selector: "lib-medial-questions", inputs: { clusterId: { classPropertyName: "clusterId", publicName: "clusterId", isSignal: true, isRequired: false, transformFunction: null }, triggerValidation: { classPropertyName: "triggerValidation", publicName: "triggerValidation", isSignal: false, isRequired: false, transformFunction: null }, locationDetails: { classPropertyName: "locationDetails", publicName: "locationDetails", isSignal: false, isRequired: false, transformFunction: null }, medialQuestionResponse: { classPropertyName: "medialQuestionResponse", publicName: "medialQuestionResponse", isSignal: true, isRequired: false, transformFunction: null }, personUWOpenQuoteResponse: { classPropertyName: "personUWOpenQuoteResponse", publicName: "personUWOpenQuoteResponse", isSignal: true, isRequired: false, transformFunction: null }, defaultValues: { classPropertyName: "defaultValues", publicName: "defaultValues", isSignal: true, isRequired: false, transformFunction: null }, personType: { classPropertyName: "personType", publicName: "personType", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { questionsValueChange: "questionsValueChange", locationDetailsChange: "locationDetailsChange" }, viewQueries: [{ propertyName: "addressInput", first: true, predicate: ["addressInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngFor=\"let section of questionList\">\n <div *ngIf=\"\n !checkIfValueIsEmpty(section['questions']) &&\n section['showSection']\n \"\n [ngClass]=\"field()?.configData?.isAddParentCard ? 'card p-3 mb-4' : 'p-3 mb-4'\" id=\"personUwMedicalQuestions\">\n <h6 class=\"page-title bold-label\">\n {{ getTitleCase(section[\"sectionName\"]) }}\n </h6>\n <!--<lib-hr-line [field]=\"horizontalLineObj\" />-->\n <div *ngFor=\"let questions of section['questions']\" class=\"row\">\n <!-- <div *ngIf=\"questions['questionType'] === 'IMAGE TEXT'\">\n <img [src]=\"questions['sampleS3Link']\" class=\"d-block mx-auto\" [alt]=\"questions['title']\">\n <h3 [innerHTML]=\"questions['questionText']\"></h3>\n </div> -->\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'FREE TEXT' &&\n questions['cammundaQuestionCode'] !== 'QHT' &&\n questions['isShowQuestionInUI']\n \">\n <div class=\"col-12 px-0 my-1\">\n <lib-textbox [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n </div>\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'HEIGHTINPUT' &&\n questions['cammundaQuestionCode'] === 'QHTF' &&\n questions['isShowQuestionInUI']\n \">\n <label class=\"card-topic d-block field-lable\">Height\n <span style=\"color: #ee0000\">&#42;</span>\n </label>\n <div [class]=\" 'col-auto px-0 my-0 py-0 heightinput medicalQuestionsHeightInput'\"\n id=\"medicalQuestionsHeightInput\" (focusout)=\"validateField(questions.questionId, questions)\">\n <div class=\"row col-12 my-1\" *ngIf=\"personUwAnswers['medicalQuestionsHeightUnit'] === 'CM'\">\n <div class=\"col-7 py-0 heightInputs\">\n <lib-textbox [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHT']['field']\" />\n </div>\n <div class=\"col-5\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightUnit']\"\n [field]=\"medQuestionObj['heightObjectTypes']\" (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); checkAndUpdateHeightUnit()\" />\n </div>\n </div>\n <div class=\"row\" *ngIf=\"\n personUwAnswers[\n 'medicalQuestionsHeightUnit'\n ] === 'FEET'\n \">\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionFeetInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHTF']['field']\" />\n </div>\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsInchesInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHTI']['field']\" />\n </div>\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightUnit']\"\n [field]=\"medQuestionObj['heightObjectTypes']\" (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"checkAndUpdateHeightUnit()\" />\n </div>\n </div>\n\n </div>\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n <div class=\"row mt-0 pt-0\" *ngIf=\"\n questions['questionType'] === 'MAP' &&\n questions['isShowQuestionInUI']\n \">\n\n\n <div class=\"map-container\">\n <div class=\"address-search-container mb-3\">\n\n <div class=\"row mb-3\">\n <div class=\"col-6\">\n <label class=\"form-label card-topic\">Longitude</label>\n <input type=\"number\" class=\"form-control\" autocomplete=\"off\" [(ngModel)]=\"longitude\"\n placeholder=\"Enter longitude\" step=\"any\" readonly\n (blur)=\"validateField(questions.questionId, questions)\">\n </div>\n <div class=\"col-6\">\n <label class=\"form-label card-topic\">Latitude</label>\n <input type=\"number\" class=\"form-control\" autocomplete=\"off\" [(ngModel)]=\"latitude\"\n placeholder=\"Enter latitude\" step=\"any\" readonly\n (blur)=\"validateField(questions.questionId, questions)\">\n </div>\n </div>\n\n <input #addressInput type=\"text\" class=\"form-control\" placeholder=\"Search for address\"\n [(ngModel)]=\"currentAddress\"\n (keyup)=\"onAddressInputKeyup($event)\" (focus)=\"showDropdown = true\" (blur)=\"onInputBlur()\"\n autocomplete=\"off\">\n <div *ngIf=\"showDropdown && addressSuggestions.length > 0\"\n class=\"autocomplete-dropdown position-absolute w-100 mt-1\"\n style=\"z-index: 1000; max-height: 200px; overflow-y: auto; background: white; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);\">\n <div *ngFor=\"let suggestion of addressSuggestions; let i = index\" class=\"dropdown-item p-2\"\n style=\"cursor: pointer; border-bottom: 1px solid #eee;\" (mousedown)=\"selectAddress(suggestion)\"\n (mouseenter)=\"hoveredIndex = i\" [class.bg-light]=\"hoveredIndex === i\">\n <div class=\"fw-bold\">{{ suggestion.main_text }}</div>\n <small class=\"text-muted\">{{ suggestion.secondary_text }}</small>\n </div>\n </div>\n <small class=\"text-muted\">Start typing to search for addresses</small>\n </div>\n <google-map [center]=\"center\" [zoom]=\"zoom\" (mapClick)=\"onMapClick($event)\">\n <map-marker *ngIf=\"currentCoordinates?.lat && currentCoordinates?.lng\" [position]=\"currentCoordinates\" [options]=\"{ draggable: true }\" (mapDragend)=\"onMarkerDragEnd($event)\" (mapClick)=\"onMarkerClick($event)\"></map-marker>\n </google-map>\n </div>\n </div>\n\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n (questions['questionType'] === 'RADIO BUTTON' ||\n questions['questionType'] === 'ADDMORE') &&\n questions['isShowQuestionInUI']\n \">\n <lib-radio [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"questions['field']\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'CHECKBOX' &&\n questions['isShowQuestionInUI']\n \">\n <lib-multiple-select [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (click)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"\n validateField(questions.questionId, questions);\n valueChangeForMultiselect(questions)\n \"\n [field]=\"questions['field']\"\n />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DECLARATION' &&\n questions['isShowQuestionInUI']\n \">\n <lib-checkbox [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"questions['field']\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DROPDOWN' &&\n questions['isShowQuestionInUI']\n \" (focusout)=\"validateField(questions.questionId, questions)\">\n <lib-select [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'CALENDAR' &&\n questions['isShowQuestionInUI']\n \">\n <lib-dob [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <!-- <div\n class=\"\"\n *ngIf=\"\n questions['questionType'] === 'HEIGHTINPUT' &&\n questions['cammundaQuestionCode'] === 'QHTF' &&\n questions['isShowQuestionInUI']\n \"\n >\n </div> -->\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DOCUPLOAD' &&\n questions['isShowQuestionInUI']\n \">\n <lib-upload [field]=\"questions['field']\" (filePreview)=\"onDocumentFilePreview($event)\"\n (blur)=\"validateField(questions.questionId, questions);\" />\n <lib-file-preview *ngIf=\" previewFile\" [field]=\"questions['field']\" [file]=\"previewFile\"\n (closed)=\"closeFilePreview()\">\n </lib-file-preview>\n </div>\n\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'PASSPORT_UPLOAD' &&\n questions['isShowQuestionInUI']\n \">\n <!-- pending -->\n </div>\n </div>\n </div>\n</div>\n", styles: [".map-container{width:100%;position:relative}.address-search-container{position:relative}.address-search-container input{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;box-sizing:border-box}.address-search-container input:focus{outline:none;border-color:#4285f4;box-shadow:0 0 0 2px #4285f433}.pac-container{z-index:10000!important;border-radius:4px;border:1px solid #ddd;box-shadow:0 2px 6px #0000004d}.pac-item{padding:10px;border-bottom:1px solid #eee;cursor:pointer}.pac-item:hover{background-color:#f5f5f5}.selected-address{padding:8px;background-color:#f8f9fa;border-radius:4px;border-left:3px solid #28a745}.map-container ::ng-deep google-map>div{height:400px!important;width:auto!important}.medicalQues{font-size:12px;font-style:normal;font-weight:400;line-height:normal}.heightinput{border:2px solid #fb0;padding:10px;border-radius:4px;width:fit-content}.heightInputs{display:flex;align-items:center;gap:10px}.blink_me{animation:blinker 1s linear infinite}.invalid-field-one-ui{border:2px solid #dc3545!important;box-shadow:0 0 0 3px #dc354526!important}.invalid-field-one-ui:focus{border-color:#dc3545!important;box-shadow:0 0 0 3px #dc354540!important}@keyframes blinker{50%{opacity:0}}.error-message{font-size:12px;color:#dc3545;margin-top:4px;font-weight:400}.text-danger{color:#dc3545!important}.error-message:first-letter{text-transform:uppercase}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { 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.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { 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: ReactiveFormsModule }, { kind: "component", type: TextboxComponent, selector: "lib-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: RadioComponent, selector: "lib-radio", inputs: ["reactiveFormControlobject", "field"], outputs: ["change"] }, { kind: "component", type: CheckboxComponent, selector: "lib-checkbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: SelectComponent, selector: "lib-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange", "infoClick"] }, { kind: "component", type: DobComponent, selector: "lib-dob", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: UploadComponent, selector: "lib-upload", inputs: ["documentUploaderField", "openQuoteImageObj", "field", "reactiveFormControlobject"], outputs: ["filesChanged", "fileRemoved", "filePreview"] }, { kind: "component", type: MultipleSelectComponent, selector: "lib-multiple-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "ngmodule", type: GoogleMapsModule }, { kind: "component", type: i4$3.GoogleMap, selector: "google-map", inputs: ["height", "width", "mapId", "mapTypeId", "center", "zoom", "options"], outputs: ["mapInitialized", "authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }, { kind: "directive", type: i4$3.MapMarker, selector: "map-marker", inputs: ["title", "position", "label", "clickable", "options", "icon", "visible"], outputs: ["animationChanged", "mapClick", "clickableChanged", "cursorChanged", "mapDblclick", "mapDrag", "mapDragend", "draggableChanged", "mapDragstart", "flatChanged", "iconChanged", "mapMousedown", "mapMouseout", "mapMouseover", "mapMouseup", "positionChanged", "mapRightclick", "shapeChanged", "titleChanged", "visibleChanged", "zindexChanged", "markerInitialized"], exportAs: ["mapMarker"] }, { kind: "component", type: FilePreviewComponent, selector: "lib-file-preview", inputs: ["field", "file"], outputs: ["closed"] }] });
6739
6739
  }
6740
6740
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MedialQuestionsComponent, decorators: [{
6741
6741
  type: Component,
@@ -6753,7 +6753,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
6753
6753
  GoogleMapsModule,
6754
6754
  HrLineComponent,
6755
6755
  FilePreviewComponent,
6756
- ], template: "<div *ngFor=\"let section of questionList\">\n <div *ngIf=\"\n !checkIfValueIsEmpty(section['questions']) &&\n section['showSection']\n \" class=\"p-3 mb-4\" id=\"personUwMedicalQuestions\">\n <h6 class=\"page-title bold-label\">\n {{ getTitleCase(section[\"sectionName\"]) }}\n </h6>\n <!--<lib-hr-line [field]=\"horizontalLineObj\" />-->\n <div *ngFor=\"let questions of section['questions']\" class=\"row\">\n <!-- <div *ngIf=\"questions['questionType'] === 'IMAGE TEXT'\">\n <img [src]=\"questions['sampleS3Link']\" class=\"d-block mx-auto\" [alt]=\"questions['title']\">\n <h3 [innerHTML]=\"questions['questionText']\"></h3>\n </div> -->\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'FREE TEXT' &&\n questions['cammundaQuestionCode'] !== 'QHT' &&\n questions['isShowQuestionInUI']\n \">\n <div class=\"col-12 px-0 my-1\">\n <lib-textbox [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n </div>\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'HEIGHTINPUT' &&\n questions['cammundaQuestionCode'] === 'QHTF' &&\n questions['isShowQuestionInUI']\n \">\n <label class=\"card-topic d-block field-lable\">Height\n <span style=\"color: #ee0000\">&#42;</span>\n </label>\n <div [class]=\" 'col-auto px-0 my-0 py-0 heightinput medicalQuestionsHeightInput'\"\n id=\"medicalQuestionsHeightInput\" (focusout)=\"validateField(questions.questionId, questions)\">\n <div class=\"row col-12 my-1\" *ngIf=\"personUwAnswers['medicalQuestionsHeightUnit'] === 'CM'\">\n <div class=\"col-7 py-0 heightInputs\">\n <lib-textbox [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHT']['field']\" />\n </div>\n <div class=\"col-5\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightUnit']\"\n [field]=\"medQuestionObj['heightObjectTypes']\" (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); checkAndUpdateHeightUnit()\" />\n </div>\n </div>\n <div class=\"row\" *ngIf=\"\n personUwAnswers[\n 'medicalQuestionsHeightUnit'\n ] === 'FEET'\n \">\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionFeetInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHTF']['field']\" />\n </div>\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsInchesInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHTI']['field']\" />\n </div>\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightUnit']\"\n [field]=\"medQuestionObj['heightObjectTypes']\" (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"checkAndUpdateHeightUnit()\" />\n </div>\n </div>\n\n </div>\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n <div class=\"row mt-0 pt-0\" *ngIf=\"\n questions['questionType'] === 'MAP' &&\n questions['isShowQuestionInUI']\n \">\n\n\n <div class=\"map-container\">\n <div class=\"address-search-container mb-3\">\n\n <div class=\"row mb-3\">\n <div class=\"col-6\">\n <label class=\"form-label card-topic\">Longitude</label>\n <input type=\"number\" class=\"form-control\" autocomplete=\"off\" [(ngModel)]=\"longitude\"\n placeholder=\"Enter longitude\" step=\"any\" readonly\n (blur)=\"validateField(questions.questionId, questions)\">\n </div>\n <div class=\"col-6\">\n <label class=\"form-label card-topic\">Latitude</label>\n <input type=\"number\" class=\"form-control\" autocomplete=\"off\" [(ngModel)]=\"latitude\"\n placeholder=\"Enter latitude\" step=\"any\" readonly\n (blur)=\"validateField(questions.questionId, questions)\">\n </div>\n </div>\n\n <input #addressInput type=\"text\" class=\"form-control\" placeholder=\"Search for address\"\n [(ngModel)]=\"currentAddress\"\n (keyup)=\"onAddressInputKeyup($event)\" (focus)=\"showDropdown = true\" (blur)=\"onInputBlur()\"\n autocomplete=\"off\">\n <div *ngIf=\"showDropdown && addressSuggestions.length > 0\"\n class=\"autocomplete-dropdown position-absolute w-100 mt-1\"\n style=\"z-index: 1000; max-height: 200px; overflow-y: auto; background: white; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);\">\n <div *ngFor=\"let suggestion of addressSuggestions; let i = index\" class=\"dropdown-item p-2\"\n style=\"cursor: pointer; border-bottom: 1px solid #eee;\" (mousedown)=\"selectAddress(suggestion)\"\n (mouseenter)=\"hoveredIndex = i\" [class.bg-light]=\"hoveredIndex === i\">\n <div class=\"fw-bold\">{{ suggestion.main_text }}</div>\n <small class=\"text-muted\">{{ suggestion.secondary_text }}</small>\n </div>\n </div>\n <small class=\"text-muted\">Start typing to search for addresses</small>\n </div>\n <google-map [center]=\"center\" [zoom]=\"zoom\" (mapClick)=\"onMapClick($event)\">\n <map-marker *ngIf=\"currentCoordinates?.lat && currentCoordinates?.lng\" [position]=\"currentCoordinates\" [options]=\"{ draggable: true }\" (mapDragend)=\"onMarkerDragEnd($event)\" (mapClick)=\"onMarkerClick($event)\"></map-marker>\n </google-map>\n </div>\n </div>\n\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n (questions['questionType'] === 'RADIO BUTTON' ||\n questions['questionType'] === 'ADDMORE') &&\n questions['isShowQuestionInUI']\n \">\n <lib-radio [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"questions['field']\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'CHECKBOX' &&\n questions['isShowQuestionInUI']\n \">\n <lib-multiple-select [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (click)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"\n validateField(questions.questionId, questions);\n valueChangeForMultiselect(questions)\n \"\n [field]=\"questions['field']\"\n />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DECLARATION' &&\n questions['isShowQuestionInUI']\n \">\n <lib-checkbox [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"questions['field']\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DROPDOWN' &&\n questions['isShowQuestionInUI']\n \" (focusout)=\"validateField(questions.questionId, questions)\">\n <lib-select [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'CALENDAR' &&\n questions['isShowQuestionInUI']\n \">\n <lib-dob [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <!-- <div\n class=\"\"\n *ngIf=\"\n questions['questionType'] === 'HEIGHTINPUT' &&\n questions['cammundaQuestionCode'] === 'QHTF' &&\n questions['isShowQuestionInUI']\n \"\n >\n </div> -->\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DOCUPLOAD' &&\n questions['isShowQuestionInUI']\n \">\n <lib-upload [field]=\"questions['field']\" (filePreview)=\"onDocumentFilePreview($event)\"\n (blur)=\"validateField(questions.questionId, questions);\" />\n <lib-file-preview *ngIf=\" previewFile\" [field]=\"questions['field']\" [file]=\"previewFile\"\n (closed)=\"closeFilePreview()\">\n </lib-file-preview>\n </div>\n\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'PASSPORT_UPLOAD' &&\n questions['isShowQuestionInUI']\n \">\n <!-- pending -->\n </div>\n </div>\n </div>\n</div>\n", styles: [".map-container{width:100%;position:relative}.address-search-container{position:relative}.address-search-container input{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;box-sizing:border-box}.address-search-container input:focus{outline:none;border-color:#4285f4;box-shadow:0 0 0 2px #4285f433}.pac-container{z-index:10000!important;border-radius:4px;border:1px solid #ddd;box-shadow:0 2px 6px #0000004d}.pac-item{padding:10px;border-bottom:1px solid #eee;cursor:pointer}.pac-item:hover{background-color:#f5f5f5}.selected-address{padding:8px;background-color:#f8f9fa;border-radius:4px;border-left:3px solid #28a745}.map-container ::ng-deep google-map>div{height:400px!important;width:auto!important}.medicalQues{font-size:12px;font-style:normal;font-weight:400;line-height:normal}.heightinput{border:2px solid #fb0;padding:10px;border-radius:4px;width:fit-content}.heightInputs{display:flex;align-items:center;gap:10px}.blink_me{animation:blinker 1s linear infinite}.invalid-field-one-ui{border:2px solid #dc3545!important;box-shadow:0 0 0 3px #dc354526!important}.invalid-field-one-ui:focus{border-color:#dc3545!important;box-shadow:0 0 0 3px #dc354540!important}@keyframes blinker{50%{opacity:0}}.error-message{font-size:12px;color:#dc3545;margin-top:4px;font-weight:400}.text-danger{color:#dc3545!important}.error-message:first-letter{text-transform:uppercase}\n"] }]
6756
+ ], template: "<div *ngFor=\"let section of questionList\">\n <div *ngIf=\"\n !checkIfValueIsEmpty(section['questions']) &&\n section['showSection']\n \"\n [ngClass]=\"field()?.configData?.isAddParentCard ? 'card p-3 mb-4' : 'p-3 mb-4'\" id=\"personUwMedicalQuestions\">\n <h6 class=\"page-title bold-label\">\n {{ getTitleCase(section[\"sectionName\"]) }}\n </h6>\n <!--<lib-hr-line [field]=\"horizontalLineObj\" />-->\n <div *ngFor=\"let questions of section['questions']\" class=\"row\">\n <!-- <div *ngIf=\"questions['questionType'] === 'IMAGE TEXT'\">\n <img [src]=\"questions['sampleS3Link']\" class=\"d-block mx-auto\" [alt]=\"questions['title']\">\n <h3 [innerHTML]=\"questions['questionText']\"></h3>\n </div> -->\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'FREE TEXT' &&\n questions['cammundaQuestionCode'] !== 'QHT' &&\n questions['isShowQuestionInUI']\n \">\n <div class=\"col-12 px-0 my-1\">\n <lib-textbox [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n </div>\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'HEIGHTINPUT' &&\n questions['cammundaQuestionCode'] === 'QHTF' &&\n questions['isShowQuestionInUI']\n \">\n <label class=\"card-topic d-block field-lable\">Height\n <span style=\"color: #ee0000\">&#42;</span>\n </label>\n <div [class]=\" 'col-auto px-0 my-0 py-0 heightinput medicalQuestionsHeightInput'\"\n id=\"medicalQuestionsHeightInput\" (focusout)=\"validateField(questions.questionId, questions)\">\n <div class=\"row col-12 my-1\" *ngIf=\"personUwAnswers['medicalQuestionsHeightUnit'] === 'CM'\">\n <div class=\"col-7 py-0 heightInputs\">\n <lib-textbox [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHT']['field']\" />\n </div>\n <div class=\"col-5\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightUnit']\"\n [field]=\"medQuestionObj['heightObjectTypes']\" (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); checkAndUpdateHeightUnit()\" />\n </div>\n </div>\n <div class=\"row\" *ngIf=\"\n personUwAnswers[\n 'medicalQuestionsHeightUnit'\n ] === 'FEET'\n \">\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionFeetInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHTF']['field']\" />\n </div>\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsInchesInput']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"medQuestionObj['QHTI']['field']\" />\n </div>\n <div class=\"col-4 py-0 my-1\">\n <lib-select [(ngModel)]=\"personUwAnswers['medicalQuestionsHeightUnit']\"\n [field]=\"medQuestionObj['heightObjectTypes']\" (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"checkAndUpdateHeightUnit()\" />\n </div>\n </div>\n\n </div>\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n <div class=\"row mt-0 pt-0\" *ngIf=\"\n questions['questionType'] === 'MAP' &&\n questions['isShowQuestionInUI']\n \">\n\n\n <div class=\"map-container\">\n <div class=\"address-search-container mb-3\">\n\n <div class=\"row mb-3\">\n <div class=\"col-6\">\n <label class=\"form-label card-topic\">Longitude</label>\n <input type=\"number\" class=\"form-control\" autocomplete=\"off\" [(ngModel)]=\"longitude\"\n placeholder=\"Enter longitude\" step=\"any\" readonly\n (blur)=\"validateField(questions.questionId, questions)\">\n </div>\n <div class=\"col-6\">\n <label class=\"form-label card-topic\">Latitude</label>\n <input type=\"number\" class=\"form-control\" autocomplete=\"off\" [(ngModel)]=\"latitude\"\n placeholder=\"Enter latitude\" step=\"any\" readonly\n (blur)=\"validateField(questions.questionId, questions)\">\n </div>\n </div>\n\n <input #addressInput type=\"text\" class=\"form-control\" placeholder=\"Search for address\"\n [(ngModel)]=\"currentAddress\"\n (keyup)=\"onAddressInputKeyup($event)\" (focus)=\"showDropdown = true\" (blur)=\"onInputBlur()\"\n autocomplete=\"off\">\n <div *ngIf=\"showDropdown && addressSuggestions.length > 0\"\n class=\"autocomplete-dropdown position-absolute w-100 mt-1\"\n style=\"z-index: 1000; max-height: 200px; overflow-y: auto; background: white; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);\">\n <div *ngFor=\"let suggestion of addressSuggestions; let i = index\" class=\"dropdown-item p-2\"\n style=\"cursor: pointer; border-bottom: 1px solid #eee;\" (mousedown)=\"selectAddress(suggestion)\"\n (mouseenter)=\"hoveredIndex = i\" [class.bg-light]=\"hoveredIndex === i\">\n <div class=\"fw-bold\">{{ suggestion.main_text }}</div>\n <small class=\"text-muted\">{{ suggestion.secondary_text }}</small>\n </div>\n </div>\n <small class=\"text-muted\">Start typing to search for addresses</small>\n </div>\n <google-map [center]=\"center\" [zoom]=\"zoom\" (mapClick)=\"onMapClick($event)\">\n <map-marker *ngIf=\"currentCoordinates?.lat && currentCoordinates?.lng\" [position]=\"currentCoordinates\" [options]=\"{ draggable: true }\" (mapDragend)=\"onMarkerDragEnd($event)\" (mapClick)=\"onMarkerClick($event)\"></map-marker>\n </google-map>\n </div>\n </div>\n\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n (questions['questionType'] === 'RADIO BUTTON' ||\n questions['questionType'] === 'ADDMORE') &&\n questions['isShowQuestionInUI']\n \">\n <lib-radio [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"questions['field']\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'CHECKBOX' &&\n questions['isShowQuestionInUI']\n \">\n <lib-multiple-select [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (click)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"\n validateField(questions.questionId, questions);\n valueChangeForMultiselect(questions)\n \"\n [field]=\"questions['field']\"\n />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DECLARATION' &&\n questions['isShowQuestionInUI']\n \">\n <lib-checkbox [(ngModel)]=\"personUwAnswers[questions.questionId]\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\"\n [field]=\"questions['field']\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DROPDOWN' &&\n questions['isShowQuestionInUI']\n \" (focusout)=\"validateField(questions.questionId, questions)\">\n <lib-select [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'CALENDAR' &&\n questions['isShowQuestionInUI']\n \">\n <lib-dob [(ngModel)]=\"personUwAnswers[questions.questionId]\" [field]=\"questions['field']\"\n (blur)=\"validateField(questions.questionId, questions)\" (ngModelChange)=\"removeSubQuestionValues(); handleQuestionChange()\" />\n <div class=\"error-message text-danger mt-1\" *ngIf=\"hasAnyFieldError(questions.questionId)\">\n {{ getFieldErrorMessage(questions.questionId, questions) }}\n </div>\n </div>\n\n <!-- <div\n class=\"\"\n *ngIf=\"\n questions['questionType'] === 'HEIGHTINPUT' &&\n questions['cammundaQuestionCode'] === 'QHTF' &&\n questions['isShowQuestionInUI']\n \"\n >\n </div> -->\n <div class=\"my-1\" [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'DOCUPLOAD' &&\n questions['isShowQuestionInUI']\n \">\n <lib-upload [field]=\"questions['field']\" (filePreview)=\"onDocumentFilePreview($event)\"\n (blur)=\"validateField(questions.questionId, questions);\" />\n <lib-file-preview *ngIf=\" previewFile\" [field]=\"questions['field']\" [file]=\"previewFile\"\n (closed)=\"closeFilePreview()\">\n </lib-file-preview>\n </div>\n\n\n <div [ngClass]=\"questions?.field?.cssClass\" *ngIf=\"\n questions['questionType'] === 'PASSPORT_UPLOAD' &&\n questions['isShowQuestionInUI']\n \">\n <!-- pending -->\n </div>\n </div>\n </div>\n</div>\n", styles: [".map-container{width:100%;position:relative}.address-search-container{position:relative}.address-search-container input{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;box-sizing:border-box}.address-search-container input:focus{outline:none;border-color:#4285f4;box-shadow:0 0 0 2px #4285f433}.pac-container{z-index:10000!important;border-radius:4px;border:1px solid #ddd;box-shadow:0 2px 6px #0000004d}.pac-item{padding:10px;border-bottom:1px solid #eee;cursor:pointer}.pac-item:hover{background-color:#f5f5f5}.selected-address{padding:8px;background-color:#f8f9fa;border-radius:4px;border-left:3px solid #28a745}.map-container ::ng-deep google-map>div{height:400px!important;width:auto!important}.medicalQues{font-size:12px;font-style:normal;font-weight:400;line-height:normal}.heightinput{border:2px solid #fb0;padding:10px;border-radius:4px;width:fit-content}.heightInputs{display:flex;align-items:center;gap:10px}.blink_me{animation:blinker 1s linear infinite}.invalid-field-one-ui{border:2px solid #dc3545!important;box-shadow:0 0 0 3px #dc354526!important}.invalid-field-one-ui:focus{border-color:#dc3545!important;box-shadow:0 0 0 3px #dc354540!important}@keyframes blinker{50%{opacity:0}}.error-message{font-size:12px;color:#dc3545;margin-top:4px;font-weight:400}.text-danger{color:#dc3545!important}.error-message:first-letter{text-transform:uppercase}\n"] }]
6757
6757
  }], ctorParameters: () => [{ type: i0.NgZone }, { type: MasterService }], propDecorators: { questionsValueChange: [{
6758
6758
  type: Output
6759
6759
  }], triggerValidation: [{
@@ -9507,11 +9507,11 @@ class LifeCoverDetailsComponent {
9507
9507
  this.termInputError = value;
9508
9508
  }
9509
9509
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9510
- 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 [ngStyle]=\"componentStyleVars\"\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\">\n <svg class=\"select-chevron-icon\" viewBox=\"225 13 10 6\" fill=\"none\" focusable=\"false\">\n <path\n d=\"M225.259 13.2665C224.91 13.6219 224.91 14.1959 225.259 14.5513L229.367 18.7335C229.716 19.0888 230.279 19.0888 230.628 18.7335L234.736 14.5513C235.085 14.1959 235.085 13.6219 234.736 13.2665C234.387 12.9112 233.823 12.9112 233.474 13.2665L229.993 16.8018L226.521 13.2665C226.172 12.9112 225.599 12.9203 225.259 13.2665Z\"\n fill=\"currentColor\" />\n </svg>\n </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:var(--mc-width, min(540px, 100%));min-width:var(--mc-min-width, auto);max-width:var(--mc-max-width, 100%);height:var(--mc-height, auto);min-height:var(--mc-min-height, auto);max-height:var(--mc-max-height, none);margin:var(--mc-margin, 0);border:var(--mc-border-width, 1px) var(--mc-border-style, solid) var(--mc-border-color, #dbe4ef);border-radius:var(--mc-border-radius, 28px);background:var(--mc-background, linear-gradient(180deg, #E5F0FA80 50%, #ffffff 100%));box-shadow:0 18px 40px #22365414;overflow:hidden;font-family:var(--mc-font-family, \"Mulish\"),sans-serif;color:var(--mc-color, #4a4a4a)}.life-cover-card{padding:var(--mc-padding, 28px 28px 20px)}.life-cover-container--compact{width:var(--mc-width, min(456px, 100%))}.life-cover-container--compact .life-cover-card{padding:var(--mc-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:var(--mc-badge-height, 42px);padding:0 14px;font-size:17px;line-height:calc(var(--mc-badge-height, 42px) - 4px)}.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:var(--mc-color, #2b3138);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:var(--mc-font-size, 16px);font-weight:800;line-height:1.3}.control-label--large{font-size:calc(var(--mc-font-size, 16px) + 8px);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:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:18px;font-weight:800;line-height:28px;text-align:center}.value-badge{min-width:106px;height:var(--mc-badge-height, 46px);padding:0 18px;border:var(--mc-border-width, 2px) var(--mc-border-style, solid) var(--mc-border-color, #d7d7d7);border-radius:10px;background:var(--mc-dropdown-option-bg-color, #ffffff);color:var(--mc-color, #4a4a4a);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 4px);font-weight:700;line-height:calc(var(--mc-badge-height, 46px) - 4px);text-align:center}.value-badge--compact{min-width:74px}.value-badge-input{outline:none;appearance:none;cursor:text}.value-badge-input:focus{border-color:var(--mc-focus-border-color, #ffb400);border-width:var(--mc-focus-border-width, 2px);background:var(--mc-focus-background, #ffffff);color:var(--mc-focus-color, var(--mc-color, #4a4a4a));box-shadow:0 0 0 3px #ffb40024}.value-badge--invalid{border-color:var(--mc-error-border-color, #e24c4c);border-width:var(--mc-error-border-width, 2px);box-shadow:0 0 0 3px #e24c4c1f}.life-slider{width:100%;margin:0;--mdc-slider-active-track-color: var(--mc-caret-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: var(--mc-caret-color, #ffb400);--mdc-slider-focus-handle-color: var(--mc-focus-border-color, #ffb400);--mdc-slider-hover-handle-color: var(--mc-hover-border-color, #ffb000);--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:var(--mc-caret-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 var(--mc-caret-color, #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:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) - 3px);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:var(--mc-color, #444444);font-weight:800}.hint-row span:last-child{text-align:right}.validation-message{color:var(--mc-error-border-color, #d94841);font-family:var(--mc-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 var(--mc-border-color, #d8dfe7)}.select-shell{position:relative;display:flex;align-items:center}.select-input{width:100%;height:var(--mc-select-height, 60px);padding:0 56px 0 22px;border:var(--mc-border-width, 2px) var(--mc-border-style, solid) var(--mc-border-color, #d7d7d7);border-radius:18px;background:var(--mc-dropdown-option-bg-color, #ffffff);color:var(--mc-dropdown-option-color, var(--mc-color, #4a4a4a));font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 2px);font-weight:var(--mc-dropdown-option-font-weight, 600);line-height:1.2;appearance:none;outline:none}.select-input:focus{border-color:var(--mc-focus-border-color, #ffb400);border-width:var(--mc-focus-border-width, 2px);background:var(--mc-focus-background, var(--mc-dropdown-option-bg-color, #ffffff));color:var(--mc-focus-color, var(--mc-dropdown-option-color, #4a4a4a));box-shadow:0 0 0 3px #ffb40024}.select-chevron{position:absolute;top:50%;right:18px;display:flex;align-items:center;justify-content:center;width:12px;height:8px;color:#222;transform:translateY(-50%);pointer-events:none}.select-chevron-icon{display:block;width:100%;height:100%}.button-row{padding:22px 28px 28px;border-top:var(--mc-border-width, 1px) solid var(--mc-border-color, #dbe4ef);background:var(--mc-dropdown-option-bg-color, #ffffff)}.primary-button{width:100%;height:58px;border:0;border-radius:18px;background:linear-gradient(90deg,var(--mc-caret-color, #ffb400) 0%,var(--mc-focus-border-color, #ffc11b) 100%);color:var(--mc-focus-color, #1f2125);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 4px);font-weight:800;line-height:1.2;box-shadow:0 10px 24px #ffb4003d}.primary-button:hover{background:linear-gradient(90deg,var(--mc-hover-border-color, var(--mc-caret-color, #ffb000)) 0%,var(--mc-focus-border-color, var(--mc-caret-color, #ffbe0e)) 100%)}@media (max-width: 576px){.life-cover-card{padding:22px 20px 18px}.control-label--large{font-size:18px}.value-badge{min-width:84px;height:var(--mc-badge-height, 42px);padding:0 14px;font-size:17px;line-height:calc(var(--mc-badge-height, 42px) - 4px)}.scale-label,.hint-row span{font-size:12px}.select-input{height:var(--mc-select-height, 54px);font-size:16px}.select-chevron{right: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: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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"] }] });
9510
+ 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 [ngStyle]=\"componentStyleVars\"\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\">\n <svg class=\"select-chevron-icon\" viewBox=\"225 13 10 6\" fill=\"none\" focusable=\"false\">\n <path\n d=\"M225.259 13.2665C224.91 13.6219 224.91 14.1959 225.259 14.5513L229.367 18.7335C229.716 19.0888 230.279 19.0888 230.628 18.7335L234.736 14.5513C235.085 14.1959 235.085 13.6219 234.736 13.2665C234.387 12.9112 233.823 12.9112 233.474 13.2665L229.993 16.8018L226.521 13.2665C226.172 12.9112 225.599 12.9203 225.259 13.2665Z\"\n fill=\"currentColor\" />\n </svg>\n </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:var(--mc-width, min(540px, 100%));min-width:var(--mc-min-width, auto);max-width:var(--mc-max-width, 100%);height:var(--mc-height, auto);min-height:var(--mc-min-height, auto);max-height:var(--mc-max-height, none);margin:var(--mc-margin, 0);border:var(--mc-border-width, 1px) var(--mc-border-style, solid) var(--mc-border-color, #dbe4ef);border-radius:var(--mc-border-radius, 28px);background:var(--mc-background, linear-gradient(180deg, #E5F0FA80 50%, #ffffff 100%));box-shadow:0 18px 40px #22365414;overflow:hidden;font-family:var(--mc-font-family, \"Mulish\"),sans-serif;color:var(--mc-color, #4a4a4a)}.life-cover-card{padding:var(--mc-padding, 28px 28px 20px)}.life-cover-container--compact{width:var(--mc-width, min(456px, 100%))}.life-cover-container--compact .life-cover-card{padding:var(--mc-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:var(--mc-badge-height, 42px);padding:0 14px;font-size:17px;line-height:calc(var(--mc-badge-height, 42px) - 4px)}.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:2px}.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:var(--mc-color, #2b3138);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:var(--mc-font-size, 16px);font-weight:800;line-height:1.3}.control-label--large{font-size:calc(var(--mc-font-size, 16px) + 8px);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:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:18px;font-weight:800;line-height:28px;text-align:center}.value-badge{min-width:106px;height:var(--mc-badge-height, 46px);padding:0 18px;border:var(--mc-border-width, 2px) var(--mc-border-style, solid) var(--mc-border-color, #d7d7d7);border-radius:10px;background:var(--mc-dropdown-option-bg-color, #ffffff);color:var(--mc-color, #4a4a4a);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 4px);font-weight:700;line-height:calc(var(--mc-badge-height, 46px) - 4px);text-align:center}.value-badge--compact{min-width:74px}.value-badge-input{outline:none;appearance:none;cursor:text}.value-badge-input:focus{border-color:var(--mc-focus-border-color, #ffb400);border-width:var(--mc-focus-border-width, 2px);background:var(--mc-focus-background, #ffffff);color:var(--mc-focus-color, var(--mc-color, #4a4a4a));box-shadow:0 0 0 3px #ffb40024}.value-badge--invalid{border-color:var(--mc-error-border-color, #e24c4c);border-width:var(--mc-error-border-width, 2px);box-shadow:0 0 0 3px #e24c4c1f}.life-slider{width:100%;margin:0;--mdc-slider-active-track-color: var(--mc-caret-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: var(--mc-caret-color, #ffb400);--mdc-slider-focus-handle-color: var(--mc-focus-border-color, #ffb400);--mdc-slider-hover-handle-color: var(--mc-hover-border-color, #ffb000);--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:var(--mc-caret-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 var(--mc-caret-color, #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:18px}.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:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) - 3px);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:var(--mc-color, #444444);font-weight:800}.hint-row span:last-child{text-align:right}.validation-message{color:var(--mc-error-border-color, #d94841);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:12px;font-weight:700;line-height:1.4}.row-divider{margin:12px 0}.row-divider--dashed{border-top:2px dashed var(--mc-border-color, #d8dfe7)}.select-shell{position:relative;display:flex;align-items:center}.select-input{width:100%;height:var(--mc-select-height, 60px);padding:0 56px 0 22px;border:var(--mc-border-width, 2px) var(--mc-border-style, solid) var(--mc-border-color, #d7d7d7);border-radius:18px;background:var(--mc-dropdown-option-bg-color, #ffffff);color:var(--mc-dropdown-option-color, var(--mc-color, #4a4a4a));font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 2px);font-weight:var(--mc-dropdown-option-font-weight, 600);line-height:1.2;appearance:none;outline:none}.select-input:focus{border-color:var(--mc-focus-border-color, #ffb400);border-width:var(--mc-focus-border-width, 2px);background:var(--mc-focus-background, var(--mc-dropdown-option-bg-color, #ffffff));color:var(--mc-focus-color, var(--mc-dropdown-option-color, #4a4a4a));box-shadow:0 0 0 3px #ffb40024}.select-chevron{position:absolute;top:50%;right:18px;display:flex;align-items:center;justify-content:center;width:12px;height:8px;color:#222;transform:translateY(-50%);pointer-events:none}.select-chevron-icon{display:block;width:100%;height:100%}.button-row{padding:22px 28px 28px;border-top:var(--mc-border-width, 1px) solid var(--mc-border-color, #dbe4ef);background:var(--mc-dropdown-option-bg-color, #ffffff)}.primary-button{width:100%;height:58px;border:0;border-radius:18px;background:linear-gradient(90deg,var(--mc-caret-color, #ffb400) 0%,var(--mc-focus-border-color, #ffc11b) 100%);color:var(--mc-focus-color, #1f2125);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 4px);font-weight:800;line-height:1.2;box-shadow:0 10px 24px #ffb4003d}.primary-button:hover{background:linear-gradient(90deg,var(--mc-hover-border-color, var(--mc-caret-color, #ffb000)) 0%,var(--mc-focus-border-color, var(--mc-caret-color, #ffbe0e)) 100%)}@media (max-width: 576px){.life-cover-card{padding:22px 20px 18px}.control-label--large{font-size:18px}.value-badge{min-width:84px;height:var(--mc-badge-height, 42px);padding:0 14px;font-size:17px;line-height:calc(var(--mc-badge-height, 42px) - 4px)}.scale-label,.hint-row span{font-size:12px}.select-input{height:var(--mc-select-height, 54px);font-size:16px}.select-chevron{right: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: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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"] }] });
9511
9511
  }
9512
9512
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LifeCoverDetailsComponent, decorators: [{
9513
9513
  type: Component,
9514
- 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 [ngStyle]=\"componentStyleVars\"\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\">\n <svg class=\"select-chevron-icon\" viewBox=\"225 13 10 6\" fill=\"none\" focusable=\"false\">\n <path\n d=\"M225.259 13.2665C224.91 13.6219 224.91 14.1959 225.259 14.5513L229.367 18.7335C229.716 19.0888 230.279 19.0888 230.628 18.7335L234.736 14.5513C235.085 14.1959 235.085 13.6219 234.736 13.2665C234.387 12.9112 233.823 12.9112 233.474 13.2665L229.993 16.8018L226.521 13.2665C226.172 12.9112 225.599 12.9203 225.259 13.2665Z\"\n fill=\"currentColor\" />\n </svg>\n </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:var(--mc-width, min(540px, 100%));min-width:var(--mc-min-width, auto);max-width:var(--mc-max-width, 100%);height:var(--mc-height, auto);min-height:var(--mc-min-height, auto);max-height:var(--mc-max-height, none);margin:var(--mc-margin, 0);border:var(--mc-border-width, 1px) var(--mc-border-style, solid) var(--mc-border-color, #dbe4ef);border-radius:var(--mc-border-radius, 28px);background:var(--mc-background, linear-gradient(180deg, #E5F0FA80 50%, #ffffff 100%));box-shadow:0 18px 40px #22365414;overflow:hidden;font-family:var(--mc-font-family, \"Mulish\"),sans-serif;color:var(--mc-color, #4a4a4a)}.life-cover-card{padding:var(--mc-padding, 28px 28px 20px)}.life-cover-container--compact{width:var(--mc-width, min(456px, 100%))}.life-cover-container--compact .life-cover-card{padding:var(--mc-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:var(--mc-badge-height, 42px);padding:0 14px;font-size:17px;line-height:calc(var(--mc-badge-height, 42px) - 4px)}.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:var(--mc-color, #2b3138);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:var(--mc-font-size, 16px);font-weight:800;line-height:1.3}.control-label--large{font-size:calc(var(--mc-font-size, 16px) + 8px);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:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:18px;font-weight:800;line-height:28px;text-align:center}.value-badge{min-width:106px;height:var(--mc-badge-height, 46px);padding:0 18px;border:var(--mc-border-width, 2px) var(--mc-border-style, solid) var(--mc-border-color, #d7d7d7);border-radius:10px;background:var(--mc-dropdown-option-bg-color, #ffffff);color:var(--mc-color, #4a4a4a);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 4px);font-weight:700;line-height:calc(var(--mc-badge-height, 46px) - 4px);text-align:center}.value-badge--compact{min-width:74px}.value-badge-input{outline:none;appearance:none;cursor:text}.value-badge-input:focus{border-color:var(--mc-focus-border-color, #ffb400);border-width:var(--mc-focus-border-width, 2px);background:var(--mc-focus-background, #ffffff);color:var(--mc-focus-color, var(--mc-color, #4a4a4a));box-shadow:0 0 0 3px #ffb40024}.value-badge--invalid{border-color:var(--mc-error-border-color, #e24c4c);border-width:var(--mc-error-border-width, 2px);box-shadow:0 0 0 3px #e24c4c1f}.life-slider{width:100%;margin:0;--mdc-slider-active-track-color: var(--mc-caret-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: var(--mc-caret-color, #ffb400);--mdc-slider-focus-handle-color: var(--mc-focus-border-color, #ffb400);--mdc-slider-hover-handle-color: var(--mc-hover-border-color, #ffb000);--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:var(--mc-caret-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 var(--mc-caret-color, #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:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) - 3px);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:var(--mc-color, #444444);font-weight:800}.hint-row span:last-child{text-align:right}.validation-message{color:var(--mc-error-border-color, #d94841);font-family:var(--mc-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 var(--mc-border-color, #d8dfe7)}.select-shell{position:relative;display:flex;align-items:center}.select-input{width:100%;height:var(--mc-select-height, 60px);padding:0 56px 0 22px;border:var(--mc-border-width, 2px) var(--mc-border-style, solid) var(--mc-border-color, #d7d7d7);border-radius:18px;background:var(--mc-dropdown-option-bg-color, #ffffff);color:var(--mc-dropdown-option-color, var(--mc-color, #4a4a4a));font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 2px);font-weight:var(--mc-dropdown-option-font-weight, 600);line-height:1.2;appearance:none;outline:none}.select-input:focus{border-color:var(--mc-focus-border-color, #ffb400);border-width:var(--mc-focus-border-width, 2px);background:var(--mc-focus-background, var(--mc-dropdown-option-bg-color, #ffffff));color:var(--mc-focus-color, var(--mc-dropdown-option-color, #4a4a4a));box-shadow:0 0 0 3px #ffb40024}.select-chevron{position:absolute;top:50%;right:18px;display:flex;align-items:center;justify-content:center;width:12px;height:8px;color:#222;transform:translateY(-50%);pointer-events:none}.select-chevron-icon{display:block;width:100%;height:100%}.button-row{padding:22px 28px 28px;border-top:var(--mc-border-width, 1px) solid var(--mc-border-color, #dbe4ef);background:var(--mc-dropdown-option-bg-color, #ffffff)}.primary-button{width:100%;height:58px;border:0;border-radius:18px;background:linear-gradient(90deg,var(--mc-caret-color, #ffb400) 0%,var(--mc-focus-border-color, #ffc11b) 100%);color:var(--mc-focus-color, #1f2125);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 4px);font-weight:800;line-height:1.2;box-shadow:0 10px 24px #ffb4003d}.primary-button:hover{background:linear-gradient(90deg,var(--mc-hover-border-color, var(--mc-caret-color, #ffb000)) 0%,var(--mc-focus-border-color, var(--mc-caret-color, #ffbe0e)) 100%)}@media (max-width: 576px){.life-cover-card{padding:22px 20px 18px}.control-label--large{font-size:18px}.value-badge{min-width:84px;height:var(--mc-badge-height, 42px);padding:0 14px;font-size:17px;line-height:calc(var(--mc-badge-height, 42px) - 4px)}.scale-label,.hint-row span{font-size:12px}.select-input{height:var(--mc-select-height, 54px);font-size:16px}.select-chevron{right:16px}.button-row{padding:18px 20px 22px}.primary-button{height:54px;font-size:18px}}\n"] }]
9514
+ 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 [ngStyle]=\"componentStyleVars\"\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\">\n <svg class=\"select-chevron-icon\" viewBox=\"225 13 10 6\" fill=\"none\" focusable=\"false\">\n <path\n d=\"M225.259 13.2665C224.91 13.6219 224.91 14.1959 225.259 14.5513L229.367 18.7335C229.716 19.0888 230.279 19.0888 230.628 18.7335L234.736 14.5513C235.085 14.1959 235.085 13.6219 234.736 13.2665C234.387 12.9112 233.823 12.9112 233.474 13.2665L229.993 16.8018L226.521 13.2665C226.172 12.9112 225.599 12.9203 225.259 13.2665Z\"\n fill=\"currentColor\" />\n </svg>\n </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:var(--mc-width, min(540px, 100%));min-width:var(--mc-min-width, auto);max-width:var(--mc-max-width, 100%);height:var(--mc-height, auto);min-height:var(--mc-min-height, auto);max-height:var(--mc-max-height, none);margin:var(--mc-margin, 0);border:var(--mc-border-width, 1px) var(--mc-border-style, solid) var(--mc-border-color, #dbe4ef);border-radius:var(--mc-border-radius, 28px);background:var(--mc-background, linear-gradient(180deg, #E5F0FA80 50%, #ffffff 100%));box-shadow:0 18px 40px #22365414;overflow:hidden;font-family:var(--mc-font-family, \"Mulish\"),sans-serif;color:var(--mc-color, #4a4a4a)}.life-cover-card{padding:var(--mc-padding, 28px 28px 20px)}.life-cover-container--compact{width:var(--mc-width, min(456px, 100%))}.life-cover-container--compact .life-cover-card{padding:var(--mc-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:var(--mc-badge-height, 42px);padding:0 14px;font-size:17px;line-height:calc(var(--mc-badge-height, 42px) - 4px)}.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:2px}.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:var(--mc-color, #2b3138);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:var(--mc-font-size, 16px);font-weight:800;line-height:1.3}.control-label--large{font-size:calc(var(--mc-font-size, 16px) + 8px);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:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:18px;font-weight:800;line-height:28px;text-align:center}.value-badge{min-width:106px;height:var(--mc-badge-height, 46px);padding:0 18px;border:var(--mc-border-width, 2px) var(--mc-border-style, solid) var(--mc-border-color, #d7d7d7);border-radius:10px;background:var(--mc-dropdown-option-bg-color, #ffffff);color:var(--mc-color, #4a4a4a);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 4px);font-weight:700;line-height:calc(var(--mc-badge-height, 46px) - 4px);text-align:center}.value-badge--compact{min-width:74px}.value-badge-input{outline:none;appearance:none;cursor:text}.value-badge-input:focus{border-color:var(--mc-focus-border-color, #ffb400);border-width:var(--mc-focus-border-width, 2px);background:var(--mc-focus-background, #ffffff);color:var(--mc-focus-color, var(--mc-color, #4a4a4a));box-shadow:0 0 0 3px #ffb40024}.value-badge--invalid{border-color:var(--mc-error-border-color, #e24c4c);border-width:var(--mc-error-border-width, 2px);box-shadow:0 0 0 3px #e24c4c1f}.life-slider{width:100%;margin:0;--mdc-slider-active-track-color: var(--mc-caret-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: var(--mc-caret-color, #ffb400);--mdc-slider-focus-handle-color: var(--mc-focus-border-color, #ffb400);--mdc-slider-hover-handle-color: var(--mc-hover-border-color, #ffb000);--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:var(--mc-caret-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 var(--mc-caret-color, #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:18px}.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:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) - 3px);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:var(--mc-color, #444444);font-weight:800}.hint-row span:last-child{text-align:right}.validation-message{color:var(--mc-error-border-color, #d94841);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:12px;font-weight:700;line-height:1.4}.row-divider{margin:12px 0}.row-divider--dashed{border-top:2px dashed var(--mc-border-color, #d8dfe7)}.select-shell{position:relative;display:flex;align-items:center}.select-input{width:100%;height:var(--mc-select-height, 60px);padding:0 56px 0 22px;border:var(--mc-border-width, 2px) var(--mc-border-style, solid) var(--mc-border-color, #d7d7d7);border-radius:18px;background:var(--mc-dropdown-option-bg-color, #ffffff);color:var(--mc-dropdown-option-color, var(--mc-color, #4a4a4a));font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 2px);font-weight:var(--mc-dropdown-option-font-weight, 600);line-height:1.2;appearance:none;outline:none}.select-input:focus{border-color:var(--mc-focus-border-color, #ffb400);border-width:var(--mc-focus-border-width, 2px);background:var(--mc-focus-background, var(--mc-dropdown-option-bg-color, #ffffff));color:var(--mc-focus-color, var(--mc-dropdown-option-color, #4a4a4a));box-shadow:0 0 0 3px #ffb40024}.select-chevron{position:absolute;top:50%;right:18px;display:flex;align-items:center;justify-content:center;width:12px;height:8px;color:#222;transform:translateY(-50%);pointer-events:none}.select-chevron-icon{display:block;width:100%;height:100%}.button-row{padding:22px 28px 28px;border-top:var(--mc-border-width, 1px) solid var(--mc-border-color, #dbe4ef);background:var(--mc-dropdown-option-bg-color, #ffffff)}.primary-button{width:100%;height:58px;border:0;border-radius:18px;background:linear-gradient(90deg,var(--mc-caret-color, #ffb400) 0%,var(--mc-focus-border-color, #ffc11b) 100%);color:var(--mc-focus-color, #1f2125);font-family:var(--mc-font-family, \"Mulish\"),sans-serif!important;font-size:calc(var(--mc-font-size, 16px) + 4px);font-weight:800;line-height:1.2;box-shadow:0 10px 24px #ffb4003d}.primary-button:hover{background:linear-gradient(90deg,var(--mc-hover-border-color, var(--mc-caret-color, #ffb000)) 0%,var(--mc-focus-border-color, var(--mc-caret-color, #ffbe0e)) 100%)}@media (max-width: 576px){.life-cover-card{padding:22px 20px 18px}.control-label--large{font-size:18px}.value-badge{min-width:84px;height:var(--mc-badge-height, 42px);padding:0 14px;font-size:17px;line-height:calc(var(--mc-badge-height, 42px) - 4px)}.scale-label,.hint-row span{font-size:12px}.select-input{height:var(--mc-select-height, 54px);font-size:16px}.select-chevron{right:16px}.button-row{padding:18px 20px 22px}.primary-button{height:54px;font-size:18px}}\n"] }]
9515
9515
  }], propDecorators: { coverDetails: [{
9516
9516
  type: Input
9517
9517
  }], termDetails: [{