tango-app-ui-analyse-trax 3.9.23 → 3.9.24

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.
@@ -2440,11 +2440,11 @@ export class AddChecklistComponent {
2440
2440
  .at(qnIdx).get('answers').get('videoLimit')?.setValue(0);
2441
2441
  }
2442
2442
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AddChecklistComponent, deps: [{ token: i1.PageInfoService }, { token: i2.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: i3.NgbModal }, { token: i4.ActivatedRoute }, { token: i5.ToastService }, { token: i4.Router }, { token: i6.TraxService }, { token: i1.GlobalStateService }], target: i0.ɵɵFactoryTarget.Component });
2443
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: AddChecklistComponent, selector: "lib-add-checklist", viewQueries: [{ propertyName: "formRef", first: true, predicate: ["formRef"], descendants: true }], ngImport: i0, template: "<div class=\"card\" *ngIf=\"checklistLoading\">\r\n <div class=\"row loader d-flex justify-content-center align-items-center\">\r\n <div class=\"shimmer\">\r\n <div class=\"wrapper\">\r\n <div class=\"stroke animate title\"></div>\r\n <div class=\"stroke animate link\"></div>\r\n <div class=\"stroke animate description\"></div>\r\n </div>\r\n </div>\r\n <div class=\"shimmer\">\r\n <div class=\"wrapper\">\r\n <div class=\"stroke animate title\"></div>\r\n <div class=\"stroke animate link\"></div>\r\n <div class=\"stroke animate description\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"!checklistLoading\" id=\"checklistCreate\">\r\n <div class=\"card\">\r\n <ng-container [formGroup]=\"ChecklistForm\">\r\n <div class=\"card-header border-0 pt-3 pb-3\">\r\n <div class=\"row w-100\">\r\n <div class=\"col-md-9\">\r\n <h3 class=\"card-title align-items-center mt-3 mb-0\">\r\n <div routerLink=\"/manage/trax/checklist\" class=\"btn btn-sm btn-outline me-5 ps-2 px-3\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M15.8332 10.0003H4.1665M4.1665 10.0003L9.99984 15.8337M4.1665 10.0003L9.99984 4.16699\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg></div>\r\n <div class=\"flex-column w-800px\">\r\n <div class=\"editablecontent mb-4 w-100\"><input type=\"text\" class=\"checklist plain-input\" #checklistName placeholder=\"Enter Checklist Name\" formControlName=\"checklistName\"></div>\r\n <div class=\"editablecontent w-100\"><input type=\"text\" class=\"checklistDescription plain-input\" #checklistDescription placeholder=\"Enter Checklist Description\" formControlName=\"checklistDescription\"></div>\r\n </div>\r\n </h3>\r\n </div>\r\n <div class=\"col-md-3\">\r\n <div class=\"d-flex my-6 justify-content-end\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <button type=\"button\" class=\"btn btn-primary mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'add'\" (click)=\"saveChecklistQuestions('configure')\"><span class=\"ms-2\">Configure</span>\r\n </button>\r\n \r\n <button type=\"button\" class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'add'\" (click)=\"saveAsDraftPop('create')\"><span class=\"ms-2\">Save as Draft</span> </button>\r\n \r\n <button type=\"button\" class=\"btn btn-primary mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'edit'\" (click)=\"updateChecklistQuestions('configure')\"><span class=\"ms-2\">Configure</span>\r\n </button>\r\n <button type=\"button\" class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'edit'\" (click)=\"saveAsDraftPop('update')\"><span class=\"ms-2\">Save as Draft</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <div class=\"col-lg-3 mt-2\">\r\n <ng-container [formGroup]=\"ChecklistForm\">\r\n <div class=\"section-left card px-7 py-7\">\r\n <div class=\"fs-18px fw-600 text-left mb-3 concise-checklistname\">\r\n {{getFormControl('checklistName').value ? getFormControl('checklistName').value : 'ChecklistName'}}\r\n </div>\r\n <div class=\"left-panel-container\" formArrayName=\"sections\">\r\n <div *ngFor=\"let section of getSectionFormArray().controls;let i=index;\">\r\n <ng-container [formGroupName]=\"i\">\r\n <div class=\"d-flex section align-items-center justify-content-between\">\r\n <div class=\"fs-18px fw-bold editablecontent-left\">{{\r\n getSectionFormControl(i,'name')?.value === '' ? \"Section \" : ''}}{{\r\n getSectionFormControl(i,'name')?.value ? getSectionFormControl(i,'name')?.value\r\n : getSectionFormControl(i,'sectionNumber')?.value}}</div>\r\n <hr class=\"mx-2\">\r\n <svg (click)=\"deleteSection(i)\" xmlns=\"http://www.w3.org/2000/svg\" width=\"35\"\r\n height=\"35\" viewBox=\"0 0 18 18\" matTooltip=\"Delete section\"\r\n matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" fill=\"none\">\r\n <path\r\n d=\"M2.25 4.5H3.75M3.75 4.5H15.75M3.75 4.5V15C3.75 15.3978 3.90804 15.7794 4.18934 16.0607C4.47064 16.342 4.85218 16.5 5.25 16.5H12.75C13.1478 16.5 13.5294 16.342 13.8107 16.0607C14.092 15.7794 14.25 15.3978 14.25 15V4.5H3.75ZM6 4.5V3C6 2.60218 6.15804 2.22064 6.43934 1.93934C6.72064 1.65804 7.10218 1.5 7.5 1.5H10.5C10.8978 1.5 11.2794 1.65804 11.5607 1.93934C11.842 2.22064 12 2.60218 12 3V4.5M7.5 8.25V12.75M10.5 8.25V12.75\"\r\n stroke=\"#667085\" stroke-width=\"1.4\" stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n <svg (click)=\"accordian(i)\" [ngClass]=\"{'rotate' : show !== i}\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"35\" height=\"35\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"#667085\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <ng-container *ngIf=\"show===i\">\r\n <div cdkDropList (cdkDropListDropped)=\"dragDrop(i,$event)\"\r\n [cdkDropListData]=\"getFormArrayQuestions(i).controls\" class=\"question-left\">\r\n <ng-container formArrayName=\"questions\">\r\n <div *ngFor=\"let question of getFormArrayQuestions(i).controls;let j=index;\"\r\n class=\"my-2 cursor-pointer\"\r\n [ngClass]=\"question.get('active')?.value === true ? 'active-question' : 'q-btn'\"\r\n cdkDrag (mouseenter)=\"setActiveQuestion(i,j,1)\"\r\n (click)=\"scrollToQuestion(i,j);\"\r\n (mouseleave)=\"setActiveQuestion(i,j,-1)\">\r\n <ng-container [formGroupName]=\"j\">\r\n <div class=\"concise-question\">\r\n {{getQuestionFormControl(i,j,'qname')?.value ? '' : \"Question\"}}{{ getQuestionFormControl(i,j,'qname')?.value ?\r\n getQuestionFormControl(i,j,'qname')?.value :\r\n getQuestionFormControl(i,j,'qno')?.value }}\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"col-lg-9 mt-2\">\r\n <form [formGroup]=\"ChecklistForm\" #formRef>\r\n <div class=\"card px-7\">\r\n <!-- <div class=\"checklist-card py-5\">\r\n <input type=\"text\" class=\"mt-2\" style=\"text-transform: capitalize;\"\r\n placeholder=\"Enter checklist name here\" formControlName=\"checklistName\">\r\n <input type=\"text\" class=\"mt-4\" placeholder=\"Enter checklist description here\"\r\n formControlName=\"checklistDescription\">\r\n </div> -->\r\n <ng-container formArrayName=\"sections\" >\r\n <div class=\"sectionArea mt-5\" *ngFor=\"let section of getSectionFormArray().controls;let i=index;\">\r\n <ng-container [formGroupName]=\"i\">\r\n <div class=\"section d-flex align-items-center justify-content-between\">\r\n \r\n <div class=\"fs-18px fw-bold editablecontent\"><input type=\"text\" class=\"plain-input\"\r\n #sectionName (change)=\"updateInputValue(i,sectionName.value)\"\r\n formControlName=\"name\"></div>\r\n <hr>\r\n <svg class=\"ml-5\" (click)=\"deleteSection(i)\" xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\" matTooltip=\"Delete section\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 18 18\" fill=\"none\">\r\n <path\r\n d=\"M2.25 4.5H3.75M3.75 4.5H15.75M3.75 4.5V15C3.75 15.3978 3.90804 15.7794 4.18934 16.0607C4.47064 16.342 4.85218 16.5 5.25 16.5H12.75C13.1478 16.5 13.5294 16.342 13.8107 16.0607C14.092 15.7794 14.25 15.3978 14.25 15V4.5H3.75ZM6 4.5V3C6 2.60218 6.15804 2.22064 6.43934 1.93934C6.72064 1.65804 7.10218 1.5 7.5 1.5H10.5C10.8978 1.5 11.2794 1.65804 11.5607 1.93934C11.842 2.22064 12 2.60218 12 3V4.5M7.5 8.25V12.75M10.5 8.25V12.75\"\r\n stroke=\"#667085\" stroke-width=\"1.4\" stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n <svg (click)=\"accordian(i)\" [ngClass]=\"{'rotate' : show !== i}\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"#667085\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <div class=\"questionsArea\" *ngIf=\"show === i\">\r\n <ng-container formArrayName=\"questions\">\r\n <div class=\"Question-sec mt-10\"\r\n *ngFor=\"let question of getFormArrayQuestions(i).controls;let j = index;\"\r\n (mouseenter)=\"setActiveQuestion(i,j,1)\"\r\n (mouseleave)=\"setActiveQuestion(i,j,-1)\">\r\n <ng-container [formGroupName]=\"j\">\r\n <span class=\"fs-18px px-3 editablecontent questiontitle\"\r\n style=\"cursor: default;\"> Question {{j+1}}</span>\r\n \r\n <div class=\"checklist-card pb-5\">\r\n <textarea class=\"form-control form-control-solid\" rows=\"1\"\r\n type=\"text\" class=\"mt-0\" [id]=\"'q-' + i + '-' + j\"\r\n placeholder=\"Enter question here\"\r\n formControlName=\"qname\"></textarea>\r\n <ng-container\r\n *ngIf=\"question.get('qname')?.invalid && question.get('qname')?.touched\">\r\n <p style=\"color: red;\"\r\n *ngIf=\"question.get('qname')?.hasError('required')\">*\r\n Question is required.</p>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"row\"\r\n *ngIf=\"!['descriptiveImage','image','multipleImage','image/video'].includes(question.get('answerType')?.value)\">\r\n <div class=\"col-md-4 w-90 text-center\" *ngFor=\"let image of question.get('multiQuestionReferenceImage')?.value; let m = index\" style=\"position: relative;\">\r\n <div *ngIf=\"image?.imageURL\"\r\n class=\"image-container ref_img_cont mb-4 mt-5\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : onPopup(image.imageURL)\" ngbTooltip=\"Expand\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <input class=\"d-none\" [id]=\"'fileuploadref_1'+i+j+m\" type=\"file\"\r\n name=\"answerFile\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage',m)\">\r\n <label class=\"cursor-pointer\" (click)=\"refImgQIdx=j;\" [for]=\"'fileuploadref_1'+i+j+m\" ngbTooltip=\"Reupload\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : clearReferenceImage(i,j,-1,m,'multiQuestionReferenceImage');\" ngbTooltip=\"Delete\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\" (click)=\"clearReferenceImage(i,j);\">\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n \r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiQuestionReferenceImage')?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\" [id]=\"'fileupload_'+i+j\" type=\"file\"\r\n name=\"answerFile\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage')\">\r\n <label [for]=\"'fileupload_'+i+j\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-2\"\r\n width=\"21\" height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_4082_3122\">\r\n <rect width=\"20\" height=\"20\" fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image\r\n </label>\r\n </div> -->\r\n <div *ngIf=\"question.get('multiQuestionReferenceImage')?.value.length <5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" [id]=\"'fileuploadQnRef1_2'+i+j\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage')\">\r\n <label class=\"pointer\" [for]=\"'fileuploadQnRef1_2'+i+j\"\r\n (click)=\"refImgQIdx=j;\"> \r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image \r\n </label>\r\n </div>\r\n <div *ngIf=\"question.get('multiQuestionReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"checklist-card pb-5\" [ngClass]=\"['image','image/video','multiplechoicesingle','yes/no','date','linearscale'].includes(question.get('answerType')?.value) ? 'col-md-8' :'col-md-12'\">\r\n <select class=\"mt-5\" name=\"selectoption\"\r\n (change)=\"answerTypeSelection(i,j,$event)\"\r\n formControlName=\"answerType\">\r\n <option name=\"descriptive\" value=\"descriptive\">Descriptive\r\n Answer</option>\r\n <option name=\"yes/no\" value=\"yes/no\">A/B Question</option>\r\n <option name=\"multiplechoicesingle\"\r\n value=\"multiplechoicesingle\">Multiple Choice Question -\r\n Single Answer</option>\r\n <option name=\"multiplechoicemultiple\"\r\n value=\"multiplechoicemultiple\">Multiple Choice Question -\r\n Multiple Answer</option>\r\n <option name=\"descriptiveImage\" value=\"descriptiveImage\">Capture\r\n Image with Description</option>\r\n <option name=\"image\" value=\"image\">Capture Image as answer\r\n </option>\r\n <option name=\"video\" value=\"video\">Capture video as answer\r\n </option>\r\n <option name=\"multipleImage\" value=\"multipleImage\">Capture\r\n Multiple Image</option>\r\n <option name=\"date\" value=\"date\">Date - DD/MM/YYYY</option>\r\n <option name=\"linearscale\" value=\"linearscale\">Linear Scale</option>\r\n <option name=\"time\" value=\"time\">Time</option>\r\n <option name=\"imageVideo\" value=\"image/video\">Capture Image/Video as Answer</option>\r\n <option name=\"dropdown\" value=\"dropdown\">Dropdown as an answer</option>\r\n </select>\r\n \r\n </div>\r\n <div class=\"col-md-4\" *ngIf=\"['image','image/video','multiplechoicesingle','yes/no','date','linearscale'].includes(question.get('answerType')?.value)\">\r\n <div class=\"form-check form-switch text-left align-items-center btn-sec mt-10\" >\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\" ngDefaultControl formControlName=\"compliance\" (change)=\"getComplianceToast(i,j,$event)\" [attr.disabled]=\"hasValidationEnabled(i,j) ? true : null\">\r\n <label class=\"form-check-label pointer fs-16px\" for=\"flexSwitchCheckDefault\">Configure Compliance Score</label>\r\n \r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-3 mx-4 d-flex mt-3\" *ngIf=\"['descriptive'].includes(question.get('answerType')?.value)\">\r\n <div class=\"form-check\" >\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" value=\"text\" [name]=\"'descriptivetype'\" [id]=\"'inlineRadio0'+ i + j\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio0'+ i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" value=\"number\" [name]=\"'descriptivetype'\" [id]=\"'inlineRadio1'+ i + j\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio1'+i + j\">Number</label>\r\n </div>\r\n </div>\r\n <ng-container\r\n *ngIf=\"['yes/no','multiplechoicesingle','multiplechoicemultiple','dropdown'].includes(question.get('answerType')?.value)\">\r\n <div class=\"d-flex justify-content-between\">\r\n <div class=\"fs-18px fw-bolder\" style=\"cursor: default;\">Answer Options</div>\r\n <div class=\"form-check form-switch text-left align-items-center btn-sec mt-2\" *ngIf=\"question.get('answerType')?.value == 'dropdown'\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\" ngDefaultControl formControlName=\"allowMultiple\">\r\n <label class=\"form-check-label pointer fs-16px\" for=\"flexSwitchCheckDefault\">Allow Multiple Response</label>\r\n \r\n </div>\r\n </div>\r\n <ng-container formArrayName=\"answers\">\r\n <ng-container\r\n *ngFor=\"let answer of getFormArrayQuestionsAnswer(i,j,'answers')?.controls;let k = index;\">\r\n <div class=\"row\" [formGroupName]=\"k\">\r\n <ng-container *ngIf=\"!answer.get('isdeleted')?.value\">\r\n <div class=\"Answer1\" [ngClass]=\"question.get('compliance')?.value ? 'col-lg-4' : 'col-lg-6'\">\r\n <div class=\"checklist-card pb-0 mt-5\">\r\n <input type=\"text\" class=\"mt-0\"\r\n placeholder=\"Enter answer here\"\r\n formControlName=\"answer\"\r\n (input)=\"onAnswerValueChange(i,j,k)\">\r\n <span class=\"vl\"></span>\r\n <ng-container\r\n *ngIf=\"question.get('answerType')?.value === 'yes/no' || question.get('answerType')?.value === 'multiplechoicesingle'\"\r\n ngDefaultControl>\r\n <span class=\"vl2\"></span>\r\n <svg class=\"imgAdd\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :updateLinked(i,j,k)\">\r\n <path\r\n d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\"\r\n stroke=\"#344054\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"answer.get('answer')?.invalid && answer.get('answer')?.touched\">\r\n <p style=\"color: red;\"\r\n *ngIf=\"answer.get('answer')?.hasError('required')\">\r\n * Answer is required.</p>\r\n </ng-container>\r\n <p style=\"color: red;\"\r\n *ngIf=\"answer.get('showSOPFlagError')?.value === true\">\r\n Every answer can\u2019t be a flag.</p>\r\n \r\n <ng-container formControlName=\"sopFlag\"\r\n ngDefaultControl>\r\n \r\n <svg (click)=\"question.get('disableRunAI')?.value ?'' : raiseflag(i,j,k,true)\"\r\n matTooltip=\"Raise a flag if this answer is selected\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\"\r\n *ngIf=\"answer.get('sopFlag')?.value === false\"\r\n class=\"kiwi\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\" height=\"16\"\r\n viewBox=\"0 0 16 16\">\r\n <path\r\n d=\"M2.66669 10.0007C2.66669 10.0007 3.33335 9.33398 5.33335 9.33398C7.33335 9.33398 8.66669 10.6673 10.6667 10.6673C12.6667 10.6673 13.3334 10.0007 13.3334 10.0007V2.00065C13.3334 2.00065 12.6667 2.66732 10.6667 2.66732C8.66669 2.66732 7.33335 1.33398 5.33335 1.33398C3.33335 1.33398 2.66669 2.00065 2.66669 2.00065V10.0007ZM2.66669 10.0007V14.6673\"\r\n stroke=\"#D0D5DD\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n \r\n <svg (click)=\"question.get('disableRunAI')?.value ?'' : raiseflag(i,j,k,false)\"\r\n matTooltip=\"Raise a flag if this answer is selected\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\"\r\n *ngIf=\"answer.get('sopFlag')?.value === true\"\r\n class=\"active-flag\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\" height=\"16\"\r\n viewBox=\"0 0 16 16\">\r\n <path\r\n d=\"M2.66669 10.0007C2.66669 10.0007 3.33335 9.33398 5.33335 9.33398C7.33335 9.33398 8.66669 10.6673 10.6667 10.6673C12.6667 10.6673 13.3334 10.0007 13.3334 10.0007V2.00065C13.3334 2.00065 12.6667 2.66732 10.6667 2.66732C8.66669 2.66732 7.33335 1.33398 5.33335 1.33398C3.33335 1.33398 2.66669 2.00065 2.66669 2.00065V10.0007ZM2.66669 10.0007V14.6673\"\r\n stroke=\"#D0D5DD\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div [ngClass]=\"question.get('compliance')?.value ? 'col-lg-5' : 'col-lg-6'\"\r\n *ngIf=\"!answer.get('showLinked')?.value\">\r\n <div class=\"d-flex justify-content-between\">\r\n <div class=\"d-flex answervalidation\">\r\n <input class=\"mt-7\" type=\"checkbox\"\r\n style=\"width:16px;height:16px;cursor: pointer;\"\r\n value=\"1\"\r\n (change)=\"getvalidation(i,j,k,$event)\"\r\n formControlName=\"validation\">\r\n <div class=\"chackbox pt-4 mt-2 mx-2\"\r\n style=\"cursor: default;\">\r\n <h3>Validate response</h3>\r\n <p class=\"mb-0\">Trigger an action\r\n for each response to validate it\r\n </p>\r\n </div>\r\n </div>\r\n <svg *ngIf=\"question.get('answerType')?.value !== 'yes/no' && getFormArrayQuestionsAnswer(i,j,'answers').value.length > 2 && !question.get('compliance')?.value\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :deleteAnswer(i,j,k)\"\r\n class=\"mt-8\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n matTooltip=\"Delete answer\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M15 5L5 15M5 5L15 15\"\r\n stroke=\"#667085\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n \r\n </div>\r\n <div class=\"col-md-3\" *ngIf=\"question.get('compliance')?.value\">\r\n <select class=\"w-150px mt-7\" formControlName=\"complianceScore\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n <svg class=\"ms-3\" *ngIf=\"question.get('answerType')?.value !== 'yes/no' && getFormArrayQuestionsAnswer(i,j,'answers').value.length > 2\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :deleteAnswer(i,j,k)\"\r\n class=\"\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n matTooltip=\"Delete answer\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M15 5L5 15M5 5L15 15\"\r\n stroke=\"#667085\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <!-- *ngIf=\"moreqn.validation\" -->\r\n <div *ngIf=\"answer.get('validation')?.value\"\r\n class=\"row\">\r\n <div class=\"col-lg-3 pt-7 fs-4 fw-400 mt-1\">\r\n If the response is this, then\r\n </div>\r\n <div [ngClass]=\"answer.get('validationType')?.value === 'Capture Multiple Image with description' ? 'col-md-6' : 'col-lg-3'\">\r\n <select class=\"mt-5 mx-1\"\r\n formControlName=\"validationType\"\r\n (change)=\"updateValidationType($event,i,j,k)\">\r\n <option [ngValue]=\"'Descriptive Answer'\">Descriptive Answer</option>\r\n <option *ngIf=\"question.get('answerType')?.value !== 'multiplechoicesingle'\" [ngValue]=\"'Capture Image'\">Capture Image</option>\r\n <option *ngIf=\"question.get('answerType')?.value === 'multiplechoicesingle'\" [ngValue]=\"'Capture Multiple Image with description'\">Capture Multiple Image/Video with Description</option>\r\n <option [ngValue]=\"'Capture Video'\">Capture Video</option>\r\n </select>\r\n </div>\r\n <div class=\"col-lg-3 mx-4 d-flex pt-8\" *ngIf=\"answer.get('validationType')?.value === 'Descriptive Answer'\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio2' + i + j + k\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio2' + i + j + k\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio3'+ i + j + k\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio3' + i + j + k\">Number</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\"\r\n *ngIf=\"answer.get('showLinked')?.value\">\r\n <div class=\"col-lg-3 pt-7 fs-4 fw-400 mt-1\">\r\n Linked Question\r\n </div>\r\n <div class=\"col-lg-9\">\r\n <select [id]=\"i+'-'+k\" [name]=\"i+'-'+k\" class=\"mt-5\" (change)=\"updateQuestionType(i,j,k,$event)\" [disabled]=\"question.get('disableRunAI')?.value\">\r\n <option value=\"\">Select Question</option>\r\n <option *ngFor=\"let option of getQuestionList(i,j,k)\" [value]=\"option\"\r\n [selected]=\"selectOption(option,answer.get('linkedQuestion')?.value)\">Question {{option}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row\"\r\n *ngIf=\"answer.get('validation')?.value && (answer.get('validationType')?.value === 'Capture Image' || answer.get('validationType')?.value === 'Capture Multiple Image with description')\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont mb-4 mt-5\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\"\r\n class=\"auto-adju st\" alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ?'' :onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_validref'+i+j+k+n\"\r\n type=\"file\" name=\"answerFile\"\r\n accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,k,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileupload_validref'+i+j+k+n\"\r\n (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ?'' :clearReferenceImage(i,j,k,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\"\r\n (click)=\"clearReferenceImage(i,j,k);\">\r\n <svg width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_'+i+j+k\"\r\n type=\"file\" name=\"answerFile\"\r\n accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,k)\">\r\n <label [for]=\"'fileupload_'+i+j+k\"\r\n (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"mx-2\" width=\"21\"\r\n height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g\r\n clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath\r\n id=\"clip0_4082_3122\">\r\n <rect width=\"20\"\r\n height=\"20\"\r\n fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image</label>\r\n </div> -->\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value.length < 5\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_validImage1'+i+j+k\"\r\n type=\"file\" name=\"file\"\r\n accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,k,'multiReferenceImage')\">\r\n <label class=\"pointer\"\r\n [for]=\"'fileupload_validImage1'+i+j+k\"\r\n (click)=\"refImgQIdx=j;\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div\r\n class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input\r\n class=\"form-check-input mx-0 pointer\"\r\n type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div class=\"col-lg-2\"></div>\r\n <div class=\"col-lg-3 d-flex justify-content-center align-items-center mt-2\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j,k)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,k,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'mt-1' : ''\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_2301_100038)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_2301_100038\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <div *ngIf=\"question.get('answers')?.hasError('duplicateString')\" class=\"text-danger mt-2\">* Same answer cannot be\r\n repeated</div>\r\n <ng-container class=\"row\"\r\n *ngIf=\"['multiplechoicemultiple','multiplechoicesingle','dropdown'].includes(question.get('answerType')?.value) && allowAddAnswer(question.get('answers')?.value) && !question.get('disableRunAI')?.value\">\r\n <div (click)=\"AddMoreAns(i,j,question.get('answerType')?.value)\"\r\n class=\"btn col-lg-12 btn-light-primary my-3\">\r\n Add More Answer</div>\r\n </ng-container>\r\n \r\n </ng-container>\r\n </ng-container>\r\n \r\n <!-- Image -->\r\n <ng-container\r\n *ngIf=\"['image','descriptiveImage','multipleImage'].includes(question.get('answerType')?.value)\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont ref_img_cont mb-4\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\" [id]=\"'fileuploadImage_45'+n\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileuploadImage_45'+n\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '': clearReferenceImage(i,j,-1,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\"\r\n (click)=\"(question.get('answerType')?.value === 'image' && question.get('runAIDefault')?.value) ? '': clearReferenceImage(i,j);\">\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" [style]=\"(question.get('answerType')?.value === 'image' && question.get('runAIDefault')?.value) ? 'cursor:default':''\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\" id=\"fileupload\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event)\" *ngIf=\"(question.get('answerType')?.value !== 'image' || (question.get('answerType')?.value === 'image' && !question.get('runAIDefault')?.value))\">\r\n <label for=\"fileupload\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-2\"\r\n width=\"21\" height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_4082_3122\">\r\n <rect width=\"20\" height=\"20\"\r\n fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image</label>\r\n </div> -->\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length < 5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" id=\"fileuploadrefImage1\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage')\" *ngIf=\"(question.get('answerType')?.value !== 'image' || (question.get('answerType')?.value === 'image' && !question.get('runAIDefault')?.value))\">\r\n <label class=\"pointer\" for=\"fileuploadrefImage1\"\r\n (click)=\"refImgQIdx=j;\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n <div\r\n class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input class=\"form-check-input mx-0 pointer\"\r\n type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div\r\n [ngClass]=\"(['multipleImage'].includes(question.get('answerType')?.value) && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value === '') ? 'col-lg-4 mt-6' : ['image','descriptiveImage'].includes(question.get('answerType')?.value) ? 'col-lg-2' : ''\">\r\n <div class=\"d-flex\" *ngIf=\"(['multipleImage'].includes(question.get('answerType')?.value) && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value === '')\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio4' + i + j\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio4' + i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio5' + i + j\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio5' + i + j\">Number</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value && ['image','multipleImage','descriptiveImage'].includes(question.get('answerType')?.value)\"\r\n [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'col-lg-5 d-flex mt-6' : 'col-lg-3 d-flex justify-content-center align-items-center mt-2'\">\r\n <div class=\"d-flex\" *ngIf=\"question.get('answerType')?.value === 'multipleImage'\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio6' + i + j\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio6' + i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio6' + i + j\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio6' + i + j\">Number</label>\r\n </div>\r\n </div>\r\n <div class=\"d-flex\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,-1,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'mt-1' : ''\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_2301_100038)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_2301_100038\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"['image'].includes(question.get('answerType')?.value) && question.get('compliance')?.value\">\r\n <div formGroupName=\"answers\">\r\n <div class=\"row mt-3 dropText\" >\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3 dropText\" >\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is not matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n <!-- Video -->\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'video'\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div\r\n class=\" col-lg-4 form-check form-switch text-left align-items-center btn-sec mt-2\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\"\r\n name=\"toc\" value=\"1\" ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\">Allow upload from gallery</label>\r\n \r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <!-- <ng-container *ngIf=\"question.get('answerType')?.value === 'time'\" class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\" col-lg-4 btn-sec mt-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-200px\" type=\"time\" name=\"time\" ngDefaultControl formControlName=\"answer\">\r\n </div>\r\n </ng-container>\r\n </ng-container> -->\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'linearscale'\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Select Type\r\n </div>\r\n <div class=\"mt-2\">\r\n <select class=\"\" formControlName=\"linearType\" (change)=\"updateNumber($event,i,j)\">\r\n <option value=\"degree\">Degree \u00B0C</option>\r\n <option value=\"number\">Whole Number</option>\r\n <option value=\"percentage\">Percentage</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Min Value\r\n </div>\r\n <div class=\"mt-2\">\r\n <lib-counter style=\"width: 40%\" formControlName=\"rangeStart\" [step]=\"1\" placeholder=\"0\" [type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value\"></lib-counter>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Max Value\r\n </div>\r\n <div class=\"mt-2\">\r\n <lib-counter style=\"width: 40%\" formControlName=\"rangeEnd\" [step]=\"1\" placeholder=\"0\" [type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value\"></lib-counter>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"question.get('answers')?.invalid && question.get('answers')?.touched\">\r\n <div *ngIf=\"question.get('answers')?.hasError('invalidRange')\" class=\"text-danger mt-2\">* Min value must be less than max value.</div>\r\n </ng-container>\r\n <div *ngIf=\"question.get('compliance')?.value\">\r\n <div class=\"row mt-5\" >\r\n <div class=\"col-md-8\">\r\n <div class=\"d-flex align-items-center flex-nowrap\">\r\n <span class=\"dropText me-2\">If the response is between</span>\r\n <div class=\"btn-sec me-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-100px\" [attr.type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'number'\" [attr.inputmode]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'numeric'\" name=\"start\" ngDefaultControl formControlName=\"minValue\" [min]=\"question.get('answers')?.get('rangeStart')?.value\" [max]=\"question.get('answers')?.get('rangeEnd')?.value\" (input)=\"onRangeValueInput($event, i, j, 'minValue')\" (blur)=\"clampRangeInput(i, j, 'minValue')\" /> \r\n </div>\r\n <span class=\"btn-sec me-2 align-self-center\">to</span>\r\n <div class=\"btn-sec me-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-100px\" [attr.type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'number'\" [attr.inputmode]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'numeric'\" name=\"start\" ngDefaultControl formControlName=\"maxValue\" [min]=\"question.get('answers')?.get('rangeStart')?.value\" [max]=\"question.get('answers')?.get('rangeEnd')?.value\" (input)=\"onRangeValueInput($event, i, j, 'maxValue')\" (blur)=\"clampRangeInput(i, j, 'maxValue')\">\r\n </div>\r\n <span class=\"dropText ms-1\">, then the score will be</span>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4 text-end\">\r\n <select class=\"w-150px ms-14\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3\">\r\n <div class=\"dropText mt-5 col-md-8\">\r\n If the response is other than the selected range, then the score will be \r\n </div>\r\n <div class=\"col-md-4 text-end\">\r\n <select class=\"w-150px ms-14\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'date'\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\"d-flex answervalidation\">\r\n <input class=\"\" type=\"checkbox\"\r\n style=\"width:16px;height:16px;cursor: pointer;\"\r\n value=\"1\"\r\n formControlName=\"historicDate\">\r\n <div class=\"checkbox mt-1 mx-2\"\r\n style=\"cursor: default;\">\r\n <h3>Allow Historic Dates on Date Picker</h3>\r\n </div>\r\n </div>\r\n <div *ngIf=\"question.get('compliance')?.value\">\r\n <div class=\"d-flex mt-5\">\r\n <div class=\"rangeText\">Select Range from</div>\r\n <div class=\"col-md-3 px-4 pe-3\" id=\"dateclass\"\r\n data-kt-daterangepicker=\"true\" data-kt-daterangepicker-opens=\"left\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n stroke=\"#344054\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input class=\"fx-date-range form-control ps-14\" type=\"text\"\r\n matInput ngxDaterangepickerMd [singleDatePicker]=\"true\"\r\n [drops]=\"'down'\" [opens]=\"'right'\"\r\n [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"true\"\r\n autocomplete=\"off\"\r\n [autoApply]=\"true\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (datesUpdated)=\"dateRange($event,'start',i,j)\" name=\"daterange\"\r\n [readonly]=\"true\" formControlName=\"qnStartDate\" [showDropdowns]=\"true\"/> \r\n </div>\r\n </div>\r\n <div class=\"rangeText\">To</div>\r\n <div class=\"col-md-3 px-4 pe-3\" id=\"dateclass\"\r\n data-kt-daterangepicker=\"true\" data-kt-daterangepicker-opens=\"left\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n stroke=\"#344054\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input class=\"fx-date-range form-control ps-14\" type=\"text\"\r\n matInput ngxDaterangepickerMd [singleDatePicker]=\"true\"\r\n [drops]=\"'down'\" [opens]=\"'right'\"\r\n [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"true\"\r\n autocomplete=\"off\" \r\n [autoApply]=\"true\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (datesUpdated)=\"dateRange($event,'end',i,j)\" name=\"daterange\"\r\n [readonly]=\"true\" formControlName=\"qnEndDate\" [showDropdowns]=\"true\"/>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mt-5 dropText\" >\r\n <div class=\"mt-3\">\r\n If the response date is between the selected range, then the score will be\r\n </div>\r\n <div>\r\n <select class=\"w-150px ms-14\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mt-3 dropText\" >\r\n <div class=\"mt-3\">\r\n If the response date is other than the selected range, then the score will be\r\n </div>\r\n <div>\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'image/video'\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont ref_img_cont mb-4\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_zoom)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_zoom\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_zoom\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_zoom\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\" [id]=\"'fileuploadIV_'+i+j+n\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileuploadIV_'+i+j+n\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_upload)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_upload\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_upload\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_upload\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : clearReferenceImage(i,j,-1,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_del)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_del\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_del\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_del\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length < 5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" [id]=\"'fileuploadrefImageIV'+i+j\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage')\">\r\n <label class=\"pointer\" [for]=\"'fileuploadrefImageIV'+i+j\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\" stroke=\"#009BF3\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span>\r\n </label>\r\n </div>\r\n <div class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\" for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div class=\"col-lg-2\"></div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value && question.get('answerType')?.value === 'image/video'\"\r\n [ngClass]=\"'col-lg-3 d-flex justify-content-center align-items-center mt-2'\">\r\n <div class=\"d-flex\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,-1,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_iv_runai_info)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_iv_runai_info\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"question.get('compliance')?.value\">\r\n <span class=\"limitComplianceText\">Compliance score is applicable only for image outputs, not for video.</span>\r\n <div class=\"row mt-3 dropText\">\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3 dropText\">\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is not matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <div\r\n class=\" col-lg-4 form-check form-switch text-left align-items-center btn-sec mt-5\" *ngIf=\"userType && userType === 'tango'\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\"\r\n name=\"toc\" value=\"1\" ngDefaultControl\r\n formControlName=\"limit\" (change)=\"updateLimit($event,i,j)\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\">Set Limits </label>\r\n <svg ngbTooltip=\"Uploads are allowed as per the configured image/video limits\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\" matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" ng-reflect-ng-class=\"\"><g clip-path=\"url(#clip0_2301_100038)\"><path d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></g><defs><clipPath id=\"clip0_2301_100038\"><rect width=\"16\" height=\"16\" fill=\"white\"></rect></clipPath></defs></svg>\r\n \r\n </div>\r\n <div\r\n class=\" col-lg-12 form-check form-switch text-left align-items-center btn-sec mt-5\" *ngIf=\"getAnswerFormGroup_FormControl(i,j,'limit')?.value\">\r\n <div class=\"d-flex\">\r\n <div class=\"me-3 mt-3\">Attach</div>\r\n <div class=\"w-70px me-3\">\r\n <select formControlName=\"imageLimit\">\r\n <option value=\"1\">1</option>\r\n <option value=\"2\">2</option>\r\n <option value=\"3\">3</option>\r\n <option value=\"4\">4</option>\r\n <option value=\"5\">5</option>\r\n </select>\r\n </div>\r\n <div class=\"me-3 mt-3\">images and</div>\r\n <div class=\"w-70px me-3\">\r\n <select formControlName=\"videoLimit\" placeholder=\"-\">\r\n <option value=\"1\">1</option>\r\n <option value=\"2\">2</option>\r\n <option value=\"3\">3</option>\r\n <option value=\"4\">4</option>\r\n <option value=\"5\">5</option>\r\n </select>\r\n </div>\r\n <div class=\"me-3 mt-3\">\r\n Videos.\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"limitTooltipText mt-3\" *ngIf=\"getAnswerFormGroup_FormControl(i,j,'limit')?.value && (getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value || getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value)\">\r\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\" matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" ng-reflect-ng-class=\"\"><g clip-path=\"url(#clip0_2301_100038)\"><path d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></g><defs><clipPath id=\"clip0_2301_100038\"><rect width=\"16\" height=\"16\" fill=\"white\"></rect></clipPath></defs></svg>\r\n Checklist fillers must capture/upload {{ getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value ? getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value + ' image' + (getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value > 1 ? 's' : '') : '' }} {{ getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value ? ' and ' + getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value + ' video' + (getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value > 1 ? 's' : '') : '' }}\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n <div class=\"d-flex justify-content-end py-2\">\r\n <div class=\"pt-1\" >\r\n <svg (click)=\"question.get('disableRunAI')?.value ? '' : cloneQuestion(i,j)\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n matTooltip=\"Duplicate\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_3385_10578)\">\r\n <path\r\n d=\"M4.16663 12.4993H3.33329C2.89127 12.4993 2.46734 12.3238 2.15478 12.0112C1.84222 11.6986 1.66663 11.2747 1.66663 10.8327V3.33268C1.66663 2.89065 1.84222 2.46673 2.15478 2.15417C2.46734 1.84161 2.89127 1.66602 3.33329 1.66602H10.8333C11.2753 1.66602 11.6992 1.84161 12.0118 2.15417C12.3244 2.46673 12.5 2.89065 12.5 3.33268V4.16602M9.16663 7.49935H16.6666C17.5871 7.49935 18.3333 8.24554 18.3333 9.16602V16.666C18.3333 17.5865 17.5871 18.3327 16.6666 18.3327H9.16663C8.24615 18.3327 7.49996 17.5865 7.49996 16.666V9.16602C7.49996 8.24554 8.24615 7.49935 9.16663 7.49935Z\"\r\n [attr.stroke]=\"question.get('disableRunAI')?.value ? '#D0D5DD' : '#667085'\" stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_3385_10578\">\r\n <rect width=\"20\" height=\"20\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n <svg (click)=\"question.get('disableRunAI')?.value ? '' : deleteQuestion(i,j)\"\r\n style=\"margin-left: 24px !important;\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n matTooltip=\"Delete question\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 20 20\"\r\n fill=\"none\" [ngbTooltip]=\"question.get('disableRunAI')?.value ? 'The delete option is disabled as the runAI is enabled' : ''\">\r\n <path\r\n d=\"M2.5 4.99935H4.16667M4.16667 4.99935H17.5M4.16667 4.99935V16.666C4.16667 17.108 4.34226 17.532 4.65482 17.8445C4.96738 18.1571 5.39131 18.3327 5.83333 18.3327H14.1667C14.6087 18.3327 15.0326 18.1571 15.3452 17.8445C15.6577 17.532 15.8333 17.108 15.8333 16.666V4.99935H4.16667ZM6.66667 4.99935V3.33268C6.66667 2.89065 6.84226 2.46673 7.15482 2.15417C7.46738 1.84161 7.89131 1.66602 8.33333 1.66602H11.6667C12.1087 1.66602 12.5326 1.84161 12.8452 2.15417C13.1577 2.46673 13.3333 2.89065 13.3333 3.33268V4.99935M8.33333 9.16602V14.166M11.6667 9.16602V14.166\"\r\n [attr.stroke]=\"question.get('disableRunAI')?.value ? '#D0D5DD' : '#667085'\" stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <div>\r\n <div class=\"row mx-0\">\r\n <div class=\"col-lg-4 px-0\" *ngIf=\"ChecklistForm.get('sections')\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"bulkUploadQuestion()\" class=\"mt-2 btn-sec pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>Bulk Upload Questions</div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-4 pl-5\" *ngIf=\"ChecklistForm.get('sections')\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"addNewQuestion(sectionIndex)\" class=\"mt-2 btn-sec pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg> Add New Question</div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-4 pl-5\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"addNewSection()\" class=\"mt-2 px-0 btn-sec pointer\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg> Add New Section</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</div>", styles: [".checklist-card div,input[type=text]:not(.plain-input),input[type=time],input[type=number],select{color:#101828;border:1px solid #D0D5DD;box-shadow:0 1px 2px #1018280d;border-radius:8px;font-size:16px;width:100%;padding:10px 14px;font-family:Inter;font-weight:400;line-height:24px}.checklist-card input{padding-right:20%}.card{border-radius:16px}.row>*{padding-right:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}input[type=checkbox]:focus{border:none!important;outline:none!important;box-shadow:none!important}input:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}select{-webkit-appearance:none!important;-moz-appearance:none!important;height:45px;width:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAUCAMAAACtdX32AAAAdVBMVEUAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhMdQaAAAAJ3RSTlMAAAECAwQGBwsOFBwkJTg5RUZ4eYCHkJefpaytrsXGy8zW3+Do8vNn0bsyAAAAYElEQVR42tXROwJDQAAA0Ymw1p9kiT+L5P5HVEi3qJn2lcPjtIuzUIJ/rhIGy762N3XaThqMN1ZPALsZPEzG1x8LrFL77DHBnEMxBewz0fJ6LyFHTPL7xhwzWYrJ9z22AqmQBV757MHfAAAAAElFTkSuQmCC);background-position:100%;background-repeat:no-repeat}select:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}textarea:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}textarea,select{color:#101828;border:1px solid #D0D5DD;box-shadow:0 1px 2px #1018280d;border-radius:8px;font-size:16px;width:100%;padding:10px 14px;font-family:Inter;font-weight:400;line-height:24px}.btn-outline{border:1px solid lightgrey;padding:calc(.75rem + 1px) calc(1.5rem + 1px)}.btn-light-primary{color:var(--primary-700, #009BF3);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;line-height:24px;text-transform:capitalize}.newbutton{border:1px solid lightgrey;padding:calc(.75rem + 1px) calc(1.5rem + 1px);color:#000;background-color:#fff}.newbutton:hover,.newbutton:active{background-color:#009bf3;color:#fff}.btn.btn-light-primary:hover:not(.btn-active),.btn-light-primary:active{color:var(--primary-700, #009BF3);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;outline:none!important;background-color:#d1f0ff82!important}.ml-5{margin-left:10px}.pl-5{padding-left:10px!important}.btn-left{display:inline-block;width:100%;font-size:16px;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important}.card hr{width:-webkit-fill-available}.card{height:100%!important}.rotate{transform:rotate(180deg);transition:1s}.hidesec{visibility:hidden;opacity:.1;transition:1s}.fs-16px{font-size:16px}.card svg{margin-left:5px!important;cursor:pointer}.form-switch,.form-check-label{padding-left:5px!important}.webkitwidth{width:-webkit-fill-available}.fs-18px{font-size:18px;color:var(--black, #000);font-family:inter}.Answer1 .checklist-card,.Answer2 .checklist-card{position:relative}.Answer1 svg,.Answer2 svg{position:absolute;top:15px;right:15px}.Answer1 .imgAdd,.Answer2 .imgAdd{position:absolute;top:13px!important;right:57px!important}.Answer1 .flag,.Answer2 .flag{color:red!important}.Answer1 .flag>.flag-path,.Answer2 .flag>.flag-path{fill:red!important;stroke:red}.Answer1 .vl,.Answer2 .vl{position:absolute;top:1px;right:45px;border-left:1px solid #D0D5DD;height:43px}.Answer1 .vl2,.Answer2 .vl2{position:absolute;top:1px;right:90px;border-left:1px solid #D0D5DD;height:43px}.Answer1 svg:hover,.Answer2 svg:hover{fill:#d0d5dd!important}.editablecontent{display:inline-block;max-width:60ch;white-space:nowrap;outline:none!important;border:none!important;box-shadow:none!important;overflow:hidden!important;text-overflow:ellipsis!important}.editablecontent-left{display:inline-block;width:180px;white-space:nowrap;outline:none!important;border:none!important;box-shadow:none!important;overflow:hidden!important;text-overflow:ellipsis!important}[contenteditable]{outline:0px solid transparent}.min-width-popup{min-width:46%!important}.max-w-128px{max-width:128px}.fw-600{font-weight:600!important}.fw-400{font-weight:400}.footer1 span{color:#000;font-family:inter;font-size:14px;font-weight:500px;line-height:20px}.footer1 a{font-family:inter;font-size:14px;font-weight:600;text-decoration:underline;color:var(--primary-700, #009BF3)}.footer1 a:hover{color:var(--primary-700, #009BF3);text-decoration-line:underline!important;text-decoration-thickness:1px!important}.btn-sec{color:var(--gray-700, #344054)!important;font-family:Inter;font-size:14px;font-style:normal;font-weight:500!important;line-height:24px}.form-check-label{color:var(--gray-700, #344054)!important}.question-left{max-height:63vh;overflow:auto;overflow-x:hidden}.Question-sec{position:relative;border-radius:8px;border:1px solid var(--gray-300, #D0D5DD);background:var(--gray-50, #F9FAFB);width:100%;padding:24px 16px 16px}.Question-sec .questiontitle{position:absolute;top:-15px;background-color:#fff;border:1px solid var(--gray-300, #D0D5DD)!important;border-radius:8px}.Question-sec h3{color:var(--gray-700, #344054);font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:20px;margin-bottom:0!important}.Question-sec .fs16-600{font-size:14px;font-style:normal;font-weight:600;line-height:20px}.Question-sec p{color:var(--gray-500, #667085);font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.swal2-confirm{font-family:Inter!important;font-size:30px!important;background-color:var(--white, #FFF)!important;border:solid var(--gray-300, #D0D5DD)!important}.Overlay{top:0;left:0;width:100%;height:100%;z-index:200!important;position:fixed;background:#58575799}.popup{position:absolute;top:50%;left:50%;opacity:1;transform:translate(-50%,-50%);background:var(--white, #FFF);border-radius:12px!important;border-radius:12px;box-shadow:0 8px 8px -4px #10182808,0 20px 24px -4px #10182814;padding:30px;width:400px;height:fit-content}.kiwi:hover{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi:hover path{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi{fill:#fff!important;stroke:#d0d5dd!important}.kiwi path{fill:#fff!important;stroke:#d0d5dd!important}.kiwi:active{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi:active path{fill:#d0d5dd!important;stroke:#d0d5dd!important}.active-flag{fill:red!important;stroke:red!important}.active-flag path{fill:red!important;stroke:red!important}.active-flag:active{fill:red!important;stroke:red!important}.active-flag:active path{fill:red!important;stroke:red!important}.toasttitile{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}.ref_del_icon{position:absolute;top:24px;right:24px;transform:translate(50%,-50%);padding:6px;border-radius:8px;border:1px solid var(--error-50, #FEF3F2);background:var(--error-50, #FEF3F2);box-shadow:0 1px 2px #1018280d}.ref_del_icon svg{margin:0!important}.ref_img_cont{position:relative}::ng-deep .swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;min-width:2em;height:0em;margin:0 .5em 0 0}::ng-deep .listitem{display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:.5rem 1rem;background-color:#f3f6f9;margin-top:.75rem;border-radius:.42rem}::ng-deep .toasttitile{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}::ng-deep .list{overflow-y:auto}::ng-deep .listitemlabel{font-size:13px!important;font-weight:600;font-family:Inter;color:#7e8299}::ng-deep .swal2-container{padding:.4em!important}::ng-deep .swal2-icon{border:1px solid white!important}::ng-deep body.swal2-toast-shown .swal2-container{width:500px!important}::ng-deep .swal2-popup.swal2-toast{border-left:4px solid #009EF7}::ng-deep .swal2-popup.swal2-toast .swal2-title{margin:9px 5px auto!important}::ng-deep .label{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}::ng-deep .custom-test{color:var(--gray-700, #344054)!important;text-align:start;font-family:Inter;font-size:12px;font-style:normal;border-radius:8px;box-shadow:0 4px 6px -2px #10182808,0 12px 16px -4px #10182814;font-weight:600;line-height:18px;background:#fff}.text-gray-700{color:#344054!important}.mandatoryfield input,.answervalidation input{border:none;padding:0!important}.mandatoryfield input[type=checkbox],.answervalidation input[type=checkbox]{width:16px!important;height:16px!important;margin:5px;border-radius:4px!important;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;outline:1px solid var(--gray-600, #D0D5DD)!important;box-shadow:none;font-size:.5em;text-align:center;line-height:1em;background:#fff}.mandatoryfield input[type=checkbox]:checked,.answervalidation input[type=checkbox]:checked{outline:1px solid var(--primary-600, #00A3FF)!important;background-color:var(--primary-50, #EAF8FF)}.mandatoryfield input[type=checkbox]:checked:after,.answervalidation input[type=checkbox]:checked:after{content:\"\";transform:rotate(45deg);border-bottom:2px solid #00A3FF;border-right:2px solid #00A3FF;display:inline-block;width:.5em;padding-left:3px;padding-top:10px;padding-right:0}.concise-checklistname{display:inline-block;width:100%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important;text-transform:capitalize}.concise-question{display:inline-block;width:100%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left}.active-question{color:var(--primary-700, #009BF3);font-size:16px;font-style:normal;font-weight:500;line-height:24px;display:flex;padding:8px 12px;align-items:center;gap:105px;align-self:stretch;border-radius:6px;background:var(--primary-50, #EAF8FF)}.q-btn{color:var(--gray-700, #344054);font-size:16px;font-style:normal;font-weight:500;line-height:24px;display:flex;padding:8px 12px;align-items:center;gap:105px;align-self:stretch;border-radius:6px;background:var(--primary-50, white)}.pointer{cursor:pointer}select option{padding:4px}.add-ref-btn{border-radius:8px;border:1px solid var(--primary-50, #EAF8FF);box-shadow:0 1px 2px #1018280d;padding:14px 0!important}::ng-deep .form-switch .form-check-input{border:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='rgba(255, 255, 255, 1)'/%3E%3C/svg%3E\")!important}::ng-deep .form-switch .form-check-input:not(:checked){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='rgba(255, 255, 255, 1)'/%3E%3C/svg%3E\")!important;background-color:var(--gray-100, #F2F4F7)!important}.plain-input{border:none;outline:none;background:transparent;padding:0;margin:0;width:100%;overflow:hidden;color:var(--black, #101828);text-overflow:ellipsis;font-family:Inter;font-size:18px;font-style:normal;font-weight:500;line-height:28px}.plain-input:focus{border-radius:0!important;border:white!important;outline:none!important;box-shadow:none!important}.auto-adjust{max-width:100%;max-height:100%;object-fit:contain;background-color:#fff}.createbuttons{padding:10px 18px;justify-content:center;align-items:center;gap:8px;border-radius:8px;border:1px solid var(--primary-600, #00A3FF);background:var(--primary-600, #00A3FF);box-shadow:0 1px 2px #1018280d}.create{color:var(--white, #FFF);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;line-height:24px;text-transform:capitalize}.savedraft{border-radius:8px;border:1px solid var(--gray-300, #D0D5DD);background:var(--white, #FFF);padding:10px 18px;justify-content:center;align-items:center;gap:8px;box-shadow:0 1px 2px #1018280d}.savedraft:hover{background:#f3f8fd!important;border:1px solid var(--gray-300, #D0D5DD)!important}.savedrafttext{color:var(--gray-700, #344054);font-family:Inter;font-size:16px;font-weight:600;line-height:24px;text-transform:capitalize}.questionsArea{overflow-y:scroll;padding:4px}::ng-deep .questionsArea::-webkit-scrollbar-thumb{-webkit-border-radius:10px!important;border-radius:10px!important;background:var(--gray-100, #eaeaea)!important;height:50px!important}::ng-deep .questionsArea::-webkit-scrollbar{width:10px!important}::ng-deep .questionsArea::-webkit-scrollbar-track{background:none!important;box-shadow:none!important}::ng-deep .swal2-html-container{overflow:hidden!important}.ansoptions{color:var(--gray-700, #344054);font-family:Inter;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.checklist{font-family:Inter;font-size:20px;font-weight:600;line-height:28px;text-align:left;color:#667085!important}.checklistDescription{font-family:Inter;font-size:14px;font-weight:400;line-height:18px;text-align:left}.dscriptiveType{font-size:15px!important}.loader .title{width:65%}.loader .link{width:85%}.loader .description{width:95%}.loader .shimmer{padding:15px;width:95%;height:120px;margin:10px auto;background:#fff}.loader .shimmer .image-card{height:90px;width:90px;float:right;border-radius:8px}.loader .stroke{height:15px;background:#777;margin-top:20px}.loader .wrapper{width:0px;animation:fullView .5s forwards linear}@keyframes fullView{to{width:100%}}.loader .animate{animation:shimmer 3s;animation-iteration-count:infinite;background:linear-gradient(to right,#e6e6e6 5%,#ccc 25%,#e6e6e6 35%);background-size:1000px 100%}@keyframes shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}.image-container{position:relative;display:inline-block}.base-image{display:block;width:100%;height:auto}.overlay-icons{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;gap:10px;opacity:0;transition:opacity .3s ease}.image-container:hover .overlay-icons{opacity:1}.overlay-icons button{background:#fffc;border:none;border-radius:50%;padding:10px;cursor:pointer}.overlay-icons button:hover{background:#fff}.btn-light-disbaled{color:var(--Primary-300, #6BCAFF)!important;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:20px;text-transform:capitalize}.borderCard{border-radius:8px;border:1px solid var(--Primary-25, #F6FCFF);background:var(--Primary-25, #F6FCFF);box-shadow:0 1px 2px #1018280d}:host::ng-deep #checklistCreate .md-drppicker .dropdowns:first-child{width:115px!important}:host::ng-deep #checklistCreate .md-drppicker .dropdowns:nth-child(2){width:56px!important}:host::ng-deep #checklistCreate .md-drppicker .btn{line-height:10px!important}:host::ng-deep #checklistCreate .daterangepicker-input+.ngx-daterangepicker-material .applyBtn{display:none}:host::ng-deep #checklistCreate .md-drppicker.drops-down-right.ltr.show-ranges.shown{top:65px!important}:host::ng-deep #checklistCreate .md-drppicker.drops-down-right.ltr.double.show-ranges.shown{top:65px!important;right:-475px!important;left:unset!important;height:400px!important}:host::ng-deep #checklistCreate .md-drppicker .btn{border-radius:8px!important;border:1px solid var(--Primary-600, #00A3FF)!important;background:var(--Primary-600, #00A3FF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--White, #FFF)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize}:host::ng-deep #checklistCreate .md-drppicker .ranges ul li button{padding:12px 16px;width:160px;color:var(--Gray-700, #344054);font-size:14px;font-weight:400;line-height:20px;background:none;border:none;text-align:left;cursor:pointer}:host::ng-deep #checklistCreate .md-drppicker td.active,:host::ng-deep #checklistCreate .md-drppicker td.active:hover{background-color:#029cf4!important;border-radius:20px!important;color:var(--White, #FFF)!important;text-align:center!important;font-size:14px!important;font-weight:500!important;line-height:20px}:host::ng-deep #checklistCreate .md-drppicker.ltr .ranges{float:left;margin-top:10px!important}:host::ng-deep #checklistCreate .md-drppicker td.in-range{background:var(--Primary-50, #EAF8FF)}:host::ng-deep #checklistCreate .md-drppicker .ranges ul li button.active{background:var(--Primary-50, #EAF8FF)!important;border-radius:8px!important;color:var(--Primary-700, #009BF3);font-size:14px!important;font-weight:500!important;line-height:20px!important}:host::ng-deep #checklistCreate table th,:host::ng-deep #checklistCreate table td{width:40px!important;height:40px!important;padding:10px 8px!important}:host::ng-deep #checklistCreate .md-drppicker td.available.prev,:host::ng-deep #checklistCreate .md-drppicker th.available.prev{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep #checklistCreate .md-drppicker td.available.next,:host::ng-deep #checklistCreate .md-drppicker th.available.next{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep #checklistCreate table th{border-bottom:0px solid var(--Gray-200, #EAECF0)!important;background:transparent!important;color:var(--Gray-700, #344054)!important;text-align:center;font-size:16px!important;font-weight:500!important;line-height:24px}:host::ng-deep #checklistCreate .md-drppicker .btn.btn-default{border-radius:8px!important;border:1px solid var(--Gray-300, #D0D5DD)!important;background:var(--White, #FFF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize;margin-right:10px!important}:host::ng-deep #checklistCreate .md-drppicker td.available.invalid-date{text-decoration:line-through;pointer-events:none;color:#a9a9a9}:host::ng-deep #checklistCreate .md-drppicker td.available.today:not(.invalid-date){text-decoration:unset;pointer-events:unset;color:unset}:host::ng-deep #checklistCreate .daterangepicker{display:block!important;top:153.85px!important;left:900px!important;right:0}.rangeText{font-family:Inter;font-weight:500;font-size:16px;line-height:24px;letter-spacing:0%;margin-top:10px;color:#101828}.dropText{color:#101828;font-family:Inter;font-weight:400;font-size:16px;line-height:24px;letter-spacing:0%}.limitTooltipText{font-family:Inter;font-weight:400;font-style:Italic;font-size:12px;line-height:100%;letter-spacing:0%;color:#667085}.limitComplianceText{font-family:Inter;font-weight:500;font-style:Italic;font-size:14px;line-height:100%;letter-spacing:0%;color:#667085}\n"], dependencies: [{ kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.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: i2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i8.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i8.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "directive", type: i9.DaterangepickerDirective, selector: "input[ngxDaterangepickerMd]", inputs: ["minDate", "maxDate", "autoApply", "alwaysShowCalendars", "showCustomRangeLabel", "linkedCalendars", "dateLimit", "singleDatePicker", "showWeekNumbers", "showISOWeekNumbers", "showDropdowns", "isInvalidDate", "isCustomDate", "isTooltipDate", "showClearButton", "customRangeDirection", "ranges", "opens", "drops", "firstMonthDayClass", "lastMonthDayClass", "emptyWeekRowClass", "emptyWeekColumnClass", "firstDayOfNextMonthClass", "lastDayOfPreviousMonthClass", "keepCalendarOpeningWithRange", "showRangeLabelOnInput", "showCancel", "lockStartDate", "timePicker", "timePicker24Hour", "timePickerIncrement", "timePickerSeconds", "closeOnAutoApply", "endKeyHolder", "startKey", "locale", "endKey"], outputs: ["change", "rangeClicked", "datesUpdated", "startDateChanged", "endDateChanged", "clearClicked"] }, { kind: "directive", type: i3.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "component", type: i10.CounterComponent, selector: "lib-counter", inputs: ["step", "placeholder", "max", "type"], outputs: ["onIncrement", "onDecrement"] }] });
2443
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: AddChecklistComponent, selector: "lib-add-checklist", viewQueries: [{ propertyName: "formRef", first: true, predicate: ["formRef"], descendants: true }], ngImport: i0, template: "<div class=\"card\" *ngIf=\"checklistLoading\">\r\n <div class=\"row loader d-flex justify-content-center align-items-center\">\r\n <div class=\"shimmer\">\r\n <div class=\"wrapper\">\r\n <div class=\"stroke animate title\"></div>\r\n <div class=\"stroke animate link\"></div>\r\n <div class=\"stroke animate description\"></div>\r\n </div>\r\n </div>\r\n <div class=\"shimmer\">\r\n <div class=\"wrapper\">\r\n <div class=\"stroke animate title\"></div>\r\n <div class=\"stroke animate link\"></div>\r\n <div class=\"stroke animate description\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"!checklistLoading\" id=\"checklistCreate\">\r\n <div class=\"card\">\r\n <ng-container [formGroup]=\"ChecklistForm\">\r\n <div class=\"card-header border-0 pt-3 pb-3\">\r\n <div class=\"row w-100\">\r\n <div class=\"col-md-9\">\r\n <h3 class=\"card-title align-items-center mt-3 mb-0\">\r\n <div routerLink=\"/manage/trax/checklist\" class=\"btn btn-sm btn-outline me-5 ps-2 px-3\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M15.8332 10.0003H4.1665M4.1665 10.0003L9.99984 15.8337M4.1665 10.0003L9.99984 4.16699\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg></div>\r\n <div class=\"flex-column w-800px\">\r\n <div class=\"editablecontent mb-4 w-100\"><input type=\"text\" class=\"checklist plain-input\" #checklistName placeholder=\"Enter Checklist Name\" formControlName=\"checklistName\"></div>\r\n <div class=\"editablecontent w-100\"><input type=\"text\" class=\"checklistDescription plain-input\" #checklistDescription placeholder=\"Enter Checklist Description\" formControlName=\"checklistDescription\"></div>\r\n </div>\r\n </h3>\r\n </div>\r\n <div class=\"col-md-3\">\r\n <div class=\"d-flex my-6 justify-content-end\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <button type=\"button\" class=\"btn btn-primary mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'add'\" (click)=\"saveChecklistQuestions('configure')\"><span class=\"ms-2\">Configure</span>\r\n </button>\r\n \r\n <button type=\"button\" class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'add'\" (click)=\"saveAsDraftPop('create')\"><span class=\"ms-2\">Save as Draft</span> </button>\r\n \r\n <button type=\"button\" class=\"btn btn-primary mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'edit'\" (click)=\"updateChecklistQuestions('configure')\"><span class=\"ms-2\">Configure</span>\r\n </button>\r\n <button type=\"button\" class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'edit'\" (click)=\"saveAsDraftPop('update')\"><span class=\"ms-2\">Save as Draft</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <div class=\"col-lg-3 mt-2\">\r\n <ng-container [formGroup]=\"ChecklistForm\">\r\n <div class=\"section-left card px-7 py-7\">\r\n <div class=\"fs-18px fw-600 text-left mb-3 concise-checklistname\">\r\n {{getFormControl('checklistName').value ? getFormControl('checklistName').value : 'ChecklistName'}}\r\n </div>\r\n <div class=\"left-panel-container\" formArrayName=\"sections\">\r\n <div *ngFor=\"let section of getSectionFormArray().controls;let i=index;\">\r\n <ng-container [formGroupName]=\"i\">\r\n <div class=\"d-flex section align-items-center justify-content-between\">\r\n <div class=\"fs-18px fw-bold editablecontent-left\">{{\r\n getSectionFormControl(i,'name')?.value === '' ? \"Section \" : ''}}{{\r\n getSectionFormControl(i,'name')?.value ? getSectionFormControl(i,'name')?.value\r\n : getSectionFormControl(i,'sectionNumber')?.value}}</div>\r\n <hr class=\"mx-2\">\r\n <svg (click)=\"deleteSection(i)\" xmlns=\"http://www.w3.org/2000/svg\" width=\"35\"\r\n height=\"35\" viewBox=\"0 0 18 18\" matTooltip=\"Delete section\"\r\n matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" fill=\"none\">\r\n <path\r\n d=\"M2.25 4.5H3.75M3.75 4.5H15.75M3.75 4.5V15C3.75 15.3978 3.90804 15.7794 4.18934 16.0607C4.47064 16.342 4.85218 16.5 5.25 16.5H12.75C13.1478 16.5 13.5294 16.342 13.8107 16.0607C14.092 15.7794 14.25 15.3978 14.25 15V4.5H3.75ZM6 4.5V3C6 2.60218 6.15804 2.22064 6.43934 1.93934C6.72064 1.65804 7.10218 1.5 7.5 1.5H10.5C10.8978 1.5 11.2794 1.65804 11.5607 1.93934C11.842 2.22064 12 2.60218 12 3V4.5M7.5 8.25V12.75M10.5 8.25V12.75\"\r\n stroke=\"#667085\" stroke-width=\"1.4\" stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n <svg (click)=\"accordian(i)\" [ngClass]=\"{'rotate' : show !== i}\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"35\" height=\"35\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"#667085\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <ng-container *ngIf=\"show===i\">\r\n <div cdkDropList (cdkDropListDropped)=\"dragDrop(i,$event)\"\r\n [cdkDropListData]=\"getFormArrayQuestions(i).controls\" class=\"question-left\">\r\n <ng-container formArrayName=\"questions\">\r\n <div *ngFor=\"let question of getFormArrayQuestions(i).controls;let j=index;\"\r\n class=\"my-2 cursor-pointer\"\r\n [ngClass]=\"question.get('active')?.value === true ? 'active-question' : 'q-btn'\"\r\n cdkDrag (mouseenter)=\"setActiveQuestion(i,j,1)\"\r\n (click)=\"scrollToQuestion(i,j);\"\r\n (mouseleave)=\"setActiveQuestion(i,j,-1)\">\r\n <ng-container [formGroupName]=\"j\">\r\n <div class=\"concise-question\">\r\n {{getQuestionFormControl(i,j,'qname')?.value ? '' : \"Question\"}}{{ getQuestionFormControl(i,j,'qname')?.value ?\r\n getQuestionFormControl(i,j,'qname')?.value :\r\n getQuestionFormControl(i,j,'qno')?.value }}\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"col-lg-9 mt-2\">\r\n <form [formGroup]=\"ChecklistForm\" #formRef>\r\n <div class=\"card px-7\">\r\n <!-- <div class=\"checklist-card py-5\">\r\n <input type=\"text\" class=\"mt-2\" style=\"text-transform: capitalize;\"\r\n placeholder=\"Enter checklist name here\" formControlName=\"checklistName\">\r\n <input type=\"text\" class=\"mt-4\" placeholder=\"Enter checklist description here\"\r\n formControlName=\"checklistDescription\">\r\n </div> -->\r\n <ng-container formArrayName=\"sections\" >\r\n <div class=\"sectionArea mt-5\" *ngFor=\"let section of getSectionFormArray().controls;let i=index;\">\r\n <ng-container [formGroupName]=\"i\">\r\n <div class=\"section d-flex align-items-center justify-content-between\">\r\n \r\n <div class=\"fs-18px fw-bold editablecontent\"><input type=\"text\" class=\"plain-input\"\r\n #sectionName (change)=\"updateInputValue(i,sectionName.value)\"\r\n formControlName=\"name\"></div>\r\n <hr>\r\n <svg class=\"ml-5\" (click)=\"deleteSection(i)\" xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\" matTooltip=\"Delete section\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 18 18\" fill=\"none\">\r\n <path\r\n d=\"M2.25 4.5H3.75M3.75 4.5H15.75M3.75 4.5V15C3.75 15.3978 3.90804 15.7794 4.18934 16.0607C4.47064 16.342 4.85218 16.5 5.25 16.5H12.75C13.1478 16.5 13.5294 16.342 13.8107 16.0607C14.092 15.7794 14.25 15.3978 14.25 15V4.5H3.75ZM6 4.5V3C6 2.60218 6.15804 2.22064 6.43934 1.93934C6.72064 1.65804 7.10218 1.5 7.5 1.5H10.5C10.8978 1.5 11.2794 1.65804 11.5607 1.93934C11.842 2.22064 12 2.60218 12 3V4.5M7.5 8.25V12.75M10.5 8.25V12.75\"\r\n stroke=\"#667085\" stroke-width=\"1.4\" stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n <svg (click)=\"accordian(i)\" [ngClass]=\"{'rotate' : show !== i}\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"#667085\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <div class=\"questionsArea\" *ngIf=\"show === i\">\r\n <ng-container formArrayName=\"questions\">\r\n <div class=\"Question-sec mt-10\"\r\n *ngFor=\"let question of getFormArrayQuestions(i).controls;let j = index;\"\r\n (mouseenter)=\"setActiveQuestion(i,j,1)\"\r\n (mouseleave)=\"setActiveQuestion(i,j,-1)\">\r\n <ng-container [formGroupName]=\"j\">\r\n <span class=\"fs-18px px-3 editablecontent questiontitle\"\r\n style=\"cursor: default;\"> Question {{j+1}}</span>\r\n \r\n <div class=\"checklist-card pb-5\">\r\n <textarea class=\"form-control form-control-solid\" rows=\"1\"\r\n type=\"text\" class=\"mt-0\" [id]=\"'q-' + i + '-' + j\"\r\n placeholder=\"Enter question here\"\r\n formControlName=\"qname\"></textarea>\r\n <ng-container\r\n *ngIf=\"question.get('qname')?.invalid && question.get('qname')?.touched\">\r\n <p style=\"color: red;\"\r\n *ngIf=\"question.get('qname')?.hasError('required')\">*\r\n Question is required.</p>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"row\"\r\n *ngIf=\"!['descriptiveImage','image','multipleImage','image/video'].includes(question.get('answerType')?.value)\">\r\n <div class=\"col-md-4 w-90 text-center\" *ngFor=\"let image of question.get('multiQuestionReferenceImage')?.value; let m = index\" style=\"position: relative;\">\r\n <div *ngIf=\"image?.imageURL\"\r\n class=\"image-container ref_img_cont mb-4 mt-5\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : onPopup(image.imageURL)\" ngbTooltip=\"Expand\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <input class=\"d-none\" [id]=\"'fileuploadref_1'+i+j+m\" type=\"file\"\r\n name=\"answerFile\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage',m)\">\r\n <label class=\"cursor-pointer\" (click)=\"refImgQIdx=j;\" [for]=\"'fileuploadref_1'+i+j+m\" ngbTooltip=\"Reupload\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : clearReferenceImage(i,j,-1,m,'multiQuestionReferenceImage');\" ngbTooltip=\"Delete\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\" (click)=\"clearReferenceImage(i,j);\">\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n \r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiQuestionReferenceImage')?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\" [id]=\"'fileupload_'+i+j\" type=\"file\"\r\n name=\"answerFile\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage')\">\r\n <label [for]=\"'fileupload_'+i+j\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-2\"\r\n width=\"21\" height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_4082_3122\">\r\n <rect width=\"20\" height=\"20\" fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image\r\n </label>\r\n </div> -->\r\n <div *ngIf=\"question.get('multiQuestionReferenceImage')?.value.length <5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" [id]=\"'fileuploadQnRef1_2'+i+j\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage')\">\r\n <label class=\"pointer\" [for]=\"'fileuploadQnRef1_2'+i+j\"\r\n (click)=\"refImgQIdx=j;\"> \r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image \r\n </label>\r\n </div>\r\n <div *ngIf=\"question.get('multiQuestionReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"checklist-card pb-5\" [ngClass]=\"['image','image/video','multiplechoicesingle','yes/no','date','linearscale'].includes(question.get('answerType')?.value) ? 'col-md-8' :'col-md-12'\">\r\n <select class=\"mt-5\" name=\"selectoption\"\r\n (change)=\"answerTypeSelection(i,j,$event)\"\r\n formControlName=\"answerType\">\r\n <option name=\"descriptive\" value=\"descriptive\">Descriptive\r\n Answer</option>\r\n <option name=\"yes/no\" value=\"yes/no\">A/B Question</option>\r\n <option name=\"multiplechoicesingle\"\r\n value=\"multiplechoicesingle\">Multiple Choice Question -\r\n Single Answer</option>\r\n <option name=\"multiplechoicemultiple\"\r\n value=\"multiplechoicemultiple\">Multiple Choice Question -\r\n Multiple Answer</option>\r\n <option name=\"descriptiveImage\" value=\"descriptiveImage\">Capture\r\n Image with Description</option>\r\n <option name=\"image\" value=\"image\">Capture Image as answer\r\n </option>\r\n <option name=\"video\" value=\"video\">Capture video as answer\r\n </option>\r\n <option name=\"multipleImage\" value=\"multipleImage\">Capture\r\n Multiple Image</option>\r\n <option name=\"date\" value=\"date\">Date - DD/MM/YYYY</option>\r\n <option name=\"linearscale\" value=\"linearscale\">Linear Scale</option>\r\n <option name=\"time\" value=\"time\">Time</option>\r\n <option name=\"imageVideo\" value=\"image/video\">Capture Image/Video as Answer</option>\r\n <option name=\"dropdown\" value=\"dropdown\">Dropdown as an answer</option>\r\n </select>\r\n \r\n </div>\r\n <div class=\"col-md-4\" *ngIf=\"['image','image/video','multiplechoicesingle','yes/no','date','linearscale'].includes(question.get('answerType')?.value)\">\r\n <div class=\"form-check form-switch text-left align-items-center btn-sec mt-10\" >\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\" ngDefaultControl formControlName=\"compliance\" (change)=\"getComplianceToast(i,j,$event)\" [attr.disabled]=\"hasValidationEnabled(i,j) ? true : null\">\r\n <label class=\"form-check-label pointer fs-16px\" for=\"flexSwitchCheckDefault\">Configure Compliance Score</label>\r\n \r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-3 mx-4 d-flex mt-3\" *ngIf=\"['descriptive'].includes(question.get('answerType')?.value)\">\r\n <div class=\"form-check\" >\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" value=\"text\" [name]=\"'descriptivetype'\" [id]=\"'inlineRadio0'+ i + j\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio0'+ i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" value=\"number\" [name]=\"'descriptivetype'\" [id]=\"'inlineRadio1'+ i + j\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio1'+i + j\">Number</label>\r\n </div>\r\n </div>\r\n <ng-container\r\n *ngIf=\"['yes/no','multiplechoicesingle','multiplechoicemultiple','dropdown'].includes(question.get('answerType')?.value)\">\r\n <div class=\"d-flex justify-content-between\">\r\n <div class=\"fs-18px fw-bolder\" style=\"cursor: default;\">Answer Options</div>\r\n <div class=\"form-check form-switch text-left align-items-center btn-sec mt-2\" *ngIf=\"question.get('answerType')?.value == 'dropdown'\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\" ngDefaultControl formControlName=\"allowMultiple\">\r\n <label class=\"form-check-label pointer fs-16px\" for=\"flexSwitchCheckDefault\">Allow Multiple Response</label>\r\n \r\n </div>\r\n </div>\r\n <ng-container formArrayName=\"answers\">\r\n <ng-container\r\n *ngFor=\"let answer of getFormArrayQuestionsAnswer(i,j,'answers')?.controls;let k = index;\">\r\n <div class=\"row\" [formGroupName]=\"k\">\r\n <ng-container *ngIf=\"!answer.get('isdeleted')?.value\">\r\n <div class=\"Answer1\" [ngClass]=\"question.get('compliance')?.value ? 'col-lg-4' : 'col-lg-6'\">\r\n <div class=\"checklist-card pb-0 mt-5\">\r\n <input type=\"text\" class=\"mt-0\"\r\n placeholder=\"Enter answer here\"\r\n formControlName=\"answer\"\r\n (input)=\"onAnswerValueChange(i,j,k)\">\r\n <span class=\"vl\"></span>\r\n <ng-container\r\n *ngIf=\"question.get('answerType')?.value === 'yes/no' || question.get('answerType')?.value === 'multiplechoicesingle'\"\r\n ngDefaultControl>\r\n <span class=\"vl2\"></span>\r\n <svg class=\"imgAdd\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :updateLinked(i,j,k)\">\r\n <path\r\n d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\"\r\n stroke=\"#344054\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"answer.get('answer')?.invalid && answer.get('answer')?.touched\">\r\n <p style=\"color: red;\"\r\n *ngIf=\"answer.get('answer')?.hasError('required')\">\r\n * Answer is required.</p>\r\n </ng-container>\r\n <p style=\"color: red;\"\r\n *ngIf=\"answer.get('showSOPFlagError')?.value === true\">\r\n Every answer can\u2019t be a flag.</p>\r\n \r\n <ng-container formControlName=\"sopFlag\"\r\n ngDefaultControl>\r\n \r\n <svg (click)=\"question.get('disableRunAI')?.value ?'' : raiseflag(i,j,k,true)\"\r\n matTooltip=\"Raise a flag if this answer is selected\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\"\r\n *ngIf=\"answer.get('sopFlag')?.value === false\"\r\n class=\"kiwi\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\" height=\"16\"\r\n viewBox=\"0 0 16 16\">\r\n <path\r\n d=\"M2.66669 10.0007C2.66669 10.0007 3.33335 9.33398 5.33335 9.33398C7.33335 9.33398 8.66669 10.6673 10.6667 10.6673C12.6667 10.6673 13.3334 10.0007 13.3334 10.0007V2.00065C13.3334 2.00065 12.6667 2.66732 10.6667 2.66732C8.66669 2.66732 7.33335 1.33398 5.33335 1.33398C3.33335 1.33398 2.66669 2.00065 2.66669 2.00065V10.0007ZM2.66669 10.0007V14.6673\"\r\n stroke=\"#D0D5DD\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n \r\n <svg (click)=\"question.get('disableRunAI')?.value ?'' : raiseflag(i,j,k,false)\"\r\n matTooltip=\"Raise a flag if this answer is selected\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\"\r\n *ngIf=\"answer.get('sopFlag')?.value === true\"\r\n class=\"active-flag\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\" height=\"16\"\r\n viewBox=\"0 0 16 16\">\r\n <path\r\n d=\"M2.66669 10.0007C2.66669 10.0007 3.33335 9.33398 5.33335 9.33398C7.33335 9.33398 8.66669 10.6673 10.6667 10.6673C12.6667 10.6673 13.3334 10.0007 13.3334 10.0007V2.00065C13.3334 2.00065 12.6667 2.66732 10.6667 2.66732C8.66669 2.66732 7.33335 1.33398 5.33335 1.33398C3.33335 1.33398 2.66669 2.00065 2.66669 2.00065V10.0007ZM2.66669 10.0007V14.6673\"\r\n stroke=\"#D0D5DD\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div [ngClass]=\"question.get('compliance')?.value ? 'col-lg-5' : 'col-lg-6'\"\r\n *ngIf=\"!answer.get('showLinked')?.value\">\r\n <div class=\"d-flex justify-content-between\">\r\n <div class=\"d-flex answervalidation\">\r\n <input class=\"mt-7\" type=\"checkbox\"\r\n style=\"width:16px;height:16px;cursor: pointer;\"\r\n value=\"1\"\r\n (change)=\"getvalidation(i,j,k,$event)\"\r\n formControlName=\"validation\">\r\n <div class=\"chackbox pt-4 mt-2 mx-2\"\r\n style=\"cursor: default;\">\r\n <h3>Validate response</h3>\r\n <p class=\"mb-0\">Trigger an action\r\n for each response to validate it\r\n </p>\r\n </div>\r\n </div>\r\n <svg *ngIf=\"question.get('answerType')?.value !== 'yes/no' && getFormArrayQuestionsAnswer(i,j,'answers').value.length > 2 && !question.get('compliance')?.value\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :deleteAnswer(i,j,k)\"\r\n class=\"mt-8\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n matTooltip=\"Delete answer\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M15 5L5 15M5 5L15 15\"\r\n stroke=\"#667085\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n \r\n </div>\r\n <div class=\"col-md-3\" *ngIf=\"question.get('compliance')?.value\">\r\n <select class=\"w-150px mt-7\" formControlName=\"complianceScore\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n <svg class=\"ms-3\" *ngIf=\"question.get('answerType')?.value !== 'yes/no' && getFormArrayQuestionsAnswer(i,j,'answers').value.length > 2\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :deleteAnswer(i,j,k)\"\r\n class=\"\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n matTooltip=\"Delete answer\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M15 5L5 15M5 5L15 15\"\r\n stroke=\"#667085\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <!-- *ngIf=\"moreqn.validation\" -->\r\n <div *ngIf=\"answer.get('validation')?.value\"\r\n class=\"row\">\r\n <div class=\"col-lg-3 pt-7 fs-4 fw-400 mt-1\">\r\n If the response is this, then\r\n </div>\r\n <div [ngClass]=\"answer.get('validationType')?.value === 'Capture Multiple Image with description' ? 'col-md-6' : 'col-lg-3'\">\r\n <select class=\"mt-5 mx-1\"\r\n formControlName=\"validationType\"\r\n (change)=\"updateValidationType($event,i,j,k)\">\r\n <option [ngValue]=\"'Descriptive Answer'\">Descriptive Answer</option>\r\n <option *ngIf=\"question.get('answerType')?.value !== 'multiplechoicesingle'\" [ngValue]=\"'Capture Image'\">Capture Image</option>\r\n <option *ngIf=\"question.get('answerType')?.value === 'multiplechoicesingle'\" [ngValue]=\"'Capture Multiple Image with description'\">Capture Multiple Image/Video with Description</option>\r\n <option [ngValue]=\"'Capture Video'\">Capture Video</option>\r\n </select>\r\n </div>\r\n <div class=\"col-lg-3 mx-4 d-flex pt-8\" *ngIf=\"answer.get('validationType')?.value === 'Descriptive Answer'\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio2' + i + j + k\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio2' + i + j + k\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio3'+ i + j + k\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio3' + i + j + k\">Number</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\"\r\n *ngIf=\"answer.get('showLinked')?.value\">\r\n <div class=\"col-lg-3 pt-7 fs-4 fw-400 mt-1\">\r\n Linked Question\r\n </div>\r\n <div class=\"col-lg-9\">\r\n <select [id]=\"i+'-'+k\" [name]=\"i+'-'+k\" class=\"mt-5\" (change)=\"updateQuestionType(i,j,k,$event)\" [disabled]=\"question.get('disableRunAI')?.value\">\r\n <option value=\"\">Select Question</option>\r\n <option *ngFor=\"let option of getQuestionList(i,j,k)\" [value]=\"option\"\r\n [selected]=\"selectOption(option,answer.get('linkedQuestion')?.value)\">Question {{option}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row\"\r\n *ngIf=\"answer.get('validation')?.value && (answer.get('validationType')?.value === 'Capture Image' || answer.get('validationType')?.value === 'Capture Multiple Image with description')\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont mb-4 mt-5\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\"\r\n class=\"auto-adju st\" alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ?'' :onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_validref'+i+j+k+n\"\r\n type=\"file\" name=\"answerFile\"\r\n accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,k,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileupload_validref'+i+j+k+n\"\r\n (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ?'' :clearReferenceImage(i,j,k,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\"\r\n (click)=\"clearReferenceImage(i,j,k);\">\r\n <svg width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_'+i+j+k\"\r\n type=\"file\" name=\"answerFile\"\r\n accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,k)\">\r\n <label [for]=\"'fileupload_'+i+j+k\"\r\n (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"mx-2\" width=\"21\"\r\n height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g\r\n clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath\r\n id=\"clip0_4082_3122\">\r\n <rect width=\"20\"\r\n height=\"20\"\r\n fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image</label>\r\n </div> -->\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value.length < 5\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_validImage1'+i+j+k\"\r\n type=\"file\" name=\"file\"\r\n accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,k,'multiReferenceImage')\">\r\n <label class=\"pointer\"\r\n [for]=\"'fileupload_validImage1'+i+j+k\"\r\n (click)=\"refImgQIdx=j;\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div\r\n class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input\r\n class=\"form-check-input mx-0 pointer\"\r\n type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div class=\"col-lg-2\"></div>\r\n <div class=\"col-lg-3 d-flex justify-content-center align-items-center mt-2\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j,k)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,k,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'mt-1' : ''\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_2301_100038)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_2301_100038\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <div *ngIf=\"question.get('answers')?.hasError('duplicateString')\" class=\"text-danger mt-2\">* Same answer cannot be\r\n repeated</div>\r\n <ng-container class=\"row\"\r\n *ngIf=\"['multiplechoicemultiple','multiplechoicesingle','dropdown'].includes(question.get('answerType')?.value) && allowAddAnswer(question.get('answers')?.value) && !question.get('disableRunAI')?.value\">\r\n <div (click)=\"AddMoreAns(i,j,question.get('answerType')?.value)\"\r\n class=\"btn col-lg-12 btn-light-primary my-3\">\r\n Add More Answer</div>\r\n </ng-container>\r\n \r\n </ng-container>\r\n </ng-container>\r\n \r\n <!-- Image -->\r\n <ng-container\r\n *ngIf=\"['image','descriptiveImage','multipleImage'].includes(question.get('answerType')?.value)\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont ref_img_cont mb-4\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\" [id]=\"'fileuploadImage_45'+n\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileuploadImage_45'+n\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '': clearReferenceImage(i,j,-1,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\"\r\n (click)=\"(question.get('answerType')?.value === 'image' && question.get('runAIDefault')?.value) ? '': clearReferenceImage(i,j);\">\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" [style]=\"(question.get('answerType')?.value === 'image' && question.get('runAIDefault')?.value) ? 'cursor:default':''\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\" id=\"fileupload\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event)\" *ngIf=\"(question.get('answerType')?.value !== 'image' || (question.get('answerType')?.value === 'image' && !question.get('runAIDefault')?.value))\">\r\n <label for=\"fileupload\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-2\"\r\n width=\"21\" height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_4082_3122\">\r\n <rect width=\"20\" height=\"20\"\r\n fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image</label>\r\n </div> -->\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length < 5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" id=\"fileuploadrefImage1\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage')\" *ngIf=\"(question.get('answerType')?.value !== 'image' || (question.get('answerType')?.value === 'image' && !question.get('runAIDefault')?.value))\">\r\n <label class=\"pointer\" for=\"fileuploadrefImage1\"\r\n (click)=\"refImgQIdx=j;\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n <div\r\n class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input class=\"form-check-input mx-0 pointer\"\r\n type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div\r\n [ngClass]=\"(['multipleImage'].includes(question.get('answerType')?.value) && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value === '') ? 'col-lg-4 mt-6' : ['image','descriptiveImage'].includes(question.get('answerType')?.value) ? 'col-lg-2' : ''\">\r\n <div class=\"d-flex\" *ngIf=\"(['multipleImage'].includes(question.get('answerType')?.value) && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value === '')\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio4' + i + j\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio4' + i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio5' + i + j\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio5' + i + j\">Number</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value && ['image','multipleImage','descriptiveImage'].includes(question.get('answerType')?.value)\"\r\n [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'col-lg-5 d-flex mt-6' : 'col-lg-3 d-flex justify-content-center align-items-center mt-2'\">\r\n <div class=\"d-flex\" *ngIf=\"question.get('answerType')?.value === 'multipleImage'\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio6' + i + j\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio6' + i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio6' + i + j\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio6' + i + j\">Number</label>\r\n </div>\r\n </div>\r\n <div class=\"d-flex\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,-1,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'mt-1' : ''\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_2301_100038)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_2301_100038\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"['image'].includes(question.get('answerType')?.value) && question.get('compliance')?.value\">\r\n <div formGroupName=\"answers\">\r\n <div class=\"row mt-3 dropText\" >\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3 dropText\" >\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is not matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n <!-- Video -->\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'video'\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div\r\n class=\" col-lg-4 form-check form-switch text-left align-items-center btn-sec mt-2\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\"\r\n name=\"toc\" value=\"1\" ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\">Allow upload from gallery</label>\r\n \r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <!-- <ng-container *ngIf=\"question.get('answerType')?.value === 'time'\" class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\" col-lg-4 btn-sec mt-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-200px\" type=\"time\" name=\"time\" ngDefaultControl formControlName=\"answer\">\r\n </div>\r\n </ng-container>\r\n </ng-container> -->\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'linearscale'\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Select Type\r\n </div>\r\n <div class=\"mt-2\">\r\n <select class=\"\" formControlName=\"linearType\" (change)=\"updateNumber($event,i,j)\">\r\n <option value=\"degree\">Degree \u00B0C</option>\r\n <option value=\"number\">Whole Number</option>\r\n <option value=\"percentage\">Percentage</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Min Value\r\n </div>\r\n <div class=\"mt-2\">\r\n <lib-counter style=\"width: 40%\" formControlName=\"rangeStart\" [step]=\"1\" placeholder=\"0\" [type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value\"></lib-counter>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Max Value\r\n </div>\r\n <div class=\"mt-2\">\r\n <lib-counter style=\"width: 40%\" formControlName=\"rangeEnd\" [step]=\"1\" placeholder=\"0\" [type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value\"></lib-counter>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"question.get('answers')?.invalid && question.get('answers')?.touched\">\r\n <div *ngIf=\"question.get('answers')?.hasError('invalidRange')\" class=\"text-danger mt-2\">* Min value must be less than max value.</div>\r\n </ng-container>\r\n <div *ngIf=\"question.get('compliance')?.value\">\r\n <div class=\"row mt-5\" >\r\n <div class=\"col-md-8\">\r\n <div class=\"d-flex align-items-center flex-nowrap\">\r\n <span class=\"dropText me-2\">If the response is between</span>\r\n <div class=\"btn-sec me-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-100px\" [attr.type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'number'\" [attr.inputmode]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'numeric'\" name=\"start\" ngDefaultControl formControlName=\"minValue\" [min]=\"question.get('answers')?.get('rangeStart')?.value\" [max]=\"question.get('answers')?.get('rangeEnd')?.value\" (input)=\"onRangeValueInput($event, i, j, 'minValue')\" (blur)=\"clampRangeInput(i, j, 'minValue')\" /> \r\n </div>\r\n <span class=\"btn-sec me-2 align-self-center\">to</span>\r\n <div class=\"btn-sec me-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-100px\" [attr.type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'number'\" [attr.inputmode]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'numeric'\" name=\"start\" ngDefaultControl formControlName=\"maxValue\" [min]=\"question.get('answers')?.get('rangeStart')?.value\" [max]=\"question.get('answers')?.get('rangeEnd')?.value\" (input)=\"onRangeValueInput($event, i, j, 'maxValue')\" (blur)=\"clampRangeInput(i, j, 'maxValue')\">\r\n </div>\r\n <span class=\"dropText ms-1\">, then the score will be</span>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4 text-end\">\r\n <select class=\"w-150px ms-14\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3\">\r\n <div class=\"dropText mt-5 col-md-8\">\r\n If the response is other than the selected range, then the score will be \r\n </div>\r\n <div class=\"col-md-4 text-end\">\r\n <select class=\"w-150px ms-14\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'date'\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\"d-flex answervalidation\">\r\n <input class=\"\" type=\"checkbox\"\r\n style=\"width:16px;height:16px;cursor: pointer;\"\r\n value=\"1\"\r\n formControlName=\"historicDate\">\r\n <div class=\"checkbox mt-1 mx-2\"\r\n style=\"cursor: default;\">\r\n <h3>Allow Historic Dates on Date Picker</h3>\r\n </div>\r\n </div>\r\n <div *ngIf=\"question.get('compliance')?.value\">\r\n <div class=\"d-flex mt-5\">\r\n <div class=\"rangeText\">Select Range from</div>\r\n <div class=\"col-md-3 px-4 pe-3\" id=\"dateclass\"\r\n data-kt-daterangepicker=\"true\" data-kt-daterangepicker-opens=\"left\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n stroke=\"#344054\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input class=\"fx-date-range form-control ps-14\" type=\"text\"\r\n matInput ngxDaterangepickerMd [singleDatePicker]=\"true\"\r\n [drops]=\"'down'\" [opens]=\"'right'\"\r\n [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"true\"\r\n autocomplete=\"off\"\r\n [autoApply]=\"true\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (datesUpdated)=\"dateRange($event,'start',i,j)\" name=\"daterange\"\r\n [readonly]=\"true\" formControlName=\"qnStartDate\" [showDropdowns]=\"true\"/> \r\n </div>\r\n </div>\r\n <div class=\"rangeText\">To</div>\r\n <div class=\"col-md-3 px-4 pe-3\" id=\"dateclass\"\r\n data-kt-daterangepicker=\"true\" data-kt-daterangepicker-opens=\"left\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n stroke=\"#344054\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input class=\"fx-date-range form-control ps-14\" type=\"text\"\r\n matInput ngxDaterangepickerMd [singleDatePicker]=\"true\"\r\n [drops]=\"'down'\" [opens]=\"'right'\"\r\n [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"true\"\r\n autocomplete=\"off\" \r\n [autoApply]=\"true\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (datesUpdated)=\"dateRange($event,'end',i,j)\" name=\"daterange\"\r\n [readonly]=\"true\" formControlName=\"qnEndDate\" [showDropdowns]=\"true\"/>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mt-5 dropText\" >\r\n <div class=\"mt-3\">\r\n If the response date is between the selected range, then the score will be\r\n </div>\r\n <div>\r\n <select class=\"w-150px ms-14\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mt-3 dropText\" >\r\n <div class=\"mt-3\">\r\n If the response date is other than the selected range, then the score will be\r\n </div>\r\n <div>\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'image/video'\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont ref_img_cont mb-4\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_zoom)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_zoom\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_zoom\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_zoom\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\" [id]=\"'fileuploadIV_'+i+j+n\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileuploadIV_'+i+j+n\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_upload)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_upload\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_upload\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_upload\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : clearReferenceImage(i,j,-1,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_del)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_del\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_del\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_del\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length < 5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" [id]=\"'fileuploadrefImageIV'+i+j\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage')\">\r\n <label class=\"pointer\" [for]=\"'fileuploadrefImageIV'+i+j\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\" stroke=\"#009BF3\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span>\r\n </label>\r\n </div>\r\n <div class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\" for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div class=\"col-lg-2\"></div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value && question.get('answerType')?.value === 'image/video'\"\r\n [ngClass]=\"'col-lg-3 d-flex justify-content-center align-items-center mt-2'\">\r\n <div class=\"d-flex\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,-1,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_iv_runai_info)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_iv_runai_info\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"question.get('compliance')?.value\">\r\n <span class=\"limitComplianceText\">Compliance score is applicable only for image outputs, not for video.</span>\r\n <div class=\"row mt-3 dropText\">\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3 dropText\">\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is not matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <div\r\n class=\" col-lg-4 form-check form-switch text-left align-items-center btn-sec mt-5\" *ngIf=\"userType && userType === 'tango'\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\"\r\n name=\"toc\" value=\"1\" ngDefaultControl\r\n formControlName=\"limit\" (change)=\"updateLimit($event,i,j)\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\">Set Limits </label>\r\n <svg ngbTooltip=\"Uploads are allowed as per the configured image/video limits\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\" matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" ng-reflect-ng-class=\"\"><g clip-path=\"url(#clip0_2301_100038)\"><path d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></g><defs><clipPath id=\"clip0_2301_100038\"><rect width=\"16\" height=\"16\" fill=\"white\"></rect></clipPath></defs></svg>\r\n \r\n </div>\r\n <div\r\n class=\" col-lg-12 form-check form-switch text-left align-items-center btn-sec mt-5\" *ngIf=\"getAnswerFormGroup_FormControl(i,j,'limit')?.value\">\r\n <div class=\"d-flex\">\r\n <div class=\"me-3 mt-3\">Attach</div>\r\n <div class=\"w-70px me-3\">\r\n <select formControlName=\"imageLimit\">\r\n <option value=\"1\">1</option>\r\n <option value=\"2\">2</option>\r\n <option value=\"3\">3</option>\r\n <option value=\"4\">4</option>\r\n <option value=\"5\">5</option>\r\n </select>\r\n </div>\r\n <div class=\"me-3 mt-3\">images and</div>\r\n <div class=\"w-70px me-3\">\r\n <select formControlName=\"videoLimit\" placeholder=\"-\">\r\n <option value=\"1\">1</option>\r\n <option value=\"2\">2</option>\r\n <option value=\"3\">3</option>\r\n <option value=\"4\">4</option>\r\n <option value=\"5\">5</option>\r\n </select>\r\n </div>\r\n <div class=\"me-3 mt-3\">\r\n Videos.\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"limitTooltipText mt-3\" *ngIf=\"getAnswerFormGroup_FormControl(i,j,'limit')?.value && (getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value || getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value)\">\r\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\" matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" ng-reflect-ng-class=\"\"><g clip-path=\"url(#clip0_2301_100038)\"><path d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></g><defs><clipPath id=\"clip0_2301_100038\"><rect width=\"16\" height=\"16\" fill=\"white\"></rect></clipPath></defs></svg>\r\n Checklist fillers must capture/upload {{ getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value ? getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value + ' image' + (getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value > 1 ? 's' : '') : '' }} {{ getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value ? ' and ' + getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value + ' video' + (getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value > 1 ? 's' : '') : '' }}\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n <div class=\"d-flex justify-content-end py-2\">\r\n <div class=\"pt-1\" >\r\n <svg (click)=\"question.get('disableRunAI')?.value ? '' : cloneQuestion(i,j)\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n matTooltip=\"Duplicate\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_3385_10578)\">\r\n <path\r\n d=\"M4.16663 12.4993H3.33329C2.89127 12.4993 2.46734 12.3238 2.15478 12.0112C1.84222 11.6986 1.66663 11.2747 1.66663 10.8327V3.33268C1.66663 2.89065 1.84222 2.46673 2.15478 2.15417C2.46734 1.84161 2.89127 1.66602 3.33329 1.66602H10.8333C11.2753 1.66602 11.6992 1.84161 12.0118 2.15417C12.3244 2.46673 12.5 2.89065 12.5 3.33268V4.16602M9.16663 7.49935H16.6666C17.5871 7.49935 18.3333 8.24554 18.3333 9.16602V16.666C18.3333 17.5865 17.5871 18.3327 16.6666 18.3327H9.16663C8.24615 18.3327 7.49996 17.5865 7.49996 16.666V9.16602C7.49996 8.24554 8.24615 7.49935 9.16663 7.49935Z\"\r\n [attr.stroke]=\"question.get('disableRunAI')?.value ? '#D0D5DD' : '#667085'\" stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_3385_10578\">\r\n <rect width=\"20\" height=\"20\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n <svg (click)=\"question.get('disableRunAI')?.value ? '' : deleteQuestion(i,j)\"\r\n style=\"margin-left: 24px !important;\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n matTooltip=\"Delete question\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 20 20\"\r\n fill=\"none\" [ngbTooltip]=\"question.get('disableRunAI')?.value ? 'The delete option is disabled as the runAI is enabled' : ''\">\r\n <path\r\n d=\"M2.5 4.99935H4.16667M4.16667 4.99935H17.5M4.16667 4.99935V16.666C4.16667 17.108 4.34226 17.532 4.65482 17.8445C4.96738 18.1571 5.39131 18.3327 5.83333 18.3327H14.1667C14.6087 18.3327 15.0326 18.1571 15.3452 17.8445C15.6577 17.532 15.8333 17.108 15.8333 16.666V4.99935H4.16667ZM6.66667 4.99935V3.33268C6.66667 2.89065 6.84226 2.46673 7.15482 2.15417C7.46738 1.84161 7.89131 1.66602 8.33333 1.66602H11.6667C12.1087 1.66602 12.5326 1.84161 12.8452 2.15417C13.1577 2.46673 13.3333 2.89065 13.3333 3.33268V4.99935M8.33333 9.16602V14.166M11.6667 9.16602V14.166\"\r\n [attr.stroke]=\"question.get('disableRunAI')?.value ? '#D0D5DD' : '#667085'\" stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <div>\r\n <div class=\"row mx-0\">\r\n <div class=\"col-lg-4 px-0\" *ngIf=\"ChecklistForm.get('sections')\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"bulkUploadQuestion()\" class=\"mt-2 btn-sec pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>Bulk Upload Questions</div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-4 pl-5\" *ngIf=\"ChecklistForm.get('sections')\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"addNewQuestion(sectionIndex)\" class=\"mt-2 btn-sec pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg> Add New Question</div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-4 pl-5\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"addNewSection()\" class=\"mt-2 px-0 btn-sec pointer\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg> Add New Section</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</div>", styles: [".checklist-card div,input[type=text]:not(.plain-input),input[type=time],input[type=number],select{color:#101828;border:1px solid #D0D5DD;box-shadow:0 1px 2px #1018280d;border-radius:8px;font-size:16px;width:100%;padding:10px 14px;font-family:Inter;font-weight:400;line-height:24px}.checklist-card input{padding-right:20%}.card{border-radius:16px}.row>*{padding-right:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}input[type=checkbox]:focus{border:none!important;outline:none!important;box-shadow:none!important}input:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}select{-webkit-appearance:none!important;-moz-appearance:none!important;height:45px;width:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAUCAMAAACtdX32AAAAdVBMVEUAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhMdQaAAAAJ3RSTlMAAAECAwQGBwsOFBwkJTg5RUZ4eYCHkJefpaytrsXGy8zW3+Do8vNn0bsyAAAAYElEQVR42tXROwJDQAAA0Ymw1p9kiT+L5P5HVEi3qJn2lcPjtIuzUIJ/rhIGy762N3XaThqMN1ZPALsZPEzG1x8LrFL77DHBnEMxBewz0fJ6LyFHTPL7xhwzWYrJ9z22AqmQBV757MHfAAAAAElFTkSuQmCC);background-position:100%;background-repeat:no-repeat}select:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}select[formcontrolname=complianceScore]:disabled{filter:blur(.5px);opacity:.55;cursor:not-allowed}textarea:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}textarea,select{color:#101828;border:1px solid #D0D5DD;box-shadow:0 1px 2px #1018280d;border-radius:8px;font-size:16px;width:100%;padding:10px 14px;font-family:Inter;font-weight:400;line-height:24px}.btn-outline{border:1px solid lightgrey;padding:calc(.75rem + 1px) calc(1.5rem + 1px)}.btn-light-primary{color:var(--primary-700, #009BF3);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;line-height:24px;text-transform:capitalize}.newbutton{border:1px solid lightgrey;padding:calc(.75rem + 1px) calc(1.5rem + 1px);color:#000;background-color:#fff}.newbutton:hover,.newbutton:active{background-color:#009bf3;color:#fff}.btn.btn-light-primary:hover:not(.btn-active),.btn-light-primary:active{color:var(--primary-700, #009BF3);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;outline:none!important;background-color:#d1f0ff82!important}.ml-5{margin-left:10px}.pl-5{padding-left:10px!important}.btn-left{display:inline-block;width:100%;font-size:16px;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important}.card hr{width:-webkit-fill-available}.card{height:100%!important}.rotate{transform:rotate(180deg);transition:1s}.hidesec{visibility:hidden;opacity:.1;transition:1s}.fs-16px{font-size:16px}.card svg{margin-left:5px!important;cursor:pointer}.form-switch,.form-check-label{padding-left:5px!important}.webkitwidth{width:-webkit-fill-available}.fs-18px{font-size:18px;color:var(--black, #000);font-family:inter}.Answer1 .checklist-card,.Answer2 .checklist-card{position:relative}.Answer1 svg,.Answer2 svg{position:absolute;top:15px;right:15px}.Answer1 .imgAdd,.Answer2 .imgAdd{position:absolute;top:13px!important;right:57px!important}.Answer1 .flag,.Answer2 .flag{color:red!important}.Answer1 .flag>.flag-path,.Answer2 .flag>.flag-path{fill:red!important;stroke:red}.Answer1 .vl,.Answer2 .vl{position:absolute;top:1px;right:45px;border-left:1px solid #D0D5DD;height:43px}.Answer1 .vl2,.Answer2 .vl2{position:absolute;top:1px;right:90px;border-left:1px solid #D0D5DD;height:43px}.Answer1 svg:hover,.Answer2 svg:hover{fill:#d0d5dd!important}.editablecontent{display:inline-block;max-width:60ch;white-space:nowrap;outline:none!important;border:none!important;box-shadow:none!important;overflow:hidden!important;text-overflow:ellipsis!important}.editablecontent-left{display:inline-block;width:180px;white-space:nowrap;outline:none!important;border:none!important;box-shadow:none!important;overflow:hidden!important;text-overflow:ellipsis!important}[contenteditable]{outline:0px solid transparent}.min-width-popup{min-width:46%!important}.max-w-128px{max-width:128px}.fw-600{font-weight:600!important}.fw-400{font-weight:400}.footer1 span{color:#000;font-family:inter;font-size:14px;font-weight:500px;line-height:20px}.footer1 a{font-family:inter;font-size:14px;font-weight:600;text-decoration:underline;color:var(--primary-700, #009BF3)}.footer1 a:hover{color:var(--primary-700, #009BF3);text-decoration-line:underline!important;text-decoration-thickness:1px!important}.btn-sec{color:var(--gray-700, #344054)!important;font-family:Inter;font-size:14px;font-style:normal;font-weight:500!important;line-height:24px}.form-check-label{color:var(--gray-700, #344054)!important}.question-left{max-height:63vh;overflow:auto;overflow-x:hidden}.Question-sec{position:relative;border-radius:8px;border:1px solid var(--gray-300, #D0D5DD);background:var(--gray-50, #F9FAFB);width:100%;padding:24px 16px 16px}.Question-sec .questiontitle{position:absolute;top:-15px;background-color:#fff;border:1px solid var(--gray-300, #D0D5DD)!important;border-radius:8px}.Question-sec h3{color:var(--gray-700, #344054);font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:20px;margin-bottom:0!important}.Question-sec .fs16-600{font-size:14px;font-style:normal;font-weight:600;line-height:20px}.Question-sec p{color:var(--gray-500, #667085);font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.swal2-confirm{font-family:Inter!important;font-size:30px!important;background-color:var(--white, #FFF)!important;border:solid var(--gray-300, #D0D5DD)!important}.Overlay{top:0;left:0;width:100%;height:100%;z-index:200!important;position:fixed;background:#58575799}.popup{position:absolute;top:50%;left:50%;opacity:1;transform:translate(-50%,-50%);background:var(--white, #FFF);border-radius:12px!important;border-radius:12px;box-shadow:0 8px 8px -4px #10182808,0 20px 24px -4px #10182814;padding:30px;width:400px;height:fit-content}.kiwi:hover{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi:hover path{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi{fill:#fff!important;stroke:#d0d5dd!important}.kiwi path{fill:#fff!important;stroke:#d0d5dd!important}.kiwi:active{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi:active path{fill:#d0d5dd!important;stroke:#d0d5dd!important}.active-flag{fill:red!important;stroke:red!important}.active-flag path{fill:red!important;stroke:red!important}.active-flag:active{fill:red!important;stroke:red!important}.active-flag:active path{fill:red!important;stroke:red!important}.toasttitile{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}.ref_del_icon{position:absolute;top:24px;right:24px;transform:translate(50%,-50%);padding:6px;border-radius:8px;border:1px solid var(--error-50, #FEF3F2);background:var(--error-50, #FEF3F2);box-shadow:0 1px 2px #1018280d}.ref_del_icon svg{margin:0!important}.ref_img_cont{position:relative}::ng-deep .swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;min-width:2em;height:0em;margin:0 .5em 0 0}::ng-deep .listitem{display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:.5rem 1rem;background-color:#f3f6f9;margin-top:.75rem;border-radius:.42rem}::ng-deep .toasttitile{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}::ng-deep .list{overflow-y:auto}::ng-deep .listitemlabel{font-size:13px!important;font-weight:600;font-family:Inter;color:#7e8299}::ng-deep .swal2-container{padding:.4em!important}::ng-deep .swal2-icon{border:1px solid white!important}::ng-deep body.swal2-toast-shown .swal2-container{width:500px!important}::ng-deep .swal2-popup.swal2-toast{border-left:4px solid #009EF7}::ng-deep .swal2-popup.swal2-toast .swal2-title{margin:9px 5px auto!important}::ng-deep .label{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}::ng-deep .custom-test{color:var(--gray-700, #344054)!important;text-align:start;font-family:Inter;font-size:12px;font-style:normal;border-radius:8px;box-shadow:0 4px 6px -2px #10182808,0 12px 16px -4px #10182814;font-weight:600;line-height:18px;background:#fff}.text-gray-700{color:#344054!important}.mandatoryfield input,.answervalidation input{border:none;padding:0!important}.mandatoryfield input[type=checkbox],.answervalidation input[type=checkbox]{width:16px!important;height:16px!important;margin:5px;border-radius:4px!important;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;outline:1px solid var(--gray-600, #D0D5DD)!important;box-shadow:none;font-size:.5em;text-align:center;line-height:1em;background:#fff}.mandatoryfield input[type=checkbox]:checked,.answervalidation input[type=checkbox]:checked{outline:1px solid var(--primary-600, #00A3FF)!important;background-color:var(--primary-50, #EAF8FF)}.mandatoryfield input[type=checkbox]:checked:after,.answervalidation input[type=checkbox]:checked:after{content:\"\";transform:rotate(45deg);border-bottom:2px solid #00A3FF;border-right:2px solid #00A3FF;display:inline-block;width:.5em;padding-left:3px;padding-top:10px;padding-right:0}.concise-checklistname{display:inline-block;width:100%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important;text-transform:capitalize}.concise-question{display:inline-block;width:100%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left}.active-question{color:var(--primary-700, #009BF3);font-size:16px;font-style:normal;font-weight:500;line-height:24px;display:flex;padding:8px 12px;align-items:center;gap:105px;align-self:stretch;border-radius:6px;background:var(--primary-50, #EAF8FF)}.q-btn{color:var(--gray-700, #344054);font-size:16px;font-style:normal;font-weight:500;line-height:24px;display:flex;padding:8px 12px;align-items:center;gap:105px;align-self:stretch;border-radius:6px;background:var(--primary-50, white)}.pointer{cursor:pointer}select option{padding:4px}.add-ref-btn{border-radius:8px;border:1px solid var(--primary-50, #EAF8FF);box-shadow:0 1px 2px #1018280d;padding:14px 0!important}::ng-deep .form-switch .form-check-input{border:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='rgba(255, 255, 255, 1)'/%3E%3C/svg%3E\")!important}::ng-deep .form-switch .form-check-input:not(:checked){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='rgba(255, 255, 255, 1)'/%3E%3C/svg%3E\")!important;background-color:var(--gray-100, #F2F4F7)!important}.plain-input{border:none;outline:none;background:transparent;padding:0;margin:0;width:100%;overflow:hidden;color:var(--black, #101828);text-overflow:ellipsis;font-family:Inter;font-size:18px;font-style:normal;font-weight:500;line-height:28px}.plain-input:focus{border-radius:0!important;border:white!important;outline:none!important;box-shadow:none!important}.auto-adjust{max-width:100%;max-height:100%;object-fit:contain;background-color:#fff}.createbuttons{padding:10px 18px;justify-content:center;align-items:center;gap:8px;border-radius:8px;border:1px solid var(--primary-600, #00A3FF);background:var(--primary-600, #00A3FF);box-shadow:0 1px 2px #1018280d}.create{color:var(--white, #FFF);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;line-height:24px;text-transform:capitalize}.savedraft{border-radius:8px;border:1px solid var(--gray-300, #D0D5DD);background:var(--white, #FFF);padding:10px 18px;justify-content:center;align-items:center;gap:8px;box-shadow:0 1px 2px #1018280d}.savedraft:hover{background:#f3f8fd!important;border:1px solid var(--gray-300, #D0D5DD)!important}.savedrafttext{color:var(--gray-700, #344054);font-family:Inter;font-size:16px;font-weight:600;line-height:24px;text-transform:capitalize}.questionsArea{overflow-y:scroll;padding:4px}::ng-deep .questionsArea::-webkit-scrollbar-thumb{-webkit-border-radius:10px!important;border-radius:10px!important;background:var(--gray-100, #eaeaea)!important;height:50px!important}::ng-deep .questionsArea::-webkit-scrollbar{width:10px!important}::ng-deep .questionsArea::-webkit-scrollbar-track{background:none!important;box-shadow:none!important}::ng-deep .swal2-html-container{overflow:hidden!important}.ansoptions{color:var(--gray-700, #344054);font-family:Inter;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.checklist{font-family:Inter;font-size:20px;font-weight:600;line-height:28px;text-align:left;color:#667085!important}.checklistDescription{font-family:Inter;font-size:14px;font-weight:400;line-height:18px;text-align:left}.dscriptiveType{font-size:15px!important}.loader .title{width:65%}.loader .link{width:85%}.loader .description{width:95%}.loader .shimmer{padding:15px;width:95%;height:120px;margin:10px auto;background:#fff}.loader .shimmer .image-card{height:90px;width:90px;float:right;border-radius:8px}.loader .stroke{height:15px;background:#777;margin-top:20px}.loader .wrapper{width:0px;animation:fullView .5s forwards linear}@keyframes fullView{to{width:100%}}.loader .animate{animation:shimmer 3s;animation-iteration-count:infinite;background:linear-gradient(to right,#e6e6e6 5%,#ccc 25%,#e6e6e6 35%);background-size:1000px 100%}@keyframes shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}.image-container{position:relative;display:inline-block}.base-image{display:block;width:100%;height:auto}.overlay-icons{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;gap:10px;opacity:0;transition:opacity .3s ease}.image-container:hover .overlay-icons{opacity:1}.overlay-icons button{background:#fffc;border:none;border-radius:50%;padding:10px;cursor:pointer}.overlay-icons button:hover{background:#fff}.btn-light-disbaled{color:var(--Primary-300, #6BCAFF)!important;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:20px;text-transform:capitalize}.borderCard{border-radius:8px;border:1px solid var(--Primary-25, #F6FCFF);background:var(--Primary-25, #F6FCFF);box-shadow:0 1px 2px #1018280d}:host::ng-deep #checklistCreate .md-drppicker .dropdowns:first-child{width:115px!important}:host::ng-deep #checklistCreate .md-drppicker .dropdowns:nth-child(2){width:56px!important}:host::ng-deep #checklistCreate .md-drppicker .btn{line-height:10px!important}:host::ng-deep #checklistCreate .daterangepicker-input+.ngx-daterangepicker-material .applyBtn{display:none}:host::ng-deep #checklistCreate .md-drppicker.drops-down-right.ltr.show-ranges.shown{top:65px!important}:host::ng-deep #checklistCreate .md-drppicker.drops-down-right.ltr.double.show-ranges.shown{top:65px!important;right:-475px!important;left:unset!important;height:400px!important}:host::ng-deep #checklistCreate .md-drppicker .btn{border-radius:8px!important;border:1px solid var(--Primary-600, #00A3FF)!important;background:var(--Primary-600, #00A3FF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--White, #FFF)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize}:host::ng-deep #checklistCreate .md-drppicker .ranges ul li button{padding:12px 16px;width:160px;color:var(--Gray-700, #344054);font-size:14px;font-weight:400;line-height:20px;background:none;border:none;text-align:left;cursor:pointer}:host::ng-deep #checklistCreate .md-drppicker td.active,:host::ng-deep #checklistCreate .md-drppicker td.active:hover{background-color:#029cf4!important;border-radius:20px!important;color:var(--White, #FFF)!important;text-align:center!important;font-size:14px!important;font-weight:500!important;line-height:20px}:host::ng-deep #checklistCreate .md-drppicker.ltr .ranges{float:left;margin-top:10px!important}:host::ng-deep #checklistCreate .md-drppicker td.in-range{background:var(--Primary-50, #EAF8FF)}:host::ng-deep #checklistCreate .md-drppicker .ranges ul li button.active{background:var(--Primary-50, #EAF8FF)!important;border-radius:8px!important;color:var(--Primary-700, #009BF3);font-size:14px!important;font-weight:500!important;line-height:20px!important}:host::ng-deep #checklistCreate table th,:host::ng-deep #checklistCreate table td{width:40px!important;height:40px!important;padding:10px 8px!important}:host::ng-deep #checklistCreate .md-drppicker td.available.prev,:host::ng-deep #checklistCreate .md-drppicker th.available.prev{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep #checklistCreate .md-drppicker td.available.next,:host::ng-deep #checklistCreate .md-drppicker th.available.next{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep #checklistCreate table th{border-bottom:0px solid var(--Gray-200, #EAECF0)!important;background:transparent!important;color:var(--Gray-700, #344054)!important;text-align:center;font-size:16px!important;font-weight:500!important;line-height:24px}:host::ng-deep #checklistCreate .md-drppicker .btn.btn-default{border-radius:8px!important;border:1px solid var(--Gray-300, #D0D5DD)!important;background:var(--White, #FFF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize;margin-right:10px!important}:host::ng-deep #checklistCreate .md-drppicker td.available.invalid-date{text-decoration:line-through;pointer-events:none;color:#a9a9a9}:host::ng-deep #checklistCreate .md-drppicker td.available.today:not(.invalid-date){text-decoration:unset;pointer-events:unset;color:unset}:host::ng-deep #checklistCreate .daterangepicker{display:block!important;top:153.85px!important;left:900px!important;right:0}.rangeText{font-family:Inter;font-weight:500;font-size:16px;line-height:24px;letter-spacing:0%;margin-top:10px;color:#101828}.dropText{color:#101828;font-family:Inter;font-weight:400;font-size:16px;line-height:24px;letter-spacing:0%}.limitTooltipText{font-family:Inter;font-weight:400;font-style:Italic;font-size:12px;line-height:100%;letter-spacing:0%;color:#667085}.limitComplianceText{font-family:Inter;font-weight:500;font-style:Italic;font-size:14px;line-height:100%;letter-spacing:0%;color:#667085}\n"], dependencies: [{ kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.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: i2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i8.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i8.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "directive", type: i9.DaterangepickerDirective, selector: "input[ngxDaterangepickerMd]", inputs: ["minDate", "maxDate", "autoApply", "alwaysShowCalendars", "showCustomRangeLabel", "linkedCalendars", "dateLimit", "singleDatePicker", "showWeekNumbers", "showISOWeekNumbers", "showDropdowns", "isInvalidDate", "isCustomDate", "isTooltipDate", "showClearButton", "customRangeDirection", "ranges", "opens", "drops", "firstMonthDayClass", "lastMonthDayClass", "emptyWeekRowClass", "emptyWeekColumnClass", "firstDayOfNextMonthClass", "lastDayOfPreviousMonthClass", "keepCalendarOpeningWithRange", "showRangeLabelOnInput", "showCancel", "lockStartDate", "timePicker", "timePicker24Hour", "timePickerIncrement", "timePickerSeconds", "closeOnAutoApply", "endKeyHolder", "startKey", "locale", "endKey"], outputs: ["change", "rangeClicked", "datesUpdated", "startDateChanged", "endDateChanged", "clearClicked"] }, { kind: "directive", type: i3.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "component", type: i10.CounterComponent, selector: "lib-counter", inputs: ["step", "placeholder", "max", "type"], outputs: ["onIncrement", "onDecrement"] }] });
2444
2444
  }
