master-control 0.5.41 → 0.5.43

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.
@@ -5,7 +5,7 @@ import { MatInputModule } from '@angular/material/input';
5
5
  import * as i2$1 from '@angular/material/form-field';
6
6
  import { MatFormFieldModule } from '@angular/material/form-field';
7
7
  import * as i1 from '@angular/common';
8
- import { CommonModule, DOCUMENT, NgIf, NgFor, NgStyle } from '@angular/common';
8
+ import { CommonModule, DOCUMENT, NgIf, NgFor, NgStyle, registerLocaleData } from '@angular/common';
9
9
  import * as i4 from '@angular/forms';
10
10
  import { NG_VALUE_ACCESSOR, ReactiveFormsModule, FormsModule, FormControl, FormGroup } from '@angular/forms';
11
11
  import * as i5$1 from '@angular/material/autocomplete';
@@ -47,6 +47,7 @@ import * as i2$4 from '@angular/material/stepper';
47
47
  import { MatStepperModule } from '@angular/material/stepper';
48
48
  import * as i3$1 from '@angular/material/slider';
49
49
  import { MatSliderModule } from '@angular/material/slider';
50
+ import localeEnIn from '@angular/common/locales/en-IN';
50
51
 
51
52
  class MasterControlService {
52
53
  configData = {
@@ -4310,6 +4311,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
4310
4311
  args: [{ selector: 'lib-label-value-card', standalone: true, imports: [CommonModule], template: "<div class=\"labelValueCard\" *ngIf=\"field() && field()?.isVisible\">\n <div class=\"labelHead\">\n <span class=\"master-labelValue\" [ngStyle]=\"{\n '--master-heading-font-color': field()?.controlStyle?.color,\n '--master-heading-font-size': field()?.controlStyle?.fontSize,\n '--master-heading-font-weight': field()?.controlStyle?.fontWeight\n }\">{{field()?.label}}</span>\n </div>\n <div class=\"labelValue\">\n <span>{{field()?.placeHolder}}</span>\n <span matSuffix class=\"mx-3\">\n <img *ngIf=\"field()?.imageUrl\" [src]='field().imageUrl' alt=\"\" />\n </span>\n </div>\n</div>", styles: ["*{font-family:mulish!important}.master-labelValue{font-weight:400;font-size:14px;color:#000}.master-labelValue{color:var(--master-heading-font-color, #000000)!important;font-size:var(--master-heading-font-size, 14px)!important;font-weight:var(--master-heading-font-weight, 400)!important}.labelValueCard{display:flex;flex-direction:column}.labelHead{font-size:14px;font-weight:400;color:#444;line-height:20px}.labelValue{font-size:16px;font-weight:700;color:#444;line-height:20px;position:relative;top:8px}\n"] }]
4311
4312
  }] });
4312
4313
 
