@undp/carbon-library 1.0.64 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2956 -38
 - package/dist/cjs/index.js.map +1 -1
 - package/dist/cjs/types/Components/index.d.ts +1 -0
 - package/dist/esm/index.js +2960 -43
 - package/dist/esm/index.js.map +1 -1
 - package/dist/esm/types/Components/index.d.ts +1 -0
 - package/dist/index.d.ts +3 -1
 - package/package.json +1 -1
 
    
        package/dist/cjs/index.js
    CHANGED
    
    | 
         @@ -136,14 +136,14 @@ function styleInject(css, ref) { 
     | 
|
| 
       136 
136 
     | 
    
         
             
              }
         
     | 
| 
       137 
137 
     | 
    
         
             
            }
         
     | 
| 
       138 
138 
     | 
    
         | 
| 
       139 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       140 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 139 
     | 
    
         
            +
            var css_248z$n = ".filter-menu-item .filter-title {\n  margin-bottom: 0.5rem;\n  font-weight: 600; }\n\n.table-row-gray {\n  background-color: #F0F0F0; }\n";
         
     | 
| 
      
 140 
     | 
    
         
            +
            styleInject(css_248z$n);
         
     | 
| 
       141 
141 
     | 
    
         | 
| 
       142 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       143 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 142 
     | 
    
         
            +
            var css_248z$m = ".common-table-class .ant-table {\n  border-radius: 1rem; }\n  .common-table-class .ant-table .ant-table-thead {\n    justify-content: center; }\n    .common-table-class .ant-table .ant-table-thead .ant-table-cell {\n      color: rgba(58, 53, 65, 0.8);\n      font-weight: 600;\n      font-size: 0.8rem;\n      text-align: center; }\n  .common-table-class .ant-table .ant-table-tbody {\n    font-size: 0.8rem;\n    text-align: center;\n    color: rgba(58, 53, 65, 0.8); }\n  .common-table-class .ant-table .ant-table-cell {\n    padding: 14px 12px; }\n  .common-table-class .ant-table .ant-table-thead .ant-table-cell {\n    text-transform: uppercase; }\n\n.ant-table-pagination.ant-pagination {\n  margin: 16px 24px; }\n\n.ant-select-item-option-content {\n  font-family: \"Inter\";\n  color: rgba(58, 53, 65, 0.8); }\n\n.ant-pagination-prev, .ant-pagination-next, .ant-pagination-jump-prev, .ant-pagination-jump-next, .ant-pagination-item {\n  height: 28px;\n  border-radius: 4px;\n  line-height: 26px;\n  font-size: 0.8rem;\n  font-family: \"Inter\"; }\n\n.ant-pagination-item-active:focus-visible {\n  border-color: #16b1ff; }\n\n.ant-pagination-options-quick-jumper {\n  font-size: 0.8rem;\n  font-family: \"Inter\";\n  color: rgba(58, 53, 65, 0.8);\n  height: 30px;\n  line-height: 30px; }\n  .ant-pagination-options-quick-jumper input {\n    height: 28px;\n    border-radius: 4px;\n    line-height: 26px;\n    color: rgba(58, 53, 65, 0.8); }\n\n.ant-pagination-options .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n  height: 28px;\n  border-radius: 4px;\n  line-height: 26px;\n  font-size: 0.8rem;\n  font-family: \"Inter\";\n  color: rgba(58, 53, 65, 0.8); }\n\n.ant-pagination-options .ant-select-selection-item {\n  height: 28px;\n  color: rgba(58, 53, 65, 0.8);\n  line-height: 26px !important; }\n\n.ant-pagination-options .ant-select-dropdown {\n  font-family: \"Inter\";\n  color: rgba(58, 53, 65, 0.8);\n  font-size: 0.8rem; }\n";
         
     | 
| 
      
 143 
     | 
    
         
            +
            styleInject(css_248z$m);
         
     | 
| 
       144 
144 
     | 
    
         | 
| 
       145 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       146 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 145 
     | 
    
         
            +
            var css_248z$l = ".role-icon {\n  border-radius: 100%;\n  margin-right: 10px;\n  padding: 0.30rem 0.5rem;\n  font-size: 0.7rem; }\n";
         
     | 
| 
      
 146 
     | 
    
         
            +
            styleInject(css_248z$l);
         
     | 
| 
       147 
147 
     | 
    
         | 
| 
       148 
148 
     | 
    
         
             
            var RoleIcon = function (props) {
         
     | 
| 
       149 
149 
     | 
    
         
             
                var icon = props.icon, bg = props.bg, color = props.color;
         
     | 
| 
         @@ -406,8 +406,8 @@ exports.CompanyManagementColumns = void 0; 
     | 
|
| 
       406 
406 
     | 
    
         
             
                CompanyManagementColumns["creditBalance"] = "creditBalance";
         
     | 
| 
       407 
407 
     | 
    
         
             
            })(exports.CompanyManagementColumns || (exports.CompanyManagementColumns = {}));
         
     | 
| 
       408 
408 
     | 
    
         | 
| 
       409 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       410 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 409 
     | 
    
         
            +
            var css_248z$k = ".profile-icon {\n  border-radius: 100%;\n  margin-right: 15px;\n  font-size: 15px;\n  width: 40px;\n  height: 40px;\n  display: flex;\n  justify-content: center;\n  align-items: center; }\n  .profile-icon img {\n    width: 26px; }\n";
         
     | 
| 
      
 410 
     | 
    
         
            +
            styleInject(css_248z$k);
         
     | 
| 
       411 
411 
     | 
    
         | 
| 
       412 
412 
     | 
    
         
             
            var isBase64 = function (str) {
         
     | 
| 
       413 
413 
     | 
    
         
             
                if (!str || str === '' || str.trim() === '') {
         
     | 
| 
         @@ -778,11 +778,11 @@ var CompanyManagementComponent = function (props) { 
     | 
|
| 
       778 
778 
     | 
    
         
             
                                        } })))))));
         
     | 
| 
       779 
779 
     | 
    
         
             
            };
         
     | 
| 
       780 
780 
     | 
    
         | 
| 
       781 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       782 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 781 
     | 
    
         
            +
            var css_248z$j = ".company-details-form-container {\n  width: 100%; }\n  .company-details-form-container .company-details-form .steps-actions {\n    display: flex;\n    flex-direction: row-reverse; }\n    .company-details-form-container .company-details-form .steps-actions .mg-left-1 {\n      margin-left: 1rem; }\n  .company-details-form-container .company-details-form .row .website .ant-input {\n    margin-left: 0.3rem; }\n  .company-details-form-container .company-details-form .row .website .ant-input-group-addon {\n    border: 1px solid #d9d9d9; }\n  .company-details-form-container .company-details-form .row .logo-upload-section {\n    display: flex;\n    flex-direction: row;\n    justify-content: space-between;\n    align-items: start;\n    width: 100%; }\n    .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload {\n      width: 20%; }\n    .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload-list {\n      align-items: center;\n      justify-content: center;\n      width: 75%; }\n      .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload-list .ant-upload-list-item {\n        margin-top: 0; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container {\n    width: 30%; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container .ant-radio-button-wrapper-checked:not(\n    .ant-radio-button-wrapper-disabled\n) {\n      color: #519e4f !important;\n      border-color: #519e4f !important;\n      box-shadow: none; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container .anticon {\n      background: #eeeeee;\n      border-radius: 50px;\n      padding: 0.2rem;\n      color: #519e4f; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container {\n    width: 30%; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container .ant-radio-button-wrapper-checked:not(\n    .ant-radio-button-wrapper-disabled\n) {\n      color: #ffa070 !important;\n      border-color: #ffa070 !important;\n      box-shadow: none; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container .anticon {\n      background: #eeeeee;\n      border-radius: 50px;\n      padding: 0.2rem;\n      color: #ffa070; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container {\n    width: 30%; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container .ant-radio-button-wrapper-checked:not(\n    .ant-radio-button-wrapper-disabled\n) {\n      color: #9155fd !important;\n      border-color: #9155fd !important;\n      box-shadow: none; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container .anticon {\n      background: #eeeeee;\n      border-radius: 50px;\n      padding: 0.2rem;\n      color: #9155fd; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container {\n    width: 45%; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container .ant-radio-button-wrapper-checked:not(\n    .ant-radio-button-wrapper-disabled\n) {\n      color: #16b1ff !important;\n      border-color: #16b1ff !important;\n      box-shadow: none; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container .anticon {\n      background: #eeeeee;\n      border-radius: 50px;\n      padding: 0.2rem;\n      color: #16b1ff; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container {\n    width: 25%; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container .ant-radio-button-wrapper-checked:not(\n    .ant-radio-button-wrapper-disabled\n) {\n      color: #707070 !important;\n      border-color: #707070 !important;\n      box-shadow: none; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container .anticon {\n      background: #eeeeee;\n      border-radius: 50px;\n      padding: 0.2rem;\n      color: #707070; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before {\n    background-color: transparent; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .ant-radio-button-wrapper {\n    border: 1px solid #d9d9d9; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .anticon {\n    margin-right: 0.5rem; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier {\n    width: 100%; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier .ant-radio-button-checked {\n      background: rgba(128, 255, 0, 0.12);\n      color: #519e4f; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .dev {\n    width: 100%; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .dev .ant-radio-button-checked {\n      background: rgba(254, 241, 173, 0.5);\n      color: #ffa070; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .gov {\n    width: 100%; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .gov .ant-radio-button-checked {\n      background: rgba(185, 226, 244, 0.56);\n      color: #16b1ff; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .minister {\n    width: 100%; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .minister .ant-radio-button-checked {\n      background: rgba(198, 144, 251, 0.12);\n      color: #9155fd; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .observer {\n    width: 100%; }\n    .company-details-form-container .company-details-form .row .details-part-two .role-group .observer .ant-radio-button-checked {\n      background: rgba(176, 190, 197, 0.23);\n      color: #707070; }\n  .company-details-form-container .company-details-form .row .details-part-two .role-group .role-icons {\n    margin-right: 5px; }\n\n.step-title-container {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 1rem; }\n  .step-title-container .step-count {\n    font-size: 2.2rem;\n    font-weight: 800;\n    margin-right: 0.4rem;\n    color: rgba(58, 53, 65, 0.8); }\n  .step-title-container .title {\n    font-size: 1rem;\n    font-weight: 600;\n    color: #3a3541; }\n\n.add-company-main-container {\n  display: flex;\n  flex-direction: column;\n  border-radius: 5px;\n  padding: 0 50px; }\n  .add-company-main-container .title-container {\n    display: flex;\n    flex-direction: column;\n    border-radius: 5px; }\n    .add-company-main-container .title-container .main {\n      font-size: 1.25rem;\n      font-weight: 500;\n      color: #16b1ff; }\n    .add-company-main-container .title-container .sub {\n      font-size: 0.8rem;\n      color: #555657; }\n  .add-company-main-container .adding-section {\n    display: flex;\n    flex-direction: column;\n    background-color: #ffffff;\n    margin: 1rem 0 1rem 0;\n    border-radius: 10px;\n    padding: 2.5rem 1.5rem 2.5rem 1.5rem; }\n    .add-company-main-container .adding-section .form-section {\n      display: flex;\n      margin-bottom: 2rem; }\n      .add-company-main-container .adding-section .form-section .form-one {\n        width: 100%; }\n      .add-company-main-container .adding-section .form-section .steps {\n        width: 15%; }\n      .add-company-main-container .adding-section .form-section .steps-content {\n        width: 85%; }\n    .add-company-main-container .adding-section .steps-action {\n      display: flex;\n      flex-direction: row-reverse; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n  height: auto;\n  max-height: 200px; }\n";
         
     | 
| 
      
 782 
     | 
    
         
            +
            styleInject(css_248z$j);
         
     | 
| 
       783 
783 
     | 
    
         | 
| 
       784 
     | 
    
         
            -
            var css_248z$f = "body {\n  background-color: #f4f5fa;\n  font-family: \"Inter\";\n  font-weight: 400; }\n\n.ant-menu {\n  background-color: #f4f5fa; }\n\n.ant-layout-header {\n  background-color: #f4f5fa; }\n\n.ant-layout {\n  background-color: #f4f5fa; }\n\n.ant-menu-submenu .ant-menu {\n  background-color: #f4f5fa; }\n\n.ant-menu-item {\n  background-color: #f4f5fa; }\n\n.ant-menu-sub {\n  background-color: #f4f5fa; }\n\n.ant-table-content {\n  font-family: \"Inter\"; }\n\n.ant-input {\n  border-radius: 5px !important; }\n\n.ant-btn {\n  border-radius: 5px !important; }\n\n.ant-input-group-addon:first-child {\n  border-radius: 5px !important; }\n\n.ant-input-group .ant-input {\n  width: 99% !important; }\n\n.ant-tooltip-inner {\n  border-radius: 5px !important;\n  background-color: #16b1ff !important; }\n\n.ant-tooltip-arrow-content {\n  --antd-arrow-background-color: linear-gradient(to right bottom, #16b1ff, #16b1ff) !important; }\n\n.ant-radio-group {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between; }\n\n.ant-radio-group-large .ant-radio-button-wrapper {\n  font-size: 0.8rem;\n  width: 25%;\n  border-radius: 5px !important; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n  border-color: #40a9ff;\n  border-radius: 5px;\n  height: 40px; }\n  .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-name,\n  .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-name {\n    color: #40a9ff !important; }\n\n.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n  color: #40a9ff; }\n\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {\n  border-color: #d9d9d9 !important; }\n\n.ant-input-group-wrapper-status-error .ant-input-group-addon {\n  border-color: #d9d9d9 !important; }\n\n.ant-form-item-explain-error {\n  font-size: 13px;\n  color: rgba(255, 77, 79, 0.8); }\n\n.ant-table-thead\n> tr\n> th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {\n  background-color: transparent !important; }\n\n.ant-form-item-label > label {\n  flex-direction: row-reverse !important;\n  color: rgba(58, 53, 65, 0.5); }\n\n.ant-form-item-label\n> label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n  margin-left: 0.2rem !important;\n  color: rgba(255, 77, 79, 0.8) !important; }\n\n.ant-picker {\n  border-radius: 5px !important;\n  height: 35px !important; }\n\n.PhoneInput .PhoneInputCountry {\n  border: 1px solid #d9d9d9 !important;\n  border-radius: 5px !important;\n  padding: 0 1rem 0 1rem; }\n\n.PhoneInput .PhoneInputInput {\n  flex: 1 1;\n  min-width: 0;\n  border-radius: 5px !important;\n  height: 40px;\n  border: 1px solid #d9d9d9 !important;\n  outline: none; }\n\n.filter-title {\n  color: rgba(58, 53, 65, 0.8);\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 600;\n  font-size: 0.875rem; }\n\n.ant-radio-wrapper {\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 400;\n  font-size: 0.875rem;\n  line-height: 22px;\n  color: rgba(58, 53, 65, 0.8); }\n\n.ant-list-item {\n  color: rgba(58, 53, 65, 0.8); }\n\n.PhoneInput .PhoneInputInput:focus-visible,\n.PhoneInput .PhoneInputInput:hover {\n  flex: 1 1;\n  min-width: 0;\n  border-radius: 5px !important;\n  height: 40px;\n  border-right: 1px solid #40a9ff !important;\n  outline: 1px solid #40a9ff; }\n\n.layout-content-container {\n  padding-bottom: 100px; }\n  .layout-content-container .ant-btn-primary {\n    background-color: #16b1ff;\n    color: #ffffff;\n    border: none; }\n  .layout-content-container .ant-btn {\n    height: 32px;\n    font-weight: 500;\n    font-size: 0.8rem;\n    border-radius: 0.3rem;\n    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);\n    min-width: 80px;\n    box-shadow: none; }\n    .layout-content-container .ant-btn span {\n      text-transform: uppercase; }\n\n.content-container {\n  padding: 0px 20px; }\n  .content-container .title-bar {\n    padding: 0px 0px 30px 0px; }\n  .content-container .body-title {\n    color: #16b1ff;\n    font-weight: 500;\n    font-size: 1.2rem; }\n  .content-container .body-sub-title {\n    color: rgba(58, 53, 65, 0.6);\n    font-weight: 400;\n    font-size: 0.8rem; }\n\n.content-card {\n  background-color: #ffffff;\n  border-radius: 10px;\n  width: 100%; }\n  .content-card .action-bar {\n    padding: 1.6rem 1.3rem 1.6rem 1.3rem; }\n    .content-card .action-bar button {\n      width: fit-content; }\n  .content-card .filter-section {\n    padding: 1.4rem 1.3rem 1.6rem 1.3rem;\n    display: flex;\n    width: 100%;\n    flex-direction: row;\n    align-items: center;\n    justify-content: end; }\n    .content-card .filter-section .search-bar {\n      display: flex;\n      flex-direction: row-reverse; }\n    .content-card .filter-section .filter-bar {\n      display: flex;\n      flex-direction: row-reverse;\n      margin-top: 0.8rem;\n      width: 5%; }\n    .content-card .filter-section .ant-input-affix-wrapper {\n      border-radius: 0.313rem 0 0 0.313rem !important; }\n    .content-card .filter-section .ant-input-search\n> .ant-input-group\n> .ant-input-group-addon:last-child\n.ant-input-search-button {\n      padding-top: 0;\n      padding-bottom: 0;\n      border-radius: 0 0.313rem 0.313rem 0 !important; }\n\n.layout-content-container .ant-btn {\n  min-width: 50px !important; }\n\n.table-actions-section {\n  width: 100%;\n  margin-bottom: 1rem; }\n\n.action-menu {\n  min-width: 120px;\n  color: rgba(58, 53, 65, 0.6); }\n  .action-menu .action-icon {\n    margin-right: 12px;\n    display: flex; }\n  .action-menu .anticon-edit {\n    color: #16b1ff; }\n  .action-menu .anticon-delete {\n    color: #f25a29; }\n\n.ant-dropdown-menu {\n  padding: 1rem 2rem 1rem 1rem !important;\n  border-radius: 5px; }\n\n.ant-dropdown-menu-item-active {\n  background-color: transparent !important; }\n\n.ant-popover-inner-content .action-menu {\n  margin: -12px -16px; }\n  .ant-popover-inner-content .action-menu .ant-list-item {\n    padding: 11px 16px;\n    justify-content: flex-start;\n    cursor: pointer; }\n\n.ant-tag {\n  border-radius: 20px; }\n\n.clickable {\n  cursor: pointer; }\n\n.text-center {\n  text-align: center; }\n\n.float-left {\n  float: left; }\n\n.float-right {\n  float: right; }\n\n.apexcharts-canvas {\n  font-family: \"Inter\" !important; }\n\n.apexcharts-legend-text {\n  font-family: \"Inter\" !important; }\n\n.ant-tag {\n  padding: 1px 10px; }\n\n.flex-display {\n  display: flex; }\n\n.ant-modal-footer {\n  border-top: none;\n  text-align: center; }\n  .ant-modal-footer button {\n    margin: 10px 20px;\n    text-transform: uppercase;\n    font-size: 0.8rem; }\n\n.ant-modal-header {\n  border-radius: 15px;\n  border: none; }\n\n.ant-modal-content {\n  border-radius: 15px;\n  border: none; }\n\n.ant-modal-header {\n  border: none; }\n\n.ant-modal-body {\n  text-align: center;\n  color: rgba(58, 53, 65, 0.6);\n  font-size: 0.8rem; }\n  .ant-modal-body .ant-select-selector {\n    text-align: left;\n    border-radius: 5px !important;\n    height: 32px; }\n  .ant-modal-body .form-label {\n    text-align: left; }\n    .ant-modal-body .form-label .req-ast {\n      color: rgba(255, 77, 79, 0.8);\n      padding-left: 5px; }\n  .ant-modal-body .ant-form .ant-input-password {\n    padding: 6.5px 11px;\n    font-size: 16px; }\n  .ant-modal-body .ant-form .ant-form-item-explain-error {\n    text-align: start; }\n\n.popup-header {\n  text-align: center;\n  color: rgba(58, 53, 65, 0.8);\n  font-weight: 600;\n  font-family: \"Inter\";\n  font-size: 0.9rem;\n  margin: 25px 20px -20px 20px; }\n  .popup-header .icon {\n    font-size: 4rem;\n    margin-bottom: 15px;\n    font-weight: 400; }\n  .popup-header img {\n    height: 100px; }\n\n.popup-success .icon {\n  color: #5dc380; }\n\n.popup-success .ant-btn-primary {\n  background: #16b1ff;\n  border-radius: #16b1ff;\n  border: none; }\n\n.popup-success .ant-btn-default {\n  color: rgba(58, 53, 65, 0.6);\n  border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-success .ant-btn-primary[disabled] {\n  border-color: #d9d9d9;\n  background: #f5f5f5; }\n\n.popup-primary .icon {\n  color: #16b1ff; }\n\n.popup-primary .ant-btn-primary {\n  background: #16b1ff;\n  border-radius: #16b1ff;\n  border: none; }\n\n.popup-primary .ant-btn-default {\n  color: rgba(58, 53, 65, 0.6);\n  border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-primary .ant-btn-primary[disabled] {\n  border-color: #d9d9d9;\n  background: #f5f5f5; }\n\n.popup-danger .icon {\n  color: rgba(255, 77, 79, 0.8); }\n\n.popup-danger .ant-btn-primary {\n  background: rgba(255, 77, 79, 0.8);\n  border-radius: rgba(255, 77, 79, 0.8);\n  border: none; }\n\n.popup-danger .ant-btn-primary[disabled] {\n  border-color: #d9d9d9;\n  background: #f5f5f5; }\n\n.popup-danger .ant-btn-default {\n  color: rgba(58, 53, 65, 0.6);\n  border-color: rgba(58, 53, 65, 0.6); }\n\n.ant-modal-footer .ant-btn {\n  height: 32px;\n  border-radius: 4px;\n  padding: 6px 16px;\n  font-weight: 500; }\n\n.ant-modal-footer .ant-btn-default {\n  color: rgba(140, 140, 140, 0.7) !important;\n  border-color: rgba(140, 140, 140, 0.7) !important; }\n\n.ant-tag-processing {\n  color: #16b1ff;\n  background: rgba(185, 226, 244, 0.4); }\n\n.filter-section input {\n  font-family: 'Inter';\n  font-size: 0.8rem !important; }\n\n.pull-right {\n  float: right; }\n\n.disabled {\n  opacity: 0.5; }\n\n.mg-left-3 {\n  margin-left: 3rem; }\n\n.mg-left-2 {\n  margin-left: 2rem !important; }\n\n.mg-left-1 {\n  margin-left: 1rem; }\n\n.mg-top-1 {\n  margin-top: 1rem; }\n\n.mg-top-2 {\n  margin-top: 2rem; }\n\n.mg-bottom-1 {\n  margin-bottom: 1rem !important; }\n\n.transfer-form {\n  padding: 0px 15px;\n  color: rgba(58, 53, 65, 0.6); }\n  .transfer-form .popup-credit-input .ant-form-item-explain-error {\n    width: 200px; }\n  .transfer-form .ant-row {\n    align-items: unset; }\n  .transfer-form .sub-text {\n    margin-bottom: 35px;\n    font-size: 0.9rem;\n    font-weight: 500; }\n  .transfer-form .label {\n    text-align: left;\n    font-size: 0.9rem;\n    color: rgba(58, 53, 65, 0.6); }\n  .transfer-form .seperator {\n    font-size: 1.2rem;\n    color: #d9d9d9; }\n  .transfer-form .footer {\n    margin-bottom: 0px;\n    margin-top: 15px; }\n  .transfer-form label {\n    font-size: 0.8rem; }\n  .transfer-form .ant-radio-wrapper {\n    font-size: 0.9rem; }\n  .transfer-form input {\n    color: rgba(58, 53, 65, 0.6); }\n  .transfer-form button {\n    text-transform: uppercase;\n    font-weight: 500; }\n\n.color-error {\n  color: rgba(255, 77, 79, 0.8); }\n\n.color-primary {\n  color: #16b1ff; }\n\n.ant-input-number-input {\n  text-align: right; }\n\n.text-left {\n  text-align: left; }\n\n.ant-form-item .ant-radio-group {\n  text-align: left; }\n\n.loading-center {\n  margin: auto;\n  text-align: center;\n  position: absolute;\n  top: 50%;\n  left: 50%; }\n\n.ant-tag-purple {\n  color: #976ed7; }\n\n.ant-tag-orange {\n  color: #ff8f56; }\n\n.ant-tag-default {\n  color: rgba(58, 53, 65, 0.5); }\n\n.ant-popover-inner {\n  border-radius: 4px; }\n\n.ant-input-number {\n  border-radius: 5px; }\n\n.ret-icon {\n  background-color: rgba(254, 241, 173, 0.5);\n  color: #ff8f56; }\n\n.flag-ret-icon {\n  display: flex !important;\n  background-color: #f4f5fa;\n  font-size: 1.1rem !important;\n  padding: 7px; }\n\n.b-icon {\n  vertical-align: middle; }\n\n.ant-message-notice-content {\n  padding: 0px;\n  border-radius: 5px; }\n  .ant-message-notice-content .ant-message-custom-content {\n    font-size: 0.8rem;\n    border-radius: 5px;\n    padding: 17px 24px; }\n  .ant-message-notice-content .ant-message-error {\n    color: rgba(255, 77, 79, 0.8);\n    border: 1px solid rgba(255, 77, 79, 0.8); }\n  .ant-message-notice-content .ant-message-success {\n    color: #5bce00;\n    border: 1px solid #5bce00; }\n\n.ant-select-selection-item {\n  color: rgba(58, 53, 65, 0.6); }\n\n.sub-text {\n  font-size: 0.9rem;\n  font-weight: 500; }\n\n.search-filter {\n  margin-right: 15px; }\n\n.mg-bottom-0 {\n  margin-bottom: 0px; }\n\n.padding-bottom-0 {\n  padding-bottom: 0px; }\n\n.ellipsis-overflow {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  display: -webkit-box;\n  -webkit-line-clamp: 1;\n  -webkit-box-orient: vertical; }\n\n.nextline-overflow {\n  overflow-wrap: break-word; }\n\n.ant-message {\n  width: 50%;\n  right: 0px;\n  left: auto;\n  min-width: 400px; }\n";
         
     | 
| 
       785 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 784 
     | 
    
         
            +
            var css_248z$i = "body {\n  background-color: #f4f5fa;\n  font-family: \"Inter\";\n  font-weight: 400; }\n\n.ant-menu {\n  background-color: #f4f5fa; }\n\n.ant-layout-header {\n  background-color: #f4f5fa; }\n\n.ant-layout {\n  background-color: #f4f5fa; }\n\n.ant-menu-submenu .ant-menu {\n  background-color: #f4f5fa; }\n\n.ant-menu-item {\n  background-color: #f4f5fa; }\n\n.ant-menu-sub {\n  background-color: #f4f5fa; }\n\n.ant-table-content {\n  font-family: \"Inter\"; }\n\n.ant-input {\n  border-radius: 5px !important; }\n\n.ant-btn {\n  border-radius: 5px !important; }\n\n.ant-input-group-addon:first-child {\n  border-radius: 5px !important; }\n\n.ant-input-group .ant-input {\n  width: 99% !important; }\n\n.ant-tooltip-inner {\n  border-radius: 5px !important;\n  background-color: #16b1ff !important; }\n\n.ant-tooltip-arrow-content {\n  --antd-arrow-background-color: linear-gradient(to right bottom, #16b1ff, #16b1ff) !important; }\n\n.ant-radio-group {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between; }\n\n.ant-radio-group-large .ant-radio-button-wrapper {\n  font-size: 0.8rem;\n  width: 25%;\n  border-radius: 5px !important; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n  border-color: #40a9ff;\n  border-radius: 5px;\n  height: 40px; }\n  .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-name,\n  .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-name {\n    color: #40a9ff !important; }\n\n.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n  color: #40a9ff; }\n\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {\n  border-color: #d9d9d9 !important; }\n\n.ant-input-group-wrapper-status-error .ant-input-group-addon {\n  border-color: #d9d9d9 !important; }\n\n.ant-form-item-explain-error {\n  font-size: 13px;\n  color: rgba(255, 77, 79, 0.8); }\n\n.ant-table-thead\n> tr\n> th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {\n  background-color: transparent !important; }\n\n.ant-form-item-label > label {\n  flex-direction: row-reverse !important;\n  color: rgba(58, 53, 65, 0.5); }\n\n.ant-form-item-label\n> label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n  margin-left: 0.2rem !important;\n  color: rgba(255, 77, 79, 0.8) !important; }\n\n.ant-picker {\n  border-radius: 5px !important;\n  height: 35px !important; }\n\n.PhoneInput .PhoneInputCountry {\n  border: 1px solid #d9d9d9 !important;\n  border-radius: 5px !important;\n  padding: 0 1rem 0 1rem; }\n\n.PhoneInput .PhoneInputInput {\n  flex: 1 1;\n  min-width: 0;\n  border-radius: 5px !important;\n  height: 40px;\n  border: 1px solid #d9d9d9 !important;\n  outline: none; }\n\n.filter-title {\n  color: rgba(58, 53, 65, 0.8);\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 600;\n  font-size: 0.875rem; }\n\n.ant-radio-wrapper {\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 400;\n  font-size: 0.875rem;\n  line-height: 22px;\n  color: rgba(58, 53, 65, 0.8); }\n\n.ant-list-item {\n  color: rgba(58, 53, 65, 0.8); }\n\n.PhoneInput .PhoneInputInput:focus-visible,\n.PhoneInput .PhoneInputInput:hover {\n  flex: 1 1;\n  min-width: 0;\n  border-radius: 5px !important;\n  height: 40px;\n  border-right: 1px solid #40a9ff !important;\n  outline: 1px solid #40a9ff; }\n\n.layout-content-container {\n  padding-bottom: 100px; }\n  .layout-content-container .ant-btn-primary {\n    background-color: #16b1ff;\n    color: #ffffff;\n    border: none; }\n  .layout-content-container .ant-btn {\n    height: 32px;\n    font-weight: 500;\n    font-size: 0.8rem;\n    border-radius: 0.3rem;\n    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);\n    min-width: 80px;\n    box-shadow: none; }\n    .layout-content-container .ant-btn span {\n      text-transform: uppercase; }\n\n.content-container {\n  padding: 0px 20px; }\n  .content-container .title-bar {\n    padding: 0px 0px 30px 0px; }\n  .content-container .body-title {\n    color: #16b1ff;\n    font-weight: 500;\n    font-size: 1.2rem; }\n  .content-container .body-sub-title {\n    color: rgba(58, 53, 65, 0.6);\n    font-weight: 400;\n    font-size: 0.8rem; }\n\n.content-card {\n  background-color: #ffffff;\n  border-radius: 10px;\n  width: 100%; }\n  .content-card .action-bar {\n    padding: 1.6rem 1.3rem 1.6rem 1.3rem; }\n    .content-card .action-bar button {\n      width: fit-content; }\n  .content-card .filter-section {\n    padding: 1.4rem 1.3rem 1.6rem 1.3rem;\n    display: flex;\n    width: 100%;\n    flex-direction: row;\n    align-items: center;\n    justify-content: end; }\n    .content-card .filter-section .search-bar {\n      display: flex;\n      flex-direction: row-reverse; }\n    .content-card .filter-section .filter-bar {\n      display: flex;\n      flex-direction: row-reverse;\n      margin-top: 0.8rem;\n      width: 5%; }\n    .content-card .filter-section .ant-input-affix-wrapper {\n      border-radius: 0.313rem 0 0 0.313rem !important; }\n    .content-card .filter-section .ant-input-search\n> .ant-input-group\n> .ant-input-group-addon:last-child\n.ant-input-search-button {\n      padding-top: 0;\n      padding-bottom: 0;\n      border-radius: 0 0.313rem 0.313rem 0 !important; }\n\n.layout-content-container .ant-btn {\n  min-width: 50px !important; }\n\n.table-actions-section {\n  width: 100%;\n  margin-bottom: 1rem; }\n\n.action-menu {\n  min-width: 120px;\n  color: rgba(58, 53, 65, 0.6); }\n  .action-menu .action-icon {\n    margin-right: 12px;\n    display: flex; }\n  .action-menu .anticon-edit {\n    color: #16b1ff; }\n  .action-menu .anticon-delete {\n    color: #f25a29; }\n\n.ant-dropdown-menu {\n  padding: 1rem 2rem 1rem 1rem !important;\n  border-radius: 5px; }\n\n.ant-dropdown-menu-item-active {\n  background-color: transparent !important; }\n\n.ant-popover-inner-content .action-menu {\n  margin: -12px -16px; }\n  .ant-popover-inner-content .action-menu .ant-list-item {\n    padding: 11px 16px;\n    justify-content: flex-start;\n    cursor: pointer; }\n\n.ant-tag {\n  border-radius: 20px; }\n\n.clickable {\n  cursor: pointer; }\n\n.text-center {\n  text-align: center; }\n\n.float-left {\n  float: left; }\n\n.float-right {\n  float: right; }\n\n.apexcharts-canvas {\n  font-family: \"Inter\" !important; }\n\n.apexcharts-legend-text {\n  font-family: \"Inter\" !important; }\n\n.ant-tag {\n  padding: 1px 10px; }\n\n.flex-display {\n  display: flex; }\n\n.ant-modal-footer {\n  border-top: none;\n  text-align: center; }\n  .ant-modal-footer button {\n    margin: 10px 20px;\n    text-transform: uppercase;\n    font-size: 0.8rem; }\n\n.ant-modal-header {\n  border-radius: 15px;\n  border: none; }\n\n.ant-modal-content {\n  border-radius: 15px;\n  border: none; }\n\n.ant-modal-header {\n  border: none; }\n\n.ant-modal-body {\n  text-align: center;\n  color: rgba(58, 53, 65, 0.6);\n  font-size: 0.8rem; }\n  .ant-modal-body .ant-select-selector {\n    text-align: left;\n    border-radius: 5px !important;\n    height: 32px; }\n  .ant-modal-body .form-label {\n    text-align: left; }\n    .ant-modal-body .form-label .req-ast {\n      color: rgba(255, 77, 79, 0.8);\n      padding-left: 5px; }\n  .ant-modal-body .ant-form .ant-input-password {\n    padding: 6.5px 11px;\n    font-size: 16px; }\n  .ant-modal-body .ant-form .ant-form-item-explain-error {\n    text-align: start; }\n\n.popup-header {\n  text-align: center;\n  color: rgba(58, 53, 65, 0.8);\n  font-weight: 600;\n  font-family: \"Inter\";\n  font-size: 0.9rem;\n  margin: 25px 20px -20px 20px; }\n  .popup-header .icon {\n    font-size: 4rem;\n    margin-bottom: 15px;\n    font-weight: 400; }\n  .popup-header img {\n    height: 100px; }\n\n.popup-success .icon {\n  color: #5dc380; }\n\n.popup-success .ant-btn-primary {\n  background: #16b1ff;\n  border-radius: #16b1ff;\n  border: none; }\n\n.popup-success .ant-btn-default {\n  color: rgba(58, 53, 65, 0.6);\n  border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-success .ant-btn-primary[disabled] {\n  border-color: #d9d9d9;\n  background: #f5f5f5; }\n\n.popup-primary .icon {\n  color: #16b1ff; }\n\n.popup-primary .ant-btn-primary {\n  background: #16b1ff;\n  border-radius: #16b1ff;\n  border: none; }\n\n.popup-primary .ant-btn-default {\n  color: rgba(58, 53, 65, 0.6);\n  border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-primary .ant-btn-primary[disabled] {\n  border-color: #d9d9d9;\n  background: #f5f5f5; }\n\n.popup-danger .icon {\n  color: rgba(255, 77, 79, 0.8); }\n\n.popup-danger .ant-btn-primary {\n  background: rgba(255, 77, 79, 0.8);\n  border-radius: rgba(255, 77, 79, 0.8);\n  border: none; }\n\n.popup-danger .ant-btn-primary[disabled] {\n  border-color: #d9d9d9;\n  background: #f5f5f5; }\n\n.popup-danger .ant-btn-default {\n  color: rgba(58, 53, 65, 0.6);\n  border-color: rgba(58, 53, 65, 0.6); }\n\n.ant-modal-footer .ant-btn {\n  height: 32px;\n  border-radius: 4px;\n  padding: 6px 16px;\n  font-weight: 500; }\n\n.ant-modal-footer .ant-btn-default {\n  color: rgba(140, 140, 140, 0.7) !important;\n  border-color: rgba(140, 140, 140, 0.7) !important; }\n\n.ant-tag-processing {\n  color: #16b1ff;\n  background: rgba(185, 226, 244, 0.4); }\n\n.filter-section input {\n  font-family: 'Inter';\n  font-size: 0.8rem !important; }\n\n.pull-right {\n  float: right; }\n\n.disabled {\n  opacity: 0.5; }\n\n.mg-left-3 {\n  margin-left: 3rem; }\n\n.mg-left-2 {\n  margin-left: 2rem !important; }\n\n.mg-left-1 {\n  margin-left: 1rem; }\n\n.mg-top-1 {\n  margin-top: 1rem; }\n\n.mg-top-2 {\n  margin-top: 2rem; }\n\n.mg-bottom-1 {\n  margin-bottom: 1rem !important; }\n\n.transfer-form {\n  padding: 0px 15px;\n  color: rgba(58, 53, 65, 0.6); }\n  .transfer-form .popup-credit-input .ant-form-item-explain-error {\n    width: 200px; }\n  .transfer-form .ant-row {\n    align-items: unset; }\n  .transfer-form .sub-text {\n    margin-bottom: 35px;\n    font-size: 0.9rem;\n    font-weight: 500; }\n  .transfer-form .label {\n    text-align: left;\n    font-size: 0.9rem;\n    color: rgba(58, 53, 65, 0.6); }\n  .transfer-form .seperator {\n    font-size: 1.2rem;\n    color: #d9d9d9; }\n  .transfer-form .footer {\n    margin-bottom: 0px;\n    margin-top: 15px; }\n  .transfer-form label {\n    font-size: 0.8rem; }\n  .transfer-form .ant-radio-wrapper {\n    font-size: 0.9rem; }\n  .transfer-form input {\n    color: rgba(58, 53, 65, 0.6); }\n  .transfer-form button {\n    text-transform: uppercase;\n    font-weight: 500; }\n\n.color-error {\n  color: rgba(255, 77, 79, 0.8); }\n\n.color-primary {\n  color: #16b1ff; }\n\n.ant-input-number-input {\n  text-align: right; }\n\n.text-left {\n  text-align: left; }\n\n.ant-form-item .ant-radio-group {\n  text-align: left; }\n\n.loading-center {\n  margin: auto;\n  text-align: center;\n  position: absolute;\n  top: 50%;\n  left: 50%; }\n\n.ant-tag-purple {\n  color: #976ed7; }\n\n.ant-tag-orange {\n  color: #ff8f56; }\n\n.ant-tag-default {\n  color: rgba(58, 53, 65, 0.5); }\n\n.ant-popover-inner {\n  border-radius: 4px; }\n\n.ant-input-number {\n  border-radius: 5px; }\n\n.ret-icon {\n  background-color: rgba(254, 241, 173, 0.5);\n  color: #ff8f56; }\n\n.flag-ret-icon {\n  display: flex !important;\n  background-color: #f4f5fa;\n  font-size: 1.1rem !important;\n  padding: 7px; }\n\n.b-icon {\n  vertical-align: middle; }\n\n.ant-message-notice-content {\n  padding: 0px;\n  border-radius: 5px; }\n  .ant-message-notice-content .ant-message-custom-content {\n    font-size: 0.8rem;\n    border-radius: 5px;\n    padding: 17px 24px; }\n  .ant-message-notice-content .ant-message-error {\n    color: rgba(255, 77, 79, 0.8);\n    border: 1px solid rgba(255, 77, 79, 0.8); }\n  .ant-message-notice-content .ant-message-success {\n    color: #5bce00;\n    border: 1px solid #5bce00; }\n\n.ant-select-selection-item {\n  color: rgba(58, 53, 65, 0.6); }\n\n.sub-text {\n  font-size: 0.9rem;\n  font-weight: 500; }\n\n.search-filter {\n  margin-right: 15px; }\n\n.mg-bottom-0 {\n  margin-bottom: 0px; }\n\n.padding-bottom-0 {\n  padding-bottom: 0px; }\n\n.ellipsis-overflow {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  display: -webkit-box;\n  -webkit-line-clamp: 1;\n  -webkit-box-orient: vertical; }\n\n.nextline-overflow {\n  overflow-wrap: break-word; }\n\n.ant-message {\n  width: 50%;\n  right: 0px;\n  left: auto;\n  min-width: 400px; }\n";
         
     | 
| 
      
 785 
     | 
    
         
            +
            styleInject(css_248z$i);
         
     | 
| 
       786 
786 
     | 
    
         | 
| 
       787 
787 
     | 
    
         
             
            exports.UserManagementColumns = void 0;
         
     | 
| 
       788 
788 
     | 
    
         
             
            (function (UserManagementColumns) {
         
     | 
| 
         @@ -5086,11 +5086,11 @@ var UserActionConfirmationModel = function (props) { 
     | 
|
| 
       5086 
5086 
     | 
    
         
             
                            React.createElement(antd.Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading, disabled: actionInfo.type === "danger" && comment === "" }, actionInfo.action)))));
         
     | 
| 
       5087 
5087 
     | 
    
         
             
            };
         
     | 
| 
       5088 
5088 
     | 
    
         | 
| 
       5089 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       5090 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 5089 
     | 
    
         
            +
            var css_248z$h = ".company-profile {\n  padding: 0px 50px; }\n  .company-profile .company-name {\n    font-weight: 600; }\n  .company-profile .title-bar {\n    display: flex;\n    justify-content: space-between; }\n    .company-profile .title-bar .flex-display {\n      margin-left: 15px; }\n  .company-profile .card-container {\n    margin-bottom: 20px;\n    width: 100%;\n    border-radius: 10px; }\n  .company-profile .mg-left-1 {\n    margin-left: 1rem; }\n  .company-profile .mg-top-1 {\n    margin-top: 1rem; }\n  .company-profile .mg-right-5 {\n    margin-right: 5rem; }\n  .company-profile .padding-top-1 {\n    padding-top: 1rem; }\n  .company-profile .padding-top-2 {\n    padding-top: 2rem; }\n  .company-profile .profile-img {\n    width: 200px; }\n  .company-profile .btn-danger {\n    color: #ff4d4f !important;\n    border-color: #ff8183 !important; }\n  .company-profile .btn-activate {\n    color: #16b1ff !important;\n    border-color: #16b1ff !important; }\n  .company-profile .ant-btn[disabled] {\n    border-color: #d9d9d9 !important;\n    background: #f5f5f5 !important;\n    color: #d9d9d9 !important; }\n";
         
     | 
| 
      
 5090 
     | 
    
         
            +
            styleInject(css_248z$h);
         
     | 
| 
       5091 
5091 
     | 
    
         | 
| 
       5092 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       5093 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 5092 
     | 
    
         
            +
            var css_248z$g = ".organisation-status-active {\n  border-radius: 20px;\n  background-color: rgba(185, 226, 244, 0.4);\n  padding: 4px 15px;\n  height: 28px;\n  color: #16b1ff;\n  margin-left: auto;\n  margin-right: auto;\n  width: 90px;\n  text-align: center; }\n\n.organisation-status-deauthorised {\n  border-radius: 20px;\n  background-color: rgba(255, 166, 166, 0.4);\n  padding: 4px 15px;\n  height: 28px;\n  color: #ff4d4f;\n  margin-left: auto;\n  margin-right: auto;\n  width: 110px;\n  text-align: center; }\n";
         
     | 
| 
      
 5093 
     | 
    
         
            +
            styleInject(css_248z$g);
         
     | 
| 
       5094 
5094 
     | 
    
         | 
| 
       5095 
5095 
     | 
    
         
             
            var OrganisationStatus = function (props) {
         
     | 
| 
       5096 
5096 
     | 
    
         
             
                var organisationStatus = props.organisationStatus, t = props.t;
         
     | 
| 
         @@ -5337,8 +5337,8 @@ var CompanyProfileComponent = function (props) { 
     | 
|
| 
       5337 
5337 
     | 
    
         
             
                    React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: onReactivateOrgConfirmed, onActionCanceled: onReactivateOrgCanceled, openModal: openReactivateModal, errorMsg: errorMsg, loading: isLoading })));
         
     | 
| 
       5338 
5338 
     | 
    
         
             
            };
         
     | 
| 
       5339 
5339 
     | 
    
         | 
| 
       5340 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       5341 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 5340 
     | 
    
         
            +
            var css_248z$f = ".programme-management .programme-title-bar {\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  padding: 0px 0px 30px 0px; }\n  .programme-management .programme-title-bar .title {\n    display: flex;\n    flex-direction: column;\n    justify-content: space-between; }\n  .programme-management .programme-title-bar .actions {\n    display: flex;\n    align-items: center;\n    justify-content: flex-end; }\n  .programme-management .programme-title-bar .flex-display {\n    margin-left: 15px; }\n\n.programme-management .certify-list {\n  width: 110px;\n  display: flex;\n  align-items: center;\n  flex-wrap: wrap; }\n  .programme-management .certify-list .profile-icon {\n    margin-bottom: 4px; }\n\n.programme-management .table-actions-section {\n  margin-bottom: 0px; }\n  .programme-management .table-actions-section input {\n    font-family: \"Inter\";\n    font-size: 0.8rem; }\n\n.programme-management .all-check {\n  margin-right: 10px; }\n  .programme-management .all-check .ant-checkbox-inner::after {\n    background-color: rgba(58, 53, 65, 0.5); }\n  .programme-management .all-check .ant-checkbox-checked .ant-checkbox-inner::after {\n    background-color: transparent; }\n  .programme-management .all-check .ant-checkbox-checked .ant-checkbox-inner {\n    background-color: rgba(58, 53, 65, 0.5);\n    border: none; }\n\n.programme-management .ant-checkbox-checked .ant-checkbox-input[value=\"Retired\"] + .ant-checkbox-inner {\n  background-color: rgba(58, 53, 65, 0.4);\n  border: none; }\n\n.programme-management .ant-checkbox-checked .ant-checkbox-input[value=\"AwaitingAuthorization\"] + .ant-checkbox-inner {\n  background-color: rgba(237, 77, 71, 0.6);\n  border: none; }\n\n.programme-management .ant-checkbox-checked .ant-checkbox-input[value=\"Rejected\"] + .ant-checkbox-inner {\n  background-color: rgba(58, 53, 65, 0.4);\n  border: none; }\n\n.programme-management .ant-checkbox-checked .ant-checkbox-input[value=\"Authorised\"] + .ant-checkbox-inner {\n  background-color: #16b1ff;\n  border: none; }\n\n.programme-management .ant-checkbox-checked .ant-checkbox-input[value=\"Approved\"] + .ant-checkbox-inner {\n  background-color: rgba(145, 85, 253, 0.6);\n  border: none; }\n\n.programme-management .ant-checkbox-checked .ant-checkbox-input[value=\"Transferred\"] + .ant-checkbox-inner {\n  background-color: rgba(118, 195, 39, 0.6);\n  border: none; }\n";
         
     | 
| 
      
 5341 
     | 
    
         
            +
            styleInject(css_248z$f);
         
     | 
| 
       5342 
5342 
     | 
    
         | 
| 
       5343 
5343 
     | 
    
         
             
            var Search$1 = antd.Input.Search;
         
     | 
| 
       5344 
5344 
     | 
    
         
             
            var ProgrammeManagementComponent = function (props) {
         
     | 
| 
         @@ -5767,15 +5767,15 @@ var ProgrammeManagementComponent = function (props) { 
     | 
|
| 
       5767 
5767 
     | 
    
         
             
                                        } })))))));
         
     | 
| 
       5768 
5768 
     | 
    
         
             
            };
         
     | 
| 
       5769 
5769 
     | 
    
         | 
| 
       5770 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       5771 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 5770 
     | 
    
         
            +
            var css_248z$e = ".programme-view {\n  padding: 0px 50px; }\n  .programme-view .ant-steps-item-tail::after {\n    background-color: #ffff !important;\n    background-color: #ffff !important;\n    border-left: 1px dashed #d9d9d9;\n    border-style: dashed;\n    border-width: 1px;\n    border-color: #d9d9d9; }\n  .programme-view .action-btns {\n    justify-content: center !important; }\n    .programme-view .action-btns button:first-child {\n      margin-right: 15px;\n      margin-left: 10px; }\n    .programme-view .action-btns button:last-child {\n      margin-right: 15px; }\n  .programme-view .title-bar {\n    display: flex;\n    justify-content: space-between; }\n  .programme-view .ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n    left: 13px; }\n  .programme-view .apexcharts-legend-series {\n    padding-bottom: 5px; }\n  .programme-view .card-container {\n    margin-bottom: 20px;\n    width: 100%;\n    border-radius: 10px; }\n    .programme-view .card-container .action-btns {\n      margin-top: 25px;\n      margin-bottom: -15px;\n      justify-content: end; }\n  .programme-view .programme-logo {\n    width: 100px;\n    height: 100px;\n    border-radius: 100%;\n    background-color: rgba(254, 241, 173, 0.5);\n    font-size: 50px;\n    color: #ffa070;\n    text-align: center;\n    padding: 12px;\n    margin: auto; }\n  .programme-view .centered-card {\n    display: flex;\n    justify-content: center;\n    text-align: center;\n    flex-direction: column;\n    width: 100%; }\n  .programme-view .separator {\n    border-bottom: 1px solid #f0f0f0;\n    width: 100%; }\n  .programme-view .cert-info {\n    text-align: center;\n    padding: 20px 15px 20px 15px; }\n    .programme-view .cert-info img {\n      height: 60px; }\n  .programme-view .cert-content {\n    display: flex;\n    flex-wrap: wrap; }\n  .programme-view .cert-logo {\n    width: 60px;\n    height: 60px;\n    border-radius: 100%;\n    background-color: rgba(254, 241, 173, 0.5);\n    font-size: 30px;\n    color: #ffa070;\n    text-align: center;\n    padding: 6px;\n    margin: 0 auto; }\n  .programme-view .cert-name {\n    color: rgba(58, 53, 65, 0.8);\n    margin-top: 14px;\n    font-weight: 600; }\n  .programme-view .cert-date {\n    color: rgba(58, 53, 65, 0.6);\n    font-weight: 400;\n    font-size: 0.8rem; }\n  .programme-view .company-info {\n    padding: 25px 10px 30px 10px;\n    min-width: 200px; }\n    .programme-view .company-info img {\n      height: 90px; }\n    .programme-view .company-info .progress-bar {\n      width: calc(max(200px, 60%));\n      font-size: 0.8rem;\n      color: rgba(58, 53, 65, 0.6);\n      margin: 15px auto 0px; }\n    .programme-view .company-info .ant-progress-success-bg,\n    .programme-view .company-info .ant-progress-bg {\n      background-color: #16b1ff; }\n  .programme-view .programme-name {\n    color: rgba(58, 53, 65, 0.8);\n    margin-top: 14px;\n    font-weight: 600; }\n  .programme-view .file-name {\n    cursor: pointer;\n    color: rgba(58, 53, 65, 0.6); }\n  .programme-view .file-name:hover {\n    color: #16b1ff; }\n\n.info-view .content {\n  padding: 15px 0px;\n  margin-left: -8px; }\n\n.info-view .map-content {\n  padding: 15px 0px; }\n\n.info-view .ant-steps-item-subtitle {\n  display: block;\n  margin-left: 0px;\n  font-size: 0.8rem;\n  color: rgba(58, 53, 65, 0.3);\n  margin-top: -12px;\n  font-weight: 500; }\n\n.info-view .ant-steps-item-process\n> .ant-steps-item-container\n> .ant-steps-item-content\n> .ant-steps-item-title {\n  color: rgba(58, 53, 65, 0.8);\n  font-size: 0.8rem;\n  font-weight: 600; }\n\n.info-view .ant-steps-item-process\n> .ant-steps-item-container\n> .ant-steps-item-content\n> .ant-steps-item-description {\n  font-size: 0.8rem;\n  font-weight: 500;\n  color: rgba(58, 53, 65, 0.6); }\n\n.info-view .step-icon {\n  border-radius: 100%;\n  margin-right: 10px;\n  padding: 0.5rem 0.5rem 0.3rem 0.5rem;\n  font-size: 0.8rem; }\n\n.info-view .created-step {\n  color: #ff8f56;\n  background-color: rgba(254, 241, 173, 0.5);\n  font-size: 1rem;\n  padding: 0.4rem 0.4rem 0.2rem 0.4rem; }\n\n.info-view .auth-step {\n  color: #16b1ff;\n  background-color: rgba(185, 226, 244, 0.5); }\n\n.info-view .reject-step {\n  color: #ff9900;\n  background-color: rgba(254, 179, 159, 0.3); }\n\n.info-view .issue-step {\n  color: #4f9d83;\n  background-color: rgba(128, 255, 0, 0.12); }\n\n.info-view .cert-step {\n  color: #4f9d83;\n  background-color: rgba(128, 255, 0, 0.12); }\n\n.info-view .revoke-step {\n  color: rgba(255, 0, 199, 0.56);\n  background-color: rgba(255, 159, 222, 0.5); }\n\n.info-view .transfer-step {\n  background-color: rgba(215, 223, 226, 0.5);\n  color: #949599; }\n\n.info-view .retire-step {\n  color: #ff4d4f;\n  background-color: rgba(255, 211, 211, 0.5);\n  padding: 0.5rem 0.5rem 0.3rem 0.5rem; }\n\n.info-view .freeze-step {\n  color: #976ed7;\n  background-color: rgba(183, 164, 254, 0.3); }\n\n.info-view .region-list {\n  padding-top: 20px; }\n\n.loc-tag {\n  padding: 10px 20px 0px 0px;\n  color: rgba(58, 53, 65, 0.6); }\n\n.loc-icon {\n  margin-right: 5px;\n  font-size: 1rem; }\n\n.loc-text {\n  line-height: 1.2rem;\n  vertical-align: top; }\n\n.apexcharts-datalabels-group {\n  font-family: \"Inter\" !important;\n  color: rgba(58, 53, 65, 0.8) !important; }\n\n.remark {\n  font-size: 0.8rem; }\n\n.footer-btn {\n  margin: 39px 20px 0px 20px;\n  display: flex;\n  justify-content: center;\n  column-gap: 30px; }\n  .footer-btn button {\n    text-transform: uppercase; }\n\n.retire-form .ant-radio-group {\n  text-align: left; }\n\n.only-head .title {\n  margin-bottom: 0px !important; }\n  .only-head .title .link {\n    font-size: 1.2rem;\n    line-height: 0.5rem;\n    cursor: pointer;\n    color: rgba(58, 53, 65, 0.8); }\n\n.mapboxgl-popup-tip {\n  border-bottom-color: #16b1ff !important;\n  border-top-color: #16b1ff !important; }\n\n.mapboxgl-popup-content {\n  background-color: #16b1ff;\n  color: white;\n  font-family: \"Inter\";\n  font-weight: 500;\n  min-width: 60px;\n  height: 30px;\n  padding: 5px 20px; }\n";
         
     | 
| 
      
 5771 
     | 
    
         
            +
            styleInject(css_248z$e);
         
     | 
| 
       5772 
5772 
     | 
    
         | 
| 
       5773 
5773 
     | 
    
         
             
            var dateTimeFormat = 'dd LLLL yyyy @ HH:mm';
         
     | 
| 
       5774 
5774 
     | 
    
         
             
            var dateFormat = 'dd LLLL yyyy';
         
     | 
| 
       5775 
5775 
     | 
    
         
             
            var creditUnit = 'ITMO';
         
     | 
| 
       5776 
5776 
     | 
    
         | 
| 
       5777 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       5778 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 5777 
     | 
    
         
            +
            var css_248z$d = ".info-view .title-icon {\n  padding-right: 10px; }\n\n.info-view .title-text {\n  color: rgba(58, 53, 65, 0.8);\n  font-weight: 600; }\n\n.info-view .title {\n  margin-bottom: 5px; }\n\n.info-view .field-key {\n  color: rgba(58, 53, 65, 0.6);\n  font-weight: 500;\n  text-overflow: ellipsis;\n  overflow: hidden; }\n\n.info-view .field-value {\n  color: rgba(58, 53, 65, 0.6);\n  text-overflow: ellipsis;\n  overflow: hidden; }\n\n.info-view .field {\n  margin: 15px 25px;\n  font-size: 0.8rem; }\n";
         
     | 
| 
      
 5778 
     | 
    
         
            +
            styleInject(css_248z$d);
         
     | 
| 
       5779 
5779 
     | 
    
         | 
| 
       5780 
5780 
     | 
    
         
             
            var InfoView = function (props) {
         
     | 
| 
       5781 
5781 
     | 
    
         
             
                var title = props.title, data = props.data, icon = props.icon, hiddenColumns = props.hiddenColumns;
         
     | 
| 
         @@ -6389,8 +6389,8 @@ var Loading = function () { 
     | 
|
| 
       6389 
6389 
     | 
    
         
             
                return React.createElement(antd.Spin, { className: "loading-center", size: "large" });
         
     | 
| 
       6390 
6390 
     | 
    
         
             
            };
         
     | 
| 
       6391 
6391 
     | 
    
         | 
| 
       6392 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       6393 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 6392 
     | 
    
         
            +
            var css_248z$c = ".remark {\n  padding-top: 7px;\n  font-size: 0.75rem; }\n  .remark .remark-title {\n    text-transform: capitalize;\n    font-weight: 500;\n    color: rgba(58, 53, 65, 0.5); }\n  .remark .remark-body {\n    font-weight: 400;\n    color: rgba(58, 53, 65, 0.5); }\n";
         
     | 
| 
      
 6393 
     | 
    
         
            +
            styleInject(css_248z$c);
         
     | 
| 
       6394 
6394 
     | 
    
         | 
| 
       6395 
6395 
     | 
    
         
             
            var TimelineBody = function (props) {
         
     | 
| 
       6396 
6396 
     | 
    
         
             
                var text = props.text, remark = props.remark, via = props.via, t = props.t;
         
     | 
| 
         @@ -6403,8 +6403,8 @@ var TimelineBody = function (props) { 
     | 
|
| 
       6403 
6403 
     | 
    
         
             
                        React.createElement("div", { className: "remark-body" }, remark)))));
         
     | 
| 
       6404 
6404 
     | 
    
         
             
            };
         
     | 
| 
       6405 
6405 
     | 
    
         | 
| 
       6406 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       6407 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 6406 
     | 
    
         
            +
            var css_248z$b = ".map-box-container .mapboxgl-popup-content {\n  background-color: #ffffff !important;\n  color: rgba(58, 53, 65, 0.8) !important; }\n\n.map-box-container .mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {\n  border-top-color: #ffffff !important; }\n\n.map-box-container .mapboxgl-popup-close-button,\n.map-box-container .mapboxgl-popup-close-button:hover {\n  display: none; }\n";
         
     | 
| 
      
 6407 
     | 
    
         
            +
            styleInject(css_248z$b);
         
     | 
| 
       6408 
6408 
     | 
    
         | 
| 
       6409 
6409 
     | 
    
         
             
            var MapboxComponent = function (props) {
         
     | 
| 
       6410 
6410 
     | 
    
         
             
                var mapContainerRef = React.useRef(null);
         
     | 
| 
         @@ -7780,8 +7780,8 @@ var ProgrammeViewComponent = function (props) { 
     | 
|
| 
       7780 
7780 
     | 
    
         
             
                                React.createElement(antd.Button, { disabled: actionInfo.remark && (!comment || comment.trim() === ""), type: "primary", loading: confirmLoading, onClick: function () { return onAction(actionInfo.action); } }, actionInfo.action))))))));
         
     | 
| 
       7781 
7781 
     | 
    
         
             
            };
         
     | 
| 
       7782 
7782 
     | 
    
         | 
| 
       7783 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       7784 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 7783 
     | 
    
         
            +
            var css_248z$a = ".mg-left-1 {\n  margin-left: 1rem; }\n\n.add-user-main-container {\n  display: flex;\n  flex-direction: column;\n  border-radius: 5px;\n  padding: 0 50px; }\n  .add-user-main-container .title-container {\n    display: flex;\n    flex-direction: row;\n    justify-content: space-between;\n    width: 100%;\n    border-radius: 5px; }\n    .add-user-main-container .title-container .titles {\n      display: flex;\n      flex-direction: column;\n      width: 50%; }\n      .add-user-main-container .title-container .titles .main {\n        font-size: 1.25rem;\n        font-weight: 500;\n        color: #16b1ff; }\n      .add-user-main-container .title-container .titles .sub {\n        font-size: 0.8rem;\n        color: #555657; }\n    .add-user-main-container .title-container .actions {\n      display: flex;\n      flex-direction: row;\n      align-items: end;\n      justify-content: end;\n      width: 50%; }\n      .add-user-main-container .title-container .actions .btn-danger {\n        color: #ff4d4f !important;\n        border-color: #ff8183 !important; }\n\n.user-content-card {\n  width: 100%;\n  padding: 2.5rem 2rem 1rem 2rem;\n  margin-top: 1rem; }\n\n.content-card .PhoneInputInput .input {\n  border-radius: 5px !important; }\n\n.content-card .user-details-form .actions {\n  display: flex;\n  flex-direction: row-reverse; }\n\n.content-card .user-details-form .row .details-part-two .role-group .admin-radio-container {\n  width: 30%; }\n  .content-card .user-details-form .row .details-part-two .role-group .admin-radio-container .ant-radio-button-wrapper-checked:not(\n  .ant-radio-button-wrapper-disabled\n) {\n    color: #d12800 !important;\n    border-color: #d12800 !important;\n    box-shadow: none; }\n    .content-card .user-details-form .row .details-part-two .role-group .admin-radio-container .ant-radio-button-wrapper-checked:not(\n    .ant-radio-button-wrapper-disabled\n) .anticon {\n      background: #eeeeee;\n      border-radius: 50px;\n      padding: 0.2rem;\n      color: #d12800; }\n\n.content-card .user-details-form .row .details-part-two .role-group .manager-radio-container {\n  width: 30%; }\n  .content-card .user-details-form .row .details-part-two .role-group .manager-radio-container .ant-radio-button-wrapper-checked:not(\n  .ant-radio-button-wrapper-disabled\n) {\n    color: #75009e !important;\n    border-color: #75009e !important;\n    box-shadow: none; }\n    .content-card .user-details-form .row .details-part-two .role-group .manager-radio-container .ant-radio-button-wrapper-checked:not(\n    .ant-radio-button-wrapper-disabled\n) .anticon {\n      background: #eeeeee;\n      border-radius: 50px;\n      padding: 0.2rem;\n      color: #75009e; }\n\n.content-card .user-details-form .row .details-part-two .role-group .view-only-radio-container {\n  width: 30%; }\n  .content-card .user-details-form .row .details-part-two .role-group .view-only-radio-container .ant-radio-button-wrapper-checked:not(\n  .ant-radio-button-wrapper-disabled\n) {\n    color: #707070 !important;\n    border-color: #707070 !important;\n    box-shadow: none; }\n  .content-card .user-details-form .row .details-part-two .role-group .view-only-radio-container .anticon {\n    background: #eeeeee;\n    border-radius: 50px;\n    padding: 0.2rem;\n    color: #707070; }\n\n.content-card .user-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before {\n  background-color: transparent; }\n\n.content-card .user-details-form .row .details-part-two .role-group .ant-radio-button-wrapper {\n  border: 1px solid #d9d9d9; }\n\n.content-card .user-details-form .row .details-part-two .role-group .role-icons {\n  margin-right: 5px; }\n\n.content-card .user-details-form .row .details-part-two .role-group .anticon {\n  margin-right: 0.5rem; }\n\n.content-card .user-details-form .row .details-part-two .role-group .admin {\n  width: 100%; }\n  .content-card .user-details-form .row .details-part-two .role-group .admin .ant-radio-button-checked {\n    background: rgba(255, 166, 166, 0.42); }\n\n.content-card .user-details-form .row .details-part-two .role-group .manager {\n  width: 100%; }\n  .content-card .user-details-form .row .details-part-two .role-group .manager .ant-radio-button-checked {\n    background: rgba(96, 27, 209, 0.13); }\n\n.content-card .user-details-form .row .details-part-two .role-group .view-only {\n  width: 100%; }\n  .content-card .user-details-form .row .details-part-two .role-group .view-only .ant-radio-button-checked {\n    background: rgba(176, 190, 197, 0.23); }\n\n.content-card .create-user-container {\n  padding: 30px 10px;\n  background-color: #ffffff; }\n  .content-card .create-user-container .ant-row {\n    margin-bottom: 0.5vw; }\n  .content-card .create-user-container .create-user-btn-container {\n    margin-top: 1.5vw;\n    margin-bottom: 0; }\n    .content-card .create-user-container .create-user-btn-container .ant-btn-primary {\n      background-color: #d12800;\n      color: #ffffff;\n      font-family: \"Inter-Regular\";\n      border: none;\n      height: 40px;\n      font-size: 0.9rem;\n      border-radius: 0.3rem;\n      box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);\n      min-width: 170px; }\n  .content-card .create-user-container .create-user-image-upload {\n    display: flex;\n    flex-direction: row;\n    align-items: center; }\n    .content-card .create-user-container .create-user-image-upload .create-user-image-upload-label {\n      margin-right: 2vw; }\n      .content-card .create-user-container .create-user-image-upload .create-user-image-upload-label .create-user-image-upload-txt {\n        font-family: \"Inter-Regular\";\n        font-size: 1.1rem; }\n    .content-card .create-user-container .create-user-image-upload .create-user-image-upload-btn-container {\n      display: flex;\n      flex-direction: row;\n      align-items: center; }\n      .content-card .create-user-container .create-user-image-upload .create-user-image-upload-btn-container .create-user-image-upload-btn {\n        margin-right: 1vw; }\n      .content-card .create-user-container .create-user-image-upload .create-user-image-upload-btn-container .create-user-image-upload-error-txt {\n        font-family: \"Inter-Regular\";\n        font-size: 1rem;\n        color: rgba(255, 77, 79, 0.8); }\n";
         
     | 
| 
      
 7784 
     | 
    
         
            +
            styleInject(css_248z$a);
         
     | 
| 
       7785 
7785 
     | 
    
         | 
| 
       7786 
7786 
     | 
    
         
             
            var ChangePasswordModel = function (props) {
         
     | 
| 
       7787 
7787 
     | 
    
         
             
                var t = props.t, onPasswordChanged = props.onPasswordChanged, onFieldsChanged = props.onFieldsChanged, onCanceled = props.onCanceled, openModal = props.openModal, errorMsg = props.errorMsg, loadingBtn = props.loadingBtn, themeColor = props.themeColor;
         
     | 
| 
         @@ -8205,8 +8205,8 @@ var AddNewUserComponent = function (props) { 
     | 
|
| 
       8205 
8205 
     | 
    
         
             
                    React.createElement(ChangePasswordModel, { t: t, onPasswordChanged: onPasswordChangeCompleted, onFieldsChanged: onFormsValueChanged, onCanceled: onPasswordChangeCanceled, openModal: openPasswordChangeModal, errorMsg: errorMsg, loadingBtn: isLoading, themeColor: themeColor })));
         
     | 
| 
       8206 
8206 
     | 
    
         
             
            };
         
     | 
| 
       8207 
8207 
     | 
    
         | 
| 
       8208 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       8209 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 8208 
     | 
    
         
            +
            var css_248z$9 = ".user-profile {\n  padding: 0px 50px; }\n  .user-profile .login-language-selection-txt .ant-select {\n    width: 120px; }\n  .user-profile .card-container {\n    margin-bottom: 20px;\n    width: 100%;\n    border-radius: 10px; }\n  .user-profile .mg-left-1 {\n    margin-left: 1rem; }\n  .user-profile .mg-top-1 {\n    margin-top: 1rem; }\n  .user-profile .mg-bottom-1 {\n    margin-bottom: 1rem !important; }\n  .user-profile .profile-img {\n    width: 170px; }\n  .user-profile .company-name {\n    font-size: 16px;\n    line-height: 24px;\n    font-weight: 600;\n    color: rgba(58, 53, 65, 0.8); }\n  .user-profile .btn-danger {\n    color: #ff4d4f !important;\n    border-color: #ff8183 !important; }\n";
         
     | 
| 
      
 8209 
     | 
    
         
            +
            styleInject(css_248z$9);
         
     | 
| 
       8210 
8210 
     | 
    
         | 
| 
       8211 
8211 
     | 
    
         
             
            var UserRoleIcon = function (props) {
         
     | 
| 
       8212 
8212 
     | 
    
         
             
                var role = props.role;
         
     | 
| 
         @@ -8215,8 +8215,8 @@ var UserRoleIcon = function (props) { 
     | 
|
| 
       8215 
8215 
     | 
    
         
             
                    React.createElement("div", null, role === "ViewOnly" ? "Viewer" : role)));
         
     | 
| 
       8216 
8216 
     | 
    
         
             
            };
         
     | 
| 
       8217 
8217 
     | 
    
         | 
| 
       8218 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       8219 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 8218 
     | 
    
         
            +
            var css_248z$8 = ".login-language-selection-container {\n  font-weight: 600;\n  font-size: 14px;\n  line-height: 22px;\n  color: #16b1ff; }\n  .login-language-selection-container .ant-select {\n    width: 183px;\n    text-align: center;\n    color: #16b1ff; }\n    .login-language-selection-container .ant-select .ant-select-arrow {\n      color: #16b1ff; }\n  .login-language-selection-container .ant-select-selector {\n    color: #16b1ff;\n    text-transform: uppercase;\n    border: 1px solid #16b1ff !important;\n    border-radius: 4px !important; }\n  .login-language-selection-container .ant-select-item {\n    font-weight: 600;\n    font-size: 14px;\n    line-height: 22px;\n    color: #16b1ff; }\n  .login-language-selection-container .ant-select-selection-item {\n    color: #16b1ff !important;\n    font-weight: 500; }\n\n.login-language-selection .ant-select-item {\n  font-weight: 400;\n  font-size: 13px;\n  line-height: 22px;\n  color: #16b1ff;\n  text-align: center; }\n\n.login-language-selection .ant-select-item-option .ant-select-item-option-content {\n  color: rgba(58, 53, 65, 0.5); }\n\n.login-language-selection .ant-select-item-option-selected {\n  color: #16b1ff !important;\n  line-height: 15.73px; }\n  .login-language-selection .ant-select-item-option-selected .ant-select-item-option-content {\n    color: #16b1ff; }\n";
         
     | 
| 
      
 8219 
     | 
    
         
            +
            styleInject(css_248z$8);
         
     | 
| 
       8220 
8220 
     | 
    
         | 
| 
       8221 
8221 
     | 
    
         
             
            var LanguageSelection = function (props) {
         
     | 
| 
       8222 
8222 
     | 
    
         
             
                var i18n = props.i18n;
         
     | 
| 
         @@ -8405,8 +8405,8 @@ var UserProfileComponent = function (props) { 
     | 
|
| 
       8405 
8405 
     | 
    
         
             
                                                    : "-")))))))))));
         
     | 
| 
       8406 
8406 
     | 
    
         
             
            };
         
     | 
| 
       8407 
8407 
     | 
    
         | 
| 
       8408 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       8409 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 8408 
     | 
    
         
            +
            var css_248z$7 = ".filter-menu-item .filter-title {\n  margin-bottom: 0.5rem;\n  font-weight: 600; }\n\n.table-row-gray {\n  background-color: #f0f0f0; }\n";
         
     | 
| 
      
 8409 
     | 
    
         
            +
            styleInject(css_248z$7);
         
     | 
| 
       8410 
8410 
     | 
    
         | 
| 
       8411 
8411 
     | 
    
         
             
            var Search = antd.Input.Search;
         
     | 
| 
       8412 
8412 
     | 
    
         
             
            var UserManagementComponent = function (props) {
         
     | 
| 
         @@ -8944,8 +8944,8 @@ var UserManagementComponent = function (props) { 
     | 
|
| 
       8944 
8944 
     | 
    
         
             
                    React.createElement(UserActionConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openDeleteConfirmationModal, errorMsg: errorMsg, loading: loading })));
         
     | 
| 
       8945 
8945 
     | 
    
         
             
            };
         
     | 
| 
       8946 
8946 
     | 
    
         | 
| 
       8947 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       8948 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 8947 
     | 
    
         
            +
            var css_248z$6 = ".steps-actions {\n  text-align: right; }\n\n.ownership-container {\n  padding: 15px 0px; }\n  .ownership-container .label {\n    color: rgba(58, 53, 65, 0.5); }\n\n.separator {\n  padding: 5px;\n  color: #d8d8d8; }\n\n.role-group .ant-col-13 {\n  max-width: 320px; }\n\n.role-group .condition-radio-container {\n  width: 48%;\n  text-align: center; }\n  .role-group .condition-radio-container .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n    color: #ffffff !important;\n    border-color: #9155fd !important;\n    box-shadow: none;\n    max-width: 200px; }\n\n.role-group .ant-radio-button-wrapper::before {\n  background-color: transparent; }\n\n.role-group .anticon {\n  margin-right: 0.5rem; }\n\n.role-group .ant-radio-button-wrapper {\n  border: 1px solid #d9d9d9;\n  color: rgba(140, 140, 140, 0.7) !important;\n  width: 100% !important; }\n\n.role-group .condition-radio {\n  width: 100%;\n  text-transform: uppercase; }\n  .role-group .condition-radio .ant-radio-button-checked {\n    background: #9155fd;\n    color: #ffffff; }\n\n.role-group .role-icons {\n  margin-right: 5px; }\n\n.investment-management .role-icon {\n  padding: 0.5rem 0.6rem; }\n\n.investment-management .ant-tag {\n  border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value='Rejected'] + .ant-checkbox-inner {\n  background-color: rgba(237, 77, 71, 0.6);\n  border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value='Cancelled'] + .ant-checkbox-inner {\n  background-color: rgba(58, 53, 65, 0.4);\n  border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value='Accepted'] + .ant-checkbox-inner {\n  background-color: #16b1ff;\n  border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value='Pending'] + .ant-checkbox-inner {\n  background-color: rgba(118, 195, 39, 0.6);\n  border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value='Recognised'] + .ant-checkbox-inner {\n  background-color: #976ed7;\n  border: none; }\n\n.investment-management .ant-checkbox-checked .ant-checkbox-input[value='NotRecognised'] + .ant-checkbox-inner {\n  background-color: #ffa070;\n  border: none; }\n";
         
     | 
| 
      
 8948 
     | 
    
         
            +
            styleInject(css_248z$6);
         
     | 
| 
       8949 
8949 
     | 
    
         | 
| 
       8950 
8950 
     | 
    
         
             
            var InvestmentCreationComponent = function (props) {
         
     | 
| 
       8951 
8951 
     | 
    
         
             
                var t = props.t, useConnection = props.useConnection, userInfoState = props.userInfoState, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView;
         
     | 
| 
         @@ -10025,8 +10025,8 @@ var InvestmentManagementComponent = function (props) { 
     | 
|
| 
       10025 
10025 
     | 
    
         
             
                        }, actionBtnText: popupInfo.actionBtnText, onFinish: popupInfo === null || popupInfo === void 0 ? void 0 : popupInfo.okAction, subText: "", openModal: modalVisible, icon: popupInfo.icon, title: popupInfo.title, type: popupInfo.type, remarkRequired: popupInfo.remarkRequired, t: t }))));
         
     | 
| 
       10026 
10026 
     | 
    
         
             
            };
         
     | 
| 
       10027 
10027 
     | 
    
         | 
| 
       10028 
     | 
    
         
            -
            var css_248z$ 
     | 
| 
       10029 
     | 
    
         
            -
            styleInject(css_248z$ 
     | 
| 
      
 10028 
     | 
    
         
            +
            var css_248z$5 = ".ndc-management .ant-checkbox-checked .ant-checkbox-input[value='Pending'] + .ant-checkbox-inner {\n  background-color: rgba(118, 195, 39, 0.6);\n  border: none; }\n\n.ndc-management .ant-checkbox-checked .ant-checkbox-input[value='Approved'] + .ant-checkbox-inner {\n  background-color: #16b1ff;\n  border: none; }\n";
         
     | 
| 
      
 10029 
     | 
    
         
            +
            styleInject(css_248z$5);
         
     | 
| 
       10030 
10030 
     | 
    
         | 
| 
       10031 
10031 
     | 
    
         
             
            var NdcActionManagementComponent = function (props) {
         
     | 
| 
       10032 
10032 
     | 
    
         
             
                var t = props.t, useConnection = props.useConnection, useUserContext = props.useUserContext, onNavigateToNdcManagementView = props.onNavigateToNdcManagementView, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView;
         
     | 
| 
         @@ -10406,6 +10406,2923 @@ var NdcActionManagementComponent = function (props) { 
     | 
|
| 
       10406 
10406 
     | 
    
         
             
                                        } })))))));
         
     | 
| 
       10407 
10407 
     | 
    
         
             
            };
         
     | 
| 
       10408 
10408 
     | 
    
         | 
| 
      
 10409 
     | 
    
         
            +
            var css_248z$4 = ".ndc-action-details-container Input {\n  height: 40px; }\n\n.ndc-action-details-container .ant-select-selection-item {\n  color: #949599 !important; }\n\n.ndc-action-details-container .ant-select-dropdown {\n  font-family: \"Inter\";\n  color: #949599 !important; }\n\n.ndc-action-details-container .ant-select-selector {\n  color: #949599 !important; }\n\n.ndc-action-details-container .label-heading {\n  font-family: \"Inter\";\n  font-style: normal;\n  font-weight: 600;\n  font-size: 14px;\n  line-height: 22px;\n  color: rgba(58, 53, 65, 0.5);\n  margin-bottom: 5px; }\n\n.ndc-action-details-container .steps-actions {\n  display: flex;\n  flex-direction: row-reverse; }\n  .ndc-action-details-container .steps-actions .mg-left-1 {\n    margin-left: 1rem; }\n\n.ndc-action-details-container .upload-doc {\n  height: 40px !important;\n  margin-right: 240px; }\n\n.ndc-action-details-container .ant-upload-list-item {\n  border-radius: 5px !important;\n  height: 40px !important; }\n\n.ndc-action-details-container .design-upload-section {\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  align-items: start;\n  width: 100%; }\n  .ndc-action-details-container .design-upload-section .icon-color {\n    color: #16b1ff !important; }\n  .ndc-action-details-container .design-upload-section .ant-upload {\n    width: 20%; }\n  .ndc-action-details-container .design-upload-section .ant-upload-list {\n    align-items: center;\n    justify-content: center;\n    width: 75%; }\n    .ndc-action-details-container .design-upload-section .ant-upload-list .ant-upload-list-item {\n      margin-top: 0; }\n";
         
     | 
| 
      
 10410 
     | 
    
         
            +
            styleInject(css_248z$4);
         
     | 
| 
      
 10411 
     | 
    
         
            +
             
     | 
| 
      
 10412 
     | 
    
         
            +
            var NdcActionDetails = function (props) {
         
     | 
| 
      
 10413 
     | 
    
         
            +
                var isBackBtnVisible = props.isBackBtnVisible, onFormSubmit = props.onFormSubmit, ndcActionDetails = props.ndcActionDetails, t = props.t, programmeDetails = props.programmeDetails, onClickedBackBtn = props.onClickedBackBtn;
         
     | 
| 
      
 10414 
     | 
    
         
            +
                var _a = React.useState(), ndcActionType = _a[0], setNdcActionType = _a[1];
         
     | 
| 
      
 10415 
     | 
    
         
            +
                var _b = React.useState(), mitigationType = _b[0], setmitigationType = _b[1];
         
     | 
| 
      
 10416 
     | 
    
         
            +
                var _c = React.useState(""), sector = _c[0], setSector = _c[1];
         
     | 
| 
      
 10417 
     | 
    
         
            +
                var _d = React.useState(ndcActionTypeList), ndcActionTypeListFiltered = _d[0]; _d[1];
         
     | 
| 
      
 10418 
     | 
    
         
            +
                var form = antd.Form.useForm()[0];
         
     | 
| 
      
 10419 
     | 
    
         
            +
                var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
         
     | 
| 
      
 10420 
     | 
    
         
            +
                    ? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
         
     | 
| 
      
 10421 
     | 
    
         
            +
                    : 5000000;
         
     | 
| 
      
 10422 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 10423 
     | 
    
         
            +
                    if (programmeDetails) {
         
     | 
| 
      
 10424 
     | 
    
         
            +
                        setSector(programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector);
         
     | 
| 
      
 10425 
     | 
    
         
            +
                    }
         
     | 
| 
      
 10426 
     | 
    
         
            +
                }, [programmeDetails]);
         
     | 
| 
      
 10427 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 10428 
     | 
    
         
            +
                    var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
         
     | 
| 
      
 10429 
     | 
    
         
            +
                    if (ndcActionDetails) {
         
     | 
| 
      
 10430 
     | 
    
         
            +
                        if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) {
         
     | 
| 
      
 10431 
     | 
    
         
            +
                            setNdcActionType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action);
         
     | 
| 
      
 10432 
     | 
    
         
            +
                        }
         
     | 
| 
      
 10433 
     | 
    
         
            +
                        if (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) {
         
     | 
| 
      
 10434 
     | 
    
         
            +
                            setmitigationType(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation);
         
     | 
| 
      
 10435 
     | 
    
         
            +
                        }
         
     | 
| 
      
 10436 
     | 
    
         
            +
                        form.setFieldsValue({
         
     | 
| 
      
 10437 
     | 
    
         
            +
                            ndcActionType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action,
         
     | 
| 
      
 10438 
     | 
    
         
            +
                            mitigationType: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation,
         
     | 
| 
      
 10439 
     | 
    
         
            +
                            energyGeneration: (_a = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _a === void 0 ? void 0 : _a.energyGeneration,
         
     | 
| 
      
 10440 
     | 
    
         
            +
                            energyGenerationUnit: (_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _b === void 0 ? void 0 : _b.energyGenerationUnit,
         
     | 
| 
      
 10441 
     | 
    
         
            +
                            consumerGroup: (_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _c === void 0 ? void 0 : _c.consumerGroup,
         
     | 
| 
      
 10442 
     | 
    
         
            +
                            eligibleLandArea: (_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _d === void 0 ? void 0 : _d.landArea,
         
     | 
| 
      
 10443 
     | 
    
         
            +
                            landAreaUnit: (_e = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _e === void 0 ? void 0 : _e.landAreaUnit,
         
     | 
| 
      
 10444 
     | 
    
         
            +
                            implementingAgency: (_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.adaptationProperties) === null || _f === void 0 ? void 0 : _f.implementingAgency,
         
     | 
| 
      
 10445 
     | 
    
         
            +
                            nationalPlanObjectives: (_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.adaptationProperties) === null || _g === void 0 ? void 0 : _g.nationalPlanObjectives,
         
     | 
| 
      
 10446 
     | 
    
         
            +
                            nationalPlanCoverage: (_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.adaptationProperties) === null || _h === void 0 ? void 0 : _h.nationalPlanCoverage,
         
     | 
| 
      
 10447 
     | 
    
         
            +
                            EnablementTitle: (_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.enablementProperties) === null || _j === void 0 ? void 0 : _j.title,
         
     | 
| 
      
 10448 
     | 
    
         
            +
                            EnablementReport: ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.enablementReportData,
         
     | 
| 
      
 10449 
     | 
    
         
            +
                            userEstimatedCredits: (_k = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.ndcFinancing) === null || _k === void 0 ? void 0 : _k.userEstimatedCredits,
         
     | 
| 
      
 10450 
     | 
    
         
            +
                            methodologyEstimatedCredits: 0,
         
     | 
| 
      
 10451 
     | 
    
         
            +
                        });
         
     | 
| 
      
 10452 
     | 
    
         
            +
                    }
         
     | 
| 
      
 10453 
     | 
    
         
            +
                    else {
         
     | 
| 
      
 10454 
     | 
    
         
            +
                        form.setFieldsValue({
         
     | 
| 
      
 10455 
     | 
    
         
            +
                            methodologyEstimatedCredits: 0,
         
     | 
| 
      
 10456 
     | 
    
         
            +
                        });
         
     | 
| 
      
 10457 
     | 
    
         
            +
                    }
         
     | 
| 
      
 10458 
     | 
    
         
            +
                }, []);
         
     | 
| 
      
 10459 
     | 
    
         
            +
                var implementingAgencyList = [
         
     | 
| 
      
 10460 
     | 
    
         
            +
                    "Ministry of Agriculture, Water and Forestry (MAWF)",
         
     | 
| 
      
 10461 
     | 
    
         
            +
                    "Ministry of Defence (MoD)",
         
     | 
| 
      
 10462 
     | 
    
         
            +
                    "Ministry of Education, Arts and Culture (MoE)",
         
     | 
| 
      
 10463 
     | 
    
         
            +
                    "Ministry of Environment, Forestry and Tourism (MEFT)",
         
     | 
| 
      
 10464 
     | 
    
         
            +
                    "Ministry of Finance (MoF)",
         
     | 
| 
      
 10465 
     | 
    
         
            +
                    "Ministry of Fisheries and Marine Resources (MFMR)",
         
     | 
| 
      
 10466 
     | 
    
         
            +
                    "Ministry of Health and Social Services (MHSS)",
         
     | 
| 
      
 10467 
     | 
    
         
            +
                    "Ministry of Higher Education, Training and Innovation (MHETI)",
         
     | 
| 
      
 10468 
     | 
    
         
            +
                    "Ministry of Home Affairs, Immigration, Safety and Security (MHAISS)",
         
     | 
| 
      
 10469 
     | 
    
         
            +
                    "Ministry of Industrialisation and Trade (MIT)",
         
     | 
| 
      
 10470 
     | 
    
         
            +
                    "Ministry of International Relations and Cooperation (MIRCo)",
         
     | 
| 
      
 10471 
     | 
    
         
            +
                    "Ministry of Information and Communication Technology (MICT)",
         
     | 
| 
      
 10472 
     | 
    
         
            +
                    "Ministry of Justice (MoJ)",
         
     | 
| 
      
 10473 
     | 
    
         
            +
                    "Ministry of Labour, Industrial Relations and Employment Creation (MOL)",
         
     | 
| 
      
 10474 
     | 
    
         
            +
                    "Ministry of Mines and Energy (MME)",
         
     | 
| 
      
 10475 
     | 
    
         
            +
                    "Ministry of Public Enterprises (MPE)",
         
     | 
| 
      
 10476 
     | 
    
         
            +
                    "Ministry of Sport, Youth and National Service (MSYNS)",
         
     | 
| 
      
 10477 
     | 
    
         
            +
                    "Ministry of Works and Transport (MoW)",
         
     | 
| 
      
 10478 
     | 
    
         
            +
                    "Ministry of Urban and Rural Development (MURD)",
         
     | 
| 
      
 10479 
     | 
    
         
            +
                ];
         
     | 
| 
      
 10480 
     | 
    
         
            +
                var nationalPlanObjectives = [
         
     | 
| 
      
 10481 
     | 
    
         
            +
                    " Enhance value addition in key growth opportunities",
         
     | 
| 
      
 10482 
     | 
    
         
            +
                    "Strengthen the private sector to create jobs",
         
     | 
| 
      
 10483 
     | 
    
         
            +
                    "Consolidate and increase the stock and quality of productive infrastructure",
         
     | 
| 
      
 10484 
     | 
    
         
            +
                    "Enhance the productivity and social wellbeing of the population",
         
     | 
| 
      
 10485 
     | 
    
         
            +
                    "Strengthen the role of the state in guiding and facilitating development",
         
     | 
| 
      
 10486 
     | 
    
         
            +
                ];
         
     | 
| 
      
 10487 
     | 
    
         
            +
                var nationalPlanCoverageList = [
         
     | 
| 
      
 10488 
     | 
    
         
            +
                    "Agro-Industrialization",
         
     | 
| 
      
 10489 
     | 
    
         
            +
                    "Mineral-based Industrialization",
         
     | 
| 
      
 10490 
     | 
    
         
            +
                    "Petroleum Development",
         
     | 
| 
      
 10491 
     | 
    
         
            +
                    "Tourism Development",
         
     | 
| 
      
 10492 
     | 
    
         
            +
                    "Water, Climate Change and ENR Management",
         
     | 
| 
      
 10493 
     | 
    
         
            +
                    "Private Sector Development",
         
     | 
| 
      
 10494 
     | 
    
         
            +
                    "Manufacturing",
         
     | 
| 
      
 10495 
     | 
    
         
            +
                    "Digital Transformation ",
         
     | 
| 
      
 10496 
     | 
    
         
            +
                    "Integrated Transport Infrastructure and Services",
         
     | 
| 
      
 10497 
     | 
    
         
            +
                    "Sustainable Energy Development",
         
     | 
| 
      
 10498 
     | 
    
         
            +
                    "Sustainable Urban and Housing Development",
         
     | 
| 
      
 10499 
     | 
    
         
            +
                    "Human Capital Development",
         
     | 
| 
      
 10500 
     | 
    
         
            +
                    "Community Mobilization and Mindset Change",
         
     | 
| 
      
 10501 
     | 
    
         
            +
                    "Innovation, Technology Development and Transfer",
         
     | 
| 
      
 10502 
     | 
    
         
            +
                    "Regional Development",
         
     | 
| 
      
 10503 
     | 
    
         
            +
                    "Governance and Security",
         
     | 
| 
      
 10504 
     | 
    
         
            +
                    "Public Sector Transformation",
         
     | 
| 
      
 10505 
     | 
    
         
            +
                    "Development Plan Implementation",
         
     | 
| 
      
 10506 
     | 
    
         
            +
                    "Climate Hazard ",
         
     | 
| 
      
 10507 
     | 
    
         
            +
                ];
         
     | 
| 
      
 10508 
     | 
    
         
            +
                var calculateMethodologyEstimatedCredits = function () {
         
     | 
| 
      
 10509 
     | 
    
         
            +
                    try {
         
     | 
| 
      
 10510 
     | 
    
         
            +
                        var creditRequest = {};
         
     | 
| 
      
 10511 
     | 
    
         
            +
                        var formValues = form.getFieldsValue();
         
     | 
| 
      
 10512 
     | 
    
         
            +
                        if (formValues.ndcActionType === exports.NdcActionTypes.Mitigation ||
         
     | 
| 
      
 10513 
     | 
    
         
            +
                            formValues.ndcActionType === exports.NdcActionTypes.CrossCutting) {
         
     | 
| 
      
 10514 
     | 
    
         
            +
                            if (formValues.mitigationType === exports.MitigationTypes.AGRICULTURE) {
         
     | 
| 
      
 10515 
     | 
    
         
            +
                                creditRequest = new cjs.AgricultureCreationRequest();
         
     | 
| 
      
 10516 
     | 
    
         
            +
                                creditRequest.landArea = formValues.eligibleLandArea;
         
     | 
| 
      
 10517 
     | 
    
         
            +
                                creditRequest.landAreaUnit = formValues.landAreaUnit;
         
     | 
| 
      
 10518 
     | 
    
         
            +
                                creditRequest.duration =
         
     | 
| 
      
 10519 
     | 
    
         
            +
                                    programmeDetails.endTime - programmeDetails.startTime;
         
     | 
| 
      
 10520 
     | 
    
         
            +
                                creditRequest.durationUnit = "s";
         
     | 
| 
      
 10521 
     | 
    
         
            +
                            }
         
     | 
| 
      
 10522 
     | 
    
         
            +
                            else if (formValues.mitigationType === exports.MitigationTypes.SOLAR) {
         
     | 
| 
      
 10523 
     | 
    
         
            +
                                creditRequest = new cjs.SolarCreationRequest();
         
     | 
| 
      
 10524 
     | 
    
         
            +
                                creditRequest.buildingType = formValues.consumerGroup;
         
     | 
| 
      
 10525 
     | 
    
         
            +
                                creditRequest.energyGeneration = formValues.energyGeneration;
         
     | 
| 
      
 10526 
     | 
    
         
            +
                                creditRequest.energyGenerationUnit = formValues.energyGenerationUnit;
         
     | 
| 
      
 10527 
     | 
    
         
            +
                            }
         
     | 
| 
      
 10528 
     | 
    
         
            +
                        }
         
     | 
| 
      
 10529 
     | 
    
         
            +
                        var creditResponse = cjs.calculateCredit(creditRequest);
         
     | 
| 
      
 10530 
     | 
    
         
            +
                        if (!isNaN(creditResponse)) {
         
     | 
| 
      
 10531 
     | 
    
         
            +
                            form.setFieldsValue({
         
     | 
| 
      
 10532 
     | 
    
         
            +
                                methodologyEstimatedCredits: addCommSepRound(creditResponse),
         
     | 
| 
      
 10533 
     | 
    
         
            +
                            });
         
     | 
| 
      
 10534 
     | 
    
         
            +
                        }
         
     | 
| 
      
 10535 
     | 
    
         
            +
                        else {
         
     | 
| 
      
 10536 
     | 
    
         
            +
                            form.setFieldsValue({
         
     | 
| 
      
 10537 
     | 
    
         
            +
                                methodologyEstimatedCredits: 0,
         
     | 
| 
      
 10538 
     | 
    
         
            +
                            });
         
     | 
| 
      
 10539 
     | 
    
         
            +
                        }
         
     | 
| 
      
 10540 
     | 
    
         
            +
                    }
         
     | 
| 
      
 10541 
     | 
    
         
            +
                    catch (exception) {
         
     | 
| 
      
 10542 
     | 
    
         
            +
                        form.setFieldsValue({
         
     | 
| 
      
 10543 
     | 
    
         
            +
                            methodologyEstimatedCredits: 0,
         
     | 
| 
      
 10544 
     | 
    
         
            +
                        });
         
     | 
| 
      
 10545 
     | 
    
         
            +
                    }
         
     | 
| 
      
 10546 
     | 
    
         
            +
                };
         
     | 
| 
      
 10547 
     | 
    
         
            +
                var handleNdcActionChange = function (selectedNdcType) {
         
     | 
| 
      
 10548 
     | 
    
         
            +
                    setNdcActionType(selectedNdcType);
         
     | 
| 
      
 10549 
     | 
    
         
            +
                    calculateMethodologyEstimatedCredits();
         
     | 
| 
      
 10550 
     | 
    
         
            +
                };
         
     | 
| 
      
 10551 
     | 
    
         
            +
                var handleMitigationTypeChange = function (selectedMitigationType) {
         
     | 
| 
      
 10552 
     | 
    
         
            +
                    setmitigationType(selectedMitigationType);
         
     | 
| 
      
 10553 
     | 
    
         
            +
                    calculateMethodologyEstimatedCredits();
         
     | 
| 
      
 10554 
     | 
    
         
            +
                };
         
     | 
| 
      
 10555 
     | 
    
         
            +
                var onNdcActionDetailsFormSubmit = function (ndcActionFormvalues) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 10556 
     | 
    
         
            +
                    var ndcActionDetailObj, enablementReport, enablementReportData;
         
     | 
| 
      
 10557 
     | 
    
         
            +
                    var _a;
         
     | 
| 
      
 10558 
     | 
    
         
            +
                    return __generator(this, function (_b) {
         
     | 
| 
      
 10559 
     | 
    
         
            +
                        switch (_b.label) {
         
     | 
| 
      
 10560 
     | 
    
         
            +
                            case 0:
         
     | 
| 
      
 10561 
     | 
    
         
            +
                                ndcActionDetailObj = {};
         
     | 
| 
      
 10562 
     | 
    
         
            +
                                ndcActionDetailObj.action = ndcActionFormvalues.ndcActionType;
         
     | 
| 
      
 10563 
     | 
    
         
            +
                                ndcActionDetailObj.methodology = t("ndcAction:goldStandard");
         
     | 
| 
      
 10564 
     | 
    
         
            +
                                if (ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.Mitigation ||
         
     | 
| 
      
 10565 
     | 
    
         
            +
                                    ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.CrossCutting) {
         
     | 
| 
      
 10566 
     | 
    
         
            +
                                    ndcActionDetailObj.typeOfMitigation = ndcActionFormvalues.mitigationType;
         
     | 
| 
      
 10567 
     | 
    
         
            +
                                    if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE) {
         
     | 
| 
      
 10568 
     | 
    
         
            +
                                        ndcActionDetailObj.agricultureProperties = {
         
     | 
| 
      
 10569 
     | 
    
         
            +
                                            landArea: ndcActionFormvalues.eligibleLandArea
         
     | 
| 
      
 10570 
     | 
    
         
            +
                                                ? ndcActionFormvalues.eligibleLandArea
         
     | 
| 
      
 10571 
     | 
    
         
            +
                                                : 0,
         
     | 
| 
      
 10572 
     | 
    
         
            +
                                            landAreaUnit: ndcActionFormvalues.landAreaUnit,
         
     | 
| 
      
 10573 
     | 
    
         
            +
                                        };
         
     | 
| 
      
 10574 
     | 
    
         
            +
                                    }
         
     | 
| 
      
 10575 
     | 
    
         
            +
                                    else if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR) {
         
     | 
| 
      
 10576 
     | 
    
         
            +
                                        ndcActionDetailObj.solarProperties = {
         
     | 
| 
      
 10577 
     | 
    
         
            +
                                            energyGeneration: ndcActionFormvalues.energyGeneration
         
     | 
| 
      
 10578 
     | 
    
         
            +
                                                ? ndcActionFormvalues.energyGeneration
         
     | 
| 
      
 10579 
     | 
    
         
            +
                                                : 0,
         
     | 
| 
      
 10580 
     | 
    
         
            +
                                            energyGenerationUnit: ndcActionFormvalues.energyGenerationUnit,
         
     | 
| 
      
 10581 
     | 
    
         
            +
                                            consumerGroup: ndcActionFormvalues.consumerGroup,
         
     | 
| 
      
 10582 
     | 
    
         
            +
                                        };
         
     | 
| 
      
 10583 
     | 
    
         
            +
                                    }
         
     | 
| 
      
 10584 
     | 
    
         
            +
                                    if (ndcActionFormvalues.mitigationType === exports.MitigationTypes.SOLAR ||
         
     | 
| 
      
 10585 
     | 
    
         
            +
                                        ndcActionFormvalues.mitigationType === exports.MitigationTypes.AGRICULTURE) {
         
     | 
| 
      
 10586 
     | 
    
         
            +
                                        if (parseFloat(ndcActionFormvalues.methodologyEstimatedCredits) <= 0) {
         
     | 
| 
      
 10587 
     | 
    
         
            +
                                            antd.message.open({
         
     | 
| 
      
 10588 
     | 
    
         
            +
                                                type: "error",
         
     | 
| 
      
 10589 
     | 
    
         
            +
                                                content: t("methodologyEstimatedCreditsInvalid"),
         
     | 
| 
      
 10590 
     | 
    
         
            +
                                                duration: 4,
         
     | 
| 
      
 10591 
     | 
    
         
            +
                                                style: { textAlign: "right", marginRight: 15, marginTop: 10 },
         
     | 
| 
      
 10592 
     | 
    
         
            +
                                            });
         
     | 
| 
      
 10593 
     | 
    
         
            +
                                            return [2 /*return*/];
         
     | 
| 
      
 10594 
     | 
    
         
            +
                                        }
         
     | 
| 
      
 10595 
     | 
    
         
            +
                                    }
         
     | 
| 
      
 10596 
     | 
    
         
            +
                                    if (ndcActionFormvalues.userEstimatedCredits > programmeDetails.creditEst) {
         
     | 
| 
      
 10597 
     | 
    
         
            +
                                        antd.message.open({
         
     | 
| 
      
 10598 
     | 
    
         
            +
                                            type: "error",
         
     | 
| 
      
 10599 
     | 
    
         
            +
                                            content: t("userEstimatedCreditsInvalid"),
         
     | 
| 
      
 10600 
     | 
    
         
            +
                                            duration: 4,
         
     | 
| 
      
 10601 
     | 
    
         
            +
                                            style: { textAlign: "right", marginRight: 15, marginTop: 10 },
         
     | 
| 
      
 10602 
     | 
    
         
            +
                                        });
         
     | 
| 
      
 10603 
     | 
    
         
            +
                                        return [2 /*return*/];
         
     | 
| 
      
 10604 
     | 
    
         
            +
                                    }
         
     | 
| 
      
 10605 
     | 
    
         
            +
                                }
         
     | 
| 
      
 10606 
     | 
    
         
            +
                                if (ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.Adaptation ||
         
     | 
| 
      
 10607 
     | 
    
         
            +
                                    ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.CrossCutting) {
         
     | 
| 
      
 10608 
     | 
    
         
            +
                                    ndcActionDetailObj.adaptationProperties = {
         
     | 
| 
      
 10609 
     | 
    
         
            +
                                        implementingAgency: ndcActionFormvalues.implementingAgency,
         
     | 
| 
      
 10610 
     | 
    
         
            +
                                        nationalPlanObjectives: ndcActionFormvalues.nationalPlanObjectives,
         
     | 
| 
      
 10611 
     | 
    
         
            +
                                        nationalPlanCoverage: ndcActionFormvalues.nationalPlanCoverage,
         
     | 
| 
      
 10612 
     | 
    
         
            +
                                    };
         
     | 
| 
      
 10613 
     | 
    
         
            +
                                }
         
     | 
| 
      
 10614 
     | 
    
         
            +
                                if (!(ndcActionFormvalues.ndcActionType === exports.NdcActionTypes.Enablement)) return [3 /*break*/, 3];
         
     | 
| 
      
 10615 
     | 
    
         
            +
                                ndcActionDetailObj.enablementProperties = {
         
     | 
| 
      
 10616 
     | 
    
         
            +
                                    title: ndcActionFormvalues.EnablementTitle,
         
     | 
| 
      
 10617 
     | 
    
         
            +
                                };
         
     | 
| 
      
 10618 
     | 
    
         
            +
                                if (!(ndcActionFormvalues.EnablementReport &&
         
     | 
| 
      
 10619 
     | 
    
         
            +
                                    ndcActionFormvalues.EnablementReport.length > 0)) return [3 /*break*/, 2];
         
     | 
| 
      
 10620 
     | 
    
         
            +
                                return [4 /*yield*/, getBase64((_a = ndcActionFormvalues.EnablementReport[0]) === null || _a === void 0 ? void 0 : _a.originFileObj)];
         
     | 
| 
      
 10621 
     | 
    
         
            +
                            case 1:
         
     | 
| 
      
 10622 
     | 
    
         
            +
                                enablementReport = _b.sent();
         
     | 
| 
      
 10623 
     | 
    
         
            +
                                enablementReportData = enablementReport.split(",");
         
     | 
| 
      
 10624 
     | 
    
         
            +
                                ndcActionDetailObj.enablementProperties.report =
         
     | 
| 
      
 10625 
     | 
    
         
            +
                                    enablementReportData[1];
         
     | 
| 
      
 10626 
     | 
    
         
            +
                                _b.label = 2;
         
     | 
| 
      
 10627 
     | 
    
         
            +
                            case 2:
         
     | 
| 
      
 10628 
     | 
    
         
            +
                                ndcActionDetailObj.enablementReportData =
         
     | 
| 
      
 10629 
     | 
    
         
            +
                                    ndcActionFormvalues.EnablementReport;
         
     | 
| 
      
 10630 
     | 
    
         
            +
                                _b.label = 3;
         
     | 
| 
      
 10631 
     | 
    
         
            +
                            case 3:
         
     | 
| 
      
 10632 
     | 
    
         
            +
                                ndcActionDetailObj.ndcFinancing = {
         
     | 
| 
      
 10633 
     | 
    
         
            +
                                    userEstimatedCredits: ndcActionFormvalues.userEstimatedCredits
         
     | 
| 
      
 10634 
     | 
    
         
            +
                                        ? ndcActionFormvalues.userEstimatedCredits
         
     | 
| 
      
 10635 
     | 
    
         
            +
                                        : 0,
         
     | 
| 
      
 10636 
     | 
    
         
            +
                                    systemEstimatedCredits: Number(ndcActionFormvalues.methodologyEstimatedCredits),
         
     | 
| 
      
 10637 
     | 
    
         
            +
                                };
         
     | 
| 
      
 10638 
     | 
    
         
            +
                                onFormSubmit(ndcActionDetailObj);
         
     | 
| 
      
 10639 
     | 
    
         
            +
                                return [2 /*return*/];
         
     | 
| 
      
 10640 
     | 
    
         
            +
                        }
         
     | 
| 
      
 10641 
     | 
    
         
            +
                    });
         
     | 
| 
      
 10642 
     | 
    
         
            +
                }); };
         
     | 
| 
      
 10643 
     | 
    
         
            +
                var normFile = function (e) {
         
     | 
| 
      
 10644 
     | 
    
         
            +
                    if (Array.isArray(e)) {
         
     | 
| 
      
 10645 
     | 
    
         
            +
                        return e;
         
     | 
| 
      
 10646 
     | 
    
         
            +
                    }
         
     | 
| 
      
 10647 
     | 
    
         
            +
                    return e === null || e === void 0 ? void 0 : e.fileList;
         
     | 
| 
      
 10648 
     | 
    
         
            +
                };
         
     | 
| 
      
 10649 
     | 
    
         
            +
                return (React.createElement("div", { className: "ndc-action-details-container" },
         
     | 
| 
      
 10650 
     | 
    
         
            +
                    React.createElement(antd.Form, { name: "ndcActionDetails", layout: "vertical", requiredMark: true, onFinish: onNdcActionDetailsFormSubmit, form: form },
         
     | 
| 
      
 10651 
     | 
    
         
            +
                        React.createElement(antd.Row, { justify: "start", align: "middle" },
         
     | 
| 
      
 10652 
     | 
    
         
            +
                            React.createElement(antd.Col, null,
         
     | 
| 
      
 10653 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { label: t("ndcAction:ndcAction"), name: "ndcActionType", rules: [
         
     | 
| 
      
 10654 
     | 
    
         
            +
                                        {
         
     | 
| 
      
 10655 
     | 
    
         
            +
                                            required: true,
         
     | 
| 
      
 10656 
     | 
    
         
            +
                                            message: "".concat(t("ndcAction:ndcAction"), " ").concat(t("ndcAction:isRequired")),
         
     | 
| 
      
 10657 
     | 
    
         
            +
                                        },
         
     | 
| 
      
 10658 
     | 
    
         
            +
                                    ] },
         
     | 
| 
      
 10659 
     | 
    
         
            +
                                    React.createElement(antd.Select, { size: "large", onChange: handleNdcActionChange, style: {
         
     | 
| 
      
 10660 
     | 
    
         
            +
                                            width: "249px",
         
     | 
| 
      
 10661 
     | 
    
         
            +
                                            borderRadius: "4px",
         
     | 
| 
      
 10662 
     | 
    
         
            +
                                        }, dropdownStyle: { color: "red" }, options: ndcActionTypeListFiltered }))),
         
     | 
| 
      
 10663 
     | 
    
         
            +
                            React.createElement(antd.Col, { style: { marginLeft: "38px" } },
         
     | 
| 
      
 10664 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { label: t("ndcAction:methodology"), name: "methodology" },
         
     | 
| 
      
 10665 
     | 
    
         
            +
                                    React.createElement("span", { style: {
         
     | 
| 
      
 10666 
     | 
    
         
            +
                                            display: "inline-block",
         
     | 
| 
      
 10667 
     | 
    
         
            +
                                            border: "1px solid #D9D9D9",
         
     | 
| 
      
 10668 
     | 
    
         
            +
                                            width: "154px",
         
     | 
| 
      
 10669 
     | 
    
         
            +
                                            height: "38px",
         
     | 
| 
      
 10670 
     | 
    
         
            +
                                            borderRadius: "4px",
         
     | 
| 
      
 10671 
     | 
    
         
            +
                                            padding: "7px 8px",
         
     | 
| 
      
 10672 
     | 
    
         
            +
                                            fontSize: "14px",
         
     | 
| 
      
 10673 
     | 
    
         
            +
                                            backgroundColor: "#F0F0F0",
         
     | 
| 
      
 10674 
     | 
    
         
            +
                                            color: "#8C8C8C",
         
     | 
| 
      
 10675 
     | 
    
         
            +
                                        } },
         
     | 
| 
      
 10676 
     | 
    
         
            +
                                        " ",
         
     | 
| 
      
 10677 
     | 
    
         
            +
                                        t("ndcAction:goldStandard"))))),
         
     | 
| 
      
 10678 
     | 
    
         
            +
                        ndcActionType === exports.NdcActionTypes.CrossCutting && (React.createElement(antd.Row, null,
         
     | 
| 
      
 10679 
     | 
    
         
            +
                            React.createElement("label", { className: "label-heading" }, t("ndcAction:mitigation")))),
         
     | 
| 
      
 10680 
     | 
    
         
            +
                        (ndcActionType === exports.NdcActionTypes.Mitigation ||
         
     | 
| 
      
 10681 
     | 
    
         
            +
                            ndcActionType === exports.NdcActionTypes.CrossCutting) && (React.createElement(antd.Row, { justify: "start", align: "middle" },
         
     | 
| 
      
 10682 
     | 
    
         
            +
                            React.createElement(antd.Form.Item, { label: t("ndcAction:mitigationType"), name: "mitigationType", rules: [
         
     | 
| 
      
 10683 
     | 
    
         
            +
                                    {
         
     | 
| 
      
 10684 
     | 
    
         
            +
                                        required: true,
         
     | 
| 
      
 10685 
     | 
    
         
            +
                                        message: "".concat(t("ndcAction:mitigationType"), " ").concat(t("ndcAction:isRequired")),
         
     | 
| 
      
 10686 
     | 
    
         
            +
                                    },
         
     | 
| 
      
 10687 
     | 
    
         
            +
                                ] },
         
     | 
| 
      
 10688 
     | 
    
         
            +
                                React.createElement(antd.Select, { size: "large", onChange: handleMitigationTypeChange, style: {
         
     | 
| 
      
 10689 
     | 
    
         
            +
                                        width: "249px",
         
     | 
| 
      
 10690 
     | 
    
         
            +
                                        borderRadius: "4px",
         
     | 
| 
      
 10691 
     | 
    
         
            +
                                    }, options: (programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === exports.Sector.Health ||
         
     | 
| 
      
 10692 
     | 
    
         
            +
                                        (programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === exports.Sector.Education ||
         
     | 
| 
      
 10693 
     | 
    
         
            +
                                        (programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector) === exports.Sector.Hospitality
         
     | 
| 
      
 10694 
     | 
    
         
            +
                                        ? mitigationTypeList
         
     | 
| 
      
 10695 
     | 
    
         
            +
                                        : sectorMitigationTypesListMapped[sector] })))),
         
     | 
| 
      
 10696 
     | 
    
         
            +
                        (ndcActionType === exports.NdcActionTypes.Mitigation ||
         
     | 
| 
      
 10697 
     | 
    
         
            +
                            ndcActionType === exports.NdcActionTypes.CrossCutting) &&
         
     | 
| 
      
 10698 
     | 
    
         
            +
                            mitigationType === exports.MitigationTypes.SOLAR && (React.createElement(React.Fragment, null,
         
     | 
| 
      
 10699 
     | 
    
         
            +
                            React.createElement(antd.Row, { justify: "start", align: "middle" },
         
     | 
| 
      
 10700 
     | 
    
         
            +
                                React.createElement(antd.Col, null,
         
     | 
| 
      
 10701 
     | 
    
         
            +
                                    React.createElement(antd.Form.Item, { label: t("ndcAction:energyGeneration"), rules: [
         
     | 
| 
      
 10702 
     | 
    
         
            +
                                            {
         
     | 
| 
      
 10703 
     | 
    
         
            +
                                                required: true,
         
     | 
| 
      
 10704 
     | 
    
         
            +
                                                message: "",
         
     | 
| 
      
 10705 
     | 
    
         
            +
                                            },
         
     | 
| 
      
 10706 
     | 
    
         
            +
                                            {
         
     | 
| 
      
 10707 
     | 
    
         
            +
                                                validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 10708 
     | 
    
         
            +
                                                    return __generator(this, function (_a) {
         
     | 
| 
      
 10709 
     | 
    
         
            +
                                                        if (String(value).trim() === "" ||
         
     | 
| 
      
 10710 
     | 
    
         
            +
                                                            String(value).trim() === undefined ||
         
     | 
| 
      
 10711 
     | 
    
         
            +
                                                            value === null ||
         
     | 
| 
      
 10712 
     | 
    
         
            +
                                                            value === undefined) {
         
     | 
| 
      
 10713 
     | 
    
         
            +
                                                            throw new Error("".concat(t("ndcAction:energyGeneration"), " ").concat(t("ndcAction:isRequired")));
         
     | 
| 
      
 10714 
     | 
    
         
            +
                                                        }
         
     | 
| 
      
 10715 
     | 
    
         
            +
                                                        return [2 /*return*/];
         
     | 
| 
      
 10716 
     | 
    
         
            +
                                                    });
         
     | 
| 
      
 10717 
     | 
    
         
            +
                                                }); },
         
     | 
| 
      
 10718 
     | 
    
         
            +
                                            },
         
     | 
| 
      
 10719 
     | 
    
         
            +
                                        ], name: "energyGeneration" },
         
     | 
| 
      
 10720 
     | 
    
         
            +
                                        React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits }))),
         
     | 
| 
      
 10721 
     | 
    
         
            +
                                React.createElement(antd.Col, { style: { marginLeft: "38px" } },
         
     | 
| 
      
 10722 
     | 
    
         
            +
                                    React.createElement(antd.Form.Item, { label: t("ndcAction:energyGenerationUnit"), name: "energyGenerationUnit", rules: [
         
     | 
| 
      
 10723 
     | 
    
         
            +
                                            {
         
     | 
| 
      
 10724 
     | 
    
         
            +
                                                required: true,
         
     | 
| 
      
 10725 
     | 
    
         
            +
                                                message: "".concat(t("ndcAction:energyGenerationUnit"), " ").concat(t("ndcAction:isRequired")),
         
     | 
| 
      
 10726 
     | 
    
         
            +
                                            },
         
     | 
| 
      
 10727 
     | 
    
         
            +
                                        ] },
         
     | 
| 
      
 10728 
     | 
    
         
            +
                                        React.createElement(antd.Select, { size: "large", style: { width: 442 }, options: energyGenerationUnitList, onChange: calculateMethodologyEstimatedCredits })))),
         
     | 
| 
      
 10729 
     | 
    
         
            +
                            React.createElement(antd.Form.Item, { label: t("ndcAction:consumerGroup"), name: "consumerGroup", rules: [
         
     | 
| 
      
 10730 
     | 
    
         
            +
                                    {
         
     | 
| 
      
 10731 
     | 
    
         
            +
                                        required: true,
         
     | 
| 
      
 10732 
     | 
    
         
            +
                                        message: "".concat(t("ndcAction:consumerGroup"), " ").concat(t("ndcAction:isRequired")),
         
     | 
| 
      
 10733 
     | 
    
         
            +
                                    },
         
     | 
| 
      
 10734 
     | 
    
         
            +
                                ] },
         
     | 
| 
      
 10735 
     | 
    
         
            +
                                React.createElement(antd.Select, { size: "large", style: { width: 442 }, onChange: calculateMethodologyEstimatedCredits, options: consumerGroupList })))),
         
     | 
| 
      
 10736 
     | 
    
         
            +
                        (ndcActionType === exports.NdcActionTypes.Mitigation ||
         
     | 
| 
      
 10737 
     | 
    
         
            +
                            ndcActionType === exports.NdcActionTypes.CrossCutting) &&
         
     | 
| 
      
 10738 
     | 
    
         
            +
                            mitigationType === exports.MitigationTypes.AGRICULTURE && (React.createElement(antd.Row, { justify: "start", align: "middle" },
         
     | 
| 
      
 10739 
     | 
    
         
            +
                            React.createElement(antd.Col, null,
         
     | 
| 
      
 10740 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { label: t("ndcAction:eligibleLandArea"), name: "eligibleLandArea", rules: [
         
     | 
| 
      
 10741 
     | 
    
         
            +
                                        {
         
     | 
| 
      
 10742 
     | 
    
         
            +
                                            required: true,
         
     | 
| 
      
 10743 
     | 
    
         
            +
                                            message: "",
         
     | 
| 
      
 10744 
     | 
    
         
            +
                                        },
         
     | 
| 
      
 10745 
     | 
    
         
            +
                                        {
         
     | 
| 
      
 10746 
     | 
    
         
            +
                                            validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 10747 
     | 
    
         
            +
                                                return __generator(this, function (_a) {
         
     | 
| 
      
 10748 
     | 
    
         
            +
                                                    if (String(value).trim() === "" ||
         
     | 
| 
      
 10749 
     | 
    
         
            +
                                                        String(value).trim() === undefined ||
         
     | 
| 
      
 10750 
     | 
    
         
            +
                                                        value === null ||
         
     | 
| 
      
 10751 
     | 
    
         
            +
                                                        value === undefined) {
         
     | 
| 
      
 10752 
     | 
    
         
            +
                                                        throw new Error("".concat(t("ndcAction:eligibleLandArea"), " ").concat(t("ndcAction:isRequired")));
         
     | 
| 
      
 10753 
     | 
    
         
            +
                                                    }
         
     | 
| 
      
 10754 
     | 
    
         
            +
                                                    return [2 /*return*/];
         
     | 
| 
      
 10755 
     | 
    
         
            +
                                                });
         
     | 
| 
      
 10756 
     | 
    
         
            +
                                            }); },
         
     | 
| 
      
 10757 
     | 
    
         
            +
                                        },
         
     | 
| 
      
 10758 
     | 
    
         
            +
                                    ] },
         
     | 
| 
      
 10759 
     | 
    
         
            +
                                    React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 }, onChange: calculateMethodologyEstimatedCredits }))),
         
     | 
| 
      
 10760 
     | 
    
         
            +
                            React.createElement(antd.Col, { style: { marginLeft: "38px" } },
         
     | 
| 
      
 10761 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { label: t("ndcAction:landAreaUnit"), name: "landAreaUnit", rules: [
         
     | 
| 
      
 10762 
     | 
    
         
            +
                                        {
         
     | 
| 
      
 10763 
     | 
    
         
            +
                                            required: true,
         
     | 
| 
      
 10764 
     | 
    
         
            +
                                            message: "".concat(t("ndcAction:landAreaUnit"), " ").concat(t("ndcAction:isRequired")),
         
     | 
| 
      
 10765 
     | 
    
         
            +
                                        },
         
     | 
| 
      
 10766 
     | 
    
         
            +
                                    ] },
         
     | 
| 
      
 10767 
     | 
    
         
            +
                                    React.createElement(antd.Select, { onChange: calculateMethodologyEstimatedCredits, size: "large", style: { width: 442 }, options: landAreaUnitList }))))),
         
     | 
| 
      
 10768 
     | 
    
         
            +
                        (ndcActionType === exports.NdcActionTypes.Mitigation ||
         
     | 
| 
      
 10769 
     | 
    
         
            +
                            ndcActionType === exports.NdcActionTypes.CrossCutting) && (React.createElement(antd.Row, { justify: "start", align: "middle" },
         
     | 
| 
      
 10770 
     | 
    
         
            +
                            React.createElement(antd.Col, null,
         
     | 
| 
      
 10771 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { name: "userEstimatedCredits", label: t("ndcAction:userEstimatedCredits"), style: { display: "inline-block", width: "calc(100% - 15px)" } },
         
     | 
| 
      
 10772 
     | 
    
         
            +
                                    React.createElement(antd.InputNumber, { style: { width: 442, paddingRight: 12 } }))),
         
     | 
| 
      
 10773 
     | 
    
         
            +
                            React.createElement(antd.Col, { style: { marginLeft: "38px" } },
         
     | 
| 
      
 10774 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { name: "methodologyEstimatedCredits", label: t("ndcAction:methodologyEstimatedCredits"), style: { display: "inline-block", width: "100%" } },
         
     | 
| 
      
 10775 
     | 
    
         
            +
                                    React.createElement(antd.InputNumber, { disabled: true, style: { width: 442, paddingRight: 12 } }))))),
         
     | 
| 
      
 10776 
     | 
    
         
            +
                        ndcActionType === exports.NdcActionTypes.CrossCutting && (React.createElement(antd.Row, null,
         
     | 
| 
      
 10777 
     | 
    
         
            +
                            React.createElement("label", { className: "label-heading" }, t("ndcAction:adaptation")))),
         
     | 
| 
      
 10778 
     | 
    
         
            +
                        (ndcActionType === exports.NdcActionTypes.Adaptation ||
         
     | 
| 
      
 10779 
     | 
    
         
            +
                            ndcActionType === exports.NdcActionTypes.CrossCutting) && (React.createElement(React.Fragment, null,
         
     | 
| 
      
 10780 
     | 
    
         
            +
                            React.createElement(antd.Row, { justify: "start", align: "middle" },
         
     | 
| 
      
 10781 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { label: t("ndcAction:implementingAgency"), name: "implementingAgency" },
         
     | 
| 
      
 10782 
     | 
    
         
            +
                                    React.createElement(antd.Select, { style: { width: 442 }, size: "large", options: implementingAgencyList.map(function (item) { return ({
         
     | 
| 
      
 10783 
     | 
    
         
            +
                                            value: item,
         
     | 
| 
      
 10784 
     | 
    
         
            +
                                            label: item,
         
     | 
| 
      
 10785 
     | 
    
         
            +
                                        }); }) }))),
         
     | 
| 
      
 10786 
     | 
    
         
            +
                            React.createElement(antd.Row, { justify: "start", align: "middle" },
         
     | 
| 
      
 10787 
     | 
    
         
            +
                                React.createElement(antd.Col, null,
         
     | 
| 
      
 10788 
     | 
    
         
            +
                                    React.createElement(antd.Form.Item, { label: t("ndcAction:nationalPlanObjectives"), name: "nationalPlanObjectives" },
         
     | 
| 
      
 10789 
     | 
    
         
            +
                                        React.createElement(antd.Select, { size: "large", style: { width: 442 }, options: nationalPlanObjectives.map(function (item) { return ({
         
     | 
| 
      
 10790 
     | 
    
         
            +
                                                value: item,
         
     | 
| 
      
 10791 
     | 
    
         
            +
                                                label: item,
         
     | 
| 
      
 10792 
     | 
    
         
            +
                                            }); }) }))),
         
     | 
| 
      
 10793 
     | 
    
         
            +
                                React.createElement(antd.Col, { style: { marginLeft: "38px" } },
         
     | 
| 
      
 10794 
     | 
    
         
            +
                                    React.createElement(antd.Form.Item, { label: t("ndcAction:nationalPlanCoverage"), name: "nationalPlanCoverage" },
         
     | 
| 
      
 10795 
     | 
    
         
            +
                                        React.createElement(antd.Select, { style: { width: 442 }, size: "large", options: nationalPlanCoverageList.map(function (item) { return ({
         
     | 
| 
      
 10796 
     | 
    
         
            +
                                                value: item,
         
     | 
| 
      
 10797 
     | 
    
         
            +
                                                label: item,
         
     | 
| 
      
 10798 
     | 
    
         
            +
                                            }); }) })))))),
         
     | 
| 
      
 10799 
     | 
    
         
            +
                        ndcActionType === exports.NdcActionTypes.Enablement && (React.createElement(React.Fragment, null,
         
     | 
| 
      
 10800 
     | 
    
         
            +
                            React.createElement(antd.Form.Item, { label: t("ndcAction:title"), name: "EnablementTitle" },
         
     | 
| 
      
 10801 
     | 
    
         
            +
                                React.createElement(antd.Input, { style: { width: 442 } })),
         
     | 
| 
      
 10802 
     | 
    
         
            +
                            React.createElement(antd.Row, { justify: "space-between", align: "middle" },
         
     | 
| 
      
 10803 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { label: t("ndcAction:report"), name: "EnablementReport", valuePropName: "fileList", getValueFromEvent: normFile, required: false, rules: [
         
     | 
| 
      
 10804 
     | 
    
         
            +
                                        {
         
     | 
| 
      
 10805 
     | 
    
         
            +
                                            validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 10806 
     | 
    
         
            +
                                                var isCorrectFormat;
         
     | 
| 
      
 10807 
     | 
    
         
            +
                                                var _a, _b;
         
     | 
| 
      
 10808 
     | 
    
         
            +
                                                return __generator(this, function (_c) {
         
     | 
| 
      
 10809 
     | 
    
         
            +
                                                    isCorrectFormat = false;
         
     | 
| 
      
 10810 
     | 
    
         
            +
                                                    if (file && file.length > 0) {
         
     | 
| 
      
 10811 
     | 
    
         
            +
                                                        if (((_a = file[0]) === null || _a === void 0 ? void 0 : _a.type) === "application/pdf") {
         
     | 
| 
      
 10812 
     | 
    
         
            +
                                                            isCorrectFormat = true;
         
     | 
| 
      
 10813 
     | 
    
         
            +
                                                        }
         
     | 
| 
      
 10814 
     | 
    
         
            +
                                                        if (!isCorrectFormat) {
         
     | 
| 
      
 10815 
     | 
    
         
            +
                                                            throw new Error("".concat(t("ndcAction:invalidFileFormat")));
         
     | 
| 
      
 10816 
     | 
    
         
            +
                                                        }
         
     | 
| 
      
 10817 
     | 
    
         
            +
                                                        else if (((_b = file[0]) === null || _b === void 0 ? void 0 : _b.size) > maximumImageSize) {
         
     | 
| 
      
 10818 
     | 
    
         
            +
                                                            throw new Error("".concat(t("common:maxSizeVal")));
         
     | 
| 
      
 10819 
     | 
    
         
            +
                                                        }
         
     | 
| 
      
 10820 
     | 
    
         
            +
                                                    }
         
     | 
| 
      
 10821 
     | 
    
         
            +
                                                    return [2 /*return*/];
         
     | 
| 
      
 10822 
     | 
    
         
            +
                                                });
         
     | 
| 
      
 10823 
     | 
    
         
            +
                                            }); },
         
     | 
| 
      
 10824 
     | 
    
         
            +
                                        },
         
     | 
| 
      
 10825 
     | 
    
         
            +
                                    ] },
         
     | 
| 
      
 10826 
     | 
    
         
            +
                                    React.createElement(antd.Upload, { accept: ".pdf", beforeUpload: function (file) {
         
     | 
| 
      
 10827 
     | 
    
         
            +
                                            return false;
         
     | 
| 
      
 10828 
     | 
    
         
            +
                                        }, className: "design-upload-section", name: "design", listType: "picture", multiple: false, maxCount: 1 },
         
     | 
| 
      
 10829 
     | 
    
         
            +
                                        React.createElement(antd.Button, { className: "upload-doc", size: "large", icon: React.createElement(icons.UploadOutlined, null) }, "Upload")))))),
         
     | 
| 
      
 10830 
     | 
    
         
            +
                        React.createElement("div", { className: "steps-actions" },
         
     | 
| 
      
 10831 
     | 
    
         
            +
                            React.createElement(antd.Row, null,
         
     | 
| 
      
 10832 
     | 
    
         
            +
                                isBackBtnVisible && (React.createElement(antd.Button, { onClick: onClickedBackBtn }, t("ndcAction:back"))),
         
     | 
| 
      
 10833 
     | 
    
         
            +
                                React.createElement(antd.Button, { className: "mg-left-1", type: "primary", htmlType: "submit" }, t("ndcAction:next")))))));
         
     | 
| 
      
 10834 
     | 
    
         
            +
            };
         
     | 
| 
      
 10835 
     | 
    
         
            +
             
     | 
| 
      
 10836 
     | 
    
         
            +
            var css_248z$3 = ".add-ndc-main-container {\n  display: flex;\n  flex-direction: column;\n  border-radius: 5px;\n  padding: 0 50px; }\n  .add-ndc-main-container .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,\n  .add-ndc-main-container .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {\n    border-color: #ff4d4f !important; }\n  .add-ndc-main-container .step-title-container {\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    justify-content: space-between;\n    margin-bottom: 1rem; }\n    .add-ndc-main-container .step-title-container .step-count {\n      font-size: 2.2rem;\n      font-weight: 800;\n      margin-right: 0.4rem;\n      color: rgba(58, 53, 65, 0.8); }\n    .add-ndc-main-container .step-title-container .title {\n      font-size: 1rem;\n      font-weight: 600;\n      color: #3a3541;\n      white-space: nowrap; }\n  .add-ndc-main-container .title-container {\n    display: flex;\n    flex-direction: column;\n    border-radius: 5px; }\n    .add-ndc-main-container .title-container .main {\n      font-size: 1.25rem;\n      font-weight: 500;\n      color: #6642eb; }\n    .add-ndc-main-container .title-container .sub {\n      font-size: 0.8rem;\n      color: #555657; }\n  .add-ndc-main-container .steps-actions {\n    display: flex;\n    flex-direction: row-reverse; }\n    .add-ndc-main-container .steps-actions .mg-left-1 {\n      margin-left: 1rem; }\n  .add-ndc-main-container .adding-section {\n    display: flex;\n    flex-direction: column;\n    background-color: #ffffff;\n    margin: 1rem 0 1rem 0;\n    border-radius: 10px;\n    padding: 2.5rem 1.5rem 2.5rem 1.5rem; }\n    .add-ndc-main-container .adding-section .design-upload-section {\n      display: flex;\n      flex-direction: row;\n      justify-content: start;\n      align-items: start;\n      width: 100%; }\n      .add-ndc-main-container .adding-section .design-upload-section .icon-color {\n        color: #9155fd !important; }\n      .add-ndc-main-container .adding-section .design-upload-section .ant-upload {\n        width: 130px; }\n      .add-ndc-main-container .adding-section .design-upload-section .ant-upload-list {\n        align-items: center;\n        justify-content: center;\n        width: 300px; }\n        .add-ndc-main-container .adding-section .design-upload-section .ant-upload-list .ant-upload-list-item {\n          margin-top: 0; }\n  .add-ndc-main-container .info-container {\n    display: flex;\n    flex-direction: row;\n    width: 10%;\n    height: 30px;\n    align-items: center;\n    justify-content: start;\n    margin-left: 10px; }\n  .add-ndc-main-container .upload-doc {\n    height: 40px !important;\n    margin-right: 240px; }\n  .add-ndc-main-container .ant-upload-list-item {\n    border-radius: 5px !important;\n    height: 40px !important; }\n";
         
     | 
| 
      
 10837 
     | 
    
         
            +
            styleInject(css_248z$3);
         
     | 
| 
      
 10838 
     | 
    
         
            +
             
     | 
| 
      
 10839 
     | 
    
         
            +
            var css_248z$2 = ".co-benifits-container {\n  width: 100%; }\n  .co-benifits-container .ant-form-item-label > label::after {\n    content: none; }\n  .co-benifits-container .ant-radio-button-wrapper {\n    border-radius: 4px !important;\n    color: rgba(140, 140, 140, 0.7) !important; }\n  .co-benifits-container .view-section .ant-radio-button-wrapper-disabled:first-child,\n  .co-benifits-container .view-section .ant-radio-button-wrapper-disabled:hover {\n    color: rgba(140, 140, 140, 0.7);\n    background-color: #ffffff;\n    border-color: rgba(140, 140, 140, 0.7); }\n  .co-benifits-container .view-section .ant-input[disabled] {\n    color: rgba(140, 140, 140, 0.7) !important;\n    background-color: #ffffff !important;\n    border-color: rgba(140, 140, 140, 0.7) !important; }\n  .co-benifits-container .steps-actions {\n    display: flex;\n    flex-direction: row-reverse; }\n    .co-benifits-container .steps-actions .mg-left-1 {\n      margin-left: 1rem; }\n  .co-benifits-container .co-sub-title-text {\n    color: rgba(58, 53, 65, 0.5);\n    font-size: 14px;\n    font-family: Inter;\n    font-weight: 600;\n    line-height: 22px; }\n  .co-benifits-container .co-view-label-text {\n    color: rgba(58, 53, 65, 0.5);\n    font-size: 14px;\n    font-family: Inter;\n    font-weight: 400;\n    line-height: 18.5px; }\n  .co-benifits-container .benifits-tabs {\n    width: 100%; }\n    .co-benifits-container .benifits-tabs .co-benifits-tab-item {\n      width: 100%;\n      margin-left: 3rem; }\n      .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity {\n        width: 95%; }\n        .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one {\n          width: 100%; }\n          .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item {\n            width: 100%; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-form-item-label {\n              display: flex;\n              flex-direction: row;\n              align-items: center;\n              text-align: left;\n              justify-content: flex-start;\n              white-space: initial; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-group {\n              width: 95%;\n              text-align: center;\n              align-items: center;\n              justify-content: flex-end; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-group .yes-no-radio-container:first-child {\n                margin-right: 1rem; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .yes-no-radio-container {\n              width: 35%;\n              text-align: center;\n              max-width: 90px; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n              .ant-radio-button-wrapper-disabled\n) {\n                color: #ffffff !important;\n                border-color: #9155fd !important;\n                box-shadow: none; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-button-wrapper::before {\n              background-color: transparent; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .ant-radio-button-wrapper {\n              border: 1px solid #d9d9d9; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .anticon {\n              margin-right: 0.5rem; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .yes-no-radio {\n              width: 100%; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-gender-parity .part-one .form-item .yes-no-radio .ant-radio-button-checked {\n                background: #9155fd;\n                color: #ffffff; }\n      .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals {\n        width: 95%; }\n        .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row {\n          width: 100%; }\n          .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col {\n            width: 100%; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container {\n              display: flex;\n              width: 88%;\n              align-items: center;\n              justify-content: center;\n              padding-top: 1.5rem; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container .images {\n                display: flex;\n                border: 1px solid black;\n                width: 100%;\n                align-items: center;\n                justify-content: center; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container img {\n                width: 100%;\n                height: auto;\n                border: 1px solid #e4e4e4;\n                border-radius: 5px; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container img:hover {\n                box-shadow: 0 0 11px rgba(33, 33, 33, 0.2); }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container-data {\n              display: flex;\n              width: 88%;\n              align-items: center;\n              justify-content: center;\n              padding-top: 1.5rem; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container-data .images {\n                display: flex;\n                border: 1px solid black;\n                width: 100%;\n                align-items: center;\n                justify-content: center; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-sdg-goals .row .col .img-container-data img {\n                width: 100%;\n                height: auto;\n                border: 1px solid #e4e4e4;\n                border-radius: 5px; }\n      .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental {\n        width: 95%; }\n        .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section {\n          width: 100%;\n          display: flex;\n          flex-direction: column; }\n          .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .title {\n            width: 100%;\n            color: rgba(58, 53, 65, 0.5);\n            font-weight: 600; }\n          .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .field-margin {\n            padding-left: 2rem; }\n          .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item {\n            width: 100%;\n            padding-left: 2rem; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-form-item-label {\n              width: 100%;\n              display: flex;\n              flex-direction: row;\n              align-items: center;\n              text-align: left;\n              justify-content: flex-start;\n              white-space: initial; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-group {\n              width: 95%;\n              text-align: center;\n              align-items: center;\n              justify-content: flex-end; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-group .yes-no-radio-container:first-child {\n                margin-right: 1rem; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-group .yes-no-radio-container:last-child {\n                margin-left: 1rem; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .yes-no-radio-container {\n              width: 25%;\n              text-align: center;\n              max-width: 90px; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n              .ant-radio-button-wrapper-disabled\n) {\n                color: #ffffff !important;\n                border-color: #9155fd !important;\n                box-shadow: none; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-button-wrapper::before {\n              background-color: transparent; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .ant-radio-button-wrapper {\n              border: 1px solid #d9d9d9; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .anticon {\n              margin-right: 0.5rem; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .yes-no-radio {\n              width: 100%; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-environmental .section .form-item .yes-no-radio .ant-radio-button-checked {\n                background: #9155fd;\n                color: #ffffff; }\n      .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic {\n        width: 95%; }\n        .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section {\n          width: 100%;\n          display: flex;\n          flex-direction: column; }\n          .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .title {\n            width: 100%;\n            color: rgba(58, 53, 65, 0.5);\n            font-weight: 600; }\n          .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .field-margin {\n            padding-left: 2rem; }\n          .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item {\n            width: 100%;\n            padding-left: 2rem; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-form-item-label {\n              width: 100%;\n              display: flex;\n              flex-direction: row;\n              align-items: center;\n              text-align: left;\n              justify-content: flex-start;\n              white-space: initial; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-group {\n              width: 95%;\n              text-align: center;\n              align-items: center;\n              justify-content: flex-end; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-group .yes-no-radio-container:first-child {\n                margin-right: 1rem; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-group .yes-no-radio-container:last-child {\n                margin-left: 1rem; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .yes-no-radio-container {\n              width: 25%;\n              text-align: center;\n              max-width: 90px; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .yes-no-radio-container .ant-radio-button-wrapper-checked:not(\n              .ant-radio-button-wrapper-disabled\n) {\n                color: #ffffff !important;\n                border-color: #9155fd !important;\n                box-shadow: none; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-button-wrapper::before {\n              background-color: transparent; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .ant-radio-button-wrapper {\n              border: 1px solid #d9d9d9; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .anticon {\n              margin-right: 0.5rem; }\n            .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .yes-no-radio {\n              width: 100%; }\n              .co-benifits-container .benifits-tabs .co-benifits-tab-item .benifits-details-economic .section .form-item .yes-no-radio .ant-radio-button-checked {\n                background: #9155fd;\n                color: #ffffff; }\n      .co-benifits-container .benifits-tabs .co-benifits-tab-item .row .col {\n        display: flex;\n        flex-direction: column !important; }\n    .co-benifits-container .benifits-tabs .assesment-tab-item {\n      width: 95%;\n      margin-left: 3rem; }\n      .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group {\n        text-align: center;\n        align-items: center;\n        justify-content: flex-end; }\n        .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .radio-container {\n          margin-right: 1rem;\n          width: 35%;\n          max-width: 90px;\n          text-align: center; }\n          .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .radio-container .ant-radio-button-wrapper-checked:not(\n          .ant-radio-button-wrapper-disabled\n) {\n            color: #ffffff !important;\n            border-color: #9155fd !important;\n            box-shadow: none; }\n        .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .radio {\n          width: 100%; }\n          .co-benifits-container .benifits-tabs .assesment-tab-item .ant-radio-group .radio .ant-radio-button-checked {\n            background: #9155fd;\n            color: #ffffff; }\n      .co-benifits-container .benifits-tabs .assesment-tab-item Input {\n        height: 40px; }\n      .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section {\n        display: flex;\n        flex-direction: row;\n        justify-content: flex-start;\n        align-items: start;\n        width: 100%; }\n        .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section .icon-color {\n          color: #16b1ff !important; }\n        .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section .ant-upload-list {\n          align-items: center;\n          justify-content: center;\n          max-width: 500px;\n          margin-left: 5px; }\n          .co-benifits-container .benifits-tabs .assesment-tab-item .design-upload-section .ant-upload-list .ant-upload-list-item {\n            margin-top: 0; }\n      .co-benifits-container .benifits-tabs .assesment-tab-item .upload-doc {\n        height: 40px !important;\n        margin-right: 240px; }\n      .co-benifits-container .benifits-tabs .assesment-tab-item .ant-upload-list-item {\n        border-radius: 5px !important;\n        height: 40px !important; }\n      .co-benifits-container .benifits-tabs .assesment-tab-item .ant-form-item-label-left {\n        padding-right: 5px; }\n    .co-benifits-container .benifits-tabs .safeguard-tab-item {\n      width: 95%;\n      margin-left: 3rem; }\n      .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group {\n        text-align: center;\n        align-items: center;\n        justify-content: flex-end; }\n        .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .radio-container {\n          margin-right: 1rem;\n          width: 35%;\n          max-width: 90px;\n          text-align: center; }\n          .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .radio-container .ant-radio-button-wrapper-checked:not(\n          .ant-radio-button-wrapper-disabled\n) {\n            color: #ffffff !important;\n            border-color: #9155fd !important;\n            box-shadow: none; }\n        .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .radio {\n          width: 100%; }\n          .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-radio-group .radio .ant-radio-button-checked {\n            background: #9155fd;\n            color: #ffffff; }\n      .co-benifits-container .benifits-tabs .safeguard-tab-item Input {\n        height: 40px; }\n      .co-benifits-container .benifits-tabs .safeguard-tab-item .ant-form-item-label-left {\n        padding-right: 5px; }\n    .co-benifits-container .benifits-tabs .social-tab-item {\n      width: 95%;\n      margin-left: 3rem; }\n      .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group {\n        text-align: center;\n        align-items: center;\n        justify-content: flex-end; }\n        .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container {\n          margin-right: 1rem;\n          width: 35%;\n          max-width: 90px;\n          text-align: center; }\n          .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio-container .ant-radio-button-wrapper-checked:not(\n          .ant-radio-button-wrapper-disabled\n) {\n            color: #ffffff !important;\n            border-color: #9155fd !important;\n            box-shadow: none; }\n        .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio {\n          width: 100%; }\n          .co-benifits-container .benifits-tabs .social-tab-item .ant-radio-group .radio .ant-radio-button-checked {\n            background: #9155fd;\n            color: #ffffff; }\n      .co-benifits-container .benifits-tabs .social-tab-item Input {\n        height: 40px; }\n";
         
     | 
| 
      
 10840 
     | 
    
         
            +
            styleInject(css_248z$2);
         
     | 
| 
      
 10841 
     | 
    
         
            +
             
     | 
| 
      
 10842 
     | 
    
         
            +
            var GenderParity = function (props) {
         
     | 
| 
      
 10843 
     | 
    
         
            +
                var onFormSubmit = props.onFormSubmit, genderParityViewData = props.genderParityViewData, viewOnly = props.viewOnly, t = props.t;
         
     | 
| 
      
 10844 
     | 
    
         
            +
                var formOne = antd.Form.useForm()[0];
         
     | 
| 
      
 10845 
     | 
    
         
            +
                var formTwo = antd.Form.useForm()[0];
         
     | 
| 
      
 10846 
     | 
    
         
            +
                var _a = React.useState(), genderParityDetails = _a[0], setGenderParityDetails = _a[1];
         
     | 
| 
      
 10847 
     | 
    
         
            +
                var genderParityDetailsOne = [
         
     | 
| 
      
 10848 
     | 
    
         
            +
                    {
         
     | 
| 
      
 10849 
     | 
    
         
            +
                        label: t("benifit1"),
         
     | 
| 
      
 10850 
     | 
    
         
            +
                        name: "descriminationAgainstGirls",
         
     | 
| 
      
 10851 
     | 
    
         
            +
                        value: true,
         
     | 
| 
      
 10852 
     | 
    
         
            +
                    },
         
     | 
| 
      
 10853 
     | 
    
         
            +
                    {
         
     | 
| 
      
 10854 
     | 
    
         
            +
                        label: t("benifit2"),
         
     | 
| 
      
 10855 
     | 
    
         
            +
                        name: "violationAgainstGirls",
         
     | 
| 
      
 10856 
     | 
    
         
            +
                        value: true,
         
     | 
| 
      
 10857 
     | 
    
         
            +
                    },
         
     | 
| 
      
 10858 
     | 
    
         
            +
                    {
         
     | 
| 
      
 10859 
     | 
    
         
            +
                        label: t("benifit3"),
         
     | 
| 
      
 10860 
     | 
    
         
            +
                        name: "harmfulPracticesAgainstGirls",
         
     | 
| 
      
 10861 
     | 
    
         
            +
                        value: true,
         
     | 
| 
      
 10862 
     | 
    
         
            +
                    },
         
     | 
| 
      
 10863 
     | 
    
         
            +
                    {
         
     | 
| 
      
 10864 
     | 
    
         
            +
                        label: t("benifit4"),
         
     | 
| 
      
 10865 
     | 
    
         
            +
                        name: "equealRightsToGirls",
         
     | 
| 
      
 10866 
     | 
    
         
            +
                        value: true,
         
     | 
| 
      
 10867 
     | 
    
         
            +
                    },
         
     | 
| 
      
 10868 
     | 
    
         
            +
                    {
         
     | 
| 
      
 10869 
     | 
    
         
            +
                        label: t("benifit5"),
         
     | 
| 
      
 10870 
     | 
    
         
            +
                        name: "equealRightsToHealthToGirls",
         
     | 
| 
      
 10871 
     | 
    
         
            +
                        value: true,
         
     | 
| 
      
 10872 
     | 
    
         
            +
                    },
         
     | 
| 
      
 10873 
     | 
    
         
            +
                ];
         
     | 
| 
      
 10874 
     | 
    
         
            +
                var genderParityDetailsTwo = [
         
     | 
| 
      
 10875 
     | 
    
         
            +
                    {
         
     | 
| 
      
 10876 
     | 
    
         
            +
                        label: t("benifit6"),
         
     | 
| 
      
 10877 
     | 
    
         
            +
                        name: "numberOfWomenEmpoyed",
         
     | 
| 
      
 10878 
     | 
    
         
            +
                        col: { md: 18, lg: 10 },
         
     | 
| 
      
 10879 
     | 
    
         
            +
                        labelCol: 24,
         
     | 
| 
      
 10880 
     | 
    
         
            +
                        wrapperCol: 18,
         
     | 
| 
      
 10881 
     | 
    
         
            +
                    },
         
     | 
| 
      
 10882 
     | 
    
         
            +
                    {
         
     | 
| 
      
 10883 
     | 
    
         
            +
                        label: t("benifit7"),
         
     | 
| 
      
 10884 
     | 
    
         
            +
                        name: "numberOfWomenTrained",
         
     | 
| 
      
 10885 
     | 
    
         
            +
                        col: { md: 18, lg: 10 },
         
     | 
| 
      
 10886 
     | 
    
         
            +
                        labelCol: 24,
         
     | 
| 
      
 10887 
     | 
    
         
            +
                        wrapperCol: 18,
         
     | 
| 
      
 10888 
     | 
    
         
            +
                    },
         
     | 
| 
      
 10889 
     | 
    
         
            +
                    {
         
     | 
| 
      
 10890 
     | 
    
         
            +
                        label: t("benifit8"),
         
     | 
| 
      
 10891 
     | 
    
         
            +
                        name: "numberOfWomenSelectedForDecisionMaking",
         
     | 
| 
      
 10892 
     | 
    
         
            +
                        col: { md: 18, lg: 16 },
         
     | 
| 
      
 10893 
     | 
    
         
            +
                        labelCol: 24,
         
     | 
| 
      
 10894 
     | 
    
         
            +
                        wrapperCol: 11,
         
     | 
| 
      
 10895 
     | 
    
         
            +
                    },
         
     | 
| 
      
 10896 
     | 
    
         
            +
                    {
         
     | 
| 
      
 10897 
     | 
    
         
            +
                        label: t("benifit9"),
         
     | 
| 
      
 10898 
     | 
    
         
            +
                        name: "numberOfWomenProvidedAccessForTech",
         
     | 
| 
      
 10899 
     | 
    
         
            +
                        col: { md: 18, lg: 16 },
         
     | 
| 
      
 10900 
     | 
    
         
            +
                        labelCol: 24,
         
     | 
| 
      
 10901 
     | 
    
         
            +
                        wrapperCol: 11,
         
     | 
| 
      
 10902 
     | 
    
         
            +
                    },
         
     | 
| 
      
 10903 
     | 
    
         
            +
                ];
         
     | 
| 
      
 10904 
     | 
    
         
            +
                var _b = React.useState(genderParityDetailsOne), genderParityFormOneFields = _b[0], setGenderParityFormOneFields = _b[1];
         
     | 
| 
      
 10905 
     | 
    
         
            +
                var _c = React.useState(genderParityDetailsTwo), genderParityFormTwoFields = _c[0], setGenderParityFormTwoFields = _c[1];
         
     | 
| 
      
 10906 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 10907 
     | 
    
         
            +
                    onFormSubmit(genderParityDetails);
         
     | 
| 
      
 10908 
     | 
    
         
            +
                }, [genderParityDetails]);
         
     | 
| 
      
 10909 
     | 
    
         
            +
                var onGenderParityValuesChanged = function (changedValues) {
         
     | 
| 
      
 10910 
     | 
    
         
            +
                    setGenderParityDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
         
     | 
| 
      
 10911 
     | 
    
         
            +
                };
         
     | 
| 
      
 10912 
     | 
    
         
            +
                var onGenderParityValuesChangedSub = function (changedValues) {
         
     | 
| 
      
 10913 
     | 
    
         
            +
                    setGenderParityDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
         
     | 
| 
      
 10914 
     | 
    
         
            +
                };
         
     | 
| 
      
 10915 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 10916 
     | 
    
         
            +
                    if (viewOnly === true && !genderParityViewData) {
         
     | 
| 
      
 10917 
     | 
    
         
            +
                        setGenderParityFormOneFields([]);
         
     | 
| 
      
 10918 
     | 
    
         
            +
                        setGenderParityFormTwoFields([]);
         
     | 
| 
      
 10919 
     | 
    
         
            +
                    }
         
     | 
| 
      
 10920 
     | 
    
         
            +
                    if (genderParityViewData) {
         
     | 
| 
      
 10921 
     | 
    
         
            +
                        var updatedGenderParityFormOneFields = genderParityFormOneFields
         
     | 
| 
      
 10922 
     | 
    
         
            +
                            .filter(function (field) { return genderParityViewData.hasOwnProperty(field.name); })
         
     | 
| 
      
 10923 
     | 
    
         
            +
                            .map(function (field) { return (__assign(__assign({}, field), { value: genderParityViewData[field.name] })); });
         
     | 
| 
      
 10924 
     | 
    
         
            +
                        var updatedGenderParityFormTwoFields = genderParityFormTwoFields
         
     | 
| 
      
 10925 
     | 
    
         
            +
                            .filter(function (field) { return genderParityViewData.hasOwnProperty(field.name); })
         
     | 
| 
      
 10926 
     | 
    
         
            +
                            .map(function (field) { return (__assign(__assign({}, field), { value: genderParityViewData[field.name] })); });
         
     | 
| 
      
 10927 
     | 
    
         
            +
                        setGenderParityFormOneFields(updatedGenderParityFormOneFields);
         
     | 
| 
      
 10928 
     | 
    
         
            +
                        setGenderParityFormTwoFields(updatedGenderParityFormTwoFields);
         
     | 
| 
      
 10929 
     | 
    
         
            +
                        if ((updatedGenderParityFormTwoFields === null || updatedGenderParityFormTwoFields === void 0 ? void 0 : updatedGenderParityFormTwoFields.length) > 0) {
         
     | 
| 
      
 10930 
     | 
    
         
            +
                            updatedGenderParityFormTwoFields === null || updatedGenderParityFormTwoFields === void 0 ? void 0 : updatedGenderParityFormTwoFields.map(function (fieldData) {
         
     | 
| 
      
 10931 
     | 
    
         
            +
                                formTwo.setFieldValue(fieldData === null || fieldData === void 0 ? void 0 : fieldData.name, fieldData === null || fieldData === void 0 ? void 0 : fieldData.value);
         
     | 
| 
      
 10932 
     | 
    
         
            +
                            });
         
     | 
| 
      
 10933 
     | 
    
         
            +
                        }
         
     | 
| 
      
 10934 
     | 
    
         
            +
                    }
         
     | 
| 
      
 10935 
     | 
    
         
            +
                }, []);
         
     | 
| 
      
 10936 
     | 
    
         
            +
                return (React.createElement("div", { className: "co-benifits-tab-item" },
         
     | 
| 
      
 10937 
     | 
    
         
            +
                    React.createElement(antd.Form, { name: "gender-parity-details", className: "benifits-details-gender-parity", labelCol: { md: 16, lg: 19, xl: 19 }, wrapperCol: { md: 8, lg: 5, xl: 5 }, layout: "horizontal", requiredMark: true, form: formOne, onValuesChange: onGenderParityValuesChanged },
         
     | 
| 
      
 10938 
     | 
    
         
            +
                        (genderParityFormOneFields === null || genderParityFormOneFields === void 0 ? void 0 : genderParityFormOneFields.length) === 0 &&
         
     | 
| 
      
 10939 
     | 
    
         
            +
                            (genderParityFormTwoFields === null || genderParityFormTwoFields === void 0 ? void 0 : genderParityFormTwoFields.length) === 0 && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
         
     | 
| 
      
 10940 
     | 
    
         
            +
                        React.createElement("div", { className: "part-one view-section" }, genderParityFormOneFields === null || genderParityFormOneFields === void 0 ? void 0 : genderParityFormOneFields.map(function (genderParityItem) {
         
     | 
| 
      
 10941 
     | 
    
         
            +
                            return (React.createElement(antd.Form.Item, { label: genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.label, className: "form-item", name: genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.name, rules: [
         
     | 
| 
      
 10942 
     | 
    
         
            +
                                    {
         
     | 
| 
      
 10943 
     | 
    
         
            +
                                        required: false,
         
     | 
| 
      
 10944 
     | 
    
         
            +
                                    },
         
     | 
| 
      
 10945 
     | 
    
         
            +
                                ] }, genderParityViewData ? (React.createElement(React.Fragment, null,
         
     | 
| 
      
 10946 
     | 
    
         
            +
                                React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: true },
         
     | 
| 
      
 10947 
     | 
    
         
            +
                                    React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 10948 
     | 
    
         
            +
                                        React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value }, (genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value) === true
         
     | 
| 
      
 10949 
     | 
    
         
            +
                                            ? t("yes")
         
     | 
| 
      
 10950 
     | 
    
         
            +
                                            : t("no")))))) : (React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { } },
         
     | 
| 
      
 10951 
     | 
    
         
            +
                                React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 10952 
     | 
    
         
            +
                                    React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value }, t("yes"))),
         
     | 
| 
      
 10953 
     | 
    
         
            +
                                React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 10954 
     | 
    
         
            +
                                    React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: !(genderParityItem === null || genderParityItem === void 0 ? void 0 : genderParityItem.value) }, t("no")))))));
         
     | 
| 
      
 10955 
     | 
    
         
            +
                        })),
         
     | 
| 
      
 10956 
     | 
    
         
            +
                        React.createElement("div", { className: "part-two" },
         
     | 
| 
      
 10957 
     | 
    
         
            +
                            React.createElement(antd.Form, { name: "additional-details", layout: "vertical", form: formTwo, onValuesChange: onGenderParityValuesChangedSub },
         
     | 
| 
      
 10958 
     | 
    
         
            +
                                React.createElement(antd.Row, { gutter: [16, 16] }, genderParityFormTwoFields === null || genderParityFormTwoFields === void 0 ? void 0 : genderParityFormTwoFields.map(function (genderDetail) {
         
     | 
| 
      
 10959 
     | 
    
         
            +
                                    var _a, _b;
         
     | 
| 
      
 10960 
     | 
    
         
            +
                                    return (React.createElement(antd.Col, { md: (_a = genderDetail === null || genderDetail === void 0 ? void 0 : genderDetail.col) === null || _a === void 0 ? void 0 : _a.md, lg: (_b = genderDetail === null || genderDetail === void 0 ? void 0 : genderDetail.col) === null || _b === void 0 ? void 0 : _b.lg },
         
     | 
| 
      
 10961 
     | 
    
         
            +
                                        React.createElement(antd.Form.Item, { labelCol: { span: genderDetail === null || genderDetail === void 0 ? void 0 : genderDetail.labelCol }, wrapperCol: { span: genderDetail === null || genderDetail === void 0 ? void 0 : genderDetail.wrapperCol }, label: genderDetail === null || genderDetail === void 0 ? void 0 : genderDetail.label, className: "form-item", name: genderDetail === null || genderDetail === void 0 ? void 0 : genderDetail.name, initialValue: genderParityViewData ? genderDetail === null || genderDetail === void 0 ? void 0 : genderDetail.value : undefined, rules: [
         
     | 
| 
      
 10962 
     | 
    
         
            +
                                                {
         
     | 
| 
      
 10963 
     | 
    
         
            +
                                                    required: false,
         
     | 
| 
      
 10964 
     | 
    
         
            +
                                                },
         
     | 
| 
      
 10965 
     | 
    
         
            +
                                            ] },
         
     | 
| 
      
 10966 
     | 
    
         
            +
                                            React.createElement(antd.Input, { disabled: genderParityViewData && true, size: "large" }))));
         
     | 
| 
      
 10967 
     | 
    
         
            +
                                })))))));
         
     | 
| 
      
 10968 
     | 
    
         
            +
            };
         
     | 
| 
      
 10969 
     | 
    
         
            +
             
     | 
| 
      
 10970 
     | 
    
         
            +
            var Assessment = function (props) {
         
     | 
| 
      
 10971 
     | 
    
         
            +
                var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection, t = props.t;
         
     | 
| 
      
 10972 
     | 
    
         
            +
                var form1 = antd.Form.useForm()[0];
         
     | 
| 
      
 10973 
     | 
    
         
            +
                var form2 = antd.Form.useForm()[0];
         
     | 
| 
      
 10974 
     | 
    
         
            +
                var form3 = antd.Form.useForm()[0];
         
     | 
| 
      
 10975 
     | 
    
         
            +
                var form4 = antd.Form.useForm()[0];
         
     | 
| 
      
 10976 
     | 
    
         
            +
                var _a = React.useState(), cobenefitsAssessmentDetails = _a[0], setCobenefitsAssessmentDetails = _a[1];
         
     | 
| 
      
 10977 
     | 
    
         
            +
                var _b = React.useState(false), isVerifyingOrgVisible = _b[0], setIsVerifyingOrgVisible = _b[1];
         
     | 
| 
      
 10978 
     | 
    
         
            +
                var _c = React.useState(false), isVerifyingDetailsVisible = _c[0], setIsVerifyingDetailsVisible = _c[1];
         
     | 
| 
      
 10979 
     | 
    
         
            +
                var _d = React.useState(false), isPersonListedDetailsVisible = _d[0], setIsPersonListedDetailsVisible = _d[1];
         
     | 
| 
      
 10980 
     | 
    
         
            +
                var _e = React.useState(true), isFormValid = _e[0], setIsFormValid = _e[1];
         
     | 
| 
      
 10981 
     | 
    
         
            +
                var _f = React.useState([]), countries = _f[0], setCountries = _f[1];
         
     | 
| 
      
 10982 
     | 
    
         
            +
                var get = useConnection().get;
         
     | 
| 
      
 10983 
     | 
    
         
            +
                var _g = React.useState(false), isCountryListLoading = _g[0], setIsCountryListLoading = _g[1];
         
     | 
| 
      
 10984 
     | 
    
         
            +
                var maximumFileSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
         
     | 
| 
      
 10985 
     | 
    
         
            +
                    ? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
         
     | 
| 
      
 10986 
     | 
    
         
            +
                    : 5000000;
         
     | 
| 
      
 10987 
     | 
    
         
            +
                var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 10988 
     | 
    
         
            +
                    var response, alpha2Names, error_1;
         
     | 
| 
      
 10989 
     | 
    
         
            +
                    return __generator(this, function (_a) {
         
     | 
| 
      
 10990 
     | 
    
         
            +
                        switch (_a.label) {
         
     | 
| 
      
 10991 
     | 
    
         
            +
                            case 0:
         
     | 
| 
      
 10992 
     | 
    
         
            +
                                setIsCountryListLoading(true);
         
     | 
| 
      
 10993 
     | 
    
         
            +
                                _a.label = 1;
         
     | 
| 
      
 10994 
     | 
    
         
            +
                            case 1:
         
     | 
| 
      
 10995 
     | 
    
         
            +
                                _a.trys.push([1, 3, 4, 5]);
         
     | 
| 
      
 10996 
     | 
    
         
            +
                                return [4 /*yield*/, get("national/organisation/countries")];
         
     | 
| 
      
 10997 
     | 
    
         
            +
                            case 2:
         
     | 
| 
      
 10998 
     | 
    
         
            +
                                response = _a.sent();
         
     | 
| 
      
 10999 
     | 
    
         
            +
                                if (response.data) {
         
     | 
| 
      
 11000 
     | 
    
         
            +
                                    alpha2Names = response.data.map(function (item) {
         
     | 
| 
      
 11001 
     | 
    
         
            +
                                        return item.alpha2;
         
     | 
| 
      
 11002 
     | 
    
         
            +
                                    });
         
     | 
| 
      
 11003 
     | 
    
         
            +
                                    setCountries(alpha2Names);
         
     | 
| 
      
 11004 
     | 
    
         
            +
                                }
         
     | 
| 
      
 11005 
     | 
    
         
            +
                                return [3 /*break*/, 5];
         
     | 
| 
      
 11006 
     | 
    
         
            +
                            case 3:
         
     | 
| 
      
 11007 
     | 
    
         
            +
                                error_1 = _a.sent();
         
     | 
| 
      
 11008 
     | 
    
         
            +
                                console.log("Error in getCountryList", error_1);
         
     | 
| 
      
 11009 
     | 
    
         
            +
                                antd.message.open({
         
     | 
| 
      
 11010 
     | 
    
         
            +
                                    type: "error",
         
     | 
| 
      
 11011 
     | 
    
         
            +
                                    content: "".concat(error_1.message),
         
     | 
| 
      
 11012 
     | 
    
         
            +
                                    duration: 3,
         
     | 
| 
      
 11013 
     | 
    
         
            +
                                    style: { textAlign: "right", marginRight: 15, marginTop: 10 },
         
     | 
| 
      
 11014 
     | 
    
         
            +
                                });
         
     | 
| 
      
 11015 
     | 
    
         
            +
                                return [3 /*break*/, 5];
         
     | 
| 
      
 11016 
     | 
    
         
            +
                            case 4:
         
     | 
| 
      
 11017 
     | 
    
         
            +
                                setIsCountryListLoading(false);
         
     | 
| 
      
 11018 
     | 
    
         
            +
                                return [7 /*endfinally*/];
         
     | 
| 
      
 11019 
     | 
    
         
            +
                            case 5: return [2 /*return*/];
         
     | 
| 
      
 11020 
     | 
    
         
            +
                        }
         
     | 
| 
      
 11021 
     | 
    
         
            +
                    });
         
     | 
| 
      
 11022 
     | 
    
         
            +
                }); };
         
     | 
| 
      
 11023 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 11024 
     | 
    
         
            +
                    onFormSubmit(cobenefitsAssessmentDetails, isFormValid);
         
     | 
| 
      
 11025 
     | 
    
         
            +
                }, [cobenefitsAssessmentDetails, isFormValid]);
         
     | 
| 
      
 11026 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 11027 
     | 
    
         
            +
                    if (assessmentViewData) {
         
     | 
| 
      
 11028 
     | 
    
         
            +
                        setCobenefitsAssessmentDetails(assessmentViewData);
         
     | 
| 
      
 11029 
     | 
    
         
            +
                        form1.setFieldsValue(assessmentViewData);
         
     | 
| 
      
 11030 
     | 
    
         
            +
                        form2.setFieldsValue(assessmentViewData);
         
     | 
| 
      
 11031 
     | 
    
         
            +
                        form3.setFieldsValue(assessmentViewData);
         
     | 
| 
      
 11032 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11033 
     | 
    
         
            +
                }, [assessmentViewData]);
         
     | 
| 
      
 11034 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 11035 
     | 
    
         
            +
                    getCountryList();
         
     | 
| 
      
 11036 
     | 
    
         
            +
                }, []);
         
     | 
| 
      
 11037 
     | 
    
         
            +
                var validateForms = function () { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 11038 
     | 
    
         
            +
                    var verifyingOrgName, personListedDetails;
         
     | 
| 
      
 11039 
     | 
    
         
            +
                    return __generator(this, function (_a) {
         
     | 
| 
      
 11040 
     | 
    
         
            +
                        setIsFormValid(true);
         
     | 
| 
      
 11041 
     | 
    
         
            +
                        if (isVerifyingOrgVisible) {
         
     | 
| 
      
 11042 
     | 
    
         
            +
                            verifyingOrgName = form1.getFieldValue("verifyingOrgName");
         
     | 
| 
      
 11043 
     | 
    
         
            +
                            if (verifyingOrgName === undefined || verifyingOrgName === "") {
         
     | 
| 
      
 11044 
     | 
    
         
            +
                                setIsFormValid(false);
         
     | 
| 
      
 11045 
     | 
    
         
            +
                            }
         
     | 
| 
      
 11046 
     | 
    
         
            +
                        }
         
     | 
| 
      
 11047 
     | 
    
         
            +
                        if (isPersonListedDetailsVisible) {
         
     | 
| 
      
 11048 
     | 
    
         
            +
                            personListedDetails = form3.getFieldValue("personListedDetails");
         
     | 
| 
      
 11049 
     | 
    
         
            +
                            if (personListedDetails === undefined || personListedDetails === "") {
         
     | 
| 
      
 11050 
     | 
    
         
            +
                                setIsFormValid(false);
         
     | 
| 
      
 11051 
     | 
    
         
            +
                            }
         
     | 
| 
      
 11052 
     | 
    
         
            +
                        }
         
     | 
| 
      
 11053 
     | 
    
         
            +
                        return [2 /*return*/];
         
     | 
| 
      
 11054 
     | 
    
         
            +
                    });
         
     | 
| 
      
 11055 
     | 
    
         
            +
                }); };
         
     | 
| 
      
 11056 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 11057 
     | 
    
         
            +
                    validateForms();
         
     | 
| 
      
 11058 
     | 
    
         
            +
                });
         
     | 
| 
      
 11059 
     | 
    
         
            +
                var onFormChanged = function (formName, info) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 11060 
     | 
    
         
            +
                    var changedValues;
         
     | 
| 
      
 11061 
     | 
    
         
            +
                    return __generator(this, function (_a) {
         
     | 
| 
      
 11062 
     | 
    
         
            +
                        changedValues = {};
         
     | 
| 
      
 11063 
     | 
    
         
            +
                        if (info.changedFields && info.changedFields.length > 0) {
         
     | 
| 
      
 11064 
     | 
    
         
            +
                            info.changedFields.map(function (changedField) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 11065 
     | 
    
         
            +
                                var base64Value, values_1;
         
     | 
| 
      
 11066 
     | 
    
         
            +
                                return __generator(this, function (_a) {
         
     | 
| 
      
 11067 
     | 
    
         
            +
                                    switch (_a.label) {
         
     | 
| 
      
 11068 
     | 
    
         
            +
                                        case 0:
         
     | 
| 
      
 11069 
     | 
    
         
            +
                                            if (!(changedField.name[0] === "document")) return [3 /*break*/, 2];
         
     | 
| 
      
 11070 
     | 
    
         
            +
                                            return [4 /*yield*/, getBase64(changedField.value[0].originFileObj)];
         
     | 
| 
      
 11071 
     | 
    
         
            +
                                        case 1:
         
     | 
| 
      
 11072 
     | 
    
         
            +
                                            base64Value = _a.sent();
         
     | 
| 
      
 11073 
     | 
    
         
            +
                                            values_1 = base64Value.split(",");
         
     | 
| 
      
 11074 
     | 
    
         
            +
                                            setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), { document: values_1[1] })); });
         
     | 
| 
      
 11075 
     | 
    
         
            +
                                            return [3 /*break*/, 3];
         
     | 
| 
      
 11076 
     | 
    
         
            +
                                        case 2:
         
     | 
| 
      
 11077 
     | 
    
         
            +
                                            changedValues[changedField.name[0]] = changedField.value;
         
     | 
| 
      
 11078 
     | 
    
         
            +
                                            _a.label = 3;
         
     | 
| 
      
 11079 
     | 
    
         
            +
                                        case 3: return [2 /*return*/];
         
     | 
| 
      
 11080 
     | 
    
         
            +
                                    }
         
     | 
| 
      
 11081 
     | 
    
         
            +
                                });
         
     | 
| 
      
 11082 
     | 
    
         
            +
                            }); });
         
     | 
| 
      
 11083 
     | 
    
         
            +
                            setCobenefitsAssessmentDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
         
     | 
| 
      
 11084 
     | 
    
         
            +
                        }
         
     | 
| 
      
 11085 
     | 
    
         
            +
                        return [2 /*return*/];
         
     | 
| 
      
 11086 
     | 
    
         
            +
                    });
         
     | 
| 
      
 11087 
     | 
    
         
            +
                }); };
         
     | 
| 
      
 11088 
     | 
    
         
            +
                var onIsThirdPartyVerifiedChanged = function (e) {
         
     | 
| 
      
 11089 
     | 
    
         
            +
                    var _a;
         
     | 
| 
      
 11090 
     | 
    
         
            +
                    if (((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value) === exports.RadioButtonStatus.YES) {
         
     | 
| 
      
 11091 
     | 
    
         
            +
                        setIsVerifyingOrgVisible(true);
         
     | 
| 
      
 11092 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11093 
     | 
    
         
            +
                    else {
         
     | 
| 
      
 11094 
     | 
    
         
            +
                        setIsVerifyingOrgVisible(false);
         
     | 
| 
      
 11095 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11096 
     | 
    
         
            +
                };
         
     | 
| 
      
 11097 
     | 
    
         
            +
                var onIsWillingToVerifiedChanged = function (e) {
         
     | 
| 
      
 11098 
     | 
    
         
            +
                    var _a;
         
     | 
| 
      
 11099 
     | 
    
         
            +
                    if (((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value) === exports.RadioButtonStatus.YES) {
         
     | 
| 
      
 11100 
     | 
    
         
            +
                        setIsVerifyingDetailsVisible(true);
         
     | 
| 
      
 11101 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11102 
     | 
    
         
            +
                    else {
         
     | 
| 
      
 11103 
     | 
    
         
            +
                        setIsVerifyingDetailsVisible(false);
         
     | 
| 
      
 11104 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11105 
     | 
    
         
            +
                };
         
     | 
| 
      
 11106 
     | 
    
         
            +
                var onIsThePersonListedChanged = function (e) {
         
     | 
| 
      
 11107 
     | 
    
         
            +
                    var _a;
         
     | 
| 
      
 11108 
     | 
    
         
            +
                    if (((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value) !== exports.RadioButtonStatus.YES) {
         
     | 
| 
      
 11109 
     | 
    
         
            +
                        setIsPersonListedDetailsVisible(true);
         
     | 
| 
      
 11110 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11111 
     | 
    
         
            +
                    else {
         
     | 
| 
      
 11112 
     | 
    
         
            +
                        setIsPersonListedDetailsVisible(false);
         
     | 
| 
      
 11113 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11114 
     | 
    
         
            +
                };
         
     | 
| 
      
 11115 
     | 
    
         
            +
                var normFile = function (e) {
         
     | 
| 
      
 11116 
     | 
    
         
            +
                    if (Array.isArray(e)) {
         
     | 
| 
      
 11117 
     | 
    
         
            +
                        return e;
         
     | 
| 
      
 11118 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11119 
     | 
    
         
            +
                    return e === null || e === void 0 ? void 0 : e.fileList;
         
     | 
| 
      
 11120 
     | 
    
         
            +
                };
         
     | 
| 
      
 11121 
     | 
    
         
            +
                return (React.createElement("div", { className: "assesment-tab-item" },
         
     | 
| 
      
 11122 
     | 
    
         
            +
                    viewOnly && !assessmentViewData && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
         
     | 
| 
      
 11123 
     | 
    
         
            +
                    ((viewOnly && assessmentViewData) || !viewOnly) && (React.createElement(antd.Form.Provider, { onFormChange: onFormChanged },
         
     | 
| 
      
 11124 
     | 
    
         
            +
                        React.createElement(antd.Row, null,
         
     | 
| 
      
 11125 
     | 
    
         
            +
                            React.createElement(antd.Form, { name: "from1", labelCol: { span: 18 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 6 }, layout: "horizontal", requiredMark: true, form: form1, onValuesChange: function () { return validateForms(); } },
         
     | 
| 
      
 11126 
     | 
    
         
            +
                                !viewOnly && (React.createElement("div", { className: "radio-content" },
         
     | 
| 
      
 11127 
     | 
    
         
            +
                                    React.createElement(antd.Form.Item, { label: t("assessmentIsThirdPartyVerified"), className: "form-item", name: "IsThirdPartyVerified" },
         
     | 
| 
      
 11128 
     | 
    
         
            +
                                        React.createElement(antd.Radio.Group, { size: "middle", onChange: onIsThirdPartyVerifiedChanged },
         
     | 
| 
      
 11129 
     | 
    
         
            +
                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11130 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
         
     | 
| 
      
 11131 
     | 
    
         
            +
                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11132 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
         
     | 
| 
      
 11133 
     | 
    
         
            +
                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11134 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("n/a"))))),
         
     | 
| 
      
 11135 
     | 
    
         
            +
                                    isVerifyingOrgVisible === true && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("verifyingOrgNamelbl"), name: "verifyingOrgName", rules: [
         
     | 
| 
      
 11136 
     | 
    
         
            +
                                            {
         
     | 
| 
      
 11137 
     | 
    
         
            +
                                                required: true,
         
     | 
| 
      
 11138 
     | 
    
         
            +
                                                message: "",
         
     | 
| 
      
 11139 
     | 
    
         
            +
                                            },
         
     | 
| 
      
 11140 
     | 
    
         
            +
                                        ] },
         
     | 
| 
      
 11141 
     | 
    
         
            +
                                        React.createElement(antd.Input, { style: { width: 303 } }))),
         
     | 
| 
      
 11142 
     | 
    
         
            +
                                    React.createElement(antd.Form.Item, { label: t("assesmentIsWillingToVerified"), className: "form-item", name: "IsWillingToVerified" },
         
     | 
| 
      
 11143 
     | 
    
         
            +
                                        React.createElement(antd.Radio.Group, { size: "middle", onChange: onIsWillingToVerifiedChanged },
         
     | 
| 
      
 11144 
     | 
    
         
            +
                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11145 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
         
     | 
| 
      
 11146 
     | 
    
         
            +
                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11147 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
         
     | 
| 
      
 11148 
     | 
    
         
            +
                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11149 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("n/a"))))),
         
     | 
| 
      
 11150 
     | 
    
         
            +
                                    isVerifyingDetailsVisible === true && (React.createElement(antd.Form.Item, { label: t("verifyingDetailslbl"), name: "verifyingDetails", labelCol: { span: 24 }, wrapperCol: { span: 24 } },
         
     | 
| 
      
 11151 
     | 
    
         
            +
                                        React.createElement(antd.Input, { style: { width: 303 } }))))),
         
     | 
| 
      
 11152 
     | 
    
         
            +
                                viewOnly && (React.createElement("div", { className: "radio-content view-section" },
         
     | 
| 
      
 11153 
     | 
    
         
            +
                                    assessmentViewData.hasOwnProperty("IsThirdPartyVerified") && (React.createElement(antd.Form.Item, { label: t("assessmentIsThirdPartyVerified"), className: "form-item", name: "IsThirdPartyVerified" },
         
     | 
| 
      
 11154 
     | 
    
         
            +
                                        React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
         
     | 
| 
      
 11155 
     | 
    
         
            +
                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11156 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "radio" }, assessmentViewData.IsThirdPartyVerified))))),
         
     | 
| 
      
 11157 
     | 
    
         
            +
                                    assessmentViewData.IsThirdPartyVerified ===
         
     | 
| 
      
 11158 
     | 
    
         
            +
                                        exports.RadioButtonStatus.YES && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("verifyingOrgNamelbl"), name: "verifyingOrgName" },
         
     | 
| 
      
 11159 
     | 
    
         
            +
                                        React.createElement(antd.Input, { disabled: true, style: { width: 303 }, defaultValue: assessmentViewData.verifyingOrgName
         
     | 
| 
      
 11160 
     | 
    
         
            +
                                                ? assessmentViewData.verifyingOrgName
         
     | 
| 
      
 11161 
     | 
    
         
            +
                                                : "-" }))),
         
     | 
| 
      
 11162 
     | 
    
         
            +
                                    assessmentViewData.hasOwnProperty("IsWillingToVerified") && (React.createElement(antd.Form.Item, { label: t("assesmentIsWillingToVerified"), className: "form-item", name: "IsWillingToVerified" },
         
     | 
| 
      
 11163 
     | 
    
         
            +
                                        React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
         
     | 
| 
      
 11164 
     | 
    
         
            +
                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11165 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "radio" }, assessmentViewData.IsWillingToVerified))))),
         
     | 
| 
      
 11166 
     | 
    
         
            +
                                    assessmentViewData.IsWillingToVerified ===
         
     | 
| 
      
 11167 
     | 
    
         
            +
                                        exports.RadioButtonStatus.YES && (React.createElement(antd.Form.Item, { label: t("verifyingDetailslbl"), name: "verifyingDetails", labelCol: { span: 24 }, wrapperCol: { span: 24 } },
         
     | 
| 
      
 11168 
     | 
    
         
            +
                                        React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.verifyingDetails
         
     | 
| 
      
 11169 
     | 
    
         
            +
                                                ? assessmentViewData.verifyingDetails
         
     | 
| 
      
 11170 
     | 
    
         
            +
                                                : "-", style: { width: 303 } }))))))),
         
     | 
| 
      
 11171 
     | 
    
         
            +
                        React.createElement(antd.Row, null,
         
     | 
| 
      
 11172 
     | 
    
         
            +
                            React.createElement(antd.Form, { name: "form2", labelCol: { span: 14 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 8 }, layout: "vertical", requiredMark: true, form: form2, className: "view-section" },
         
     | 
| 
      
 11173 
     | 
    
         
            +
                                React.createElement(antd.Row, { className: "mg-bottom-1" },
         
     | 
| 
      
 11174 
     | 
    
         
            +
                                    React.createElement("label", { className: "co-sub-title-text" }, t("contactInformation"))),
         
     | 
| 
      
 11175 
     | 
    
         
            +
                                React.createElement(antd.Row, { justify: "start", gutter: 16 },
         
     | 
| 
      
 11176 
     | 
    
         
            +
                                    React.createElement(antd.Col, { flex: "139px" },
         
     | 
| 
      
 11177 
     | 
    
         
            +
                                        React.createElement(React.Fragment, null,
         
     | 
| 
      
 11178 
     | 
    
         
            +
                                            !viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentTitle"), name: "title" },
         
     | 
| 
      
 11179 
     | 
    
         
            +
                                                React.createElement(antd.Select, { size: "large", style: {
         
     | 
| 
      
 11180 
     | 
    
         
            +
                                                        width: "139px",
         
     | 
| 
      
 11181 
     | 
    
         
            +
                                                        borderRadius: "4px",
         
     | 
| 
      
 11182 
     | 
    
         
            +
                                                    }, options: titleList }))),
         
     | 
| 
      
 11183 
     | 
    
         
            +
                                            viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentTitle"), name: "title" },
         
     | 
| 
      
 11184 
     | 
    
         
            +
                                                React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.title
         
     | 
| 
      
 11185 
     | 
    
         
            +
                                                        ? assessmentViewData.title
         
     | 
| 
      
 11186 
     | 
    
         
            +
                                                        : "-", style: { width: 303 } }))))),
         
     | 
| 
      
 11187 
     | 
    
         
            +
                                    React.createElement(antd.Col, { flex: "303px" },
         
     | 
| 
      
 11188 
     | 
    
         
            +
                                        React.createElement(React.Fragment, null,
         
     | 
| 
      
 11189 
     | 
    
         
            +
                                            !viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentFirstName"), name: "firstName" },
         
     | 
| 
      
 11190 
     | 
    
         
            +
                                                React.createElement(antd.Input, { style: { width: 303 } }))),
         
     | 
| 
      
 11191 
     | 
    
         
            +
                                            viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentFirstName"), name: "firstName" },
         
     | 
| 
      
 11192 
     | 
    
         
            +
                                                React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.firstName
         
     | 
| 
      
 11193 
     | 
    
         
            +
                                                        ? assessmentViewData.firstName
         
     | 
| 
      
 11194 
     | 
    
         
            +
                                                        : "-", style: { width: 303 } }))))),
         
     | 
| 
      
 11195 
     | 
    
         
            +
                                    React.createElement(antd.Col, { flex: "303px" },
         
     | 
| 
      
 11196 
     | 
    
         
            +
                                        React.createElement(React.Fragment, null,
         
     | 
| 
      
 11197 
     | 
    
         
            +
                                            !viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentLastName"), name: "lastName" },
         
     | 
| 
      
 11198 
     | 
    
         
            +
                                                React.createElement(antd.Input, { style: { width: 303 } }))),
         
     | 
| 
      
 11199 
     | 
    
         
            +
                                            viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentLastName"), name: "lastName" },
         
     | 
| 
      
 11200 
     | 
    
         
            +
                                                React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.lastName
         
     | 
| 
      
 11201 
     | 
    
         
            +
                                                        ? assessmentViewData.lastName
         
     | 
| 
      
 11202 
     | 
    
         
            +
                                                        : "-", style: { width: 303 } })))))),
         
     | 
| 
      
 11203 
     | 
    
         
            +
                                React.createElement(antd.Row, { justify: "start", gutter: 16 },
         
     | 
| 
      
 11204 
     | 
    
         
            +
                                    React.createElement(antd.Col, { flex: "462px" },
         
     | 
| 
      
 11205 
     | 
    
         
            +
                                        React.createElement(React.Fragment, null,
         
     | 
| 
      
 11206 
     | 
    
         
            +
                                            !viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentOrganisation"), name: "organisation" },
         
     | 
| 
      
 11207 
     | 
    
         
            +
                                                React.createElement(antd.Input, { style: { width: 462 } }))),
         
     | 
| 
      
 11208 
     | 
    
         
            +
                                            viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentOrganisation"), name: "organisation" },
         
     | 
| 
      
 11209 
     | 
    
         
            +
                                                React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.organisation
         
     | 
| 
      
 11210 
     | 
    
         
            +
                                                        ? assessmentViewData.organisation
         
     | 
| 
      
 11211 
     | 
    
         
            +
                                                        : "-", style: { width: 462 } }))))),
         
     | 
| 
      
 11212 
     | 
    
         
            +
                                    React.createElement(antd.Col, { flex: "303px" },
         
     | 
| 
      
 11213 
     | 
    
         
            +
                                        React.createElement(React.Fragment, null,
         
     | 
| 
      
 11214 
     | 
    
         
            +
                                            React.createElement(antd.Skeleton, { loading: isCountryListLoading, active: true }, !viewOnly && countries.length > 0 && (React.createElement(antd.Form.Item, { label: t("assessmentTelephone"), name: "telephone" },
         
     | 
| 
      
 11215 
     | 
    
         
            +
                                                React.createElement(PhoneInput, { style: { width: 303 }, international: true, defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })))),
         
     | 
| 
      
 11216 
     | 
    
         
            +
                                            viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentTelephone"), name: "telephone" },
         
     | 
| 
      
 11217 
     | 
    
         
            +
                                                React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.telephone
         
     | 
| 
      
 11218 
     | 
    
         
            +
                                                        ? assessmentViewData.telephone
         
     | 
| 
      
 11219 
     | 
    
         
            +
                                                        : "-", style: { width: 303 } })))))),
         
     | 
| 
      
 11220 
     | 
    
         
            +
                                React.createElement(antd.Row, { justify: "start", gutter: 16 },
         
     | 
| 
      
 11221 
     | 
    
         
            +
                                    React.createElement(antd.Col, { flex: "303px" },
         
     | 
| 
      
 11222 
     | 
    
         
            +
                                        React.createElement(React.Fragment, null,
         
     | 
| 
      
 11223 
     | 
    
         
            +
                                            !viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentEmail"), name: "email", rules: [
         
     | 
| 
      
 11224 
     | 
    
         
            +
                                                    {
         
     | 
| 
      
 11225 
     | 
    
         
            +
                                                        validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 11226 
     | 
    
         
            +
                                                            var val, reg, matches;
         
     | 
| 
      
 11227 
     | 
    
         
            +
                                                            return __generator(this, function (_a) {
         
     | 
| 
      
 11228 
     | 
    
         
            +
                                                                if (value) {
         
     | 
| 
      
 11229 
     | 
    
         
            +
                                                                    val = value.trim();
         
     | 
| 
      
 11230 
     | 
    
         
            +
                                                                    reg = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
         
     | 
| 
      
 11231 
     | 
    
         
            +
                                                                    matches = val.match(reg)
         
     | 
| 
      
 11232 
     | 
    
         
            +
                                                                        ? val.match(reg)
         
     | 
| 
      
 11233 
     | 
    
         
            +
                                                                        : [];
         
     | 
| 
      
 11234 
     | 
    
         
            +
                                                                    if (matches.length === 0) {
         
     | 
| 
      
 11235 
     | 
    
         
            +
                                                                        throw new Error("".concat(t("addUser:email"), " ").concat(t("addUser:isInvalid")));
         
     | 
| 
      
 11236 
     | 
    
         
            +
                                                                    }
         
     | 
| 
      
 11237 
     | 
    
         
            +
                                                                }
         
     | 
| 
      
 11238 
     | 
    
         
            +
                                                                return [2 /*return*/];
         
     | 
| 
      
 11239 
     | 
    
         
            +
                                                            });
         
     | 
| 
      
 11240 
     | 
    
         
            +
                                                        }); },
         
     | 
| 
      
 11241 
     | 
    
         
            +
                                                    },
         
     | 
| 
      
 11242 
     | 
    
         
            +
                                                ] },
         
     | 
| 
      
 11243 
     | 
    
         
            +
                                                React.createElement(antd.Input, { style: { width: 303 } }))),
         
     | 
| 
      
 11244 
     | 
    
         
            +
                                            viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentEmail"), name: "email" },
         
     | 
| 
      
 11245 
     | 
    
         
            +
                                                React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.email
         
     | 
| 
      
 11246 
     | 
    
         
            +
                                                        ? assessmentViewData.email
         
     | 
| 
      
 11247 
     | 
    
         
            +
                                                        : "-", style: { width: 303 } }))))),
         
     | 
| 
      
 11248 
     | 
    
         
            +
                                    React.createElement(antd.Col, { flex: "462px" },
         
     | 
| 
      
 11249 
     | 
    
         
            +
                                        React.createElement(React.Fragment, null,
         
     | 
| 
      
 11250 
     | 
    
         
            +
                                            !viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentAffiliationCDM"), name: "affiliationCDM" },
         
     | 
| 
      
 11251 
     | 
    
         
            +
                                                React.createElement(antd.Input, { style: { width: 462 } }))),
         
     | 
| 
      
 11252 
     | 
    
         
            +
                                            viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentAffiliationCDM"), name: "affiliationCDM" },
         
     | 
| 
      
 11253 
     | 
    
         
            +
                                                React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.affiliationCDM
         
     | 
| 
      
 11254 
     | 
    
         
            +
                                                        ? assessmentViewData.affiliationCDM
         
     | 
| 
      
 11255 
     | 
    
         
            +
                                                        : "-", style: { width: 462 } })))))))),
         
     | 
| 
      
 11256 
     | 
    
         
            +
                        React.createElement(antd.Row, null,
         
     | 
| 
      
 11257 
     | 
    
         
            +
                            React.createElement(antd.Col, { span: 24 },
         
     | 
| 
      
 11258 
     | 
    
         
            +
                                React.createElement(antd.Form, { name: "form3", labelCol: { span: 18 }, labelWrap: true, labelAlign: "left", wrapperCol: { span: 6 }, layout: "horizontal", requiredMark: true, form: form3, onValuesChange: function () { return validateForms(); } },
         
     | 
| 
      
 11259 
     | 
    
         
            +
                                    !viewOnly && (React.createElement("div", { className: "radio-content" },
         
     | 
| 
      
 11260 
     | 
    
         
            +
                                        React.createElement(antd.Form.Item, { label: t("assesmentIsThePersonListed"), className: "form-item", name: "isThePersonListed" },
         
     | 
| 
      
 11261 
     | 
    
         
            +
                                            React.createElement(antd.Radio.Group, { size: "middle", onChange: onIsThePersonListedChanged },
         
     | 
| 
      
 11262 
     | 
    
         
            +
                                                React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11263 
     | 
    
         
            +
                                                    React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
         
     | 
| 
      
 11264 
     | 
    
         
            +
                                                React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11265 
     | 
    
         
            +
                                                    React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
         
     | 
| 
      
 11266 
     | 
    
         
            +
                                                React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11267 
     | 
    
         
            +
                                                    React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("n/a"))))),
         
     | 
| 
      
 11268 
     | 
    
         
            +
                                        isPersonListedDetailsVisible === true && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("specify"), name: "personListedDetails", rules: [
         
     | 
| 
      
 11269 
     | 
    
         
            +
                                                {
         
     | 
| 
      
 11270 
     | 
    
         
            +
                                                    required: true,
         
     | 
| 
      
 11271 
     | 
    
         
            +
                                                    message: "",
         
     | 
| 
      
 11272 
     | 
    
         
            +
                                                },
         
     | 
| 
      
 11273 
     | 
    
         
            +
                                            ] },
         
     | 
| 
      
 11274 
     | 
    
         
            +
                                            React.createElement(antd.Input, { style: { width: 303 } }))))),
         
     | 
| 
      
 11275 
     | 
    
         
            +
                                    viewOnly && (React.createElement("div", { className: "radio-content view-section" },
         
     | 
| 
      
 11276 
     | 
    
         
            +
                                        assessmentViewData.hasOwnProperty("isThePersonListed") && (React.createElement(antd.Form.Item, { label: t("assesmentIsThePersonListed"), className: "form-item", name: "isThePersonListed" },
         
     | 
| 
      
 11277 
     | 
    
         
            +
                                            React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
         
     | 
| 
      
 11278 
     | 
    
         
            +
                                                React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11279 
     | 
    
         
            +
                                                    React.createElement(antd.Radio.Button, { className: "radio" }, assessmentViewData.isThePersonListed))))),
         
     | 
| 
      
 11280 
     | 
    
         
            +
                                        assessmentViewData.isThePersonListed ===
         
     | 
| 
      
 11281 
     | 
    
         
            +
                                            exports.RadioButtonStatus.NO && (React.createElement(antd.Form.Item, { labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: t("specify"), name: "personListedDetails" },
         
     | 
| 
      
 11282 
     | 
    
         
            +
                                            React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.personListedDetails
         
     | 
| 
      
 11283 
     | 
    
         
            +
                                                    ? assessmentViewData.personListedDetails
         
     | 
| 
      
 11284 
     | 
    
         
            +
                                                    : "-", style: { width: 303 } })))))))),
         
     | 
| 
      
 11285 
     | 
    
         
            +
                        React.createElement(antd.Row, null,
         
     | 
| 
      
 11286 
     | 
    
         
            +
                            React.createElement(antd.Form, { layout: "vertical", name: "form4", form: form4, className: "view-section" },
         
     | 
| 
      
 11287 
     | 
    
         
            +
                                React.createElement(antd.Row, { className: "mg-bottom-1" },
         
     | 
| 
      
 11288 
     | 
    
         
            +
                                    React.createElement("label", { className: "co-sub-title-text" }, t("feasibilityReport"))),
         
     | 
| 
      
 11289 
     | 
    
         
            +
                                React.createElement(antd.Row, { justify: "start", gutter: 16 },
         
     | 
| 
      
 11290 
     | 
    
         
            +
                                    React.createElement(antd.Col, { flex: "303px" },
         
     | 
| 
      
 11291 
     | 
    
         
            +
                                        React.createElement(React.Fragment, null,
         
     | 
| 
      
 11292 
     | 
    
         
            +
                                            !viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentStudyName"), name: "studyName" },
         
     | 
| 
      
 11293 
     | 
    
         
            +
                                                React.createElement(antd.Input, { style: { width: 303 } }))),
         
     | 
| 
      
 11294 
     | 
    
         
            +
                                            viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentStudyName"), name: "studyName" },
         
     | 
| 
      
 11295 
     | 
    
         
            +
                                                React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.studyName
         
     | 
| 
      
 11296 
     | 
    
         
            +
                                                        ? assessmentViewData.studyName
         
     | 
| 
      
 11297 
     | 
    
         
            +
                                                        : "-", style: { width: 303 } }))))),
         
     | 
| 
      
 11298 
     | 
    
         
            +
                                    React.createElement(antd.Col, { flex: "303px" },
         
     | 
| 
      
 11299 
     | 
    
         
            +
                                        React.createElement(React.Fragment, null,
         
     | 
| 
      
 11300 
     | 
    
         
            +
                                            !viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentFunder"), name: "funder" },
         
     | 
| 
      
 11301 
     | 
    
         
            +
                                                React.createElement(antd.Input, { style: { width: 303 } }))),
         
     | 
| 
      
 11302 
     | 
    
         
            +
                                            viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentFunder"), name: "funder" },
         
     | 
| 
      
 11303 
     | 
    
         
            +
                                                React.createElement(antd.Input, { disabled: true, defaultValue: assessmentViewData.funder
         
     | 
| 
      
 11304 
     | 
    
         
            +
                                                        ? assessmentViewData.funder
         
     | 
| 
      
 11305 
     | 
    
         
            +
                                                        : "-", style: { width: 303 } })))))),
         
     | 
| 
      
 11306 
     | 
    
         
            +
                                React.createElement(antd.Row, null,
         
     | 
| 
      
 11307 
     | 
    
         
            +
                                    !viewOnly && (React.createElement(antd.Form.Item, { label: t("assessmentDocuments"), name: "document", valuePropName: "fileList", getValueFromEvent: normFile, required: false, rules: [
         
     | 
| 
      
 11308 
     | 
    
         
            +
                                            {
         
     | 
| 
      
 11309 
     | 
    
         
            +
                                                validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 11310 
     | 
    
         
            +
                                                    var isCorrectFormat;
         
     | 
| 
      
 11311 
     | 
    
         
            +
                                                    var _a, _b;
         
     | 
| 
      
 11312 
     | 
    
         
            +
                                                    return __generator(this, function (_c) {
         
     | 
| 
      
 11313 
     | 
    
         
            +
                                                        if ((file === null || file === void 0 ? void 0 : file.length) > 0) {
         
     | 
| 
      
 11314 
     | 
    
         
            +
                                                            isCorrectFormat = false;
         
     | 
| 
      
 11315 
     | 
    
         
            +
                                                            if (((_a = file[0]) === null || _a === void 0 ? void 0 : _a.type) === "application/pdf") {
         
     | 
| 
      
 11316 
     | 
    
         
            +
                                                                isCorrectFormat = true;
         
     | 
| 
      
 11317 
     | 
    
         
            +
                                                            }
         
     | 
| 
      
 11318 
     | 
    
         
            +
                                                            if (!isCorrectFormat) {
         
     | 
| 
      
 11319 
     | 
    
         
            +
                                                                throw new Error("".concat(t("invalidFileFormat")));
         
     | 
| 
      
 11320 
     | 
    
         
            +
                                                            }
         
     | 
| 
      
 11321 
     | 
    
         
            +
                                                            else if (((_b = file[0]) === null || _b === void 0 ? void 0 : _b.size) > maximumFileSize) {
         
     | 
| 
      
 11322 
     | 
    
         
            +
                                                                throw new Error("".concat(t("common:maxSizeVal")));
         
     | 
| 
      
 11323 
     | 
    
         
            +
                                                            }
         
     | 
| 
      
 11324 
     | 
    
         
            +
                                                        }
         
     | 
| 
      
 11325 
     | 
    
         
            +
                                                        return [2 /*return*/];
         
     | 
| 
      
 11326 
     | 
    
         
            +
                                                    });
         
     | 
| 
      
 11327 
     | 
    
         
            +
                                                }); },
         
     | 
| 
      
 11328 
     | 
    
         
            +
                                            },
         
     | 
| 
      
 11329 
     | 
    
         
            +
                                        ] },
         
     | 
| 
      
 11330 
     | 
    
         
            +
                                        React.createElement(antd.Upload, { accept: ".pdf", beforeUpload: function (file) {
         
     | 
| 
      
 11331 
     | 
    
         
            +
                                                return false;
         
     | 
| 
      
 11332 
     | 
    
         
            +
                                            }, className: "design-upload-section", name: "document", listType: "picture", multiple: false, maxCount: 1 },
         
     | 
| 
      
 11333 
     | 
    
         
            +
                                            React.createElement(antd.Button, { className: "upload-doc", size: "large", icon: React.createElement(icons.UploadOutlined, null) }, "Upload")))),
         
     | 
| 
      
 11334 
     | 
    
         
            +
                                    viewOnly && assessmentViewData.document && (React.createElement(antd.Form.Item, { label: t("assessmentDocuments"), name: "assessmentDocuments" },
         
     | 
| 
      
 11335 
     | 
    
         
            +
                                        React.createElement("a", { href: assessmentViewData.document, target: "_blank", rel: "noopener noreferrer", download: true }, assessmentViewData.document))))))))));
         
     | 
| 
      
 11336 
     | 
    
         
            +
            };
         
     | 
| 
      
 11337 
     | 
    
         
            +
             
     | 
| 
      
 11338 
     | 
    
         
            +
            var sdgGoalMap = {};
         
     | 
| 
      
 11339 
     | 
    
         
            +
            var SdgGoals = function (props) {
         
     | 
| 
      
 11340 
     | 
    
         
            +
                var onFormSubmit = props.onFormSubmit, sdgGoalsViewData = props.sdgGoalsViewData, viewOnly = props.viewOnly, sdgGoalImages = props.sdgGoalImages;
         
     | 
| 
      
 11341 
     | 
    
         
            +
                var goal1 = sdgGoalImages.goal1, goal2 = sdgGoalImages.goal2, goal3 = sdgGoalImages.goal3, goal4 = sdgGoalImages.goal4, goal5 = sdgGoalImages.goal5, goal6 = sdgGoalImages.goal6, goal7 = sdgGoalImages.goal7, goal8 = sdgGoalImages.goal8, goal9 = sdgGoalImages.goal9, goal10 = sdgGoalImages.goal10, goal11 = sdgGoalImages.goal11, goal12 = sdgGoalImages.goal12, goal13 = sdgGoalImages.goal13, goal14 = sdgGoalImages.goal14, goal15 = sdgGoalImages.goal15, goal16 = sdgGoalImages.goal16, goal17 = sdgGoalImages.goal17, goal1Selected = sdgGoalImages.goal1Selected, goal2Selected = sdgGoalImages.goal2Selected, goal3Selected = sdgGoalImages.goal3Selected, goal4Selected = sdgGoalImages.goal4Selected, goal5Selected = sdgGoalImages.goal5Selected, goal6Selected = sdgGoalImages.goal6Selected, goal7Selected = sdgGoalImages.goal7Selected, goal8Selected = sdgGoalImages.goal8Selected, goal9Selected = sdgGoalImages.goal9Selected, goal10Selected = sdgGoalImages.goal10Selected, goal11Selected = sdgGoalImages.goal11Selected, goal12Selected = sdgGoalImages.goal12Selected, goal13Selected = sdgGoalImages.goal13Selected, goal14Selected = sdgGoalImages.goal14Selected, goal15Selected = sdgGoalImages.goal15Selected, goal16Selected = sdgGoalImages.goal16Selected, goal17Selected = sdgGoalImages.goal17Selected;
         
     | 
| 
      
 11342 
     | 
    
         
            +
                var formOne = antd.Form.useForm()[0];
         
     | 
| 
      
 11343 
     | 
    
         
            +
                var _a = React.useState([
         
     | 
| 
      
 11344 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11345 
     | 
    
         
            +
                        name: exports.SdgGoals.noPoverty,
         
     | 
| 
      
 11346 
     | 
    
         
            +
                        image: goal1,
         
     | 
| 
      
 11347 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11348 
     | 
    
         
            +
                        activeImage: goal1Selected,
         
     | 
| 
      
 11349 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11350 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11351 
     | 
    
         
            +
                        name: exports.SdgGoals.zeroHunger,
         
     | 
| 
      
 11352 
     | 
    
         
            +
                        image: goal2,
         
     | 
| 
      
 11353 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11354 
     | 
    
         
            +
                        activeImage: goal2Selected,
         
     | 
| 
      
 11355 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11356 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11357 
     | 
    
         
            +
                        name: exports.SdgGoals.gdHealth,
         
     | 
| 
      
 11358 
     | 
    
         
            +
                        image: goal3,
         
     | 
| 
      
 11359 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11360 
     | 
    
         
            +
                        activeImage: goal3Selected,
         
     | 
| 
      
 11361 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11362 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11363 
     | 
    
         
            +
                        name: exports.SdgGoals.qualityEducation,
         
     | 
| 
      
 11364 
     | 
    
         
            +
                        image: goal4,
         
     | 
| 
      
 11365 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11366 
     | 
    
         
            +
                        activeImage: goal4Selected,
         
     | 
| 
      
 11367 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11368 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11369 
     | 
    
         
            +
                        name: exports.SdgGoals.genderEq,
         
     | 
| 
      
 11370 
     | 
    
         
            +
                        image: goal5,
         
     | 
| 
      
 11371 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11372 
     | 
    
         
            +
                        activeImage: goal5Selected,
         
     | 
| 
      
 11373 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11374 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11375 
     | 
    
         
            +
                        name: exports.SdgGoals.cleanWatr,
         
     | 
| 
      
 11376 
     | 
    
         
            +
                        image: goal6,
         
     | 
| 
      
 11377 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11378 
     | 
    
         
            +
                        activeImage: goal6Selected,
         
     | 
| 
      
 11379 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11380 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11381 
     | 
    
         
            +
                        name: exports.SdgGoals.affEnergy,
         
     | 
| 
      
 11382 
     | 
    
         
            +
                        image: goal7,
         
     | 
| 
      
 11383 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11384 
     | 
    
         
            +
                        activeImage: goal7Selected,
         
     | 
| 
      
 11385 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11386 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11387 
     | 
    
         
            +
                        name: exports.SdgGoals.decentWork,
         
     | 
| 
      
 11388 
     | 
    
         
            +
                        image: goal8,
         
     | 
| 
      
 11389 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11390 
     | 
    
         
            +
                        activeImage: goal8Selected,
         
     | 
| 
      
 11391 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11392 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11393 
     | 
    
         
            +
                        name: exports.SdgGoals.industry,
         
     | 
| 
      
 11394 
     | 
    
         
            +
                        image: goal9,
         
     | 
| 
      
 11395 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11396 
     | 
    
         
            +
                        activeImage: goal9Selected,
         
     | 
| 
      
 11397 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11398 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11399 
     | 
    
         
            +
                        name: exports.SdgGoals.reducedInEq,
         
     | 
| 
      
 11400 
     | 
    
         
            +
                        image: goal10,
         
     | 
| 
      
 11401 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11402 
     | 
    
         
            +
                        activeImage: goal10Selected,
         
     | 
| 
      
 11403 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11404 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11405 
     | 
    
         
            +
                        name: exports.SdgGoals.sustainableCities,
         
     | 
| 
      
 11406 
     | 
    
         
            +
                        image: goal11,
         
     | 
| 
      
 11407 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11408 
     | 
    
         
            +
                        activeImage: goal11Selected,
         
     | 
| 
      
 11409 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11410 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11411 
     | 
    
         
            +
                        name: exports.SdgGoals.responsibleConsumption,
         
     | 
| 
      
 11412 
     | 
    
         
            +
                        image: goal12,
         
     | 
| 
      
 11413 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11414 
     | 
    
         
            +
                        activeImage: goal12Selected,
         
     | 
| 
      
 11415 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11416 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11417 
     | 
    
         
            +
                        name: exports.SdgGoals.climateAction,
         
     | 
| 
      
 11418 
     | 
    
         
            +
                        image: goal13,
         
     | 
| 
      
 11419 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11420 
     | 
    
         
            +
                        activeImage: goal13Selected,
         
     | 
| 
      
 11421 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11422 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11423 
     | 
    
         
            +
                        name: exports.SdgGoals.lifeBelowWater,
         
     | 
| 
      
 11424 
     | 
    
         
            +
                        image: goal14,
         
     | 
| 
      
 11425 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11426 
     | 
    
         
            +
                        activeImage: goal14Selected,
         
     | 
| 
      
 11427 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11428 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11429 
     | 
    
         
            +
                        name: exports.SdgGoals.lifeOnLand,
         
     | 
| 
      
 11430 
     | 
    
         
            +
                        image: goal15,
         
     | 
| 
      
 11431 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11432 
     | 
    
         
            +
                        activeImage: goal15Selected,
         
     | 
| 
      
 11433 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11434 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11435 
     | 
    
         
            +
                        name: exports.SdgGoals.peace,
         
     | 
| 
      
 11436 
     | 
    
         
            +
                        image: goal16,
         
     | 
| 
      
 11437 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11438 
     | 
    
         
            +
                        activeImage: goal16Selected,
         
     | 
| 
      
 11439 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11440 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11441 
     | 
    
         
            +
                        name: exports.SdgGoals.partnership,
         
     | 
| 
      
 11442 
     | 
    
         
            +
                        image: goal17,
         
     | 
| 
      
 11443 
     | 
    
         
            +
                        selected: false,
         
     | 
| 
      
 11444 
     | 
    
         
            +
                        activeImage: goal17Selected,
         
     | 
| 
      
 11445 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11446 
     | 
    
         
            +
                ]), sdgGoals = _a[0], setSdgGoals = _a[1];
         
     | 
| 
      
 11447 
     | 
    
         
            +
                var handleImageSelect = function (imageId) {
         
     | 
| 
      
 11448 
     | 
    
         
            +
                    var g = sdgGoalMap[imageId];
         
     | 
| 
      
 11449 
     | 
    
         
            +
                    if (!g) {
         
     | 
| 
      
 11450 
     | 
    
         
            +
                        return;
         
     | 
| 
      
 11451 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11452 
     | 
    
         
            +
                    g.selected = !g.selected;
         
     | 
| 
      
 11453 
     | 
    
         
            +
                    var u = __spreadArray([], sdgGoals, true);
         
     | 
| 
      
 11454 
     | 
    
         
            +
                    setSdgGoals(u);
         
     | 
| 
      
 11455 
     | 
    
         
            +
                };
         
     | 
| 
      
 11456 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 11457 
     | 
    
         
            +
                    for (var _i = 0, sdgGoals_1 = sdgGoals; _i < sdgGoals_1.length; _i++) {
         
     | 
| 
      
 11458 
     | 
    
         
            +
                        var g = sdgGoals_1[_i];
         
     | 
| 
      
 11459 
     | 
    
         
            +
                        sdgGoalMap[g.name] = g;
         
     | 
| 
      
 11460 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11461 
     | 
    
         
            +
                }, []);
         
     | 
| 
      
 11462 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 11463 
     | 
    
         
            +
                    if (sdgGoalsViewData) {
         
     | 
| 
      
 11464 
     | 
    
         
            +
                        for (var _i = 0, sdgGoalsViewData_1 = sdgGoalsViewData; _i < sdgGoalsViewData_1.length; _i++) {
         
     | 
| 
      
 11465 
     | 
    
         
            +
                            var g = sdgGoalsViewData_1[_i];
         
     | 
| 
      
 11466 
     | 
    
         
            +
                            var sdg = sdgGoalMap[g];
         
     | 
| 
      
 11467 
     | 
    
         
            +
                            if (sdg) {
         
     | 
| 
      
 11468 
     | 
    
         
            +
                                sdg.selected = true;
         
     | 
| 
      
 11469 
     | 
    
         
            +
                            }
         
     | 
| 
      
 11470 
     | 
    
         
            +
                            else {
         
     | 
| 
      
 11471 
     | 
    
         
            +
                                console.log("AAA", g);
         
     | 
| 
      
 11472 
     | 
    
         
            +
                            }
         
     | 
| 
      
 11473 
     | 
    
         
            +
                        }
         
     | 
| 
      
 11474 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11475 
     | 
    
         
            +
                    else {
         
     | 
| 
      
 11476 
     | 
    
         
            +
                        for (var _a = 0, sdgGoals_2 = sdgGoals; _a < sdgGoals_2.length; _a++) {
         
     | 
| 
      
 11477 
     | 
    
         
            +
                            var g = sdgGoals_2[_a];
         
     | 
| 
      
 11478 
     | 
    
         
            +
                            g.selected = false;
         
     | 
| 
      
 11479 
     | 
    
         
            +
                        }
         
     | 
| 
      
 11480 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11481 
     | 
    
         
            +
                    console.log(sdgGoalMap);
         
     | 
| 
      
 11482 
     | 
    
         
            +
                    var updatedSdgGoals = Object.values(sdgGoalMap);
         
     | 
| 
      
 11483 
     | 
    
         
            +
                    setSdgGoals(updatedSdgGoals);
         
     | 
| 
      
 11484 
     | 
    
         
            +
                }, [sdgGoalsViewData]);
         
     | 
| 
      
 11485 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 11486 
     | 
    
         
            +
                    var saveData = [];
         
     | 
| 
      
 11487 
     | 
    
         
            +
                    for (var _i = 0, sdgGoals_3 = sdgGoals; _i < sdgGoals_3.length; _i++) {
         
     | 
| 
      
 11488 
     | 
    
         
            +
                        var g = sdgGoals_3[_i];
         
     | 
| 
      
 11489 
     | 
    
         
            +
                        if (g.selected) {
         
     | 
| 
      
 11490 
     | 
    
         
            +
                            saveData.push(g.name.toString());
         
     | 
| 
      
 11491 
     | 
    
         
            +
                        }
         
     | 
| 
      
 11492 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11493 
     | 
    
         
            +
                    onFormSubmit(saveData);
         
     | 
| 
      
 11494 
     | 
    
         
            +
                }, [sdgGoals]);
         
     | 
| 
      
 11495 
     | 
    
         
            +
                return (React.createElement("div", { className: "co-benifits-tab-item" },
         
     | 
| 
      
 11496 
     | 
    
         
            +
                    React.createElement(antd.Form, { name: "sdg-goals-details", className: "benifits-details-sdg-goals", form: formOne },
         
     | 
| 
      
 11497 
     | 
    
         
            +
                        React.createElement(antd.Row, { gutter: [5, 16], className: "row" }, sdgGoals === null || sdgGoals === void 0 ? void 0 : sdgGoals.map(function (sdgGoal) { return (React.createElement(antd.Col, { sm: 12, md: 12, lg: 4, xl: 4, className: "col" },
         
     | 
| 
      
 11498 
     | 
    
         
            +
                            React.createElement("div", { className: sdgGoalsViewData ? "img-container-data" : "img-container" },
         
     | 
| 
      
 11499 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { name: "images" },
         
     | 
| 
      
 11500 
     | 
    
         
            +
                                    !sdgGoal.selected && (React.createElement("img", { src: sdgGoal === null || sdgGoal === void 0 ? void 0 : sdgGoal.image, alt: "Image ".concat(sdgGoal === null || sdgGoal === void 0 ? void 0 : sdgGoal.name), onClick: function () {
         
     | 
| 
      
 11501 
     | 
    
         
            +
                                            return !viewOnly && handleImageSelect(sdgGoal === null || sdgGoal === void 0 ? void 0 : sdgGoal.name);
         
     | 
| 
      
 11502 
     | 
    
         
            +
                                        } })),
         
     | 
| 
      
 11503 
     | 
    
         
            +
                                    sdgGoal.selected && (React.createElement("img", { src: sdgGoal === null || sdgGoal === void 0 ? void 0 : sdgGoal.activeImage, alt: "Image ".concat(sdgGoal === null || sdgGoal === void 0 ? void 0 : sdgGoal.name), onClick: function () {
         
     | 
| 
      
 11504 
     | 
    
         
            +
                                            return !viewOnly && handleImageSelect(sdgGoal === null || sdgGoal === void 0 ? void 0 : sdgGoal.name);
         
     | 
| 
      
 11505 
     | 
    
         
            +
                                        } })))))); })))));
         
     | 
| 
      
 11506 
     | 
    
         
            +
            };
         
     | 
| 
      
 11507 
     | 
    
         
            +
             
     | 
| 
      
 11508 
     | 
    
         
            +
            var Safeguards = function (props) {
         
     | 
| 
      
 11509 
     | 
    
         
            +
                var onFormSubmit = props.onFormSubmit, safeGuardViewData = props.safeGuardViewData, viewOnly = props.viewOnly, t = props.t;
         
     | 
| 
      
 11510 
     | 
    
         
            +
                var _a = React.useState(), safeguardDetails = _a[0], setSafeguardDetails = _a[1];
         
     | 
| 
      
 11511 
     | 
    
         
            +
                var form = antd.Form.useForm()[0];
         
     | 
| 
      
 11512 
     | 
    
         
            +
                var initialFormElementList = [
         
     | 
| 
      
 11513 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11514 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11515 
     | 
    
         
            +
                        label: t("humanRights"),
         
     | 
| 
      
 11516 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11517 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11518 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11519 
     | 
    
         
            +
                                label: t("isRespectHumanRights"),
         
     | 
| 
      
 11520 
     | 
    
         
            +
                                name: "isRespectHumanRights",
         
     | 
| 
      
 11521 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11522 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11523 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11524 
     | 
    
         
            +
                                label: t("isProjectdiscriminate"),
         
     | 
| 
      
 11525 
     | 
    
         
            +
                                name: "isProjectdiscriminate",
         
     | 
| 
      
 11526 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11527 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11528 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11529 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11530 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11531 
     | 
    
         
            +
                        label: t("genderEquality"),
         
     | 
| 
      
 11532 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11533 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11534 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11535 
     | 
    
         
            +
                                label: t("genderEqualityQ1"),
         
     | 
| 
      
 11536 
     | 
    
         
            +
                                name: "genderEqualityQ1",
         
     | 
| 
      
 11537 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11538 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11539 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11540 
     | 
    
         
            +
                                label: t("genderEqualityQ2"),
         
     | 
| 
      
 11541 
     | 
    
         
            +
                                name: "genderEqualityQ2",
         
     | 
| 
      
 11542 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11543 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11544 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11545 
     | 
    
         
            +
                                label: t("genderEqualityQ3"),
         
     | 
| 
      
 11546 
     | 
    
         
            +
                                name: "genderEqualityQ3",
         
     | 
| 
      
 11547 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11548 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11549 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11550 
     | 
    
         
            +
                                label: t("genderEqualityQ4"),
         
     | 
| 
      
 11551 
     | 
    
         
            +
                                name: "genderEqualityQ4",
         
     | 
| 
      
 11552 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11553 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11554 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11555 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11556 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11557 
     | 
    
         
            +
                        label: t("communityHealth"),
         
     | 
| 
      
 11558 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11559 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11560 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11561 
     | 
    
         
            +
                                label: t("communityHealthQ1"),
         
     | 
| 
      
 11562 
     | 
    
         
            +
                                name: "communityHealthQ1",
         
     | 
| 
      
 11563 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11564 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11565 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11566 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11567 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11568 
     | 
    
         
            +
                        label: t("historicHeritage"),
         
     | 
| 
      
 11569 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11570 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11571 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11572 
     | 
    
         
            +
                                label: t("historicHeritageQ1"),
         
     | 
| 
      
 11573 
     | 
    
         
            +
                                name: "historicHeritageQ1",
         
     | 
| 
      
 11574 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11575 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11576 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11577 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11578 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11579 
     | 
    
         
            +
                        label: t("forcedEviction"),
         
     | 
| 
      
 11580 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11581 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11582 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11583 
     | 
    
         
            +
                                label: t("forcedEvictionQ1"),
         
     | 
| 
      
 11584 
     | 
    
         
            +
                                name: "forcedEvictionQ1",
         
     | 
| 
      
 11585 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11586 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11587 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11588 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11589 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11590 
     | 
    
         
            +
                        label: t("landTenure"),
         
     | 
| 
      
 11591 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11592 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11593 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11594 
     | 
    
         
            +
                                label: t("landTenureQ1"),
         
     | 
| 
      
 11595 
     | 
    
         
            +
                                name: "landTenureQ1",
         
     | 
| 
      
 11596 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11597 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11598 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11599 
     | 
    
         
            +
                                label: t("landTenureQ2"),
         
     | 
| 
      
 11600 
     | 
    
         
            +
                                name: "landTenureQ2",
         
     | 
| 
      
 11601 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11602 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11603 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11604 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11605 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11606 
     | 
    
         
            +
                        label: t("indegenousPeople"),
         
     | 
| 
      
 11607 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11608 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11609 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11610 
     | 
    
         
            +
                                label: t("indegenousPeopleQ1"),
         
     | 
| 
      
 11611 
     | 
    
         
            +
                                name: "indegenousPeopleQ1",
         
     | 
| 
      
 11612 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11613 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11614 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11615 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11616 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11617 
     | 
    
         
            +
                        label: t("corruption"),
         
     | 
| 
      
 11618 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11619 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11620 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11621 
     | 
    
         
            +
                                label: t("corruptionQ1"),
         
     | 
| 
      
 11622 
     | 
    
         
            +
                                name: "corruptionQ1",
         
     | 
| 
      
 11623 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11624 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11625 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11626 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11627 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11628 
     | 
    
         
            +
                        label: t("labourRights"),
         
     | 
| 
      
 11629 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11630 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11631 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11632 
     | 
    
         
            +
                                label: t("labourRightsQ1"),
         
     | 
| 
      
 11633 
     | 
    
         
            +
                                name: "labourRightsQ1",
         
     | 
| 
      
 11634 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11635 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11636 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11637 
     | 
    
         
            +
                                label: t("labourRightsQ2"),
         
     | 
| 
      
 11638 
     | 
    
         
            +
                                name: "labourRightsQ2",
         
     | 
| 
      
 11639 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11640 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11641 
     | 
    
         
            +
                                type: exports.FormElementType.Label,
         
     | 
| 
      
 11642 
     | 
    
         
            +
                                label: t("labourRightsSubLabel"),
         
     | 
| 
      
 11643 
     | 
    
         
            +
                                className: "mg-left-2",
         
     | 
| 
      
 11644 
     | 
    
         
            +
                                items: [
         
     | 
| 
      
 11645 
     | 
    
         
            +
                                    {
         
     | 
| 
      
 11646 
     | 
    
         
            +
                                        type: exports.FormElementType.Radio,
         
     | 
| 
      
 11647 
     | 
    
         
            +
                                        label: t("labourRightsSubQ1"),
         
     | 
| 
      
 11648 
     | 
    
         
            +
                                        name: "labourRightsSubQ1",
         
     | 
| 
      
 11649 
     | 
    
         
            +
                                        className: "mg-left-4",
         
     | 
| 
      
 11650 
     | 
    
         
            +
                                    },
         
     | 
| 
      
 11651 
     | 
    
         
            +
                                    {
         
     | 
| 
      
 11652 
     | 
    
         
            +
                                        type: exports.FormElementType.Radio,
         
     | 
| 
      
 11653 
     | 
    
         
            +
                                        label: t("labourRightsSubQ2"),
         
     | 
| 
      
 11654 
     | 
    
         
            +
                                        name: "labourRightsSubQ2",
         
     | 
| 
      
 11655 
     | 
    
         
            +
                                        className: "mg-left-4",
         
     | 
| 
      
 11656 
     | 
    
         
            +
                                    },
         
     | 
| 
      
 11657 
     | 
    
         
            +
                                    {
         
     | 
| 
      
 11658 
     | 
    
         
            +
                                        type: exports.FormElementType.Radio,
         
     | 
| 
      
 11659 
     | 
    
         
            +
                                        label: t("labourRightsSubQ3"),
         
     | 
| 
      
 11660 
     | 
    
         
            +
                                        name: "labourRightsSubQ3",
         
     | 
| 
      
 11661 
     | 
    
         
            +
                                        className: "mg-left-4",
         
     | 
| 
      
 11662 
     | 
    
         
            +
                                    },
         
     | 
| 
      
 11663 
     | 
    
         
            +
                                    {
         
     | 
| 
      
 11664 
     | 
    
         
            +
                                        type: exports.FormElementType.Radio,
         
     | 
| 
      
 11665 
     | 
    
         
            +
                                        label: t("labourRightsSubQ4"),
         
     | 
| 
      
 11666 
     | 
    
         
            +
                                        name: "labourRightsSubQ4",
         
     | 
| 
      
 11667 
     | 
    
         
            +
                                        className: "mg-left-4",
         
     | 
| 
      
 11668 
     | 
    
         
            +
                                    },
         
     | 
| 
      
 11669 
     | 
    
         
            +
                                    {
         
     | 
| 
      
 11670 
     | 
    
         
            +
                                        type: exports.FormElementType.Radio,
         
     | 
| 
      
 11671 
     | 
    
         
            +
                                        label: t("labourRightsSubQ5"),
         
     | 
| 
      
 11672 
     | 
    
         
            +
                                        name: "labourRightsSubQ5",
         
     | 
| 
      
 11673 
     | 
    
         
            +
                                        className: "mg-left-4",
         
     | 
| 
      
 11674 
     | 
    
         
            +
                                    },
         
     | 
| 
      
 11675 
     | 
    
         
            +
                                    {
         
     | 
| 
      
 11676 
     | 
    
         
            +
                                        type: exports.FormElementType.Radio,
         
     | 
| 
      
 11677 
     | 
    
         
            +
                                        label: t("labourRightsSubQ6"),
         
     | 
| 
      
 11678 
     | 
    
         
            +
                                        name: "labourRightsSubQ6",
         
     | 
| 
      
 11679 
     | 
    
         
            +
                                        className: "mg-left-4",
         
     | 
| 
      
 11680 
     | 
    
         
            +
                                    },
         
     | 
| 
      
 11681 
     | 
    
         
            +
                                ],
         
     | 
| 
      
 11682 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11683 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11684 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11685 
     | 
    
         
            +
                                label: t("labourRightsQ3"),
         
     | 
| 
      
 11686 
     | 
    
         
            +
                                name: "labourRightsQ3",
         
     | 
| 
      
 11687 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11688 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11689 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11690 
     | 
    
         
            +
                                label: t("labourRightsQ4"),
         
     | 
| 
      
 11691 
     | 
    
         
            +
                                name: "labourRightsQ4",
         
     | 
| 
      
 11692 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11693 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11694 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11695 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11696 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11697 
     | 
    
         
            +
                        label: t("economicConsequences"),
         
     | 
| 
      
 11698 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11699 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11700 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11701 
     | 
    
         
            +
                                label: t("economicConsequencesQ1"),
         
     | 
| 
      
 11702 
     | 
    
         
            +
                                name: "economicConsequencesQ1",
         
     | 
| 
      
 11703 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11704 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11705 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11706 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11707 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11708 
     | 
    
         
            +
                        label: t("emissions"),
         
     | 
| 
      
 11709 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11710 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11711 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11712 
     | 
    
         
            +
                                label: t("emissionsQ1"),
         
     | 
| 
      
 11713 
     | 
    
         
            +
                                name: "emissionsQ1",
         
     | 
| 
      
 11714 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11715 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11716 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11717 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11718 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11719 
     | 
    
         
            +
                        label: t("energySupply"),
         
     | 
| 
      
 11720 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11721 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11722 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11723 
     | 
    
         
            +
                                label: t("energySupplyQ1"),
         
     | 
| 
      
 11724 
     | 
    
         
            +
                                name: "energySupplyQ1",
         
     | 
| 
      
 11725 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11726 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11727 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11728 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11729 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11730 
     | 
    
         
            +
                        label: t("waterPattern"),
         
     | 
| 
      
 11731 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11732 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11733 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11734 
     | 
    
         
            +
                                label: t("waterPatternQ1"),
         
     | 
| 
      
 11735 
     | 
    
         
            +
                                name: "waterPatternQ1",
         
     | 
| 
      
 11736 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11737 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11738 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11739 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11740 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11741 
     | 
    
         
            +
                        label: t("erosoin"),
         
     | 
| 
      
 11742 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11743 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11744 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11745 
     | 
    
         
            +
                                label: t("erosoinQ1"),
         
     | 
| 
      
 11746 
     | 
    
         
            +
                                name: "erosoinQ1",
         
     | 
| 
      
 11747 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11748 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11749 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11750 
     | 
    
         
            +
                                label: t("erosoinQ2"),
         
     | 
| 
      
 11751 
     | 
    
         
            +
                                name: "erosoinQ2",
         
     | 
| 
      
 11752 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11753 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11754 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11755 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11756 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11757 
     | 
    
         
            +
                        label: t("landscape"),
         
     | 
| 
      
 11758 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11759 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11760 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11761 
     | 
    
         
            +
                                label: t("landscapeQ1"),
         
     | 
| 
      
 11762 
     | 
    
         
            +
                                name: "landscapeQ1",
         
     | 
| 
      
 11763 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11764 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11765 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11766 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11767 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11768 
     | 
    
         
            +
                        label: t("naturalDisaster"),
         
     | 
| 
      
 11769 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11770 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11771 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11772 
     | 
    
         
            +
                                label: t("naturalDisasterQ1"),
         
     | 
| 
      
 11773 
     | 
    
         
            +
                                name: "naturalDisasterQ1",
         
     | 
| 
      
 11774 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11775 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11776 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11777 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11778 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11779 
     | 
    
         
            +
                        label: t("genetic"),
         
     | 
| 
      
 11780 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11781 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11782 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11783 
     | 
    
         
            +
                                label: t("geneticQ1"),
         
     | 
| 
      
 11784 
     | 
    
         
            +
                                name: "geneticQ1",
         
     | 
| 
      
 11785 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11786 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11787 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11788 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11789 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11790 
     | 
    
         
            +
                        label: t("pollutants"),
         
     | 
| 
      
 11791 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11792 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11793 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11794 
     | 
    
         
            +
                                label: t("pollutantsQ1"),
         
     | 
| 
      
 11795 
     | 
    
         
            +
                                name: "pollutantsQ1",
         
     | 
| 
      
 11796 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11797 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11798 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11799 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11800 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11801 
     | 
    
         
            +
                        label: t("hazardousWaste"),
         
     | 
| 
      
 11802 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11803 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11804 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11805 
     | 
    
         
            +
                                label: t("hazardousWasteQ1"),
         
     | 
| 
      
 11806 
     | 
    
         
            +
                                name: "hazardousWasteQ1",
         
     | 
| 
      
 11807 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11808 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11809 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11810 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11811 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11812 
     | 
    
         
            +
                        label: t("pesticides"),
         
     | 
| 
      
 11813 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11814 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11815 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11816 
     | 
    
         
            +
                                label: t("pesticidesQ1"),
         
     | 
| 
      
 11817 
     | 
    
         
            +
                                name: "pesticidesQ1",
         
     | 
| 
      
 11818 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11819 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11820 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11821 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11822 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11823 
     | 
    
         
            +
                        label: t("harvestForests"),
         
     | 
| 
      
 11824 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11825 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11826 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11827 
     | 
    
         
            +
                                label: t("harvestForestsQ1"),
         
     | 
| 
      
 11828 
     | 
    
         
            +
                                name: "harvestForestsQ1",
         
     | 
| 
      
 11829 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11830 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11831 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11832 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11833 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11834 
     | 
    
         
            +
                        label: t("food"),
         
     | 
| 
      
 11835 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11836 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11837 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11838 
     | 
    
         
            +
                                label: t("foodQ1"),
         
     | 
| 
      
 11839 
     | 
    
         
            +
                                name: "foodQ1",
         
     | 
| 
      
 11840 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11841 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11842 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11843 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11844 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11845 
     | 
    
         
            +
                        label: t("animalHusbandry"),
         
     | 
| 
      
 11846 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11847 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11848 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11849 
     | 
    
         
            +
                                label: t("animalHusbandryQ1"),
         
     | 
| 
      
 11850 
     | 
    
         
            +
                                name: "animalHusbandryQ1",
         
     | 
| 
      
 11851 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11852 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11853 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11854 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11855 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11856 
     | 
    
         
            +
                        label: t("criticalHabitats"),
         
     | 
| 
      
 11857 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11858 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11859 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11860 
     | 
    
         
            +
                                label: t("criticalHabitatsQ1"),
         
     | 
| 
      
 11861 
     | 
    
         
            +
                                name: "criticalHabitatsQ1",
         
     | 
| 
      
 11862 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11863 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11864 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11865 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11866 
     | 
    
         
            +
                        type: exports.FormElementType.Label,
         
     | 
| 
      
 11867 
     | 
    
         
            +
                        label: t("endangeredSpecies"),
         
     | 
| 
      
 11868 
     | 
    
         
            +
                        items: [
         
     | 
| 
      
 11869 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11870 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11871 
     | 
    
         
            +
                                label: t("endangeredSpeciesQ1"),
         
     | 
| 
      
 11872 
     | 
    
         
            +
                                name: "endangeredSpeciesQ1",
         
     | 
| 
      
 11873 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11874 
     | 
    
         
            +
                            {
         
     | 
| 
      
 11875 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 11876 
     | 
    
         
            +
                                label: t("endangeredSpeciesQ2"),
         
     | 
| 
      
 11877 
     | 
    
         
            +
                                name: "endangeredSpeciesQ2",
         
     | 
| 
      
 11878 
     | 
    
         
            +
                            },
         
     | 
| 
      
 11879 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 11880 
     | 
    
         
            +
                    },
         
     | 
| 
      
 11881 
     | 
    
         
            +
                ];
         
     | 
| 
      
 11882 
     | 
    
         
            +
                var _b = React.useState(initialFormElementList), updatedFormElementList = _b[0], setUpdatedFormElementList = _b[1];
         
     | 
| 
      
 11883 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 11884 
     | 
    
         
            +
                    onFormSubmit(safeguardDetails);
         
     | 
| 
      
 11885 
     | 
    
         
            +
                }, [safeguardDetails]);
         
     | 
| 
      
 11886 
     | 
    
         
            +
                var checkFormItemValueAvailable = function (valueitem) {
         
     | 
| 
      
 11887 
     | 
    
         
            +
                    if (valueitem && safeGuardViewData) {
         
     | 
| 
      
 11888 
     | 
    
         
            +
                        if (safeGuardViewData.hasOwnProperty(valueitem.name)) {
         
     | 
| 
      
 11889 
     | 
    
         
            +
                            return true;
         
     | 
| 
      
 11890 
     | 
    
         
            +
                        }
         
     | 
| 
      
 11891 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11892 
     | 
    
         
            +
                    return false;
         
     | 
| 
      
 11893 
     | 
    
         
            +
                };
         
     | 
| 
      
 11894 
     | 
    
         
            +
                var checkFormSubHeaderVisible = function (labelItem) {
         
     | 
| 
      
 11895 
     | 
    
         
            +
                    var updatedLabelItem = labelItem;
         
     | 
| 
      
 11896 
     | 
    
         
            +
                    var isItemVisible = false;
         
     | 
| 
      
 11897 
     | 
    
         
            +
                    if (labelItem && labelItem.items) {
         
     | 
| 
      
 11898 
     | 
    
         
            +
                        labelItem.items.forEach(function (item) {
         
     | 
| 
      
 11899 
     | 
    
         
            +
                            if (item.type === exports.FormElementType.Radio) {
         
     | 
| 
      
 11900 
     | 
    
         
            +
                                if (checkFormItemValueAvailable(item)) {
         
     | 
| 
      
 11901 
     | 
    
         
            +
                                    updatedLabelItem = __assign(__assign({}, labelItem), { isVisible: true });
         
     | 
| 
      
 11902 
     | 
    
         
            +
                                    isItemVisible = true;
         
     | 
| 
      
 11903 
     | 
    
         
            +
                                }
         
     | 
| 
      
 11904 
     | 
    
         
            +
                            }
         
     | 
| 
      
 11905 
     | 
    
         
            +
                            else {
         
     | 
| 
      
 11906 
     | 
    
         
            +
                                var updated = checkFormSubHeaderVisible(item);
         
     | 
| 
      
 11907 
     | 
    
         
            +
                                if (updated.isVisible)
         
     | 
| 
      
 11908 
     | 
    
         
            +
                                    isItemVisible = true;
         
     | 
| 
      
 11909 
     | 
    
         
            +
                                var objIndex = labelItem.items.findIndex(function (obj) { return obj.type === exports.FormElementType.Label; });
         
     | 
| 
      
 11910 
     | 
    
         
            +
                                labelItem.items[objIndex] = updated;
         
     | 
| 
      
 11911 
     | 
    
         
            +
                                updatedLabelItem = __assign({}, labelItem);
         
     | 
| 
      
 11912 
     | 
    
         
            +
                            }
         
     | 
| 
      
 11913 
     | 
    
         
            +
                        });
         
     | 
| 
      
 11914 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11915 
     | 
    
         
            +
                    return __assign(__assign({}, updatedLabelItem), { isVisible: isItemVisible });
         
     | 
| 
      
 11916 
     | 
    
         
            +
                };
         
     | 
| 
      
 11917 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 11918 
     | 
    
         
            +
                    if (viewOnly && safeGuardViewData) {
         
     | 
| 
      
 11919 
     | 
    
         
            +
                        var updatedList = initialFormElementList.map(function (headerItem) {
         
     | 
| 
      
 11920 
     | 
    
         
            +
                            return checkFormSubHeaderVisible(headerItem);
         
     | 
| 
      
 11921 
     | 
    
         
            +
                        });
         
     | 
| 
      
 11922 
     | 
    
         
            +
                        setUpdatedFormElementList(updatedList);
         
     | 
| 
      
 11923 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11924 
     | 
    
         
            +
                    else {
         
     | 
| 
      
 11925 
     | 
    
         
            +
                        if (safeGuardViewData) {
         
     | 
| 
      
 11926 
     | 
    
         
            +
                            setSafeguardDetails(safeGuardViewData);
         
     | 
| 
      
 11927 
     | 
    
         
            +
                            form.setFieldsValue(safeGuardViewData);
         
     | 
| 
      
 11928 
     | 
    
         
            +
                        }
         
     | 
| 
      
 11929 
     | 
    
         
            +
                    }
         
     | 
| 
      
 11930 
     | 
    
         
            +
                }, [safeGuardViewData]);
         
     | 
| 
      
 11931 
     | 
    
         
            +
                var onSafeguardValuesChanged = function (changedValues) {
         
     | 
| 
      
 11932 
     | 
    
         
            +
                    setSafeguardDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
         
     | 
| 
      
 11933 
     | 
    
         
            +
                };
         
     | 
| 
      
 11934 
     | 
    
         
            +
                return (React.createElement(React.Fragment, null,
         
     | 
| 
      
 11935 
     | 
    
         
            +
                    viewOnly && !safeGuardViewData && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
         
     | 
| 
      
 11936 
     | 
    
         
            +
                    ((viewOnly && safeGuardViewData) || !viewOnly) && (React.createElement("div", { className: "safeguard-tab-item" },
         
     | 
| 
      
 11937 
     | 
    
         
            +
                        React.createElement(antd.Form, { onValuesChange: onSafeguardValuesChanged, name: "safeguardDetails", labelWrap: true, labelAlign: "left", labelCol: { md: 16, lg: 18, xl: 18 }, wrapperCol: { md: 8, lg: 6, xl: 6 }, layout: "horizontal", form: form }, updatedFormElementList.map(function (sectionItem) {
         
     | 
| 
      
 11938 
     | 
    
         
            +
                            return (React.createElement(React.Fragment, null,
         
     | 
| 
      
 11939 
     | 
    
         
            +
                                (sectionItem.isVisible || !viewOnly) && (React.createElement("div", { style: { marginBottom: "15px" } },
         
     | 
| 
      
 11940 
     | 
    
         
            +
                                    React.createElement("label", { className: "co-sub-title-text" }, sectionItem.label))),
         
     | 
| 
      
 11941 
     | 
    
         
            +
                                sectionItem.items.map(function (item) {
         
     | 
| 
      
 11942 
     | 
    
         
            +
                                    if (item.type === exports.FormElementType.Radio) {
         
     | 
| 
      
 11943 
     | 
    
         
            +
                                        return (React.createElement(React.Fragment, null,
         
     | 
| 
      
 11944 
     | 
    
         
            +
                                            !viewOnly && (React.createElement(antd.Form.Item, { label: item === null || item === void 0 ? void 0 : item.label, className: item.className
         
     | 
| 
      
 11945 
     | 
    
         
            +
                                                    ? item.className
         
     | 
| 
      
 11946 
     | 
    
         
            +
                                                    : "form-item mg-left-2", name: item === null || item === void 0 ? void 0 : item.name, rules: [
         
     | 
| 
      
 11947 
     | 
    
         
            +
                                                    {
         
     | 
| 
      
 11948 
     | 
    
         
            +
                                                        required: false,
         
     | 
| 
      
 11949 
     | 
    
         
            +
                                                    },
         
     | 
| 
      
 11950 
     | 
    
         
            +
                                                ] },
         
     | 
| 
      
 11951 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Group, { size: "middle" },
         
     | 
| 
      
 11952 
     | 
    
         
            +
                                                    React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11953 
     | 
    
         
            +
                                                        React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.YES }, t("yes"))),
         
     | 
| 
      
 11954 
     | 
    
         
            +
                                                    React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11955 
     | 
    
         
            +
                                                        React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.MAYBE }, t("maybe"))),
         
     | 
| 
      
 11956 
     | 
    
         
            +
                                                    React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11957 
     | 
    
         
            +
                                                        React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.NO }, t("no")))))),
         
     | 
| 
      
 11958 
     | 
    
         
            +
                                            viewOnly &&
         
     | 
| 
      
 11959 
     | 
    
         
            +
                                                safeGuardViewData.hasOwnProperty(item === null || item === void 0 ? void 0 : item.name) && (React.createElement("div", { className: "view-section" },
         
     | 
| 
      
 11960 
     | 
    
         
            +
                                                React.createElement(antd.Form.Item, { label: item === null || item === void 0 ? void 0 : item.label, className: item.className
         
     | 
| 
      
 11961 
     | 
    
         
            +
                                                        ? item.className
         
     | 
| 
      
 11962 
     | 
    
         
            +
                                                        : "form-item mg-left-2", name: item === null || item === void 0 ? void 0 : item.name },
         
     | 
| 
      
 11963 
     | 
    
         
            +
                                                    React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
         
     | 
| 
      
 11964 
     | 
    
         
            +
                                                        React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11965 
     | 
    
         
            +
                                                            React.createElement(antd.Radio.Button, { className: "radio" }, safeGuardViewData[item === null || item === void 0 ? void 0 : item.name]))))))));
         
     | 
| 
      
 11966 
     | 
    
         
            +
                                    }
         
     | 
| 
      
 11967 
     | 
    
         
            +
                                    else if (item.type === exports.FormElementType.Label) {
         
     | 
| 
      
 11968 
     | 
    
         
            +
                                        return (React.createElement(React.Fragment, null,
         
     | 
| 
      
 11969 
     | 
    
         
            +
                                            (item.isVisible || !viewOnly) && (React.createElement("div", { style: { marginBottom: "15px" } },
         
     | 
| 
      
 11970 
     | 
    
         
            +
                                                React.createElement("label", { className: "co-sub-title-text mg-left-2" }, item.label))),
         
     | 
| 
      
 11971 
     | 
    
         
            +
                                            item.items.map(function (subItem) {
         
     | 
| 
      
 11972 
     | 
    
         
            +
                                                return (React.createElement(React.Fragment, null,
         
     | 
| 
      
 11973 
     | 
    
         
            +
                                                    !viewOnly && (React.createElement(antd.Form.Item, { label: subItem === null || subItem === void 0 ? void 0 : subItem.label, className: subItem.className
         
     | 
| 
      
 11974 
     | 
    
         
            +
                                                            ? subItem.className
         
     | 
| 
      
 11975 
     | 
    
         
            +
                                                            : "form-item mg-left-2", name: subItem === null || subItem === void 0 ? void 0 : subItem.name, rules: [
         
     | 
| 
      
 11976 
     | 
    
         
            +
                                                            {
         
     | 
| 
      
 11977 
     | 
    
         
            +
                                                                required: false,
         
     | 
| 
      
 11978 
     | 
    
         
            +
                                                            },
         
     | 
| 
      
 11979 
     | 
    
         
            +
                                                        ] },
         
     | 
| 
      
 11980 
     | 
    
         
            +
                                                        React.createElement(antd.Radio.Group, { size: "middle" },
         
     | 
| 
      
 11981 
     | 
    
         
            +
                                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11982 
     | 
    
         
            +
                                                                React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.YES }, t("yes"))),
         
     | 
| 
      
 11983 
     | 
    
         
            +
                                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11984 
     | 
    
         
            +
                                                                React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.MAYBE }, t("maybe"))),
         
     | 
| 
      
 11985 
     | 
    
         
            +
                                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11986 
     | 
    
         
            +
                                                                React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus2.NO }, t("no")))))),
         
     | 
| 
      
 11987 
     | 
    
         
            +
                                                    viewOnly &&
         
     | 
| 
      
 11988 
     | 
    
         
            +
                                                        safeGuardViewData.hasOwnProperty(subItem === null || subItem === void 0 ? void 0 : subItem.name) && (React.createElement("div", { className: "view-section" },
         
     | 
| 
      
 11989 
     | 
    
         
            +
                                                        React.createElement(antd.Form.Item, { label: subItem === null || subItem === void 0 ? void 0 : subItem.label, className: subItem.className
         
     | 
| 
      
 11990 
     | 
    
         
            +
                                                                ? subItem.className
         
     | 
| 
      
 11991 
     | 
    
         
            +
                                                                : "form-item mg-left-2", name: subItem === null || subItem === void 0 ? void 0 : subItem.name },
         
     | 
| 
      
 11992 
     | 
    
         
            +
                                                            React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
         
     | 
| 
      
 11993 
     | 
    
         
            +
                                                                React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 11994 
     | 
    
         
            +
                                                                    React.createElement(antd.Radio.Button, { className: "radio" }, safeGuardViewData[subItem === null || subItem === void 0 ? void 0 : subItem.name]))))))));
         
     | 
| 
      
 11995 
     | 
    
         
            +
                                            })));
         
     | 
| 
      
 11996 
     | 
    
         
            +
                                    }
         
     | 
| 
      
 11997 
     | 
    
         
            +
                                })));
         
     | 
| 
      
 11998 
     | 
    
         
            +
                        }))))));
         
     | 
| 
      
 11999 
     | 
    
         
            +
            };
         
     | 
| 
      
 12000 
     | 
    
         
            +
             
     | 
| 
      
 12001 
     | 
    
         
            +
            var Environmental = function (props) {
         
     | 
| 
      
 12002 
     | 
    
         
            +
                var onFormSubmit = props.onFormSubmit, environmentalViewData = props.environmentalViewData, viewOnly = props.viewOnly, t = props.t;
         
     | 
| 
      
 12003 
     | 
    
         
            +
                var environmentalDetailsInitial = [
         
     | 
| 
      
 12004 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12005 
     | 
    
         
            +
                        section: t("air"),
         
     | 
| 
      
 12006 
     | 
    
         
            +
                        fields: [
         
     | 
| 
      
 12007 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12008 
     | 
    
         
            +
                                name: "airQ1",
         
     | 
| 
      
 12009 
     | 
    
         
            +
                                label: t("airQ1"),
         
     | 
| 
      
 12010 
     | 
    
         
            +
                                hide: false,
         
     | 
| 
      
 12011 
     | 
    
         
            +
                                required: false,
         
     | 
| 
      
 12012 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12013 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12014 
     | 
    
         
            +
                                name: "airQ2",
         
     | 
| 
      
 12015 
     | 
    
         
            +
                                label: t("airQ2"),
         
     | 
| 
      
 12016 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12017 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12018 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12019 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12020 
     | 
    
         
            +
                                name: "airQ3",
         
     | 
| 
      
 12021 
     | 
    
         
            +
                                label: t("airQ3"),
         
     | 
| 
      
 12022 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12023 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12024 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12025 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12026 
     | 
    
         
            +
                                name: "airQ4",
         
     | 
| 
      
 12027 
     | 
    
         
            +
                                label: t("airQ4"),
         
     | 
| 
      
 12028 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12029 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12030 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12031 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12032 
     | 
    
         
            +
                                name: "airQ5",
         
     | 
| 
      
 12033 
     | 
    
         
            +
                                label: t("airQ5"),
         
     | 
| 
      
 12034 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12035 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12036 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12037 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12038 
     | 
    
         
            +
                                name: "airQ6",
         
     | 
| 
      
 12039 
     | 
    
         
            +
                                label: t("airQ6"),
         
     | 
| 
      
 12040 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12041 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12042 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12043 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12044 
     | 
    
         
            +
                                name: "airQ7",
         
     | 
| 
      
 12045 
     | 
    
         
            +
                                label: t("airQ7"),
         
     | 
| 
      
 12046 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12047 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12048 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12049 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12050 
     | 
    
         
            +
                                name: "airQ8",
         
     | 
| 
      
 12051 
     | 
    
         
            +
                                label: t("airQ8"),
         
     | 
| 
      
 12052 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12053 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12054 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12055 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12056 
     | 
    
         
            +
                                name: "airQ9",
         
     | 
| 
      
 12057 
     | 
    
         
            +
                                label: t("airQ9"),
         
     | 
| 
      
 12058 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12059 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12060 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12061 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12062 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12063 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12064 
     | 
    
         
            +
                        section: t("land"),
         
     | 
| 
      
 12065 
     | 
    
         
            +
                        fields: [
         
     | 
| 
      
 12066 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12067 
     | 
    
         
            +
                                name: "landQ1",
         
     | 
| 
      
 12068 
     | 
    
         
            +
                                label: t("landQ1"),
         
     | 
| 
      
 12069 
     | 
    
         
            +
                                hide: false,
         
     | 
| 
      
 12070 
     | 
    
         
            +
                                required: false,
         
     | 
| 
      
 12071 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12072 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12073 
     | 
    
         
            +
                                name: "landQ2",
         
     | 
| 
      
 12074 
     | 
    
         
            +
                                label: t("landQ2"),
         
     | 
| 
      
 12075 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12076 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12077 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12078 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12079 
     | 
    
         
            +
                                name: "landQ3",
         
     | 
| 
      
 12080 
     | 
    
         
            +
                                label: t("landQ3"),
         
     | 
| 
      
 12081 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12082 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12083 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12084 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12085 
     | 
    
         
            +
                                name: "landQ4",
         
     | 
| 
      
 12086 
     | 
    
         
            +
                                label: t("landQ4"),
         
     | 
| 
      
 12087 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12088 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12089 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12090 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12091 
     | 
    
         
            +
                                name: "landQ5",
         
     | 
| 
      
 12092 
     | 
    
         
            +
                                label: t("landQ5"),
         
     | 
| 
      
 12093 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12094 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12095 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12096 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12097 
     | 
    
         
            +
                                name: "landQ6",
         
     | 
| 
      
 12098 
     | 
    
         
            +
                                label: t("landQ6"),
         
     | 
| 
      
 12099 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12100 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12101 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12102 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12103 
     | 
    
         
            +
                                name: "landQ7",
         
     | 
| 
      
 12104 
     | 
    
         
            +
                                label: t("landQ7"),
         
     | 
| 
      
 12105 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12106 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12107 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12108 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12109 
     | 
    
         
            +
                                name: "landQ8",
         
     | 
| 
      
 12110 
     | 
    
         
            +
                                label: t("landQ8"),
         
     | 
| 
      
 12111 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12112 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12113 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12114 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12115 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12116 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12117 
     | 
    
         
            +
                        section: t("water"),
         
     | 
| 
      
 12118 
     | 
    
         
            +
                        fields: [
         
     | 
| 
      
 12119 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12120 
     | 
    
         
            +
                                name: "waterQ1",
         
     | 
| 
      
 12121 
     | 
    
         
            +
                                label: t("waterQ1"),
         
     | 
| 
      
 12122 
     | 
    
         
            +
                                hide: false,
         
     | 
| 
      
 12123 
     | 
    
         
            +
                                required: false,
         
     | 
| 
      
 12124 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12125 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12126 
     | 
    
         
            +
                                name: "waterQ2",
         
     | 
| 
      
 12127 
     | 
    
         
            +
                                label: t("waterQ2"),
         
     | 
| 
      
 12128 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12129 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12130 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12131 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12132 
     | 
    
         
            +
                                name: "waterQ3",
         
     | 
| 
      
 12133 
     | 
    
         
            +
                                label: t("waterQ3"),
         
     | 
| 
      
 12134 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12135 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12136 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12137 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12138 
     | 
    
         
            +
                                name: "waterQ4",
         
     | 
| 
      
 12139 
     | 
    
         
            +
                                label: t("waterQ4"),
         
     | 
| 
      
 12140 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12141 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12142 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12143 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12144 
     | 
    
         
            +
                                name: "waterQ5",
         
     | 
| 
      
 12145 
     | 
    
         
            +
                                label: t("waterQ5"),
         
     | 
| 
      
 12146 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12147 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12148 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12149 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12150 
     | 
    
         
            +
                                name: "waterQ6",
         
     | 
| 
      
 12151 
     | 
    
         
            +
                                label: t("waterQ6"),
         
     | 
| 
      
 12152 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12153 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12154 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12155 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12156 
     | 
    
         
            +
                                name: "waterQ7",
         
     | 
| 
      
 12157 
     | 
    
         
            +
                                label: t("waterQ7"),
         
     | 
| 
      
 12158 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12159 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12160 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12161 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12162 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12163 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12164 
     | 
    
         
            +
                        section: t("naturalResource"),
         
     | 
| 
      
 12165 
     | 
    
         
            +
                        fields: [
         
     | 
| 
      
 12166 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12167 
     | 
    
         
            +
                                name: "naturalResourceQ1",
         
     | 
| 
      
 12168 
     | 
    
         
            +
                                label: t("naturalResourceQ1"),
         
     | 
| 
      
 12169 
     | 
    
         
            +
                                hide: false,
         
     | 
| 
      
 12170 
     | 
    
         
            +
                                required: false,
         
     | 
| 
      
 12171 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12172 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12173 
     | 
    
         
            +
                                name: "naturalResourceQ2",
         
     | 
| 
      
 12174 
     | 
    
         
            +
                                label: t("naturalResourceQ2"),
         
     | 
| 
      
 12175 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12176 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12177 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12178 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12179 
     | 
    
         
            +
                                name: "naturalResourceQ3",
         
     | 
| 
      
 12180 
     | 
    
         
            +
                                label: t("naturalResourceQ3"),
         
     | 
| 
      
 12181 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12182 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12183 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12184 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12185 
     | 
    
         
            +
                                name: "naturalResourceQ4",
         
     | 
| 
      
 12186 
     | 
    
         
            +
                                label: t("naturalResourceQ4"),
         
     | 
| 
      
 12187 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12188 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12189 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12190 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12191 
     | 
    
         
            +
                                name: "naturalResourceQ5",
         
     | 
| 
      
 12192 
     | 
    
         
            +
                                label: t("naturalResourceQ5"),
         
     | 
| 
      
 12193 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12194 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12195 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12196 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12197 
     | 
    
         
            +
                                name: "naturalResourceQ6",
         
     | 
| 
      
 12198 
     | 
    
         
            +
                                label: t("naturalResourceQ6"),
         
     | 
| 
      
 12199 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12200 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12201 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12202 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12203 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12204 
     | 
    
         
            +
                ];
         
     | 
| 
      
 12205 
     | 
    
         
            +
                var formOne = antd.Form.useForm()[0];
         
     | 
| 
      
 12206 
     | 
    
         
            +
                var _a = React.useState(environmentalDetailsInitial), environmentalDetails = _a[0], setEnvironmentalDetails = _a[1];
         
     | 
| 
      
 12207 
     | 
    
         
            +
                var _b = React.useState(); _b[0]; var setEnvironmentalUpdatedDetails = _b[1];
         
     | 
| 
      
 12208 
     | 
    
         
            +
                var _c = React.useState(), environmentalFormDetails = _c[0], setEnvironmentalFormDetails = _c[1];
         
     | 
| 
      
 12209 
     | 
    
         
            +
                var onFieldsChange = function (changedFields) {
         
     | 
| 
      
 12210 
     | 
    
         
            +
                    var _a, _b;
         
     | 
| 
      
 12211 
     | 
    
         
            +
                    var changedFieldName = (_a = changedFields[0]) === null || _a === void 0 ? void 0 : _a.name[0];
         
     | 
| 
      
 12212 
     | 
    
         
            +
                    var changedFieldValue = (_b = changedFields[0]) === null || _b === void 0 ? void 0 : _b.value;
         
     | 
| 
      
 12213 
     | 
    
         
            +
                    if (changedFieldName.includes("1")) {
         
     | 
| 
      
 12214 
     | 
    
         
            +
                        var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
         
     | 
| 
      
 12215 
     | 
    
         
            +
                        var updatedEnvironmentalDetails = __spreadArray([], environmentalDetails, true);
         
     | 
| 
      
 12216 
     | 
    
         
            +
                        var sectionIndex = updatedEnvironmentalDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
         
     | 
| 
      
 12217 
     | 
    
         
            +
                        updatedEnvironmentalDetails[sectionIndex].fields.forEach(function (field) {
         
     | 
| 
      
 12218 
     | 
    
         
            +
                            if (field.name !== changedFieldName) {
         
     | 
| 
      
 12219 
     | 
    
         
            +
                                field.hide = changedFieldValue !== exports.RadioButtonStatus.YES;
         
     | 
| 
      
 12220 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12221 
     | 
    
         
            +
                        });
         
     | 
| 
      
 12222 
     | 
    
         
            +
                        setEnvironmentalDetails(updatedEnvironmentalDetails);
         
     | 
| 
      
 12223 
     | 
    
         
            +
                    }
         
     | 
| 
      
 12224 
     | 
    
         
            +
                };
         
     | 
| 
      
 12225 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 12226 
     | 
    
         
            +
                    onFormSubmit(environmentalFormDetails);
         
     | 
| 
      
 12227 
     | 
    
         
            +
                }, [environmentalFormDetails]);
         
     | 
| 
      
 12228 
     | 
    
         
            +
                var onEnvironmentalValuesChanged = function (changedValues) {
         
     | 
| 
      
 12229 
     | 
    
         
            +
                    setEnvironmentalFormDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
         
     | 
| 
      
 12230 
     | 
    
         
            +
                };
         
     | 
| 
      
 12231 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 12232 
     | 
    
         
            +
                    if (environmentalViewData && viewOnly === true) {
         
     | 
| 
      
 12233 
     | 
    
         
            +
                        var updatedEnvironmentalData = [
         
     | 
| 
      
 12234 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12235 
     | 
    
         
            +
                                section: t("air"),
         
     | 
| 
      
 12236 
     | 
    
         
            +
                                fields: [],
         
     | 
| 
      
 12237 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12238 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12239 
     | 
    
         
            +
                                section: t("land"),
         
     | 
| 
      
 12240 
     | 
    
         
            +
                                fields: [],
         
     | 
| 
      
 12241 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12242 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12243 
     | 
    
         
            +
                                section: t("water"),
         
     | 
| 
      
 12244 
     | 
    
         
            +
                                fields: [],
         
     | 
| 
      
 12245 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12246 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12247 
     | 
    
         
            +
                                section: t("naturalResource"),
         
     | 
| 
      
 12248 
     | 
    
         
            +
                                fields: [],
         
     | 
| 
      
 12249 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12250 
     | 
    
         
            +
                        ];
         
     | 
| 
      
 12251 
     | 
    
         
            +
                        var _loop_1 = function (key) {
         
     | 
| 
      
 12252 
     | 
    
         
            +
                            var section = "";
         
     | 
| 
      
 12253 
     | 
    
         
            +
                            if (String(key).includes("air")) {
         
     | 
| 
      
 12254 
     | 
    
         
            +
                                section = t("air");
         
     | 
| 
      
 12255 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12256 
     | 
    
         
            +
                            else if (String(key).includes("land")) {
         
     | 
| 
      
 12257 
     | 
    
         
            +
                                section = t("land");
         
     | 
| 
      
 12258 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12259 
     | 
    
         
            +
                            else if (String(key).includes("water")) {
         
     | 
| 
      
 12260 
     | 
    
         
            +
                                section = t("water");
         
     | 
| 
      
 12261 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12262 
     | 
    
         
            +
                            else if (String(key).includes("naturalResource")) {
         
     | 
| 
      
 12263 
     | 
    
         
            +
                                section = t("naturalResource");
         
     | 
| 
      
 12264 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12265 
     | 
    
         
            +
                            var environmentalItem = updatedEnvironmentalData.find(function (item) { return item.section === section; });
         
     | 
| 
      
 12266 
     | 
    
         
            +
                            if (environmentalItem) {
         
     | 
| 
      
 12267 
     | 
    
         
            +
                                environmentalItem.fields.push({
         
     | 
| 
      
 12268 
     | 
    
         
            +
                                    name: key,
         
     | 
| 
      
 12269 
     | 
    
         
            +
                                    label: t(key),
         
     | 
| 
      
 12270 
     | 
    
         
            +
                                    hide: false,
         
     | 
| 
      
 12271 
     | 
    
         
            +
                                    value: environmentalViewData[key],
         
     | 
| 
      
 12272 
     | 
    
         
            +
                                });
         
     | 
| 
      
 12273 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12274 
     | 
    
         
            +
                        };
         
     | 
| 
      
 12275 
     | 
    
         
            +
                        for (var key in environmentalViewData) {
         
     | 
| 
      
 12276 
     | 
    
         
            +
                            _loop_1(key);
         
     | 
| 
      
 12277 
     | 
    
         
            +
                        }
         
     | 
| 
      
 12278 
     | 
    
         
            +
                        var filteredEconomicData = updatedEnvironmentalData.filter(function (item) { return item.fields.length > 0; });
         
     | 
| 
      
 12279 
     | 
    
         
            +
                        setEnvironmentalUpdatedDetails(filteredEconomicData);
         
     | 
| 
      
 12280 
     | 
    
         
            +
                        setEnvironmentalDetails(filteredEconomicData);
         
     | 
| 
      
 12281 
     | 
    
         
            +
                        console.log(filteredEconomicData);
         
     | 
| 
      
 12282 
     | 
    
         
            +
                    }
         
     | 
| 
      
 12283 
     | 
    
         
            +
                }, []);
         
     | 
| 
      
 12284 
     | 
    
         
            +
                return (React.createElement("div", { className: "co-benifits-tab-item" },
         
     | 
| 
      
 12285 
     | 
    
         
            +
                    React.createElement(antd.Form, { name: "environmental-details", className: "benifits-details-environmental", labelCol: { md: 16, lg: 19, xl: 17 }, wrapperCol: { md: 8, lg: 5, xl: 7 }, layout: "horizontal", requiredMark: true, form: formOne, onFieldsChange: onFieldsChange, onValuesChange: onEnvironmentalValuesChanged },
         
     | 
| 
      
 12286 
     | 
    
         
            +
                        (environmentalDetails === null || environmentalDetails === void 0 ? void 0 : environmentalDetails.length) === 0 && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
         
     | 
| 
      
 12287 
     | 
    
         
            +
                        React.createElement("div", { className: environmentalViewData ? "section view-section" : "section" }, environmentalDetails === null || environmentalDetails === void 0 ? void 0 : environmentalDetails.map(function (environmentalDetail) {
         
     | 
| 
      
 12288 
     | 
    
         
            +
                            var _a;
         
     | 
| 
      
 12289 
     | 
    
         
            +
                            return (React.createElement(React.Fragment, null,
         
     | 
| 
      
 12290 
     | 
    
         
            +
                                React.createElement("div", { className: "title" }, environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.section), (_a = environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.fields) === null || _a === void 0 ? void 0 :
         
     | 
| 
      
 12291 
     | 
    
         
            +
                                _a.map(function (field, index) {
         
     | 
| 
      
 12292 
     | 
    
         
            +
                                    return !(field === null || field === void 0 ? void 0 : field.hide) && (React.createElement(antd.Form.Item, { label: field === null || field === void 0 ? void 0 : field.label, className: "form-item ".concat(index !== 0 ? "field-margin" : ""), name: field === null || field === void 0 ? void 0 : field.name, rules: [
         
     | 
| 
      
 12293 
     | 
    
         
            +
                                            {
         
     | 
| 
      
 12294 
     | 
    
         
            +
                                                required: field === null || field === void 0 ? void 0 : field.required,
         
     | 
| 
      
 12295 
     | 
    
         
            +
                                                message: (field === null || field === void 0 ? void 0 : field.required) &&
         
     | 
| 
      
 12296 
     | 
    
         
            +
                                                    "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
         
     | 
| 
      
 12297 
     | 
    
         
            +
                                            },
         
     | 
| 
      
 12298 
     | 
    
         
            +
                                        ] },
         
     | 
| 
      
 12299 
     | 
    
         
            +
                                        React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: environmentalViewData && true }, environmentalViewData ? (React.createElement(React.Fragment, null,
         
     | 
| 
      
 12300 
     | 
    
         
            +
                                            (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12301 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
         
     | 
| 
      
 12302 
     | 
    
         
            +
                                            (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12303 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
         
     | 
| 
      
 12304 
     | 
    
         
            +
                                            (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12305 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
         
     | 
| 
      
 12306 
     | 
    
         
            +
                                            React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12307 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
         
     | 
| 
      
 12308 
     | 
    
         
            +
                                            React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12309 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
         
     | 
| 
      
 12310 
     | 
    
         
            +
                                            React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12311 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
         
     | 
| 
      
 12312 
     | 
    
         
            +
                                })));
         
     | 
| 
      
 12313 
     | 
    
         
            +
                        })))));
         
     | 
| 
      
 12314 
     | 
    
         
            +
            };
         
     | 
| 
      
 12315 
     | 
    
         
            +
             
     | 
| 
      
 12316 
     | 
    
         
            +
            var Economic = function (props) {
         
     | 
| 
      
 12317 
     | 
    
         
            +
                var onFormSubmit = props.onFormSubmit, economicViewData = props.economicViewData, viewOnly = props.viewOnly, t = props.t;
         
     | 
| 
      
 12318 
     | 
    
         
            +
                var economicDetailsInitial = [
         
     | 
| 
      
 12319 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12320 
     | 
    
         
            +
                        section: t("growth"),
         
     | 
| 
      
 12321 
     | 
    
         
            +
                        fields: [
         
     | 
| 
      
 12322 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12323 
     | 
    
         
            +
                                name: "growthQ1",
         
     | 
| 
      
 12324 
     | 
    
         
            +
                                label: t("growthQ1"),
         
     | 
| 
      
 12325 
     | 
    
         
            +
                                hide: false,
         
     | 
| 
      
 12326 
     | 
    
         
            +
                                required: false,
         
     | 
| 
      
 12327 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12328 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12329 
     | 
    
         
            +
                                name: "growthQ2",
         
     | 
| 
      
 12330 
     | 
    
         
            +
                                label: t("growthQ2"),
         
     | 
| 
      
 12331 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12332 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12333 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12334 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12335 
     | 
    
         
            +
                                name: "growthQ3",
         
     | 
| 
      
 12336 
     | 
    
         
            +
                                label: t("growthQ3"),
         
     | 
| 
      
 12337 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12338 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12339 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12340 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12341 
     | 
    
         
            +
                                name: "growthQ4",
         
     | 
| 
      
 12342 
     | 
    
         
            +
                                label: t("growthQ4"),
         
     | 
| 
      
 12343 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12344 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12345 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12346 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12347 
     | 
    
         
            +
                                name: "growthQ5",
         
     | 
| 
      
 12348 
     | 
    
         
            +
                                label: t("growthQ5"),
         
     | 
| 
      
 12349 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12350 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12351 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12352 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12353 
     | 
    
         
            +
                                name: "growthQ6",
         
     | 
| 
      
 12354 
     | 
    
         
            +
                                label: t("growthQ6"),
         
     | 
| 
      
 12355 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12356 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12357 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12358 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12359 
     | 
    
         
            +
                                name: "growthQ7",
         
     | 
| 
      
 12360 
     | 
    
         
            +
                                label: t("growthQ7"),
         
     | 
| 
      
 12361 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12362 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12363 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12364 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12365 
     | 
    
         
            +
                                name: "growthQ8",
         
     | 
| 
      
 12366 
     | 
    
         
            +
                                label: t("growthQ8"),
         
     | 
| 
      
 12367 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12368 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12369 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12370 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12371 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12372 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12373 
     | 
    
         
            +
                        section: t("energy"),
         
     | 
| 
      
 12374 
     | 
    
         
            +
                        fields: [
         
     | 
| 
      
 12375 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12376 
     | 
    
         
            +
                                name: "energyQ1",
         
     | 
| 
      
 12377 
     | 
    
         
            +
                                label: t("energyQ1"),
         
     | 
| 
      
 12378 
     | 
    
         
            +
                                hide: false,
         
     | 
| 
      
 12379 
     | 
    
         
            +
                                required: false,
         
     | 
| 
      
 12380 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12381 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12382 
     | 
    
         
            +
                                name: "energyQ2",
         
     | 
| 
      
 12383 
     | 
    
         
            +
                                label: t("energyQ2"),
         
     | 
| 
      
 12384 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12385 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12386 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12387 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12388 
     | 
    
         
            +
                                name: "energyQ3",
         
     | 
| 
      
 12389 
     | 
    
         
            +
                                label: t("energyQ3"),
         
     | 
| 
      
 12390 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12391 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12392 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12393 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12394 
     | 
    
         
            +
                                name: "energyQ4",
         
     | 
| 
      
 12395 
     | 
    
         
            +
                                label: t("energyQ4"),
         
     | 
| 
      
 12396 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12397 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12398 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12399 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12400 
     | 
    
         
            +
                                name: "energyQ5",
         
     | 
| 
      
 12401 
     | 
    
         
            +
                                label: t("energyQ5"),
         
     | 
| 
      
 12402 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12403 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12404 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12405 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12406 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12407 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12408 
     | 
    
         
            +
                        section: t("techTransfer"),
         
     | 
| 
      
 12409 
     | 
    
         
            +
                        fields: [
         
     | 
| 
      
 12410 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12411 
     | 
    
         
            +
                                name: "techTransferQ1",
         
     | 
| 
      
 12412 
     | 
    
         
            +
                                label: t("techTransferQ1"),
         
     | 
| 
      
 12413 
     | 
    
         
            +
                                hide: false,
         
     | 
| 
      
 12414 
     | 
    
         
            +
                                required: false,
         
     | 
| 
      
 12415 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12416 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12417 
     | 
    
         
            +
                                name: "techTransferQ2",
         
     | 
| 
      
 12418 
     | 
    
         
            +
                                label: t("techTransferQ2"),
         
     | 
| 
      
 12419 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12420 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12421 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12422 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12423 
     | 
    
         
            +
                                name: "techTransferQ3",
         
     | 
| 
      
 12424 
     | 
    
         
            +
                                label: t("techTransferQ3"),
         
     | 
| 
      
 12425 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12426 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12427 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12428 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12429 
     | 
    
         
            +
                                name: "techTransferQ4",
         
     | 
| 
      
 12430 
     | 
    
         
            +
                                label: t("techTransferQ4"),
         
     | 
| 
      
 12431 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12432 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12433 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12434 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12435 
     | 
    
         
            +
                                name: "techTransferQ5",
         
     | 
| 
      
 12436 
     | 
    
         
            +
                                label: t("techTransferQ5"),
         
     | 
| 
      
 12437 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12438 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12439 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12440 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12441 
     | 
    
         
            +
                                name: "techTransferQ6",
         
     | 
| 
      
 12442 
     | 
    
         
            +
                                label: t("techTransferQ6"),
         
     | 
| 
      
 12443 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12444 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12445 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12446 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12447 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12448 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12449 
     | 
    
         
            +
                        section: t("balanceOfPayments"),
         
     | 
| 
      
 12450 
     | 
    
         
            +
                        fields: [
         
     | 
| 
      
 12451 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12452 
     | 
    
         
            +
                                name: "balanceOfPaymentsQ1",
         
     | 
| 
      
 12453 
     | 
    
         
            +
                                label: t("balanceOfPaymentsQ1"),
         
     | 
| 
      
 12454 
     | 
    
         
            +
                                hide: false,
         
     | 
| 
      
 12455 
     | 
    
         
            +
                                required: false,
         
     | 
| 
      
 12456 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12457 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12458 
     | 
    
         
            +
                                name: "balanceOfPaymentsQ2",
         
     | 
| 
      
 12459 
     | 
    
         
            +
                                label: t("balanceOfPaymentsQ2"),
         
     | 
| 
      
 12460 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12461 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12462 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12463 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12464 
     | 
    
         
            +
                                name: "balanceOfPaymentsQ3",
         
     | 
| 
      
 12465 
     | 
    
         
            +
                                label: t("balanceOfPaymentsQ3"),
         
     | 
| 
      
 12466 
     | 
    
         
            +
                                hide: true,
         
     | 
| 
      
 12467 
     | 
    
         
            +
                                required: true,
         
     | 
| 
      
 12468 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12469 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12470 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12471 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12472 
     | 
    
         
            +
                        section: t("furtherInfo"),
         
     | 
| 
      
 12473 
     | 
    
         
            +
                        fields: [
         
     | 
| 
      
 12474 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12475 
     | 
    
         
            +
                                name: "furtherInfoQ1",
         
     | 
| 
      
 12476 
     | 
    
         
            +
                                label: t("furtherInfoQ1"),
         
     | 
| 
      
 12477 
     | 
    
         
            +
                                hide: false,
         
     | 
| 
      
 12478 
     | 
    
         
            +
                                required: false,
         
     | 
| 
      
 12479 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12480 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12481 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12482 
     | 
    
         
            +
                ];
         
     | 
| 
      
 12483 
     | 
    
         
            +
                var formOne = antd.Form.useForm()[0];
         
     | 
| 
      
 12484 
     | 
    
         
            +
                var _a = React.useState(economicDetailsInitial), economicDetails = _a[0], setEconomicDetails = _a[1];
         
     | 
| 
      
 12485 
     | 
    
         
            +
                var _b = React.useState(), economicFormDetails = _b[0], setEconomicFormDetails = _b[1];
         
     | 
| 
      
 12486 
     | 
    
         
            +
                var onFieldsChange = function (changedFields) {
         
     | 
| 
      
 12487 
     | 
    
         
            +
                    var _a, _b;
         
     | 
| 
      
 12488 
     | 
    
         
            +
                    var changedFieldName = (_a = changedFields[0]) === null || _a === void 0 ? void 0 : _a.name[0];
         
     | 
| 
      
 12489 
     | 
    
         
            +
                    var changedFieldValue = (_b = changedFields[0]) === null || _b === void 0 ? void 0 : _b.value;
         
     | 
| 
      
 12490 
     | 
    
         
            +
                    if (changedFieldName.includes("1")) {
         
     | 
| 
      
 12491 
     | 
    
         
            +
                        var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
         
     | 
| 
      
 12492 
     | 
    
         
            +
                        var updatedEconomicDetails = __spreadArray([], economicDetails, true);
         
     | 
| 
      
 12493 
     | 
    
         
            +
                        var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
         
     | 
| 
      
 12494 
     | 
    
         
            +
                        updatedEconomicDetails[sectionIndex].fields.forEach(function (field) {
         
     | 
| 
      
 12495 
     | 
    
         
            +
                            if (field.name !== changedFieldName) {
         
     | 
| 
      
 12496 
     | 
    
         
            +
                                field.hide = changedFieldValue !== exports.RadioButtonStatus.YES;
         
     | 
| 
      
 12497 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12498 
     | 
    
         
            +
                        });
         
     | 
| 
      
 12499 
     | 
    
         
            +
                        setEconomicDetails(updatedEconomicDetails);
         
     | 
| 
      
 12500 
     | 
    
         
            +
                    }
         
     | 
| 
      
 12501 
     | 
    
         
            +
                };
         
     | 
| 
      
 12502 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 12503 
     | 
    
         
            +
                    onFormSubmit(economicFormDetails);
         
     | 
| 
      
 12504 
     | 
    
         
            +
                }, [economicFormDetails]);
         
     | 
| 
      
 12505 
     | 
    
         
            +
                var onEconomicValuesChanged = function (changedValues) {
         
     | 
| 
      
 12506 
     | 
    
         
            +
                    setEconomicFormDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
         
     | 
| 
      
 12507 
     | 
    
         
            +
                };
         
     | 
| 
      
 12508 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 12509 
     | 
    
         
            +
                    if (economicViewData && viewOnly === true) {
         
     | 
| 
      
 12510 
     | 
    
         
            +
                        var updatedEconomicData = [
         
     | 
| 
      
 12511 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12512 
     | 
    
         
            +
                                section: t("growth"),
         
     | 
| 
      
 12513 
     | 
    
         
            +
                                fields: [],
         
     | 
| 
      
 12514 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12515 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12516 
     | 
    
         
            +
                                section: t("energy"),
         
     | 
| 
      
 12517 
     | 
    
         
            +
                                fields: [],
         
     | 
| 
      
 12518 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12519 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12520 
     | 
    
         
            +
                                section: t("techTransfer"),
         
     | 
| 
      
 12521 
     | 
    
         
            +
                                fields: [],
         
     | 
| 
      
 12522 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12523 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12524 
     | 
    
         
            +
                                section: t("balanceOfPayments"),
         
     | 
| 
      
 12525 
     | 
    
         
            +
                                fields: [],
         
     | 
| 
      
 12526 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12527 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12528 
     | 
    
         
            +
                                section: t("furtherInfo"),
         
     | 
| 
      
 12529 
     | 
    
         
            +
                                fields: [],
         
     | 
| 
      
 12530 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12531 
     | 
    
         
            +
                        ];
         
     | 
| 
      
 12532 
     | 
    
         
            +
                        var _loop_1 = function (key) {
         
     | 
| 
      
 12533 
     | 
    
         
            +
                            var section = "";
         
     | 
| 
      
 12534 
     | 
    
         
            +
                            if (String(key).includes("growth")) {
         
     | 
| 
      
 12535 
     | 
    
         
            +
                                section = t("growth");
         
     | 
| 
      
 12536 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12537 
     | 
    
         
            +
                            else if (String(key).includes("energy")) {
         
     | 
| 
      
 12538 
     | 
    
         
            +
                                section = t("energy");
         
     | 
| 
      
 12539 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12540 
     | 
    
         
            +
                            else if (String(key).includes("techTransfer")) {
         
     | 
| 
      
 12541 
     | 
    
         
            +
                                section = t("techTransfer");
         
     | 
| 
      
 12542 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12543 
     | 
    
         
            +
                            else if (String(key).includes("balanceOfPayments")) {
         
     | 
| 
      
 12544 
     | 
    
         
            +
                                section = t("balanceOfPayments");
         
     | 
| 
      
 12545 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12546 
     | 
    
         
            +
                            else if (String(key).includes("furtherInfo")) {
         
     | 
| 
      
 12547 
     | 
    
         
            +
                                section = t("furtherInfo");
         
     | 
| 
      
 12548 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12549 
     | 
    
         
            +
                            var economicItem = updatedEconomicData.find(function (item) { return item.section === section; });
         
     | 
| 
      
 12550 
     | 
    
         
            +
                            if (economicItem) {
         
     | 
| 
      
 12551 
     | 
    
         
            +
                                economicItem.fields.push({
         
     | 
| 
      
 12552 
     | 
    
         
            +
                                    name: key,
         
     | 
| 
      
 12553 
     | 
    
         
            +
                                    label: t(key),
         
     | 
| 
      
 12554 
     | 
    
         
            +
                                    hide: false,
         
     | 
| 
      
 12555 
     | 
    
         
            +
                                    value: economicViewData[key],
         
     | 
| 
      
 12556 
     | 
    
         
            +
                                });
         
     | 
| 
      
 12557 
     | 
    
         
            +
                            }
         
     | 
| 
      
 12558 
     | 
    
         
            +
                        };
         
     | 
| 
      
 12559 
     | 
    
         
            +
                        for (var key in economicViewData) {
         
     | 
| 
      
 12560 
     | 
    
         
            +
                            _loop_1(key);
         
     | 
| 
      
 12561 
     | 
    
         
            +
                        }
         
     | 
| 
      
 12562 
     | 
    
         
            +
                        var filteredEconomicData = updatedEconomicData.filter(function (item) { return item.fields.length > 0; });
         
     | 
| 
      
 12563 
     | 
    
         
            +
                        setEconomicDetails(filteredEconomicData);
         
     | 
| 
      
 12564 
     | 
    
         
            +
                        console.log(updatedEconomicData);
         
     | 
| 
      
 12565 
     | 
    
         
            +
                    }
         
     | 
| 
      
 12566 
     | 
    
         
            +
                }, []);
         
     | 
| 
      
 12567 
     | 
    
         
            +
                return (React.createElement("div", { className: "co-benifits-tab-item" },
         
     | 
| 
      
 12568 
     | 
    
         
            +
                    React.createElement(antd.Form, { name: "economic-details", className: "benifits-details-economic", labelCol: { md: 16, lg: 19, xl: 17 }, wrapperCol: { md: 8, lg: 5, xl: 7 }, layout: "horizontal", requiredMark: true, form: formOne, onFieldsChange: onFieldsChange, onValuesChange: onEconomicValuesChanged },
         
     | 
| 
      
 12569 
     | 
    
         
            +
                        (economicDetails === null || economicDetails === void 0 ? void 0 : economicDetails.length) === 0 && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
         
     | 
| 
      
 12570 
     | 
    
         
            +
                        React.createElement("div", { className: economicViewData ? "section view-section" : "section" }, economicDetails === null || economicDetails === void 0 ? void 0 : economicDetails.map(function (environmentalDetail) {
         
     | 
| 
      
 12571 
     | 
    
         
            +
                            var _a;
         
     | 
| 
      
 12572 
     | 
    
         
            +
                            return (React.createElement(React.Fragment, null,
         
     | 
| 
      
 12573 
     | 
    
         
            +
                                React.createElement("div", { className: "title" }, environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.section), (_a = environmentalDetail === null || environmentalDetail === void 0 ? void 0 : environmentalDetail.fields) === null || _a === void 0 ? void 0 :
         
     | 
| 
      
 12574 
     | 
    
         
            +
                                _a.map(function (field, index) {
         
     | 
| 
      
 12575 
     | 
    
         
            +
                                    return !(field === null || field === void 0 ? void 0 : field.hide) && (React.createElement(antd.Form.Item, { label: field === null || field === void 0 ? void 0 : field.label, className: "form-item ".concat(index !== 0 ? "field-margin" : ""), name: field === null || field === void 0 ? void 0 : field.name, rules: [
         
     | 
| 
      
 12576 
     | 
    
         
            +
                                            {
         
     | 
| 
      
 12577 
     | 
    
         
            +
                                                required: field === null || field === void 0 ? void 0 : field.required,
         
     | 
| 
      
 12578 
     | 
    
         
            +
                                                message: (field === null || field === void 0 ? void 0 : field.required) &&
         
     | 
| 
      
 12579 
     | 
    
         
            +
                                                    "".concat(t(field === null || field === void 0 ? void 0 : field.name), " ").concat(t("isRequired")),
         
     | 
| 
      
 12580 
     | 
    
         
            +
                                            },
         
     | 
| 
      
 12581 
     | 
    
         
            +
                                        ] },
         
     | 
| 
      
 12582 
     | 
    
         
            +
                                        React.createElement(antd.Radio.Group, { size: "middle", onChange: function () { }, disabled: economicViewData && true }, economicViewData ? (React.createElement(React.Fragment, null,
         
     | 
| 
      
 12583 
     | 
    
         
            +
                                            (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.YES && (React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12584 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes")))),
         
     | 
| 
      
 12585 
     | 
    
         
            +
                                            (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NO && (React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12586 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no")))),
         
     | 
| 
      
 12587 
     | 
    
         
            +
                                            (field === null || field === void 0 ? void 0 : field.value) === exports.RadioButtonStatus.NA && (React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12588 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na")))))) : (React.createElement(React.Fragment, null,
         
     | 
| 
      
 12589 
     | 
    
         
            +
                                            React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12590 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
         
     | 
| 
      
 12591 
     | 
    
         
            +
                                            React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12592 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NO }, t("no"))),
         
     | 
| 
      
 12593 
     | 
    
         
            +
                                            React.createElement("div", { className: "yes-no-radio-container" },
         
     | 
| 
      
 12594 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "yes-no-radio", value: exports.RadioButtonStatus.NA }, t("na"))))))));
         
     | 
| 
      
 12595 
     | 
    
         
            +
                                })));
         
     | 
| 
      
 12596 
     | 
    
         
            +
                        })))));
         
     | 
| 
      
 12597 
     | 
    
         
            +
            };
         
     | 
| 
      
 12598 
     | 
    
         
            +
             
     | 
| 
      
 12599 
     | 
    
         
            +
            var Social = function (props) {
         
     | 
| 
      
 12600 
     | 
    
         
            +
                var onFormSubmit = props.onFormSubmit, socialViewData = props.socialViewData, viewOnly = props.viewOnly, t = props.t;
         
     | 
| 
      
 12601 
     | 
    
         
            +
                var form = antd.Form.useForm()[0];
         
     | 
| 
      
 12602 
     | 
    
         
            +
                var _a = React.useState(0); _a[0]; var setRefreshCounter = _a[1];
         
     | 
| 
      
 12603 
     | 
    
         
            +
                var _b = React.useState(), socialDetails = _b[0], setSocialDetails = _b[1];
         
     | 
| 
      
 12604 
     | 
    
         
            +
                var _c = React.useState(true), isFormValid = _c[0], setIsFormValid = _c[1];
         
     | 
| 
      
 12605 
     | 
    
         
            +
                var SocialElementDetails = [
         
     | 
| 
      
 12606 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12607 
     | 
    
         
            +
                        title: t("jobs"),
         
     | 
| 
      
 12608 
     | 
    
         
            +
                        label: t("jobRelatedMainQ"),
         
     | 
| 
      
 12609 
     | 
    
         
            +
                        name: "jobRelatedMainQ",
         
     | 
| 
      
 12610 
     | 
    
         
            +
                        subItems: [
         
     | 
| 
      
 12611 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12612 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12613 
     | 
    
         
            +
                                label: t("jobRelatedSubQ1"),
         
     | 
| 
      
 12614 
     | 
    
         
            +
                                name: "jobRelatedSubQ1",
         
     | 
| 
      
 12615 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12616 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12617 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12618 
     | 
    
         
            +
                                label: t("jobRelatedSubQ2"),
         
     | 
| 
      
 12619 
     | 
    
         
            +
                                name: "jobRelatedSubQ2",
         
     | 
| 
      
 12620 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12621 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12622 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12623 
     | 
    
         
            +
                                label: t("jobRelatedSubQ3"),
         
     | 
| 
      
 12624 
     | 
    
         
            +
                                name: "jobRelatedSubQ3",
         
     | 
| 
      
 12625 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12626 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12627 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12628 
     | 
    
         
            +
                                label: t("jobRelatedSubQ4"),
         
     | 
| 
      
 12629 
     | 
    
         
            +
                                name: "jobRelatedSubQ4",
         
     | 
| 
      
 12630 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12631 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12632 
     | 
    
         
            +
                                type: exports.FormElementType.Input,
         
     | 
| 
      
 12633 
     | 
    
         
            +
                                label: t("jobRelatedSubQ5"),
         
     | 
| 
      
 12634 
     | 
    
         
            +
                                name: "jobRelatedSubQ5",
         
     | 
| 
      
 12635 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12636 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12637 
     | 
    
         
            +
                                type: exports.FormElementType.Input,
         
     | 
| 
      
 12638 
     | 
    
         
            +
                                label: t("jobRelatedSubQ6"),
         
     | 
| 
      
 12639 
     | 
    
         
            +
                                name: "jobRelatedSubQ6",
         
     | 
| 
      
 12640 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12641 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12642 
     | 
    
         
            +
                                type: exports.FormElementType.Input,
         
     | 
| 
      
 12643 
     | 
    
         
            +
                                label: t("jobRelatedSubQ7"),
         
     | 
| 
      
 12644 
     | 
    
         
            +
                                name: "jobRelatedSubQ7",
         
     | 
| 
      
 12645 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12646 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12647 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12648 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12649 
     | 
    
         
            +
                        title: t("health"),
         
     | 
| 
      
 12650 
     | 
    
         
            +
                        label: t("healthRelatedMainQ"),
         
     | 
| 
      
 12651 
     | 
    
         
            +
                        name: "healthRelatedMainQ",
         
     | 
| 
      
 12652 
     | 
    
         
            +
                        subItems: [
         
     | 
| 
      
 12653 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12654 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12655 
     | 
    
         
            +
                                label: t("healthRelatedSubQ1"),
         
     | 
| 
      
 12656 
     | 
    
         
            +
                                name: "healthRelatedSubQ1",
         
     | 
| 
      
 12657 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12658 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12659 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12660 
     | 
    
         
            +
                                label: t("healthRelatedSubQ2"),
         
     | 
| 
      
 12661 
     | 
    
         
            +
                                name: "healthRelatedSubQ2",
         
     | 
| 
      
 12662 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12663 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12664 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12665 
     | 
    
         
            +
                                label: t("healthRelatedSubQ3"),
         
     | 
| 
      
 12666 
     | 
    
         
            +
                                name: "healthRelatedSubQ3",
         
     | 
| 
      
 12667 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12668 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12669 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12670 
     | 
    
         
            +
                                label: t("healthRelatedSubQ4"),
         
     | 
| 
      
 12671 
     | 
    
         
            +
                                name: "healthRelatedSubQ4",
         
     | 
| 
      
 12672 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12673 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12674 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12675 
     | 
    
         
            +
                                label: t("healthRelatedSubQ5"),
         
     | 
| 
      
 12676 
     | 
    
         
            +
                                name: "healthRelatedSubQ5",
         
     | 
| 
      
 12677 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12678 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12679 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12680 
     | 
    
         
            +
                                label: t("healthRelatedSubQ6"),
         
     | 
| 
      
 12681 
     | 
    
         
            +
                                name: "healthRelatedSubQ6",
         
     | 
| 
      
 12682 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12683 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12684 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12685 
     | 
    
         
            +
                                label: t("healthRelatedSubQ7"),
         
     | 
| 
      
 12686 
     | 
    
         
            +
                                name: "healthRelatedSubQ7",
         
     | 
| 
      
 12687 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12688 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12689 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12690 
     | 
    
         
            +
                                label: t("healthRelatedSubQ8"),
         
     | 
| 
      
 12691 
     | 
    
         
            +
                                name: "healthRelatedSubQ8",
         
     | 
| 
      
 12692 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12693 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12694 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12695 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12696 
     | 
    
         
            +
                        title: t("educational"),
         
     | 
| 
      
 12697 
     | 
    
         
            +
                        label: t("educationRelatedMainQ"),
         
     | 
| 
      
 12698 
     | 
    
         
            +
                        name: "educationRelatedMainQ",
         
     | 
| 
      
 12699 
     | 
    
         
            +
                        subItems: [
         
     | 
| 
      
 12700 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12701 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12702 
     | 
    
         
            +
                                label: t("educationRelatedSubQ1"),
         
     | 
| 
      
 12703 
     | 
    
         
            +
                                name: "educationRelatedSubQ1",
         
     | 
| 
      
 12704 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12705 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12706 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12707 
     | 
    
         
            +
                                label: t("educationRelatedSubQ2"),
         
     | 
| 
      
 12708 
     | 
    
         
            +
                                name: "educationRelatedSubQ2",
         
     | 
| 
      
 12709 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12710 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12711 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12712 
     | 
    
         
            +
                                label: t("educationRelatedSubQ3"),
         
     | 
| 
      
 12713 
     | 
    
         
            +
                                name: "educationRelatedSubQ3",
         
     | 
| 
      
 12714 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12715 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12716 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12717 
     | 
    
         
            +
                                label: t("educationRelatedSubQ4"),
         
     | 
| 
      
 12718 
     | 
    
         
            +
                                name: "educationRelatedSubQ4",
         
     | 
| 
      
 12719 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12720 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12721 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12722 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12723 
     | 
    
         
            +
                        title: t("welfare"),
         
     | 
| 
      
 12724 
     | 
    
         
            +
                        label: t("welfareRelatedMainQ"),
         
     | 
| 
      
 12725 
     | 
    
         
            +
                        name: "welfareRelatedMainQ",
         
     | 
| 
      
 12726 
     | 
    
         
            +
                        subItems: [
         
     | 
| 
      
 12727 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12728 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12729 
     | 
    
         
            +
                                label: t("welfareRelatedSubQ1"),
         
     | 
| 
      
 12730 
     | 
    
         
            +
                                name: "welfareRelatedSubQ1",
         
     | 
| 
      
 12731 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12732 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12733 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12734 
     | 
    
         
            +
                                label: t("welfareRelatedSubQ2"),
         
     | 
| 
      
 12735 
     | 
    
         
            +
                                name: "welfareRelatedSubQ2",
         
     | 
| 
      
 12736 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12737 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12738 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12739 
     | 
    
         
            +
                                label: t("welfareRelatedSubQ3"),
         
     | 
| 
      
 12740 
     | 
    
         
            +
                                name: "welfareRelatedSubQ3",
         
     | 
| 
      
 12741 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12742 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12743 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12744 
     | 
    
         
            +
                                label: t("welfareRelatedSubQ4"),
         
     | 
| 
      
 12745 
     | 
    
         
            +
                                name: "welfareRelatedSubQ4",
         
     | 
| 
      
 12746 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12747 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12748 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12749 
     | 
    
         
            +
                                label: t("welfareRelatedSubQ5"),
         
     | 
| 
      
 12750 
     | 
    
         
            +
                                name: "welfareRelatedSubQ5",
         
     | 
| 
      
 12751 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12752 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12753 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12754 
     | 
    
         
            +
                                label: t("welfareRelatedSubQ6"),
         
     | 
| 
      
 12755 
     | 
    
         
            +
                                name: "welfareRelatedSubQ6",
         
     | 
| 
      
 12756 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12757 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12758 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12759 
     | 
    
         
            +
                                label: t("welfareRelatedSubQ7"),
         
     | 
| 
      
 12760 
     | 
    
         
            +
                                name: "welfareRelatedSubQ7",
         
     | 
| 
      
 12761 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12762 
     | 
    
         
            +
                            {
         
     | 
| 
      
 12763 
     | 
    
         
            +
                                type: exports.FormElementType.Radio,
         
     | 
| 
      
 12764 
     | 
    
         
            +
                                label: t("welfareRelatedSubQ8"),
         
     | 
| 
      
 12765 
     | 
    
         
            +
                                name: "welfareRelatedSubQ8",
         
     | 
| 
      
 12766 
     | 
    
         
            +
                            },
         
     | 
| 
      
 12767 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 12768 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12769 
     | 
    
         
            +
                ];
         
     | 
| 
      
 12770 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 12771 
     | 
    
         
            +
                    if (socialViewData && !viewOnly) {
         
     | 
| 
      
 12772 
     | 
    
         
            +
                        setSocialDetails(socialViewData);
         
     | 
| 
      
 12773 
     | 
    
         
            +
                        form.setFieldsValue(socialViewData);
         
     | 
| 
      
 12774 
     | 
    
         
            +
                    }
         
     | 
| 
      
 12775 
     | 
    
         
            +
                }, [socialViewData]);
         
     | 
| 
      
 12776 
     | 
    
         
            +
                var validateForm = function () { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 12777 
     | 
    
         
            +
                    var exception_1;
         
     | 
| 
      
 12778 
     | 
    
         
            +
                    return __generator(this, function (_a) {
         
     | 
| 
      
 12779 
     | 
    
         
            +
                        switch (_a.label) {
         
     | 
| 
      
 12780 
     | 
    
         
            +
                            case 0:
         
     | 
| 
      
 12781 
     | 
    
         
            +
                                _a.trys.push([0, 2, , 3]);
         
     | 
| 
      
 12782 
     | 
    
         
            +
                                form.submit();
         
     | 
| 
      
 12783 
     | 
    
         
            +
                                return [4 /*yield*/, form.validateFields()];
         
     | 
| 
      
 12784 
     | 
    
         
            +
                            case 1:
         
     | 
| 
      
 12785 
     | 
    
         
            +
                                _a.sent();
         
     | 
| 
      
 12786 
     | 
    
         
            +
                                return [3 /*break*/, 3];
         
     | 
| 
      
 12787 
     | 
    
         
            +
                            case 2:
         
     | 
| 
      
 12788 
     | 
    
         
            +
                                exception_1 = _a.sent();
         
     | 
| 
      
 12789 
     | 
    
         
            +
                                if (exception_1.errorFields.length > 0) {
         
     | 
| 
      
 12790 
     | 
    
         
            +
                                    setIsFormValid(false);
         
     | 
| 
      
 12791 
     | 
    
         
            +
                                }
         
     | 
| 
      
 12792 
     | 
    
         
            +
                                else {
         
     | 
| 
      
 12793 
     | 
    
         
            +
                                    setIsFormValid(true);
         
     | 
| 
      
 12794 
     | 
    
         
            +
                                }
         
     | 
| 
      
 12795 
     | 
    
         
            +
                                return [3 /*break*/, 3];
         
     | 
| 
      
 12796 
     | 
    
         
            +
                            case 3: return [2 /*return*/];
         
     | 
| 
      
 12797 
     | 
    
         
            +
                        }
         
     | 
| 
      
 12798 
     | 
    
         
            +
                    });
         
     | 
| 
      
 12799 
     | 
    
         
            +
                }); };
         
     | 
| 
      
 12800 
     | 
    
         
            +
                var onRadioStatusChanged = function () {
         
     | 
| 
      
 12801 
     | 
    
         
            +
                    setRefreshCounter(function (pre) { return pre + 1; });
         
     | 
| 
      
 12802 
     | 
    
         
            +
                    validateForm();
         
     | 
| 
      
 12803 
     | 
    
         
            +
                };
         
     | 
| 
      
 12804 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 12805 
     | 
    
         
            +
                    onFormSubmit(socialDetails, isFormValid);
         
     | 
| 
      
 12806 
     | 
    
         
            +
                }, [socialDetails, isFormValid]);
         
     | 
| 
      
 12807 
     | 
    
         
            +
                var onSocialValuesChanged = function (changedValues) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 12808 
     | 
    
         
            +
                    return __generator(this, function (_a) {
         
     | 
| 
      
 12809 
     | 
    
         
            +
                        setSocialDetails(function (pre) { return (__assign(__assign({}, pre), changedValues)); });
         
     | 
| 
      
 12810 
     | 
    
         
            +
                        validateForm();
         
     | 
| 
      
 12811 
     | 
    
         
            +
                        return [2 /*return*/];
         
     | 
| 
      
 12812 
     | 
    
         
            +
                    });
         
     | 
| 
      
 12813 
     | 
    
         
            +
                }); };
         
     | 
| 
      
 12814 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 12815 
     | 
    
         
            +
                    validateForm();
         
     | 
| 
      
 12816 
     | 
    
         
            +
                });
         
     | 
| 
      
 12817 
     | 
    
         
            +
                return (React.createElement("div", { className: "social-tab-item" },
         
     | 
| 
      
 12818 
     | 
    
         
            +
                    viewOnly && !socialViewData && (React.createElement(antd.Empty, { image: antd.Empty.PRESENTED_IMAGE_SIMPLE })),
         
     | 
| 
      
 12819 
     | 
    
         
            +
                    ((viewOnly && socialViewData) || !viewOnly) && (React.createElement(antd.Form, { name: "socialDetails", labelWrap: true, form: form, labelAlign: "left", labelCol: { md: 16, lg: 18, xl: 18 }, wrapperCol: { md: 8, lg: 6, xl: 6 }, layout: "horizontal", onValuesChange: onSocialValuesChanged }, SocialElementDetails.map(function (element) {
         
     | 
| 
      
 12820 
     | 
    
         
            +
                        return (React.createElement(React.Fragment, null,
         
     | 
| 
      
 12821 
     | 
    
         
            +
                            ((viewOnly && socialViewData.hasOwnProperty(element === null || element === void 0 ? void 0 : element.name)) ||
         
     | 
| 
      
 12822 
     | 
    
         
            +
                                !viewOnly) && (React.createElement("div", { style: { marginBottom: "15px" } },
         
     | 
| 
      
 12823 
     | 
    
         
            +
                                React.createElement("label", { className: "co-sub-title-text" }, element.title))),
         
     | 
| 
      
 12824 
     | 
    
         
            +
                            !viewOnly && (React.createElement(React.Fragment, null,
         
     | 
| 
      
 12825 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { className: "mg-left-2", label: element.label, name: element.name },
         
     | 
| 
      
 12826 
     | 
    
         
            +
                                    React.createElement(antd.Radio.Group, { size: "middle", onChange: onRadioStatusChanged },
         
     | 
| 
      
 12827 
     | 
    
         
            +
                                        React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 12828 
     | 
    
         
            +
                                            React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
         
     | 
| 
      
 12829 
     | 
    
         
            +
                                        React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 12830 
     | 
    
         
            +
                                            React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
         
     | 
| 
      
 12831 
     | 
    
         
            +
                                        React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 12832 
     | 
    
         
            +
                                            React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("na"))))),
         
     | 
| 
      
 12833 
     | 
    
         
            +
                                form.getFieldValue(element.name) ===
         
     | 
| 
      
 12834 
     | 
    
         
            +
                                    exports.RadioButtonStatus.YES &&
         
     | 
| 
      
 12835 
     | 
    
         
            +
                                    element.subItems.map(function (elementItem) {
         
     | 
| 
      
 12836 
     | 
    
         
            +
                                        if (elementItem.type === exports.FormElementType.Radio) {
         
     | 
| 
      
 12837 
     | 
    
         
            +
                                            return (React.createElement(antd.Form.Item, { label: elementItem.label, name: elementItem.name, className: "mg-left-4", rules: [
         
     | 
| 
      
 12838 
     | 
    
         
            +
                                                    {
         
     | 
| 
      
 12839 
     | 
    
         
            +
                                                        required: true,
         
     | 
| 
      
 12840 
     | 
    
         
            +
                                                        message: "",
         
     | 
| 
      
 12841 
     | 
    
         
            +
                                                    },
         
     | 
| 
      
 12842 
     | 
    
         
            +
                                                ] },
         
     | 
| 
      
 12843 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Group, { size: "middle" },
         
     | 
| 
      
 12844 
     | 
    
         
            +
                                                    React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 12845 
     | 
    
         
            +
                                                        React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.YES }, t("yes"))),
         
     | 
| 
      
 12846 
     | 
    
         
            +
                                                    React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 12847 
     | 
    
         
            +
                                                        React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NO }, t("no"))),
         
     | 
| 
      
 12848 
     | 
    
         
            +
                                                    React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 12849 
     | 
    
         
            +
                                                        React.createElement(antd.Radio.Button, { className: "radio", value: exports.RadioButtonStatus.NA }, t("na"))))));
         
     | 
| 
      
 12850 
     | 
    
         
            +
                                        }
         
     | 
| 
      
 12851 
     | 
    
         
            +
                                        else if (elementItem.type === exports.FormElementType.Input) {
         
     | 
| 
      
 12852 
     | 
    
         
            +
                                            return (React.createElement(antd.Form.Item, { className: "mg-left-4", labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: elementItem.label, name: elementItem.name },
         
     | 
| 
      
 12853 
     | 
    
         
            +
                                                React.createElement(antd.InputNumber, { style: { width: 303 } })));
         
     | 
| 
      
 12854 
     | 
    
         
            +
                                        }
         
     | 
| 
      
 12855 
     | 
    
         
            +
                                    }))),
         
     | 
| 
      
 12856 
     | 
    
         
            +
                            viewOnly && socialViewData && (React.createElement(React.Fragment, null,
         
     | 
| 
      
 12857 
     | 
    
         
            +
                                socialViewData.hasOwnProperty(element === null || element === void 0 ? void 0 : element.name) && (React.createElement("div", { className: "view-section" },
         
     | 
| 
      
 12858 
     | 
    
         
            +
                                    React.createElement(antd.Form.Item, { className: "mg-left-2", label: element.label, name: element.name },
         
     | 
| 
      
 12859 
     | 
    
         
            +
                                        React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
         
     | 
| 
      
 12860 
     | 
    
         
            +
                                            React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 12861 
     | 
    
         
            +
                                                React.createElement(antd.Radio.Button, { className: "radio" }, socialViewData[element.name])))))),
         
     | 
| 
      
 12862 
     | 
    
         
            +
                                socialViewData[element.name] === exports.RadioButtonStatus.YES &&
         
     | 
| 
      
 12863 
     | 
    
         
            +
                                    element.subItems.map(function (elementItem) {
         
     | 
| 
      
 12864 
     | 
    
         
            +
                                        if (elementItem.type === exports.FormElementType.Radio) {
         
     | 
| 
      
 12865 
     | 
    
         
            +
                                            return (React.createElement(React.Fragment, null, socialViewData.hasOwnProperty(elementItem === null || elementItem === void 0 ? void 0 : elementItem.name) && (React.createElement("div", { className: "view-section" },
         
     | 
| 
      
 12866 
     | 
    
         
            +
                                                React.createElement(antd.Form.Item, { label: elementItem.label, name: elementItem.name, className: "mg-left-4" },
         
     | 
| 
      
 12867 
     | 
    
         
            +
                                                    React.createElement(antd.Radio.Group, { size: "middle", disabled: true },
         
     | 
| 
      
 12868 
     | 
    
         
            +
                                                        React.createElement("div", { className: "radio-container" },
         
     | 
| 
      
 12869 
     | 
    
         
            +
                                                            React.createElement(antd.Radio.Button, { className: "radio" }, socialViewData[elementItem.name]))))))));
         
     | 
| 
      
 12870 
     | 
    
         
            +
                                        }
         
     | 
| 
      
 12871 
     | 
    
         
            +
                                        else if (elementItem.type === exports.FormElementType.Input) {
         
     | 
| 
      
 12872 
     | 
    
         
            +
                                            return (React.createElement("div", { className: "view-section" },
         
     | 
| 
      
 12873 
     | 
    
         
            +
                                                React.createElement(antd.Form.Item, { className: "mg-left-4", labelCol: { span: 24 }, wrapperCol: { span: 24 }, label: elementItem.label, name: elementItem.name },
         
     | 
| 
      
 12874 
     | 
    
         
            +
                                                    React.createElement(antd.Input, { disabled: true, style: { width: 303 }, defaultValue: socialViewData.hasOwnProperty(elementItem === null || elementItem === void 0 ? void 0 : elementItem.name)
         
     | 
| 
      
 12875 
     | 
    
         
            +
                                                            ? socialViewData[elementItem.name]
         
     | 
| 
      
 12876 
     | 
    
         
            +
                                                            : "-" }))));
         
     | 
| 
      
 12877 
     | 
    
         
            +
                                        }
         
     | 
| 
      
 12878 
     | 
    
         
            +
                                    }),
         
     | 
| 
      
 12879 
     | 
    
         
            +
                                " "))));
         
     | 
| 
      
 12880 
     | 
    
         
            +
                    })))));
         
     | 
| 
      
 12881 
     | 
    
         
            +
            };
         
     | 
| 
      
 12882 
     | 
    
         
            +
             
     | 
| 
      
 12883 
     | 
    
         
            +
            var CoBenifitsComponent = function (props) {
         
     | 
| 
      
 12884 
     | 
    
         
            +
                var onClickedBackBtn = props.onClickedBackBtn, onFormSubmit = props.onFormSubmit, coBenefitsDetails = props.coBenefitsDetails, submitButtonText = props.submitButtonText, viewOnly = props.viewOnly, coBenifitsViewDetails = props.coBenifitsViewDetails, _a = props.loading, loading = _a === void 0 ? false : _a, t = props.t;
         
     | 
| 
      
 12885 
     | 
    
         
            +
                var _b = React.useState(), coBenefitDetails = _b[0], setCoBenefitDetails = _b[1];
         
     | 
| 
      
 12886 
     | 
    
         
            +
                var _c = React.useState(true), isSocialFormValid = _c[0], setIsSocialFormValid = _c[1];
         
     | 
| 
      
 12887 
     | 
    
         
            +
                var _d = React.useState(true), isAssessmentFormValid = _d[0], setIsAssessmentFormValid = _d[1];
         
     | 
| 
      
 12888 
     | 
    
         
            +
                var onSdgGoalsFormSubmit = function (sdgGoalsDetails) {
         
     | 
| 
      
 12889 
     | 
    
         
            +
                    setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { sdgGoals: sdgGoalsDetails })); });
         
     | 
| 
      
 12890 
     | 
    
         
            +
                };
         
     | 
| 
      
 12891 
     | 
    
         
            +
                var onGenderParityFormSubmit = function (genderParityDetails) {
         
     | 
| 
      
 12892 
     | 
    
         
            +
                    setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { genderPariy: genderParityDetails })); });
         
     | 
| 
      
 12893 
     | 
    
         
            +
                };
         
     | 
| 
      
 12894 
     | 
    
         
            +
                var onEnvironmentalFormSubmit = function (environmentalsDetails) {
         
     | 
| 
      
 12895 
     | 
    
         
            +
                    setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { environmental: environmentalsDetails })); });
         
     | 
| 
      
 12896 
     | 
    
         
            +
                };
         
     | 
| 
      
 12897 
     | 
    
         
            +
                var onEconomicFormSubmit = function (economicDetails) {
         
     | 
| 
      
 12898 
     | 
    
         
            +
                    setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { economic: economicDetails })); });
         
     | 
| 
      
 12899 
     | 
    
         
            +
                };
         
     | 
| 
      
 12900 
     | 
    
         
            +
                var onAssessmentFormSubmit = function (coBenefitsAssessmentDetails, isFormValid) {
         
     | 
| 
      
 12901 
     | 
    
         
            +
                    setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { assessmentDetails: coBenefitsAssessmentDetails })); });
         
     | 
| 
      
 12902 
     | 
    
         
            +
                    setIsAssessmentFormValid(isFormValid);
         
     | 
| 
      
 12903 
     | 
    
         
            +
                };
         
     | 
| 
      
 12904 
     | 
    
         
            +
                var onSafeguardFormSubmit = function (safeguardDetails) {
         
     | 
| 
      
 12905 
     | 
    
         
            +
                    setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { safeguardDetails: safeguardDetails })); });
         
     | 
| 
      
 12906 
     | 
    
         
            +
                };
         
     | 
| 
      
 12907 
     | 
    
         
            +
                var onSocialFormSubmit = function (socialValueDetails, isFormValid) {
         
     | 
| 
      
 12908 
     | 
    
         
            +
                    setCoBenefitDetails(function (pre) { return (__assign(__assign({}, pre), { socialValueDetails: socialValueDetails })); });
         
     | 
| 
      
 12909 
     | 
    
         
            +
                    setIsSocialFormValid(isFormValid);
         
     | 
| 
      
 12910 
     | 
    
         
            +
                };
         
     | 
| 
      
 12911 
     | 
    
         
            +
                var tabItems = [
         
     | 
| 
      
 12912 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12913 
     | 
    
         
            +
                        label: t("coBenifits:sdgGoals"),
         
     | 
| 
      
 12914 
     | 
    
         
            +
                        key: "1",
         
     | 
| 
      
 12915 
     | 
    
         
            +
                        children: (React.createElement(SdgGoals, { onFormSubmit: onSdgGoalsFormSubmit, sdgGoalsViewData: viewOnly
         
     | 
| 
      
 12916 
     | 
    
         
            +
                                ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.sdgGoals)
         
     | 
| 
      
 12917 
     | 
    
         
            +
                                    ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.sdgGoals
         
     | 
| 
      
 12918 
     | 
    
         
            +
                                    : []
         
     | 
| 
      
 12919 
     | 
    
         
            +
                                : coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.sdgGoals, viewOnly: viewOnly || false })),
         
     | 
| 
      
 12920 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12921 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12922 
     | 
    
         
            +
                        label: t("coBenifits:genderPart"),
         
     | 
| 
      
 12923 
     | 
    
         
            +
                        key: "2",
         
     | 
| 
      
 12924 
     | 
    
         
            +
                        children: (React.createElement(GenderParity, { onFormSubmit: onGenderParityFormSubmit, genderParityViewData: viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.genderPariy), viewOnly: viewOnly || false, t: t })),
         
     | 
| 
      
 12925 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12926 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12927 
     | 
    
         
            +
                        label: t("coBenifits:safeguards"),
         
     | 
| 
      
 12928 
     | 
    
         
            +
                        key: "3",
         
     | 
| 
      
 12929 
     | 
    
         
            +
                        children: (React.createElement(Safeguards, { safeGuardViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.safeguardDetails)) ||
         
     | 
| 
      
 12930 
     | 
    
         
            +
                                (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.safeguardDetails)), viewOnly: viewOnly || false, onFormSubmit: onSafeguardFormSubmit, t: t })),
         
     | 
| 
      
 12931 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12932 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12933 
     | 
    
         
            +
                        label: t("coBenifits:environmental"),
         
     | 
| 
      
 12934 
     | 
    
         
            +
                        key: "4",
         
     | 
| 
      
 12935 
     | 
    
         
            +
                        children: (React.createElement(Environmental, { onFormSubmit: onEnvironmentalFormSubmit, environmentalViewData: viewOnly
         
     | 
| 
      
 12936 
     | 
    
         
            +
                                ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental)
         
     | 
| 
      
 12937 
     | 
    
         
            +
                                    ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.environmental
         
     | 
| 
      
 12938 
     | 
    
         
            +
                                    : {}
         
     | 
| 
      
 12939 
     | 
    
         
            +
                                : undefined, viewOnly: viewOnly || false, t: t })),
         
     | 
| 
      
 12940 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12941 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12942 
     | 
    
         
            +
                        label: t("coBenifits:social"),
         
     | 
| 
      
 12943 
     | 
    
         
            +
                        key: "5",
         
     | 
| 
      
 12944 
     | 
    
         
            +
                        children: (React.createElement(Social, { onFormSubmit: onSocialFormSubmit, socialViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.socialValueDetails)) ||
         
     | 
| 
      
 12945 
     | 
    
         
            +
                                (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.socialValueDetails)), viewOnly: viewOnly || false, t: t })),
         
     | 
| 
      
 12946 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12947 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12948 
     | 
    
         
            +
                        label: t("coBenifits:economic"),
         
     | 
| 
      
 12949 
     | 
    
         
            +
                        key: "6",
         
     | 
| 
      
 12950 
     | 
    
         
            +
                        children: (React.createElement(Economic, { onFormSubmit: onEconomicFormSubmit, economicViewData: viewOnly
         
     | 
| 
      
 12951 
     | 
    
         
            +
                                ? (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic)
         
     | 
| 
      
 12952 
     | 
    
         
            +
                                    ? coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.economic
         
     | 
| 
      
 12953 
     | 
    
         
            +
                                    : {}
         
     | 
| 
      
 12954 
     | 
    
         
            +
                                : undefined, viewOnly: viewOnly || false, t: t })),
         
     | 
| 
      
 12955 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12956 
     | 
    
         
            +
                    {
         
     | 
| 
      
 12957 
     | 
    
         
            +
                        label: t("coBenifits:assessment"),
         
     | 
| 
      
 12958 
     | 
    
         
            +
                        key: "7",
         
     | 
| 
      
 12959 
     | 
    
         
            +
                        children: (React.createElement(Assessment, { onFormSubmit: onAssessmentFormSubmit, assessmentViewData: (viewOnly && (coBenifitsViewDetails === null || coBenifitsViewDetails === void 0 ? void 0 : coBenifitsViewDetails.assessmentDetails)) ||
         
     | 
| 
      
 12960 
     | 
    
         
            +
                                (!viewOnly && (coBenefitsDetails === null || coBenefitsDetails === void 0 ? void 0 : coBenefitsDetails.assessmentDetails)), viewOnly: viewOnly || false })),
         
     | 
| 
      
 12961 
     | 
    
         
            +
                    },
         
     | 
| 
      
 12962 
     | 
    
         
            +
                ];
         
     | 
| 
      
 12963 
     | 
    
         
            +
                var onCoBenefitSubmit = function () {
         
     | 
| 
      
 12964 
     | 
    
         
            +
                    var economicOverallValidation = true;
         
     | 
| 
      
 12965 
     | 
    
         
            +
                    var environmentalOverallValidation = true;
         
     | 
| 
      
 12966 
     | 
    
         
            +
                    var economicDetailsFromForm = coBenefitDetails === null || coBenefitDetails === void 0 ? void 0 : coBenefitDetails.economic;
         
     | 
| 
      
 12967 
     | 
    
         
            +
                    var environmentalDetailsFromForm = coBenefitDetails === null || coBenefitDetails === void 0 ? void 0 : coBenefitDetails.environmental;
         
     | 
| 
      
 12968 
     | 
    
         
            +
                    var economicSectionValidation = {
         
     | 
| 
      
 12969 
     | 
    
         
            +
                        growth: {
         
     | 
| 
      
 12970 
     | 
    
         
            +
                            validation: false,
         
     | 
| 
      
 12971 
     | 
    
         
            +
                            fields: 8,
         
     | 
| 
      
 12972 
     | 
    
         
            +
                            filled: 0,
         
     | 
| 
      
 12973 
     | 
    
         
            +
                            firstFieldValue: "N/A",
         
     | 
| 
      
 12974 
     | 
    
         
            +
                        },
         
     | 
| 
      
 12975 
     | 
    
         
            +
                        energy: {
         
     | 
| 
      
 12976 
     | 
    
         
            +
                            validation: false,
         
     | 
| 
      
 12977 
     | 
    
         
            +
                            fields: 5,
         
     | 
| 
      
 12978 
     | 
    
         
            +
                            filled: 0,
         
     | 
| 
      
 12979 
     | 
    
         
            +
                            firstFieldValue: "N/A",
         
     | 
| 
      
 12980 
     | 
    
         
            +
                        },
         
     | 
| 
      
 12981 
     | 
    
         
            +
                        techTransfer: {
         
     | 
| 
      
 12982 
     | 
    
         
            +
                            validation: false,
         
     | 
| 
      
 12983 
     | 
    
         
            +
                            fields: 6,
         
     | 
| 
      
 12984 
     | 
    
         
            +
                            filled: 0,
         
     | 
| 
      
 12985 
     | 
    
         
            +
                            firstFieldValue: "N/A",
         
     | 
| 
      
 12986 
     | 
    
         
            +
                        },
         
     | 
| 
      
 12987 
     | 
    
         
            +
                        balanceOfPayments: {
         
     | 
| 
      
 12988 
     | 
    
         
            +
                            validation: false,
         
     | 
| 
      
 12989 
     | 
    
         
            +
                            fields: 3,
         
     | 
| 
      
 12990 
     | 
    
         
            +
                            filled: 0,
         
     | 
| 
      
 12991 
     | 
    
         
            +
                            firstFieldValue: "N/A",
         
     | 
| 
      
 12992 
     | 
    
         
            +
                        },
         
     | 
| 
      
 12993 
     | 
    
         
            +
                        furtherInfo: {
         
     | 
| 
      
 12994 
     | 
    
         
            +
                            validation: false,
         
     | 
| 
      
 12995 
     | 
    
         
            +
                            fields: 1,
         
     | 
| 
      
 12996 
     | 
    
         
            +
                            filled: 0,
         
     | 
| 
      
 12997 
     | 
    
         
            +
                            firstFieldValue: "N/A",
         
     | 
| 
      
 12998 
     | 
    
         
            +
                        },
         
     | 
| 
      
 12999 
     | 
    
         
            +
                    };
         
     | 
| 
      
 13000 
     | 
    
         
            +
                    var environmentalSectionValidation = {
         
     | 
| 
      
 13001 
     | 
    
         
            +
                        air: { validation: false, fields: 9, filled: 0, firstFieldValue: "N/A" },
         
     | 
| 
      
 13002 
     | 
    
         
            +
                        land: { validation: false, fields: 8, filled: 0, firstFieldValue: "N/A" },
         
     | 
| 
      
 13003 
     | 
    
         
            +
                        water: {
         
     | 
| 
      
 13004 
     | 
    
         
            +
                            validation: false,
         
     | 
| 
      
 13005 
     | 
    
         
            +
                            fields: 7,
         
     | 
| 
      
 13006 
     | 
    
         
            +
                            filled: 0,
         
     | 
| 
      
 13007 
     | 
    
         
            +
                            firstFieldValue: "N/A",
         
     | 
| 
      
 13008 
     | 
    
         
            +
                        },
         
     | 
| 
      
 13009 
     | 
    
         
            +
                        naturalResource: {
         
     | 
| 
      
 13010 
     | 
    
         
            +
                            validation: false,
         
     | 
| 
      
 13011 
     | 
    
         
            +
                            fields: 6,
         
     | 
| 
      
 13012 
     | 
    
         
            +
                            filled: 0,
         
     | 
| 
      
 13013 
     | 
    
         
            +
                            firstFieldValue: "N/A",
         
     | 
| 
      
 13014 
     | 
    
         
            +
                        },
         
     | 
| 
      
 13015 
     | 
    
         
            +
                    };
         
     | 
| 
      
 13016 
     | 
    
         
            +
                    console.log(environmentalDetailsFromForm);
         
     | 
| 
      
 13017 
     | 
    
         
            +
                    for (var key in economicDetailsFromForm) {
         
     | 
| 
      
 13018 
     | 
    
         
            +
                        var sectionName = key.replace(/Q\d+/, "");
         
     | 
| 
      
 13019 
     | 
    
         
            +
                        var fieldValue = economicDetailsFromForm[key];
         
     | 
| 
      
 13020 
     | 
    
         
            +
                        if (economicSectionValidation.hasOwnProperty(sectionName)) {
         
     | 
| 
      
 13021 
     | 
    
         
            +
                            var section = economicSectionValidation[sectionName];
         
     | 
| 
      
 13022 
     | 
    
         
            +
                            section.filled += 1;
         
     | 
| 
      
 13023 
     | 
    
         
            +
                            if (fieldValue === exports.RadioButtonStatus.YES &&
         
     | 
| 
      
 13024 
     | 
    
         
            +
                                key === "".concat(sectionName, "Q1")) {
         
     | 
| 
      
 13025 
     | 
    
         
            +
                                section.firstFieldValue = exports.RadioButtonStatus.YES;
         
     | 
| 
      
 13026 
     | 
    
         
            +
                            }
         
     | 
| 
      
 13027 
     | 
    
         
            +
                            else if (fieldValue === exports.RadioButtonStatus.NO &&
         
     | 
| 
      
 13028 
     | 
    
         
            +
                                key === "".concat(sectionName, "Q1")) {
         
     | 
| 
      
 13029 
     | 
    
         
            +
                                section.firstFieldValue = exports.RadioButtonStatus.NO;
         
     | 
| 
      
 13030 
     | 
    
         
            +
                            }
         
     | 
| 
      
 13031 
     | 
    
         
            +
                            else if (fieldValue === exports.RadioButtonStatus.NA &&
         
     | 
| 
      
 13032 
     | 
    
         
            +
                                key === "".concat(sectionName, "Q1")) {
         
     | 
| 
      
 13033 
     | 
    
         
            +
                                section.firstFieldValue = exports.RadioButtonStatus.NA;
         
     | 
| 
      
 13034 
     | 
    
         
            +
                            }
         
     | 
| 
      
 13035 
     | 
    
         
            +
                        }
         
     | 
| 
      
 13036 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13037 
     | 
    
         
            +
                    for (var section in economicSectionValidation) {
         
     | 
| 
      
 13038 
     | 
    
         
            +
                        if (economicSectionValidation[section].firstFieldValue ===
         
     | 
| 
      
 13039 
     | 
    
         
            +
                            exports.RadioButtonStatus.YES &&
         
     | 
| 
      
 13040 
     | 
    
         
            +
                            economicSectionValidation[section].fields !==
         
     | 
| 
      
 13041 
     | 
    
         
            +
                                economicSectionValidation[section].filled) {
         
     | 
| 
      
 13042 
     | 
    
         
            +
                            economicOverallValidation = false;
         
     | 
| 
      
 13043 
     | 
    
         
            +
                        }
         
     | 
| 
      
 13044 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13045 
     | 
    
         
            +
                    for (var key in environmentalDetailsFromForm) {
         
     | 
| 
      
 13046 
     | 
    
         
            +
                        var sectionName = key.replace(/Q\d+/, "");
         
     | 
| 
      
 13047 
     | 
    
         
            +
                        var fieldValue = environmentalDetailsFromForm[key];
         
     | 
| 
      
 13048 
     | 
    
         
            +
                        if (environmentalSectionValidation.hasOwnProperty(sectionName)) {
         
     | 
| 
      
 13049 
     | 
    
         
            +
                            var section = environmentalSectionValidation[sectionName];
         
     | 
| 
      
 13050 
     | 
    
         
            +
                            section.filled += 1;
         
     | 
| 
      
 13051 
     | 
    
         
            +
                            if (fieldValue === exports.RadioButtonStatus.YES &&
         
     | 
| 
      
 13052 
     | 
    
         
            +
                                key === "".concat(sectionName, "Q1")) {
         
     | 
| 
      
 13053 
     | 
    
         
            +
                                section.firstFieldValue = exports.RadioButtonStatus.YES;
         
     | 
| 
      
 13054 
     | 
    
         
            +
                            }
         
     | 
| 
      
 13055 
     | 
    
         
            +
                            else if (fieldValue === exports.RadioButtonStatus.NO &&
         
     | 
| 
      
 13056 
     | 
    
         
            +
                                key === "".concat(sectionName, "Q1")) {
         
     | 
| 
      
 13057 
     | 
    
         
            +
                                section.firstFieldValue = exports.RadioButtonStatus.NO;
         
     | 
| 
      
 13058 
     | 
    
         
            +
                            }
         
     | 
| 
      
 13059 
     | 
    
         
            +
                            else if (fieldValue === exports.RadioButtonStatus.NA &&
         
     | 
| 
      
 13060 
     | 
    
         
            +
                                key === "".concat(sectionName, "Q1")) {
         
     | 
| 
      
 13061 
     | 
    
         
            +
                                section.firstFieldValue = exports.RadioButtonStatus.NA;
         
     | 
| 
      
 13062 
     | 
    
         
            +
                            }
         
     | 
| 
      
 13063 
     | 
    
         
            +
                        }
         
     | 
| 
      
 13064 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13065 
     | 
    
         
            +
                    for (var section in environmentalSectionValidation) {
         
     | 
| 
      
 13066 
     | 
    
         
            +
                        if (environmentalSectionValidation[section].firstFieldValue ===
         
     | 
| 
      
 13067 
     | 
    
         
            +
                            exports.RadioButtonStatus.YES &&
         
     | 
| 
      
 13068 
     | 
    
         
            +
                            environmentalSectionValidation[section].fields !==
         
     | 
| 
      
 13069 
     | 
    
         
            +
                                environmentalSectionValidation[section].filled) {
         
     | 
| 
      
 13070 
     | 
    
         
            +
                            environmentalOverallValidation = false;
         
     | 
| 
      
 13071 
     | 
    
         
            +
                        }
         
     | 
| 
      
 13072 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13073 
     | 
    
         
            +
                    if (environmentalOverallValidation !== true) {
         
     | 
| 
      
 13074 
     | 
    
         
            +
                        antd.message.open({
         
     | 
| 
      
 13075 
     | 
    
         
            +
                            type: "error",
         
     | 
| 
      
 13076 
     | 
    
         
            +
                            content: "Fill the required fields in Co-benifits Environmental section",
         
     | 
| 
      
 13077 
     | 
    
         
            +
                            duration: 4,
         
     | 
| 
      
 13078 
     | 
    
         
            +
                            style: { textAlign: "right", marginRight: 15, marginTop: 10 },
         
     | 
| 
      
 13079 
     | 
    
         
            +
                        });
         
     | 
| 
      
 13080 
     | 
    
         
            +
                        return;
         
     | 
| 
      
 13081 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13082 
     | 
    
         
            +
                    if (!isSocialFormValid) {
         
     | 
| 
      
 13083 
     | 
    
         
            +
                        antd.message.open({
         
     | 
| 
      
 13084 
     | 
    
         
            +
                            type: "error",
         
     | 
| 
      
 13085 
     | 
    
         
            +
                            content: "Fill the required fields in Co-benifits Social section",
         
     | 
| 
      
 13086 
     | 
    
         
            +
                            duration: 4,
         
     | 
| 
      
 13087 
     | 
    
         
            +
                            style: { textAlign: "right", marginRight: 15, marginTop: 10 },
         
     | 
| 
      
 13088 
     | 
    
         
            +
                        });
         
     | 
| 
      
 13089 
     | 
    
         
            +
                        return;
         
     | 
| 
      
 13090 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13091 
     | 
    
         
            +
                    if (economicOverallValidation !== true) {
         
     | 
| 
      
 13092 
     | 
    
         
            +
                        antd.message.open({
         
     | 
| 
      
 13093 
     | 
    
         
            +
                            type: "error",
         
     | 
| 
      
 13094 
     | 
    
         
            +
                            content: "Fill the required fields in Co-benifits Economic section",
         
     | 
| 
      
 13095 
     | 
    
         
            +
                            duration: 4,
         
     | 
| 
      
 13096 
     | 
    
         
            +
                            style: { textAlign: "right", marginRight: 15, marginTop: 10 },
         
     | 
| 
      
 13097 
     | 
    
         
            +
                        });
         
     | 
| 
      
 13098 
     | 
    
         
            +
                        return;
         
     | 
| 
      
 13099 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13100 
     | 
    
         
            +
                    if (!isAssessmentFormValid) {
         
     | 
| 
      
 13101 
     | 
    
         
            +
                        antd.message.open({
         
     | 
| 
      
 13102 
     | 
    
         
            +
                            type: "error",
         
     | 
| 
      
 13103 
     | 
    
         
            +
                            content: "Fill the required fields in Co-benifits Assessment section",
         
     | 
| 
      
 13104 
     | 
    
         
            +
                            duration: 4,
         
     | 
| 
      
 13105 
     | 
    
         
            +
                            style: { textAlign: "right", marginRight: 15, marginTop: 10 },
         
     | 
| 
      
 13106 
     | 
    
         
            +
                        });
         
     | 
| 
      
 13107 
     | 
    
         
            +
                        return;
         
     | 
| 
      
 13108 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13109 
     | 
    
         
            +
                    onFormSubmit(coBenefitDetails);
         
     | 
| 
      
 13110 
     | 
    
         
            +
                };
         
     | 
| 
      
 13111 
     | 
    
         
            +
                return (React.createElement("div", { className: "co-benifits-container" },
         
     | 
| 
      
 13112 
     | 
    
         
            +
                    React.createElement("div", null,
         
     | 
| 
      
 13113 
     | 
    
         
            +
                        React.createElement(antd.Tabs, { className: "benifits-tabs", defaultActiveKey: "1", centered: true, items: tabItems })),
         
     | 
| 
      
 13114 
     | 
    
         
            +
                    !viewOnly && (React.createElement("div", { className: "steps-actions" },
         
     | 
| 
      
 13115 
     | 
    
         
            +
                        React.createElement(antd.Row, null,
         
     | 
| 
      
 13116 
     | 
    
         
            +
                            React.createElement(antd.Button, { onClick: function () { return onClickedBackBtn(coBenefitDetails); } }, t("back")),
         
     | 
| 
      
 13117 
     | 
    
         
            +
                            React.createElement(antd.Button, { className: "mg-left-1", type: "primary", loading: loading, onClick: onCoBenefitSubmit }, submitButtonText ? submitButtonText : t("submit")))))));
         
     | 
| 
      
 13118 
     | 
    
         
            +
            };
         
     | 
| 
      
 13119 
     | 
    
         
            +
             
     | 
| 
      
 13120 
     | 
    
         
            +
            var AddNdcActionComponent = function (props) {
         
     | 
| 
      
 13121 
     | 
    
         
            +
                var useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeManagementView = props.onNavigateToProgrammeManagementView, onNavigateToProgrammeView = props.onNavigateToProgrammeView, t = props.t, coBenefitTranslations = props.coBenefitTranslations;
         
     | 
| 
      
 13122 
     | 
    
         
            +
                var _a = React.useState(1), current = _a[0], setCurrent = _a[1];
         
     | 
| 
      
 13123 
     | 
    
         
            +
                var _b = React.useState(), programmeDetails = _b[0], setprogrammeDetails = _b[1];
         
     | 
| 
      
 13124 
     | 
    
         
            +
                var _c = React.useState(), ndcActionDetails = _c[0], setNdcActionDetails = _c[1];
         
     | 
| 
      
 13125 
     | 
    
         
            +
                var state = useLocation().state;
         
     | 
| 
      
 13126 
     | 
    
         
            +
                var post = useConnection().post;
         
     | 
| 
      
 13127 
     | 
    
         
            +
                var _d = React.useState(false), loading = _d[0], setLoading = _d[1];
         
     | 
| 
      
 13128 
     | 
    
         
            +
                var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
         
     | 
| 
      
 13129 
     | 
    
         
            +
                    ? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
         
     | 
| 
      
 13130 
     | 
    
         
            +
                    : 5000000;
         
     | 
| 
      
 13131 
     | 
    
         
            +
                React.useEffect(function () {
         
     | 
| 
      
 13132 
     | 
    
         
            +
                    if (!(state === null || state === void 0 ? void 0 : state.record)) {
         
     | 
| 
      
 13133 
     | 
    
         
            +
                        //navigate("/programmeManagement/viewAll", { replace: true });
         
     | 
| 
      
 13134 
     | 
    
         
            +
                        onNavigateToProgrammeManagementView();
         
     | 
| 
      
 13135 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13136 
     | 
    
         
            +
                    else {
         
     | 
| 
      
 13137 
     | 
    
         
            +
                        setprogrammeDetails(state.record);
         
     | 
| 
      
 13138 
     | 
    
         
            +
                        setNdcActionDetails(undefined);
         
     | 
| 
      
 13139 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13140 
     | 
    
         
            +
                }, []);
         
     | 
| 
      
 13141 
     | 
    
         
            +
                var isProjectReportsVisible = function () {
         
     | 
| 
      
 13142 
     | 
    
         
            +
                    return (programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.currentStage) === exports.ProgrammeStage.Authorised;
         
     | 
| 
      
 13143 
     | 
    
         
            +
                };
         
     | 
| 
      
 13144 
     | 
    
         
            +
                var saveNdcAction = function (ndcActionDetailsObj) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 13145 
     | 
    
         
            +
                    var response, error_1;
         
     | 
| 
      
 13146 
     | 
    
         
            +
                    return __generator(this, function (_a) {
         
     | 
| 
      
 13147 
     | 
    
         
            +
                        switch (_a.label) {
         
     | 
| 
      
 13148 
     | 
    
         
            +
                            case 0:
         
     | 
| 
      
 13149 
     | 
    
         
            +
                                setLoading(true);
         
     | 
| 
      
 13150 
     | 
    
         
            +
                                _a.label = 1;
         
     | 
| 
      
 13151 
     | 
    
         
            +
                            case 1:
         
     | 
| 
      
 13152 
     | 
    
         
            +
                                _a.trys.push([1, 3, 4, 5]);
         
     | 
| 
      
 13153 
     | 
    
         
            +
                                if (ndcActionDetailsObj.enablementReportData) {
         
     | 
| 
      
 13154 
     | 
    
         
            +
                                    delete ndcActionDetailsObj.enablementReportData;
         
     | 
| 
      
 13155 
     | 
    
         
            +
                                }
         
     | 
| 
      
 13156 
     | 
    
         
            +
                                ndcActionDetailsObj.methodology = t("ndcAction:goldStandard");
         
     | 
| 
      
 13157 
     | 
    
         
            +
                                return [4 /*yield*/, post("national/programme/addNDCAction", ndcActionDetailsObj)];
         
     | 
| 
      
 13158 
     | 
    
         
            +
                            case 2:
         
     | 
| 
      
 13159 
     | 
    
         
            +
                                response = _a.sent();
         
     | 
| 
      
 13160 
     | 
    
         
            +
                                if (response.status === 200 || response.status === 201) {
         
     | 
| 
      
 13161 
     | 
    
         
            +
                                    antd.message.open({
         
     | 
| 
      
 13162 
     | 
    
         
            +
                                        type: "success",
         
     | 
| 
      
 13163 
     | 
    
         
            +
                                        content: "".concat(t("ndcSuccessfullyCreated")),
         
     | 
| 
      
 13164 
     | 
    
         
            +
                                        duration: 4,
         
     | 
| 
      
 13165 
     | 
    
         
            +
                                        style: { textAlign: "right", marginRight: 15, marginTop: 10 },
         
     | 
| 
      
 13166 
     | 
    
         
            +
                                    });
         
     | 
| 
      
 13167 
     | 
    
         
            +
                                    // navigate("/programmeManagement/view", {
         
     | 
| 
      
 13168 
     | 
    
         
            +
                                    //   state: { record: programmeDetails },
         
     | 
| 
      
 13169 
     | 
    
         
            +
                                    // });
         
     | 
| 
      
 13170 
     | 
    
         
            +
                                    onNavigateToProgrammeView(programmeDetails);
         
     | 
| 
      
 13171 
     | 
    
         
            +
                                }
         
     | 
| 
      
 13172 
     | 
    
         
            +
                                return [3 /*break*/, 5];
         
     | 
| 
      
 13173 
     | 
    
         
            +
                            case 3:
         
     | 
| 
      
 13174 
     | 
    
         
            +
                                error_1 = _a.sent();
         
     | 
| 
      
 13175 
     | 
    
         
            +
                                antd.message.open({
         
     | 
| 
      
 13176 
     | 
    
         
            +
                                    type: "error",
         
     | 
| 
      
 13177 
     | 
    
         
            +
                                    content: error_1 && error_1.message ? error_1.message : "".concat("ndcCreationFailed"),
         
     | 
| 
      
 13178 
     | 
    
         
            +
                                    duration: 4,
         
     | 
| 
      
 13179 
     | 
    
         
            +
                                    style: { textAlign: "right", marginRight: 15, marginTop: 10 },
         
     | 
| 
      
 13180 
     | 
    
         
            +
                                });
         
     | 
| 
      
 13181 
     | 
    
         
            +
                                return [3 /*break*/, 5];
         
     | 
| 
      
 13182 
     | 
    
         
            +
                            case 4:
         
     | 
| 
      
 13183 
     | 
    
         
            +
                                setLoading(false);
         
     | 
| 
      
 13184 
     | 
    
         
            +
                                return [7 /*endfinally*/];
         
     | 
| 
      
 13185 
     | 
    
         
            +
                            case 5: return [2 /*return*/];
         
     | 
| 
      
 13186 
     | 
    
         
            +
                        }
         
     | 
| 
      
 13187 
     | 
    
         
            +
                    });
         
     | 
| 
      
 13188 
     | 
    
         
            +
                }); };
         
     | 
| 
      
 13189 
     | 
    
         
            +
                var onClickNext = function () {
         
     | 
| 
      
 13190 
     | 
    
         
            +
                    setCurrent(function (pre) { return pre + 1; });
         
     | 
| 
      
 13191 
     | 
    
         
            +
                };
         
     | 
| 
      
 13192 
     | 
    
         
            +
                var onClickBack = function () {
         
     | 
| 
      
 13193 
     | 
    
         
            +
                    setCurrent(function (pre) { return pre - 1; });
         
     | 
| 
      
 13194 
     | 
    
         
            +
                };
         
     | 
| 
      
 13195 
     | 
    
         
            +
                var onClickBackCoBenefits = function (savedCoBenefitsDetails) {
         
     | 
| 
      
 13196 
     | 
    
         
            +
                    var updatedNdcActionDetails = __assign(__assign({}, ndcActionDetails), { coBenefitsProperties: savedCoBenefitsDetails });
         
     | 
| 
      
 13197 
     | 
    
         
            +
                    setNdcActionDetails(updatedNdcActionDetails);
         
     | 
| 
      
 13198 
     | 
    
         
            +
                    onClickBack();
         
     | 
| 
      
 13199 
     | 
    
         
            +
                };
         
     | 
| 
      
 13200 
     | 
    
         
            +
                var onProjectReportSubmit = function (projectReportFormValues) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 13201 
     | 
    
         
            +
                    var updatedNdcActionDetails, logoBase64;
         
     | 
| 
      
 13202 
     | 
    
         
            +
                    return __generator(this, function (_a) {
         
     | 
| 
      
 13203 
     | 
    
         
            +
                        switch (_a.label) {
         
     | 
| 
      
 13204 
     | 
    
         
            +
                            case 0:
         
     | 
| 
      
 13205 
     | 
    
         
            +
                                updatedNdcActionDetails = __assign({}, ndcActionDetails);
         
     | 
| 
      
 13206 
     | 
    
         
            +
                                if (!(projectReportFormValues.monitoringReport &&
         
     | 
| 
      
 13207 
     | 
    
         
            +
                                    projectReportFormValues.monitoringReport.length > 0)) return [3 /*break*/, 2];
         
     | 
| 
      
 13208 
     | 
    
         
            +
                                return [4 /*yield*/, getBase64(projectReportFormValues.monitoringReport[0].originFileObj)];
         
     | 
| 
      
 13209 
     | 
    
         
            +
                            case 1:
         
     | 
| 
      
 13210 
     | 
    
         
            +
                                logoBase64 = _a.sent();
         
     | 
| 
      
 13211 
     | 
    
         
            +
                                updatedNdcActionDetails.monitoringReport = logoBase64;
         
     | 
| 
      
 13212 
     | 
    
         
            +
                                _a.label = 2;
         
     | 
| 
      
 13213 
     | 
    
         
            +
                            case 2:
         
     | 
| 
      
 13214 
     | 
    
         
            +
                                setNdcActionDetails(updatedNdcActionDetails);
         
     | 
| 
      
 13215 
     | 
    
         
            +
                                saveNdcAction(updatedNdcActionDetails);
         
     | 
| 
      
 13216 
     | 
    
         
            +
                                return [2 /*return*/];
         
     | 
| 
      
 13217 
     | 
    
         
            +
                        }
         
     | 
| 
      
 13218 
     | 
    
         
            +
                    });
         
     | 
| 
      
 13219 
     | 
    
         
            +
                }); };
         
     | 
| 
      
 13220 
     | 
    
         
            +
                var onNdcActionDetailsSubmit = function (ndcActionDetailsObj) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 13221 
     | 
    
         
            +
                    return __generator(this, function (_a) {
         
     | 
| 
      
 13222 
     | 
    
         
            +
                        ndcActionDetailsObj.programmeId = programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.programmeId;
         
     | 
| 
      
 13223 
     | 
    
         
            +
                        setNdcActionDetails(function (pre) { return (__assign(__assign({}, pre), ndcActionDetailsObj)); });
         
     | 
| 
      
 13224 
     | 
    
         
            +
                        onClickNext();
         
     | 
| 
      
 13225 
     | 
    
         
            +
                        return [2 /*return*/];
         
     | 
| 
      
 13226 
     | 
    
         
            +
                    });
         
     | 
| 
      
 13227 
     | 
    
         
            +
                }); };
         
     | 
| 
      
 13228 
     | 
    
         
            +
                var onCoBenefitsSubmit = function (coBenefitsFormValues) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 13229 
     | 
    
         
            +
                    var updatedNdcActionDetails;
         
     | 
| 
      
 13230 
     | 
    
         
            +
                    return __generator(this, function (_a) {
         
     | 
| 
      
 13231 
     | 
    
         
            +
                        updatedNdcActionDetails = __assign(__assign({}, ndcActionDetails), { coBenefitsProperties: coBenefitsFormValues });
         
     | 
| 
      
 13232 
     | 
    
         
            +
                        setNdcActionDetails(updatedNdcActionDetails);
         
     | 
| 
      
 13233 
     | 
    
         
            +
                        if (isProjectReportsVisible()) {
         
     | 
| 
      
 13234 
     | 
    
         
            +
                            onClickNext();
         
     | 
| 
      
 13235 
     | 
    
         
            +
                        }
         
     | 
| 
      
 13236 
     | 
    
         
            +
                        else {
         
     | 
| 
      
 13237 
     | 
    
         
            +
                            saveNdcAction(updatedNdcActionDetails);
         
     | 
| 
      
 13238 
     | 
    
         
            +
                        }
         
     | 
| 
      
 13239 
     | 
    
         
            +
                        return [2 /*return*/];
         
     | 
| 
      
 13240 
     | 
    
         
            +
                    });
         
     | 
| 
      
 13241 
     | 
    
         
            +
                }); };
         
     | 
| 
      
 13242 
     | 
    
         
            +
                var normFile = function (e) {
         
     | 
| 
      
 13243 
     | 
    
         
            +
                    if (Array.isArray(e)) {
         
     | 
| 
      
 13244 
     | 
    
         
            +
                        return e;
         
     | 
| 
      
 13245 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13246 
     | 
    
         
            +
                    return e === null || e === void 0 ? void 0 : e.fileList;
         
     | 
| 
      
 13247 
     | 
    
         
            +
                };
         
     | 
| 
      
 13248 
     | 
    
         
            +
                var stepItems = [
         
     | 
| 
      
 13249 
     | 
    
         
            +
                    {
         
     | 
| 
      
 13250 
     | 
    
         
            +
                        title: (React.createElement("div", { className: "step-title-container" },
         
     | 
| 
      
 13251 
     | 
    
         
            +
                            React.createElement("div", { className: "step-count" }, "01"),
         
     | 
| 
      
 13252 
     | 
    
         
            +
                            React.createElement("div", { className: "title" }, t("ndcAction:ndcActionDetailsTitle")),
         
     | 
| 
      
 13253 
     | 
    
         
            +
                            React.createElement("div", { className: "info-container" },
         
     | 
| 
      
 13254 
     | 
    
         
            +
                                React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
         
     | 
| 
      
 13255 
     | 
    
         
            +
                                    React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 }))))),
         
     | 
| 
      
 13256 
     | 
    
         
            +
                        description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
         
     | 
| 
      
 13257 
     | 
    
         
            +
                            React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, t: t, programmeDetails: programmeDetails }))),
         
     | 
| 
      
 13258 
     | 
    
         
            +
                    },
         
     | 
| 
      
 13259 
     | 
    
         
            +
                    {
         
     | 
| 
      
 13260 
     | 
    
         
            +
                        title: (React.createElement("div", { className: "step-title-container" },
         
     | 
| 
      
 13261 
     | 
    
         
            +
                            React.createElement("div", { className: "step-count" }, "02"),
         
     | 
| 
      
 13262 
     | 
    
         
            +
                            React.createElement("div", { className: "title" }, t("ndcAction:coBenefitsTitle")))),
         
     | 
| 
      
 13263 
     | 
    
         
            +
                        description: (React.createElement("div", { className: current !== 2 ? "hide" : "" },
         
     | 
| 
      
 13264 
     | 
    
         
            +
                            React.createElement(CoBenifitsComponent, { onClickedBackBtn: onClickBackCoBenefits, coBenefitsDetails: ndcActionDetails ? ndcActionDetails.coBenefitsProperties : {}, onFormSubmit: onCoBenefitsSubmit, submitButtonText: isProjectReportsVisible()
         
     | 
| 
      
 13265 
     | 
    
         
            +
                                    ? t("ndcAction:next")
         
     | 
| 
      
 13266 
     | 
    
         
            +
                                    : t("ndcAction:submit"), loading: loading, t: coBenefitTranslations }))),
         
     | 
| 
      
 13267 
     | 
    
         
            +
                    },
         
     | 
| 
      
 13268 
     | 
    
         
            +
                ];
         
     | 
| 
      
 13269 
     | 
    
         
            +
                if (isProjectReportsVisible()) {
         
     | 
| 
      
 13270 
     | 
    
         
            +
                    stepItems.push({
         
     | 
| 
      
 13271 
     | 
    
         
            +
                        title: (React.createElement("div", { className: "step-title-container" },
         
     | 
| 
      
 13272 
     | 
    
         
            +
                            React.createElement("div", { className: "step-count" }, "03"),
         
     | 
| 
      
 13273 
     | 
    
         
            +
                            React.createElement("div", { className: "title" }, t("ndcAction:projectReportsTitle")))),
         
     | 
| 
      
 13274 
     | 
    
         
            +
                        description: (React.createElement("div", { className: current !== 3 ? "hide" : "" },
         
     | 
| 
      
 13275 
     | 
    
         
            +
                            React.createElement(antd.Form, { name: "projectReports", layout: "vertical", requiredMark: true, onFinish: onProjectReportSubmit },
         
     | 
| 
      
 13276 
     | 
    
         
            +
                                React.createElement(antd.Form.Item, { label: t("ndcAction:monitoringReport"), name: "monitoringReport", valuePropName: "fileList", getValueFromEvent: normFile, required: false, rules: [
         
     | 
| 
      
 13277 
     | 
    
         
            +
                                        {
         
     | 
| 
      
 13278 
     | 
    
         
            +
                                            validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
         
     | 
| 
      
 13279 
     | 
    
         
            +
                                                var isCorrectFormat;
         
     | 
| 
      
 13280 
     | 
    
         
            +
                                                var _a, _b, _c, _d;
         
     | 
| 
      
 13281 
     | 
    
         
            +
                                                return __generator(this, function (_e) {
         
     | 
| 
      
 13282 
     | 
    
         
            +
                                                    if ((file === null || file === void 0 ? void 0 : file.length) > 0) {
         
     | 
| 
      
 13283 
     | 
    
         
            +
                                                        isCorrectFormat = false;
         
     | 
| 
      
 13284 
     | 
    
         
            +
                                                        if (((_a = file[0]) === null || _a === void 0 ? void 0 : _a.type) === "application/pdf") {
         
     | 
| 
      
 13285 
     | 
    
         
            +
                                                            isCorrectFormat = true;
         
     | 
| 
      
 13286 
     | 
    
         
            +
                                                        }
         
     | 
| 
      
 13287 
     | 
    
         
            +
                                                        else if (((_b = file[0]) === null || _b === void 0 ? void 0 : _b.type) ===
         
     | 
| 
      
 13288 
     | 
    
         
            +
                                                            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") {
         
     | 
| 
      
 13289 
     | 
    
         
            +
                                                            isCorrectFormat = true;
         
     | 
| 
      
 13290 
     | 
    
         
            +
                                                        }
         
     | 
| 
      
 13291 
     | 
    
         
            +
                                                        else if (((_c = file[0]) === null || _c === void 0 ? void 0 : _c.type) === "text/csv") {
         
     | 
| 
      
 13292 
     | 
    
         
            +
                                                            isCorrectFormat = true;
         
     | 
| 
      
 13293 
     | 
    
         
            +
                                                        }
         
     | 
| 
      
 13294 
     | 
    
         
            +
                                                        if (!isCorrectFormat) {
         
     | 
| 
      
 13295 
     | 
    
         
            +
                                                            throw new Error("".concat(t("ndcAction:invalidFileFormat")));
         
     | 
| 
      
 13296 
     | 
    
         
            +
                                                        }
         
     | 
| 
      
 13297 
     | 
    
         
            +
                                                        else if (((_d = file[0]) === null || _d === void 0 ? void 0 : _d.size) > maximumImageSize) {
         
     | 
| 
      
 13298 
     | 
    
         
            +
                                                            // default size format of files would be in bytes -> 1MB = 1000000bytes
         
     | 
| 
      
 13299 
     | 
    
         
            +
                                                            throw new Error("".concat(t("common:maxSizeVal")));
         
     | 
| 
      
 13300 
     | 
    
         
            +
                                                        }
         
     | 
| 
      
 13301 
     | 
    
         
            +
                                                    }
         
     | 
| 
      
 13302 
     | 
    
         
            +
                                                    return [2 /*return*/];
         
     | 
| 
      
 13303 
     | 
    
         
            +
                                                });
         
     | 
| 
      
 13304 
     | 
    
         
            +
                                            }); },
         
     | 
| 
      
 13305 
     | 
    
         
            +
                                        },
         
     | 
| 
      
 13306 
     | 
    
         
            +
                                    ] },
         
     | 
| 
      
 13307 
     | 
    
         
            +
                                    React.createElement(antd.Upload, { beforeUpload: function (file) {
         
     | 
| 
      
 13308 
     | 
    
         
            +
                                            return false;
         
     | 
| 
      
 13309 
     | 
    
         
            +
                                        }, className: "design-upload-section", name: "monitoringReport", listType: "picture", multiple: false, maxCount: 1 },
         
     | 
| 
      
 13310 
     | 
    
         
            +
                                        React.createElement(antd.Button, { className: "upload-doc", size: "large", icon: React.createElement(icons.UploadOutlined, null) }, "Upload"))),
         
     | 
| 
      
 13311 
     | 
    
         
            +
                                React.createElement("div", { className: "steps-actions" },
         
     | 
| 
      
 13312 
     | 
    
         
            +
                                    React.createElement(antd.Row, null,
         
     | 
| 
      
 13313 
     | 
    
         
            +
                                        React.createElement(antd.Button, { onClick: onClickBack }, t("ndcAction:back")),
         
     | 
| 
      
 13314 
     | 
    
         
            +
                                        React.createElement(antd.Button, { className: "mg-left-1", htmlType: "submit", type: "primary", loading: loading }, t("ndcAction:submit"))))))),
         
     | 
| 
      
 13315 
     | 
    
         
            +
                    });
         
     | 
| 
      
 13316 
     | 
    
         
            +
                }
         
     | 
| 
      
 13317 
     | 
    
         
            +
                return (React.createElement("div", { className: "add-ndc-main-container" },
         
     | 
| 
      
 13318 
     | 
    
         
            +
                    React.createElement("div", { className: "title-container" },
         
     | 
| 
      
 13319 
     | 
    
         
            +
                        React.createElement("div", { className: "main" }, t("ndcAction:addNdcTitle")),
         
     | 
| 
      
 13320 
     | 
    
         
            +
                        React.createElement("div", { className: "sub" }, t("ndcAction:addNdcSubTitle"))),
         
     | 
| 
      
 13321 
     | 
    
         
            +
                    React.createElement("div", { className: "adding-section" },
         
     | 
| 
      
 13322 
     | 
    
         
            +
                        React.createElement("div", { className: "form-section" },
         
     | 
| 
      
 13323 
     | 
    
         
            +
                            React.createElement(antd.Steps, { progressDot: true, direction: "vertical", current: current, items: stepItems })))));
         
     | 
| 
      
 13324 
     | 
    
         
            +
            };
         
     | 
| 
      
 13325 
     | 
    
         
            +
             
     | 
| 
       10409 
13326 
     | 
    
         
             
            var css_248z$1 = ".legend-item-container {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between;\n  font-size: 14px;\n  font-weight: 400;\n  margin-left: 0.75rem; }\n  .legend-item-container .text {\n    margin-left: 0.2rem; }\n";
         
     | 
| 
       10410 
13327 
     | 
    
         
             
            styleInject(css_248z$1);
         
     | 
| 
       10411 
13328 
     | 
    
         | 
| 
         @@ -10655,6 +13572,7 @@ var StasticCard = function (props) { 
     | 
|
| 
       10655 
13572 
     | 
    
         
             
                    updatedDate !== '0' && React.createElement("div", { className: "updated-on" }, updatedDate)))));
         
     | 
| 
       10656 
13573 
     | 
    
         
             
            };
         
     | 
| 
       10657 
13574 
     | 
    
         | 
| 
      
 13575 
     | 
    
         
            +
            exports.AddNdcActionComponent = AddNdcActionComponent;
         
     | 
| 
       10658 
13576 
     | 
    
         
             
            exports.AddNewCompanyComponent = AddNewCompanyComponent;
         
     | 
| 
       10659 
13577 
     | 
    
         
             
            exports.AddNewUserComponent = AddNewUserComponent;
         
     | 
| 
       10660 
13578 
     | 
    
         
             
            exports.BaseEntity = BaseEntity;
         
     |