2445
2445
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AddChecklistComponent, decorators: [{
2446
2446
  type: Component,
2447
- args: [{ selector: 'lib-add-checklist', template: "<div class=\"card\" *ngIf=\"checklistLoading\">\r\n <div class=\"row loader d-flex justify-content-center align-items-center\">\r\n <div class=\"shimmer\">\r\n <div class=\"wrapper\">\r\n <div class=\"stroke animate title\"></div>\r\n <div class=\"stroke animate link\"></div>\r\n <div class=\"stroke animate description\"></div>\r\n </div>\r\n </div>\r\n <div class=\"shimmer\">\r\n <div class=\"wrapper\">\r\n <div class=\"stroke animate title\"></div>\r\n <div class=\"stroke animate link\"></div>\r\n <div class=\"stroke animate description\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"!checklistLoading\" id=\"checklistCreate\">\r\n <div class=\"card\">\r\n <ng-container [formGroup]=\"ChecklistForm\">\r\n <div class=\"card-header border-0 pt-3 pb-3\">\r\n <div class=\"row w-100\">\r\n <div class=\"col-md-9\">\r\n <h3 class=\"card-title align-items-center mt-3 mb-0\">\r\n <div routerLink=\"/manage/trax/checklist\" class=\"btn btn-sm btn-outline me-5 ps-2 px-3\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M15.8332 10.0003H4.1665M4.1665 10.0003L9.99984 15.8337M4.1665 10.0003L9.99984 4.16699\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg></div>\r\n <div class=\"flex-column w-800px\">\r\n <div class=\"editablecontent mb-4 w-100\"><input type=\"text\" class=\"checklist plain-input\" #checklistName placeholder=\"Enter Checklist Name\" formControlName=\"checklistName\"></div>\r\n <div class=\"editablecontent w-100\"><input type=\"text\" class=\"checklistDescription plain-input\" #checklistDescription placeholder=\"Enter Checklist Description\" formControlName=\"checklistDescription\"></div>\r\n </div>\r\n </h3>\r\n </div>\r\n <div class=\"col-md-3\">\r\n <div class=\"d-flex my-6 justify-content-end\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <button type=\"button\" class=\"btn btn-primary mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'add'\" (click)=\"saveChecklistQuestions('configure')\"><span class=\"ms-2\">Configure</span>\r\n </button>\r\n \r\n <button type=\"button\" class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'add'\" (click)=\"saveAsDraftPop('create')\"><span class=\"ms-2\">Save as Draft</span> </button>\r\n \r\n <button type=\"button\" class=\"btn btn-primary mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'edit'\" (click)=\"updateChecklistQuestions('configure')\"><span class=\"ms-2\">Configure</span>\r\n </button>\r\n <button type=\"button\" class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'edit'\" (click)=\"saveAsDraftPop('update')\"><span class=\"ms-2\">Save as Draft</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <div class=\"col-lg-3 mt-2\">\r\n <ng-container [formGroup]=\"ChecklistForm\">\r\n <div class=\"section-left card px-7 py-7\">\r\n <div class=\"fs-18px fw-600 text-left mb-3 concise-checklistname\">\r\n {{getFormControl('checklistName').value ? getFormControl('checklistName').value : 'ChecklistName'}}\r\n </div>\r\n <div class=\"left-panel-container\" formArrayName=\"sections\">\r\n <div *ngFor=\"let section of getSectionFormArray().controls;let i=index;\">\r\n <ng-container [formGroupName]=\"i\">\r\n <div class=\"d-flex section align-items-center justify-content-between\">\r\n <div class=\"fs-18px fw-bold editablecontent-left\">{{\r\n getSectionFormControl(i,'name')?.value === '' ? \"Section \" : ''}}{{\r\n getSectionFormControl(i,'name')?.value ? getSectionFormControl(i,'name')?.value\r\n : getSectionFormControl(i,'sectionNumber')?.value}}</div>\r\n <hr class=\"mx-2\">\r\n <svg (click)=\"deleteSection(i)\" xmlns=\"http://www.w3.org/2000/svg\" width=\"35\"\r\n height=\"35\" viewBox=\"0 0 18 18\" matTooltip=\"Delete section\"\r\n matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" fill=\"none\">\r\n <path\r\n d=\"M2.25 4.5H3.75M3.75 4.5H15.75M3.75 4.5V15C3.75 15.3978 3.90804 15.7794 4.18934 16.0607C4.47064 16.342 4.85218 16.5 5.25 16.5H12.75C13.1478 16.5 13.5294 16.342 13.8107 16.0607C14.092 15.7794 14.25 15.3978 14.25 15V4.5H3.75ZM6 4.5V3C6 2.60218 6.15804 2.22064 6.43934 1.93934C6.72064 1.65804 7.10218 1.5 7.5 1.5H10.5C10.8978 1.5 11.2794 1.65804 11.5607 1.93934C11.842 2.22064 12 2.60218 12 3V4.5M7.5 8.25V12.75M10.5 8.25V12.75\"\r\n stroke=\"#667085\" stroke-width=\"1.4\" stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n <svg (click)=\"accordian(i)\" [ngClass]=\"{'rotate' : show !== i}\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"35\" height=\"35\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"#667085\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <ng-container *ngIf=\"show===i\">\r\n <div cdkDropList (cdkDropListDropped)=\"dragDrop(i,$event)\"\r\n [cdkDropListData]=\"getFormArrayQuestions(i).controls\" class=\"question-left\">\r\n <ng-container formArrayName=\"questions\">\r\n <div *ngFor=\"let question of getFormArrayQuestions(i).controls;let j=index;\"\r\n class=\"my-2 cursor-pointer\"\r\n [ngClass]=\"question.get('active')?.value === true ? 'active-question' : 'q-btn'\"\r\n cdkDrag (mouseenter)=\"setActiveQuestion(i,j,1)\"\r\n (click)=\"scrollToQuestion(i,j);\"\r\n (mouseleave)=\"setActiveQuestion(i,j,-1)\">\r\n <ng-container [formGroupName]=\"j\">\r\n <div class=\"concise-question\">\r\n {{getQuestionFormControl(i,j,'qname')?.value ? '' : \"Question\"}}{{ getQuestionFormControl(i,j,'qname')?.value ?\r\n getQuestionFormControl(i,j,'qname')?.value :\r\n getQuestionFormControl(i,j,'qno')?.value }}\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"col-lg-9 mt-2\">\r\n <form [formGroup]=\"ChecklistForm\" #formRef>\r\n <div class=\"card px-7\">\r\n <!-- <div class=\"checklist-card py-5\">\r\n <input type=\"text\" class=\"mt-2\" style=\"text-transform: capitalize;\"\r\n placeholder=\"Enter checklist name here\" formControlName=\"checklistName\">\r\n <input type=\"text\" class=\"mt-4\" placeholder=\"Enter checklist description here\"\r\n formControlName=\"checklistDescription\">\r\n </div> -->\r\n <ng-container formArrayName=\"sections\" >\r\n <div class=\"sectionArea mt-5\" *ngFor=\"let section of getSectionFormArray().controls;let i=index;\">\r\n <ng-container [formGroupName]=\"i\">\r\n <div class=\"section d-flex align-items-center justify-content-between\">\r\n \r\n <div class=\"fs-18px fw-bold editablecontent\"><input type=\"text\" class=\"plain-input\"\r\n #sectionName (change)=\"updateInputValue(i,sectionName.value)\"\r\n formControlName=\"name\"></div>\r\n <hr>\r\n <svg class=\"ml-5\" (click)=\"deleteSection(i)\" xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\" matTooltip=\"Delete section\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 18 18\" fill=\"none\">\r\n <path\r\n d=\"M2.25 4.5H3.75M3.75 4.5H15.75M3.75 4.5V15C3.75 15.3978 3.90804 15.7794 4.18934 16.0607C4.47064 16.342 4.85218 16.5 5.25 16.5H12.75C13.1478 16.5 13.5294 16.342 13.8107 16.0607C14.092 15.7794 14.25 15.3978 14.25 15V4.5H3.75ZM6 4.5V3C6 2.60218 6.15804 2.22064 6.43934 1.93934C6.72064 1.65804 7.10218 1.5 7.5 1.5H10.5C10.8978 1.5 11.2794 1.65804 11.5607 1.93934C11.842 2.22064 12 2.60218 12 3V4.5M7.5 8.25V12.75M10.5 8.25V12.75\"\r\n stroke=\"#667085\" stroke-width=\"1.4\" stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n <svg (click)=\"accordian(i)\" [ngClass]=\"{'rotate' : show !== i}\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"#667085\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <div class=\"questionsArea\" *ngIf=\"show === i\">\r\n <ng-container formArrayName=\"questions\">\r\n <div class=\"Question-sec mt-10\"\r\n *ngFor=\"let question of getFormArrayQuestions(i).controls;let j = index;\"\r\n (mouseenter)=\"setActiveQuestion(i,j,1)\"\r\n (mouseleave)=\"setActiveQuestion(i,j,-1)\">\r\n <ng-container [formGroupName]=\"j\">\r\n <span class=\"fs-18px px-3 editablecontent questiontitle\"\r\n style=\"cursor: default;\"> Question {{j+1}}</span>\r\n \r\n <div class=\"checklist-card pb-5\">\r\n <textarea class=\"form-control form-control-solid\" rows=\"1\"\r\n type=\"text\" class=\"mt-0\" [id]=\"'q-' + i + '-' + j\"\r\n placeholder=\"Enter question here\"\r\n formControlName=\"qname\"></textarea>\r\n <ng-container\r\n *ngIf=\"question.get('qname')?.invalid && question.get('qname')?.touched\">\r\n <p style=\"color: red;\"\r\n *ngIf=\"question.get('qname')?.hasError('required')\">*\r\n Question is required.</p>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"row\"\r\n *ngIf=\"!['descriptiveImage','image','multipleImage','image/video'].includes(question.get('answerType')?.value)\">\r\n <div class=\"col-md-4 w-90 text-center\" *ngFor=\"let image of question.get('multiQuestionReferenceImage')?.value; let m = index\" style=\"position: relative;\">\r\n <div *ngIf=\"image?.imageURL\"\r\n class=\"image-container ref_img_cont mb-4 mt-5\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : onPopup(image.imageURL)\" ngbTooltip=\"Expand\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <input class=\"d-none\" [id]=\"'fileuploadref_1'+i+j+m\" type=\"file\"\r\n name=\"answerFile\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage',m)\">\r\n <label class=\"cursor-pointer\" (click)=\"refImgQIdx=j;\" [for]=\"'fileuploadref_1'+i+j+m\" ngbTooltip=\"Reupload\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : clearReferenceImage(i,j,-1,m,'multiQuestionReferenceImage');\" ngbTooltip=\"Delete\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\" (click)=\"clearReferenceImage(i,j);\">\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n \r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiQuestionReferenceImage')?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\" [id]=\"'fileupload_'+i+j\" type=\"file\"\r\n name=\"answerFile\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage')\">\r\n <label [for]=\"'fileupload_'+i+j\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-2\"\r\n width=\"21\" height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_4082_3122\">\r\n <rect width=\"20\" height=\"20\" fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image\r\n </label>\r\n </div> -->\r\n <div *ngIf=\"question.get('multiQuestionReferenceImage')?.value.length <5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" [id]=\"'fileuploadQnRef1_2'+i+j\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage')\">\r\n <label class=\"pointer\" [for]=\"'fileuploadQnRef1_2'+i+j\"\r\n (click)=\"refImgQIdx=j;\"> \r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image \r\n </label>\r\n </div>\r\n <div *ngIf=\"question.get('multiQuestionReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"checklist-card pb-5\" [ngClass]=\"['image','image/video','multiplechoicesingle','yes/no','date','linearscale'].includes(question.get('answerType')?.value) ? 'col-md-8' :'col-md-12'\">\r\n <select class=\"mt-5\" name=\"selectoption\"\r\n (change)=\"answerTypeSelection(i,j,$event)\"\r\n formControlName=\"answerType\">\r\n <option name=\"descriptive\" value=\"descriptive\">Descriptive\r\n Answer</option>\r\n <option name=\"yes/no\" value=\"yes/no\">A/B Question</option>\r\n <option name=\"multiplechoicesingle\"\r\n value=\"multiplechoicesingle\">Multiple Choice Question -\r\n Single Answer</option>\r\n <option name=\"multiplechoicemultiple\"\r\n value=\"multiplechoicemultiple\">Multiple Choice Question -\r\n Multiple Answer</option>\r\n <option name=\"descriptiveImage\" value=\"descriptiveImage\">Capture\r\n Image with Description</option>\r\n <option name=\"image\" value=\"image\">Capture Image as answer\r\n </option>\r\n <option name=\"video\" value=\"video\">Capture video as answer\r\n </option>\r\n <option name=\"multipleImage\" value=\"multipleImage\">Capture\r\n Multiple Image</option>\r\n <option name=\"date\" value=\"date\">Date - DD/MM/YYYY</option>\r\n <option name=\"linearscale\" value=\"linearscale\">Linear Scale</option>\r\n <option name=\"time\" value=\"time\">Time</option>\r\n <option name=\"imageVideo\" value=\"image/video\">Capture Image/Video as Answer</option>\r\n <option name=\"dropdown\" value=\"dropdown\">Dropdown as an answer</option>\r\n </select>\r\n \r\n </div>\r\n <div class=\"col-md-4\" *ngIf=\"['image','image/video','multiplechoicesingle','yes/no','date','linearscale'].includes(question.get('answerType')?.value)\">\r\n <div class=\"form-check form-switch text-left align-items-center btn-sec mt-10\" >\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\" ngDefaultControl formControlName=\"compliance\" (change)=\"getComplianceToast(i,j,$event)\" [attr.disabled]=\"hasValidationEnabled(i,j) ? true : null\">\r\n <label class=\"form-check-label pointer fs-16px\" for=\"flexSwitchCheckDefault\">Configure Compliance Score</label>\r\n \r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-3 mx-4 d-flex mt-3\" *ngIf=\"['descriptive'].includes(question.get('answerType')?.value)\">\r\n <div class=\"form-check\" >\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" value=\"text\" [name]=\"'descriptivetype'\" [id]=\"'inlineRadio0'+ i + j\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio0'+ i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" value=\"number\" [name]=\"'descriptivetype'\" [id]=\"'inlineRadio1'+ i + j\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio1'+i + j\">Number</label>\r\n </div>\r\n </div>\r\n <ng-container\r\n *ngIf=\"['yes/no','multiplechoicesingle','multiplechoicemultiple','dropdown'].includes(question.get('answerType')?.value)\">\r\n <div class=\"d-flex justify-content-between\">\r\n <div class=\"fs-18px fw-bolder\" style=\"cursor: default;\">Answer Options</div>\r\n <div class=\"form-check form-switch text-left align-items-center btn-sec mt-2\" *ngIf=\"question.get('answerType')?.value == 'dropdown'\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\" ngDefaultControl formControlName=\"allowMultiple\">\r\n <label class=\"form-check-label pointer fs-16px\" for=\"flexSwitchCheckDefault\">Allow Multiple Response</label>\r\n \r\n </div>\r\n </div>\r\n <ng-container formArrayName=\"answers\">\r\n <ng-container\r\n *ngFor=\"let answer of getFormArrayQuestionsAnswer(i,j,'answers')?.controls;let k = index;\">\r\n <div class=\"row\" [formGroupName]=\"k\">\r\n <ng-container *ngIf=\"!answer.get('isdeleted')?.value\">\r\n <div class=\"Answer1\" [ngClass]=\"question.get('compliance')?.value ? 'col-lg-4' : 'col-lg-6'\">\r\n <div class=\"checklist-card pb-0 mt-5\">\r\n <input type=\"text\" class=\"mt-0\"\r\n placeholder=\"Enter answer here\"\r\n formControlName=\"answer\"\r\n (input)=\"onAnswerValueChange(i,j,k)\">\r\n <span class=\"vl\"></span>\r\n <ng-container\r\n *ngIf=\"question.get('answerType')?.value === 'yes/no' || question.get('answerType')?.value === 'multiplechoicesingle'\"\r\n ngDefaultControl>\r\n <span class=\"vl2\"></span>\r\n <svg class=\"imgAdd\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :updateLinked(i,j,k)\">\r\n <path\r\n d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\"\r\n stroke=\"#344054\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"answer.get('answer')?.invalid && answer.get('answer')?.touched\">\r\n <p style=\"color: red;\"\r\n *ngIf=\"answer.get('answer')?.hasError('required')\">\r\n * Answer is required.</p>\r\n </ng-container>\r\n <p style=\"color: red;\"\r\n *ngIf=\"answer.get('showSOPFlagError')?.value === true\">\r\n Every answer can\u2019t be a flag.</p>\r\n \r\n <ng-container formControlName=\"sopFlag\"\r\n ngDefaultControl>\r\n \r\n <svg (click)=\"question.get('disableRunAI')?.value ?'' : raiseflag(i,j,k,true)\"\r\n matTooltip=\"Raise a flag if this answer is selected\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\"\r\n *ngIf=\"answer.get('sopFlag')?.value === false\"\r\n class=\"kiwi\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\" height=\"16\"\r\n viewBox=\"0 0 16 16\">\r\n <path\r\n d=\"M2.66669 10.0007C2.66669 10.0007 3.33335 9.33398 5.33335 9.33398C7.33335 9.33398 8.66669 10.6673 10.6667 10.6673C12.6667 10.6673 13.3334 10.0007 13.3334 10.0007V2.00065C13.3334 2.00065 12.6667 2.66732 10.6667 2.66732C8.66669 2.66732 7.33335 1.33398 5.33335 1.33398C3.33335 1.33398 2.66669 2.00065 2.66669 2.00065V10.0007ZM2.66669 10.0007V14.6673\"\r\n stroke=\"#D0D5DD\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n \r\n <svg (click)=\"question.get('disableRunAI')?.value ?'' : raiseflag(i,j,k,false)\"\r\n matTooltip=\"Raise a flag if this answer is selected\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\"\r\n *ngIf=\"answer.get('sopFlag')?.value === true\"\r\n class=\"active-flag\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\" height=\"16\"\r\n viewBox=\"0 0 16 16\">\r\n <path\r\n d=\"M2.66669 10.0007C2.66669 10.0007 3.33335 9.33398 5.33335 9.33398C7.33335 9.33398 8.66669 10.6673 10.6667 10.6673C12.6667 10.6673 13.3334 10.0007 13.3334 10.0007V2.00065C13.3334 2.00065 12.6667 2.66732 10.6667 2.66732C8.66669 2.66732 7.33335 1.33398 5.33335 1.33398C3.33335 1.33398 2.66669 2.00065 2.66669 2.00065V10.0007ZM2.66669 10.0007V14.6673\"\r\n stroke=\"#D0D5DD\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div [ngClass]=\"question.get('compliance')?.value ? 'col-lg-5' : 'col-lg-6'\"\r\n *ngIf=\"!answer.get('showLinked')?.value\">\r\n <div class=\"d-flex justify-content-between\">\r\n <div class=\"d-flex answervalidation\">\r\n <input class=\"mt-7\" type=\"checkbox\"\r\n style=\"width:16px;height:16px;cursor: pointer;\"\r\n value=\"1\"\r\n (change)=\"getvalidation(i,j,k,$event)\"\r\n formControlName=\"validation\">\r\n <div class=\"chackbox pt-4 mt-2 mx-2\"\r\n style=\"cursor: default;\">\r\n <h3>Validate response</h3>\r\n <p class=\"mb-0\">Trigger an action\r\n for each response to validate it\r\n </p>\r\n </div>\r\n </div>\r\n <svg *ngIf=\"question.get('answerType')?.value !== 'yes/no' && getFormArrayQuestionsAnswer(i,j,'answers').value.length > 2 && !question.get('compliance')?.value\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :deleteAnswer(i,j,k)\"\r\n class=\"mt-8\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n matTooltip=\"Delete answer\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M15 5L5 15M5 5L15 15\"\r\n stroke=\"#667085\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n \r\n </div>\r\n <div class=\"col-md-3\" *ngIf=\"question.get('compliance')?.value\">\r\n <select class=\"w-150px mt-7\" formControlName=\"complianceScore\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n <svg class=\"ms-3\" *ngIf=\"question.get('answerType')?.value !== 'yes/no' && getFormArrayQuestionsAnswer(i,j,'answers').value.length > 2\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :deleteAnswer(i,j,k)\"\r\n class=\"\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n matTooltip=\"Delete answer\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M15 5L5 15M5 5L15 15\"\r\n stroke=\"#667085\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <!-- *ngIf=\"moreqn.validation\" -->\r\n <div *ngIf=\"answer.get('validation')?.value\"\r\n class=\"row\">\r\n <div class=\"col-lg-3 pt-7 fs-4 fw-400 mt-1\">\r\n If the response is this, then\r\n </div>\r\n <div [ngClass]=\"answer.get('validationType')?.value === 'Capture Multiple Image with description' ? 'col-md-6' : 'col-lg-3'\">\r\n <select class=\"mt-5 mx-1\"\r\n formControlName=\"validationType\"\r\n (change)=\"updateValidationType($event,i,j,k)\">\r\n <option [ngValue]=\"'Descriptive Answer'\">Descriptive Answer</option>\r\n <option *ngIf=\"question.get('answerType')?.value !== 'multiplechoicesingle'\" [ngValue]=\"'Capture Image'\">Capture Image</option>\r\n <option *ngIf=\"question.get('answerType')?.value === 'multiplechoicesingle'\" [ngValue]=\"'Capture Multiple Image with description'\">Capture Multiple Image/Video with Description</option>\r\n <option [ngValue]=\"'Capture Video'\">Capture Video</option>\r\n </select>\r\n </div>\r\n <div class=\"col-lg-3 mx-4 d-flex pt-8\" *ngIf=\"answer.get('validationType')?.value === 'Descriptive Answer'\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio2' + i + j + k\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio2' + i + j + k\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio3'+ i + j + k\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio3' + i + j + k\">Number</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\"\r\n *ngIf=\"answer.get('showLinked')?.value\">\r\n <div class=\"col-lg-3 pt-7 fs-4 fw-400 mt-1\">\r\n Linked Question\r\n </div>\r\n <div class=\"col-lg-9\">\r\n <select [id]=\"i+'-'+k\" [name]=\"i+'-'+k\" class=\"mt-5\" (change)=\"updateQuestionType(i,j,k,$event)\" [disabled]=\"question.get('disableRunAI')?.value\">\r\n <option value=\"\">Select Question</option>\r\n <option *ngFor=\"let option of getQuestionList(i,j,k)\" [value]=\"option\"\r\n [selected]=\"selectOption(option,answer.get('linkedQuestion')?.value)\">Question {{option}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row\"\r\n *ngIf=\"answer.get('validation')?.value && (answer.get('validationType')?.value === 'Capture Image' || answer.get('validationType')?.value === 'Capture Multiple Image with description')\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont mb-4 mt-5\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\"\r\n class=\"auto-adju st\" alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ?'' :onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_validref'+i+j+k+n\"\r\n type=\"file\" name=\"answerFile\"\r\n accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,k,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileupload_validref'+i+j+k+n\"\r\n (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ?'' :clearReferenceImage(i,j,k,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\"\r\n (click)=\"clearReferenceImage(i,j,k);\">\r\n <svg width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_'+i+j+k\"\r\n type=\"file\" name=\"answerFile\"\r\n accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,k)\">\r\n <label [for]=\"'fileupload_'+i+j+k\"\r\n (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"mx-2\" width=\"21\"\r\n height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g\r\n clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath\r\n id=\"clip0_4082_3122\">\r\n <rect width=\"20\"\r\n height=\"20\"\r\n fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image</label>\r\n </div> -->\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value.length < 5\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_validImage1'+i+j+k\"\r\n type=\"file\" name=\"file\"\r\n accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,k,'multiReferenceImage')\">\r\n <label class=\"pointer\"\r\n [for]=\"'fileupload_validImage1'+i+j+k\"\r\n (click)=\"refImgQIdx=j;\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div\r\n class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input\r\n class=\"form-check-input mx-0 pointer\"\r\n type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div class=\"col-lg-2\"></div>\r\n <div class=\"col-lg-3 d-flex justify-content-center align-items-center mt-2\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j,k)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,k,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'mt-1' : ''\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_2301_100038)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_2301_100038\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <div *ngIf=\"question.get('answers')?.hasError('duplicateString')\" class=\"text-danger mt-2\">* Same answer cannot be\r\n repeated</div>\r\n <ng-container class=\"row\"\r\n *ngIf=\"['multiplechoicemultiple','multiplechoicesingle','dropdown'].includes(question.get('answerType')?.value) && allowAddAnswer(question.get('answers')?.value) && !question.get('disableRunAI')?.value\">\r\n <div (click)=\"AddMoreAns(i,j,question.get('answerType')?.value)\"\r\n class=\"btn col-lg-12 btn-light-primary my-3\">\r\n Add More Answer</div>\r\n </ng-container>\r\n \r\n </ng-container>\r\n </ng-container>\r\n \r\n <!-- Image -->\r\n <ng-container\r\n *ngIf=\"['image','descriptiveImage','multipleImage'].includes(question.get('answerType')?.value)\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont ref_img_cont mb-4\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\" [id]=\"'fileuploadImage_45'+n\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileuploadImage_45'+n\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '': clearReferenceImage(i,j,-1,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\"\r\n (click)=\"(question.get('answerType')?.value === 'image' && question.get('runAIDefault')?.value) ? '': clearReferenceImage(i,j);\">\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" [style]=\"(question.get('answerType')?.value === 'image' && question.get('runAIDefault')?.value) ? 'cursor:default':''\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\" id=\"fileupload\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event)\" *ngIf=\"(question.get('answerType')?.value !== 'image' || (question.get('answerType')?.value === 'image' && !question.get('runAIDefault')?.value))\">\r\n <label for=\"fileupload\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-2\"\r\n width=\"21\" height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_4082_3122\">\r\n <rect width=\"20\" height=\"20\"\r\n fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image</label>\r\n </div> -->\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length < 5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" id=\"fileuploadrefImage1\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage')\" *ngIf=\"(question.get('answerType')?.value !== 'image' || (question.get('answerType')?.value === 'image' && !question.get('runAIDefault')?.value))\">\r\n <label class=\"pointer\" for=\"fileuploadrefImage1\"\r\n (click)=\"refImgQIdx=j;\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n <div\r\n class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input class=\"form-check-input mx-0 pointer\"\r\n type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div\r\n [ngClass]=\"(['multipleImage'].includes(question.get('answerType')?.value) && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value === '') ? 'col-lg-4 mt-6' : ['image','descriptiveImage'].includes(question.get('answerType')?.value) ? 'col-lg-2' : ''\">\r\n <div class=\"d-flex\" *ngIf=\"(['multipleImage'].includes(question.get('answerType')?.value) && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value === '')\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio4' + i + j\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio4' + i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio5' + i + j\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio5' + i + j\">Number</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value && ['image','multipleImage','descriptiveImage'].includes(question.get('answerType')?.value)\"\r\n [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'col-lg-5 d-flex mt-6' : 'col-lg-3 d-flex justify-content-center align-items-center mt-2'\">\r\n <div class=\"d-flex\" *ngIf=\"question.get('answerType')?.value === 'multipleImage'\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio6' + i + j\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio6' + i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio6' + i + j\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio6' + i + j\">Number</label>\r\n </div>\r\n </div>\r\n <div class=\"d-flex\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,-1,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'mt-1' : ''\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_2301_100038)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_2301_100038\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"['image'].includes(question.get('answerType')?.value) && question.get('compliance')?.value\">\r\n <div formGroupName=\"answers\">\r\n <div class=\"row mt-3 dropText\" >\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3 dropText\" >\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is not matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n <!-- Video -->\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'video'\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div\r\n class=\" col-lg-4 form-check form-switch text-left align-items-center btn-sec mt-2\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\"\r\n name=\"toc\" value=\"1\" ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\">Allow upload from gallery</label>\r\n \r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <!-- <ng-container *ngIf=\"question.get('answerType')?.value === 'time'\" class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\" col-lg-4 btn-sec mt-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-200px\" type=\"time\" name=\"time\" ngDefaultControl formControlName=\"answer\">\r\n </div>\r\n </ng-container>\r\n </ng-container> -->\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'linearscale'\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Select Type\r\n </div>\r\n <div class=\"mt-2\">\r\n <select class=\"\" formControlName=\"linearType\" (change)=\"updateNumber($event,i,j)\">\r\n <option value=\"degree\">Degree \u00B0C</option>\r\n <option value=\"number\">Whole Number</option>\r\n <option value=\"percentage\">Percentage</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Min Value\r\n </div>\r\n <div class=\"mt-2\">\r\n <lib-counter style=\"width: 40%\" formControlName=\"rangeStart\" [step]=\"1\" placeholder=\"0\" [type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value\"></lib-counter>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Max Value\r\n </div>\r\n <div class=\"mt-2\">\r\n <lib-counter style=\"width: 40%\" formControlName=\"rangeEnd\" [step]=\"1\" placeholder=\"0\" [type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value\"></lib-counter>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"question.get('answers')?.invalid && question.get('answers')?.touched\">\r\n <div *ngIf=\"question.get('answers')?.hasError('invalidRange')\" class=\"text-danger mt-2\">* Min value must be less than max value.</div>\r\n </ng-container>\r\n <div *ngIf=\"question.get('compliance')?.value\">\r\n <div class=\"row mt-5\" >\r\n <div class=\"col-md-8\">\r\n <div class=\"d-flex align-items-center flex-nowrap\">\r\n <span class=\"dropText me-2\">If the response is between</span>\r\n <div class=\"btn-sec me-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-100px\" [attr.type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'number'\" [attr.inputmode]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'numeric'\" name=\"start\" ngDefaultControl formControlName=\"minValue\" [min]=\"question.get('answers')?.get('rangeStart')?.value\" [max]=\"question.get('answers')?.get('rangeEnd')?.value\" (input)=\"onRangeValueInput($event, i, j, 'minValue')\" (blur)=\"clampRangeInput(i, j, 'minValue')\" /> \r\n </div>\r\n <span class=\"btn-sec me-2 align-self-center\">to</span>\r\n <div class=\"btn-sec me-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-100px\" [attr.type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'number'\" [attr.inputmode]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'numeric'\" name=\"start\" ngDefaultControl formControlName=\"maxValue\" [min]=\"question.get('answers')?.get('rangeStart')?.value\" [max]=\"question.get('answers')?.get('rangeEnd')?.value\" (input)=\"onRangeValueInput($event, i, j, 'maxValue')\" (blur)=\"clampRangeInput(i, j, 'maxValue')\">\r\n </div>\r\n <span class=\"dropText ms-1\">, then the score will be</span>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4 text-end\">\r\n <select class=\"w-150px ms-14\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3\">\r\n <div class=\"dropText mt-5 col-md-8\">\r\n If the response is other than the selected range, then the score will be \r\n </div>\r\n <div class=\"col-md-4 text-end\">\r\n <select class=\"w-150px ms-14\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'date'\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\"d-flex answervalidation\">\r\n <input class=\"\" type=\"checkbox\"\r\n style=\"width:16px;height:16px;cursor: pointer;\"\r\n value=\"1\"\r\n formControlName=\"historicDate\">\r\n <div class=\"checkbox mt-1 mx-2\"\r\n style=\"cursor: default;\">\r\n <h3>Allow Historic Dates on Date Picker</h3>\r\n </div>\r\n </div>\r\n <div *ngIf=\"question.get('compliance')?.value\">\r\n <div class=\"d-flex mt-5\">\r\n <div class=\"rangeText\">Select Range from</div>\r\n <div class=\"col-md-3 px-4 pe-3\" id=\"dateclass\"\r\n data-kt-daterangepicker=\"true\" data-kt-daterangepicker-opens=\"left\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n stroke=\"#344054\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input class=\"fx-date-range form-control ps-14\" type=\"text\"\r\n matInput ngxDaterangepickerMd [singleDatePicker]=\"true\"\r\n [drops]=\"'down'\" [opens]=\"'right'\"\r\n [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"true\"\r\n autocomplete=\"off\"\r\n [autoApply]=\"true\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (datesUpdated)=\"dateRange($event,'start',i,j)\" name=\"daterange\"\r\n [readonly]=\"true\" formControlName=\"qnStartDate\" [showDropdowns]=\"true\"/> \r\n </div>\r\n </div>\r\n <div class=\"rangeText\">To</div>\r\n <div class=\"col-md-3 px-4 pe-3\" id=\"dateclass\"\r\n data-kt-daterangepicker=\"true\" data-kt-daterangepicker-opens=\"left\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n stroke=\"#344054\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input class=\"fx-date-range form-control ps-14\" type=\"text\"\r\n matInput ngxDaterangepickerMd [singleDatePicker]=\"true\"\r\n [drops]=\"'down'\" [opens]=\"'right'\"\r\n [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"true\"\r\n autocomplete=\"off\" \r\n [autoApply]=\"true\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (datesUpdated)=\"dateRange($event,'end',i,j)\" name=\"daterange\"\r\n [readonly]=\"true\" formControlName=\"qnEndDate\" [showDropdowns]=\"true\"/>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mt-5 dropText\" >\r\n <div class=\"mt-3\">\r\n If the response date is between the selected range, then the score will be\r\n </div>\r\n <div>\r\n <select class=\"w-150px ms-14\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mt-3 dropText\" >\r\n <div class=\"mt-3\">\r\n If the response date is other than the selected range, then the score will be\r\n </div>\r\n <div>\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'image/video'\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont ref_img_cont mb-4\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_zoom)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_zoom\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_zoom\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_zoom\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\" [id]=\"'fileuploadIV_'+i+j+n\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileuploadIV_'+i+j+n\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_upload)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_upload\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_upload\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_upload\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : clearReferenceImage(i,j,-1,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_del)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_del\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_del\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_del\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length < 5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" [id]=\"'fileuploadrefImageIV'+i+j\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage')\">\r\n <label class=\"pointer\" [for]=\"'fileuploadrefImageIV'+i+j\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\" stroke=\"#009BF3\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span>\r\n </label>\r\n </div>\r\n <div class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\" for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div class=\"col-lg-2\"></div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value && question.get('answerType')?.value === 'image/video'\"\r\n [ngClass]=\"'col-lg-3 d-flex justify-content-center align-items-center mt-2'\">\r\n <div class=\"d-flex\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,-1,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_iv_runai_info)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_iv_runai_info\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"question.get('compliance')?.value\">\r\n <span class=\"limitComplianceText\">Compliance score is applicable only for image outputs, not for video.</span>\r\n <div class=\"row mt-3 dropText\">\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3 dropText\">\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is not matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <div\r\n class=\" col-lg-4 form-check form-switch text-left align-items-center btn-sec mt-5\" *ngIf=\"userType && userType === 'tango'\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\"\r\n name=\"toc\" value=\"1\" ngDefaultControl\r\n formControlName=\"limit\" (change)=\"updateLimit($event,i,j)\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\">Set Limits </label>\r\n <svg ngbTooltip=\"Uploads are allowed as per the configured image/video limits\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\" matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" ng-reflect-ng-class=\"\"><g clip-path=\"url(#clip0_2301_100038)\"><path d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></g><defs><clipPath id=\"clip0_2301_100038\"><rect width=\"16\" height=\"16\" fill=\"white\"></rect></clipPath></defs></svg>\r\n \r\n </div>\r\n <div\r\n class=\" col-lg-12 form-check form-switch text-left align-items-center btn-sec mt-5\" *ngIf=\"getAnswerFormGroup_FormControl(i,j,'limit')?.value\">\r\n <div class=\"d-flex\">\r\n <div class=\"me-3 mt-3\">Attach</div>\r\n <div class=\"w-70px me-3\">\r\n <select formControlName=\"imageLimit\">\r\n <option value=\"1\">1</option>\r\n <option value=\"2\">2</option>\r\n <option value=\"3\">3</option>\r\n <option value=\"4\">4</option>\r\n <option value=\"5\">5</option>\r\n </select>\r\n </div>\r\n <div class=\"me-3 mt-3\">images and</div>\r\n <div class=\"w-70px me-3\">\r\n <select formControlName=\"videoLimit\" placeholder=\"-\">\r\n <option value=\"1\">1</option>\r\n <option value=\"2\">2</option>\r\n <option value=\"3\">3</option>\r\n <option value=\"4\">4</option>\r\n <option value=\"5\">5</option>\r\n </select>\r\n </div>\r\n <div class=\"me-3 mt-3\">\r\n Videos.\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"limitTooltipText mt-3\" *ngIf=\"getAnswerFormGroup_FormControl(i,j,'limit')?.value && (getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value || getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value)\">\r\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\" matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" ng-reflect-ng-class=\"\"><g clip-path=\"url(#clip0_2301_100038)\"><path d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></g><defs><clipPath id=\"clip0_2301_100038\"><rect width=\"16\" height=\"16\" fill=\"white\"></rect></clipPath></defs></svg>\r\n Checklist fillers must capture/upload {{ getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value ? getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value + ' image' + (getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value > 1 ? 's' : '') : '' }} {{ getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value ? ' and ' + getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value + ' video' + (getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value > 1 ? 's' : '') : '' }}\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n <div class=\"d-flex justify-content-end py-2\">\r\n <div class=\"pt-1\" >\r\n <svg (click)=\"question.get('disableRunAI')?.value ? '' : cloneQuestion(i,j)\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n matTooltip=\"Duplicate\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_3385_10578)\">\r\n <path\r\n d=\"M4.16663 12.4993H3.33329C2.89127 12.4993 2.46734 12.3238 2.15478 12.0112C1.84222 11.6986 1.66663 11.2747 1.66663 10.8327V3.33268C1.66663 2.89065 1.84222 2.46673 2.15478 2.15417C2.46734 1.84161 2.89127 1.66602 3.33329 1.66602H10.8333C11.2753 1.66602 11.6992 1.84161 12.0118 2.15417C12.3244 2.46673 12.5 2.89065 12.5 3.33268V4.16602M9.16663 7.49935H16.6666C17.5871 7.49935 18.3333 8.24554 18.3333 9.16602V16.666C18.3333 17.5865 17.5871 18.3327 16.6666 18.3327H9.16663C8.24615 18.3327 7.49996 17.5865 7.49996 16.666V9.16602C7.49996 8.24554 8.24615 7.49935 9.16663 7.49935Z\"\r\n [attr.stroke]=\"question.get('disableRunAI')?.value ? '#D0D5DD' : '#667085'\" stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_3385_10578\">\r\n <rect width=\"20\" height=\"20\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n <svg (click)=\"question.get('disableRunAI')?.value ? '' : deleteQuestion(i,j)\"\r\n style=\"margin-left: 24px !important;\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n matTooltip=\"Delete question\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 20 20\"\r\n fill=\"none\" [ngbTooltip]=\"question.get('disableRunAI')?.value ? 'The delete option is disabled as the runAI is enabled' : ''\">\r\n <path\r\n d=\"M2.5 4.99935H4.16667M4.16667 4.99935H17.5M4.16667 4.99935V16.666C4.16667 17.108 4.34226 17.532 4.65482 17.8445C4.96738 18.1571 5.39131 18.3327 5.83333 18.3327H14.1667C14.6087 18.3327 15.0326 18.1571 15.3452 17.8445C15.6577 17.532 15.8333 17.108 15.8333 16.666V4.99935H4.16667ZM6.66667 4.99935V3.33268C6.66667 2.89065 6.84226 2.46673 7.15482 2.15417C7.46738 1.84161 7.89131 1.66602 8.33333 1.66602H11.6667C12.1087 1.66602 12.5326 1.84161 12.8452 2.15417C13.1577 2.46673 13.3333 2.89065 13.3333 3.33268V4.99935M8.33333 9.16602V14.166M11.6667 9.16602V14.166\"\r\n [attr.stroke]=\"question.get('disableRunAI')?.value ? '#D0D5DD' : '#667085'\" stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <div>\r\n <div class=\"row mx-0\">\r\n <div class=\"col-lg-4 px-0\" *ngIf=\"ChecklistForm.get('sections')\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"bulkUploadQuestion()\" class=\"mt-2 btn-sec pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>Bulk Upload Questions</div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-4 pl-5\" *ngIf=\"ChecklistForm.get('sections')\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"addNewQuestion(sectionIndex)\" class=\"mt-2 btn-sec pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg> Add New Question</div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-4 pl-5\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"addNewSection()\" class=\"mt-2 px-0 btn-sec pointer\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg> Add New Section</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</div>", styles: [".checklist-card div,input[type=text]:not(.plain-input),input[type=time],input[type=number],select{color:#101828;border:1px solid #D0D5DD;box-shadow:0 1px 2px #1018280d;border-radius:8px;font-size:16px;width:100%;padding:10px 14px;font-family:Inter;font-weight:400;line-height:24px}.checklist-card input{padding-right:20%}.card{border-radius:16px}.row>*{padding-right:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}input[type=checkbox]:focus{border:none!important;outline:none!important;box-shadow:none!important}input:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}select{-webkit-appearance:none!important;-moz-appearance:none!important;height:45px;width:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAUCAMAAACtdX32AAAAdVBMVEUAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhMdQaAAAAJ3RSTlMAAAECAwQGBwsOFBwkJTg5RUZ4eYCHkJefpaytrsXGy8zW3+Do8vNn0bsyAAAAYElEQVR42tXROwJDQAAA0Ymw1p9kiT+L5P5HVEi3qJn2lcPjtIuzUIJ/rhIGy762N3XaThqMN1ZPALsZPEzG1x8LrFL77DHBnEMxBewz0fJ6LyFHTPL7xhwzWYrJ9z22AqmQBV757MHfAAAAAElFTkSuQmCC);background-position:100%;background-repeat:no-repeat}select:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}textarea:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}textarea,select{color:#101828;border:1px solid #D0D5DD;box-shadow:0 1px 2px #1018280d;border-radius:8px;font-size:16px;width:100%;padding:10px 14px;font-family:Inter;font-weight:400;line-height:24px}.btn-outline{border:1px solid lightgrey;padding:calc(.75rem + 1px) calc(1.5rem + 1px)}.btn-light-primary{color:var(--primary-700, #009BF3);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;line-height:24px;text-transform:capitalize}.newbutton{border:1px solid lightgrey;padding:calc(.75rem + 1px) calc(1.5rem + 1px);color:#000;background-color:#fff}.newbutton:hover,.newbutton:active{background-color:#009bf3;color:#fff}.btn.btn-light-primary:hover:not(.btn-active),.btn-light-primary:active{color:var(--primary-700, #009BF3);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;outline:none!important;background-color:#d1f0ff82!important}.ml-5{margin-left:10px}.pl-5{padding-left:10px!important}.btn-left{display:inline-block;width:100%;font-size:16px;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important}.card hr{width:-webkit-fill-available}.card{height:100%!important}.rotate{transform:rotate(180deg);transition:1s}.hidesec{visibility:hidden;opacity:.1;transition:1s}.fs-16px{font-size:16px}.card svg{margin-left:5px!important;cursor:pointer}.form-switch,.form-check-label{padding-left:5px!important}.webkitwidth{width:-webkit-fill-available}.fs-18px{font-size:18px;color:var(--black, #000);font-family:inter}.Answer1 .checklist-card,.Answer2 .checklist-card{position:relative}.Answer1 svg,.Answer2 svg{position:absolute;top:15px;right:15px}.Answer1 .imgAdd,.Answer2 .imgAdd{position:absolute;top:13px!important;right:57px!important}.Answer1 .flag,.Answer2 .flag{color:red!important}.Answer1 .flag>.flag-path,.Answer2 .flag>.flag-path{fill:red!important;stroke:red}.Answer1 .vl,.Answer2 .vl{position:absolute;top:1px;right:45px;border-left:1px solid #D0D5DD;height:43px}.Answer1 .vl2,.Answer2 .vl2{position:absolute;top:1px;right:90px;border-left:1px solid #D0D5DD;height:43px}.Answer1 svg:hover,.Answer2 svg:hover{fill:#d0d5dd!important}.editablecontent{display:inline-block;max-width:60ch;white-space:nowrap;outline:none!important;border:none!important;box-shadow:none!important;overflow:hidden!important;text-overflow:ellipsis!important}.editablecontent-left{display:inline-block;width:180px;white-space:nowrap;outline:none!important;border:none!important;box-shadow:none!important;overflow:hidden!important;text-overflow:ellipsis!important}[contenteditable]{outline:0px solid transparent}.min-width-popup{min-width:46%!important}.max-w-128px{max-width:128px}.fw-600{font-weight:600!important}.fw-400{font-weight:400}.footer1 span{color:#000;font-family:inter;font-size:14px;font-weight:500px;line-height:20px}.footer1 a{font-family:inter;font-size:14px;font-weight:600;text-decoration:underline;color:var(--primary-700, #009BF3)}.footer1 a:hover{color:var(--primary-700, #009BF3);text-decoration-line:underline!important;text-decoration-thickness:1px!important}.btn-sec{color:var(--gray-700, #344054)!important;font-family:Inter;font-size:14px;font-style:normal;font-weight:500!important;line-height:24px}.form-check-label{color:var(--gray-700, #344054)!important}.question-left{max-height:63vh;overflow:auto;overflow-x:hidden}.Question-sec{position:relative;border-radius:8px;border:1px solid var(--gray-300, #D0D5DD);background:var(--gray-50, #F9FAFB);width:100%;padding:24px 16px 16px}.Question-sec .questiontitle{position:absolute;top:-15px;background-color:#fff;border:1px solid var(--gray-300, #D0D5DD)!important;border-radius:8px}.Question-sec h3{color:var(--gray-700, #344054);font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:20px;margin-bottom:0!important}.Question-sec .fs16-600{font-size:14px;font-style:normal;font-weight:600;line-height:20px}.Question-sec p{color:var(--gray-500, #667085);font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.swal2-confirm{font-family:Inter!important;font-size:30px!important;background-color:var(--white, #FFF)!important;border:solid var(--gray-300, #D0D5DD)!important}.Overlay{top:0;left:0;width:100%;height:100%;z-index:200!important;position:fixed;background:#58575799}.popup{position:absolute;top:50%;left:50%;opacity:1;transform:translate(-50%,-50%);background:var(--white, #FFF);border-radius:12px!important;border-radius:12px;box-shadow:0 8px 8px -4px #10182808,0 20px 24px -4px #10182814;padding:30px;width:400px;height:fit-content}.kiwi:hover{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi:hover path{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi{fill:#fff!important;stroke:#d0d5dd!important}.kiwi path{fill:#fff!important;stroke:#d0d5dd!important}.kiwi:active{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi:active path{fill:#d0d5dd!important;stroke:#d0d5dd!important}.active-flag{fill:red!important;stroke:red!important}.active-flag path{fill:red!important;stroke:red!important}.active-flag:active{fill:red!important;stroke:red!important}.active-flag:active path{fill:red!important;stroke:red!important}.toasttitile{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}.ref_del_icon{position:absolute;top:24px;right:24px;transform:translate(50%,-50%);padding:6px;border-radius:8px;border:1px solid var(--error-50, #FEF3F2);background:var(--error-50, #FEF3F2);box-shadow:0 1px 2px #1018280d}.ref_del_icon svg{margin:0!important}.ref_img_cont{position:relative}::ng-deep .swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;min-width:2em;height:0em;margin:0 .5em 0 0}::ng-deep .listitem{display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:.5rem 1rem;background-color:#f3f6f9;margin-top:.75rem;border-radius:.42rem}::ng-deep .toasttitile{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}::ng-deep .list{overflow-y:auto}::ng-deep .listitemlabel{font-size:13px!important;font-weight:600;font-family:Inter;color:#7e8299}::ng-deep .swal2-container{padding:.4em!important}::ng-deep .swal2-icon{border:1px solid white!important}::ng-deep body.swal2-toast-shown .swal2-container{width:500px!important}::ng-deep .swal2-popup.swal2-toast{border-left:4px solid #009EF7}::ng-deep .swal2-popup.swal2-toast .swal2-title{margin:9px 5px auto!important}::ng-deep .label{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}::ng-deep .custom-test{color:var(--gray-700, #344054)!important;text-align:start;font-family:Inter;font-size:12px;font-style:normal;border-radius:8px;box-shadow:0 4px 6px -2px #10182808,0 12px 16px -4px #10182814;font-weight:600;line-height:18px;background:#fff}.text-gray-700{color:#344054!important}.mandatoryfield input,.answervalidation input{border:none;padding:0!important}.mandatoryfield input[type=checkbox],.answervalidation input[type=checkbox]{width:16px!important;height:16px!important;margin:5px;border-radius:4px!important;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;outline:1px solid var(--gray-600, #D0D5DD)!important;box-shadow:none;font-size:.5em;text-align:center;line-height:1em;background:#fff}.mandatoryfield input[type=checkbox]:checked,.answervalidation input[type=checkbox]:checked{outline:1px solid var(--primary-600, #00A3FF)!important;background-color:var(--primary-50, #EAF8FF)}.mandatoryfield input[type=checkbox]:checked:after,.answervalidation input[type=checkbox]:checked:after{content:\"\";transform:rotate(45deg);border-bottom:2px solid #00A3FF;border-right:2px solid #00A3FF;display:inline-block;width:.5em;padding-left:3px;padding-top:10px;padding-right:0}.concise-checklistname{display:inline-block;width:100%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important;text-transform:capitalize}.concise-question{display:inline-block;width:100%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left}.active-question{color:var(--primary-700, #009BF3);font-size:16px;font-style:normal;font-weight:500;line-height:24px;display:flex;padding:8px 12px;align-items:center;gap:105px;align-self:stretch;border-radius:6px;background:var(--primary-50, #EAF8FF)}.q-btn{color:var(--gray-700, #344054);font-size:16px;font-style:normal;font-weight:500;line-height:24px;display:flex;padding:8px 12px;align-items:center;gap:105px;align-self:stretch;border-radius:6px;background:var(--primary-50, white)}.pointer{cursor:pointer}select option{padding:4px}.add-ref-btn{border-radius:8px;border:1px solid var(--primary-50, #EAF8FF);box-shadow:0 1px 2px #1018280d;padding:14px 0!important}::ng-deep .form-switch .form-check-input{border:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='rgba(255, 255, 255, 1)'/%3E%3C/svg%3E\")!important}::ng-deep .form-switch .form-check-input:not(:checked){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='rgba(255, 255, 255, 1)'/%3E%3C/svg%3E\")!important;background-color:var(--gray-100, #F2F4F7)!important}.plain-input{border:none;outline:none;background:transparent;padding:0;margin:0;width:100%;overflow:hidden;color:var(--black, #101828);text-overflow:ellipsis;font-family:Inter;font-size:18px;font-style:normal;font-weight:500;line-height:28px}.plain-input:focus{border-radius:0!important;border:white!important;outline:none!important;box-shadow:none!important}.auto-adjust{max-width:100%;max-height:100%;object-fit:contain;background-color:#fff}.createbuttons{padding:10px 18px;justify-content:center;align-items:center;gap:8px;border-radius:8px;border:1px solid var(--primary-600, #00A3FF);background:var(--primary-600, #00A3FF);box-shadow:0 1px 2px #1018280d}.create{color:var(--white, #FFF);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;line-height:24px;text-transform:capitalize}.savedraft{border-radius:8px;border:1px solid var(--gray-300, #D0D5DD);background:var(--white, #FFF);padding:10px 18px;justify-content:center;align-items:center;gap:8px;box-shadow:0 1px 2px #1018280d}.savedraft:hover{background:#f3f8fd!important;border:1px solid var(--gray-300, #D0D5DD)!important}.savedrafttext{color:var(--gray-700, #344054);font-family:Inter;font-size:16px;font-weight:600;line-height:24px;text-transform:capitalize}.questionsArea{overflow-y:scroll;padding:4px}::ng-deep .questionsArea::-webkit-scrollbar-thumb{-webkit-border-radius:10px!important;border-radius:10px!important;background:var(--gray-100, #eaeaea)!important;height:50px!important}::ng-deep .questionsArea::-webkit-scrollbar{width:10px!important}::ng-deep .questionsArea::-webkit-scrollbar-track{background:none!important;box-shadow:none!important}::ng-deep .swal2-html-container{overflow:hidden!important}.ansoptions{color:var(--gray-700, #344054);font-family:Inter;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.checklist{font-family:Inter;font-size:20px;font-weight:600;line-height:28px;text-align:left;color:#667085!important}.checklistDescription{font-family:Inter;font-size:14px;font-weight:400;line-height:18px;text-align:left}.dscriptiveType{font-size:15px!important}.loader .title{width:65%}.loader .link{width:85%}.loader .description{width:95%}.loader .shimmer{padding:15px;width:95%;height:120px;margin:10px auto;background:#fff}.loader .shimmer .image-card{height:90px;width:90px;float:right;border-radius:8px}.loader .stroke{height:15px;background:#777;margin-top:20px}.loader .wrapper{width:0px;animation:fullView .5s forwards linear}@keyframes fullView{to{width:100%}}.loader .animate{animation:shimmer 3s;animation-iteration-count:infinite;background:linear-gradient(to right,#e6e6e6 5%,#ccc 25%,#e6e6e6 35%);background-size:1000px 100%}@keyframes shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}.image-container{position:relative;display:inline-block}.base-image{display:block;width:100%;height:auto}.overlay-icons{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;gap:10px;opacity:0;transition:opacity .3s ease}.image-container:hover .overlay-icons{opacity:1}.overlay-icons button{background:#fffc;border:none;border-radius:50%;padding:10px;cursor:pointer}.overlay-icons button:hover{background:#fff}.btn-light-disbaled{color:var(--Primary-300, #6BCAFF)!important;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:20px;text-transform:capitalize}.borderCard{border-radius:8px;border:1px solid var(--Primary-25, #F6FCFF);background:var(--Primary-25, #F6FCFF);box-shadow:0 1px 2px #1018280d}:host::ng-deep #checklistCreate .md-drppicker .dropdowns:first-child{width:115px!important}:host::ng-deep #checklistCreate .md-drppicker .dropdowns:nth-child(2){width:56px!important}:host::ng-deep #checklistCreate .md-drppicker .btn{line-height:10px!important}:host::ng-deep #checklistCreate .daterangepicker-input+.ngx-daterangepicker-material .applyBtn{display:none}:host::ng-deep #checklistCreate .md-drppicker.drops-down-right.ltr.show-ranges.shown{top:65px!important}:host::ng-deep #checklistCreate .md-drppicker.drops-down-right.ltr.double.show-ranges.shown{top:65px!important;right:-475px!important;left:unset!important;height:400px!important}:host::ng-deep #checklistCreate .md-drppicker .btn{border-radius:8px!important;border:1px solid var(--Primary-600, #00A3FF)!important;background:var(--Primary-600, #00A3FF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--White, #FFF)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize}:host::ng-deep #checklistCreate .md-drppicker .ranges ul li button{padding:12px 16px;width:160px;color:var(--Gray-700, #344054);font-size:14px;font-weight:400;line-height:20px;background:none;border:none;text-align:left;cursor:pointer}:host::ng-deep #checklistCreate .md-drppicker td.active,:host::ng-deep #checklistCreate .md-drppicker td.active:hover{background-color:#029cf4!important;border-radius:20px!important;color:var(--White, #FFF)!important;text-align:center!important;font-size:14px!important;font-weight:500!important;line-height:20px}:host::ng-deep #checklistCreate .md-drppicker.ltr .ranges{float:left;margin-top:10px!important}:host::ng-deep #checklistCreate .md-drppicker td.in-range{background:var(--Primary-50, #EAF8FF)}:host::ng-deep #checklistCreate .md-drppicker .ranges ul li button.active{background:var(--Primary-50, #EAF8FF)!important;border-radius:8px!important;color:var(--Primary-700, #009BF3);font-size:14px!important;font-weight:500!important;line-height:20px!important}:host::ng-deep #checklistCreate table th,:host::ng-deep #checklistCreate table td{width:40px!important;height:40px!important;padding:10px 8px!important}:host::ng-deep #checklistCreate .md-drppicker td.available.prev,:host::ng-deep #checklistCreate .md-drppicker th.available.prev{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep #checklistCreate .md-drppicker td.available.next,:host::ng-deep #checklistCreate .md-drppicker th.available.next{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep #checklistCreate table th{border-bottom:0px solid var(--Gray-200, #EAECF0)!important;background:transparent!important;color:var(--Gray-700, #344054)!important;text-align:center;font-size:16px!important;font-weight:500!important;line-height:24px}:host::ng-deep #checklistCreate .md-drppicker .btn.btn-default{border-radius:8px!important;border:1px solid var(--Gray-300, #D0D5DD)!important;background:var(--White, #FFF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize;margin-right:10px!important}:host::ng-deep #checklistCreate .md-drppicker td.available.invalid-date{text-decoration:line-through;pointer-events:none;color:#a9a9a9}:host::ng-deep #checklistCreate .md-drppicker td.available.today:not(.invalid-date){text-decoration:unset;pointer-events:unset;color:unset}:host::ng-deep #checklistCreate .daterangepicker{display:block!important;top:153.85px!important;left:900px!important;right:0}.rangeText{font-family:Inter;font-weight:500;font-size:16px;line-height:24px;letter-spacing:0%;margin-top:10px;color:#101828}.dropText{color:#101828;font-family:Inter;font-weight:400;font-size:16px;line-height:24px;letter-spacing:0%}.limitTooltipText{font-family:Inter;font-weight:400;font-style:Italic;font-size:12px;line-height:100%;letter-spacing:0%;color:#667085}.limitComplianceText{font-family:Inter;font-weight:500;font-style:Italic;font-size:14px;line-height:100%;letter-spacing:0%;color:#667085}\n"] }]
2447
+ args: [{ selector: 'lib-add-checklist', template: "<div class=\"card\" *ngIf=\"checklistLoading\">\r\n <div class=\"row loader d-flex justify-content-center align-items-center\">\r\n <div class=\"shimmer\">\r\n <div class=\"wrapper\">\r\n <div class=\"stroke animate title\"></div>\r\n <div class=\"stroke animate link\"></div>\r\n <div class=\"stroke animate description\"></div>\r\n </div>\r\n </div>\r\n <div class=\"shimmer\">\r\n <div class=\"wrapper\">\r\n <div class=\"stroke animate title\"></div>\r\n <div class=\"stroke animate link\"></div>\r\n <div class=\"stroke animate description\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div *ngIf=\"!checklistLoading\" id=\"checklistCreate\">\r\n <div class=\"card\">\r\n <ng-container [formGroup]=\"ChecklistForm\">\r\n <div class=\"card-header border-0 pt-3 pb-3\">\r\n <div class=\"row w-100\">\r\n <div class=\"col-md-9\">\r\n <h3 class=\"card-title align-items-center mt-3 mb-0\">\r\n <div routerLink=\"/manage/trax/checklist\" class=\"btn btn-sm btn-outline me-5 ps-2 px-3\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M15.8332 10.0003H4.1665M4.1665 10.0003L9.99984 15.8337M4.1665 10.0003L9.99984 4.16699\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg></div>\r\n <div class=\"flex-column w-800px\">\r\n <div class=\"editablecontent mb-4 w-100\"><input type=\"text\" class=\"checklist plain-input\" #checklistName placeholder=\"Enter Checklist Name\" formControlName=\"checklistName\"></div>\r\n <div class=\"editablecontent w-100\"><input type=\"text\" class=\"checklistDescription plain-input\" #checklistDescription placeholder=\"Enter Checklist Description\" formControlName=\"checklistDescription\"></div>\r\n </div>\r\n </h3>\r\n </div>\r\n <div class=\"col-md-3\">\r\n <div class=\"d-flex my-6 justify-content-end\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <button type=\"button\" class=\"btn btn-primary mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'add'\" (click)=\"saveChecklistQuestions('configure')\"><span class=\"ms-2\">Configure</span>\r\n </button>\r\n \r\n <button type=\"button\" class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'add'\" (click)=\"saveAsDraftPop('create')\"><span class=\"ms-2\">Save as Draft</span> </button>\r\n \r\n <button type=\"button\" class=\"btn btn-primary mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'edit'\" (click)=\"updateChecklistQuestions('configure')\"><span class=\"ms-2\">Configure</span>\r\n </button>\r\n <button type=\"button\" class=\"btn btn-default mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val\"\r\n *ngIf=\"showvalue === 'edit'\" (click)=\"saveAsDraftPop('update')\"><span class=\"ms-2\">Save as Draft</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <div class=\"col-lg-3 mt-2\">\r\n <ng-container [formGroup]=\"ChecklistForm\">\r\n <div class=\"section-left card px-7 py-7\">\r\n <div class=\"fs-18px fw-600 text-left mb-3 concise-checklistname\">\r\n {{getFormControl('checklistName').value ? getFormControl('checklistName').value : 'ChecklistName'}}\r\n </div>\r\n <div class=\"left-panel-container\" formArrayName=\"sections\">\r\n <div *ngFor=\"let section of getSectionFormArray().controls;let i=index;\">\r\n <ng-container [formGroupName]=\"i\">\r\n <div class=\"d-flex section align-items-center justify-content-between\">\r\n <div class=\"fs-18px fw-bold editablecontent-left\">{{\r\n getSectionFormControl(i,'name')?.value === '' ? \"Section \" : ''}}{{\r\n getSectionFormControl(i,'name')?.value ? getSectionFormControl(i,'name')?.value\r\n : getSectionFormControl(i,'sectionNumber')?.value}}</div>\r\n <hr class=\"mx-2\">\r\n <svg (click)=\"deleteSection(i)\" xmlns=\"http://www.w3.org/2000/svg\" width=\"35\"\r\n height=\"35\" viewBox=\"0 0 18 18\" matTooltip=\"Delete section\"\r\n matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" fill=\"none\">\r\n <path\r\n d=\"M2.25 4.5H3.75M3.75 4.5H15.75M3.75 4.5V15C3.75 15.3978 3.90804 15.7794 4.18934 16.0607C4.47064 16.342 4.85218 16.5 5.25 16.5H12.75C13.1478 16.5 13.5294 16.342 13.8107 16.0607C14.092 15.7794 14.25 15.3978 14.25 15V4.5H3.75ZM6 4.5V3C6 2.60218 6.15804 2.22064 6.43934 1.93934C6.72064 1.65804 7.10218 1.5 7.5 1.5H10.5C10.8978 1.5 11.2794 1.65804 11.5607 1.93934C11.842 2.22064 12 2.60218 12 3V4.5M7.5 8.25V12.75M10.5 8.25V12.75\"\r\n stroke=\"#667085\" stroke-width=\"1.4\" stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n <svg (click)=\"accordian(i)\" [ngClass]=\"{'rotate' : show !== i}\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"35\" height=\"35\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"#667085\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <ng-container *ngIf=\"show===i\">\r\n <div cdkDropList (cdkDropListDropped)=\"dragDrop(i,$event)\"\r\n [cdkDropListData]=\"getFormArrayQuestions(i).controls\" class=\"question-left\">\r\n <ng-container formArrayName=\"questions\">\r\n <div *ngFor=\"let question of getFormArrayQuestions(i).controls;let j=index;\"\r\n class=\"my-2 cursor-pointer\"\r\n [ngClass]=\"question.get('active')?.value === true ? 'active-question' : 'q-btn'\"\r\n cdkDrag (mouseenter)=\"setActiveQuestion(i,j,1)\"\r\n (click)=\"scrollToQuestion(i,j);\"\r\n (mouseleave)=\"setActiveQuestion(i,j,-1)\">\r\n <ng-container [formGroupName]=\"j\">\r\n <div class=\"concise-question\">\r\n {{getQuestionFormControl(i,j,'qname')?.value ? '' : \"Question\"}}{{ getQuestionFormControl(i,j,'qname')?.value ?\r\n getQuestionFormControl(i,j,'qname')?.value :\r\n getQuestionFormControl(i,j,'qno')?.value }}\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"col-lg-9 mt-2\">\r\n <form [formGroup]=\"ChecklistForm\" #formRef>\r\n <div class=\"card px-7\">\r\n <!-- <div class=\"checklist-card py-5\">\r\n <input type=\"text\" class=\"mt-2\" style=\"text-transform: capitalize;\"\r\n placeholder=\"Enter checklist name here\" formControlName=\"checklistName\">\r\n <input type=\"text\" class=\"mt-4\" placeholder=\"Enter checklist description here\"\r\n formControlName=\"checklistDescription\">\r\n </div> -->\r\n <ng-container formArrayName=\"sections\" >\r\n <div class=\"sectionArea mt-5\" *ngFor=\"let section of getSectionFormArray().controls;let i=index;\">\r\n <ng-container [formGroupName]=\"i\">\r\n <div class=\"section d-flex align-items-center justify-content-between\">\r\n \r\n <div class=\"fs-18px fw-bold editablecontent\"><input type=\"text\" class=\"plain-input\"\r\n #sectionName (change)=\"updateInputValue(i,sectionName.value)\"\r\n formControlName=\"name\"></div>\r\n <hr>\r\n <svg class=\"ml-5\" (click)=\"deleteSection(i)\" xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\" matTooltip=\"Delete section\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 18 18\" fill=\"none\">\r\n <path\r\n d=\"M2.25 4.5H3.75M3.75 4.5H15.75M3.75 4.5V15C3.75 15.3978 3.90804 15.7794 4.18934 16.0607C4.47064 16.342 4.85218 16.5 5.25 16.5H12.75C13.1478 16.5 13.5294 16.342 13.8107 16.0607C14.092 15.7794 14.25 15.3978 14.25 15V4.5H3.75ZM6 4.5V3C6 2.60218 6.15804 2.22064 6.43934 1.93934C6.72064 1.65804 7.10218 1.5 7.5 1.5H10.5C10.8978 1.5 11.2794 1.65804 11.5607 1.93934C11.842 2.22064 12 2.60218 12 3V4.5M7.5 8.25V12.75M10.5 8.25V12.75\"\r\n stroke=\"#667085\" stroke-width=\"1.4\" stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n <svg (click)=\"accordian(i)\" [ngClass]=\"{'rotate' : show !== i}\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M5 7.5L10 12.5L15 7.5\" stroke=\"#667085\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <div class=\"questionsArea\" *ngIf=\"show === i\">\r\n <ng-container formArrayName=\"questions\">\r\n <div class=\"Question-sec mt-10\"\r\n *ngFor=\"let question of getFormArrayQuestions(i).controls;let j = index;\"\r\n (mouseenter)=\"setActiveQuestion(i,j,1)\"\r\n (mouseleave)=\"setActiveQuestion(i,j,-1)\">\r\n <ng-container [formGroupName]=\"j\">\r\n <span class=\"fs-18px px-3 editablecontent questiontitle\"\r\n style=\"cursor: default;\"> Question {{j+1}}</span>\r\n \r\n <div class=\"checklist-card pb-5\">\r\n <textarea class=\"form-control form-control-solid\" rows=\"1\"\r\n type=\"text\" class=\"mt-0\" [id]=\"'q-' + i + '-' + j\"\r\n placeholder=\"Enter question here\"\r\n formControlName=\"qname\"></textarea>\r\n <ng-container\r\n *ngIf=\"question.get('qname')?.invalid && question.get('qname')?.touched\">\r\n <p style=\"color: red;\"\r\n *ngIf=\"question.get('qname')?.hasError('required')\">*\r\n Question is required.</p>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"row\"\r\n *ngIf=\"!['descriptiveImage','image','multipleImage','image/video'].includes(question.get('answerType')?.value)\">\r\n <div class=\"col-md-4 w-90 text-center\" *ngFor=\"let image of question.get('multiQuestionReferenceImage')?.value; let m = index\" style=\"position: relative;\">\r\n <div *ngIf=\"image?.imageURL\"\r\n class=\"image-container ref_img_cont mb-4 mt-5\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : onPopup(image.imageURL)\" ngbTooltip=\"Expand\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <input class=\"d-none\" [id]=\"'fileuploadref_1'+i+j+m\" type=\"file\"\r\n name=\"answerFile\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage',m)\">\r\n <label class=\"cursor-pointer\" (click)=\"refImgQIdx=j;\" [for]=\"'fileuploadref_1'+i+j+m\" ngbTooltip=\"Reupload\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : clearReferenceImage(i,j,-1,m,'multiQuestionReferenceImage');\" ngbTooltip=\"Delete\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\" (click)=\"clearReferenceImage(i,j);\">\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n \r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiQuestionReferenceImage')?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\" [id]=\"'fileupload_'+i+j\" type=\"file\"\r\n name=\"answerFile\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage')\">\r\n <label [for]=\"'fileupload_'+i+j\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-2\"\r\n width=\"21\" height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_4082_3122\">\r\n <rect width=\"20\" height=\"20\" fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image\r\n </label>\r\n </div> -->\r\n <div *ngIf=\"question.get('multiQuestionReferenceImage')?.value.length <5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" [id]=\"'fileuploadQnRef1_2'+i+j\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiQuestionReferenceImage')\">\r\n <label class=\"pointer\" [for]=\"'fileuploadQnRef1_2'+i+j\"\r\n (click)=\"refImgQIdx=j;\"> \r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image \r\n </label>\r\n </div>\r\n <div *ngIf=\"question.get('multiQuestionReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"checklist-card pb-5\" [ngClass]=\"['image','image/video','multiplechoicesingle','yes/no','date','linearscale'].includes(question.get('answerType')?.value) ? 'col-md-8' :'col-md-12'\">\r\n <select class=\"mt-5\" name=\"selectoption\"\r\n (change)=\"answerTypeSelection(i,j,$event)\"\r\n formControlName=\"answerType\">\r\n <option name=\"descriptive\" value=\"descriptive\">Descriptive\r\n Answer</option>\r\n <option name=\"yes/no\" value=\"yes/no\">A/B Question</option>\r\n <option name=\"multiplechoicesingle\"\r\n value=\"multiplechoicesingle\">Multiple Choice Question -\r\n Single Answer</option>\r\n <option name=\"multiplechoicemultiple\"\r\n value=\"multiplechoicemultiple\">Multiple Choice Question -\r\n Multiple Answer</option>\r\n <option name=\"descriptiveImage\" value=\"descriptiveImage\">Capture\r\n Image with Description</option>\r\n <option name=\"image\" value=\"image\">Capture Image as answer\r\n </option>\r\n <option name=\"video\" value=\"video\">Capture video as answer\r\n </option>\r\n <option name=\"multipleImage\" value=\"multipleImage\">Capture\r\n Multiple Image</option>\r\n <option name=\"date\" value=\"date\">Date - DD/MM/YYYY</option>\r\n <option name=\"linearscale\" value=\"linearscale\">Linear Scale</option>\r\n <option name=\"time\" value=\"time\">Time</option>\r\n <option name=\"imageVideo\" value=\"image/video\">Capture Image/Video as Answer</option>\r\n <option name=\"dropdown\" value=\"dropdown\">Dropdown as an answer</option>\r\n </select>\r\n \r\n </div>\r\n <div class=\"col-md-4\" *ngIf=\"['image','image/video','multiplechoicesingle','yes/no','date','linearscale'].includes(question.get('answerType')?.value)\">\r\n <div class=\"form-check form-switch text-left align-items-center btn-sec mt-10\" >\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\" ngDefaultControl formControlName=\"compliance\" (change)=\"getComplianceToast(i,j,$event)\" [attr.disabled]=\"hasValidationEnabled(i,j) ? true : null\">\r\n <label class=\"form-check-label pointer fs-16px\" for=\"flexSwitchCheckDefault\">Configure Compliance Score</label>\r\n \r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-3 mx-4 d-flex mt-3\" *ngIf=\"['descriptive'].includes(question.get('answerType')?.value)\">\r\n <div class=\"form-check\" >\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" value=\"text\" [name]=\"'descriptivetype'\" [id]=\"'inlineRadio0'+ i + j\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio0'+ i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" value=\"number\" [name]=\"'descriptivetype'\" [id]=\"'inlineRadio1'+ i + j\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio1'+i + j\">Number</label>\r\n </div>\r\n </div>\r\n <ng-container\r\n *ngIf=\"['yes/no','multiplechoicesingle','multiplechoicemultiple','dropdown'].includes(question.get('answerType')?.value)\">\r\n <div class=\"d-flex justify-content-between\">\r\n <div class=\"fs-18px fw-bolder\" style=\"cursor: default;\">Answer Options</div>\r\n <div class=\"form-check form-switch text-left align-items-center btn-sec mt-2\" *ngIf=\"question.get('answerType')?.value == 'dropdown'\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\" ngDefaultControl formControlName=\"allowMultiple\">\r\n <label class=\"form-check-label pointer fs-16px\" for=\"flexSwitchCheckDefault\">Allow Multiple Response</label>\r\n \r\n </div>\r\n </div>\r\n <ng-container formArrayName=\"answers\">\r\n <ng-container\r\n *ngFor=\"let answer of getFormArrayQuestionsAnswer(i,j,'answers')?.controls;let k = index;\">\r\n <div class=\"row\" [formGroupName]=\"k\">\r\n <ng-container *ngIf=\"!answer.get('isdeleted')?.value\">\r\n <div class=\"Answer1\" [ngClass]=\"question.get('compliance')?.value ? 'col-lg-4' : 'col-lg-6'\">\r\n <div class=\"checklist-card pb-0 mt-5\">\r\n <input type=\"text\" class=\"mt-0\"\r\n placeholder=\"Enter answer here\"\r\n formControlName=\"answer\"\r\n (input)=\"onAnswerValueChange(i,j,k)\">\r\n <span class=\"vl\"></span>\r\n <ng-container\r\n *ngIf=\"question.get('answerType')?.value === 'yes/no' || question.get('answerType')?.value === 'multiplechoicesingle'\"\r\n ngDefaultControl>\r\n <span class=\"vl2\"></span>\r\n <svg class=\"imgAdd\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :updateLinked(i,j,k)\">\r\n <path\r\n d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\"\r\n stroke=\"#344054\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"answer.get('answer')?.invalid && answer.get('answer')?.touched\">\r\n <p style=\"color: red;\"\r\n *ngIf=\"answer.get('answer')?.hasError('required')\">\r\n * Answer is required.</p>\r\n </ng-container>\r\n <p style=\"color: red;\"\r\n *ngIf=\"answer.get('showSOPFlagError')?.value === true\">\r\n Every answer can\u2019t be a flag.</p>\r\n \r\n <ng-container formControlName=\"sopFlag\"\r\n ngDefaultControl>\r\n \r\n <svg (click)=\"question.get('disableRunAI')?.value ?'' : raiseflag(i,j,k,true)\"\r\n matTooltip=\"Raise a flag if this answer is selected\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\"\r\n *ngIf=\"answer.get('sopFlag')?.value === false\"\r\n class=\"kiwi\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\" height=\"16\"\r\n viewBox=\"0 0 16 16\">\r\n <path\r\n d=\"M2.66669 10.0007C2.66669 10.0007 3.33335 9.33398 5.33335 9.33398C7.33335 9.33398 8.66669 10.6673 10.6667 10.6673C12.6667 10.6673 13.3334 10.0007 13.3334 10.0007V2.00065C13.3334 2.00065 12.6667 2.66732 10.6667 2.66732C8.66669 2.66732 7.33335 1.33398 5.33335 1.33398C3.33335 1.33398 2.66669 2.00065 2.66669 2.00065V10.0007ZM2.66669 10.0007V14.6673\"\r\n stroke=\"#D0D5DD\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n \r\n <svg (click)=\"question.get('disableRunAI')?.value ?'' : raiseflag(i,j,k,false)\"\r\n matTooltip=\"Raise a flag if this answer is selected\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\"\r\n *ngIf=\"answer.get('sopFlag')?.value === true\"\r\n class=\"active-flag\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\" height=\"16\"\r\n viewBox=\"0 0 16 16\">\r\n <path\r\n d=\"M2.66669 10.0007C2.66669 10.0007 3.33335 9.33398 5.33335 9.33398C7.33335 9.33398 8.66669 10.6673 10.6667 10.6673C12.6667 10.6673 13.3334 10.0007 13.3334 10.0007V2.00065C13.3334 2.00065 12.6667 2.66732 10.6667 2.66732C8.66669 2.66732 7.33335 1.33398 5.33335 1.33398C3.33335 1.33398 2.66669 2.00065 2.66669 2.00065V10.0007ZM2.66669 10.0007V14.6673\"\r\n stroke=\"#D0D5DD\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div [ngClass]=\"question.get('compliance')?.value ? 'col-lg-5' : 'col-lg-6'\"\r\n *ngIf=\"!answer.get('showLinked')?.value\">\r\n <div class=\"d-flex justify-content-between\">\r\n <div class=\"d-flex answervalidation\">\r\n <input class=\"mt-7\" type=\"checkbox\"\r\n style=\"width:16px;height:16px;cursor: pointer;\"\r\n value=\"1\"\r\n (change)=\"getvalidation(i,j,k,$event)\"\r\n formControlName=\"validation\">\r\n <div class=\"chackbox pt-4 mt-2 mx-2\"\r\n style=\"cursor: default;\">\r\n <h3>Validate response</h3>\r\n <p class=\"mb-0\">Trigger an action\r\n for each response to validate it\r\n </p>\r\n </div>\r\n </div>\r\n <svg *ngIf=\"question.get('answerType')?.value !== 'yes/no' && getFormArrayQuestionsAnswer(i,j,'answers').value.length > 2 && !question.get('compliance')?.value\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :deleteAnswer(i,j,k)\"\r\n class=\"mt-8\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n matTooltip=\"Delete answer\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M15 5L5 15M5 5L15 15\"\r\n stroke=\"#667085\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n \r\n </div>\r\n <div class=\"col-md-3\" *ngIf=\"question.get('compliance')?.value\">\r\n <select class=\"w-150px mt-7\" formControlName=\"complianceScore\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n <svg class=\"ms-3\" *ngIf=\"question.get('answerType')?.value !== 'yes/no' && getFormArrayQuestionsAnswer(i,j,'answers').value.length > 2\"\r\n (click)=\"question.get('disableRunAI')?.value ?'' :deleteAnswer(i,j,k)\"\r\n class=\"\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n matTooltip=\"Delete answer\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <path d=\"M15 5L5 15M5 5L15 15\"\r\n stroke=\"#667085\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n <!-- *ngIf=\"moreqn.validation\" -->\r\n <div *ngIf=\"answer.get('validation')?.value\"\r\n class=\"row\">\r\n <div class=\"col-lg-3 pt-7 fs-4 fw-400 mt-1\">\r\n If the response is this, then\r\n </div>\r\n <div [ngClass]=\"answer.get('validationType')?.value === 'Capture Multiple Image with description' ? 'col-md-6' : 'col-lg-3'\">\r\n <select class=\"mt-5 mx-1\"\r\n formControlName=\"validationType\"\r\n (change)=\"updateValidationType($event,i,j,k)\">\r\n <option [ngValue]=\"'Descriptive Answer'\">Descriptive Answer</option>\r\n <option *ngIf=\"question.get('answerType')?.value !== 'multiplechoicesingle'\" [ngValue]=\"'Capture Image'\">Capture Image</option>\r\n <option *ngIf=\"question.get('answerType')?.value === 'multiplechoicesingle'\" [ngValue]=\"'Capture Multiple Image with description'\">Capture Multiple Image/Video with Description</option>\r\n <option [ngValue]=\"'Capture Video'\">Capture Video</option>\r\n </select>\r\n </div>\r\n <div class=\"col-lg-3 mx-4 d-flex pt-8\" *ngIf=\"answer.get('validationType')?.value === 'Descriptive Answer'\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio2' + i + j + k\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio2' + i + j + k\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio3'+ i + j + k\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio3' + i + j + k\">Number</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\"\r\n *ngIf=\"answer.get('showLinked')?.value\">\r\n <div class=\"col-lg-3 pt-7 fs-4 fw-400 mt-1\">\r\n Linked Question\r\n </div>\r\n <div class=\"col-lg-9\">\r\n <select [id]=\"i+'-'+k\" [name]=\"i+'-'+k\" class=\"mt-5\" (change)=\"updateQuestionType(i,j,k,$event)\" [disabled]=\"question.get('disableRunAI')?.value\">\r\n <option value=\"\">Select Question</option>\r\n <option *ngFor=\"let option of getQuestionList(i,j,k)\" [value]=\"option\"\r\n [selected]=\"selectOption(option,answer.get('linkedQuestion')?.value)\">Question {{option}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row\"\r\n *ngIf=\"answer.get('validation')?.value && (answer.get('validationType')?.value === 'Capture Image' || answer.get('validationType')?.value === 'Capture Multiple Image with description')\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont mb-4 mt-5\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\"\r\n class=\"auto-adju st\" alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ?'' :onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_validref'+i+j+k+n\"\r\n type=\"file\" name=\"answerFile\"\r\n accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,k,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileupload_validref'+i+j+k+n\"\r\n (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ?'' :clearReferenceImage(i,j,k,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\"\r\n (click)=\"clearReferenceImage(i,j,k);\">\r\n <svg width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_'+i+j+k\"\r\n type=\"file\" name=\"answerFile\"\r\n accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,k)\">\r\n <label [for]=\"'fileupload_'+i+j+k\"\r\n (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"mx-2\" width=\"21\"\r\n height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g\r\n clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath\r\n id=\"clip0_4082_3122\">\r\n <rect width=\"20\"\r\n height=\"20\"\r\n fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image</label>\r\n </div> -->\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage',k)?.value.length < 5\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\"\r\n [id]=\"'fileupload_validImage1'+i+j+k\"\r\n type=\"file\" name=\"file\"\r\n accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,k,'multiReferenceImage')\">\r\n <label class=\"pointer\"\r\n [for]=\"'fileupload_validImage1'+i+j+k\"\r\n (click)=\"refImgQIdx=j;\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div\r\n class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input\r\n class=\"form-check-input mx-0 pointer\"\r\n type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div class=\"col-lg-2\"></div>\r\n <div class=\"col-lg-3 d-flex justify-content-center align-items-center mt-2\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j,k)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,k,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'mt-1' : ''\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_2301_100038)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_2301_100038\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <div *ngIf=\"question.get('answers')?.hasError('duplicateString')\" class=\"text-danger mt-2\">* Same answer cannot be\r\n repeated</div>\r\n <ng-container class=\"row\"\r\n *ngIf=\"['multiplechoicemultiple','multiplechoicesingle','dropdown'].includes(question.get('answerType')?.value) && allowAddAnswer(question.get('answers')?.value) && !question.get('disableRunAI')?.value\">\r\n <div (click)=\"AddMoreAns(i,j,question.get('answerType')?.value)\"\r\n class=\"btn col-lg-12 btn-light-primary my-3\">\r\n Add More Answer</div>\r\n </ng-container>\r\n \r\n </ng-container>\r\n </ng-container>\r\n \r\n <!-- Image -->\r\n <ng-container\r\n *ngIf=\"['image','descriptiveImage','multipleImage'].includes(question.get('answerType')?.value)\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont ref_img_cont mb-4\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62513)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62513\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62513\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62513\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\" [id]=\"'fileuploadImage_45'+n\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileuploadImage_45'+n\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62522)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62522\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62522\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62522\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '': clearReferenceImage(i,j,-1,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_14557_62514)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_14557_62514\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_14557_62514\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_14557_62514\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n <!-- <div class=\"ref_del_icon\"\r\n (click)=\"(question.get('answerType')?.value === 'image' && question.get('runAIDefault')?.value) ? '': clearReferenceImage(i,j);\">\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"\r\n fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" [style]=\"(question.get('answerType')?.value === 'image' && question.get('runAIDefault')?.value) ? 'cursor:default':''\">\r\n <path\r\n d=\"M2.5 5.0013H4.16667M4.16667 5.0013H17.5M4.16667 5.0013V16.668C4.16667 17.11 4.34226 17.5339 4.65482 17.8465C4.96738 18.159 5.39131 18.3346 5.83333 18.3346H14.1667C14.6087 18.3346 15.0326 18.159 15.3452 17.8465C15.6577 17.5339 15.8333 17.11 15.8333 16.668V5.0013H4.16667ZM6.66667 5.0013V3.33464C6.66667 2.89261 6.84226 2.46868 7.15482 2.15612C7.46738 1.84356 7.89131 1.66797 8.33333 1.66797H11.6667C12.1087 1.66797 12.5326 1.84356 12.8452 2.15612C13.1577 2.46868 13.3333 2.89261 13.3333 3.33464V5.0013M8.33333 9.16797V14.168M11.6667 9.16797V14.168\"\r\n stroke=\"#B42318\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>\r\n </div> -->\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <!-- <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value\"\r\n class=\"col-lg-3 btn btn-light-primary mt-2\">\r\n <input class=\"d-none\" id=\"fileupload\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event)\" *ngIf=\"(question.get('answerType')?.value !== 'image' || (question.get('answerType')?.value === 'image' && !question.get('runAIDefault')?.value))\">\r\n <label for=\"fileupload\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"mx-2\"\r\n width=\"21\" height=\"20\" viewBox=\"0 0 21 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_4082_3122)\">\r\n <path\r\n d=\"M19.6667 3.33527V8.33527M19.6667 8.33527H14.6667M19.6667 8.33527L15.8 4.70193C14.9044 3.80586 13.7964 3.15127 12.5793 2.79925C11.3623 2.44722 10.0759 2.40923 8.84025 2.68882C7.60456 2.96841 6.45984 3.55646 5.5129 4.39812C4.56595 5.23977 3.84765 6.30759 3.42501 7.50193M1.33334 16.6686V11.6686M1.33334 11.6686H6.33334M1.33334 11.6686L5.20001 15.3019C6.09563 16.198 7.20365 16.8526 8.42068 17.2046C9.63771 17.5567 10.9241 17.5946 12.1598 17.3151C13.3955 17.0355 14.5402 16.4474 15.4871 15.6058C16.4341 14.7641 17.1524 13.6963 17.575 12.5019\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_4082_3122\">\r\n <rect width=\"20\" height=\"20\"\r\n fill=\"white\"\r\n transform=\"translate(0.5)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>Reupload Image</label>\r\n </div> -->\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length < 5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" id=\"fileuploadrefImage1\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage')\" *ngIf=\"(question.get('answerType')?.value !== 'image' || (question.get('answerType')?.value === 'image' && !question.get('runAIDefault')?.value))\">\r\n <label class=\"pointer\" for=\"fileuploadrefImage1\"\r\n (click)=\"refImgQIdx=j;\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\"\r\n stroke=\"#009BF3\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\"> \r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span> \r\n </label>\r\n </div>\r\n <div\r\n class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input class=\"form-check-input mx-0 pointer\"\r\n type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div\r\n [ngClass]=\"(['multipleImage'].includes(question.get('answerType')?.value) && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value === '') ? 'col-lg-4 mt-6' : ['image','descriptiveImage'].includes(question.get('answerType')?.value) ? 'col-lg-2' : ''\">\r\n <div class=\"d-flex\" *ngIf=\"(['multipleImage'].includes(question.get('answerType')?.value) && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value === '')\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio4' + i + j\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio4' + i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio5' + i + j\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio5' + i + j\">Number</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value && ['image','multipleImage','descriptiveImage'].includes(question.get('answerType')?.value)\"\r\n [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'col-lg-5 d-flex mt-6' : 'col-lg-3 d-flex justify-content-center align-items-center mt-2'\">\r\n <div class=\"d-flex\" *ngIf=\"question.get('answerType')?.value === 'multipleImage'\">\r\n <div class=\"form-check\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio6' + i + j\"\r\n value=\"text\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio6' + i + j\">Text</label>\r\n </div>\r\n <div class=\"form-check ms-5\">\r\n <input formControlName=\"descriptivetype\" class=\"form-check-input cursor-pointer\" type=\"radio\" [id]=\"'inlineRadio6' + i + j\"\r\n value=\"number\" [name]=\"'descriptivetype'\" [attr.disabled]=\"question.get('disableRunAI')?.value ? true : null\">\r\n <label class=\"cursor-pointer dscriptiveType\" [for]=\"'inlineRadio6' + i + j\">Number</label>\r\n </div>\r\n </div>\r\n <div class=\"d-flex\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,-1,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg [ngClass]=\"question.get('answerType')?.value === 'multipleImage' ? 'mt-1' : ''\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_2301_100038)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_2301_100038\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"['image'].includes(question.get('answerType')?.value) && question.get('compliance')?.value\">\r\n <div formGroupName=\"answers\">\r\n <div class=\"row mt-3 dropText\" >\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3 dropText\" >\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is not matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n <!-- Video -->\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'video'\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div\r\n class=\" col-lg-4 form-check form-switch text-left align-items-center btn-sec mt-2\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\"\r\n name=\"toc\" value=\"1\" ngDefaultControl\r\n formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\">Allow upload from gallery</label>\r\n \r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <!-- <ng-container *ngIf=\"question.get('answerType')?.value === 'time'\" class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\" col-lg-4 btn-sec mt-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-200px\" type=\"time\" name=\"time\" ngDefaultControl formControlName=\"answer\">\r\n </div>\r\n </ng-container>\r\n </ng-container> -->\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'linearscale'\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Select Type\r\n </div>\r\n <div class=\"mt-2\">\r\n <select class=\"\" formControlName=\"linearType\" (change)=\"updateNumber($event,i,j)\">\r\n <option value=\"degree\">Degree \u00B0C</option>\r\n <option value=\"number\">Whole Number</option>\r\n <option value=\"percentage\">Percentage</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Min Value\r\n </div>\r\n <div class=\"mt-2\">\r\n <lib-counter style=\"width: 40%\" formControlName=\"rangeStart\" [step]=\"1\" placeholder=\"0\" [type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value\"></lib-counter>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"dropText\">\r\n Max Value\r\n </div>\r\n <div class=\"mt-2\">\r\n <lib-counter style=\"width: 40%\" formControlName=\"rangeEnd\" [step]=\"1\" placeholder=\"0\" [type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value\"></lib-counter>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"question.get('answers')?.invalid && question.get('answers')?.touched\">\r\n <div *ngIf=\"question.get('answers')?.hasError('invalidRange')\" class=\"text-danger mt-2\">* Min value must be less than max value.</div>\r\n </ng-container>\r\n <div *ngIf=\"question.get('compliance')?.value\">\r\n <div class=\"row mt-5\" >\r\n <div class=\"col-md-8\">\r\n <div class=\"d-flex align-items-center flex-nowrap\">\r\n <span class=\"dropText me-2\">If the response is between</span>\r\n <div class=\"btn-sec me-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-100px\" [attr.type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'number'\" [attr.inputmode]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'numeric'\" name=\"start\" ngDefaultControl formControlName=\"minValue\" [min]=\"question.get('answers')?.get('rangeStart')?.value\" [max]=\"question.get('answers')?.get('rangeEnd')?.value\" (input)=\"onRangeValueInput($event, i, j, 'minValue')\" (blur)=\"clampRangeInput(i, j, 'minValue')\" /> \r\n </div>\r\n <span class=\"btn-sec me-2 align-self-center\">to</span>\r\n <div class=\"btn-sec me-2\">\r\n <input class=\"form-control form-control-solid flatpickr-input w-100px\" [attr.type]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'number'\" [attr.inputmode]=\"getAnswerFormGroup_FormControl(i,j,'linearType')?.value === 'degree' ? 'text' : 'numeric'\" name=\"start\" ngDefaultControl formControlName=\"maxValue\" [min]=\"question.get('answers')?.get('rangeStart')?.value\" [max]=\"question.get('answers')?.get('rangeEnd')?.value\" (input)=\"onRangeValueInput($event, i, j, 'maxValue')\" (blur)=\"clampRangeInput(i, j, 'maxValue')\">\r\n </div>\r\n <span class=\"dropText ms-1\">, then the score will be</span>\r\n </div>\r\n </div>\r\n <div class=\"col-md-4 text-end\">\r\n <select class=\"w-150px ms-14\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3\">\r\n <div class=\"dropText mt-5 col-md-8\">\r\n If the response is other than the selected range, then the score will be \r\n </div>\r\n <div class=\"col-md-4 text-end\">\r\n <select class=\"w-150px ms-14\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'date'\">\r\n <ng-container formGroupName=\"answers\">\r\n <div class=\"d-flex answervalidation\">\r\n <input class=\"\" type=\"checkbox\"\r\n style=\"width:16px;height:16px;cursor: pointer;\"\r\n value=\"1\"\r\n formControlName=\"historicDate\">\r\n <div class=\"checkbox mt-1 mx-2\"\r\n style=\"cursor: default;\">\r\n <h3>Allow Historic Dates on Date Picker</h3>\r\n </div>\r\n </div>\r\n <div *ngIf=\"question.get('compliance')?.value\">\r\n <div class=\"d-flex mt-5\">\r\n <div class=\"rangeText\">Select Range from</div>\r\n <div class=\"col-md-3 px-4 pe-3\" id=\"dateclass\"\r\n data-kt-daterangepicker=\"true\" data-kt-daterangepicker-opens=\"left\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n stroke=\"#344054\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input class=\"fx-date-range form-control ps-14\" type=\"text\"\r\n matInput ngxDaterangepickerMd [singleDatePicker]=\"true\"\r\n [drops]=\"'down'\" [opens]=\"'right'\"\r\n [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"true\"\r\n autocomplete=\"off\"\r\n [autoApply]=\"true\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (datesUpdated)=\"dateRange($event,'start',i,j)\" name=\"daterange\"\r\n [readonly]=\"true\" formControlName=\"qnStartDate\" [showDropdowns]=\"true\"/> \r\n </div>\r\n </div>\r\n <div class=\"rangeText\">To</div>\r\n <div class=\"col-md-3 px-4 pe-3\" id=\"dateclass\"\r\n data-kt-daterangepicker=\"true\" data-kt-daterangepicker-opens=\"left\">\r\n <div class=\"d-flex align-items-center position-relative my-1\">\r\n <span class=\"svg-icon svg-icon-1 position-absolute ms-3\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\"\r\n height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z\"\r\n stroke=\"#344054\" stroke-width=\"1.67\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </span>\r\n <input class=\"fx-date-range form-control ps-14\" type=\"text\"\r\n matInput ngxDaterangepickerMd [singleDatePicker]=\"true\"\r\n [drops]=\"'down'\" [opens]=\"'right'\"\r\n [alwaysShowCalendars]=\"false\"\r\n [keepCalendarOpeningWithRange]=\"true\" [showCancel]=\"true\"\r\n autocomplete=\"off\" \r\n [autoApply]=\"true\"\r\n [locale]=\"{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }\"\r\n (datesUpdated)=\"dateRange($event,'end',i,j)\" name=\"daterange\"\r\n [readonly]=\"true\" formControlName=\"qnEndDate\" [showDropdowns]=\"true\"/>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mt-5 dropText\" >\r\n <div class=\"mt-3\">\r\n If the response date is between the selected range, then the score will be\r\n </div>\r\n <div>\r\n <select class=\"w-150px ms-14\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mt-3 dropText\" >\r\n <div class=\"mt-3\">\r\n If the response date is other than the selected range, then the score will be\r\n </div>\r\n <div>\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"question.get('answerType')?.value === 'image/video'\"\r\n class=\"row\">\r\n <ng-container formGroupName=\"answers\">\r\n <div *ngFor=\"let image of getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value;let n=index\"\r\n class=\"col-md-4 image-container ref_img_cont ref_img_cont mb-4\">\r\n <img src=\"{{environment.TraxAnswerCDN}}{{image.imageURL}}\"\r\n width=\"90%\" height=\"300px\" class=\"auto-adjust\"\r\n alt=\"Tango Eye\" />\r\n <div class=\"overlay-icons\">\r\n <span class=\"cursor-pointer\" (click)=\"onPopup(image.imageURL)\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_zoom)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M22.5 11.5H27.5M27.5 11.5V16.5M27.5 11.5L21.6667 17.3333M17.5 26.5H12.5M12.5 26.5V21.5M12.5 26.5L18.3333 20.6667\" stroke=\"#344054\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_zoom\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_zoom\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_zoom\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n <span class=\"cursor-pointer\">\r\n <input class=\"d-none\" [id]=\"'fileuploadIV_'+i+j+n\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (click)=\"question.get('disableRunAI')?.value ? $event.preventDefault() : null\"\r\n (change)=\"question.get('disableRunAI')?.value ? '' : loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage',n)\">\r\n <label [for]=\"'fileuploadIV_'+i+j+n\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_upload)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M27.5 21.5V24.8333C27.5 25.2754 27.3244 25.6993 27.0118 26.0118C26.6993 26.3244 26.2754 26.5 25.8333 26.5H14.1667C13.7246 26.5 13.3007 26.3244 12.9882 26.0118C12.6756 25.6993 12.5 25.2754 12.5 24.8333V21.5M24.1667 15.6667L20 11.5M20 11.5L15.8333 15.6667M20 11.5V21.5\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_upload\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_upload\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_upload\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </label>\r\n </span>\r\n <span class=\"cursor-pointer\" (click)=\"question.get('disableRunAI')?.value ? '' : clearReferenceImage(i,j,-1,n,'multiReferenceImage');\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\">\r\n <g filter=\"url(#filter0_d_iv_del)\">\r\n <rect x=\"2\" y=\"1\" width=\"36\" height=\"36\" rx=\"8\" fill=\"white\"/>\r\n <rect x=\"2.5\" y=\"1.5\" width=\"35\" height=\"35\" rx=\"7.5\" stroke=\"#D0D5DD\"/>\r\n <path d=\"M12.5 13.9974H14.1667M14.1667 13.9974H27.5M14.1667 13.9974V25.6641C14.1667 26.1061 14.3423 26.53 14.6548 26.8426C14.9674 27.1551 15.3913 27.3307 15.8333 27.3307H24.1667C24.6087 27.3307 25.0326 27.1551 25.3452 26.8426C25.6577 26.53 25.8333 26.1061 25.8333 25.6641V13.9974H14.1667ZM16.6667 13.9974V12.3307C16.6667 11.8887 16.8423 11.4648 17.1548 11.1522C17.4674 10.8397 17.8913 10.6641 18.3333 10.6641H21.6667C22.1087 10.6641 22.5326 10.8397 22.8452 11.1522C23.1577 11.4648 23.3333 11.8887 23.3333 12.3307V13.9974M18.3333 18.1641V23.1641M21.6667 18.1641V23.1641\" stroke=\"#344054\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_iv_del\" x=\"0\" y=\"0\" width=\"40\" height=\"40\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\">\r\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/>\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\"/>\r\n <feOffset dy=\"1\"/>\r\n <feGaussianBlur stdDeviation=\"1\"/>\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0\"/>\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_iv_del\"/>\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_iv_del\" result=\"shape\"/>\r\n </filter>\r\n </defs>\r\n </svg>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"d-flex mb-3\">\r\n <div *ngIf=\"!question.get('disableRunAI')?.value && getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length < 5 && !question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn add-ref-btn btn-light-primary my-2\">\r\n <input class=\"d-none\" [id]=\"'fileuploadrefImageIV'+i+j\" type=\"file\"\r\n name=\"file\" accept=\"image/png, image/jpeg\"\r\n (change)=\"loadImageFromDevice(i,refImgQIdx,$event,-1,'multiReferenceImage')\">\r\n <label class=\"pointer\" [for]=\"'fileuploadrefImageIV'+i+j\" (click)=\"refImgQIdx=j;\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10 4.16797V15.8346M4.16669 10.0013H15.8334\" stroke=\"#009BF3\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg>Add Reference Image </label>\r\n </div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value.length >= 5 || question.get('disableRunAI')?.value\"\r\n class=\"col-lg-3 btn-light-disbaled btn add-ref-btn my-2 borderCard\">\r\n <label class=\"pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M10.0013 4.16406V15.8307M4.16797 9.9974H15.8346\" stroke=\"#6BCAFF\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n </svg> <span>Add Reference Image</span>\r\n </label>\r\n </div>\r\n <div class=\"col-lg-4 form-check form-switch mx-2 btn-sec mt-6 text-left align-items-center\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\" name=\"toc\" value=\"1\"\r\n ngDefaultControl formControlName=\"allowUploadfromGallery\">\r\n <label class=\"form-check-label pointer\" for=\"flexSwitchCheckDefault\"></label>\r\n Allow upload from gallery\r\n </div>\r\n <div class=\"col-lg-2\"></div>\r\n <div *ngIf=\"getAnswerFormGroup_FormControl(i,j,'multiReferenceImage')?.value && question.get('answerType')?.value === 'image/video'\"\r\n [ngClass]=\"'col-lg-3 d-flex justify-content-center align-items-center mt-2'\">\r\n <div class=\"d-flex\" *ngIf=\"userType && userType === 'tango'\">\r\n <h3 class=\"fs16-600 px-12\"> Run AI \u2728</h3>\r\n <div class=\"form-check form-switch align-items-center btn-sec ml-5\">\r\n <!-- (click)=\"RunAINew(i,j)\" -->\r\n <input class=\"form-check-input pointer\" type=\"checkbox\"\r\n formControlName=\"runAI\" name=\"toc\" value=\"1\" (click)=\"RunAINew(i,j,-1,$event)\">\r\n <label class=\"form-check-label\"\r\n for=\"flexSwitchCheckDefault\"></label>\r\n </div>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\"\r\n height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"\r\n matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\"\r\n matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\">\r\n <g clip-path=\"url(#clip0_iv_runai_info)\">\r\n <path\r\n d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\"\r\n stroke=\"#98A2B3\" stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_iv_runai_info\">\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"question.get('compliance')?.value\">\r\n <span class=\"limitComplianceText\">Compliance score is applicable only for image outputs, not for video.</span>\r\n <div class=\"row mt-3 dropText\">\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"matchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"row mt-3 dropText\">\r\n <div class=\"mt-3 col-md-6\">\r\n If the response image is not matched, then the score will be\r\n </div>\r\n <div class=\"col-md-3\">\r\n <select class=\"w-150px ms-10\" formControlName=\"notMatchedCount\">\r\n <option *ngFor=\"let value of dropdownValue\" [value]=\"value\">{{value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <div\r\n class=\" col-lg-4 form-check form-switch text-left align-items-center btn-sec mt-5\" *ngIf=\"userType && userType === 'tango'\">\r\n <input class=\"form-check-input mx-0 pointer\" type=\"checkbox\"\r\n name=\"toc\" value=\"1\" ngDefaultControl\r\n formControlName=\"limit\" (change)=\"updateLimit($event,i,j)\">\r\n <label class=\"form-check-label pointer\"\r\n for=\"flexSwitchCheckDefault\">Set Limits </label>\r\n <svg ngbTooltip=\"Uploads are allowed as per the configured image/video limits\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\" matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" ng-reflect-ng-class=\"\"><g clip-path=\"url(#clip0_2301_100038)\"><path d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></g><defs><clipPath id=\"clip0_2301_100038\"><rect width=\"16\" height=\"16\" fill=\"white\"></rect></clipPath></defs></svg>\r\n \r\n </div>\r\n <div\r\n class=\" col-lg-12 form-check form-switch text-left align-items-center btn-sec mt-5\" *ngIf=\"getAnswerFormGroup_FormControl(i,j,'limit')?.value\">\r\n <div class=\"d-flex\">\r\n <div class=\"me-3 mt-3\">Attach</div>\r\n <div class=\"w-70px me-3\">\r\n <select formControlName=\"imageLimit\">\r\n <option value=\"1\">1</option>\r\n <option value=\"2\">2</option>\r\n <option value=\"3\">3</option>\r\n <option value=\"4\">4</option>\r\n <option value=\"5\">5</option>\r\n </select>\r\n </div>\r\n <div class=\"me-3 mt-3\">images and</div>\r\n <div class=\"w-70px me-3\">\r\n <select formControlName=\"videoLimit\" placeholder=\"-\">\r\n <option value=\"1\">1</option>\r\n <option value=\"2\">2</option>\r\n <option value=\"3\">3</option>\r\n <option value=\"4\">4</option>\r\n <option value=\"5\">5</option>\r\n </select>\r\n </div>\r\n <div class=\"me-3 mt-3\">\r\n Videos.\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"limitTooltipText mt-3\" *ngIf=\"getAnswerFormGroup_FormControl(i,j,'limit')?.value && (getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value || getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value)\">\r\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" matTooltip=\"Enable AI where you want tango to identify, track and alert instances.\" matTooltipPosition=\"above\" matTooltipClass=\"custom-test\" ng-reflect-ng-class=\"\"><g clip-path=\"url(#clip0_2301_100038)\"><path d=\"M7.99967 10.6654V7.9987M7.99967 5.33203H8.00634M14.6663 7.9987C14.6663 11.6806 11.6816 14.6654 7.99967 14.6654C4.31778 14.6654 1.33301 11.6806 1.33301 7.9987C1.33301 4.3168 4.31778 1.33203 7.99967 1.33203C11.6816 1.33203 14.6663 4.3168 14.6663 7.9987Z\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></g><defs><clipPath id=\"clip0_2301_100038\"><rect width=\"16\" height=\"16\" fill=\"white\"></rect></clipPath></defs></svg>\r\n Checklist fillers must capture/upload {{ getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value ? getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value + ' image' + (getAnswerFormGroup_FormControl(i,j,'imageLimit')?.value > 1 ? 's' : '') : '' }} {{ getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value ? ' and ' + getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value + ' video' + (getAnswerFormGroup_FormControl(i,j,'videoLimit')?.value > 1 ? 's' : '') : '' }}\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n <div class=\"d-flex justify-content-end py-2\">\r\n <div class=\"pt-1\" >\r\n <svg (click)=\"question.get('disableRunAI')?.value ? '' : cloneQuestion(i,j)\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n matTooltip=\"Duplicate\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 20 20\"\r\n fill=\"none\">\r\n <g clip-path=\"url(#clip0_3385_10578)\">\r\n <path\r\n d=\"M4.16663 12.4993H3.33329C2.89127 12.4993 2.46734 12.3238 2.15478 12.0112C1.84222 11.6986 1.66663 11.2747 1.66663 10.8327V3.33268C1.66663 2.89065 1.84222 2.46673 2.15478 2.15417C2.46734 1.84161 2.89127 1.66602 3.33329 1.66602H10.8333C11.2753 1.66602 11.6992 1.84161 12.0118 2.15417C12.3244 2.46673 12.5 2.89065 12.5 3.33268V4.16602M9.16663 7.49935H16.6666C17.5871 7.49935 18.3333 8.24554 18.3333 9.16602V16.666C18.3333 17.5865 17.5871 18.3327 16.6666 18.3327H9.16663C8.24615 18.3327 7.49996 17.5865 7.49996 16.666V9.16602C7.49996 8.24554 8.24615 7.49935 9.16663 7.49935Z\"\r\n [attr.stroke]=\"question.get('disableRunAI')?.value ? '#D0D5DD' : '#667085'\" stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0_3385_10578\">\r\n <rect width=\"20\" height=\"20\" fill=\"white\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n <svg (click)=\"question.get('disableRunAI')?.value ? '' : deleteQuestion(i,j)\"\r\n style=\"margin-left: 24px !important;\"\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n matTooltip=\"Delete question\" matTooltipPosition=\"above\"\r\n matTooltipClass=\"custom-test\" viewBox=\"0 0 20 20\"\r\n fill=\"none\" [ngbTooltip]=\"question.get('disableRunAI')?.value ? 'The delete option is disabled as the runAI is enabled' : ''\">\r\n <path\r\n d=\"M2.5 4.99935H4.16667M4.16667 4.99935H17.5M4.16667 4.99935V16.666C4.16667 17.108 4.34226 17.532 4.65482 17.8445C4.96738 18.1571 5.39131 18.3327 5.83333 18.3327H14.1667C14.6087 18.3327 15.0326 18.1571 15.3452 17.8445C15.6577 17.532 15.8333 17.108 15.8333 16.666V4.99935H4.16667ZM6.66667 4.99935V3.33268C6.66667 2.89065 6.84226 2.46673 7.15482 2.15417C7.46738 1.84161 7.89131 1.66602 8.33333 1.66602H11.6667C12.1087 1.66602 12.5326 1.84161 12.8452 2.15417C13.1577 2.46673 13.3333 2.89065 13.3333 3.33268V4.99935M8.33333 9.16602V14.166M11.6667 9.16602V14.166\"\r\n [attr.stroke]=\"question.get('disableRunAI')?.value ? '#D0D5DD' : '#667085'\" stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <div>\r\n <div class=\"row mx-0\">\r\n <div class=\"col-lg-4 px-0\" *ngIf=\"ChecklistForm.get('sections')\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"bulkUploadQuestion()\" class=\"mt-2 btn-sec pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>Bulk Upload Questions</div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-4 pl-5\" *ngIf=\"ChecklistForm.get('sections')\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"addNewQuestion(sectionIndex)\" class=\"mt-2 btn-sec pointer\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg> Add New Question</div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-4 pl-5\">\r\n <div class=\"checklist-card py-7 text-center\">\r\n <div (click)=\"addNewSection()\" class=\"mt-2 px-0 btn-sec pointer\"> <svg\r\n xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\r\n viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M9.99999 4.16602V15.8327M4.16666 9.99935H15.8333\" stroke=\"#344054\"\r\n stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg> Add New Section</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</div>", styles: [".checklist-card div,input[type=text]:not(.plain-input),input[type=time],input[type=number],select{color:#101828;border:1px solid #D0D5DD;box-shadow:0 1px 2px #1018280d;border-radius:8px;font-size:16px;width:100%;padding:10px 14px;font-family:Inter;font-weight:400;line-height:24px}.checklist-card input{padding-right:20%}.card{border-radius:16px}.row>*{padding-right:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}input[type=checkbox]:focus{border:none!important;outline:none!important;box-shadow:none!important}input:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}select{-webkit-appearance:none!important;-moz-appearance:none!important;height:45px;width:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAUCAMAAACtdX32AAAAdVBMVEUAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhMdQaAAAAJ3RSTlMAAAECAwQGBwsOFBwkJTg5RUZ4eYCHkJefpaytrsXGy8zW3+Do8vNn0bsyAAAAYElEQVR42tXROwJDQAAA0Ymw1p9kiT+L5P5HVEi3qJn2lcPjtIuzUIJ/rhIGy762N3XaThqMN1ZPALsZPEzG1x8LrFL77DHBnEMxBewz0fJ6LyFHTPL7xhwzWYrJ9z22AqmQBV757MHfAAAAAElFTkSuQmCC);background-position:100%;background-repeat:no-repeat}select:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}select[formcontrolname=complianceScore]:disabled{filter:blur(.5px);opacity:.55;cursor:not-allowed}textarea:focus{border:#F9FAFB!important;outline:1px solid var(--primary-300, #6BCAFF);box-shadow:0 0 0 4px #d5effe,0 1px 2px #1018280d;color:#101828}textarea,select{color:#101828;border:1px solid #D0D5DD;box-shadow:0 1px 2px #1018280d;border-radius:8px;font-size:16px;width:100%;padding:10px 14px;font-family:Inter;font-weight:400;line-height:24px}.btn-outline{border:1px solid lightgrey;padding:calc(.75rem + 1px) calc(1.5rem + 1px)}.btn-light-primary{color:var(--primary-700, #009BF3);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;line-height:24px;text-transform:capitalize}.newbutton{border:1px solid lightgrey;padding:calc(.75rem + 1px) calc(1.5rem + 1px);color:#000;background-color:#fff}.newbutton:hover,.newbutton:active{background-color:#009bf3;color:#fff}.btn.btn-light-primary:hover:not(.btn-active),.btn-light-primary:active{color:var(--primary-700, #009BF3);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;outline:none!important;background-color:#d1f0ff82!important}.ml-5{margin-left:10px}.pl-5{padding-left:10px!important}.btn-left{display:inline-block;width:100%;font-size:16px;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important}.card hr{width:-webkit-fill-available}.card{height:100%!important}.rotate{transform:rotate(180deg);transition:1s}.hidesec{visibility:hidden;opacity:.1;transition:1s}.fs-16px{font-size:16px}.card svg{margin-left:5px!important;cursor:pointer}.form-switch,.form-check-label{padding-left:5px!important}.webkitwidth{width:-webkit-fill-available}.fs-18px{font-size:18px;color:var(--black, #000);font-family:inter}.Answer1 .checklist-card,.Answer2 .checklist-card{position:relative}.Answer1 svg,.Answer2 svg{position:absolute;top:15px;right:15px}.Answer1 .imgAdd,.Answer2 .imgAdd{position:absolute;top:13px!important;right:57px!important}.Answer1 .flag,.Answer2 .flag{color:red!important}.Answer1 .flag>.flag-path,.Answer2 .flag>.flag-path{fill:red!important;stroke:red}.Answer1 .vl,.Answer2 .vl{position:absolute;top:1px;right:45px;border-left:1px solid #D0D5DD;height:43px}.Answer1 .vl2,.Answer2 .vl2{position:absolute;top:1px;right:90px;border-left:1px solid #D0D5DD;height:43px}.Answer1 svg:hover,.Answer2 svg:hover{fill:#d0d5dd!important}.editablecontent{display:inline-block;max-width:60ch;white-space:nowrap;outline:none!important;border:none!important;box-shadow:none!important;overflow:hidden!important;text-overflow:ellipsis!important}.editablecontent-left{display:inline-block;width:180px;white-space:nowrap;outline:none!important;border:none!important;box-shadow:none!important;overflow:hidden!important;text-overflow:ellipsis!important}[contenteditable]{outline:0px solid transparent}.min-width-popup{min-width:46%!important}.max-w-128px{max-width:128px}.fw-600{font-weight:600!important}.fw-400{font-weight:400}.footer1 span{color:#000;font-family:inter;font-size:14px;font-weight:500px;line-height:20px}.footer1 a{font-family:inter;font-size:14px;font-weight:600;text-decoration:underline;color:var(--primary-700, #009BF3)}.footer1 a:hover{color:var(--primary-700, #009BF3);text-decoration-line:underline!important;text-decoration-thickness:1px!important}.btn-sec{color:var(--gray-700, #344054)!important;font-family:Inter;font-size:14px;font-style:normal;font-weight:500!important;line-height:24px}.form-check-label{color:var(--gray-700, #344054)!important}.question-left{max-height:63vh;overflow:auto;overflow-x:hidden}.Question-sec{position:relative;border-radius:8px;border:1px solid var(--gray-300, #D0D5DD);background:var(--gray-50, #F9FAFB);width:100%;padding:24px 16px 16px}.Question-sec .questiontitle{position:absolute;top:-15px;background-color:#fff;border:1px solid var(--gray-300, #D0D5DD)!important;border-radius:8px}.Question-sec h3{color:var(--gray-700, #344054);font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:20px;margin-bottom:0!important}.Question-sec .fs16-600{font-size:14px;font-style:normal;font-weight:600;line-height:20px}.Question-sec p{color:var(--gray-500, #667085);font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.swal2-confirm{font-family:Inter!important;font-size:30px!important;background-color:var(--white, #FFF)!important;border:solid var(--gray-300, #D0D5DD)!important}.Overlay{top:0;left:0;width:100%;height:100%;z-index:200!important;position:fixed;background:#58575799}.popup{position:absolute;top:50%;left:50%;opacity:1;transform:translate(-50%,-50%);background:var(--white, #FFF);border-radius:12px!important;border-radius:12px;box-shadow:0 8px 8px -4px #10182808,0 20px 24px -4px #10182814;padding:30px;width:400px;height:fit-content}.kiwi:hover{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi:hover path{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi{fill:#fff!important;stroke:#d0d5dd!important}.kiwi path{fill:#fff!important;stroke:#d0d5dd!important}.kiwi:active{fill:#d0d5dd!important;stroke:#d0d5dd!important}.kiwi:active path{fill:#d0d5dd!important;stroke:#d0d5dd!important}.active-flag{fill:red!important;stroke:red!important}.active-flag path{fill:red!important;stroke:red!important}.active-flag:active{fill:red!important;stroke:red!important}.active-flag:active path{fill:red!important;stroke:red!important}.toasttitile{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}.ref_del_icon{position:absolute;top:24px;right:24px;transform:translate(50%,-50%);padding:6px;border-radius:8px;border:1px solid var(--error-50, #FEF3F2);background:var(--error-50, #FEF3F2);box-shadow:0 1px 2px #1018280d}.ref_del_icon svg{margin:0!important}.ref_img_cont{position:relative}::ng-deep .swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;min-width:2em;height:0em;margin:0 .5em 0 0}::ng-deep .listitem{display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:.5rem 1rem;background-color:#f3f6f9;margin-top:.75rem;border-radius:.42rem}::ng-deep .toasttitile{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}::ng-deep .list{overflow-y:auto}::ng-deep .listitemlabel{font-size:13px!important;font-weight:600;font-family:Inter;color:#7e8299}::ng-deep .swal2-container{padding:.4em!important}::ng-deep .swal2-icon{border:1px solid white!important}::ng-deep body.swal2-toast-shown .swal2-container{width:500px!important}::ng-deep .swal2-popup.swal2-toast{border-left:4px solid #009EF7}::ng-deep .swal2-popup.swal2-toast .swal2-title{margin:9px 5px auto!important}::ng-deep .label{color:#3f4254;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:140%}::ng-deep .custom-test{color:var(--gray-700, #344054)!important;text-align:start;font-family:Inter;font-size:12px;font-style:normal;border-radius:8px;box-shadow:0 4px 6px -2px #10182808,0 12px 16px -4px #10182814;font-weight:600;line-height:18px;background:#fff}.text-gray-700{color:#344054!important}.mandatoryfield input,.answervalidation input{border:none;padding:0!important}.mandatoryfield input[type=checkbox],.answervalidation input[type=checkbox]{width:16px!important;height:16px!important;margin:5px;border-radius:4px!important;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;outline:1px solid var(--gray-600, #D0D5DD)!important;box-shadow:none;font-size:.5em;text-align:center;line-height:1em;background:#fff}.mandatoryfield input[type=checkbox]:checked,.answervalidation input[type=checkbox]:checked{outline:1px solid var(--primary-600, #00A3FF)!important;background-color:var(--primary-50, #EAF8FF)}.mandatoryfield input[type=checkbox]:checked:after,.answervalidation input[type=checkbox]:checked:after{content:\"\";transform:rotate(45deg);border-bottom:2px solid #00A3FF;border-right:2px solid #00A3FF;display:inline-block;width:.5em;padding-left:3px;padding-top:10px;padding-right:0}.concise-checklistname{display:inline-block;width:100%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important;text-transform:capitalize}.concise-question{display:inline-block;width:100%;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left}.active-question{color:var(--primary-700, #009BF3);font-size:16px;font-style:normal;font-weight:500;line-height:24px;display:flex;padding:8px 12px;align-items:center;gap:105px;align-self:stretch;border-radius:6px;background:var(--primary-50, #EAF8FF)}.q-btn{color:var(--gray-700, #344054);font-size:16px;font-style:normal;font-weight:500;line-height:24px;display:flex;padding:8px 12px;align-items:center;gap:105px;align-self:stretch;border-radius:6px;background:var(--primary-50, white)}.pointer{cursor:pointer}select option{padding:4px}.add-ref-btn{border-radius:8px;border:1px solid var(--primary-50, #EAF8FF);box-shadow:0 1px 2px #1018280d;padding:14px 0!important}::ng-deep .form-switch .form-check-input{border:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='rgba(255, 255, 255, 1)'/%3E%3C/svg%3E\")!important}::ng-deep .form-switch .form-check-input:not(:checked){background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='rgba(255, 255, 255, 1)'/%3E%3C/svg%3E\")!important;background-color:var(--gray-100, #F2F4F7)!important}.plain-input{border:none;outline:none;background:transparent;padding:0;margin:0;width:100%;overflow:hidden;color:var(--black, #101828);text-overflow:ellipsis;font-family:Inter;font-size:18px;font-style:normal;font-weight:500;line-height:28px}.plain-input:focus{border-radius:0!important;border:white!important;outline:none!important;box-shadow:none!important}.auto-adjust{max-width:100%;max-height:100%;object-fit:contain;background-color:#fff}.createbuttons{padding:10px 18px;justify-content:center;align-items:center;gap:8px;border-radius:8px;border:1px solid var(--primary-600, #00A3FF);background:var(--primary-600, #00A3FF);box-shadow:0 1px 2px #1018280d}.create{color:var(--white, #FFF);font-family:Inter;font-size:16px;font-style:normal;font-weight:600;line-height:24px;text-transform:capitalize}.savedraft{border-radius:8px;border:1px solid var(--gray-300, #D0D5DD);background:var(--white, #FFF);padding:10px 18px;justify-content:center;align-items:center;gap:8px;box-shadow:0 1px 2px #1018280d}.savedraft:hover{background:#f3f8fd!important;border:1px solid var(--gray-300, #D0D5DD)!important}.savedrafttext{color:var(--gray-700, #344054);font-family:Inter;font-size:16px;font-weight:600;line-height:24px;text-transform:capitalize}.questionsArea{overflow-y:scroll;padding:4px}::ng-deep .questionsArea::-webkit-scrollbar-thumb{-webkit-border-radius:10px!important;border-radius:10px!important;background:var(--gray-100, #eaeaea)!important;height:50px!important}::ng-deep .questionsArea::-webkit-scrollbar{width:10px!important}::ng-deep .questionsArea::-webkit-scrollbar-track{background:none!important;box-shadow:none!important}::ng-deep .swal2-html-container{overflow:hidden!important}.ansoptions{color:var(--gray-700, #344054);font-family:Inter;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.checklist{font-family:Inter;font-size:20px;font-weight:600;line-height:28px;text-align:left;color:#667085!important}.checklistDescription{font-family:Inter;font-size:14px;font-weight:400;line-height:18px;text-align:left}.dscriptiveType{font-size:15px!important}.loader .title{width:65%}.loader .link{width:85%}.loader .description{width:95%}.loader .shimmer{padding:15px;width:95%;height:120px;margin:10px auto;background:#fff}.loader .shimmer .image-card{height:90px;width:90px;float:right;border-radius:8px}.loader .stroke{height:15px;background:#777;margin-top:20px}.loader .wrapper{width:0px;animation:fullView .5s forwards linear}@keyframes fullView{to{width:100%}}.loader .animate{animation:shimmer 3s;animation-iteration-count:infinite;background:linear-gradient(to right,#e6e6e6 5%,#ccc 25%,#e6e6e6 35%);background-size:1000px 100%}@keyframes shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}.image-container{position:relative;display:inline-block}.base-image{display:block;width:100%;height:auto}.overlay-icons{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;gap:10px;opacity:0;transition:opacity .3s ease}.image-container:hover .overlay-icons{opacity:1}.overlay-icons button{background:#fffc;border:none;border-radius:50%;padding:10px;cursor:pointer}.overlay-icons button:hover{background:#fff}.btn-light-disbaled{color:var(--Primary-300, #6BCAFF)!important;font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:20px;text-transform:capitalize}.borderCard{border-radius:8px;border:1px solid var(--Primary-25, #F6FCFF);background:var(--Primary-25, #F6FCFF);box-shadow:0 1px 2px #1018280d}:host::ng-deep #checklistCreate .md-drppicker .dropdowns:first-child{width:115px!important}:host::ng-deep #checklistCreate .md-drppicker .dropdowns:nth-child(2){width:56px!important}:host::ng-deep #checklistCreate .md-drppicker .btn{line-height:10px!important}:host::ng-deep #checklistCreate .daterangepicker-input+.ngx-daterangepicker-material .applyBtn{display:none}:host::ng-deep #checklistCreate .md-drppicker.drops-down-right.ltr.show-ranges.shown{top:65px!important}:host::ng-deep #checklistCreate .md-drppicker.drops-down-right.ltr.double.show-ranges.shown{top:65px!important;right:-475px!important;left:unset!important;height:400px!important}:host::ng-deep #checklistCreate .md-drppicker .btn{border-radius:8px!important;border:1px solid var(--Primary-600, #00A3FF)!important;background:var(--Primary-600, #00A3FF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--White, #FFF)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize}:host::ng-deep #checklistCreate .md-drppicker .ranges ul li button{padding:12px 16px;width:160px;color:var(--Gray-700, #344054);font-size:14px;font-weight:400;line-height:20px;background:none;border:none;text-align:left;cursor:pointer}:host::ng-deep #checklistCreate .md-drppicker td.active,:host::ng-deep #checklistCreate .md-drppicker td.active:hover{background-color:#029cf4!important;border-radius:20px!important;color:var(--White, #FFF)!important;text-align:center!important;font-size:14px!important;font-weight:500!important;line-height:20px}:host::ng-deep #checklistCreate .md-drppicker.ltr .ranges{float:left;margin-top:10px!important}:host::ng-deep #checklistCreate .md-drppicker td.in-range{background:var(--Primary-50, #EAF8FF)}:host::ng-deep #checklistCreate .md-drppicker .ranges ul li button.active{background:var(--Primary-50, #EAF8FF)!important;border-radius:8px!important;color:var(--Primary-700, #009BF3);font-size:14px!important;font-weight:500!important;line-height:20px!important}:host::ng-deep #checklistCreate table th,:host::ng-deep #checklistCreate table td{width:40px!important;height:40px!important;padding:10px 8px!important}:host::ng-deep #checklistCreate .md-drppicker td.available.prev,:host::ng-deep #checklistCreate .md-drppicker th.available.prev{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep #checklistCreate .md-drppicker td.available.next,:host::ng-deep #checklistCreate .md-drppicker th.available.next{background-image:url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K)!important;background-repeat:no-repeat!important;background-size:.5em!important;background-position:center!important}:host::ng-deep #checklistCreate table th{border-bottom:0px solid var(--Gray-200, #EAECF0)!important;background:transparent!important;color:var(--Gray-700, #344054)!important;text-align:center;font-size:16px!important;font-weight:500!important;line-height:24px}:host::ng-deep #checklistCreate .md-drppicker .btn.btn-default{border-radius:8px!important;border:1px solid var(--Gray-300, #D0D5DD)!important;background:var(--White, #FFF)!important;box-shadow:0 1px 2px #1018280d!important;color:var(--Gray-700, #344054)!important;font-size:14px!important;font-weight:600!important;line-height:20px;text-transform:capitalize;margin-right:10px!important}:host::ng-deep #checklistCreate .md-drppicker td.available.invalid-date{text-decoration:line-through;pointer-events:none;color:#a9a9a9}:host::ng-deep #checklistCreate .md-drppicker td.available.today:not(.invalid-date){text-decoration:unset;pointer-events:unset;color:unset}:host::ng-deep #checklistCreate .daterangepicker{display:block!important;top:153.85px!important;left:900px!important;right:0}.rangeText{font-family:Inter;font-weight:500;font-size:16px;line-height:24px;letter-spacing:0%;margin-top:10px;color:#101828}.dropText{color:#101828;font-family:Inter;font-weight:400;font-size:16px;line-height:24px;letter-spacing:0%}.limitTooltipText{font-family:Inter;font-weight:400;font-style:Italic;font-size:12px;line-height:100%;letter-spacing:0%;color:#667085}.limitComplianceText{font-family:Inter;font-weight:500;font-style:Italic;font-size:14px;line-height:100%;letter-spacing:0%;color:#667085}\n"] }]
2448
2448
  }], ctorParameters: () => [{ type: i1.PageInfoService }, { type: i2.FormBuilder }, { type: i0.ChangeDetectorRef }, { type: i3.NgbModal }, { type: i4.ActivatedRoute }, { type: i5.ToastService }, { type: i4.Router }, { type: i6.TraxService }, { type: i1.GlobalStateService }], propDecorators: { formRef: [{
2449
2449
  type: ViewChild,
2450
2450
  args: ['formRef']