4314
+ /**
4315
+ * Optional Google Maps Module Loader
4316
+ * This file handles the optional loading of GoogleMapsModule
4317
+ * If @angular/google-maps is not installed, it provides a fallback
4318
+ */
4319
+ /**
4320
+ * Returns GoogleMapsModule in an array for conditional imports
4321
+ * This can be used directly in component imports array
4322
+ */
4323
+ function getOptionalGoogleMapsModule() {
4324
+ return [GoogleMapsModule];
4325
+ }
4326
+ /**
4327
+ * Check if Google Maps is available
4328
+ * Since we're importing it directly above, it's always available if the package is installed
4329
+ */
4330
+ function isGoogleMapsSupported() {
4331
+ return true;
4332
+ }
4333
+ /**
4334
+ * Get GoogleMapsModule
4335
+ */
4336
+ function getGoogleMapsModule() {
4337
+ return GoogleMapsModule;
4338
+ }
4339
+
4340
+ // Get optional Google Maps module
4341
+ const googleMapsModules = getOptionalGoogleMapsModule();
4313
4342
  class MedialQuestionsComponent {
4314
4343
  ngZone;
4315
4344
  masterService;
@@ -4445,11 +4474,16 @@ class MedialQuestionsComponent {
4445
4474
  // Validation state tracking
4446
4475
  fieldErrors = {};
4447
4476
  fieldTouched = {};
4477
+ googleMapsAvailable = isGoogleMapsSupported();
4448
4478
  constructor(ngZone, masterService) {
4449
4479
  this.ngZone = ngZone;
4450
4480
  this.masterService = masterService;
4451
4481
  console.log('medialQuestionResponseeeeee', this.medialQuestionResponse());
4452
4482
  console.log('persontype', this.personType());
4483
+ if (!this.googleMapsAvailable) {
4484
+ console.warn('[MedialQuestionsComponent] Google Maps is not available. ' +
4485
+ 'Install @angular/google-maps to enable map features.');
4486
+ }
4453
4487
  }
4454
4488
  ngOnInit() {
4455
4489
  if (this.triggerValidation) {
@@ -4459,6 +4493,10 @@ class MedialQuestionsComponent {
4459
4493
  }
4460
4494
  }
4461
4495
  fetchCurrentLocation() {
4496
+ // Only fetch location if Google Maps is available
4497
+ if (!this.googleMapsAvailable) {
4498
+ return;
4499
+ }
4462
4500
  if (typeof navigator !== 'undefined' && 'geolocation' in navigator) {
4463
4501
  navigator.geolocation.getCurrentPosition((position) => {
4464
4502
  this.ngZone.run(() => {
@@ -4536,7 +4574,14 @@ class MedialQuestionsComponent {
4536
4574
  // });
4537
4575
  }
4538
4576
  initializeAutocomplete() {
4539
- this.autocomplete = new google.maps.places.Autocomplete(this.addressInput?.nativeElement, {
4577
+ if (!isGoogleMapsSupported()) {
4578
+ console.warn('[MedialQuestionsComponent] Google Maps not available. Autocomplete disabled.');
4579
+ return;
4580
+ }
4581
+ const googleMaps = window.google?.maps;
4582
+ if (!googleMaps || !this.addressInput?.nativeElement)
4583
+ return;
4584
+ this.autocomplete = new googleMaps.places.Autocomplete(this.addressInput.nativeElement, {
4540
4585
  types: ['address'],
4541
4586
  componentRestrictions: { country: 'IN' },
4542
4587
  fields: ['place_id', 'geometry', 'name', 'formatted_address'],
@@ -4548,6 +4593,9 @@ class MedialQuestionsComponent {
4548
4593
  });
4549
4594
  }
4550
4595
  onPlaceSelected() {
4596
+ if (!this.googleMapsAvailable) {
4597
+ return;
4598
+ }
4551
4599
  const place = this.autocomplete.getPlace();
4552
4600
  if (!place.geometry || !place.geometry.location) {
4553
4601
  console.log('No details available for input: ', place.name);
@@ -4576,7 +4624,14 @@ class MedialQuestionsComponent {
4576
4624
  };
4577
4625
  }
4578
4626
  searchAddress(address) {
4579
- const geocoder = new google.maps.Geocoder();
4627
+ if (!isGoogleMapsSupported()) {
4628
+ console.warn('[Master-Control] Google Maps not available');
4629
+ return;
4630
+ }
4631
+ const googleMaps = window.google?.maps;
4632
+ if (!googleMaps)
4633
+ return;
4634
+ const geocoder = new googleMaps.Geocoder();
4580
4635
  geocoder.geocode({ address: address }, (results, status) => {
4581
4636
  if (status === 'OK' && results && results[0]) {
4582
4637
  const location = results[0].geometry.location;
@@ -4630,14 +4685,21 @@ class MedialQuestionsComponent {
4630
4685
  }, 300);
4631
4686
  }
4632
4687
  searchAddresses(query) {
4688
+ if (!isGoogleMapsSupported()) {
4689
+ console.warn('[Master-Control] Google Maps not available');
4690
+ return;
4691
+ }
4692
+ const googleMaps = window.google?.maps;
4693
+ if (!googleMaps)
4694
+ return;
4633
4695
  // Replace this with your actual address search API call
4634
4696
  // For example, using Google Places API:
4635
- const service = new google.maps.places.AutocompleteService();
4697
+ const service = new googleMaps.places.AutocompleteService();
4636
4698
  service.getPlacePredictions({
4637
4699
  input: query,
4638
4700
  types: ['address'],
4639
4701
  }, (predictions, status) => {
4640
- if (status === google.maps.places.PlacesServiceStatus.OK &&
4702
+ if (status === googleMaps.places.PlacesServiceStatus.OK &&
4641
4703
  predictions) {
4642
4704
  this.addressSuggestions = predictions.map((prediction) => ({
4643
4705
  place_id: prediction.place_id,
@@ -4655,13 +4717,20 @@ class MedialQuestionsComponent {
4655
4717
  });
4656
4718
  }
4657
4719
  selectAddress(suggestion) {
4720
+ if (!isGoogleMapsSupported()) {
4721
+ console.warn('[Master-Control] Google Maps not available');
4722
+ return;
4723
+ }
4724
+ const googleMaps = window.google?.maps;
4725
+ if (!googleMaps)
4726
+ return;
4658
4727
  this.currentAddress = suggestion.description;
4659
- const service = new google.maps.places.PlacesService(document.createElement('div'));
4728
+ const service = new googleMaps.places.PlacesService(document.createElement('div'));
4660
4729
  service.getDetails({
4661
4730
  placeId: suggestion.place_id,
4662
4731
  fields: ['geometry', 'formatted_address'],
4663
4732
  }, (place, status) => {
4664
- if (status === google.maps.places.PlacesServiceStatus.OK && place) {
4733
+ if (status === googleMaps.places.PlacesServiceStatus.OK && place) {
4665
4734
  const lat = place.geometry?.location?.lat();
4666
4735
  const lng = place.geometry?.location?.lng();
4667
4736
  if (lat !== undefined && lng !== undefined) {
@@ -4683,7 +4752,14 @@ class MedialQuestionsComponent {
4683
4752
  }, 200);
4684
4753
  }
4685
4754
  reverseGeocode(lat, lng) {
4686
- const geocoder = new google.maps.Geocoder();
4755
+ if (!isGoogleMapsSupported()) {
4756
+ console.warn('[Master-Control] Google Maps not available');
4757
+ return;
4758
+ }
4759
+ const googleMaps = window.google?.maps;
4760
+ if (!googleMaps)
4761
+ return;
4762
+ const geocoder = new googleMaps.Geocoder();
4687
4763
  geocoder.geocode({ location: { lat, lng } }, (results, status) => {
4688
4764
  this.ngZone.run(() => {
4689
4765
  this.latitude = lat;
@@ -7122,7 +7198,7 @@ class MedialQuestionsComponent {
7122
7198
  this.questionsValueChange.emit(this.personUwAnswers);
7123
7199
  }
7124
7200
  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 });
7125
- 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(questions.questionId)\" />\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)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange(questions.questionId)\"\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(questions.questionId)\"\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(questions.questionId)\"\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(); handleQuestionChange(questions.questionId)\" />\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(questions.questionId)\"\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(questions.questionId)\"\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(questions.questionId)\" />\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(questions.questionId)\" />\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:100%;max-width:740px;min-width:0}.heightInputs{display:flex;align-items:center;gap:10px}.medicalQuestionsHeightInput .row{width:100%;margin-left:0;margin-right:0}.medicalQuestionsHeightInput lib-textbox,.medicalQuestionsHeightInput lib-select{display:block;width:100%;min-width:0}.medicalQuestionsHeightInput ::ng-deep .select-inline-control,.medicalQuestionsHeightInput ::ng-deep .mat-mdc-form-field{width:100%;min-width:0}.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"] }] });
7201
+ 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(questions.questionId)\" />\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)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange(questions.questionId)\"\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(questions.questionId)\"\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(questions.questionId)\"\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(); handleQuestionChange(questions.questionId)\" />\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(questions.questionId)\"\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(questions.questionId)\"\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(questions.questionId)\" />\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(questions.questionId)\" />\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:100%;max-width:740px;min-width:0}.heightInputs{display:flex;align-items:center;gap:10px}.medicalQuestionsHeightInput .row{width:100%;margin-left:0;margin-right:0}.medicalQuestionsHeightInput lib-textbox,.medicalQuestionsHeightInput lib-select{display:block;width:100%;min-width:0}.medicalQuestionsHeightInput ::ng-deep .select-inline-control,.medicalQuestionsHeightInput ::ng-deep .mat-mdc-form-field{width:100%;min-width:0}.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: "component", type: FilePreviewComponent, selector: "lib-file-preview", inputs: ["field", "file"], outputs: ["closed"] }, { kind: "ngmodule", type: i4$3.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"] }] });
7126
7202
  }
7127
7203
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MedialQuestionsComponent, decorators: [{
7128
7204
  type: Component,
@@ -7137,9 +7213,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
7137
7213
  DobComponent,
7138
7214
  UploadComponent,
7139
7215
  MultipleSelectComponent,
7140
- GoogleMapsModule,
7141
7216
  HrLineComponent,
7142
7217
  FilePreviewComponent,
7218
+ ...googleMapsModules,
7143
7219
  ], 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(questions.questionId)\" />\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)\"\n (ngModelChange)=\"validateField(questions.questionId, questions); removeSubQuestionValues(); handleQuestionChange(questions.questionId)\"\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(questions.questionId)\"\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(questions.questionId)\"\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(); handleQuestionChange(questions.questionId)\" />\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(questions.questionId)\"\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(questions.questionId)\"\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(questions.questionId)\" />\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(questions.questionId)\" />\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:100%;max-width:740px;min-width:0}.heightInputs{display:flex;align-items:center;gap:10px}.medicalQuestionsHeightInput .row{width:100%;margin-left:0;margin-right:0}.medicalQuestionsHeightInput lib-textbox,.medicalQuestionsHeightInput lib-select{display:block;width:100%;min-width:0}.medicalQuestionsHeightInput ::ng-deep .select-inline-control,.medicalQuestionsHeightInput ::ng-deep .mat-mdc-form-field{width:100%;min-width:0}.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"] }]
7144
7220
  }], ctorParameters: () => [{ type: i0.NgZone }, { type: MasterService }], propDecorators: { questionsValueChange: [{
7145
7221
  type: Output
@@ -10878,6 +10954,189 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
10878
10954
  type: Output
10879
10955
  }] } });
10880
10956
 
10957
+ registerLocaleData(localeEnIn);
10958
+ function readObject(value) {
10959
+ return value !== null && typeof value === 'object' && !Array.isArray(value)
10960
+ ? value
10961
+ : null;
10962
+ }
10963
+ function readArray(value) {
10964
+ return Array.isArray(value) ? value : [];
10965
+ }
10966
+ function readText(value) {
10967
+ return typeof value === 'string' ? value.trim() : '';
10968
+ }
10969
+ function readBoolean(value, fallback) {
10970
+ return typeof value === 'boolean' ? value : fallback;
10971
+ }
10972
+ function readRecord(record) {
10973
+ return {
10974
+ id: readText(record['id']),
10975
+ customerName: readText(record['customerName']),
10976
+ referenceNumber: readText(record['referenceNumber']),
10977
+ product: [readText(record['productName']), readText(record['coverageName'])].filter(Boolean).join(' - ')
10978
+ };
10979
+ }
10980
+ function readStatus(value) {
10981
+ const status = readObject(value);
10982
+ const tone = status?.['tone'];
10983
+ return {
10984
+ label: readText(status?.['label']),
10985
+ description: readText(status?.['description']),
10986
+ tone: tone === 'pending' || tone === 'success' || tone === 'error' ? tone : 'neutral'
10987
+ };
10988
+ }
10989
+ function readListItem(value) {
10990
+ const item = readObject(value);
10991
+ if (!item) {
10992
+ return [];
10993
+ }
10994
+ const record = readRecord(item);
10995
+ const premium = readObject(item['premium']);
10996
+ const amount = premium?.['amount'];
10997
+ const currency = readText(premium?.['currency']).toUpperCase();
10998
+ const displayPremium = typeof amount === 'number' && Number.isFinite(amount) && /^[A-Z]{3}$/.test(currency)
10999
+ ? { amount, currency }
11000
+ : null;
11001
+ const statuses = readArray(item['statuses']).map(readStatus).filter(status => status.label);
11002
+ if (!record.id && !record.customerName && !record.referenceNumber && !record.product && !displayPremium && !statuses.length) {
11003
+ return [];
11004
+ }
11005
+ const count = item['visibleStatusCount'];
11006
+ return [{
11007
+ ...record,
11008
+ selectionLabel: [record.customerName, record.referenceNumber].filter(Boolean).join(', '),
11009
+ premium: displayPremium,
11010
+ statuses,
11011
+ visibleStatusCount: typeof count === 'number' && Number.isSafeInteger(count) && count >= 0 ? count : 1
11012
+ }];
11013
+ }
11014
+ function readCondition(value) {
11015
+ const condition = readObject(value);
11016
+ const field = condition?.['field'];
11017
+ const operator = condition?.['operator'];
11018
+ const operand = condition?.['value'];
11019
+ if ((field === 'premium.amount' || field === 'pendingDays') && operator === 'gt' &&
11020
+ typeof operand === 'number' && Number.isFinite(operand)) {
11021
+ return { field, operator, value: operand };
11022
+ }
11023
+ if (field === 'createdOn' && operator === 'eq') {
11024
+ const date = readText(operand);
11025
+ if (/^\d{4}-\d{2}-\d{2}$/.test(date)) {
11026
+ const parsed = new Date(`${date}T00:00:00Z`);
11027
+ if (Number.isFinite(parsed.getTime()) && parsed.toISOString().slice(0, 10) === date) {
11028
+ return { field, operator, value: date };
11029
+ }
11030
+ }
11031
+ }
11032
+ return null;
11033
+ }
11034
+ function readButtonEvent(button, id, detailRecordId) {
11035
+ const params = readObject(button['params']);
11036
+ switch (button['actionType']) {
11037
+ case 'filter': {
11038
+ const condition = readCondition(params?.['condition']);
11039
+ return condition
11040
+ ? { type: 'filter', filterId: id, active: !readBoolean(button['active'], false), condition }
11041
+ : null;
11042
+ }
11043
+ case 'load-more': {
11044
+ const count = params?.['count'];
11045
+ return typeof count === 'number' && Number.isSafeInteger(count) && count > 0
11046
+ ? { type: 'load-more', count }
11047
+ : null;
11048
+ }
11049
+ case 'action': {
11050
+ const actionId = readText(params?.['actionId']);
11051
+ const target = params?.['recordId'];
11052
+ if (target != null && typeof target !== 'string') {
11053
+ return null;
11054
+ }
11055
+ const recordId = readText(target) || detailRecordId;
11056
+ return actionId && recordId ? { type: 'action', actionId, recordId } : null;
11057
+ }
11058
+ default:
11059
+ return null;
11060
+ }
11061
+ }
11062
+ function readButtons(value, detailRecordId, hasMore) {
11063
+ return readArray(value).flatMap((entry, index) => {
11064
+ const button = readObject(entry);
11065
+ if (!button || !readBoolean(button['isVisible'], true) ||
11066
+ (button['actionType'] === 'load-more' && !hasMore)) {
11067
+ return [];
11068
+ }
11069
+ const id = readText(button['id']);
11070
+ const label = readText(button['label']);
11071
+ const event = readButtonEvent(button, id, detailRecordId);
11072
+ if (!id || !label || !event) {
11073
+ console.warn(`[QuotePolicyCard] Skipped filters[${index}]: missing or invalid ID, label, action type, or params.`);
11074
+ return [];
11075
+ }
11076
+ return [{
11077
+ id,
11078
+ label: event.type === 'filter' ? label.replace('{value}', String(event.condition.value))
11079
+ : event.type === 'load-more' ? label.replace('{count}', String(event.count)) : label,
11080
+ pressed: event.type === 'filter' ? readBoolean(button['active'], false) : null,
11081
+ isAction: event.type === 'action',
11082
+ isSuccess: readText(button['tone']) === 'success',
11083
+ disabled: readBoolean(button['disabled'], false),
11084
+ event: readBoolean(button['disabled'], false) ? null : event
11085
+ }];
11086
+ });
11087
+ }
11088
+ class QuotePolicyCardComponent {
11089
+ field = input();
11090
+ cardEvent = new EventEmitter();
11091
+ card = computed(() => {
11092
+ const field = readObject(this.field());
11093
+ const data = readObject(field?.['configData']);
11094
+ if (!data || !readBoolean(field?.['isVisible'], true)) {
11095
+ return null;
11096
+ }
11097
+ const ui = readText(data['ui']);
11098
+ if (ui === 'quote-detail') {
11099
+ const record = readObject(data['record']);
11100
+ if (!record) {
11101
+ console.warn('[QuotePolicyCard] Detail layout requires a record object.');
11102
+ return null;
11103
+ }
11104
+ const detail = readRecord(record);
11105
+ const statusFields = readArray(record['statusFields']).map(value => {
11106
+ const statusField = readObject(value);
11107
+ return { label: readText(statusField?.['label']), status: readStatus(statusField?.['status']) };
11108
+ }).filter(({ label, status }) => label || status.label || status.description);
11109
+ const buttons = readButtons(data['filters'], detail.id, true);
11110
+ return { ui, detail, statusFields, buttons };
11111
+ }
11112
+ if (ui === 'quote-list') {
11113
+ return {
11114
+ ui,
11115
+ items: readArray(data['items']).flatMap(readListItem),
11116
+ buttons: readButtons(data['filters'], '', readBoolean(data['hasMore'], false)),
11117
+ emptyMessage: readText(data['emptyMessage']) || 'No quotes or policies found.'
11118
+ };
11119
+ }
11120
+ console.warn('[QuotePolicyCard] Expected configData.ui to be quote-detail or quote-list.');
11121
+ return null;
11122
+ });
11123
+ onButtonClick(event) {
11124
+ if (event) {
11125
+ this.cardEvent.emit(event.type === 'filter'
11126
+ ? { ...event, condition: { ...event.condition } }
11127
+ : { ...event });
11128
+ }
11129
+ }
11130
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: QuotePolicyCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11131
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: QuotePolicyCardComponent, isStandalone: true, selector: "lib-quote-policy-card", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cardEvent: "cardEvent" }, ngImport: i0, template: "@if (card(); as data) {\n @if (data.ui === 'quote-detail') {\n <article class=\"quote-card detail-card\" aria-label=\"Quote or policy details\">\n @if (data.detail.customerName || data.detail.referenceNumber) {\n <header class=\"record-heading\">\n @if (data.detail.customerName) {\n <strong>{{ data.detail.customerName }}{{ data.detail.referenceNumber ? ':' : '' }}</strong>\n }\n @if (data.detail.referenceNumber) {\n <span class=\"reference-number\">{{ data.detail.referenceNumber }}</span>\n }\n </header>\n }\n @if (data.detail.product) {\n <p class=\"product\">{{ data.detail.product }}</p>\n }\n @for (item of data.statusFields; track $index) {\n <div class=\"status-field\">\n @if (item.label || item.status.label) {\n <div class=\"status-line\">\n @if (item.label) {\n <span>{{ item.label }}</span>\n }\n @if (item.status.label) {\n <span class=\"status-badge\" [attr.data-tone]=\"item.status.tone\">\n @if (item.status.tone === 'pending') {\n <span class=\"pending-icon\" aria-hidden=\"true\"></span>\n }\n {{ item.status.label }}\n </span>\n }\n </div>\n }\n @if (item.status.description) {\n <p class=\"status-description\">{{ item.status.description }}</p>\n }\n </div>\n }\n @if (!data.detail.customerName && !data.detail.referenceNumber && !data.detail.product && !data.statusFields.length) {\n <p class=\"empty-message\" role=\"status\">No quote or policy details available.</p>\n }\n </article>\n } @else {\n <div class=\"quote-card list-card\" aria-label=\"Quotes and policies\">\n @for (item of data.items; track item.id || item) {\n <div class=\"list-row\">\n <button type=\"button\" class=\"record-button\"\n [disabled]=\"!item.id\"\n [attr.aria-label]=\"item.id ? 'View ' + (item.selectionLabel || 'quote or policy') : null\"\n (click)=\"item.id && cardEvent.emit({ type: 'record-select', recordId: item.id })\">\n <strong>{{ item.customerName || item.referenceNumber }}</strong>\n <span class=\"premium\">\n @if (item.premium; as premium) {\n {{ premium.amount | currency:premium.currency:'symbol':'1.0-2':'en-IN' }}\n }\n </span>\n @if (item.id) {\n <span class=\"chevron\" aria-hidden=\"true\">&#8250;</span>\n }\n </button>\n @if (item.product || item.statuses.length) {\n <div class=\"record-summary\">\n @if (item.product) {\n <span class=\"product\">{{ item.product }}</span>\n }\n @for (status of item.statuses | slice:0:item.visibleStatusCount; track $index) {\n <span class=\"status-badge\" [attr.data-tone]=\"status.tone\"\n [title]=\"status.description || status.label\">{{ status.label }}</span>\n }\n @if (item.id && item.statuses.length > item.visibleStatusCount) {\n <button type=\"button\" class=\"status-badge more-statuses\"\n [attr.aria-label]=\"'Show all statuses for ' + (item.customerName || item.referenceNumber || 'this record')\"\n (click)=\"cardEvent.emit({ type: 'show-statuses', recordId: item.id })\">\n +{{ item.statuses.length - item.visibleStatusCount }}\n </button>\n }\n </div>\n }\n </div>\n } @empty {\n <p class=\"empty-message\" role=\"status\">{{ data.emptyMessage }}</p>\n }\n </div>\n }\n\n @if (data.buttons.length) {\n <div class=\"chips\" role=\"group\"\n [attr.aria-label]=\"data.ui === 'quote-detail' ? 'Quote or policy actions' : 'Quote and policy filters'\">\n @for (button of data.buttons; track button.id) {\n <button type=\"button\" class=\"chip\"\n [class.action-chip]=\"data.ui === 'quote-detail' || button.isAction\"\n [class.success-action]=\"button.isSuccess\"\n [disabled]=\"button.disabled || button.event === null\"\n [attr.aria-pressed]=\"button.pressed\"\n (click)=\"onButtonClick(button.event)\">\n @if (button.isSuccess) {\n <span aria-hidden=\"true\">&#10003;</span>\n }\n {{ button.label }}\n </button>\n }\n </div>\n }\n}\n", styles: [":host{display:block;width:100%;max-width:360px;color:#484848;font-family:mulish,sans-serif;font-size:13px;line-height:1.45}*,*:before,*:after{box-sizing:border-box}button{font:inherit}.quote-card{border:1px solid #dadada;border-radius:14px;background:#fff}.detail-card{padding:12px}.record-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px}strong{font-weight:800}.reference-number{color:#737373;overflow-wrap:anywhere}.product{margin:6px 0;font-size:11px}.status-field{padding-top:10px;margin-top:8px;border-top:1px dashed #dadada}.status-line{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.status-badge{display:inline-flex;align-items:center;gap:3px;padding:0 6px;border:1px solid #ffdc88;border-radius:12px;background:#fff2cc;color:#514733;font-size:10px;line-height:1.5}.status-badge[data-tone=success]{border-color:#9ad9c4;background:#e6f7ef;color:#007f61}.status-badge[data-tone=neutral]{border-color:#dadada;background:#f4f4f4;color:#555}.status-badge[data-tone=error]{border-color:#efb4ad;background:#fff0ee;color:#a52e21}.pending-icon{width:9px;height:9px;border-radius:50%;background:#f4a300;position:relative}.pending-icon:after{content:\"\";position:absolute;width:3px;height:4px;top:1px;left:4px;border-left:1px solid white;border-bottom:1px solid white}.status-description{margin:4px 0 0;font-size:11px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.chip{border:1px solid #dadada;border-radius:20px;padding:2px 10px;background:transparent;color:inherit;cursor:pointer}.action-chip{border-color:#777;font-weight:600}.success-action{border-color:#00a783;color:#009879}.chip[aria-pressed=true]{border-color:#e6aa00;background:#fff2cc}button:focus-visible{outline:2px solid #806000;outline-offset:3px}button:disabled{opacity:.55;cursor:not-allowed}.list-card{padding:0 12px}.list-row{padding:11px 0 9px}.list-row+.list-row{border-top:1px dashed #dadada}.record-button{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:12px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.record-button strong{overflow-wrap:anywhere}.premium{white-space:nowrap;font-weight:600}.chevron{color:#222;font-size:22px;line-height:16px}.record-summary{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:3px}.record-summary .product{color:#777;font-size:10px;margin:0 2px 0 0}.more-statuses{cursor:pointer}.empty-message{padding:16px 0;margin:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.SlicePipe, name: "slice" }, { kind: "pipe", type: i1.CurrencyPipe, name: "currency" }] });
11132
+ }
11133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: QuotePolicyCardComponent, decorators: [{
11134
+ type: Component,
11135
+ args: [{ selector: 'lib-quote-policy-card', standalone: true, imports: [CommonModule], template: "@if (card(); as data) {\n @if (data.ui === 'quote-detail') {\n <article class=\"quote-card detail-card\" aria-label=\"Quote or policy details\">\n @if (data.detail.customerName || data.detail.referenceNumber) {\n <header class=\"record-heading\">\n @if (data.detail.customerName) {\n <strong>{{ data.detail.customerName }}{{ data.detail.referenceNumber ? ':' : '' }}</strong>\n }\n @if (data.detail.referenceNumber) {\n <span class=\"reference-number\">{{ data.detail.referenceNumber }}</span>\n }\n </header>\n }\n @if (data.detail.product) {\n <p class=\"product\">{{ data.detail.product }}</p>\n }\n @for (item of data.statusFields; track $index) {\n <div class=\"status-field\">\n @if (item.label || item.status.label) {\n <div class=\"status-line\">\n @if (item.label) {\n <span>{{ item.label }}</span>\n }\n @if (item.status.label) {\n <span class=\"status-badge\" [attr.data-tone]=\"item.status.tone\">\n @if (item.status.tone === 'pending') {\n <span class=\"pending-icon\" aria-hidden=\"true\"></span>\n }\n {{ item.status.label }}\n </span>\n }\n </div>\n }\n @if (item.status.description) {\n <p class=\"status-description\">{{ item.status.description }}</p>\n }\n </div>\n }\n @if (!data.detail.customerName && !data.detail.referenceNumber && !data.detail.product && !data.statusFields.length) {\n <p class=\"empty-message\" role=\"status\">No quote or policy details available.</p>\n }\n </article>\n } @else {\n <div class=\"quote-card list-card\" aria-label=\"Quotes and policies\">\n @for (item of data.items; track item.id || item) {\n <div class=\"list-row\">\n <button type=\"button\" class=\"record-button\"\n [disabled]=\"!item.id\"\n [attr.aria-label]=\"item.id ? 'View ' + (item.selectionLabel || 'quote or policy') : null\"\n (click)=\"item.id && cardEvent.emit({ type: 'record-select', recordId: item.id })\">\n <strong>{{ item.customerName || item.referenceNumber }}</strong>\n <span class=\"premium\">\n @if (item.premium; as premium) {\n {{ premium.amount | currency:premium.currency:'symbol':'1.0-2':'en-IN' }}\n }\n </span>\n @if (item.id) {\n <span class=\"chevron\" aria-hidden=\"true\">&#8250;</span>\n }\n </button>\n @if (item.product || item.statuses.length) {\n <div class=\"record-summary\">\n @if (item.product) {\n <span class=\"product\">{{ item.product }}</span>\n }\n @for (status of item.statuses | slice:0:item.visibleStatusCount; track $index) {\n <span class=\"status-badge\" [attr.data-tone]=\"status.tone\"\n [title]=\"status.description || status.label\">{{ status.label }}</span>\n }\n @if (item.id && item.statuses.length > item.visibleStatusCount) {\n <button type=\"button\" class=\"status-badge more-statuses\"\n [attr.aria-label]=\"'Show all statuses for ' + (item.customerName || item.referenceNumber || 'this record')\"\n (click)=\"cardEvent.emit({ type: 'show-statuses', recordId: item.id })\">\n +{{ item.statuses.length - item.visibleStatusCount }}\n </button>\n }\n </div>\n }\n </div>\n } @empty {\n <p class=\"empty-message\" role=\"status\">{{ data.emptyMessage }}</p>\n }\n </div>\n }\n\n @if (data.buttons.length) {\n <div class=\"chips\" role=\"group\"\n [attr.aria-label]=\"data.ui === 'quote-detail' ? 'Quote or policy actions' : 'Quote and policy filters'\">\n @for (button of data.buttons; track button.id) {\n <button type=\"button\" class=\"chip\"\n [class.action-chip]=\"data.ui === 'quote-detail' || button.isAction\"\n [class.success-action]=\"button.isSuccess\"\n [disabled]=\"button.disabled || button.event === null\"\n [attr.aria-pressed]=\"button.pressed\"\n (click)=\"onButtonClick(button.event)\">\n @if (button.isSuccess) {\n <span aria-hidden=\"true\">&#10003;</span>\n }\n {{ button.label }}\n </button>\n }\n </div>\n }\n}\n", styles: [":host{display:block;width:100%;max-width:360px;color:#484848;font-family:mulish,sans-serif;font-size:13px;line-height:1.45}*,*:before,*:after{box-sizing:border-box}button{font:inherit}.quote-card{border:1px solid #dadada;border-radius:14px;background:#fff}.detail-card{padding:12px}.record-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px}strong{font-weight:800}.reference-number{color:#737373;overflow-wrap:anywhere}.product{margin:6px 0;font-size:11px}.status-field{padding-top:10px;margin-top:8px;border-top:1px dashed #dadada}.status-line{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.status-badge{display:inline-flex;align-items:center;gap:3px;padding:0 6px;border:1px solid #ffdc88;border-radius:12px;background:#fff2cc;color:#514733;font-size:10px;line-height:1.5}.status-badge[data-tone=success]{border-color:#9ad9c4;background:#e6f7ef;color:#007f61}.status-badge[data-tone=neutral]{border-color:#dadada;background:#f4f4f4;color:#555}.status-badge[data-tone=error]{border-color:#efb4ad;background:#fff0ee;color:#a52e21}.pending-icon{width:9px;height:9px;border-radius:50%;background:#f4a300;position:relative}.pending-icon:after{content:\"\";position:absolute;width:3px;height:4px;top:1px;left:4px;border-left:1px solid white;border-bottom:1px solid white}.status-description{margin:4px 0 0;font-size:11px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.chip{border:1px solid #dadada;border-radius:20px;padding:2px 10px;background:transparent;color:inherit;cursor:pointer}.action-chip{border-color:#777;font-weight:600}.success-action{border-color:#00a783;color:#009879}.chip[aria-pressed=true]{border-color:#e6aa00;background:#fff2cc}button:focus-visible{outline:2px solid #806000;outline-offset:3px}button:disabled{opacity:.55;cursor:not-allowed}.list-card{padding:0 12px}.list-row{padding:11px 0 9px}.list-row+.list-row{border-top:1px dashed #dadada}.record-button{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:12px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.record-button strong{overflow-wrap:anywhere}.premium{white-space:nowrap;font-weight:600}.chevron{color:#222;font-size:22px;line-height:16px}.record-summary{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:3px}.record-summary .product{color:#777;font-size:10px;margin:0 2px 0 0}.more-statuses{cursor:pointer}.empty-message{padding:16px 0;margin:0}\n"] }]
11136
+ }], propDecorators: { cardEvent: [{
11137
+ type: Output
11138
+ }] } });
11139
+
10881
11140
  class MasterControlComponent {
10882
11141
  field = input.required();
10883
11142
  discounts = input([]);
@@ -10889,6 +11148,7 @@ class MasterControlComponent {
10889
11148
  benefitAmountChange = new EventEmitter();
10890
11149
  benefitAmountBlur = new EventEmitter();
10891
11150
  discountPeriodChange = new EventEmitter();
11151
+ quotePolicyCardEvent = new EventEmitter();
10892
11152
  constructor() {
10893
11153
  effect(() => {
10894
11154
  initializeFieldNameAttribute(this.field());
@@ -10901,7 +11161,7 @@ class MasterControlComponent {
10901
11161
  this.lifeCoverAddonSelectionChange.emit(event);
10902
11162
  }
10903
11163
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10904
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: MasterControlComponent, isStandalone: true, selector: "lib-master-control", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, discounts: { classPropertyName: "discounts", publicName: "discounts", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { lifeCoverSliderValueChange: "lifeCoverSliderValueChange", lifeCoverAddonSelectionChange: "lifeCoverAddonSelectionChange", benefitSelectionChange: "benefitSelectionChange", additionalBenefitChange: "additionalBenefitChange", benefitAmountChange: "benefitAmountChange", benefitAmountBlur: "benefitAmountBlur", discountPeriodChange: "discountPeriodChange" }, ngImport: i0, template: "@switch (field()?.controlType) {\n @case ('top-header') {\n <lib-top-header [field]=\"field()\" />\n }\n @case ('footer') {\n <lib-footer [field]=\"field()\" />\n }\n @case('footer-buttons')\n {\n <lib-footer-with-buttons [field]=\"field()\"></lib-footer-with-buttons>\n }\n @case('text') {\n <lib-textbox [field]=\"field()\"></lib-textbox>\n }\n @case('select') {\n <lib-select [field]=\"field()\"/>\n }\n\n @case('radio') {\n <lib-radio [field]=\"field()\" />\n }\n\n @case('toggle') {\n <lib-toggle [field]=\"field()\" />\n }\n\n @case('file') {\n <lib-upload [field]=\"field()\" />\n }\n\n @case('date') {\n <lib-dob [field]=\"field()\" />\n }\n\n @case('mobileNumber') {\n <lib-mob-number [field]=\"field()\" />\n }\n\n @case('info') {\n <lib-info [field]=\"field()\" />\n }\n\n @case('checkbox') {\n <lib-checkbox [field]=\"field()\" />\n }\n\n @case('textarea') {\n <lib-textarea [field]=\"field()\" />\n }\n\n @case ('button') {\n <lib-button [field]=\"field()\" />\n }\n\n @case ('tab') {\n <lib-tab [field]=\"field()\" />\n }\n\n @case ('autocomplete') {\n <lib-autocomplete [field]=\"field()\" />\n }\n\n @case ('multipleSelect') {\n <lib-multiple-select [field]=\"field()\" />\n }\n\n @case ('textboxWithSelect') {\n <lib-select-textbox [field]=\"field()\" />\n }\n\n @case ('otpTextbox') {\n <lib-otp-textbox [field]=\"field()\" />\n }\n\n @case ('amountTextbox') {\n <lib-amount-textbox [field]=\"field()\" />\n }\n\n @case ('suffixTextbox') {\n <lib-suffix-textbox [field]=\"field()\" />\n }\n\n @case ('otpMobNumber') {\n <lib-otp-mob-number [field]=\"field()\" />\n }\n\n @case ('tagMobNumber') {\n <lib-tag-mob-number [field]=\"field()\" />\n }\n\n @case ('dateWithAge') {\n <lib-age-date [field]=\"field()\" />\n }\n\n @case ('additionButton') {\n <lib-addition-button [field]=\"field()\" />\n }\n\n @case ('infoTextbox') {\n <lib-info-textbox [field]=\"field()\" />\n }\n\n @case ('textboxWithImage') {\n <lib-textbox-with-image [field]=\"field()\" />\n }\n\n @case ('emailWithDomain') {\n <lib-email-with-domain [field]=\"field()\" />\n }\n\n @case ('imageUpload') {\n <lib-image-upload [field]=\"field()\" />\n }\n\n @case ('downloadDocument') {\n <lib-download-document [field]=\"field()\" />\n }\n\n @case ('addDocument') {\n <lib-add-document [field]=\"field()\" />\n }\n\n @case ('hyperlink') {\n <lib-hyperlink [field]=\"field()\" />\n }\n\n @case ('textboxWithUnderscore') {\n <lib-textbox-with-underscore [field]=\"field()\" />\n }\n\n @case ('underscoreMobNumber') {\n <lib-underscore-mob-number [field]=\"field()\" />\n }\n\n @case ('downloadIconButton') {\n <lib-icon-button [field]=\"field()\" />\n }\n\n @case ('image') {\n <lib-image [field]=\"field()\" />\n }\n @case ('stepper') {\n <lib-stepper [field]=\"field()\" />\n }\n @case ('journeyStepper') {\n <lib-journey-stepper [field]=\"field()\" />\n }\n @case ('card') {\n <lib-card [field]=\"field()\" />\n }\n @case ('hrLine') {\n <lib-hr-line [field]=\"field()\" />\n }\n @case ('searchMultiSelect') {\n <lib-search-multi-select [field]=\"field()\" />\n }\n @case ('subscriptTextbox') {\n <lib-subscript-textbox [field]=\"field()\" />\n }\n @case ('label') {\n <lib-label [field]=\"field()\" />\n }\n @case ('subHeading') {\n <lib-sub-header [field]=\"field()\" />\n }\n @case ('heading') {\n <lib-header [field]=\"field()\" />\n }\n @case ('table') {\n <lib-table [field]=\"field()\" />\n }\n @case ('textboxWithText') {\n <lib-textbox-with-text [field]=\"field()\" />\n }\n @case ('loader') {\n <lib-loader [field]=\"field()\" />\n }\n @case ('discount') {\n <lib-discount [field]=\"field()\" />\n }\n @case ('discountCard') {\n <lib-discount-card [field]=\"field()\" />\n }\n @case ('discountsApplied') {\n <lib-discounts-applied [field]=\"field()\" (discountPeriodChange)=\"discountPeriodChange.emit($event)\" />\n }\n @case ('additionalBenefits') {\n <lib-additional-benefits [field]=\"field()\" (benefitChange)=\"additionalBenefitChange.emit($event)\" />\n }\n @case ('optionalBenefitCard') {\n <lib-benefit-card [field]=\"field()\" />\n }\n @case ('benefitDetailCard') {\n <lib-benefit-detail-card\n [field]=\"field()\"\n (selectionChange)=\"benefitSelectionChange.emit($event)\"\n (amountChange)=\"benefitAmountChange.emit($event)\"\n (amountBlur)=\"benefitAmountBlur.emit($event)\"\n />\n }\n @case ('errorSnackbar') {\n <lib-error-snackbar [field]=\"field()\" />\n }\n @case ('warningSnackbar') {\n <lib-warning-snackbar [field]=\"field()\" />\n }\n @case ('successSnackbar') {\n <lib-success-snackbar [field]=\"field()\" />\n }\n @case ('neutralSnackbar') {\n <lib-neutral-snackbar [field]=\"field()\" />\n }\n @case ('boldLabel') {\n <lib-grey-label [field]=\"field()\" />\n }\n @case ('iframe') {\n <lib-iframe [field]=\"field()\" />\n }\n @case ('toggleButton') {\n <lib-toggle-button [field]=\"field()\" />\n }\n @case ('payGetCard') {\n <lib-pay-get-card [field]=\"field()\" />\n }\n @case ('inBuiltBenefit') {\n <lib-in-built-benefit [field]=\"field()\" />\n }\n @case ('otherBenefit') {\n <lib-other-benefits [field]=\"field()\" />\n }\n @case ('planBenefitsCard') {\n <lib-plan-benefits-card [field]=\"field()\" [discounts]=\"discounts()\" />\n }\n @case ('annuityRateLogo') {\n <lib-annuity-rate-logo [field]=\"field()\" />\n }\n @case ('discountAnnuity') {\n <lib-discount-v2 [field]=\"field()\" />\n }\n @case ('labelValue'){\n <lib-label-value-card [field]=\"field()\" />\n }\n @case ('medicalQuestions'){\n <lib-medial-questions [field]=\"field()\" />\n }\n @case ('nudge'){\n <lib-page-nudge [field]=\"field()\"/>\n }\n @case ('progressBar'){\n <lib-progress-bar [field]=\"field()\"/>\n }\n @case ('accordian'){\n <lib-accordian [field]=\"field()\"/>\n }\n @case ('miscInfo'){\n <lib-miscellaneous-info-bar [field]=\"field()\"/>\n }\n @case ('plainText'){\n <lib-plain-text [field]=\"field()\"/>\n }\n @case ('menu'){\n <lib-menu [field]=\"field()\" />\n }\n @case ('stepperWithArrow') {\n <lib-stepper-with-arrow [field]=\"field()\" />\n }\n @case ('labelWithImage') {\n <lib-label-with-image [field]=\"field()\" />\n }\n @case ('motorGlowPlanDetails') {\n <lib-motor-glow-plan-details [field]=\"field()\" />\n }\n @case ('premiumToAnnuityCalculator') {\n <lib-annuity-premium-calculator [field]=\"field()\" />\n } @case ('footerProgressBar') {\n <lib-footer-design [field]=\"field()\" />\n }\n @case ('annuityGrowthRateOption') {\n <lib-annuity-calculator-radio [field]=\"field()\" />\n }\n @case ('textboxWithRadio') {\n <lib-textbox-with-radio [field]=\"field()\" />\n }\n @case ('lifeCoverDetails') {\n <lib-life-cover-details\n [field]=\"field()\"\n [coverDetails]=\"field()?.coverDetails\"\n [termDetails]=\"field()?.termDetails\"\n [premiumDetails]=\"field()?.premiumDetails\"\n (sliderValueChange)=\"onLifeCoverSliderValueChange($event)\" />\n }\n @case ('lifeCoverDetailsView') {\n <lib-life-cover-details-view\n [field]=\"field()\"\n [summaryItems]=\"field()?.summaryItems\" />\n }\n @case ('lifeCoverDetailsPostPremiumCalculation') {\n <lib-life-cover-details-post-premium-calculation\n [field]=\"field()\"\n [premiumSummary]=\"field()?.premiumSummary\" />\n }\n @case ('lifeCoverAddonDetails') {\n <lib-life-cover-addon-details\n [field]=\"field()\"\n [addOnConfigData]=\"field()?.addOnConfigData\"\n (addonSelectionChange)=\"onLifeCoverAddonSelectionChange($event)\" />\n }\n @case ('vehicleCoveragePlans') {\n <lib-vehicle-coverage-plans\n [field]=\"field()\"\n [coveragePlansData]=\"field()?.coveragePlansData\" />\n }\n @case ('premiumBreakdown') {\n <lib-premium-breakdown\n [field]=\"field()\"\n [premiumBreakdownData]=\"field()?.premiumBreakdownData\" />\n }\n @case ('premiumBreakup') {\n <lib-premium-breakup [field]=\"field()\" />\n }\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: TextboxComponent, selector: "lib-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: SelectComponent, selector: "lib-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange", "infoClick"] }, { kind: "component", type: RadioComponent, selector: "lib-radio", inputs: ["reactiveFormControlobject", "field"], outputs: ["change"] }, { kind: "component", type: ToggleComponent, selector: "lib-toggle", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: UploadComponent, selector: "lib-upload", inputs: ["documentUploaderField", "openQuoteImageObj", "field", "reactiveFormControlobject"], outputs: ["filesChanged", "fileRemoved", "filePreview"] }, { kind: "component", type: DobComponent, selector: "lib-dob", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: MobNumberComponent, selector: "lib-mob-number", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: InfoComponent, selector: "lib-info", inputs: ["field"] }, { kind: "component", type: CheckboxComponent, selector: "lib-checkbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: TextareaComponent, selector: "lib-textarea", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: ButtonComponent, selector: "lib-button", inputs: ["field"] }, { kind: "component", type: TabComponent, selector: "lib-tab", inputs: ["field"], outputs: ["selectedIndexChange"] }, { kind: "component", type: AutocompleteComponent, selector: "lib-autocomplete", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "selectionChanged", "valueChanged", "optionSelected"] }, { kind: "component", type: MultipleSelectComponent, selector: "lib-multiple-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "component", type: SelectTextboxComponent, selector: "lib-select-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "component", type: OtpTextboxComponent, selector: "lib-otp-textbox", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: AmountTextboxComponent, selector: "lib-amount-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: SuffixTextboxComponent, selector: "lib-suffix-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: OtpMobNumberComponent, selector: "lib-otp-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: TagMobNumberComponent, selector: "lib-tag-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: AgeDateComponent, selector: "lib-age-date", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: AdditionButtonComponent, selector: "lib-addition-button", inputs: ["field"] }, { kind: "component", type: InfoTextboxComponent, selector: "lib-info-textbox", inputs: ["field", "reactiveFormControlobject", "fields"], outputs: ["infoClick"] }, { kind: "component", type: TextboxWithImageComponent, selector: "lib-textbox-with-image", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: EmailWithDomainComponent, selector: "lib-email-with-domain", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: ImageUploadComponent, selector: "lib-image-upload", inputs: ["field"] }, { kind: "component", type: DownloadDocumentComponent, selector: "lib-download-document", inputs: ["field"] }, { kind: "component", type: AddDocumentComponent, selector: "lib-add-document", inputs: ["field"] }, { kind: "component", type: HyperlinkComponent, selector: "lib-hyperlink", inputs: ["field"] }, { kind: "component", type: TextboxWithUnderscoreComponent, selector: "lib-textbox-with-underscore", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: UnderscoreMobNumberComponent, selector: "lib-underscore-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: IconButtonComponent, selector: "lib-icon-button", inputs: ["field"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: ImageComponent, selector: "lib-image", inputs: ["field"] }, { kind: "component", type: StepperComponent, selector: "lib-stepper", inputs: ["field"] }, { kind: "component", type: JourneyStepperComponent, selector: "lib-journey-stepper", inputs: ["field"] }, { kind: "component", type: CardComponent, selector: "lib-card", inputs: ["field"], outputs: ["cardDetailsClicked"] }, { kind: "component", type: HrLineComponent, selector: "lib-hr-line", inputs: ["field"] }, { kind: "component", type: SearchMultiSelectComponent, selector: "lib-search-multi-select", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: SubscriptTextboxComponent, selector: "lib-subscript-textbox", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: LabelComponent, selector: "lib-label", inputs: ["field"] }, { kind: "component", type: SubHeaderComponent, selector: "lib-sub-header", inputs: ["field"] }, { kind: "component", type: HeaderComponent, selector: "lib-header", inputs: ["field"] }, { kind: "component", type: TextboxWithTextComponent, selector: "lib-textbox-with-text", inputs: ["reactiveFormControlobject", "field"], outputs: ["blur"] }, { kind: "component", type: DiscountComponent, selector: "lib-discount", inputs: ["field"] }, { kind: "component", type: BenefitCardComponent, selector: "lib-benefit-card", inputs: ["field"] }, { kind: "component", type: BenefitDetailCardComponent, selector: "lib-benefit-detail-card", inputs: ["field"], outputs: ["selectionChange", "amountChange", "amountBlur"] }, { kind: "component", type: TableComponent, selector: "lib-table", inputs: ["field", "readonly"], outputs: ["actionItemClicked", "tablePaginationClicked"] }, { kind: "component", type: LoaderComponent, selector: "lib-loader", inputs: ["field"] }, { kind: "component", type: WarningSnackbarComponent, selector: "lib-warning-snackbar", inputs: ["field"] }, { kind: "component", type: SuccessSnackbarComponent, selector: "lib-success-snackbar", inputs: ["field"] }, { kind: "component", type: NeutralSnackbarComponent, selector: "lib-neutral-snackbar", inputs: ["field"] }, { kind: "component", type: ErrorSnackbarComponent, selector: "lib-error-snackbar", inputs: ["field"] }, { kind: "component", type: GreyLabelComponent, selector: "lib-grey-label", inputs: ["field"] }, { kind: "component", type: IframeComponent, selector: "lib-iframe", inputs: ["field"] }, { kind: "component", type: ToggleButtonComponent, selector: "lib-toggle-button", inputs: ["reactiveFormControlobject", "field"], outputs: ["selectionChanged", "change"] }, { kind: "component", type: PayGetCardComponent, selector: "lib-pay-get-card", inputs: ["field", "payAmount", "premiumAmount", "ptValue", "years", "frequency", "payamountOptions"] }, { kind: "component", type: InBuiltBenefitComponent, selector: "lib-in-built-benefit", inputs: ["field", "premiumAmount", "premiumAmountShort"] }, { kind: "component", type: OtherBenefitsComponent, selector: "lib-other-benefits", inputs: ["field"] }, { kind: "component", type: PlanBenefitsCardComponent, selector: "lib-plan-benefits-card", inputs: ["field", "discounts"] }, { kind: "component", type: AnnuityRateLogoComponent, selector: "lib-annuity-rate-logo", inputs: ["field", "ratePercent", "imageSrc"] }, { kind: "component", type: DiscountV2Component, selector: "lib-discount-v2", inputs: ["field"] }, { kind: "component", type: LabelValueCardComponent, selector: "lib-label-value-card", inputs: ["field"] }, { kind: "component", type: MedialQuestionsComponent, selector: "lib-medial-questions", inputs: ["clusterId", "triggerValidation", "locationDetails", "medialQuestionResponse", "personUWOpenQuoteResponse", "defaultValues", "personType", "field"], outputs: ["questionsValueChange", "locationDetailsChange"] }, { kind: "component", type: PageNudgeComponent, selector: "lib-page-nudge", inputs: ["field"] }, { kind: "component", type: ProgressBarComponent, selector: "lib-progress-bar", inputs: ["field"] }, { kind: "component", type: AccordianComponent, selector: "lib-accordian", inputs: ["field"] }, { kind: "component", type: MiscellaneousInfoBarComponent, selector: "lib-miscellaneous-info-bar", inputs: ["field", "details"] }, { kind: "component", type: PlainTextComponent, selector: "lib-plain-text", inputs: ["field"] }, { kind: "component", type: MenuComponent, selector: "lib-menu", inputs: ["field"] }, { kind: "component", type: StepperWIthArrowComponent, selector: "lib-stepper-with-arrow", inputs: ["field", "currentStepValue", "autoProgress", "autoProgressDelay"], outputs: ["selectedStep"] }, { kind: "component", type: LabelWithImageComponent, selector: "lib-label-with-image", inputs: ["field"] }, { kind: "component", type: TopHeaderComponent, selector: "lib-top-header", inputs: ["field"] }, { kind: "component", type: FooterComponent, selector: "lib-footer", inputs: ["field"] }, { kind: "component", type: FooterWithButtonsComponent, selector: "lib-footer-with-buttons", inputs: ["field"] }, { kind: "component", type: MotorGlowPlanDetailsComponent, selector: "lib-motor-glow-plan-details", inputs: ["field"], outputs: ["editPlanClick"] }, { kind: "component", type: AnnuityPremiumCalculatorComponent, selector: "lib-annuity-premium-calculator", inputs: ["field", "triggerValidation", "premiumDetails"], outputs: ["onCalcualteButtonClick", "onGenerateSummaryClick", "onAnnuityPremiumChange", "onMinimumPremiumValueChange", "onAutioDebitValueChange", "onGuranteedAnnuityValueChange", "onDigitBossSwitchToggle", "onGrowthRateOptionSelected"] }, { kind: "component", type: FooterDesignComponent, selector: "lib-footer-design", inputs: ["field"] }, { kind: "component", type: AnnuityCalculatorRadioComponent, selector: "lib-annuity-calculator-radio", inputs: ["preSelectConfig", "reactiveFormControlobject", "field"], outputs: ["change", "growthRateChange"] }, { kind: "component", type: TextboxWithRadioComponent, selector: "lib-textbox-with-radio", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "change", "input"] }, { kind: "component", type: LifeCoverDetailsComponent, selector: "lib-life-cover-details", inputs: ["field", "coverDetails", "termDetails", "premiumDetails"], outputs: ["textButtonClick", "sliderValueChange"] }, { kind: "component", type: LifeCoverDetailsViewComponent, selector: "lib-life-cover-details-view", inputs: ["field", "summaryItems"] }, { kind: "component", type: LifeCoverDetailsPostPremiumCalculationComponent, selector: "lib-life-cover-details-post-premium-calculation", inputs: ["field", "premiumSummary"] }, { kind: "component", type: LifeCoverAddonDetailsComponent, selector: "lib-life-cover-addon-details", inputs: ["field", "addOnConfigData"], outputs: ["addonSelectionChange"] }, { kind: "component", type: VehicleCoveragePlansComponent, selector: "lib-vehicle-coverage-plans", inputs: ["field", "coveragePlansData"] }, { kind: "component", type: PremiumBreakdownComponent, selector: "lib-premium-breakdown", inputs: ["field", "premiumBreakdownData"] }, { kind: "component", type: DiscountCardComponent, selector: "lib-discount-card", inputs: ["field"] }, { kind: "component", type: AdditionalBenefitsComponent, selector: "lib-additional-benefits", inputs: ["field"], outputs: ["benefitChange"] }, { kind: "component", type: PremiumBreakupComponent, selector: "lib-premium-breakup", inputs: ["field"] }, { kind: "component", type: DiscountsAppliedComponent, selector: "lib-discounts-applied", inputs: ["field"], outputs: ["discountPeriodChange"] }] });
11164
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: MasterControlComponent, isStandalone: true, selector: "lib-master-control", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, discounts: { classPropertyName: "discounts", publicName: "discounts", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { lifeCoverSliderValueChange: "lifeCoverSliderValueChange", lifeCoverAddonSelectionChange: "lifeCoverAddonSelectionChange", benefitSelectionChange: "benefitSelectionChange", additionalBenefitChange: "additionalBenefitChange", benefitAmountChange: "benefitAmountChange", benefitAmountBlur: "benefitAmountBlur", discountPeriodChange: "discountPeriodChange", quotePolicyCardEvent: "quotePolicyCardEvent" }, ngImport: i0, template: "@switch (field()?.controlType) {\n @case ('quotePolicyCard') {\n <lib-quote-policy-card [field]=\"field()\" (cardEvent)=\"quotePolicyCardEvent.emit($event)\" />\n }\n @case ('top-header') {\n <lib-top-header [field]=\"field()\" />\n }\n @case ('footer') {\n <lib-footer [field]=\"field()\" />\n }\n @case('footer-buttons')\n {\n <lib-footer-with-buttons [field]=\"field()\"></lib-footer-with-buttons>\n }\n @case('text') {\n <lib-textbox [field]=\"field()\"></lib-textbox>\n }\n @case('select') {\n <lib-select [field]=\"field()\"/>\n }\n\n @case('radio') {\n <lib-radio [field]=\"field()\" />\n }\n\n @case('toggle') {\n <lib-toggle [field]=\"field()\" />\n }\n\n @case('file') {\n <lib-upload [field]=\"field()\" />\n }\n\n @case('date') {\n <lib-dob [field]=\"field()\" />\n }\n\n @case('mobileNumber') {\n <lib-mob-number [field]=\"field()\" />\n }\n\n @case('info') {\n <lib-info [field]=\"field()\" />\n }\n\n @case('checkbox') {\n <lib-checkbox [field]=\"field()\" />\n }\n\n @case('textarea') {\n <lib-textarea [field]=\"field()\" />\n }\n\n @case ('button') {\n <lib-button [field]=\"field()\" />\n }\n\n @case ('tab') {\n <lib-tab [field]=\"field()\" />\n }\n\n @case ('autocomplete') {\n <lib-autocomplete [field]=\"field()\" />\n }\n\n @case ('multipleSelect') {\n <lib-multiple-select [field]=\"field()\" />\n }\n\n @case ('textboxWithSelect') {\n <lib-select-textbox [field]=\"field()\" />\n }\n\n @case ('otpTextbox') {\n <lib-otp-textbox [field]=\"field()\" />\n }\n\n @case ('amountTextbox') {\n <lib-amount-textbox [field]=\"field()\" />\n }\n\n @case ('suffixTextbox') {\n <lib-suffix-textbox [field]=\"field()\" />\n }\n\n @case ('otpMobNumber') {\n <lib-otp-mob-number [field]=\"field()\" />\n }\n\n @case ('tagMobNumber') {\n <lib-tag-mob-number [field]=\"field()\" />\n }\n\n @case ('dateWithAge') {\n <lib-age-date [field]=\"field()\" />\n }\n\n @case ('additionButton') {\n <lib-addition-button [field]=\"field()\" />\n }\n\n @case ('infoTextbox') {\n <lib-info-textbox [field]=\"field()\" />\n }\n\n @case ('textboxWithImage') {\n <lib-textbox-with-image [field]=\"field()\" />\n }\n\n @case ('emailWithDomain') {\n <lib-email-with-domain [field]=\"field()\" />\n }\n\n @case ('imageUpload') {\n <lib-image-upload [field]=\"field()\" />\n }\n\n @case ('downloadDocument') {\n <lib-download-document [field]=\"field()\" />\n }\n\n @case ('addDocument') {\n <lib-add-document [field]=\"field()\" />\n }\n\n @case ('hyperlink') {\n <lib-hyperlink [field]=\"field()\" />\n }\n\n @case ('textboxWithUnderscore') {\n <lib-textbox-with-underscore [field]=\"field()\" />\n }\n\n @case ('underscoreMobNumber') {\n <lib-underscore-mob-number [field]=\"field()\" />\n }\n\n @case ('downloadIconButton') {\n <lib-icon-button [field]=\"field()\" />\n }\n\n @case ('image') {\n <lib-image [field]=\"field()\" />\n }\n @case ('stepper') {\n <lib-stepper [field]=\"field()\" />\n }\n @case ('journeyStepper') {\n <lib-journey-stepper [field]=\"field()\" />\n }\n @case ('card') {\n <lib-card [field]=\"field()\" />\n }\n @case ('hrLine') {\n <lib-hr-line [field]=\"field()\" />\n }\n @case ('searchMultiSelect') {\n <lib-search-multi-select [field]=\"field()\" />\n }\n @case ('subscriptTextbox') {\n <lib-subscript-textbox [field]=\"field()\" />\n }\n @case ('label') {\n <lib-label [field]=\"field()\" />\n }\n @case ('subHeading') {\n <lib-sub-header [field]=\"field()\" />\n }\n @case ('heading') {\n <lib-header [field]=\"field()\" />\n }\n @case ('table') {\n <lib-table [field]=\"field()\" />\n }\n @case ('textboxWithText') {\n <lib-textbox-with-text [field]=\"field()\" />\n }\n @case ('loader') {\n <lib-loader [field]=\"field()\" />\n }\n @case ('discount') {\n <lib-discount [field]=\"field()\" />\n }\n @case ('discountCard') {\n <lib-discount-card [field]=\"field()\" />\n }\n @case ('discountsApplied') {\n <lib-discounts-applied [field]=\"field()\" (discountPeriodChange)=\"discountPeriodChange.emit($event)\" />\n }\n @case ('additionalBenefits') {\n <lib-additional-benefits [field]=\"field()\" (benefitChange)=\"additionalBenefitChange.emit($event)\" />\n }\n @case ('optionalBenefitCard') {\n <lib-benefit-card [field]=\"field()\" />\n }\n @case ('benefitDetailCard') {\n <lib-benefit-detail-card\n [field]=\"field()\"\n (selectionChange)=\"benefitSelectionChange.emit($event)\"\n (amountChange)=\"benefitAmountChange.emit($event)\"\n (amountBlur)=\"benefitAmountBlur.emit($event)\"\n />\n }\n @case ('errorSnackbar') {\n <lib-error-snackbar [field]=\"field()\" />\n }\n @case ('warningSnackbar') {\n <lib-warning-snackbar [field]=\"field()\" />\n }\n @case ('successSnackbar') {\n <lib-success-snackbar [field]=\"field()\" />\n }\n @case ('neutralSnackbar') {\n <lib-neutral-snackbar [field]=\"field()\" />\n }\n @case ('boldLabel') {\n <lib-grey-label [field]=\"field()\" />\n }\n @case ('iframe') {\n <lib-iframe [field]=\"field()\" />\n }\n @case ('toggleButton') {\n <lib-toggle-button [field]=\"field()\" />\n }\n @case ('payGetCard') {\n <lib-pay-get-card [field]=\"field()\" />\n }\n @case ('inBuiltBenefit') {\n <lib-in-built-benefit [field]=\"field()\" />\n }\n @case ('otherBenefit') {\n <lib-other-benefits [field]=\"field()\" />\n }\n @case ('planBenefitsCard') {\n <lib-plan-benefits-card [field]=\"field()\" [discounts]=\"discounts()\" />\n }\n @case ('annuityRateLogo') {\n <lib-annuity-rate-logo [field]=\"field()\" />\n }\n @case ('discountAnnuity') {\n <lib-discount-v2 [field]=\"field()\" />\n }\n @case ('labelValue'){\n <lib-label-value-card [field]=\"field()\" />\n }\n @case ('medicalQuestions'){\n <lib-medial-questions [field]=\"field()\" />\n }\n @case ('nudge'){\n <lib-page-nudge [field]=\"field()\"/>\n }\n @case ('progressBar'){\n <lib-progress-bar [field]=\"field()\"/>\n }\n @case ('accordian'){\n <lib-accordian [field]=\"field()\"/>\n }\n @case ('miscInfo'){\n <lib-miscellaneous-info-bar [field]=\"field()\"/>\n }\n @case ('plainText'){\n <lib-plain-text [field]=\"field()\"/>\n }\n @case ('menu'){\n <lib-menu [field]=\"field()\" />\n }\n @case ('stepperWithArrow') {\n <lib-stepper-with-arrow [field]=\"field()\" />\n }\n @case ('labelWithImage') {\n <lib-label-with-image [field]=\"field()\" />\n }\n @case ('motorGlowPlanDetails') {\n <lib-motor-glow-plan-details [field]=\"field()\" />\n }\n @case ('premiumToAnnuityCalculator') {\n <lib-annuity-premium-calculator [field]=\"field()\" />\n } @case ('footerProgressBar') {\n <lib-footer-design [field]=\"field()\" />\n }\n @case ('annuityGrowthRateOption') {\n <lib-annuity-calculator-radio [field]=\"field()\" />\n }\n @case ('textboxWithRadio') {\n <lib-textbox-with-radio [field]=\"field()\" />\n }\n @case ('lifeCoverDetails') {\n <lib-life-cover-details\n [field]=\"field()\"\n [coverDetails]=\"field()?.coverDetails\"\n [termDetails]=\"field()?.termDetails\"\n [premiumDetails]=\"field()?.premiumDetails\"\n (sliderValueChange)=\"onLifeCoverSliderValueChange($event)\" />\n }\n @case ('lifeCoverDetailsView') {\n <lib-life-cover-details-view\n [field]=\"field()\"\n [summaryItems]=\"field()?.summaryItems\" />\n }\n @case ('lifeCoverDetailsPostPremiumCalculation') {\n <lib-life-cover-details-post-premium-calculation\n [field]=\"field()\"\n [premiumSummary]=\"field()?.premiumSummary\" />\n }\n @case ('lifeCoverAddonDetails') {\n <lib-life-cover-addon-details\n [field]=\"field()\"\n [addOnConfigData]=\"field()?.addOnConfigData\"\n (addonSelectionChange)=\"onLifeCoverAddonSelectionChange($event)\" />\n }\n @case ('vehicleCoveragePlans') {\n <lib-vehicle-coverage-plans\n [field]=\"field()\"\n [coveragePlansData]=\"field()?.coveragePlansData\" />\n }\n @case ('premiumBreakdown') {\n <lib-premium-breakdown\n [field]=\"field()\"\n [premiumBreakdownData]=\"field()?.premiumBreakdownData\" />\n }\n @case ('premiumBreakup') {\n <lib-premium-breakup [field]=\"field()\" />\n }\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "component", type: TextboxComponent, selector: "lib-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: SelectComponent, selector: "lib-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange", "infoClick"] }, { kind: "component", type: RadioComponent, selector: "lib-radio", inputs: ["reactiveFormControlobject", "field"], outputs: ["change"] }, { kind: "component", type: ToggleComponent, selector: "lib-toggle", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: UploadComponent, selector: "lib-upload", inputs: ["documentUploaderField", "openQuoteImageObj", "field", "reactiveFormControlobject"], outputs: ["filesChanged", "fileRemoved", "filePreview"] }, { kind: "component", type: DobComponent, selector: "lib-dob", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: MobNumberComponent, selector: "lib-mob-number", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: InfoComponent, selector: "lib-info", inputs: ["field"] }, { kind: "component", type: CheckboxComponent, selector: "lib-checkbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["change"] }, { kind: "component", type: TextareaComponent, selector: "lib-textarea", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: ButtonComponent, selector: "lib-button", inputs: ["field"] }, { kind: "component", type: TabComponent, selector: "lib-tab", inputs: ["field"], outputs: ["selectedIndexChange"] }, { kind: "component", type: AutocompleteComponent, selector: "lib-autocomplete", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "selectionChanged", "valueChanged", "optionSelected"] }, { kind: "component", type: MultipleSelectComponent, selector: "lib-multiple-select", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "component", type: SelectTextboxComponent, selector: "lib-select-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["selectionChange"] }, { kind: "component", type: OtpTextboxComponent, selector: "lib-otp-textbox", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: AmountTextboxComponent, selector: "lib-amount-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: SuffixTextboxComponent, selector: "lib-suffix-textbox", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: OtpMobNumberComponent, selector: "lib-otp-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: TagMobNumberComponent, selector: "lib-tag-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: AgeDateComponent, selector: "lib-age-date", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "valueChange", "dateSelected", "invalidDate"] }, { kind: "component", type: AdditionButtonComponent, selector: "lib-addition-button", inputs: ["field"] }, { kind: "component", type: InfoTextboxComponent, selector: "lib-info-textbox", inputs: ["field", "reactiveFormControlobject", "fields"], outputs: ["infoClick"] }, { kind: "component", type: TextboxWithImageComponent, selector: "lib-textbox-with-image", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur"] }, { kind: "component", type: EmailWithDomainComponent, selector: "lib-email-with-domain", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: ImageUploadComponent, selector: "lib-image-upload", inputs: ["field"] }, { kind: "component", type: DownloadDocumentComponent, selector: "lib-download-document", inputs: ["field"] }, { kind: "component", type: AddDocumentComponent, selector: "lib-add-document", inputs: ["field"] }, { kind: "component", type: HyperlinkComponent, selector: "lib-hyperlink", inputs: ["field"] }, { kind: "component", type: TextboxWithUnderscoreComponent, selector: "lib-textbox-with-underscore", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: UnderscoreMobNumberComponent, selector: "lib-underscore-mob-number", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: IconButtonComponent, selector: "lib-icon-button", inputs: ["field"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: ImageComponent, selector: "lib-image", inputs: ["field"] }, { kind: "component", type: StepperComponent, selector: "lib-stepper", inputs: ["field"] }, { kind: "component", type: JourneyStepperComponent, selector: "lib-journey-stepper", inputs: ["field"] }, { kind: "component", type: CardComponent, selector: "lib-card", inputs: ["field"], outputs: ["cardDetailsClicked"] }, { kind: "component", type: HrLineComponent, selector: "lib-hr-line", inputs: ["field"] }, { kind: "component", type: SearchMultiSelectComponent, selector: "lib-search-multi-select", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: SubscriptTextboxComponent, selector: "lib-subscript-textbox", inputs: ["field", "reactiveFormControlobject"] }, { kind: "component", type: LabelComponent, selector: "lib-label", inputs: ["field"] }, { kind: "component", type: SubHeaderComponent, selector: "lib-sub-header", inputs: ["field"] }, { kind: "component", type: HeaderComponent, selector: "lib-header", inputs: ["field"] }, { kind: "component", type: TextboxWithTextComponent, selector: "lib-textbox-with-text", inputs: ["reactiveFormControlobject", "field"], outputs: ["blur"] }, { kind: "component", type: DiscountComponent, selector: "lib-discount", inputs: ["field"] }, { kind: "component", type: BenefitCardComponent, selector: "lib-benefit-card", inputs: ["field"] }, { kind: "component", type: BenefitDetailCardComponent, selector: "lib-benefit-detail-card", inputs: ["field"], outputs: ["selectionChange", "amountChange", "amountBlur"] }, { kind: "component", type: TableComponent, selector: "lib-table", inputs: ["field", "readonly"], outputs: ["actionItemClicked", "tablePaginationClicked"] }, { kind: "component", type: LoaderComponent, selector: "lib-loader", inputs: ["field"] }, { kind: "component", type: WarningSnackbarComponent, selector: "lib-warning-snackbar", inputs: ["field"] }, { kind: "component", type: SuccessSnackbarComponent, selector: "lib-success-snackbar", inputs: ["field"] }, { kind: "component", type: NeutralSnackbarComponent, selector: "lib-neutral-snackbar", inputs: ["field"] }, { kind: "component", type: ErrorSnackbarComponent, selector: "lib-error-snackbar", inputs: ["field"] }, { kind: "component", type: GreyLabelComponent, selector: "lib-grey-label", inputs: ["field"] }, { kind: "component", type: IframeComponent, selector: "lib-iframe", inputs: ["field"] }, { kind: "component", type: ToggleButtonComponent, selector: "lib-toggle-button", inputs: ["reactiveFormControlobject", "field"], outputs: ["selectionChanged", "change"] }, { kind: "component", type: PayGetCardComponent, selector: "lib-pay-get-card", inputs: ["field", "payAmount", "premiumAmount", "ptValue", "years", "frequency", "payamountOptions"] }, { kind: "component", type: InBuiltBenefitComponent, selector: "lib-in-built-benefit", inputs: ["field", "premiumAmount", "premiumAmountShort"] }, { kind: "component", type: OtherBenefitsComponent, selector: "lib-other-benefits", inputs: ["field"] }, { kind: "component", type: PlanBenefitsCardComponent, selector: "lib-plan-benefits-card", inputs: ["field", "discounts"] }, { kind: "component", type: AnnuityRateLogoComponent, selector: "lib-annuity-rate-logo", inputs: ["field", "ratePercent", "imageSrc"] }, { kind: "component", type: DiscountV2Component, selector: "lib-discount-v2", inputs: ["field"] }, { kind: "component", type: LabelValueCardComponent, selector: "lib-label-value-card", inputs: ["field"] }, { kind: "component", type: MedialQuestionsComponent, selector: "lib-medial-questions", inputs: ["clusterId", "triggerValidation", "locationDetails", "medialQuestionResponse", "personUWOpenQuoteResponse", "defaultValues", "personType", "field"], outputs: ["questionsValueChange", "locationDetailsChange"] }, { kind: "component", type: PageNudgeComponent, selector: "lib-page-nudge", inputs: ["field"] }, { kind: "component", type: ProgressBarComponent, selector: "lib-progress-bar", inputs: ["field"] }, { kind: "component", type: AccordianComponent, selector: "lib-accordian", inputs: ["field"] }, { kind: "component", type: MiscellaneousInfoBarComponent, selector: "lib-miscellaneous-info-bar", inputs: ["field", "details"] }, { kind: "component", type: PlainTextComponent, selector: "lib-plain-text", inputs: ["field"] }, { kind: "component", type: MenuComponent, selector: "lib-menu", inputs: ["field"] }, { kind: "component", type: StepperWIthArrowComponent, selector: "lib-stepper-with-arrow", inputs: ["field", "currentStepValue", "autoProgress", "autoProgressDelay"], outputs: ["selectedStep"] }, { kind: "component", type: LabelWithImageComponent, selector: "lib-label-with-image", inputs: ["field"] }, { kind: "component", type: TopHeaderComponent, selector: "lib-top-header", inputs: ["field"] }, { kind: "component", type: FooterComponent, selector: "lib-footer", inputs: ["field"] }, { kind: "component", type: FooterWithButtonsComponent, selector: "lib-footer-with-buttons", inputs: ["field"] }, { kind: "component", type: MotorGlowPlanDetailsComponent, selector: "lib-motor-glow-plan-details", inputs: ["field"], outputs: ["editPlanClick"] }, { kind: "component", type: AnnuityPremiumCalculatorComponent, selector: "lib-annuity-premium-calculator", inputs: ["field", "triggerValidation", "premiumDetails"], outputs: ["onCalcualteButtonClick", "onGenerateSummaryClick", "onAnnuityPremiumChange", "onMinimumPremiumValueChange", "onAutioDebitValueChange", "onGuranteedAnnuityValueChange", "onDigitBossSwitchToggle", "onGrowthRateOptionSelected"] }, { kind: "component", type: FooterDesignComponent, selector: "lib-footer-design", inputs: ["field"] }, { kind: "component", type: AnnuityCalculatorRadioComponent, selector: "lib-annuity-calculator-radio", inputs: ["preSelectConfig", "reactiveFormControlobject", "field"], outputs: ["change", "growthRateChange"] }, { kind: "component", type: TextboxWithRadioComponent, selector: "lib-textbox-with-radio", inputs: ["field", "reactiveFormControlobject"], outputs: ["blur", "change", "input"] }, { kind: "component", type: LifeCoverDetailsComponent, selector: "lib-life-cover-details", inputs: ["field", "coverDetails", "termDetails", "premiumDetails"], outputs: ["textButtonClick", "sliderValueChange"] }, { kind: "component", type: LifeCoverDetailsViewComponent, selector: "lib-life-cover-details-view", inputs: ["field", "summaryItems"] }, { kind: "component", type: LifeCoverDetailsPostPremiumCalculationComponent, selector: "lib-life-cover-details-post-premium-calculation", inputs: ["field", "premiumSummary"] }, { kind: "component", type: LifeCoverAddonDetailsComponent, selector: "lib-life-cover-addon-details", inputs: ["field", "addOnConfigData"], outputs: ["addonSelectionChange"] }, { kind: "component", type: VehicleCoveragePlansComponent, selector: "lib-vehicle-coverage-plans", inputs: ["field", "coveragePlansData"] }, { kind: "component", type: PremiumBreakdownComponent, selector: "lib-premium-breakdown", inputs: ["field", "premiumBreakdownData"] }, { kind: "component", type: DiscountCardComponent, selector: "lib-discount-card", inputs: ["field"] }, { kind: "component", type: AdditionalBenefitsComponent, selector: "lib-additional-benefits", inputs: ["field"], outputs: ["benefitChange"] }, { kind: "component", type: PremiumBreakupComponent, selector: "lib-premium-breakup", inputs: ["field"] }, { kind: "component", type: DiscountsAppliedComponent, selector: "lib-discounts-applied", inputs: ["field"], outputs: ["discountPeriodChange"] }, { kind: "component", type: QuotePolicyCardComponent, selector: "lib-quote-policy-card", inputs: ["field"], outputs: ["cardEvent"] }] });
10905
11165
  }
10906
11166
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlComponent, decorators: [{
10907
11167
  type: Component,
@@ -10997,8 +11257,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
10997
11257
  DiscountCardComponent,
10998
11258
  AdditionalBenefitsComponent,
10999
11259
  PremiumBreakupComponent,
11000
- DiscountsAppliedComponent
11001
- ], template: "@switch (field()?.controlType) {\n @case ('top-header') {\n <lib-top-header [field]=\"field()\" />\n }\n @case ('footer') {\n <lib-footer [field]=\"field()\" />\n }\n @case('footer-buttons')\n {\n <lib-footer-with-buttons [field]=\"field()\"></lib-footer-with-buttons>\n }\n @case('text') {\n <lib-textbox [field]=\"field()\"></lib-textbox>\n }\n @case('select') {\n <lib-select [field]=\"field()\"/>\n }\n\n @case('radio') {\n <lib-radio [field]=\"field()\" />\n }\n\n @case('toggle') {\n <lib-toggle [field]=\"field()\" />\n }\n\n @case('file') {\n <lib-upload [field]=\"field()\" />\n }\n\n @case('date') {\n <lib-dob [field]=\"field()\" />\n }\n\n @case('mobileNumber') {\n <lib-mob-number [field]=\"field()\" />\n }\n\n @case('info') {\n <lib-info [field]=\"field()\" />\n }\n\n @case('checkbox') {\n <lib-checkbox [field]=\"field()\" />\n }\n\n @case('textarea') {\n <lib-textarea [field]=\"field()\" />\n }\n\n @case ('button') {\n <lib-button [field]=\"field()\" />\n }\n\n @case ('tab') {\n <lib-tab [field]=\"field()\" />\n }\n\n @case ('autocomplete') {\n <lib-autocomplete [field]=\"field()\" />\n }\n\n @case ('multipleSelect') {\n <lib-multiple-select [field]=\"field()\" />\n }\n\n @case ('textboxWithSelect') {\n <lib-select-textbox [field]=\"field()\" />\n }\n\n @case ('otpTextbox') {\n <lib-otp-textbox [field]=\"field()\" />\n }\n\n @case ('amountTextbox') {\n <lib-amount-textbox [field]=\"field()\" />\n }\n\n @case ('suffixTextbox') {\n <lib-suffix-textbox [field]=\"field()\" />\n }\n\n @case ('otpMobNumber') {\n <lib-otp-mob-number [field]=\"field()\" />\n }\n\n @case ('tagMobNumber') {\n <lib-tag-mob-number [field]=\"field()\" />\n }\n\n @case ('dateWithAge') {\n <lib-age-date [field]=\"field()\" />\n }\n\n @case ('additionButton') {\n <lib-addition-button [field]=\"field()\" />\n }\n\n @case ('infoTextbox') {\n <lib-info-textbox [field]=\"field()\" />\n }\n\n @case ('textboxWithImage') {\n <lib-textbox-with-image [field]=\"field()\" />\n }\n\n @case ('emailWithDomain') {\n <lib-email-with-domain [field]=\"field()\" />\n }\n\n @case ('imageUpload') {\n <lib-image-upload [field]=\"field()\" />\n }\n\n @case ('downloadDocument') {\n <lib-download-document [field]=\"field()\" />\n }\n\n @case ('addDocument') {\n <lib-add-document [field]=\"field()\" />\n }\n\n @case ('hyperlink') {\n <lib-hyperlink [field]=\"field()\" />\n }\n\n @case ('textboxWithUnderscore') {\n <lib-textbox-with-underscore [field]=\"field()\" />\n }\n\n @case ('underscoreMobNumber') {\n <lib-underscore-mob-number [field]=\"field()\" />\n }\n\n @case ('downloadIconButton') {\n <lib-icon-button [field]=\"field()\" />\n }\n\n @case ('image') {\n <lib-image [field]=\"field()\" />\n }\n @case ('stepper') {\n <lib-stepper [field]=\"field()\" />\n }\n @case ('journeyStepper') {\n <lib-journey-stepper [field]=\"field()\" />\n }\n @case ('card') {\n <lib-card [field]=\"field()\" />\n }\n @case ('hrLine') {\n <lib-hr-line [field]=\"field()\" />\n }\n @case ('searchMultiSelect') {\n <lib-search-multi-select [field]=\"field()\" />\n }\n @case ('subscriptTextbox') {\n <lib-subscript-textbox [field]=\"field()\" />\n }\n @case ('label') {\n <lib-label [field]=\"field()\" />\n }\n @case ('subHeading') {\n <lib-sub-header [field]=\"field()\" />\n }\n @case ('heading') {\n <lib-header [field]=\"field()\" />\n }\n @case ('table') {\n <lib-table [field]=\"field()\" />\n }\n @case ('textboxWithText') {\n <lib-textbox-with-text [field]=\"field()\" />\n }\n @case ('loader') {\n <lib-loader [field]=\"field()\" />\n }\n @case ('discount') {\n <lib-discount [field]=\"field()\" />\n }\n @case ('discountCard') {\n <lib-discount-card [field]=\"field()\" />\n }\n @case ('discountsApplied') {\n <lib-discounts-applied [field]=\"field()\" (discountPeriodChange)=\"discountPeriodChange.emit($event)\" />\n }\n @case ('additionalBenefits') {\n <lib-additional-benefits [field]=\"field()\" (benefitChange)=\"additionalBenefitChange.emit($event)\" />\n }\n @case ('optionalBenefitCard') {\n <lib-benefit-card [field]=\"field()\" />\n }\n @case ('benefitDetailCard') {\n <lib-benefit-detail-card\n [field]=\"field()\"\n (selectionChange)=\"benefitSelectionChange.emit($event)\"\n (amountChange)=\"benefitAmountChange.emit($event)\"\n (amountBlur)=\"benefitAmountBlur.emit($event)\"\n />\n }\n @case ('errorSnackbar') {\n <lib-error-snackbar [field]=\"field()\" />\n }\n @case ('warningSnackbar') {\n <lib-warning-snackbar [field]=\"field()\" />\n }\n @case ('successSnackbar') {\n <lib-success-snackbar [field]=\"field()\" />\n }\n @case ('neutralSnackbar') {\n <lib-neutral-snackbar [field]=\"field()\" />\n }\n @case ('boldLabel') {\n <lib-grey-label [field]=\"field()\" />\n }\n @case ('iframe') {\n <lib-iframe [field]=\"field()\" />\n }\n @case ('toggleButton') {\n <lib-toggle-button [field]=\"field()\" />\n }\n @case ('payGetCard') {\n <lib-pay-get-card [field]=\"field()\" />\n }\n @case ('inBuiltBenefit') {\n <lib-in-built-benefit [field]=\"field()\" />\n }\n @case ('otherBenefit') {\n <lib-other-benefits [field]=\"field()\" />\n }\n @case ('planBenefitsCard') {\n <lib-plan-benefits-card [field]=\"field()\" [discounts]=\"discounts()\" />\n }\n @case ('annuityRateLogo') {\n <lib-annuity-rate-logo [field]=\"field()\" />\n }\n @case ('discountAnnuity') {\n <lib-discount-v2 [field]=\"field()\" />\n }\n @case ('labelValue'){\n <lib-label-value-card [field]=\"field()\" />\n }\n @case ('medicalQuestions'){\n <lib-medial-questions [field]=\"field()\" />\n }\n @case ('nudge'){\n <lib-page-nudge [field]=\"field()\"/>\n }\n @case ('progressBar'){\n <lib-progress-bar [field]=\"field()\"/>\n }\n @case ('accordian'){\n <lib-accordian [field]=\"field()\"/>\n }\n @case ('miscInfo'){\n <lib-miscellaneous-info-bar [field]=\"field()\"/>\n }\n @case ('plainText'){\n <lib-plain-text [field]=\"field()\"/>\n }\n @case ('menu'){\n <lib-menu [field]=\"field()\" />\n }\n @case ('stepperWithArrow') {\n <lib-stepper-with-arrow [field]=\"field()\" />\n }\n @case ('labelWithImage') {\n <lib-label-with-image [field]=\"field()\" />\n }\n @case ('motorGlowPlanDetails') {\n <lib-motor-glow-plan-details [field]=\"field()\" />\n }\n @case ('premiumToAnnuityCalculator') {\n <lib-annuity-premium-calculator [field]=\"field()\" />\n } @case ('footerProgressBar') {\n <lib-footer-design [field]=\"field()\" />\n }\n @case ('annuityGrowthRateOption') {\n <lib-annuity-calculator-radio [field]=\"field()\" />\n }\n @case ('textboxWithRadio') {\n <lib-textbox-with-radio [field]=\"field()\" />\n }\n @case ('lifeCoverDetails') {\n <lib-life-cover-details\n [field]=\"field()\"\n [coverDetails]=\"field()?.coverDetails\"\n [termDetails]=\"field()?.termDetails\"\n [premiumDetails]=\"field()?.premiumDetails\"\n (sliderValueChange)=\"onLifeCoverSliderValueChange($event)\" />\n }\n @case ('lifeCoverDetailsView') {\n <lib-life-cover-details-view\n [field]=\"field()\"\n [summaryItems]=\"field()?.summaryItems\" />\n }\n @case ('lifeCoverDetailsPostPremiumCalculation') {\n <lib-life-cover-details-post-premium-calculation\n [field]=\"field()\"\n [premiumSummary]=\"field()?.premiumSummary\" />\n }\n @case ('lifeCoverAddonDetails') {\n <lib-life-cover-addon-details\n [field]=\"field()\"\n [addOnConfigData]=\"field()?.addOnConfigData\"\n (addonSelectionChange)=\"onLifeCoverAddonSelectionChange($event)\" />\n }\n @case ('vehicleCoveragePlans') {\n <lib-vehicle-coverage-plans\n [field]=\"field()\"\n [coveragePlansData]=\"field()?.coveragePlansData\" />\n }\n @case ('premiumBreakdown') {\n <lib-premium-breakdown\n [field]=\"field()\"\n [premiumBreakdownData]=\"field()?.premiumBreakdownData\" />\n }\n @case ('premiumBreakup') {\n <lib-premium-breakup [field]=\"field()\" />\n }\n}\n" }]
11260
+ DiscountsAppliedComponent,
11261
+ QuotePolicyCardComponent
11262
+ ], template: "@switch (field()?.controlType) {\n @case ('quotePolicyCard') {\n <lib-quote-policy-card [field]=\"field()\" (cardEvent)=\"quotePolicyCardEvent.emit($event)\" />\n }\n @case ('top-header') {\n <lib-top-header [field]=\"field()\" />\n }\n @case ('footer') {\n <lib-footer [field]=\"field()\" />\n }\n @case('footer-buttons')\n {\n <lib-footer-with-buttons [field]=\"field()\"></lib-footer-with-buttons>\n }\n @case('text') {\n <lib-textbox [field]=\"field()\"></lib-textbox>\n }\n @case('select') {\n <lib-select [field]=\"field()\"/>\n }\n\n @case('radio') {\n <lib-radio [field]=\"field()\" />\n }\n\n @case('toggle') {\n <lib-toggle [field]=\"field()\" />\n }\n\n @case('file') {\n <lib-upload [field]=\"field()\" />\n }\n\n @case('date') {\n <lib-dob [field]=\"field()\" />\n }\n\n @case('mobileNumber') {\n <lib-mob-number [field]=\"field()\" />\n }\n\n @case('info') {\n <lib-info [field]=\"field()\" />\n }\n\n @case('checkbox') {\n <lib-checkbox [field]=\"field()\" />\n }\n\n @case('textarea') {\n <lib-textarea [field]=\"field()\" />\n }\n\n @case ('button') {\n <lib-button [field]=\"field()\" />\n }\n\n @case ('tab') {\n <lib-tab [field]=\"field()\" />\n }\n\n @case ('autocomplete') {\n <lib-autocomplete [field]=\"field()\" />\n }\n\n @case ('multipleSelect') {\n <lib-multiple-select [field]=\"field()\" />\n }\n\n @case ('textboxWithSelect') {\n <lib-select-textbox [field]=\"field()\" />\n }\n\n @case ('otpTextbox') {\n <lib-otp-textbox [field]=\"field()\" />\n }\n\n @case ('amountTextbox') {\n <lib-amount-textbox [field]=\"field()\" />\n }\n\n @case ('suffixTextbox') {\n <lib-suffix-textbox [field]=\"field()\" />\n }\n\n @case ('otpMobNumber') {\n <lib-otp-mob-number [field]=\"field()\" />\n }\n\n @case ('tagMobNumber') {\n <lib-tag-mob-number [field]=\"field()\" />\n }\n\n @case ('dateWithAge') {\n <lib-age-date [field]=\"field()\" />\n }\n\n @case ('additionButton') {\n <lib-addition-button [field]=\"field()\" />\n }\n\n @case ('infoTextbox') {\n <lib-info-textbox [field]=\"field()\" />\n }\n\n @case ('textboxWithImage') {\n <lib-textbox-with-image [field]=\"field()\" />\n }\n\n @case ('emailWithDomain') {\n <lib-email-with-domain [field]=\"field()\" />\n }\n\n @case ('imageUpload') {\n <lib-image-upload [field]=\"field()\" />\n }\n\n @case ('downloadDocument') {\n <lib-download-document [field]=\"field()\" />\n }\n\n @case ('addDocument') {\n <lib-add-document [field]=\"field()\" />\n }\n\n @case ('hyperlink') {\n <lib-hyperlink [field]=\"field()\" />\n }\n\n @case ('textboxWithUnderscore') {\n <lib-textbox-with-underscore [field]=\"field()\" />\n }\n\n @case ('underscoreMobNumber') {\n <lib-underscore-mob-number [field]=\"field()\" />\n }\n\n @case ('downloadIconButton') {\n <lib-icon-button [field]=\"field()\" />\n }\n\n @case ('image') {\n <lib-image [field]=\"field()\" />\n }\n @case ('stepper') {\n <lib-stepper [field]=\"field()\" />\n }\n @case ('journeyStepper') {\n <lib-journey-stepper [field]=\"field()\" />\n }\n @case ('card') {\n <lib-card [field]=\"field()\" />\n }\n @case ('hrLine') {\n <lib-hr-line [field]=\"field()\" />\n }\n @case ('searchMultiSelect') {\n <lib-search-multi-select [field]=\"field()\" />\n }\n @case ('subscriptTextbox') {\n <lib-subscript-textbox [field]=\"field()\" />\n }\n @case ('label') {\n <lib-label [field]=\"field()\" />\n }\n @case ('subHeading') {\n <lib-sub-header [field]=\"field()\" />\n }\n @case ('heading') {\n <lib-header [field]=\"field()\" />\n }\n @case ('table') {\n <lib-table [field]=\"field()\" />\n }\n @case ('textboxWithText') {\n <lib-textbox-with-text [field]=\"field()\" />\n }\n @case ('loader') {\n <lib-loader [field]=\"field()\" />\n }\n @case ('discount') {\n <lib-discount [field]=\"field()\" />\n }\n @case ('discountCard') {\n <lib-discount-card [field]=\"field()\" />\n }\n @case ('discountsApplied') {\n <lib-discounts-applied [field]=\"field()\" (discountPeriodChange)=\"discountPeriodChange.emit($event)\" />\n }\n @case ('additionalBenefits') {\n <lib-additional-benefits [field]=\"field()\" (benefitChange)=\"additionalBenefitChange.emit($event)\" />\n }\n @case ('optionalBenefitCard') {\n <lib-benefit-card [field]=\"field()\" />\n }\n @case ('benefitDetailCard') {\n <lib-benefit-detail-card\n [field]=\"field()\"\n (selectionChange)=\"benefitSelectionChange.emit($event)\"\n (amountChange)=\"benefitAmountChange.emit($event)\"\n (amountBlur)=\"benefitAmountBlur.emit($event)\"\n />\n }\n @case ('errorSnackbar') {\n <lib-error-snackbar [field]=\"field()\" />\n }\n @case ('warningSnackbar') {\n <lib-warning-snackbar [field]=\"field()\" />\n }\n @case ('successSnackbar') {\n <lib-success-snackbar [field]=\"field()\" />\n }\n @case ('neutralSnackbar') {\n <lib-neutral-snackbar [field]=\"field()\" />\n }\n @case ('boldLabel') {\n <lib-grey-label [field]=\"field()\" />\n }\n @case ('iframe') {\n <lib-iframe [field]=\"field()\" />\n }\n @case ('toggleButton') {\n <lib-toggle-button [field]=\"field()\" />\n }\n @case ('payGetCard') {\n <lib-pay-get-card [field]=\"field()\" />\n }\n @case ('inBuiltBenefit') {\n <lib-in-built-benefit [field]=\"field()\" />\n }\n @case ('otherBenefit') {\n <lib-other-benefits [field]=\"field()\" />\n }\n @case ('planBenefitsCard') {\n <lib-plan-benefits-card [field]=\"field()\" [discounts]=\"discounts()\" />\n }\n @case ('annuityRateLogo') {\n <lib-annuity-rate-logo [field]=\"field()\" />\n }\n @case ('discountAnnuity') {\n <lib-discount-v2 [field]=\"field()\" />\n }\n @case ('labelValue'){\n <lib-label-value-card [field]=\"field()\" />\n }\n @case ('medicalQuestions'){\n <lib-medial-questions [field]=\"field()\" />\n }\n @case ('nudge'){\n <lib-page-nudge [field]=\"field()\"/>\n }\n @case ('progressBar'){\n <lib-progress-bar [field]=\"field()\"/>\n }\n @case ('accordian'){\n <lib-accordian [field]=\"field()\"/>\n }\n @case ('miscInfo'){\n <lib-miscellaneous-info-bar [field]=\"field()\"/>\n }\n @case ('plainText'){\n <lib-plain-text [field]=\"field()\"/>\n }\n @case ('menu'){\n <lib-menu [field]=\"field()\" />\n }\n @case ('stepperWithArrow') {\n <lib-stepper-with-arrow [field]=\"field()\" />\n }\n @case ('labelWithImage') {\n <lib-label-with-image [field]=\"field()\" />\n }\n @case ('motorGlowPlanDetails') {\n <lib-motor-glow-plan-details [field]=\"field()\" />\n }\n @case ('premiumToAnnuityCalculator') {\n <lib-annuity-premium-calculator [field]=\"field()\" />\n } @case ('footerProgressBar') {\n <lib-footer-design [field]=\"field()\" />\n }\n @case ('annuityGrowthRateOption') {\n <lib-annuity-calculator-radio [field]=\"field()\" />\n }\n @case ('textboxWithRadio') {\n <lib-textbox-with-radio [field]=\"field()\" />\n }\n @case ('lifeCoverDetails') {\n <lib-life-cover-details\n [field]=\"field()\"\n [coverDetails]=\"field()?.coverDetails\"\n [termDetails]=\"field()?.termDetails\"\n [premiumDetails]=\"field()?.premiumDetails\"\n (sliderValueChange)=\"onLifeCoverSliderValueChange($event)\" />\n }\n @case ('lifeCoverDetailsView') {\n <lib-life-cover-details-view\n [field]=\"field()\"\n [summaryItems]=\"field()?.summaryItems\" />\n }\n @case ('lifeCoverDetailsPostPremiumCalculation') {\n <lib-life-cover-details-post-premium-calculation\n [field]=\"field()\"\n [premiumSummary]=\"field()?.premiumSummary\" />\n }\n @case ('lifeCoverAddonDetails') {\n <lib-life-cover-addon-details\n [field]=\"field()\"\n [addOnConfigData]=\"field()?.addOnConfigData\"\n (addonSelectionChange)=\"onLifeCoverAddonSelectionChange($event)\" />\n }\n @case ('vehicleCoveragePlans') {\n <lib-vehicle-coverage-plans\n [field]=\"field()\"\n [coveragePlansData]=\"field()?.coveragePlansData\" />\n }\n @case ('premiumBreakdown') {\n <lib-premium-breakdown\n [field]=\"field()\"\n [premiumBreakdownData]=\"field()?.premiumBreakdownData\" />\n }\n @case ('premiumBreakup') {\n <lib-premium-breakup [field]=\"field()\" />\n }\n}\n" }]
11002
11263
  }], ctorParameters: () => [], propDecorators: { formGroup: [{
11003
11264
  type: Input
11004
11265
  }], lifeCoverSliderValueChange: [{
@@ -11015,6 +11276,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
11015
11276
  type: Output
11016
11277
  }], discountPeriodChange: [{
11017
11278
  type: Output
11279
+ }], quotePolicyCardEvent: [{
11280
+ type: Output
11018
11281
  }] } });
11019
11282
 
11020
11283
  /*
@@ -11025,5 +11288,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
11025
11288
  * Generated bundle index. Do not edit.
11026
11289
  */
11027
11290
 
11028
- export { AddDocumentComponent, AdditionButtonComponent, AdditionalBenefitCardComponent, AdditionalBenefitsComponent, AgeDateComponent, AmountTextboxComponent, AnnuityCalculatorRadioComponent, AnnuityPremiumCalculatorComponent, AnnuityRateLogoComponent, AutocompleteComponent, BenefitCardComponent, BenefitDetailCardComponent, ButtonComponent, CardComponent, CheckboxComponent, DiscountCardComponent, DiscountComponent, DiscountV2Component, DiscountsAppliedComponent, DobComponent, DownloadDocumentComponent, EmailWithDomainComponent, ErrorSnackbarComponent, FilePreviewComponent, FooterDesignComponent, GreyLabelComponent, HeaderComponent, HrLineComponent, HyperlinkComponent, IconButtonComponent, IframeComponent, ImageComponent, ImageUploadComponent, InBuiltBenefitComponent, InfoComponent, InfoTextboxComponent, JourneyStepperComponent, LabelComponent, LabelValueCardComponent, LabelWithImageComponent, LifeCoverAddonDetailsComponent, LifeCoverDetailsComponent, LifeCoverDetailsPostPremiumCalculationComponent, LifeCoverDetailsViewComponent, LoaderComponent, MY_DATE_FORMAT, MasterControlComponent, MasterControlService, MedialQuestionsComponent, MenuComponent, MobNumberComponent, MotorGlowPlanDetailsComponent, MultipleSelectComponent, NeutralSnackbarComponent, OtherBenefitsComponent, OtpMobNumberComponent, OtpTextboxComponent, PageNudgeComponent, PayGetCardComponent, PlanBenefitsCardComponent, PremiumBreakdownComponent, PremiumBreakupComponent, RadioComponent, SearchMultiSelectComponent, SelectComponent, SelectTextboxComponent, StepperComponent, StepperWIthArrowComponent, SubHeaderComponent, SubscriptTextboxComponent, SuccessSnackbarComponent, SuffixTextboxComponent, TabComponent, TableComponent, TextareaComponent, TextboxComponent, TextboxWithImageComponent, TextboxWithRadioComponent, TextboxWithTextComponent, TextboxWithUnderscoreComponent, ToggleButtonComponent, ToggleComponent, UnderscoreMobNumberComponent, UploadComponent, VehicleCoveragePlansComponent, WarningSnackbarComponent };
11291
+ export { AddDocumentComponent, AdditionButtonComponent, AdditionalBenefitCardComponent, AdditionalBenefitsComponent, AgeDateComponent, AmountTextboxComponent, AnnuityCalculatorRadioComponent, AnnuityPremiumCalculatorComponent, AnnuityRateLogoComponent, AutocompleteComponent, BenefitCardComponent, BenefitDetailCardComponent, ButtonComponent, CardComponent, CheckboxComponent, DiscountCardComponent, DiscountComponent, DiscountV2Component, DiscountsAppliedComponent, DobComponent, DownloadDocumentComponent, EmailWithDomainComponent, ErrorSnackbarComponent, FilePreviewComponent, FooterDesignComponent, GreyLabelComponent, HeaderComponent, HrLineComponent, HyperlinkComponent, IconButtonComponent, IframeComponent, ImageComponent, ImageUploadComponent, InBuiltBenefitComponent, InfoComponent, InfoTextboxComponent, JourneyStepperComponent, LabelComponent, LabelValueCardComponent, LabelWithImageComponent, LifeCoverAddonDetailsComponent, LifeCoverDetailsComponent, LifeCoverDetailsPostPremiumCalculationComponent, LifeCoverDetailsViewComponent, LoaderComponent, MY_DATE_FORMAT, MasterControlComponent, MasterControlService, MedialQuestionsComponent, MenuComponent, MobNumberComponent, MotorGlowPlanDetailsComponent, MultipleSelectComponent, NeutralSnackbarComponent, OtherBenefitsComponent, OtpMobNumberComponent, OtpTextboxComponent, PageNudgeComponent, PayGetCardComponent, PlanBenefitsCardComponent, PremiumBreakdownComponent, PremiumBreakupComponent, QuotePolicyCardComponent, RadioComponent, SearchMultiSelectComponent, SelectComponent, SelectTextboxComponent, StepperComponent, StepperWIthArrowComponent, SubHeaderComponent, SubscriptTextboxComponent, SuccessSnackbarComponent, SuffixTextboxComponent, TabComponent, TableComponent, TextareaComponent, TextboxComponent, TextboxWithImageComponent, TextboxWithRadioComponent, TextboxWithTextComponent, TextboxWithUnderscoreComponent, ToggleButtonComponent, ToggleComponent, UnderscoreMobNumberComponent, UploadComponent, VehicleCoveragePlansComponent, WarningSnackbarComponent };
11029
11292
  //# sourceMappingURL=master-control.mjs.map