@erpsquad/common 2.0.8 → 2.0.10
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/api-client/index.esm.js +2 -2
- package/dist/chunks/AuthContext-DofdH_qH.esm.js +304 -0
- package/dist/chunks/AuthContext-DofdH_qH.esm.js.map +1 -0
- package/dist/chunks/DonutChart-C6riky4l.esm.js +95 -0
- package/dist/chunks/DonutChart-C6riky4l.esm.js.map +1 -0
- package/dist/chunks/DynamicDependentField-B7LLKauF.js +127 -0
- package/dist/chunks/DynamicDependentField-B7LLKauF.js.map +1 -0
- package/dist/chunks/DynamicDependentField-BxYo0E8h.esm.js +128 -0
- package/dist/chunks/DynamicDependentField-BxYo0E8h.esm.js.map +1 -0
- package/dist/chunks/DynamicSearchInput-MbezEgV9.esm.js +195 -0
- package/dist/chunks/DynamicSearchInput-MbezEgV9.esm.js.map +1 -0
- package/dist/chunks/ERPUIProvider-BTLDtZWH.esm.js +133 -0
- package/dist/chunks/ERPUIProvider-BTLDtZWH.esm.js.map +1 -0
- package/dist/chunks/ERPUIProvider-JvxT4YBI.js +132 -0
- package/dist/chunks/ERPUIProvider-JvxT4YBI.js.map +1 -0
- package/dist/chunks/FORMS-D5-HNmNu.esm.js +296 -0
- package/dist/chunks/FORMS-D5-HNmNu.esm.js.map +1 -0
- package/dist/chunks/FORMS-DbmBrjDK.js +295 -0
- package/dist/chunks/FORMS-DbmBrjDK.js.map +1 -0
- package/dist/chunks/FlexibleReduxExample-B_wy14VX.js +148 -0
- package/dist/chunks/FlexibleReduxExample-B_wy14VX.js.map +1 -0
- package/dist/chunks/FlexibleReduxExample-C3tC2qfM.esm.js +149 -0
- package/dist/chunks/FlexibleReduxExample-C3tC2qfM.esm.js.map +1 -0
- package/dist/chunks/GroupBarChart-DARqXm97.esm.js +87 -0
- package/dist/chunks/GroupBarChart-DARqXm97.esm.js.map +1 -0
- package/dist/chunks/SectionFlowEditor-Dxth-wu4.js +5460 -0
- package/dist/chunks/SectionFlowEditor-Dxth-wu4.js.map +1 -0
- package/dist/chunks/SectionFlowEditor-pMoBaKFN.esm.js +5461 -0
- package/dist/chunks/SectionFlowEditor-pMoBaKFN.esm.js.map +1 -0
- package/dist/chunks/action-bar-Bbs92VO3.js +636 -0
- package/dist/chunks/action-bar-Bbs92VO3.js.map +1 -0
- package/dist/chunks/action-bar-DGP5jVk0.esm.js +637 -0
- package/dist/chunks/action-bar-DGP5jVk0.esm.js.map +1 -0
- package/dist/chunks/actionCreator-6vnQNdPW.esm.js +14 -0
- package/dist/chunks/actionCreator-6vnQNdPW.esm.js.map +1 -0
- package/dist/chunks/actionCreator-CRjzdA2F.esm.js +22 -0
- package/dist/chunks/actionCreator-CRjzdA2F.esm.js.map +1 -0
- package/dist/chunks/actionCreator-CfzbTvPB.esm.js +94 -0
- package/dist/chunks/actionCreator-CfzbTvPB.esm.js.map +1 -0
- package/dist/chunks/actionCreator-jQ2zgNcg.esm.js +80 -0
- package/dist/chunks/actionCreator-jQ2zgNcg.esm.js.map +1 -0
- package/dist/chunks/actionCreator-yZ3mD8R2.esm.js +28 -0
- package/dist/chunks/actionCreator-yZ3mD8R2.esm.js.map +1 -0
- package/dist/chunks/activity-log-CzJ_mSbr.js +122 -0
- package/dist/chunks/activity-log-CzJ_mSbr.js.map +1 -0
- package/dist/chunks/activity-log-IcyRmNTS.esm.js +123 -0
- package/dist/chunks/activity-log-IcyRmNTS.esm.js.map +1 -0
- package/dist/chunks/activity-tag-Bk13Lwtt.esm.js +152 -0
- package/dist/chunks/activity-tag-Bk13Lwtt.esm.js.map +1 -0
- package/dist/chunks/add-template-BiYEdQDO.js +10 -0
- package/dist/chunks/add-template-BiYEdQDO.js.map +1 -0
- package/dist/chunks/add-template-UDMgmlNf.esm.js +11 -0
- package/dist/chunks/add-template-UDMgmlNf.esm.js.map +1 -0
- package/dist/chunks/address-modal-BsAECcxm.esm.js +671 -0
- package/dist/chunks/address-modal-BsAECcxm.esm.js.map +1 -0
- package/dist/chunks/address-modal-punbXNXR.js +687 -0
- package/dist/chunks/address-modal-punbXNXR.js.map +1 -0
- package/dist/chunks/ai-summary-VG2I3n99.esm.js +351 -0
- package/dist/chunks/ai-summary-VG2I3n99.esm.js.map +1 -0
- package/dist/chunks/api-B6GkxQYG.esm.js +2219 -0
- package/dist/chunks/api-B6GkxQYG.esm.js.map +1 -0
- package/dist/chunks/api-BbjtLtS_.esm.js +4682 -0
- package/dist/chunks/api-BbjtLtS_.esm.js.map +1 -0
- package/dist/chunks/appbar-Dol8xdCz.js +56 -0
- package/dist/chunks/appbar-Dol8xdCz.js.map +1 -0
- package/dist/chunks/appbar-kCY0xo1q.esm.js +57 -0
- package/dist/chunks/appbar-kCY0xo1q.esm.js.map +1 -0
- package/dist/chunks/approval-wrapper-BIi2og8G.esm.js +140 -0
- package/dist/chunks/approval-wrapper-BIi2og8G.esm.js.map +1 -0
- package/dist/chunks/approval-wrapper-Cgweuhjx.js +139 -0
- package/dist/chunks/approval-wrapper-Cgweuhjx.js.map +1 -0
- package/dist/chunks/calculation-summary-BwBud3iV.esm.js +174 -0
- package/dist/chunks/calculation-summary-BwBud3iV.esm.js.map +1 -0
- package/dist/chunks/change-password-DJwwMZ29.esm.js +183 -0
- package/dist/chunks/change-password-DJwwMZ29.esm.js.map +1 -0
- package/dist/chunks/change-user-password-modal-DP_wbT8i.esm.js +119 -0
- package/dist/chunks/change-user-password-modal-DP_wbT8i.esm.js.map +1 -0
- package/dist/chunks/chat-bot-B1SWhIFL.esm.js +1831 -0
- package/dist/chunks/chat-bot-B1SWhIFL.esm.js.map +1 -0
- package/dist/chunks/checkbox-Bp-_K3Uq.esm.js +83 -0
- package/dist/chunks/checkbox-Bp-_K3Uq.esm.js.map +1 -0
- package/dist/chunks/checkbox-D8p_Y3nz.js +82 -0
- package/dist/chunks/checkbox-D8p_Y3nz.js.map +1 -0
- package/dist/chunks/common-D6QyHh2n.esm.js +183 -0
- package/dist/chunks/common-D6QyHh2n.esm.js.map +1 -0
- package/dist/chunks/common-utility-DhJfepcc.esm.js +305 -0
- package/dist/chunks/common-utility-DhJfepcc.esm.js.map +1 -0
- package/dist/chunks/confirm-modal-D4bLzEGf.js +97 -0
- package/dist/chunks/confirm-modal-D4bLzEGf.js.map +1 -0
- package/dist/chunks/confirm-modal-nCdT1-Zb.esm.js +98 -0
- package/dist/chunks/confirm-modal-nCdT1-Zb.esm.js.map +1 -0
- package/dist/chunks/contact-modal-BmVA-DgV.esm.js +169 -0
- package/dist/chunks/contact-modal-BmVA-DgV.esm.js.map +1 -0
- package/dist/chunks/contact-modal-DDmk7Usg.js +185 -0
- package/dist/chunks/contact-modal-DDmk7Usg.js.map +1 -0
- package/dist/chunks/custom-editor-B0tdyVUd.esm.js +1257 -0
- package/dist/chunks/custom-editor-B0tdyVUd.esm.js.map +1 -0
- package/dist/chunks/custom-form-BJMiFIF5.js +1145 -0
- package/dist/chunks/custom-form-BJMiFIF5.js.map +1 -0
- package/dist/chunks/custom-form-BhFonDWy.esm.js +1146 -0
- package/dist/chunks/custom-form-BhFonDWy.esm.js.map +1 -0
- package/dist/chunks/dashboard-BMR-mYzQ.js +74 -0
- package/dist/chunks/dashboard-BMR-mYzQ.js.map +1 -0
- package/dist/chunks/dashboard-y9pGL53r.esm.js +75 -0
- package/dist/chunks/dashboard-y9pGL53r.esm.js.map +1 -0
- package/dist/chunks/date-range-picker-D6a4i6w_.js +61 -0
- package/dist/chunks/date-range-picker-D6a4i6w_.js.map +1 -0
- package/dist/chunks/date-range-picker-DIssi8qZ.js +159 -0
- package/dist/chunks/date-range-picker-DIssi8qZ.js.map +1 -0
- package/dist/chunks/date-range-picker-DqcAOo8B.esm.js +160 -0
- package/dist/chunks/date-range-picker-DqcAOo8B.esm.js.map +1 -0
- package/dist/chunks/date-range-picker-OOZXiyKI.esm.js +62 -0
- package/dist/chunks/date-range-picker-OOZXiyKI.esm.js.map +1 -0
- package/dist/chunks/dropdown-button-DYSlETL1.esm.js +146 -0
- package/dist/chunks/dropdown-button-DYSlETL1.esm.js.map +1 -0
- package/dist/chunks/dropdown-button-DeiOY_oP.js +162 -0
- package/dist/chunks/dropdown-button-DeiOY_oP.js.map +1 -0
- package/dist/chunks/dynamic-layout-wrapper-B6O3hR3Y.esm.js +229 -0
- package/dist/chunks/dynamic-layout-wrapper-B6O3hR3Y.esm.js.map +1 -0
- package/dist/chunks/dynamic-layout-wrapper-BtHbs1Zj.js +228 -0
- package/dist/chunks/dynamic-layout-wrapper-BtHbs1Zj.js.map +1 -0
- package/dist/chunks/dynamic-report-BAOTGuEk.esm.js +589 -0
- package/dist/chunks/dynamic-report-BAOTGuEk.esm.js.map +1 -0
- package/dist/chunks/dynamic-rows-C75GZFAm.esm.js +250 -0
- package/dist/chunks/dynamic-rows-C75GZFAm.esm.js.map +1 -0
- package/dist/chunks/dynamic-text-editor-btqFFT1t.esm.js +45 -0
- package/dist/chunks/dynamic-text-editor-btqFFT1t.esm.js.map +1 -0
- package/dist/chunks/edit-section-modal-DMH6owAz.esm.js +80 -0
- package/dist/chunks/edit-section-modal-DMH6owAz.esm.js.map +1 -0
- package/dist/chunks/expandable-summary-wrapper-DMQc4D4R.js +241 -0
- package/dist/chunks/expandable-summary-wrapper-DMQc4D4R.js.map +1 -0
- package/dist/chunks/expandable-summary-wrapper-t86b6oNE.esm.js +242 -0
- package/dist/chunks/expandable-summary-wrapper-t86b6oNE.esm.js.map +1 -0
- package/dist/chunks/filter-Bx-lYpPZ.js +409 -0
- package/dist/chunks/filter-Bx-lYpPZ.js.map +1 -0
- package/dist/chunks/filter-Db1I5JhF.esm.js +410 -0
- package/dist/chunks/filter-Db1I5JhF.esm.js.map +1 -0
- package/dist/chunks/footer-DBHQUExr.js +63 -0
- package/dist/chunks/footer-DBHQUExr.js.map +1 -0
- package/dist/chunks/footer-kRvtCdbo.esm.js +64 -0
- package/dist/chunks/footer-kRvtCdbo.esm.js.map +1 -0
- package/dist/chunks/forgot-password-DaYwd5uW.esm.js +178 -0
- package/dist/chunks/forgot-password-DaYwd5uW.esm.js.map +1 -0
- package/dist/chunks/form-fields-B9l6UKhI.esm.js +355 -0
- package/dist/chunks/form-fields-B9l6UKhI.esm.js.map +1 -0
- package/dist/chunks/form-fields-sKxAzG4O.js +354 -0
- package/dist/chunks/form-fields-sKxAzG4O.js.map +1 -0
- package/dist/chunks/form-parser-BATeNTRO.js +613 -0
- package/dist/chunks/form-parser-BATeNTRO.js.map +1 -0
- package/dist/chunks/form-parser-DA5j9chU.esm.js +597 -0
- package/dist/chunks/form-parser-DA5j9chU.esm.js.map +1 -0
- package/dist/chunks/form-section-Crc8PRBt.esm.js +576 -0
- package/dist/chunks/form-section-Crc8PRBt.esm.js.map +1 -0
- package/dist/chunks/form-section-CyjL2UeV.js +575 -0
- package/dist/chunks/form-section-CyjL2UeV.js.map +1 -0
- package/dist/chunks/fullScreen-Bar5e4Zd.esm.js +19 -0
- package/dist/chunks/fullScreen-Bar5e4Zd.esm.js.map +1 -0
- package/dist/chunks/fullScreen-DJR7qbF5.js +18 -0
- package/dist/chunks/fullScreen-DJR7qbF5.js.map +1 -0
- package/dist/chunks/global-search-Bn_3kWNW.esm.js +150 -0
- package/dist/chunks/global-search-Bn_3kWNW.esm.js.map +1 -0
- package/dist/chunks/grid-view-DQ481EM1.esm.js +52 -0
- package/dist/chunks/grid-view-DQ481EM1.esm.js.map +1 -0
- package/dist/chunks/header-266dLUMg.js +92 -0
- package/dist/chunks/header-266dLUMg.js.map +1 -0
- package/dist/chunks/header-BCMW9ctt.esm.js +93 -0
- package/dist/chunks/header-BCMW9ctt.esm.js.map +1 -0
- package/dist/chunks/header-enhanced-Cf44TMZf.js +402 -0
- package/dist/chunks/header-enhanced-Cf44TMZf.js.map +1 -0
- package/dist/chunks/header-enhanced-DDG6COKM.esm.js +403 -0
- package/dist/chunks/header-enhanced-DDG6COKM.esm.js.map +1 -0
- package/dist/chunks/i18n-B7RX2ZZ6.js +95 -0
- package/dist/chunks/i18n-B7RX2ZZ6.js.map +1 -0
- package/dist/chunks/i18n-IaT9E8wF.esm.js +94 -0
- package/dist/chunks/i18n-IaT9E8wF.esm.js.map +1 -0
- package/dist/chunks/index-CGCqvPs3.js +947 -0
- package/dist/chunks/index-CGCqvPs3.js.map +1 -0
- package/dist/chunks/index-DWPfPC9k.esm.js +2024 -0
- package/dist/chunks/index-DWPfPC9k.esm.js.map +1 -0
- package/dist/chunks/index-gsSxnFGz.esm.js +948 -0
- package/dist/chunks/index-gsSxnFGz.esm.js.map +1 -0
- package/dist/chunks/inline-edit-fields-DGmyByec.js +341 -0
- package/dist/chunks/inline-edit-fields-DGmyByec.js.map +1 -0
- package/dist/chunks/inline-edit-fields-tyqj9pWW.esm.js +325 -0
- package/dist/chunks/inline-edit-fields-tyqj9pWW.esm.js.map +1 -0
- package/dist/chunks/inventory-reports-title-bar-C1_Znj9T.esm.js +733 -0
- package/dist/chunks/inventory-reports-title-bar-C1_Znj9T.esm.js.map +1 -0
- package/dist/chunks/inventory-reports-title-bar-CtcsFJk6.js +732 -0
- package/dist/chunks/inventory-reports-title-bar-CtcsFJk6.js.map +1 -0
- package/dist/chunks/item-response-details-C570kCR2.js +78 -0
- package/dist/chunks/item-response-details-C570kCR2.js.map +1 -0
- package/dist/chunks/item-response-details-CsmXbBYo.esm.js +79 -0
- package/dist/chunks/item-response-details-CsmXbBYo.esm.js.map +1 -0
- package/dist/chunks/journal-type-add-modal-CQ7ik88w.js +128 -0
- package/dist/chunks/journal-type-add-modal-CQ7ik88w.js.map +1 -0
- package/dist/chunks/journal-type-add-modal-CubGUsiW.esm.js +112 -0
- package/dist/chunks/journal-type-add-modal-CubGUsiW.esm.js.map +1 -0
- package/dist/chunks/language-switch-B8Vo3as8.js +110 -0
- package/dist/chunks/language-switch-B8Vo3as8.js.map +1 -0
- package/dist/chunks/language-switch-JqR_jZoX.esm.js +111 -0
- package/dist/chunks/language-switch-JqR_jZoX.esm.js.map +1 -0
- package/dist/chunks/languageContext-JTb2yZmF.js +218 -0
- package/dist/chunks/languageContext-JTb2yZmF.js.map +1 -0
- package/dist/chunks/languageContext-aT4pFMI3.esm.js +219 -0
- package/dist/chunks/languageContext-aT4pFMI3.esm.js.map +1 -0
- package/dist/chunks/listing-BPhVr3Oa.js +276 -0
- package/dist/chunks/listing-BPhVr3Oa.js.map +1 -0
- package/dist/chunks/listing-C2V7b7Ut.esm.js +277 -0
- package/dist/chunks/listing-C2V7b7Ut.esm.js.map +1 -0
- package/dist/chunks/location-select-CIgowMqQ.esm.js +86 -0
- package/dist/chunks/location-select-CIgowMqQ.esm.js.map +1 -0
- package/dist/chunks/location-select-kDEOHi9-.js +85 -0
- package/dist/chunks/location-select-kDEOHi9-.js.map +1 -0
- package/dist/chunks/material-editable-table-Cm-3DESo.js +1464 -0
- package/dist/chunks/material-editable-table-Cm-3DESo.js.map +1 -0
- package/dist/chunks/material-editable-table-DQO_PbYV.esm.js +1448 -0
- package/dist/chunks/material-editable-table-DQO_PbYV.esm.js.map +1 -0
- package/dist/chunks/metaComponent-AO9arcqo.js +892 -0
- package/dist/chunks/metaComponent-AO9arcqo.js.map +1 -0
- package/dist/chunks/metaComponent-Bos7f-IP.esm.js +893 -0
- package/dist/chunks/metaComponent-Bos7f-IP.esm.js.map +1 -0
- package/dist/chunks/module-reducer-DODlFqlX.esm.js +79 -0
- package/dist/chunks/module-reducer-DODlFqlX.esm.js.map +1 -0
- package/dist/chunks/notification-menu-CPFPIlav.esm.js +606 -0
- package/dist/chunks/notification-menu-CPFPIlav.esm.js.map +1 -0
- package/dist/chunks/page-action-CnttT4yL.js +324 -0
- package/dist/chunks/page-action-CnttT4yL.js.map +1 -0
- package/dist/chunks/page-action-D6R8uwBJ.esm.js +325 -0
- package/dist/chunks/page-action-D6R8uwBJ.esm.js.map +1 -0
- package/dist/chunks/page-context-C6GLxzPF.js +387 -0
- package/dist/chunks/page-context-C6GLxzPF.js.map +1 -0
- package/dist/chunks/page-context-CZVCQsx4.esm.js +388 -0
- package/dist/chunks/page-context-CZVCQsx4.esm.js.map +1 -0
- package/dist/chunks/page-navigator-CHM4O0zW.esm.js +244 -0
- package/dist/chunks/page-navigator-CHM4O0zW.esm.js.map +1 -0
- package/dist/chunks/page-navigator-D7SLLh88.js +243 -0
- package/dist/chunks/page-navigator-D7SLLh88.js.map +1 -0
- package/dist/chunks/page-view-31R0h58t.esm.js +324 -0
- package/dist/chunks/page-view-31R0h58t.esm.js.map +1 -0
- package/dist/chunks/page-view-CJdFwyUV.js +323 -0
- package/dist/chunks/page-view-CJdFwyUV.js.map +1 -0
- package/dist/chunks/pagination-DF8mY5Wg.esm.js +136 -0
- package/dist/chunks/pagination-DF8mY5Wg.esm.js.map +1 -0
- package/dist/chunks/pagination-ytCCM6x5.js +135 -0
- package/dist/chunks/pagination-ytCCM6x5.js.map +1 -0
- package/dist/chunks/phone-CzbKUETn.esm.js +59 -0
- package/dist/chunks/phone-CzbKUETn.esm.js.map +1 -0
- package/dist/chunks/phone-D8epH-f3.js +58 -0
- package/dist/chunks/phone-D8epH-f3.js.map +1 -0
- package/dist/chunks/phone-input-3p8jy0VZ.esm.js +255 -0
- package/dist/chunks/phone-input-3p8jy0VZ.esm.js.map +1 -0
- package/dist/chunks/phone-input-cDVGHShY.js +254 -0
- package/dist/chunks/phone-input-cDVGHShY.js.map +1 -0
- package/dist/chunks/privateRoute-D5cMrsfo.esm.js +13 -0
- package/dist/chunks/privateRoute-D5cMrsfo.esm.js.map +1 -0
- package/dist/chunks/quick-approval-modal-DaSlNlcT.esm.js +256 -0
- package/dist/chunks/quick-approval-modal-DaSlNlcT.esm.js.map +1 -0
- package/dist/chunks/reducer-BVmCliuv.esm.js +50 -0
- package/dist/chunks/reducer-BVmCliuv.esm.js.map +1 -0
- package/dist/chunks/reducer-Ce33BbuU.esm.js +149 -0
- package/dist/chunks/reducer-Ce33BbuU.esm.js.map +1 -0
- package/dist/chunks/reducer-CqWixCbD.esm.js +33 -0
- package/dist/chunks/reducer-CqWixCbD.esm.js.map +1 -0
- package/dist/chunks/reducer-DJLJl8jC.esm.js +43 -0
- package/dist/chunks/reducer-DJLJl8jC.esm.js.map +1 -0
- package/dist/chunks/reducer-DhF7Zh6Q.esm.js +56 -0
- package/dist/chunks/reducer-DhF7Zh6Q.esm.js.map +1 -0
- package/dist/chunks/remove-action-BrwzXFnw.esm.js +21 -0
- package/dist/chunks/remove-action-BrwzXFnw.esm.js.map +1 -0
- package/dist/chunks/remove-action-DuOSbzq_.js +20 -0
- package/dist/chunks/remove-action-DuOSbzq_.js.map +1 -0
- package/dist/chunks/report-buttons-B2eLIpL8.esm.js +46 -0
- package/dist/chunks/report-buttons-B2eLIpL8.esm.js.map +1 -0
- package/dist/chunks/report-buttons-C5-b6TSy.esm.js +60 -0
- package/dist/chunks/report-buttons-C5-b6TSy.esm.js.map +1 -0
- package/dist/chunks/report-buttons-CZk6F9qW.js +59 -0
- package/dist/chunks/report-buttons-CZk6F9qW.js.map +1 -0
- package/dist/chunks/report-buttons-DOMCk_6C.js +45 -0
- package/dist/chunks/report-buttons-DOMCk_6C.js.map +1 -0
- package/dist/chunks/reportFilter-CYHe2E_K.esm.js +395 -0
- package/dist/chunks/reportFilter-CYHe2E_K.esm.js.map +1 -0
- package/dist/chunks/reportFilter-DxVLL73i.js +394 -0
- package/dist/chunks/reportFilter-DxVLL73i.js.map +1 -0
- package/dist/chunks/reports-title-bar-CCIgfK8H.js +946 -0
- package/dist/chunks/reports-title-bar-CCIgfK8H.js.map +1 -0
- package/dist/chunks/reports-title-bar-DlTdaUpn.esm.js +947 -0
- package/dist/chunks/reports-title-bar-DlTdaUpn.esm.js.map +1 -0
- package/dist/chunks/reset-password-D-KmDrEy.esm.js +33 -0
- package/dist/chunks/reset-password-D-KmDrEy.esm.js.map +1 -0
- package/dist/chunks/reset-password-modal-B6IEx0RP.esm.js +144 -0
- package/dist/chunks/reset-password-modal-B6IEx0RP.esm.js.map +1 -0
- package/dist/chunks/routes-BRMHqLSd.js +35 -0
- package/dist/chunks/routes-BRMHqLSd.js.map +1 -0
- package/dist/chunks/routes-CIf3edRf.esm.js +36 -0
- package/dist/chunks/routes-CIf3edRf.esm.js.map +1 -0
- package/dist/chunks/schedule-report-CIITdY_C.js +235 -0
- package/dist/chunks/schedule-report-CIITdY_C.js.map +1 -0
- package/dist/chunks/schedule-report-CeUbAKxV.esm.js +236 -0
- package/dist/chunks/schedule-report-CeUbAKxV.esm.js.map +1 -0
- package/dist/chunks/schedule-report-modal-C4WqL29j.js +287 -0
- package/dist/chunks/schedule-report-modal-C4WqL29j.js.map +1 -0
- package/dist/chunks/schedule-report-modal-CFrDZ-pB.esm.js +288 -0
- package/dist/chunks/schedule-report-modal-CFrDZ-pB.esm.js.map +1 -0
- package/dist/chunks/searchable-select-D6VuGTy4.esm.js +5396 -0
- package/dist/chunks/searchable-select-D6VuGTy4.esm.js.map +1 -0
- package/dist/chunks/searchable-select-ertqLLGJ.js +5412 -0
- package/dist/chunks/searchable-select-ertqLLGJ.js.map +1 -0
- package/dist/chunks/share-modal-C1CSb_3y.js +217 -0
- package/dist/chunks/share-modal-C1CSb_3y.js.map +1 -0
- package/dist/chunks/share-modal-DxKrMi2d.esm.js +218 -0
- package/dist/chunks/share-modal-DxKrMi2d.esm.js.map +1 -0
- package/dist/chunks/share-modal-enhanced-BTKAPB0s.js +269 -0
- package/dist/chunks/share-modal-enhanced-BTKAPB0s.js.map +1 -0
- package/dist/chunks/share-modal-enhanced-CVyXc-Dh.esm.js +270 -0
- package/dist/chunks/share-modal-enhanced-CVyXc-Dh.esm.js.map +1 -0
- package/dist/chunks/sidebar-B0_wJDLu.esm.js +879 -0
- package/dist/chunks/sidebar-B0_wJDLu.esm.js.map +1 -0
- package/dist/chunks/sidebar-DBIBqPwf.js +878 -0
- package/dist/chunks/sidebar-DBIBqPwf.js.map +1 -0
- package/dist/chunks/sidebarScreen-CVeGcSx7.esm.js +202 -0
- package/dist/chunks/sidebarScreen-CVeGcSx7.esm.js.map +1 -0
- package/dist/chunks/sidebarScreen-ym9GJarW.js +201 -0
- package/dist/chunks/sidebarScreen-ym9GJarW.js.map +1 -0
- package/dist/chunks/store-B_mh-yKT.esm.js +100 -0
- package/dist/chunks/store-B_mh-yKT.esm.js.map +1 -0
- package/dist/chunks/table-B-MmSU-O.js +184 -0
- package/dist/chunks/table-B-MmSU-O.js.map +1 -0
- package/dist/chunks/table-C_9zw71g.esm.js +185 -0
- package/dist/chunks/table-C_9zw71g.esm.js.map +1 -0
- package/dist/chunks/table-form-BBXjhFbT.esm.js +1537 -0
- package/dist/chunks/table-form-BBXjhFbT.esm.js.map +1 -0
- package/dist/chunks/template-editor-router-DD-xDtdX.js +8 -0
- package/dist/chunks/template-editor-router-DD-xDtdX.js.map +1 -0
- package/dist/chunks/template-editor-router-rd9ozyxx.esm.js +9 -0
- package/dist/chunks/template-editor-router-rd9ozyxx.esm.js.map +1 -0
- package/dist/chunks/template-modal-CpfMuiYf.js +768 -0
- package/dist/chunks/template-modal-CpfMuiYf.js.map +1 -0
- package/dist/chunks/template-modal-QGa_PiIZ.esm.js +769 -0
- package/dist/chunks/template-modal-QGa_PiIZ.esm.js.map +1 -0
- package/dist/chunks/template-name-modal-CfghZygq.esm.js +101 -0
- package/dist/chunks/template-name-modal-CfghZygq.esm.js.map +1 -0
- package/dist/chunks/templates-55sIlOCj.esm.js +273 -0
- package/dist/chunks/templates-55sIlOCj.esm.js.map +1 -0
- package/dist/chunks/templates-CRU9pBoa.js +272 -0
- package/dist/chunks/templates-CRU9pBoa.js.map +1 -0
- package/dist/chunks/text-area-BKWqfUSh.js +327 -0
- package/dist/chunks/text-area-BKWqfUSh.js.map +1 -0
- package/dist/chunks/text-area-DTxxCPNw.esm.js +311 -0
- package/dist/chunks/text-area-DTxxCPNw.esm.js.map +1 -0
- package/dist/chunks/text-measurement-bcIgRcxS.esm.js +252 -0
- package/dist/chunks/text-measurement-bcIgRcxS.esm.js.map +1 -0
- package/dist/chunks/three-dot-icon-8YrrMzuw.js +37 -0
- package/dist/chunks/three-dot-icon-8YrrMzuw.js.map +1 -0
- package/dist/chunks/three-dot-icon-CjJdOPo9.esm.js +38 -0
- package/dist/chunks/three-dot-icon-CjJdOPo9.esm.js.map +1 -0
- package/dist/chunks/toggle-button-C-1TQjtd.esm.js +55 -0
- package/dist/chunks/toggle-button-C-1TQjtd.esm.js.map +1 -0
- package/dist/chunks/toggle-button-DAhGk0ML.js +54 -0
- package/dist/chunks/toggle-button-DAhGk0ML.js.map +1 -0
- package/dist/chunks/toggle-switch-B8IqxoPK.js +80 -0
- package/dist/chunks/toggle-switch-B8IqxoPK.js.map +1 -0
- package/dist/chunks/toggle-switch-Bs5VnHNu.esm.js +81 -0
- package/dist/chunks/toggle-switch-Bs5VnHNu.esm.js.map +1 -0
- package/dist/chunks/translations-BWFkwxf-.esm.js +121 -0
- package/dist/chunks/translations-BWFkwxf-.esm.js.map +1 -0
- package/dist/chunks/translations-Bp8XT7gX.js +120 -0
- package/dist/chunks/translations-Bp8XT7gX.js.map +1 -0
- package/dist/chunks/uom-field-wrapper-BGE1g6q5.esm.js +80 -0
- package/dist/chunks/uom-field-wrapper-BGE1g6q5.esm.js.map +1 -0
- package/dist/chunks/uom-field-wrapper-DZyNMUom.js +79 -0
- package/dist/chunks/uom-field-wrapper-DZyNMUom.js.map +1 -0
- package/dist/chunks/upload-excel-Vtcnj7cc.esm.js +361 -0
- package/dist/chunks/upload-excel-Vtcnj7cc.esm.js.map +1 -0
- package/dist/chunks/use-pages-C30_LQ3n.esm.js +30 -0
- package/dist/chunks/use-pages-C30_LQ3n.esm.js.map +1 -0
- package/dist/chunks/use-pages-WkAi3E4W.js +29 -0
- package/dist/chunks/use-pages-WkAi3E4W.js.map +1 -0
- package/dist/chunks/use-translations-CjXYG4SW.esm.js +69 -0
- package/dist/chunks/use-translations-CjXYG4SW.esm.js.map +1 -0
- package/dist/chunks/use-translations-DpZR71i0.js +68 -0
- package/dist/chunks/use-translations-DpZR71i0.js.map +1 -0
- package/dist/chunks/useAccountSetting-w9Xa-7w_.esm.js +174 -0
- package/dist/chunks/useAccountSetting-w9Xa-7w_.esm.js.map +1 -0
- package/dist/chunks/useCheckSkuAndName-DZnJSqwy.esm.js +50 -0
- package/dist/chunks/useCheckSkuAndName-DZnJSqwy.esm.js.map +1 -0
- package/dist/chunks/useCompanyCountryCode-ByMHnqxy.esm.js +36 -0
- package/dist/chunks/useCompanyCountryCode-ByMHnqxy.esm.js.map +1 -0
- package/dist/chunks/useDataFetcher-Cq-WKcll.js +79 -0
- package/dist/chunks/useDataFetcher-Cq-WKcll.js.map +1 -0
- package/dist/chunks/useDataFetcher-DDlv9bYl.esm.js +80 -0
- package/dist/chunks/useDataFetcher-DDlv9bYl.esm.js.map +1 -0
- package/dist/chunks/useLangauge-DE_pDKAr.esm.js +49 -0
- package/dist/chunks/useLangauge-DE_pDKAr.esm.js.map +1 -0
- package/dist/chunks/useLangauge-pT1jJDfy.js +48 -0
- package/dist/chunks/useLangauge-pT1jJDfy.js.map +1 -0
- package/dist/chunks/useReduxIntegration-Bh_3eVGW.js +38 -0
- package/dist/chunks/useReduxIntegration-Bh_3eVGW.js.map +1 -0
- package/dist/chunks/useReduxIntegration-DzUPNavJ.esm.js +39 -0
- package/dist/chunks/useReduxIntegration-DzUPNavJ.esm.js.map +1 -0
- package/dist/chunks/useSetDefaultConfig-DYgXuA-O.esm.js +101 -0
- package/dist/chunks/useSetDefaultConfig-DYgXuA-O.esm.js.map +1 -0
- package/dist/chunks/useUniquenessCheck-CpUWTYur.esm.js +39 -0
- package/dist/chunks/useUniquenessCheck-CpUWTYur.esm.js.map +1 -0
- package/dist/chunks/user-menu-C4Ud-8Q3.js +104 -0
- package/dist/chunks/user-menu-C4Ud-8Q3.js.map +1 -0
- package/dist/chunks/user-menu-jAjQfkq3.esm.js +105 -0
- package/dist/chunks/user-menu-jAjQfkq3.esm.js.map +1 -0
- package/dist/chunks/value-editor-BwXrHcSb.js +136 -0
- package/dist/chunks/value-editor-BwXrHcSb.js.map +1 -0
- package/dist/chunks/value-editor-DODHQTS2.esm.js +137 -0
- package/dist/chunks/value-editor-DODHQTS2.esm.js.map +1 -0
- package/dist/components/ERPUIProvider/index.esm.js +1 -1
- package/dist/components/ERPUIProvider/index.js +1 -1
- package/dist/components/FORMS/index.esm.js +1 -1
- package/dist/components/FORMS/index.js +1 -1
- package/dist/components/action-bar/action-bar/index.esm.js +1 -1
- package/dist/components/action-bar/action-bar/index.js +1 -1
- package/dist/components/action-bar/index.esm.js +1 -1
- package/dist/components/action-bar/index.js +1 -1
- package/dist/components/activity-tag/activity-tag/index.esm.js +1 -1
- package/dist/components/activity-tag/index.esm.js +1 -1
- package/dist/components/activityLog/activity-log/index.esm.js +1 -1
- package/dist/components/activityLog/activity-log/index.js +1 -1
- package/dist/components/activityLog/index.esm.js +1 -1
- package/dist/components/activityLog/index.js +1 -1
- package/dist/components/address-modal/index.esm.js +1 -1
- package/dist/components/address-modal/index.js +1 -1
- package/dist/components/ai-summary/ai-summary/index.esm.js +1 -1
- package/dist/components/ai-summary/index.esm.js +1 -1
- package/dist/components/appbar/appbar/index.esm.js +1 -1
- package/dist/components/appbar/appbar/index.js +1 -1
- package/dist/components/appbar/index.esm.js +1 -1
- package/dist/components/appbar/index.js +1 -1
- package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
- package/dist/components/approval-wrapper/approval-wrapper/index.js +1 -1
- package/dist/components/approval-wrapper/index.esm.js +1 -1
- package/dist/components/approval-wrapper/index.js +1 -1
- package/dist/components/calculation-summary/calculation-summary/index.esm.js +1 -1
- package/dist/components/calculation-summary/index.esm.js +1 -1
- package/dist/components/change-user-password-modal/change-user-password-modal/index.esm.js +1 -1
- package/dist/components/change-user-password-modal/index.esm.js +1 -1
- package/dist/components/charts/donutChart/DonutChart/index.esm.js +1 -1
- package/dist/components/charts/donutChart/index.esm.js +1 -1
- package/dist/components/charts/groupBarChart/GroupBarChart/index.esm.js +1 -1
- package/dist/components/charts/groupBarChart/index.esm.js +1 -1
- package/dist/components/charts/index.esm.js +2 -2
- package/dist/components/chat-bot/index.esm.js +1 -1
- package/dist/components/checkbox/index.esm.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/confirm-modal/confirm-modal/index.esm.js +1 -1
- package/dist/components/confirm-modal/confirm-modal/index.js +1 -1
- package/dist/components/confirm-modal/index.esm.js +1 -1
- package/dist/components/confirm-modal/index.js +1 -1
- package/dist/components/contact-modal/index.esm.js +1 -1
- package/dist/components/contact-modal/index.js +1 -1
- package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
- package/dist/components/custom-forms/FORMS/index.js +1 -1
- package/dist/components/custom-forms/grid-view/grid-view/index.esm.js +1 -1
- package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
- package/dist/components/custom-forms/index.esm.js +2 -2
- package/dist/components/custom-forms/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker/index.esm.js +1 -1
- package/dist/components/date-range-picker/date-range-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.esm.js +2 -2
- package/dist/components/date-range-picker/index.js +2 -2
- package/dist/components/department-add-modal/index.esm.js +1 -1
- package/dist/components/department-add-modal/index.js +1 -1
- package/dist/components/designation-add-modal/index.esm.js +1 -1
- package/dist/components/designation-add-modal/index.js +1 -1
- package/dist/components/donutChart/index.esm.js +1 -1
- package/dist/components/dropdown-button/dropdown-button/index.esm.js +1 -1
- package/dist/components/dropdown-button/dropdown-button/index.js +1 -1
- package/dist/components/dropdown-button/index.esm.js +1 -1
- package/dist/components/dropdown-button/index.js +1 -1
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js +1 -1
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js +1 -1
- package/dist/components/dynamic-layout-wrapper/index.esm.js +1 -1
- package/dist/components/dynamic-layout-wrapper/index.js +1 -1
- package/dist/components/dynamic-select/index.esm.js +1 -1
- package/dist/components/dynamic-select/index.js +1 -1
- package/dist/components/editor/custom-editor/index.esm.js +1 -1
- package/dist/components/editor/index.esm.js +1 -1
- package/dist/components/examples/FlexibleReduxExample/index.esm.js +1 -1
- package/dist/components/examples/FlexibleReduxExample/index.js +1 -1
- package/dist/components/examples/index.esm.js +1 -1
- package/dist/components/examples/index.js +1 -1
- package/dist/components/expandable-summary-wrapper/expandable-summary-wrapper/index.esm.js +1 -1
- package/dist/components/expandable-summary-wrapper/expandable-summary-wrapper/index.js +1 -1
- package/dist/components/expandable-summary-wrapper/index.esm.js +1 -1
- package/dist/components/expandable-summary-wrapper/index.js +1 -1
- package/dist/components/filter/components/index.esm.js +2 -2
- package/dist/components/filter/components/index.js +2 -2
- package/dist/components/filter/components/remove-action/index.esm.js +1 -1
- package/dist/components/filter/components/remove-action/index.js +1 -1
- package/dist/components/filter/components/value-editor/index.esm.js +1 -1
- package/dist/components/filter/components/value-editor/index.js +1 -1
- package/dist/components/filter/filter/index.esm.js +1 -1
- package/dist/components/filter/filter/index.js +1 -1
- package/dist/components/filter/index.esm.js +3 -3
- package/dist/components/filter/index.js +3 -3
- package/dist/components/footer/footer/index.esm.js +1 -1
- package/dist/components/footer/footer/index.js +1 -1
- package/dist/components/footer/index.esm.js +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/form-builder-element/index.esm.js +9 -9
- package/dist/components/form-builder-element/index.js +7 -7
- package/dist/components/form-control/form-builder/form-builder-element/checkbox/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/checkbox/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date-range-picker/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/date-range-picker/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +9 -9
- package/dist/components/form-control/form-builder/form-builder-element/index.js +7 -7
- package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/phone/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/phone/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/toggle-button/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/toggle-button/index.js +1 -1
- package/dist/components/form-control/form-builder/index.esm.js +9 -9
- package/dist/components/form-control/form-builder/index.js +7 -7
- package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
- package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
- package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
- package/dist/components/form-control/form-parser/form-section/index.js +1 -1
- package/dist/components/form-control/form-parser/index.esm.js +2 -2
- package/dist/components/form-control/form-parser/index.js +2 -2
- package/dist/components/form-control/index.esm.js +11 -11
- package/dist/components/form-control/index.js +9 -9
- package/dist/components/form-parser/index.esm.js +1 -1
- package/dist/components/form-parser/index.js +1 -1
- package/dist/components/groupBarChart/index.esm.js +1 -1
- package/dist/components/header/components/global-search/index.esm.js +1 -1
- package/dist/components/header/components/index.esm.js +2 -2
- package/dist/components/header/components/index.js +1 -1
- package/dist/components/header/components/language-switch/index.esm.js +1 -1
- package/dist/components/header/components/language-switch/index.js +1 -1
- package/dist/components/header/components/notification-menu/index.esm.js +1 -1
- package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
- package/dist/components/header/components/user-menu/index.esm.js +1 -1
- package/dist/components/header/components/user-menu/index.js +1 -1
- package/dist/components/header/header/index.esm.js +1 -1
- package/dist/components/header/header/index.js +1 -1
- package/dist/components/header/header-enhanced/index.esm.js +1 -1
- package/dist/components/header/header-enhanced/index.js +1 -1
- package/dist/components/header/index.esm.js +6 -6
- package/dist/components/header/index.js +3 -3
- package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/header/redux/index.esm.js +2 -2
- package/dist/components/header/redux/reducer/index.esm.js +1 -1
- package/dist/components/index.esm.js +62 -62
- package/dist/components/index.js +47 -47
- package/dist/components/inventory-reports-title-bar/component/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/index.esm.js +5 -5
- package/dist/components/inventory-reports-title-bar/index.js +3 -3
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/report-buttons/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/report-buttons/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.js +1 -1
- package/dist/components/journal-type-add-modal/index.esm.js +1 -1
- package/dist/components/journal-type-add-modal/index.js +1 -1
- package/dist/components/listing/index.esm.js +1 -1
- package/dist/components/listing/index.js +1 -1
- package/dist/components/listing/listing/index.esm.js +1 -1
- package/dist/components/listing/listing/index.js +1 -1
- package/dist/components/location-select/index.esm.js +1 -1
- package/dist/components/location-select/index.js +1 -1
- package/dist/components/material-editable-table/components/index.esm.js +1 -1
- package/dist/components/material-editable-table/components/index.js +1 -1
- package/dist/components/material-editable-table/components/inline-edit-fields/index.esm.js +1 -1
- package/dist/components/material-editable-table/components/inline-edit-fields/index.js +1 -1
- package/dist/components/material-editable-table/index.esm.js +2 -2
- package/dist/components/material-editable-table/index.js +2 -2
- package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
- package/dist/components/material-editable-table/material-editable-table/index.js +1 -1
- package/dist/components/material-table/components/index.esm.js +1 -1
- package/dist/components/material-table/components/index.js +1 -1
- package/dist/components/material-table/components/inline-edit-fields/index.esm.js +1 -1
- package/dist/components/material-table/components/inline-edit-fields/index.js +1 -1
- package/dist/components/material-table/index.esm.js +1 -1
- package/dist/components/material-table/index.js +1 -1
- package/dist/components/material-table/material-table/index.esm.js +1 -1
- package/dist/components/material-table/material-table/index.js +1 -1
- package/dist/components/page-navigator/components/index.esm.js +1 -1
- package/dist/components/page-navigator/components/index.js +1 -1
- package/dist/components/page-navigator/components/page-action/index.esm.js +1 -1
- package/dist/components/page-navigator/components/page-action/index.js +1 -1
- package/dist/components/page-navigator/index.esm.js +2 -2
- package/dist/components/page-navigator/index.js +2 -2
- package/dist/components/page-navigator/page-navigator/index.esm.js +1 -1
- package/dist/components/page-navigator/page-navigator/index.js +1 -1
- package/dist/components/pagination/index.esm.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination/index.esm.js +1 -1
- package/dist/components/pagination/pagination/index.js +1 -1
- package/dist/components/parties-modal/index.esm.js +1 -1
- package/dist/components/parties-modal/index.js +1 -1
- package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
- package/dist/components/parties-modal/parties-modal/index.js +1 -1
- package/dist/components/phone-input/index.esm.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input/index.esm.js +1 -1
- package/dist/components/phone-input/phone-input/index.js +1 -1
- package/dist/components/providers/ERPUIProvider/index.esm.js +1 -1
- package/dist/components/providers/ERPUIProvider/index.js +1 -1
- package/dist/components/providers/index.esm.js +1 -1
- package/dist/components/providers/index.js +1 -1
- package/dist/components/quick-approval-modal/index.esm.js +1 -1
- package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
- package/dist/components/report-buttons/index.esm.js +1 -1
- package/dist/components/report-buttons/index.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/index.esm.js +2 -2
- package/dist/components/reports/index.esm.js +2 -2
- package/dist/components/reports-title-bar/index.esm.js +4 -4
- package/dist/components/reports-title-bar/index.js +2 -2
- package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
- package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
- package/dist/components/reports-title-bar/report-buttons/index.esm.js +1 -1
- package/dist/components/reports-title-bar/report-buttons/index.js +1 -1
- package/dist/components/reports-title-bar/report-buttons/report-buttons/index.esm.js +1 -1
- package/dist/components/reports-title-bar/report-buttons/report-buttons/index.js +1 -1
- package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
- package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
- package/dist/components/reset-password-modal/index.esm.js +1 -1
- package/dist/components/reset-password-modal/reset-password-modal/index.esm.js +1 -1
- package/dist/components/rfq-response/index.esm.js +1 -1
- package/dist/components/rfq-response/index.js +1 -1
- package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
- package/dist/components/rfq-response/item-response-details/index.js +1 -1
- package/dist/components/schedule-report/index.esm.js +2 -2
- package/dist/components/schedule-report/index.js +2 -2
- package/dist/components/schedule-report/schedule-report/index.esm.js +1 -1
- package/dist/components/schedule-report/schedule-report/index.js +1 -1
- package/dist/components/schedule-report/schedule-report-modal/index.esm.js +1 -1
- package/dist/components/schedule-report/schedule-report-modal/index.js +1 -1
- package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
- package/dist/components/schedule-report-modal/index.esm.js +1 -1
- package/dist/components/schedule-report-modal/index.js +1 -1
- package/dist/components/searchable-select/index.esm.js +1 -1
- package/dist/components/searchable-select/index.js +1 -1
- package/dist/components/share-modal/index.esm.js +4 -4
- package/dist/components/share-modal/index.js +2 -2
- package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/share-modal/redux/index.esm.js +2 -2
- package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
- package/dist/components/share-modal/share-modal/index.esm.js +1 -1
- package/dist/components/share-modal/share-modal/index.js +1 -1
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js +1 -1
- package/dist/components/share-modal/share-modal-enhanced/index.js +1 -1
- package/dist/components/sidebar/index.esm.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar/index.esm.js +1 -1
- package/dist/components/sidebar/sidebar/index.js +1 -1
- package/dist/components/team-add-modal/index.esm.js +1 -1
- package/dist/components/team-add-modal/index.js +1 -1
- package/dist/components/text-area/index.esm.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area/index.esm.js +1 -1
- package/dist/components/text-area/text-area/index.js +1 -1
- package/dist/components/toggle-switch/index.esm.js +1 -1
- package/dist/components/toggle-switch/index.js +1 -1
- package/dist/components/toggle-switch/toggle-switch/index.esm.js +1 -1
- package/dist/components/toggle-switch/toggle-switch/index.js +1 -1
- package/dist/components/uom-field-wrapper/index.esm.js +1 -1
- package/dist/components/uom-field-wrapper/index.js +1 -1
- package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
- package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
- package/dist/components/upload-excel/index.esm.js +1 -1
- package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
- package/dist/contexts/AuthContext/index.esm.js +1 -1
- package/dist/contexts/index.esm.js +3 -3
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/languageContext/index.esm.js +2 -2
- package/dist/contexts/languageContext/index.js +1 -1
- package/dist/contexts/page-context/index.esm.js +1 -1
- package/dist/contexts/page-context/index.js +1 -1
- package/dist/hooks/common/index.esm.js +1 -1
- package/dist/hooks/index.esm.js +10 -10
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/use-pages/index.esm.js +1 -1
- package/dist/hooks/use-pages/index.js +1 -1
- package/dist/hooks/use-translations/index.esm.js +1 -1
- package/dist/hooks/use-translations/index.js +1 -1
- package/dist/hooks/useAccountSetting/index.esm.js +1 -1
- package/dist/hooks/useAuth/index.esm.js +1 -1
- package/dist/hooks/useAuth.d.ts +2 -3
- package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
- package/dist/hooks/useCompanyCountryCode/index.esm.js +1 -1
- package/dist/hooks/useDataFetcher/index.esm.js +1 -1
- package/dist/hooks/useDataFetcher/index.js +1 -1
- package/dist/hooks/useLangauge/index.esm.js +1 -1
- package/dist/hooks/useLangauge/index.js +1 -1
- package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
- package/dist/hooks/useReduxIntegration/index.js +1 -1
- package/dist/hooks/useSetDefaultConfig/index.esm.js +1 -1
- package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
- package/dist/icons/index.esm.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/three-dot-icon/index.esm.js +1 -1
- package/dist/icons/three-dot-icon/index.js +1 -1
- package/dist/index.esm.js +103 -103
- package/dist/index.js +67 -67
- package/dist/layout/fullScreen/fullScreen/index.esm.js +1 -1
- package/dist/layout/fullScreen/fullScreen/index.js +1 -1
- package/dist/layout/fullScreen/index.esm.js +1 -1
- package/dist/layout/fullScreen/index.js +1 -1
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/layout/sidebarScreen/index.esm.js +1 -1
- package/dist/layout/sidebarScreen/index.js +1 -1
- package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js +1 -1
- package/dist/layout/sidebarScreen/sidebarScreen/index.js +1 -1
- package/dist/redux/actionCreator/index.esm.js +1 -1
- package/dist/redux/index.esm.js +3 -3
- package/dist/redux/module-reducer/index.esm.js +1 -1
- package/dist/redux/store/index.esm.js +1 -1
- package/dist/runtime/index.esm.js +5 -5
- package/dist/runtime/index.js +4 -4
- package/dist/utils/api/index.esm.js +1 -1
- package/dist/utils/common/index.esm.js +1 -1
- package/dist/utils/common-utility/index.esm.js +1 -1
- package/dist/utils/i18n/index.esm.js +1 -1
- package/dist/utils/i18n/index.js +1 -1
- package/dist/utils/index.esm.js +10 -10
- package/dist/utils/index.js +3 -3
- package/dist/utils/metaComponent/index.esm.js +1 -1
- package/dist/utils/metaComponent/index.js +1 -1
- package/dist/utils/server/index.esm.js +2 -2
- package/dist/utils/text-measurement/index.esm.js +1 -1
- package/dist/utils/translations/index.esm.js +1 -1
- package/dist/utils/translations/index.js +1 -1
- package/dist/views/afterAuth/dashboard/index.esm.js +1 -1
- package/dist/views/afterAuth/dashboard/index.js +1 -1
- package/dist/views/afterAuth/index.esm.js +2 -2
- package/dist/views/afterAuth/index.js +2 -2
- package/dist/views/afterAuth/page-view/index.esm.js +1 -1
- package/dist/views/afterAuth/page-view/index.js +1 -1
- package/dist/views/beforeAuth/change-password/index.esm.js +1 -1
- package/dist/views/beforeAuth/forgot-password/index.esm.js +1 -1
- package/dist/views/beforeAuth/index.esm.js +3 -3
- package/dist/views/beforeAuth/login/index.esm.js +2 -2
- package/dist/views/beforeAuth/login/index.js +1 -1
- package/dist/views/beforeAuth/reset-password/index.esm.js +1 -1
- package/dist/views/custom-form/index.esm.js +1 -1
- package/dist/views/custom-form/index.js +1 -1
- package/dist/views/form-builder/custom-form/index.esm.js +1 -1
- package/dist/views/form-builder/custom-form/index.js +1 -1
- package/dist/views/form-builder/element-edit-forms/index.esm.js +1 -1
- package/dist/views/form-builder/form-fields/index.esm.js +1 -1
- package/dist/views/form-builder/form-fields/index.js +1 -1
- package/dist/views/form-builder/index.esm.js +4 -4
- package/dist/views/form-builder/index.js +2 -2
- package/dist/views/form-builder/redux/index.esm.js +1 -1
- package/dist/views/index.esm.js +18 -18
- package/dist/views/index.js +10 -10
- package/dist/views/privateRoute/index.esm.js +1 -1
- package/dist/views/routes/index.esm.js +1 -1
- package/dist/views/routes/index.js +1 -1
- package/dist/views/template-editor/add-template/index.esm.js +1 -1
- package/dist/views/template-editor/add-template/index.js +1 -1
- package/dist/views/template-editor/components/index.esm.js +1 -1
- package/dist/views/template-editor/components/index.js +1 -1
- package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
- package/dist/views/template-editor/index.esm.js +8 -8
- package/dist/views/template-editor/index.js +6 -6
- package/dist/views/template-editor/routes/index.esm.js +1 -1
- package/dist/views/template-editor/routes/index.js +1 -1
- package/dist/views/template-editor/template-editor-router/index.esm.js +1 -1
- package/dist/views/template-editor/template-editor-router/index.js +1 -1
- package/dist/views/template-editor/template-modal/index.esm.js +1 -1
- package/dist/views/template-editor/template-modal/index.js +1 -1
- package/dist/views/template-editor/template-name-modal/index.esm.js +1 -1
- package/dist/views/template-editor/templates/index.esm.js +1 -1
- package/dist/views/template-editor/templates/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/AuthContext-CYKDAW5i.esm.js +0 -304
- package/dist/chunks/AuthContext-CYKDAW5i.esm.js.map +0 -1
- package/dist/chunks/DonutChart-B9IMZt1L.esm.js +0 -95
- package/dist/chunks/DonutChart-B9IMZt1L.esm.js.map +0 -1
- package/dist/chunks/DynamicDependentField-B1ccSGZ7.esm.js +0 -128
- package/dist/chunks/DynamicDependentField-B1ccSGZ7.esm.js.map +0 -1
- package/dist/chunks/DynamicDependentField-BWaN4-oi.js +0 -127
- package/dist/chunks/DynamicDependentField-BWaN4-oi.js.map +0 -1
- package/dist/chunks/DynamicSearchInput-xvamctT5.esm.js +0 -195
- package/dist/chunks/DynamicSearchInput-xvamctT5.esm.js.map +0 -1
- package/dist/chunks/ERPUIProvider-8rnyFws0.esm.js +0 -133
- package/dist/chunks/ERPUIProvider-8rnyFws0.esm.js.map +0 -1
- package/dist/chunks/ERPUIProvider-CAwI0Pia.js +0 -132
- package/dist/chunks/ERPUIProvider-CAwI0Pia.js.map +0 -1
- package/dist/chunks/FORMS-CItBiuTr.esm.js +0 -296
- package/dist/chunks/FORMS-CItBiuTr.esm.js.map +0 -1
- package/dist/chunks/FORMS-Dyq_n5rt.js +0 -295
- package/dist/chunks/FORMS-Dyq_n5rt.js.map +0 -1
- package/dist/chunks/FlexibleReduxExample-9DVGsPft.esm.js +0 -149
- package/dist/chunks/FlexibleReduxExample-9DVGsPft.esm.js.map +0 -1
- package/dist/chunks/FlexibleReduxExample-gRlrwNom.js +0 -148
- package/dist/chunks/FlexibleReduxExample-gRlrwNom.js.map +0 -1
- package/dist/chunks/GroupBarChart-BD4HJFZm.esm.js +0 -87
- package/dist/chunks/GroupBarChart-BD4HJFZm.esm.js.map +0 -1
- package/dist/chunks/SectionFlowEditor-BLz5UxsB.esm.js +0 -5461
- package/dist/chunks/SectionFlowEditor-BLz5UxsB.esm.js.map +0 -1
- package/dist/chunks/SectionFlowEditor-Vc0AaaGO.js +0 -5460
- package/dist/chunks/SectionFlowEditor-Vc0AaaGO.js.map +0 -1
- package/dist/chunks/action-bar-Ct-eFZC6.js +0 -636
- package/dist/chunks/action-bar-Ct-eFZC6.js.map +0 -1
- package/dist/chunks/action-bar-xGbV0oif.esm.js +0 -637
- package/dist/chunks/action-bar-xGbV0oif.esm.js.map +0 -1
- package/dist/chunks/actionCreator-BlBxlh2l.esm.js +0 -28
- package/dist/chunks/actionCreator-BlBxlh2l.esm.js.map +0 -1
- package/dist/chunks/actionCreator-CHUmAB4_.esm.js +0 -14
- package/dist/chunks/actionCreator-CHUmAB4_.esm.js.map +0 -1
- package/dist/chunks/actionCreator-DCgwFst3.esm.js +0 -80
- package/dist/chunks/actionCreator-DCgwFst3.esm.js.map +0 -1
- package/dist/chunks/actionCreator-DzPzUn_7.esm.js +0 -94
- package/dist/chunks/actionCreator-DzPzUn_7.esm.js.map +0 -1
- package/dist/chunks/actionCreator-RfaAAG4X.esm.js +0 -22
- package/dist/chunks/actionCreator-RfaAAG4X.esm.js.map +0 -1
- package/dist/chunks/activity-log-1uwdsDd0.js +0 -105
- package/dist/chunks/activity-log-1uwdsDd0.js.map +0 -1
- package/dist/chunks/activity-log-DwUk6OV5.esm.js +0 -106
- package/dist/chunks/activity-log-DwUk6OV5.esm.js.map +0 -1
- package/dist/chunks/activity-tag-Usqyb7DA.esm.js +0 -152
- package/dist/chunks/activity-tag-Usqyb7DA.esm.js.map +0 -1
- package/dist/chunks/add-template-BOLMlr-B.js +0 -10
- package/dist/chunks/add-template-BOLMlr-B.js.map +0 -1
- package/dist/chunks/add-template-Wf0K4zg-.esm.js +0 -11
- package/dist/chunks/add-template-Wf0K4zg-.esm.js.map +0 -1
- package/dist/chunks/address-modal-CyIhTqEk.js +0 -687
- package/dist/chunks/address-modal-CyIhTqEk.js.map +0 -1
- package/dist/chunks/address-modal-ijpsk5Km.esm.js +0 -671
- package/dist/chunks/address-modal-ijpsk5Km.esm.js.map +0 -1
- package/dist/chunks/ai-summary-CxtEHJw9.esm.js +0 -351
- package/dist/chunks/ai-summary-CxtEHJw9.esm.js.map +0 -1
- package/dist/chunks/api-C4WZctJf.esm.js +0 -4682
- package/dist/chunks/api-C4WZctJf.esm.js.map +0 -1
- package/dist/chunks/api-Csn_qx_a.esm.js +0 -2219
- package/dist/chunks/api-Csn_qx_a.esm.js.map +0 -1
- package/dist/chunks/appbar-BlrRQJtu.js +0 -56
- package/dist/chunks/appbar-BlrRQJtu.js.map +0 -1
- package/dist/chunks/appbar-CGsPB6lq.esm.js +0 -57
- package/dist/chunks/appbar-CGsPB6lq.esm.js.map +0 -1
- package/dist/chunks/approval-wrapper-B-XqS5bB.esm.js +0 -140
- package/dist/chunks/approval-wrapper-B-XqS5bB.esm.js.map +0 -1
- package/dist/chunks/approval-wrapper-ChRKXJ5e.js +0 -139
- package/dist/chunks/approval-wrapper-ChRKXJ5e.js.map +0 -1
- package/dist/chunks/calculation-summary-BK6GQw4U.esm.js +0 -174
- package/dist/chunks/calculation-summary-BK6GQw4U.esm.js.map +0 -1
- package/dist/chunks/change-password-C9dljJAp.esm.js +0 -183
- package/dist/chunks/change-password-C9dljJAp.esm.js.map +0 -1
- package/dist/chunks/change-user-password-modal-B25tcp19.esm.js +0 -119
- package/dist/chunks/change-user-password-modal-B25tcp19.esm.js.map +0 -1
- package/dist/chunks/chat-bot-BCo7cOYE.esm.js +0 -1831
- package/dist/chunks/chat-bot-BCo7cOYE.esm.js.map +0 -1
- package/dist/chunks/checkbox-B1kDMvOd.esm.js +0 -83
- package/dist/chunks/checkbox-B1kDMvOd.esm.js.map +0 -1
- package/dist/chunks/checkbox-BI9r49yI.js +0 -82
- package/dist/chunks/checkbox-BI9r49yI.js.map +0 -1
- package/dist/chunks/common-BgtNCd0P.esm.js +0 -183
- package/dist/chunks/common-BgtNCd0P.esm.js.map +0 -1
- package/dist/chunks/common-utility-C9l0Syxu.esm.js +0 -305
- package/dist/chunks/common-utility-C9l0Syxu.esm.js.map +0 -1
- package/dist/chunks/confirm-modal-CKmgyFxV.js +0 -97
- package/dist/chunks/confirm-modal-CKmgyFxV.js.map +0 -1
- package/dist/chunks/confirm-modal-DYeD7v76.esm.js +0 -98
- package/dist/chunks/confirm-modal-DYeD7v76.esm.js.map +0 -1
- package/dist/chunks/contact-modal-DnIav0-1.esm.js +0 -169
- package/dist/chunks/contact-modal-DnIav0-1.esm.js.map +0 -1
- package/dist/chunks/contact-modal-rQHFxgh5.js +0 -185
- package/dist/chunks/contact-modal-rQHFxgh5.js.map +0 -1
- package/dist/chunks/custom-editor-CAcqS40E.esm.js +0 -1257
- package/dist/chunks/custom-editor-CAcqS40E.esm.js.map +0 -1
- package/dist/chunks/custom-form-BPPOL40S.js +0 -1145
- package/dist/chunks/custom-form-BPPOL40S.js.map +0 -1
- package/dist/chunks/custom-form-BkZEys0k.esm.js +0 -1146
- package/dist/chunks/custom-form-BkZEys0k.esm.js.map +0 -1
- package/dist/chunks/dashboard-BaGUkuQ6.js +0 -74
- package/dist/chunks/dashboard-BaGUkuQ6.js.map +0 -1
- package/dist/chunks/dashboard-DwLatjab.esm.js +0 -75
- package/dist/chunks/dashboard-DwLatjab.esm.js.map +0 -1
- package/dist/chunks/date-range-picker-BYPlcj4t.esm.js +0 -62
- package/dist/chunks/date-range-picker-BYPlcj4t.esm.js.map +0 -1
- package/dist/chunks/date-range-picker-BtiS4y35.esm.js +0 -160
- package/dist/chunks/date-range-picker-BtiS4y35.esm.js.map +0 -1
- package/dist/chunks/date-range-picker-DmIphJSw.js +0 -61
- package/dist/chunks/date-range-picker-DmIphJSw.js.map +0 -1
- package/dist/chunks/date-range-picker-NGM9GY3v.js +0 -159
- package/dist/chunks/date-range-picker-NGM9GY3v.js.map +0 -1
- package/dist/chunks/dropdown-button-C-Bqxc-y.esm.js +0 -146
- package/dist/chunks/dropdown-button-C-Bqxc-y.esm.js.map +0 -1
- package/dist/chunks/dropdown-button-C3O11Fd-.js +0 -162
- package/dist/chunks/dropdown-button-C3O11Fd-.js.map +0 -1
- package/dist/chunks/dynamic-layout-wrapper-BzZ90KSV.esm.js +0 -229
- package/dist/chunks/dynamic-layout-wrapper-BzZ90KSV.esm.js.map +0 -1
- package/dist/chunks/dynamic-layout-wrapper-C_ou9EW4.js +0 -228
- package/dist/chunks/dynamic-layout-wrapper-C_ou9EW4.js.map +0 -1
- package/dist/chunks/dynamic-report-BlvCp0cp.esm.js +0 -589
- package/dist/chunks/dynamic-report-BlvCp0cp.esm.js.map +0 -1
- package/dist/chunks/dynamic-rows-CmegFex3.esm.js +0 -250
- package/dist/chunks/dynamic-rows-CmegFex3.esm.js.map +0 -1
- package/dist/chunks/dynamic-text-editor-GWbqgyUt.esm.js +0 -45
- package/dist/chunks/dynamic-text-editor-GWbqgyUt.esm.js.map +0 -1
- package/dist/chunks/edit-section-modal-CeBTvtMV.esm.js +0 -80
- package/dist/chunks/edit-section-modal-CeBTvtMV.esm.js.map +0 -1
- package/dist/chunks/expandable-summary-wrapper-BJRy25KS.js +0 -241
- package/dist/chunks/expandable-summary-wrapper-BJRy25KS.js.map +0 -1
- package/dist/chunks/expandable-summary-wrapper-b7ML99s4.esm.js +0 -242
- package/dist/chunks/expandable-summary-wrapper-b7ML99s4.esm.js.map +0 -1
- package/dist/chunks/filter--czmk9x0.esm.js +0 -410
- package/dist/chunks/filter--czmk9x0.esm.js.map +0 -1
- package/dist/chunks/filter-YXaXY3h-.js +0 -409
- package/dist/chunks/filter-YXaXY3h-.js.map +0 -1
- package/dist/chunks/footer-BJdSI2g9.js +0 -63
- package/dist/chunks/footer-BJdSI2g9.js.map +0 -1
- package/dist/chunks/footer-DaATNEav.esm.js +0 -64
- package/dist/chunks/footer-DaATNEav.esm.js.map +0 -1
- package/dist/chunks/forgot-password-BLg7_5xW.esm.js +0 -178
- package/dist/chunks/forgot-password-BLg7_5xW.esm.js.map +0 -1
- package/dist/chunks/form-fields-Chnd9RgL.js +0 -354
- package/dist/chunks/form-fields-Chnd9RgL.js.map +0 -1
- package/dist/chunks/form-fields-D36w6bAH.esm.js +0 -355
- package/dist/chunks/form-fields-D36w6bAH.esm.js.map +0 -1
- package/dist/chunks/form-parser-BVpNRR09.js +0 -613
- package/dist/chunks/form-parser-BVpNRR09.js.map +0 -1
- package/dist/chunks/form-parser-DKUxOCnZ.esm.js +0 -597
- package/dist/chunks/form-parser-DKUxOCnZ.esm.js.map +0 -1
- package/dist/chunks/form-section-Bf-igyxb.esm.js +0 -576
- package/dist/chunks/form-section-Bf-igyxb.esm.js.map +0 -1
- package/dist/chunks/form-section-BgArbduv.js +0 -575
- package/dist/chunks/form-section-BgArbduv.js.map +0 -1
- package/dist/chunks/fullScreen-8o8jrNel.esm.js +0 -19
- package/dist/chunks/fullScreen-8o8jrNel.esm.js.map +0 -1
- package/dist/chunks/fullScreen-wacypkaO.js +0 -18
- package/dist/chunks/fullScreen-wacypkaO.js.map +0 -1
- package/dist/chunks/global-search-DJrjNJ7H.esm.js +0 -150
- package/dist/chunks/global-search-DJrjNJ7H.esm.js.map +0 -1
- package/dist/chunks/grid-view-DmRlpcuu.esm.js +0 -52
- package/dist/chunks/grid-view-DmRlpcuu.esm.js.map +0 -1
- package/dist/chunks/header-BFS7fldo.esm.js +0 -93
- package/dist/chunks/header-BFS7fldo.esm.js.map +0 -1
- package/dist/chunks/header-bhv36tWn.js +0 -92
- package/dist/chunks/header-bhv36tWn.js.map +0 -1
- package/dist/chunks/header-enhanced-08eRA8T6.js +0 -402
- package/dist/chunks/header-enhanced-08eRA8T6.js.map +0 -1
- package/dist/chunks/header-enhanced-CgXy7RNi.esm.js +0 -403
- package/dist/chunks/header-enhanced-CgXy7RNi.esm.js.map +0 -1
- package/dist/chunks/i18n-C_6nRHMf.esm.js +0 -46
- package/dist/chunks/i18n-C_6nRHMf.esm.js.map +0 -1
- package/dist/chunks/i18n-GoZr_KAX.js +0 -47
- package/dist/chunks/i18n-GoZr_KAX.js.map +0 -1
- package/dist/chunks/index-BmU7fNjb.esm.js +0 -2024
- package/dist/chunks/index-BmU7fNjb.esm.js.map +0 -1
- package/dist/chunks/index-CooDXqTu.esm.js +0 -942
- package/dist/chunks/index-CooDXqTu.esm.js.map +0 -1
- package/dist/chunks/index-bXQn7tGi.js +0 -941
- package/dist/chunks/index-bXQn7tGi.js.map +0 -1
- package/dist/chunks/inline-edit-fields-BMbv2ivK.js +0 -341
- package/dist/chunks/inline-edit-fields-BMbv2ivK.js.map +0 -1
- package/dist/chunks/inline-edit-fields-Bd5Klcro.esm.js +0 -325
- package/dist/chunks/inline-edit-fields-Bd5Klcro.esm.js.map +0 -1
- package/dist/chunks/inventory-reports-title-bar-CUtd0-rZ.esm.js +0 -733
- package/dist/chunks/inventory-reports-title-bar-CUtd0-rZ.esm.js.map +0 -1
- package/dist/chunks/inventory-reports-title-bar-ChhV-9G-.js +0 -732
- package/dist/chunks/inventory-reports-title-bar-ChhV-9G-.js.map +0 -1
- package/dist/chunks/item-response-details-SLIR4W8V.esm.js +0 -79
- package/dist/chunks/item-response-details-SLIR4W8V.esm.js.map +0 -1
- package/dist/chunks/item-response-details-WqSUggZW.js +0 -78
- package/dist/chunks/item-response-details-WqSUggZW.js.map +0 -1
- package/dist/chunks/journal-type-add-modal-PYo7tpUz.js +0 -128
- package/dist/chunks/journal-type-add-modal-PYo7tpUz.js.map +0 -1
- package/dist/chunks/journal-type-add-modal-QRUtob29.esm.js +0 -112
- package/dist/chunks/journal-type-add-modal-QRUtob29.esm.js.map +0 -1
- package/dist/chunks/language-switch-9_fzmy5U.js +0 -110
- package/dist/chunks/language-switch-9_fzmy5U.js.map +0 -1
- package/dist/chunks/language-switch-VeRuFrbv.esm.js +0 -111
- package/dist/chunks/language-switch-VeRuFrbv.esm.js.map +0 -1
- package/dist/chunks/languageContext-C1VSeXaA.js +0 -223
- package/dist/chunks/languageContext-C1VSeXaA.js.map +0 -1
- package/dist/chunks/languageContext-fV10Le7I.esm.js +0 -224
- package/dist/chunks/languageContext-fV10Le7I.esm.js.map +0 -1
- package/dist/chunks/listing-C3oFgUOJ.esm.js +0 -277
- package/dist/chunks/listing-C3oFgUOJ.esm.js.map +0 -1
- package/dist/chunks/listing-DMxkYQ5X.js +0 -276
- package/dist/chunks/listing-DMxkYQ5X.js.map +0 -1
- package/dist/chunks/location-select-2kkYgf6R.js +0 -85
- package/dist/chunks/location-select-2kkYgf6R.js.map +0 -1
- package/dist/chunks/location-select-DC0gTfC8.esm.js +0 -86
- package/dist/chunks/location-select-DC0gTfC8.esm.js.map +0 -1
- package/dist/chunks/material-editable-table-BAxGLYpT.esm.js +0 -1448
- package/dist/chunks/material-editable-table-BAxGLYpT.esm.js.map +0 -1
- package/dist/chunks/material-editable-table-BLKOGBT1.js +0 -1464
- package/dist/chunks/material-editable-table-BLKOGBT1.js.map +0 -1
- package/dist/chunks/metaComponent-DyKAqmz6.js +0 -890
- package/dist/chunks/metaComponent-DyKAqmz6.js.map +0 -1
- package/dist/chunks/metaComponent-GeN5ICjg.esm.js +0 -891
- package/dist/chunks/metaComponent-GeN5ICjg.esm.js.map +0 -1
- package/dist/chunks/module-reducer-BF5bPega.esm.js +0 -79
- package/dist/chunks/module-reducer-BF5bPega.esm.js.map +0 -1
- package/dist/chunks/notification-menu-exP13DDH.esm.js +0 -606
- package/dist/chunks/notification-menu-exP13DDH.esm.js.map +0 -1
- package/dist/chunks/page-action-CJPY1YRz.esm.js +0 -325
- package/dist/chunks/page-action-CJPY1YRz.esm.js.map +0 -1
- package/dist/chunks/page-action-QhE75r6k.js +0 -324
- package/dist/chunks/page-action-QhE75r6k.js.map +0 -1
- package/dist/chunks/page-context-Cgm9ioBm.js +0 -388
- package/dist/chunks/page-context-Cgm9ioBm.js.map +0 -1
- package/dist/chunks/page-context-DxSEpz0I.esm.js +0 -389
- package/dist/chunks/page-context-DxSEpz0I.esm.js.map +0 -1
- package/dist/chunks/page-navigator-BDIZaJ9a.esm.js +0 -244
- package/dist/chunks/page-navigator-BDIZaJ9a.esm.js.map +0 -1
- package/dist/chunks/page-navigator-BNvVcPtn.js +0 -243
- package/dist/chunks/page-navigator-BNvVcPtn.js.map +0 -1
- package/dist/chunks/page-view-Dk_3Z7lD.esm.js +0 -324
- package/dist/chunks/page-view-Dk_3Z7lD.esm.js.map +0 -1
- package/dist/chunks/page-view-Dl6GQyDj.js +0 -323
- package/dist/chunks/page-view-Dl6GQyDj.js.map +0 -1
- package/dist/chunks/pagination-BEWcuhym.js +0 -135
- package/dist/chunks/pagination-BEWcuhym.js.map +0 -1
- package/dist/chunks/pagination-BL9VdINg.esm.js +0 -136
- package/dist/chunks/pagination-BL9VdINg.esm.js.map +0 -1
- package/dist/chunks/phone-input-Erh4hgSL.js +0 -254
- package/dist/chunks/phone-input-Erh4hgSL.js.map +0 -1
- package/dist/chunks/phone-input-pQKdFRDg.esm.js +0 -255
- package/dist/chunks/phone-input-pQKdFRDg.esm.js.map +0 -1
- package/dist/chunks/phone-oD6h86U6.js +0 -58
- package/dist/chunks/phone-oD6h86U6.js.map +0 -1
- package/dist/chunks/phone-vN2kyVIY.esm.js +0 -59
- package/dist/chunks/phone-vN2kyVIY.esm.js.map +0 -1
- package/dist/chunks/privateRoute-2ClZz2RY.esm.js +0 -13
- package/dist/chunks/privateRoute-2ClZz2RY.esm.js.map +0 -1
- package/dist/chunks/quick-approval-modal-g87dyO8k.esm.js +0 -256
- package/dist/chunks/quick-approval-modal-g87dyO8k.esm.js.map +0 -1
- package/dist/chunks/reducer-BEB6cGK7.esm.js +0 -33
- package/dist/chunks/reducer-BEB6cGK7.esm.js.map +0 -1
- package/dist/chunks/reducer-BjtGMJms.esm.js +0 -43
- package/dist/chunks/reducer-BjtGMJms.esm.js.map +0 -1
- package/dist/chunks/reducer-Bz_r_05x.esm.js +0 -56
- package/dist/chunks/reducer-Bz_r_05x.esm.js.map +0 -1
- package/dist/chunks/reducer-DkhymUSb.esm.js +0 -50
- package/dist/chunks/reducer-DkhymUSb.esm.js.map +0 -1
- package/dist/chunks/reducer-cUAFzhbU.esm.js +0 -149
- package/dist/chunks/reducer-cUAFzhbU.esm.js.map +0 -1
- package/dist/chunks/remove-action-CHV3iwzl.esm.js +0 -21
- package/dist/chunks/remove-action-CHV3iwzl.esm.js.map +0 -1
- package/dist/chunks/remove-action-D2bYub7f.js +0 -20
- package/dist/chunks/remove-action-D2bYub7f.js.map +0 -1
- package/dist/chunks/report-buttons-BWZZIgxX.esm.js +0 -46
- package/dist/chunks/report-buttons-BWZZIgxX.esm.js.map +0 -1
- package/dist/chunks/report-buttons-CLZaveR1.esm.js +0 -60
- package/dist/chunks/report-buttons-CLZaveR1.esm.js.map +0 -1
- package/dist/chunks/report-buttons-CeahQUYc.js +0 -59
- package/dist/chunks/report-buttons-CeahQUYc.js.map +0 -1
- package/dist/chunks/report-buttons-D6tJ53Dh.js +0 -45
- package/dist/chunks/report-buttons-D6tJ53Dh.js.map +0 -1
- package/dist/chunks/reportFilter-DocSJzI3.esm.js +0 -395
- package/dist/chunks/reportFilter-DocSJzI3.esm.js.map +0 -1
- package/dist/chunks/reportFilter-Y-4mgRIX.js +0 -394
- package/dist/chunks/reportFilter-Y-4mgRIX.js.map +0 -1
- package/dist/chunks/reports-title-bar-CTUtDaxJ.esm.js +0 -947
- package/dist/chunks/reports-title-bar-CTUtDaxJ.esm.js.map +0 -1
- package/dist/chunks/reports-title-bar-ZqAkMRGV.js +0 -946
- package/dist/chunks/reports-title-bar-ZqAkMRGV.js.map +0 -1
- package/dist/chunks/reset-password-BKYkgQrt.esm.js +0 -33
- package/dist/chunks/reset-password-BKYkgQrt.esm.js.map +0 -1
- package/dist/chunks/reset-password-modal-Dn-aLVj1.esm.js +0 -144
- package/dist/chunks/reset-password-modal-Dn-aLVj1.esm.js.map +0 -1
- package/dist/chunks/routes-55ICp2VE.js +0 -35
- package/dist/chunks/routes-55ICp2VE.js.map +0 -1
- package/dist/chunks/routes-CLSEKpWj.esm.js +0 -36
- package/dist/chunks/routes-CLSEKpWj.esm.js.map +0 -1
- package/dist/chunks/schedule-report-CLfPO0u_.esm.js +0 -236
- package/dist/chunks/schedule-report-CLfPO0u_.esm.js.map +0 -1
- package/dist/chunks/schedule-report-Cj-mr_l7.js +0 -235
- package/dist/chunks/schedule-report-Cj-mr_l7.js.map +0 -1
- package/dist/chunks/schedule-report-modal-9HgtK0Cn.js +0 -287
- package/dist/chunks/schedule-report-modal-9HgtK0Cn.js.map +0 -1
- package/dist/chunks/schedule-report-modal-zRoX5Bti.esm.js +0 -288
- package/dist/chunks/schedule-report-modal-zRoX5Bti.esm.js.map +0 -1
- package/dist/chunks/searchable-select-BTd4bHyq.esm.js +0 -5396
- package/dist/chunks/searchable-select-BTd4bHyq.esm.js.map +0 -1
- package/dist/chunks/searchable-select-CvvJIVJm.js +0 -5412
- package/dist/chunks/searchable-select-CvvJIVJm.js.map +0 -1
- package/dist/chunks/share-modal-ByO3cQpK.esm.js +0 -218
- package/dist/chunks/share-modal-ByO3cQpK.esm.js.map +0 -1
- package/dist/chunks/share-modal-C4uYkiYr.js +0 -217
- package/dist/chunks/share-modal-C4uYkiYr.js.map +0 -1
- package/dist/chunks/share-modal-enhanced-D1eluxf5.esm.js +0 -270
- package/dist/chunks/share-modal-enhanced-D1eluxf5.esm.js.map +0 -1
- package/dist/chunks/share-modal-enhanced-DomKcr1A.js +0 -269
- package/dist/chunks/share-modal-enhanced-DomKcr1A.js.map +0 -1
- package/dist/chunks/sidebar-DF7mq3bf.esm.js +0 -879
- package/dist/chunks/sidebar-DF7mq3bf.esm.js.map +0 -1
- package/dist/chunks/sidebar-DUvEm6Xg.js +0 -878
- package/dist/chunks/sidebar-DUvEm6Xg.js.map +0 -1
- package/dist/chunks/sidebarScreen-B-eGN3G1.esm.js +0 -202
- package/dist/chunks/sidebarScreen-B-eGN3G1.esm.js.map +0 -1
- package/dist/chunks/sidebarScreen-CEmqIEGX.js +0 -201
- package/dist/chunks/sidebarScreen-CEmqIEGX.js.map +0 -1
- package/dist/chunks/store-Dmz-DgYy.esm.js +0 -100
- package/dist/chunks/store-Dmz-DgYy.esm.js.map +0 -1
- package/dist/chunks/table-BwlY4Rqi.js +0 -184
- package/dist/chunks/table-BwlY4Rqi.js.map +0 -1
- package/dist/chunks/table-DPwreE5K.esm.js +0 -185
- package/dist/chunks/table-DPwreE5K.esm.js.map +0 -1
- package/dist/chunks/table-form-CufpQulG.esm.js +0 -1537
- package/dist/chunks/table-form-CufpQulG.esm.js.map +0 -1
- package/dist/chunks/template-editor-router-DWX5xJOY.esm.js +0 -9
- package/dist/chunks/template-editor-router-DWX5xJOY.esm.js.map +0 -1
- package/dist/chunks/template-editor-router-DXJKbSiF.js +0 -8
- package/dist/chunks/template-editor-router-DXJKbSiF.js.map +0 -1
- package/dist/chunks/template-modal-COgBzYT5.js +0 -768
- package/dist/chunks/template-modal-COgBzYT5.js.map +0 -1
- package/dist/chunks/template-modal-CPDYTASx.esm.js +0 -769
- package/dist/chunks/template-modal-CPDYTASx.esm.js.map +0 -1
- package/dist/chunks/template-name-modal-BbeUUs8-.esm.js +0 -101
- package/dist/chunks/template-name-modal-BbeUUs8-.esm.js.map +0 -1
- package/dist/chunks/templates-BflbmeOi.esm.js +0 -273
- package/dist/chunks/templates-BflbmeOi.esm.js.map +0 -1
- package/dist/chunks/templates-DpNiY8Y8.js +0 -272
- package/dist/chunks/templates-DpNiY8Y8.js.map +0 -1
- package/dist/chunks/text-area-C56V7dK3.esm.js +0 -311
- package/dist/chunks/text-area-C56V7dK3.esm.js.map +0 -1
- package/dist/chunks/text-area-CmoSF9FD.js +0 -327
- package/dist/chunks/text-area-CmoSF9FD.js.map +0 -1
- package/dist/chunks/text-measurement-B1c79w3_.esm.js +0 -252
- package/dist/chunks/text-measurement-B1c79w3_.esm.js.map +0 -1
- package/dist/chunks/three-dot-icon-BFKqMnLf.js +0 -40
- package/dist/chunks/three-dot-icon-BFKqMnLf.js.map +0 -1
- package/dist/chunks/three-dot-icon-Dq1ptGgl.esm.js +0 -41
- package/dist/chunks/three-dot-icon-Dq1ptGgl.esm.js.map +0 -1
- package/dist/chunks/toggle-button-9gpR1Gc0.esm.js +0 -55
- package/dist/chunks/toggle-button-9gpR1Gc0.esm.js.map +0 -1
- package/dist/chunks/toggle-button-Cm4sWIH-.js +0 -54
- package/dist/chunks/toggle-button-Cm4sWIH-.js.map +0 -1
- package/dist/chunks/toggle-switch-0RznK_fC.esm.js +0 -81
- package/dist/chunks/toggle-switch-0RznK_fC.esm.js.map +0 -1
- package/dist/chunks/toggle-switch-B6I7zEQC.js +0 -80
- package/dist/chunks/toggle-switch-B6I7zEQC.js.map +0 -1
- package/dist/chunks/translations-BBP_sDHA.esm.js +0 -128
- package/dist/chunks/translations-BBP_sDHA.esm.js.map +0 -1
- package/dist/chunks/translations-DJj06YLO.js +0 -127
- package/dist/chunks/translations-DJj06YLO.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-BQ4SEo6B.esm.js +0 -80
- package/dist/chunks/uom-field-wrapper-BQ4SEo6B.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-COkh8c-3.js +0 -79
- package/dist/chunks/uom-field-wrapper-COkh8c-3.js.map +0 -1
- package/dist/chunks/upload-excel-FvuJguoD.esm.js +0 -361
- package/dist/chunks/upload-excel-FvuJguoD.esm.js.map +0 -1
- package/dist/chunks/use-pages-BBx4hf1O.js +0 -29
- package/dist/chunks/use-pages-BBx4hf1O.js.map +0 -1
- package/dist/chunks/use-pages-CXgFemtF.esm.js +0 -30
- package/dist/chunks/use-pages-CXgFemtF.esm.js.map +0 -1
- package/dist/chunks/use-translations-C3jrv4ha.js +0 -68
- package/dist/chunks/use-translations-C3jrv4ha.js.map +0 -1
- package/dist/chunks/use-translations-C4q2A6Uj.esm.js +0 -69
- package/dist/chunks/use-translations-C4q2A6Uj.esm.js.map +0 -1
- package/dist/chunks/useAccountSetting-D58MKAOM.esm.js +0 -174
- package/dist/chunks/useAccountSetting-D58MKAOM.esm.js.map +0 -1
- package/dist/chunks/useCheckSkuAndName-D5VNk0T7.esm.js +0 -50
- package/dist/chunks/useCheckSkuAndName-D5VNk0T7.esm.js.map +0 -1
- package/dist/chunks/useCompanyCountryCode-DeB4mdyQ.esm.js +0 -36
- package/dist/chunks/useCompanyCountryCode-DeB4mdyQ.esm.js.map +0 -1
- package/dist/chunks/useDataFetcher-BxK0M15R.js +0 -79
- package/dist/chunks/useDataFetcher-BxK0M15R.js.map +0 -1
- package/dist/chunks/useDataFetcher-mMWb2ZRS.esm.js +0 -80
- package/dist/chunks/useDataFetcher-mMWb2ZRS.esm.js.map +0 -1
- package/dist/chunks/useLangauge-BDKeLn9O.js +0 -48
- package/dist/chunks/useLangauge-BDKeLn9O.js.map +0 -1
- package/dist/chunks/useLangauge-CqMxC8BW.esm.js +0 -49
- package/dist/chunks/useLangauge-CqMxC8BW.esm.js.map +0 -1
- package/dist/chunks/useReduxIntegration-CP2LpOou.esm.js +0 -39
- package/dist/chunks/useReduxIntegration-CP2LpOou.esm.js.map +0 -1
- package/dist/chunks/useReduxIntegration-Dy-JyvPh.js +0 -38
- package/dist/chunks/useReduxIntegration-Dy-JyvPh.js.map +0 -1
- package/dist/chunks/useSetDefaultConfig-uw7ih7_P.esm.js +0 -101
- package/dist/chunks/useSetDefaultConfig-uw7ih7_P.esm.js.map +0 -1
- package/dist/chunks/useUniquenessCheck-CEITes-f.esm.js +0 -39
- package/dist/chunks/useUniquenessCheck-CEITes-f.esm.js.map +0 -1
- package/dist/chunks/user-menu-CiAhK9OA.js +0 -104
- package/dist/chunks/user-menu-CiAhK9OA.js.map +0 -1
- package/dist/chunks/user-menu-DOLVZcyK.esm.js +0 -105
- package/dist/chunks/user-menu-DOLVZcyK.esm.js.map +0 -1
- package/dist/chunks/value-editor-4wlpUaaF.js +0 -136
- package/dist/chunks/value-editor-4wlpUaaF.js.map +0 -1
- package/dist/chunks/value-editor-DT5xVhgj.esm.js +0 -137
- package/dist/chunks/value-editor-DT5xVhgj.esm.js.map +0 -1
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React__default, { useState, useCallback, useEffect } from "react";
|
|
3
|
+
import { useNavigate, useLocation, matchRoutes, Link } from "react-router-dom";
|
|
4
|
+
import { Menu, MenuItem, ListItemIcon, ListItemText, Divider, Box, IconButton } from "@mui/material";
|
|
5
|
+
import { useTranslation } from "react-i18next";
|
|
6
|
+
import LockIcon from "@mui/icons-material/Lock";
|
|
7
|
+
import KeyboardBackspaceIcon from "@mui/icons-material/KeyboardBackspace";
|
|
8
|
+
import { T as Typography } from "./typography-CG_A0iOJ.esm.js";
|
|
9
|
+
import { i as images } from "./images-RPLi8HQs.esm.js";
|
|
10
|
+
import { S as Select } from "./select-CVxEdXzL.esm.js";
|
|
11
|
+
import { m as modules } from "./modules-CIK6p74C.esm.js";
|
|
12
|
+
import { A as Avatar } from "./avatar-lNOkcI7m.esm.js";
|
|
13
|
+
import { u as useAuth } from "./AuthContext-DofdH_qH.esm.js";
|
|
14
|
+
import { getApiConfig } from "../utils/api-config/index.esm.js";
|
|
15
|
+
import { u as useLanguage } from "./useLangauge-DE_pDKAr.esm.js";
|
|
16
|
+
import { C as ConfirmPopUp } from "./confirm-modal-nCdT1-Zb.esm.js";
|
|
17
|
+
import formatText from "../utils/format-text/index.esm.js";
|
|
18
|
+
import { E as Eye } from "./eye-CByHBTch.esm.js";
|
|
19
|
+
import { R as ResetPasswordModal } from "./reset-password-modal-B6IEx0RP.esm.js";
|
|
20
|
+
import { N as NotificationMenu } from "./notification-menu-CPFPIlav.esm.js";
|
|
21
|
+
/* empty css */
|
|
22
|
+
import "notistack";
|
|
23
|
+
import { Pathname } from "../constants/pathname/index.esm.js";
|
|
24
|
+
import { a as useAppSelector, u as useAppDispatch } from "./hooks-Cj9Yhy-E.esm.js";
|
|
25
|
+
import { f as fetchLanguages } from "./headerSlice-C2fibmnF.esm.js";
|
|
26
|
+
function HeaderEnhanced(props) {
|
|
27
|
+
var _a, _b, _c, _d;
|
|
28
|
+
const {
|
|
29
|
+
isDropdownShow,
|
|
30
|
+
// Non-Redux props
|
|
31
|
+
languages: propLanguages = [],
|
|
32
|
+
currentLanguage: propCurrentLanguage,
|
|
33
|
+
languagesLoading: propLanguagesLoading = false,
|
|
34
|
+
languageError: propLanguageError = "",
|
|
35
|
+
onLanguageChange,
|
|
36
|
+
onFetchLanguages,
|
|
37
|
+
// Redux integration
|
|
38
|
+
useRedux = false
|
|
39
|
+
} = props;
|
|
40
|
+
const navigate = useNavigate();
|
|
41
|
+
const { t } = useTranslation();
|
|
42
|
+
const location = useLocation();
|
|
43
|
+
const { logout, user } = useAuth();
|
|
44
|
+
let reduxLanguageState = {
|
|
45
|
+
languages: [],
|
|
46
|
+
currentLanguage: { label: "English", code: "en", direction: "ltr" },
|
|
47
|
+
isLoading: false,
|
|
48
|
+
error: "",
|
|
49
|
+
isFallbackActive: false,
|
|
50
|
+
isRtl: false
|
|
51
|
+
};
|
|
52
|
+
let dispatch = null;
|
|
53
|
+
let reduxActions = {};
|
|
54
|
+
if (useRedux) {
|
|
55
|
+
try {
|
|
56
|
+
const headerState = useAppSelector((store) => store.header || {});
|
|
57
|
+
dispatch = useAppDispatch();
|
|
58
|
+
reduxActions = { fetchLanguages };
|
|
59
|
+
reduxLanguageState = {
|
|
60
|
+
languages: ((_a = headerState.languagesData) == null ? void 0 : _a.data) || [],
|
|
61
|
+
currentLanguage: headerState.currentLanguage || reduxLanguageState.currentLanguage,
|
|
62
|
+
isLoading: ((_b = headerState.languagesData) == null ? void 0 : _b.isLoading) || false,
|
|
63
|
+
error: ((_c = headerState.languagesData) == null ? void 0 : _c.error) || "",
|
|
64
|
+
isFallbackActive: false,
|
|
65
|
+
// This would need to be computed
|
|
66
|
+
isRtl: ((_d = headerState.currentLanguage) == null ? void 0 : _d.direction) === "rtl"
|
|
67
|
+
};
|
|
68
|
+
} catch (error) {
|
|
69
|
+
console.warn("Redux not available for Header, falling back to prop-based data");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const {
|
|
73
|
+
languages: hookLanguages,
|
|
74
|
+
currentLanguage: hookCurrentLanguage,
|
|
75
|
+
changeLanguage: hookChangeLanguage,
|
|
76
|
+
isLoading: hookLanguagesLoading,
|
|
77
|
+
error: hookLanguageError,
|
|
78
|
+
isFallbackActive: hookIsFallbackActive,
|
|
79
|
+
fetchLanguages: hookFetchLanguages,
|
|
80
|
+
isRtl: hookIsRtl
|
|
81
|
+
} = useLanguage();
|
|
82
|
+
const config = getApiConfig();
|
|
83
|
+
const languages = useRedux ? reduxLanguageState.languages : propLanguages.length > 0 ? propLanguages : hookLanguages;
|
|
84
|
+
const currentLanguage = useRedux ? reduxLanguageState.currentLanguage : propCurrentLanguage || hookCurrentLanguage;
|
|
85
|
+
const languagesLoading = useRedux ? reduxLanguageState.isLoading : propLanguagesLoading || hookLanguagesLoading;
|
|
86
|
+
const languageContextError = useRedux ? reduxLanguageState.error : propLanguageError || hookLanguageError;
|
|
87
|
+
const isFallbackActive = useRedux ? reduxLanguageState.isFallbackActive : hookIsFallbackActive;
|
|
88
|
+
const isRtl = useRedux ? reduxLanguageState.isRtl : hookIsRtl;
|
|
89
|
+
const { pathname } = location;
|
|
90
|
+
const [anchorEl, setAnchorEl] = React__default.useState(null);
|
|
91
|
+
const [logoutConfirmation, setLogoutConfirmation] = useState(false);
|
|
92
|
+
const [selectedModule, setSelectedModule] = useState(null);
|
|
93
|
+
const [erp_modules, setModules] = useState([]);
|
|
94
|
+
const [localLanguageError, setLocalLanguageError] = useState(null);
|
|
95
|
+
const [showModal, setShowModal] = useState(false);
|
|
96
|
+
const u_data = localStorage.getItem("_u_data") || void 0;
|
|
97
|
+
const userData = u_data ? JSON.parse(u_data) : "";
|
|
98
|
+
const isMenuOpen = Boolean(anchorEl);
|
|
99
|
+
const handleLogoutConfirmation = () => setLogoutConfirmation(!logoutConfirmation);
|
|
100
|
+
const checkMatchedRoutes = useCallback(
|
|
101
|
+
(paths) => {
|
|
102
|
+
const shouldMatch = Array.isArray(paths) ? paths.map((path) => ({ path })) : [{ path: paths }];
|
|
103
|
+
return Boolean(matchRoutes(shouldMatch, location));
|
|
104
|
+
},
|
|
105
|
+
[location]
|
|
106
|
+
);
|
|
107
|
+
const handleChangePasswordView = () => {
|
|
108
|
+
setShowModal(true);
|
|
109
|
+
};
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
const moduleName = erp_modules.find(
|
|
112
|
+
(module) => {
|
|
113
|
+
var _a2;
|
|
114
|
+
return ((_a2 = module == null ? void 0 : module.link) == null ? void 0 : _a2.toLowerCase()) === pathname.toLowerCase() || checkMatchedRoutes(module.connectedRoutes);
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
if (moduleName) {
|
|
118
|
+
setSelectedModule(moduleName);
|
|
119
|
+
}
|
|
120
|
+
}, [pathname, erp_modules, checkMatchedRoutes]);
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
setModules(modules(t));
|
|
123
|
+
}, [t]);
|
|
124
|
+
const onChangeLang = (e) => {
|
|
125
|
+
const lang_code = e.target.value;
|
|
126
|
+
setLocalLanguageError(null);
|
|
127
|
+
if (!languages || languages.length === 0) {
|
|
128
|
+
const errorMsg = t("header.language_not_available") || "Languages not available";
|
|
129
|
+
setLocalLanguageError(errorMsg);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const languageExists = languages.some((lang) => lang.code === lang_code);
|
|
133
|
+
if (languageExists) {
|
|
134
|
+
try {
|
|
135
|
+
if (useRedux) {
|
|
136
|
+
} else if (onLanguageChange) {
|
|
137
|
+
onLanguageChange(lang_code);
|
|
138
|
+
} else {
|
|
139
|
+
hookChangeLanguage(lang_code);
|
|
140
|
+
}
|
|
141
|
+
} catch (error) {
|
|
142
|
+
const errorMsg = error instanceof Error ? error.message : "Failed to change language";
|
|
143
|
+
setLocalLanguageError(errorMsg);
|
|
144
|
+
}
|
|
145
|
+
} else {
|
|
146
|
+
const errorMsg = t("header.language_not_found", { language: lang_code }) || `Selected language "${lang_code}" is not available`;
|
|
147
|
+
setLocalLanguageError(errorMsg);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
const handleRetryLanguages = async () => {
|
|
151
|
+
setLocalLanguageError(null);
|
|
152
|
+
try {
|
|
153
|
+
if (useRedux && dispatch && reduxActions.fetchLanguages) {
|
|
154
|
+
await dispatch(reduxActions.fetchLanguages());
|
|
155
|
+
} else if (onFetchLanguages) {
|
|
156
|
+
await onFetchLanguages();
|
|
157
|
+
} else {
|
|
158
|
+
await hookFetchLanguages();
|
|
159
|
+
}
|
|
160
|
+
} catch (error) {
|
|
161
|
+
const errorMsg = "Failed to reload languages";
|
|
162
|
+
setLocalLanguageError(errorMsg);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
const handleProfileMenuOpen = (event) => setAnchorEl(event.currentTarget);
|
|
166
|
+
const handleMenuClose = () => {
|
|
167
|
+
setAnchorEl(null);
|
|
168
|
+
};
|
|
169
|
+
const handleChange = (event) => {
|
|
170
|
+
const selectedLink = event.target.value;
|
|
171
|
+
setTimeout(() => {
|
|
172
|
+
navigate(selectedLink);
|
|
173
|
+
}, 300);
|
|
174
|
+
};
|
|
175
|
+
const handleBackButton = () => {
|
|
176
|
+
window.history.back();
|
|
177
|
+
};
|
|
178
|
+
const getCurrentLanguageDisplay = () => {
|
|
179
|
+
if (!currentLanguage) return t("header.select_language") || "Select Language";
|
|
180
|
+
if (isFallbackActive || languageContextError) {
|
|
181
|
+
return `${currentLanguage.label}`;
|
|
182
|
+
}
|
|
183
|
+
return currentLanguage.label;
|
|
184
|
+
};
|
|
185
|
+
const createEnglishFallback = () => ({
|
|
186
|
+
code: "en",
|
|
187
|
+
label: "English",
|
|
188
|
+
direction: "ltr"
|
|
189
|
+
});
|
|
190
|
+
const getLanguagesForDropdown = () => {
|
|
191
|
+
if (!languages || languages.length === 0) {
|
|
192
|
+
return [createEnglishFallback()];
|
|
193
|
+
}
|
|
194
|
+
const hasEnglish = languages.some((lang) => lang.code === "en");
|
|
195
|
+
if (!hasEnglish) {
|
|
196
|
+
return [createEnglishFallback(), ...languages];
|
|
197
|
+
}
|
|
198
|
+
return languages;
|
|
199
|
+
};
|
|
200
|
+
const renderLanguageSelector = () => {
|
|
201
|
+
const availableLanguages = getLanguagesForDropdown();
|
|
202
|
+
const displayValue = (currentLanguage == null ? void 0 : currentLanguage.code) || "en";
|
|
203
|
+
if (languagesLoading) {
|
|
204
|
+
return /* @__PURE__ */ jsx(Box, { className: "language-loading", children: /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "text.secondary", children: "Loading..." }) });
|
|
205
|
+
}
|
|
206
|
+
return /* @__PURE__ */ jsxs(
|
|
207
|
+
Select,
|
|
208
|
+
{
|
|
209
|
+
onChange: onChangeLang,
|
|
210
|
+
size: "small",
|
|
211
|
+
value: displayValue,
|
|
212
|
+
renderValue: () => getCurrentLanguageDisplay(),
|
|
213
|
+
error: !!localLanguageError,
|
|
214
|
+
className: isFallbackActive || languageContextError ? "language-fallback-active" : "",
|
|
215
|
+
children: [
|
|
216
|
+
availableLanguages.map(({ code, label }) => /* @__PURE__ */ jsx(MenuItem, { value: code, children: /* @__PURE__ */ jsx(
|
|
217
|
+
Typography,
|
|
218
|
+
{
|
|
219
|
+
type: "s4",
|
|
220
|
+
weight: "medium",
|
|
221
|
+
color: "theme.secondary.1000",
|
|
222
|
+
children: label
|
|
223
|
+
}
|
|
224
|
+
) }, code)),
|
|
225
|
+
languageContextError && /* @__PURE__ */ jsx(MenuItem, { onClick: handleRetryLanguages, style: { fontStyle: "italic" }, children: /* @__PURE__ */ jsxs(
|
|
226
|
+
Typography,
|
|
227
|
+
{
|
|
228
|
+
type: "s4",
|
|
229
|
+
weight: "medium",
|
|
230
|
+
color: "theme.secondary.500",
|
|
231
|
+
children: [
|
|
232
|
+
"🔄 ",
|
|
233
|
+
t("header.retry_languages") || "Retry loading languages"
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
) })
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
);
|
|
240
|
+
};
|
|
241
|
+
const menuId = "primary-search-account-menu";
|
|
242
|
+
const renderMenu = /* @__PURE__ */ jsxs(
|
|
243
|
+
Menu,
|
|
244
|
+
{
|
|
245
|
+
className: "main-profile-menu",
|
|
246
|
+
anchorEl,
|
|
247
|
+
id: menuId,
|
|
248
|
+
keepMounted: true,
|
|
249
|
+
open: isMenuOpen,
|
|
250
|
+
onClose: handleMenuClose,
|
|
251
|
+
children: [
|
|
252
|
+
/* @__PURE__ */ jsx(MenuItem, { className: "user-assigned", children: /* @__PURE__ */ jsx("span", { children: t("common.assigned_roles") || "Assigned roles" }) }),
|
|
253
|
+
/* @__PURE__ */ jsxs(MenuItem, { className: "user-data-wrap", value: userData.role_id, children: [
|
|
254
|
+
/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Avatar, { size: 27, alt: userData.role_name }) }),
|
|
255
|
+
/* @__PURE__ */ jsx(ListItemText, { className: "size15", children: userData.role_name }),
|
|
256
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body2", color: "text.secondary", children: /* @__PURE__ */ jsx("img", { src: images.tickicon, alt: "Active" }) })
|
|
257
|
+
] }),
|
|
258
|
+
/* @__PURE__ */ jsx(Divider, {}),
|
|
259
|
+
/* @__PURE__ */ jsxs(
|
|
260
|
+
MenuItem,
|
|
261
|
+
{
|
|
262
|
+
className: "user-assigned",
|
|
263
|
+
onClick: () => {
|
|
264
|
+
handleChangePasswordView();
|
|
265
|
+
setAnchorEl(null);
|
|
266
|
+
},
|
|
267
|
+
children: [
|
|
268
|
+
/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Eye, { fontSize: "medium", width: 20, height: 20, htmlColor: "#292D32" }) }),
|
|
269
|
+
/* @__PURE__ */ jsx(ListItemText, { className: "size15", children: t("common.change_password") })
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
),
|
|
273
|
+
/* @__PURE__ */ jsx(Divider, {}),
|
|
274
|
+
/* @__PURE__ */ jsxs(
|
|
275
|
+
MenuItem,
|
|
276
|
+
{
|
|
277
|
+
className: "menu-item-color",
|
|
278
|
+
onClick: () => {
|
|
279
|
+
handleLogoutConfirmation();
|
|
280
|
+
setAnchorEl(null);
|
|
281
|
+
},
|
|
282
|
+
children: [
|
|
283
|
+
/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx("img", { src: images.logout, alt: "logout" }) }),
|
|
284
|
+
/* @__PURE__ */ jsx(ListItemText, { className: "size15", children: t("common.logout") })
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
)
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
const appLogo = getApiConfig().appLogo || images.logo;
|
|
292
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
293
|
+
/* @__PURE__ */ jsxs(Box, { className: "main-box", children: [
|
|
294
|
+
!isDropdownShow && /* @__PURE__ */ jsx(Link, { to: user ? Pathname.DASHBOARD : Pathname.LOGIN, children: /* @__PURE__ */ jsx("img", { src: appLogo, alt: "logo", height: 55 }) }),
|
|
295
|
+
/* @__PURE__ */ jsx(Box, { className: "second-box", children: isDropdownShow && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
296
|
+
/* @__PURE__ */ jsx(IconButton, { onClick: handleBackButton, children: /* @__PURE__ */ jsx(
|
|
297
|
+
KeyboardBackspaceIcon,
|
|
298
|
+
{
|
|
299
|
+
className: isRtl ? "arrow-pointer_rtl" : "arrow-pointer"
|
|
300
|
+
}
|
|
301
|
+
) }),
|
|
302
|
+
/* @__PURE__ */ jsx(Box, { width: 250, children: /* @__PURE__ */ jsx(
|
|
303
|
+
Select,
|
|
304
|
+
{
|
|
305
|
+
fullWidth: true,
|
|
306
|
+
placeholder: "Placeholder",
|
|
307
|
+
size: "small",
|
|
308
|
+
value: (selectedModule == null ? void 0 : selectedModule.link) || "",
|
|
309
|
+
onChange: handleChange,
|
|
310
|
+
className: "select-box",
|
|
311
|
+
variant: "outlined",
|
|
312
|
+
renderValue: (value) => /* @__PURE__ */ jsx(Fragment, { children: selectedModule ? /* @__PURE__ */ jsxs(Box, { className: "selected-menu-box", children: [
|
|
313
|
+
/* @__PURE__ */ jsx(
|
|
314
|
+
"img",
|
|
315
|
+
{
|
|
316
|
+
src: selectedModule.icon,
|
|
317
|
+
alt: selectedModule.label
|
|
318
|
+
}
|
|
319
|
+
),
|
|
320
|
+
selectedModule.label
|
|
321
|
+
] }) : value }),
|
|
322
|
+
children: erp_modules.map((module, index) => /* @__PURE__ */ jsxs(
|
|
323
|
+
MenuItem,
|
|
324
|
+
{
|
|
325
|
+
className: "select-box-menu-item",
|
|
326
|
+
value: module.link,
|
|
327
|
+
children: [
|
|
328
|
+
/* @__PURE__ */ jsx("img", { src: module.icon, alt: module.label }),
|
|
329
|
+
module.label
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
index
|
|
333
|
+
))
|
|
334
|
+
}
|
|
335
|
+
) })
|
|
336
|
+
] }) }),
|
|
337
|
+
/* @__PURE__ */ jsxs(Box, { className: "header-right-wrap", children: [
|
|
338
|
+
/* @__PURE__ */ jsx(Box, { className: "language-selector-wrapper", children: renderLanguageSelector() }),
|
|
339
|
+
/* @__PURE__ */ jsx(NotificationMenu, {}),
|
|
340
|
+
/* @__PURE__ */ jsx(
|
|
341
|
+
IconButton,
|
|
342
|
+
{
|
|
343
|
+
size: "small",
|
|
344
|
+
"aria-label": "help",
|
|
345
|
+
className: "p-0",
|
|
346
|
+
children: /* @__PURE__ */ jsx("img", { src: images.question, alt: "question icon" })
|
|
347
|
+
}
|
|
348
|
+
),
|
|
349
|
+
/* @__PURE__ */ jsx("img", { src: images.vdivider, alt: "divider icon" }),
|
|
350
|
+
localStorage.getItem("_tid") ? /* @__PURE__ */ jsxs(Box, { className: "user-profile-box", onClick: handleProfileMenuOpen, children: [
|
|
351
|
+
/* @__PURE__ */ jsx(
|
|
352
|
+
Avatar,
|
|
353
|
+
{
|
|
354
|
+
size: 32,
|
|
355
|
+
src: (user == null ? void 0 : user.profile_image) ? `${config == null ? void 0 : config.s3BucketUrl}${user == null ? void 0 : user.profile_image}` : void 0,
|
|
356
|
+
alt: formatText(user == null ? void 0 : user.full_name),
|
|
357
|
+
className: "avatar-class"
|
|
358
|
+
}
|
|
359
|
+
),
|
|
360
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
361
|
+
/* @__PURE__ */ jsx(Typography, { className: "profile-name", children: user == null ? void 0 : user.full_name }),
|
|
362
|
+
/* @__PURE__ */ jsx(Typography, { className: "user-auth", children: user == null ? void 0 : user.role_name })
|
|
363
|
+
] })
|
|
364
|
+
] }) : /* @__PURE__ */ jsx(
|
|
365
|
+
IconButton,
|
|
366
|
+
{
|
|
367
|
+
size: "large",
|
|
368
|
+
edge: "end",
|
|
369
|
+
"aria-label": "account of current user",
|
|
370
|
+
"aria-controls": menuId,
|
|
371
|
+
"aria-haspopup": "true",
|
|
372
|
+
component: Link,
|
|
373
|
+
to: Pathname.LOGIN,
|
|
374
|
+
color: "inherit",
|
|
375
|
+
children: /* @__PURE__ */ jsx(LockIcon, { className: "icon-btn" })
|
|
376
|
+
}
|
|
377
|
+
)
|
|
378
|
+
] }),
|
|
379
|
+
renderMenu
|
|
380
|
+
] }),
|
|
381
|
+
/* @__PURE__ */ jsx(
|
|
382
|
+
ConfirmPopUp,
|
|
383
|
+
{
|
|
384
|
+
open: logoutConfirmation,
|
|
385
|
+
title: t("common.logout"),
|
|
386
|
+
description: t("common.logout_confirmation") || "Are you sure, you want to logout?",
|
|
387
|
+
onConfirm: () => logout(),
|
|
388
|
+
onClose: handleLogoutConfirmation,
|
|
389
|
+
fullWidth: true,
|
|
390
|
+
maxWidth: "xs",
|
|
391
|
+
buttonTexts: {
|
|
392
|
+
confirm: t("common.logout"),
|
|
393
|
+
cancel: t("common.cancel")
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
),
|
|
397
|
+
/* @__PURE__ */ jsx(ResetPasswordModal, { showModal, setShowModal })
|
|
398
|
+
] });
|
|
399
|
+
}
|
|
400
|
+
export {
|
|
401
|
+
HeaderEnhanced as H
|
|
402
|
+
};
|
|
403
|
+
//# sourceMappingURL=header-enhanced-DDG6COKM.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-enhanced-DDG6COKM.esm.js","sources":["../../src/components/header/header-enhanced.tsx"],"sourcesContent":["// components/header/Header.tsx - Enhanced version with optional Redux support\nimport React, { useState, useEffect, useCallback } from \"react\";\nimport { Link, matchRoutes, useLocation, useNavigate } from \"react-router-dom\";\nimport { Box } from \"@mui/material\";\nimport { useTranslation } from \"react-i18next\";\nimport LockIcon from \"@mui/icons-material/Lock\";\nimport { IconButton } from \"@mui/material\";\nimport { MenuItem } from \"@mui/material\";\nimport { Menu } from \"@mui/material\";\nimport KeyboardBackspaceIcon from \"@mui/icons-material/KeyboardBackspace\";\nimport { ListItemText } from \"@mui/material\";\nimport { Divider } from \"@mui/material\";\nimport { ListItemIcon } from \"@mui/material\";\n\n// import { Pathname } from \"../../pathname\"; // Removed - should be passed as props\nimport Typography from \"../typography/typography\";\nimport logo, { images } from \"../../assets/images\";\nimport Select from \"../select/select\";\nimport modules from \"../../constants/modules\"; // Removed - should be passed as props\nimport Avatar from \"../avatar/avatar\";\nimport { useAuth } from '@erpsquad/common/runtime';\nimport ConfirmPopUp from \"../confirm-modal/confirm-modal\";\nimport formatText from \"../../utils/format-text\";\nimport { useLanguage } from '@erpsquad/common/runtime';\nimport { Eye } from \"../icons\";\nimport ResetPasswordModal from \"../reset-password-modal/reset-password-modal\";\nimport NotificationMenu from \"./components/notification-menu/notification-menu\";\nimport \"./header.scss\";\nimport { getApiConfig } from \"@/utils\";\nimport { Pathname } from \"@/constants\";\nimport { useAppSelector, useAppDispatch } from '../../redux/hooks';\nimport { fetchLanguages } from '../../redux/slices';\ninterface ILanguage {\n label: string;\n code: string;\n direction: string;\n}\n\ninterface IModule {\n label: any;\n link: string;\n sidebar: string;\n icon: string;\n permission: string;\n bg: string;\n connectedRoutes: string[];\n translationModule: string;\n}\n\n// Enhanced props interface\ninterface HeaderEnhancedProps {\n isDropdownShow?: boolean;\n\n // Language props (alternative to Redux)\n languages?: ILanguage[];\n currentLanguage?: ILanguage;\n languagesLoading?: boolean;\n languageError?: string;\n onLanguageChange?: (languageCode: string) => void;\n onFetchLanguages?: () => Promise<void>;\n\n // Redux integration (optional)\n useRedux?: boolean;\n}\n\nexport function HeaderEnhanced(props: HeaderEnhancedProps): React.ReactElement {\n const {\n isDropdownShow,\n\n // Non-Redux props\n languages: propLanguages = [],\n currentLanguage: propCurrentLanguage,\n languagesLoading: propLanguagesLoading = false,\n languageError: propLanguageError = \"\",\n onLanguageChange,\n onFetchLanguages,\n\n // Redux integration\n useRedux = false,\n } = props;\n\n const navigate = useNavigate();\n const { t } = useTranslation();\n const location = useLocation();\n const { logout, user } = useAuth();\n\n // Conditional Redux usage\n let reduxLanguageState = {\n languages: [],\n currentLanguage: { label: 'English', code: 'en', direction: 'ltr' },\n isLoading: false,\n error: '',\n isFallbackActive: false,\n isRtl: false\n };\n let dispatch: any = null;\n let reduxActions: any = {};\n\n if (useRedux) {\n try {\n // Redux hooks and actions (statically imported)\n\n const headerState = useAppSelector((store: any) => store.header || {});\n dispatch = useAppDispatch();\n reduxActions = { fetchLanguages };\n\n reduxLanguageState = {\n languages: headerState.languagesData?.data || [],\n currentLanguage: headerState.currentLanguage || reduxLanguageState.currentLanguage,\n isLoading: headerState.languagesData?.isLoading || false,\n error: headerState.languagesData?.error || '',\n isFallbackActive: false, // This would need to be computed\n isRtl: headerState.currentLanguage?.direction === 'rtl'\n };\n } catch (error) {\n console.warn(\"Redux not available for Header, falling back to prop-based data\");\n }\n }\n\n // Use Redux data if available, otherwise use props or useLanguage hook\n const {\n languages: hookLanguages,\n currentLanguage: hookCurrentLanguage,\n changeLanguage: hookChangeLanguage,\n isLoading: hookLanguagesLoading,\n error: hookLanguageError,\n isFallbackActive: hookIsFallbackActive,\n fetchLanguages: hookFetchLanguages,\n isRtl: hookIsRtl\n } = useLanguage();\n const config = getApiConfig()\n\n // Determine which data source to use\n const languages = useRedux ? reduxLanguageState.languages : (propLanguages.length > 0 ? propLanguages : hookLanguages);\n const currentLanguage = useRedux ? reduxLanguageState.currentLanguage : (propCurrentLanguage || hookCurrentLanguage);\n const languagesLoading = useRedux ? reduxLanguageState.isLoading : (propLanguagesLoading || hookLanguagesLoading);\n const languageContextError = useRedux ? reduxLanguageState.error : (propLanguageError || hookLanguageError);\n const isFallbackActive = useRedux ? reduxLanguageState.isFallbackActive : hookIsFallbackActive;\n const isRtl = useRedux ? reduxLanguageState.isRtl : hookIsRtl;\n\n const { pathname } = location;\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const [logoutConfirmation, setLogoutConfirmation] = useState<boolean>(false);\n const [selectedModule, setSelectedModule] = useState<IModule | null>(null);\n const [erp_modules, setModules] = useState<IModule[]>([]);\n const [localLanguageError, setLocalLanguageError] = useState<string | null>(null);\n const [showModal, setShowModal] = useState(false);\n\n const u_data = localStorage.getItem(\"_u_data\") || undefined;\n const userData = u_data ? JSON.parse(u_data) : \"\";\n const isMenuOpen = Boolean(anchorEl);\n\n const handleLogoutConfirmation = () =>\n setLogoutConfirmation(!logoutConfirmation);\n\n const checkMatchedRoutes = useCallback(\n (paths: string[] | string) => {\n const shouldMatch: { path: string }[] = Array.isArray(paths)\n ? paths.map((path: string) => ({ path }))\n : [{ path: paths }];\n\n return Boolean(matchRoutes(shouldMatch, location));\n },\n [location],\n );\n\n const handleChangePasswordView = () => {\n setShowModal(true);\n }\n\n useEffect(() => {\n const moduleName = erp_modules.find(\n (module: IModule) =>\n module?.link?.toLowerCase() === pathname.toLowerCase() ||\n checkMatchedRoutes(module.connectedRoutes),\n );\n\n if (moduleName) {\n setSelectedModule(moduleName);\n }\n }, [pathname, erp_modules, checkMatchedRoutes]);\n\n useEffect(() => {\n setModules(modules(t));\n }, [t]);\n\n // Enhanced language change handler\n const onChangeLang = (e: React.ChangeEvent<HTMLSelectElement>) => {\n const lang_code = e.target.value;\n\n // Clear any previous errors\n setLocalLanguageError(null);\n\n // Validate the language exists before changing\n if (!languages || languages.length === 0) {\n const errorMsg = t('header.language_not_available') || 'Languages not available';\n setLocalLanguageError(errorMsg);\n return;\n }\n\n const languageExists = languages.some((lang: ILanguage) => lang.code === lang_code);\n\n if (languageExists) {\n try {\n if (useRedux) {\n // Use Redux action (would need to be implemented in the slice)\n // dispatch(setCurrentLanguage({ code: lang_code, ... }));\n } else if (onLanguageChange) {\n onLanguageChange(lang_code);\n } else {\n hookChangeLanguage(lang_code);\n }\n } catch (error) {\n const errorMsg = error instanceof Error ? error.message : 'Failed to change language';\n setLocalLanguageError(errorMsg);\n }\n } else {\n const errorMsg = t('header.language_not_found', { language: lang_code }) ||\n `Selected language \"${lang_code}\" is not available`;\n setLocalLanguageError(errorMsg);\n }\n };\n\n // Retry language loading\n const handleRetryLanguages = async () => {\n setLocalLanguageError(null);\n try {\n if (useRedux && dispatch && reduxActions.fetchLanguages) {\n await dispatch(reduxActions.fetchLanguages());\n } else if (onFetchLanguages) {\n await onFetchLanguages();\n } else {\n await hookFetchLanguages();\n }\n } catch (error) {\n const errorMsg = 'Failed to reload languages';\n setLocalLanguageError(errorMsg);\n }\n };\n\n const handleProfileMenuOpen = (event: React.MouseEvent<HTMLElement>) =>\n setAnchorEl(event.currentTarget);\n\n const handleMenuClose = () => {\n setAnchorEl(null);\n };\n\n const handleChange = (event: any) => {\n const selectedLink = event.target.value;\n setTimeout(() => {\n navigate(selectedLink);\n }, 300);\n };\n\n const handleBackButton = () => {\n window.history.back();\n };\n\n // Get current language display value with fallback indication\n const getCurrentLanguageDisplay = (): string => {\n if (!currentLanguage) return t('header.select_language') || 'Select Language';\n\n // Show fallback indicator for better UX\n if (isFallbackActive || languageContextError) {\n return `${currentLanguage.label}`;\n }\n\n return currentLanguage.label;\n };\n\n // Create English fallback for consistent display\n const createEnglishFallback = (): ILanguage => ({\n code: 'en',\n label: 'English',\n direction: 'ltr'\n });\n\n // Get languages for dropdown - ensure English is always available\n const getLanguagesForDropdown = (): ILanguage[] => {\n if (!languages || languages.length === 0) {\n // If no languages available, show only English\n return [createEnglishFallback()];\n }\n\n // Ensure English is in the list\n const hasEnglish = languages.some(lang => lang.code === 'en');\n if (!hasEnglish) {\n return [createEnglishFallback(), ...languages];\n }\n\n return languages;\n };\n\n // Render language selector based on different states\n const renderLanguageSelector = () => {\n const availableLanguages = getLanguagesForDropdown();\n const displayValue = currentLanguage?.code || 'en'; // Default to English\n\n // Loading state\n if (languagesLoading) {\n return (\n <Box className=\"language-loading\">\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'Loading...'}\n </Typography>\n </Box>\n );\n }\n\n // Always show dropdown with at least English available\n return (\n <Select\n onChange={onChangeLang}\n size=\"small\"\n value={displayValue}\n renderValue={() => getCurrentLanguageDisplay()}\n error={!!localLanguageError}\n className={isFallbackActive || languageContextError ? 'language-fallback-active' : ''}\n >\n {availableLanguages.map(({ code, label }: ILanguage) => (\n <MenuItem key={code} value={code}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.1000\"\n >\n {label}\n </Typography>\n </MenuItem>\n ))}\n\n {/* Show retry option if there's an error */}\n {languageContextError && (\n <MenuItem onClick={handleRetryLanguages} style={{ fontStyle: 'italic' }}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.500\"\n >\n 🔄 {t('header.retry_languages') || 'Retry loading languages'}\n </Typography>\n </MenuItem>\n )}\n </Select>\n );\n };\n\n const menuId = \"primary-search-account-menu\";\n const renderMenu = (\n <Menu\n className=\"main-profile-menu\"\n anchorEl={anchorEl}\n id={menuId}\n keepMounted\n open={isMenuOpen}\n onClose={handleMenuClose}\n >\n <MenuItem className=\"user-assigned\">\n <span>{t('common.assigned_roles') || 'Assigned roles'}</span>\n </MenuItem>\n <MenuItem className=\"user-data-wrap\" value={userData.role_id}>\n <ListItemIcon>\n <Avatar size={27} alt={userData.role_name} />\n </ListItemIcon>\n <ListItemText className=\"size15\">\n {userData.role_name}\n </ListItemText>\n <Typography variant=\"body2\" color=\"text.secondary\">\n <img src={images.tickicon} alt=\"Active\" />\n </Typography>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"user-assigned\"\n onClick={() => {\n handleChangePasswordView();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <Eye fontSize=\"medium\" width={20} height={20} htmlColor=\"#292D32\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.change_password\")}</ListItemText>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"menu-item-color\"\n onClick={() => {\n handleLogoutConfirmation();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <img src={images.logout} alt=\"logout\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.logout\")}</ListItemText>\n </MenuItem>\n </Menu>\n );\n\n const appLogo = getApiConfig().appLogo || images.logo\n\n return (\n <>\n <Box className=\"main-box\">\n {!isDropdownShow && (\n <Link to={user ? Pathname.DASHBOARD : Pathname.LOGIN}>\n <img src={appLogo} alt=\"logo\" height={55}/>\n </Link>\n )}\n <Box className=\"second-box\">\n {isDropdownShow && (\n <>\n <IconButton onClick={handleBackButton}>\n <KeyboardBackspaceIcon\n className={isRtl ? \"arrow-pointer_rtl\" : \"arrow-pointer\"}\n />\n </IconButton>\n <Box width={250}>\n <Select\n fullWidth\n placeholder=\"Placeholder\"\n size={\"small\"}\n value={selectedModule?.link || \"\"}\n onChange={handleChange}\n className=\"select-box\"\n variant=\"outlined\"\n renderValue={(value: string) => (\n <>\n {selectedModule ? (\n <Box className=\"selected-menu-box\">\n <img\n src={selectedModule.icon}\n alt={selectedModule.label}\n />\n {selectedModule.label}\n </Box>\n ) : (\n value\n )}\n </>\n )}\n >\n {erp_modules.map((module: any, index: number) => (\n <MenuItem\n className=\"select-box-menu-item\"\n value={module.link}\n key={index}\n >\n <img src={module.icon} alt={module.label} />\n {module.label}\n </MenuItem>\n ))}\n </Select>\n </Box>\n </>\n )}\n </Box>\n <Box className=\"header-right-wrap\">\n {/* Language Selector with Enhanced Fallback Support */}\n <Box className=\"language-selector-wrapper\">\n {renderLanguageSelector()}\n </Box>\n\n <NotificationMenu />\n <IconButton\n size=\"small\"\n aria-label=\"help\"\n className=\"p-0\"\n >\n <img src={logo.question} alt=\"question icon\" />\n </IconButton>\n <img src={logo.vdivider} alt=\"divider icon\" />\n {localStorage.getItem(\"_tid\") ? (\n <Box className=\"user-profile-box\" onClick={handleProfileMenuOpen}>\n <Avatar\n size={32}\n src={user?.profile_image ? `${config?.s3BucketUrl}${user?.profile_image}` : undefined}\n alt={formatText(user?.full_name)}\n className=\"avatar-class\"\n />\n <div>\n <Typography className=\"profile-name\">\n {user?.full_name}\n </Typography>\n <Typography className=\"user-auth\">\n {user?.role_name}\n </Typography>\n </div>\n </Box>\n ) : (\n <IconButton\n size=\"large\"\n edge=\"end\"\n aria-label=\"account of current user\"\n aria-controls={menuId}\n aria-haspopup=\"true\"\n component={Link}\n to={Pathname.LOGIN}\n color=\"inherit\"\n >\n <LockIcon className=\"icon-btn\" />\n </IconButton>\n )}\n </Box>\n {renderMenu}\n </Box>\n\n {/* Logout Confirmation Dialog */}\n <ConfirmPopUp\n open={logoutConfirmation}\n title={t(\"common.logout\")}\n description={t('common.logout_confirmation') || \"Are you sure, you want to logout?\"}\n onConfirm={() => logout()}\n onClose={handleLogoutConfirmation}\n fullWidth\n maxWidth=\"xs\"\n buttonTexts={{\n confirm: t(\"common.logout\"),\n cancel: t(\"common.cancel\"),\n }}\n />\n\n <ResetPasswordModal showModal={showModal} setShowModal={setShowModal} />\n </>\n );\n}\n\nexport default HeaderEnhanced;"],"names":["React","_a","logo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiEO,SAAS,eAAe,OAAgD;;AAC7E,QAAM;AAAA,IACJ;AAAA;AAAA,IAGA,WAAW,gBAAgB,CAAA;AAAA,IAC3B,iBAAiB;AAAA,IACjB,kBAAkB,uBAAuB;AAAA,IACzC,eAAe,oBAAoB;AAAA,IACnC;AAAA,IACA;AAAA;AAAA,IAGA,WAAW;AAAA,EAAA,IACT;AAEJ,QAAM,WAAW,YAAA;AACjB,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,WAAW,YAAA;AACjB,QAAM,EAAE,QAAQ,KAAA,IAAS,QAAA;AAGzB,MAAI,qBAAqB;AAAA,IACvB,WAAW,CAAA;AAAA,IACX,iBAAiB,EAAE,OAAO,WAAW,M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YAAA,EAAW,WAAU,gBACnB,UAAA,6BAAM,WACT;AAAA,YACA,oBAAC,YAAA,EAAW,WAAU,aACnB,uCAAM,UAAA,CACT;AAAA,UAAA,EAAA,CACF;AAAA,QAAA,EAAA,CACF,IAEA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,MAAK;AAAA,YACL,cAAW;AAAA,YACX,iBAAe;AAAA,YACf,iBAAc;AAAA,YACd,WAAW;AAAA,YACX,IAAI,SAAS;AAAA,YACb,OAAM;AAAA,YAEN,UAAA,oBAAC,UAAA,EAAS,WAAU,WAAA,CAAW;AAAA,UAAA;AAAA,QAAA;AAAA,MACjC,GAEJ;AAAA,MACC;AAAA,IAAA,GACH;AAAA,IAGA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAM;AAAA,QACN,OAAO,EAAE,eAAe;AAAA,QACxB,aAAa,EAAE,4BAA4B,KAAK;AAAA,QAChD,WAAW,MAAM,OAAA;AAAA,QACjB,SAAS;AAAA,QACT,WAAS;AAAA,QACT,UAAS;AAAA,QACT,aAAa;AAAA,UACX,SAAS,EAAE,eAAe;AAAA,UAC1B,QAAQ,EAAE,eAAe;AAAA,QAAA;AAAA,MAC3B;AAAA,IAAA;AAAA,IAGF,oBAAC,oBAAA,EAAmB,WAAsB,aAAA,CAA4B;AAAA,EAAA,GACxE;AAEJ;"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a, _b;
|
|
3
|
+
const i18n = require("i18next");
|
|
4
|
+
const reactI18next = require("react-i18next");
|
|
5
|
+
const constants_allLanguage = require("../constants/all-language/index.js");
|
|
6
|
+
const ReactI18next = ((_a = reactI18next.initReactI18next) == null ? void 0 : _a.default) ?? reactI18next.initReactI18next;
|
|
7
|
+
function ensureEventEmitter(target) {
|
|
8
|
+
if (!target) return target;
|
|
9
|
+
if (!target.observers) target.observers = {};
|
|
10
|
+
if (typeof target.on !== "function") {
|
|
11
|
+
target.on = function(events, listener) {
|
|
12
|
+
if (typeof events !== "string" || typeof listener !== "function") return this;
|
|
13
|
+
events.split(" ").forEach((event) => {
|
|
14
|
+
if (!this.observers[event]) this.observers[event] = /* @__PURE__ */ new Map();
|
|
15
|
+
const numListeners = this.observers[event].get(listener) || 0;
|
|
16
|
+
this.observers[event].set(listener, numListeners + 1);
|
|
17
|
+
});
|
|
18
|
+
return this;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
if (typeof target.off !== "function") {
|
|
22
|
+
target.off = function(event, listener) {
|
|
23
|
+
if (!this.observers || !this.observers[event]) return this;
|
|
24
|
+
if (!listener) {
|
|
25
|
+
delete this.observers[event];
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
this.observers[event].delete(listener);
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
if (typeof target.emit !== "function") {
|
|
33
|
+
target.emit = function(event, ...args) {
|
|
34
|
+
if (this.observers && this.observers[event]) {
|
|
35
|
+
const cloned = Array.from(this.observers[event].entries());
|
|
36
|
+
cloned.forEach(([observer, numTimesAdded]) => {
|
|
37
|
+
for (let i = 0; i < numTimesAdded; i++) {
|
|
38
|
+
observer(...args);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return this;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return target;
|
|
46
|
+
}
|
|
47
|
+
ensureEventEmitter(i18n);
|
|
48
|
+
if (!i18n.isInitialized) {
|
|
49
|
+
i18n.use(ReactI18next).init({
|
|
50
|
+
fallbackLng: "en",
|
|
51
|
+
lng: constants_allLanguage.DEFAULT_LANG,
|
|
52
|
+
fallbackNS: false,
|
|
53
|
+
returnNull: false,
|
|
54
|
+
returnEmptyString: false,
|
|
55
|
+
interpolation: {
|
|
56
|
+
escapeValue: false
|
|
57
|
+
},
|
|
58
|
+
debug: false,
|
|
59
|
+
saveMissing: false,
|
|
60
|
+
missingKeyHandler: false,
|
|
61
|
+
missingKeyNoValueFallbackToKey: true,
|
|
62
|
+
react: {
|
|
63
|
+
useSuspense: false
|
|
64
|
+
},
|
|
65
|
+
resources: {},
|
|
66
|
+
saveMissingTo: "fallback",
|
|
67
|
+
keySeparator: ".",
|
|
68
|
+
nsSeparator: ":"
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
ensureEventEmitter(i18n);
|
|
72
|
+
if (i18n.store) ensureEventEmitter(i18n.store);
|
|
73
|
+
if ((_b = i18n.services) == null ? void 0 : _b.resourceStore) ensureEventEmitter(i18n.services.resourceStore);
|
|
74
|
+
i18n.isInitialized = true;
|
|
75
|
+
const rawT = i18n.t.bind(i18n);
|
|
76
|
+
i18n.t = (key, ...args) => {
|
|
77
|
+
const res = rawT(key, ...args);
|
|
78
|
+
if (typeof res === "string" && res.startsWith("key '") && res.endsWith("returned an object instead of string.")) {
|
|
79
|
+
if (typeof key === "string") {
|
|
80
|
+
const labelKey = `${key}.label`;
|
|
81
|
+
if (i18n.exists(labelKey)) {
|
|
82
|
+
return rawT(labelKey, ...args);
|
|
83
|
+
}
|
|
84
|
+
const titleKey = `${key}.title`;
|
|
85
|
+
if (i18n.exists(titleKey)) {
|
|
86
|
+
return rawT(titleKey, ...args);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return res;
|
|
91
|
+
};
|
|
92
|
+
if (typeof window !== "undefined") {
|
|
93
|
+
window.__i18n = i18n;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=i18n-B7RX2ZZ6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n-B7RX2ZZ6.js","sources":["../../src/utils/i18n.ts"],"sourcesContent":["import i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\nimport { DEFAULT_LANG } from \"../constants/all-language\";\n\nconst ReactI18next = (initReactI18next as any)?.default ?? initReactI18next;\n\nfunction ensureEventEmitter(target: any) {\n if (!target) return target;\n if (!target.observers) target.observers = {};\n if (typeof target.on !== 'function') {\n target.on = function(events: string, listener: (...args: any[]) => void) {\n if (typeof events !== 'string' || typeof listener !== 'function') return this;\n events.split(' ').forEach((event: string) => {\n if (!this.observers[event]) this.observers[event] = new Map();\n const numListeners = this.observers[event].get(listener) || 0;\n this.observers[event].set(listener, numListeners + 1);\n });\n return this;\n };\n }\n if (typeof target.off !== 'function') {\n target.off = function(event: string, listener?: (...args: any[]) => void) {\n if (!this.observers || !this.observers[event]) return this;\n if (!listener) {\n delete this.observers[event];\n return this;\n }\n this.observers[event].delete(listener);\n return this;\n };\n }\n if (typeof target.emit !== 'function') {\n target.emit = function(event: string, ...args: any[]) {\n if (this.observers && this.observers[event]) {\n const cloned = Array.from(this.observers[event].entries());\n cloned.forEach(([observer, numTimesAdded]: any) => {\n for (let i = 0; i < numTimesAdded; i++) {\n observer(...args);\n }\n });\n }\n return this;\n };\n }\n return target;\n}\n\nensureEventEmitter(i18n);\n\nif (!i18n.isInitialized) {\n i18n\n .use(ReactI18next)\n .init({\n fallbackLng: \"en\",\n lng: DEFAULT_LANG,\n fallbackNS: false,\n returnNull: false,\n returnEmptyString: false,\n interpolation: {\n escapeValue: false,\n },\n debug: false,\n saveMissing: false,\n missingKeyHandler: false,\n missingKeyNoValueFallbackToKey: true,\n react: {\n useSuspense: false,\n },\n resources: {},\n saveMissingTo: 'fallback',\n keySeparator: '.',\n nsSeparator: ':',\n });\n}\n\nensureEventEmitter(i18n);\nif (i18n.store) ensureEventEmitter(i18n.store);\nif ((i18n as any).services?.resourceStore) ensureEventEmitter((i18n as any).services.resourceStore);\n(i18n as any).isInitialized = true;\n\n// Defensive wrapper: if a branch node is queried (e.g. 'common.dashboard' which has child properties),\n// fallback to `${key}.label` or `${key}.title` to prevent \"returned an object instead of string\" errors.\nconst rawT = i18n.t.bind(i18n);\ni18n.t = ((key: any, ...args: any[]) => {\n const res = rawT(key, ...args);\n if (typeof res === 'string' && res.startsWith(\"key '\") && res.endsWith(\"returned an object instead of string.\")) {\n if (typeof key === 'string') {\n const labelKey = `${key}.label`;\n if (i18n.exists(labelKey)) {\n return rawT(labelKey, ...args);\n }\n const titleKey = `${key}.title`;\n if (i18n.exists(titleKey)) {\n return rawT(titleKey, ...args);\n }\n }\n }\n return res;\n}) as any;\n\nif (typeof window !== 'undefined') {\n (window as any).__i18n = i18n;\n}\n\nexport default i18n;"],"names":["initReactI18next","DEFAULT_LANG"],"mappings":";;;;;AAIA,MAAM,iBAAgBA,kBAAAA,qBAAAA,mBAA0B,YAAWA,aAAAA;AAE3D,SAAS,mBAAmB,QAAa;AACvC,MAAI,CAAC,OAAQ,QAAO;AACpB,MAAI,CAAC,OAAO,UAAW,QAAO,YAAY,CAAA;AAC1C,MAAI,OAAO,OAAO,OAAO,YAAY;AACnC,WAAO,KAAK,SAAS,QAAgB,UAAoC;AACvE,UAAI,OAAO,WAAW,YAAY,OAAO,aAAa,WAAY,QAAO;AACzE,aAAO,MAAM,GAAG,EAAE,QAAQ,CAAC,UAAkB;AAC3C,YAAI,CAAC,KAAK,UAAU,KAAK,QAAQ,UAAU,KAAK,IAAI,oBAAI,IAAA;AACxD,cAAM,eAAe,KAAK,UAAU,KAAK,EAAE,IAAI,QAAQ,KAAK;AAC5D,aAAK,UAAU,KAAK,EAAE,IAAI,UAAU,eAAe,CAAC;AAAA,MACtD,CAAC;AACD,aAAO;AAAA,IACT;AAAA,EACF;AACA,MAAI,OAAO,OAAO,QAAQ,YAAY;AACpC,WAAO,MAAM,SAAS,OAAe,UAAqC;AACxE,UAAI,CAAC,KAAK,aAAa,CAAC,KAAK,UAAU,KAAK,EAAG,QAAO;AACtD,UAAI,CAAC,UAAU;AACb,eAAO,KAAK,UAAU,KAAK;AAC3B,eAAO;AAAA,MACT;AACA,WAAK,UAAU,KAAK,EAAE,OAAO,QAAQ;AACrC,aAAO;AAAA,IACT;AAAA,EACF;AACA,MAAI,OAAO,OAAO,SAAS,YAAY;AACrC,WAAO,OAAO,SAAS,UAAkB,MAAa;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,eAAO,KAAK,UAAU,GAAG,IAAI;AAAA,MAC/B;AACA,YAAM,WAAW,GAAG,GAAG;AACvB,UAAI,KAAK,OAAO,QAAQ,GAAG;AACzB,eAAO,KAAK,UAAU,GAAG,IAAI;AAAA,MAC/B;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;AAEA,IAAI,OAAO,WAAW,aAAa;AAChC,SAAe,SAAS;AAC3B;"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var _a, _b;
|
|
2
|
+
import i18n from "i18next";
|
|
3
|
+
import { initReactI18next } from "react-i18next";
|
|
4
|
+
import { DEFAULT_LANG } from "../constants/all-language/index.esm.js";
|
|
5
|
+
const ReactI18next = ((_a = initReactI18next) == null ? void 0 : _a.default) ?? initReactI18next;
|
|
6
|
+
function ensureEventEmitter(target) {
|
|
7
|
+
if (!target) return target;
|
|
8
|
+
if (!target.observers) target.observers = {};
|
|
9
|
+
if (typeof target.on !== "function") {
|
|
10
|
+
target.on = function(events, listener) {
|
|
11
|
+
if (typeof events !== "string" || typeof listener !== "function") return this;
|
|
12
|
+
events.split(" ").forEach((event) => {
|
|
13
|
+
if (!this.observers[event]) this.observers[event] = /* @__PURE__ */ new Map();
|
|
14
|
+
const numListeners = this.observers[event].get(listener) || 0;
|
|
15
|
+
this.observers[event].set(listener, numListeners + 1);
|
|
16
|
+
});
|
|
17
|
+
return this;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
if (typeof target.off !== "function") {
|
|
21
|
+
target.off = function(event, listener) {
|
|
22
|
+
if (!this.observers || !this.observers[event]) return this;
|
|
23
|
+
if (!listener) {
|
|
24
|
+
delete this.observers[event];
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
this.observers[event].delete(listener);
|
|
28
|
+
return this;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
if (typeof target.emit !== "function") {
|
|
32
|
+
target.emit = function(event, ...args) {
|
|
33
|
+
if (this.observers && this.observers[event]) {
|
|
34
|
+
const cloned = Array.from(this.observers[event].entries());
|
|
35
|
+
cloned.forEach(([observer, numTimesAdded]) => {
|
|
36
|
+
for (let i = 0; i < numTimesAdded; i++) {
|
|
37
|
+
observer(...args);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return target;
|
|
45
|
+
}
|
|
46
|
+
ensureEventEmitter(i18n);
|
|
47
|
+
if (!i18n.isInitialized) {
|
|
48
|
+
i18n.use(ReactI18next).init({
|
|
49
|
+
fallbackLng: "en",
|
|
50
|
+
lng: DEFAULT_LANG,
|
|
51
|
+
fallbackNS: false,
|
|
52
|
+
returnNull: false,
|
|
53
|
+
returnEmptyString: false,
|
|
54
|
+
interpolation: {
|
|
55
|
+
escapeValue: false
|
|
56
|
+
},
|
|
57
|
+
debug: false,
|
|
58
|
+
saveMissing: false,
|
|
59
|
+
missingKeyHandler: false,
|
|
60
|
+
missingKeyNoValueFallbackToKey: true,
|
|
61
|
+
react: {
|
|
62
|
+
useSuspense: false
|
|
63
|
+
},
|
|
64
|
+
resources: {},
|
|
65
|
+
saveMissingTo: "fallback",
|
|
66
|
+
keySeparator: ".",
|
|
67
|
+
nsSeparator: ":"
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
ensureEventEmitter(i18n);
|
|
71
|
+
if (i18n.store) ensureEventEmitter(i18n.store);
|
|
72
|
+
if ((_b = i18n.services) == null ? void 0 : _b.resourceStore) ensureEventEmitter(i18n.services.resourceStore);
|
|
73
|
+
i18n.isInitialized = true;
|
|
74
|
+
const rawT = i18n.t.bind(i18n);
|
|
75
|
+
i18n.t = (key, ...args) => {
|
|
76
|
+
const res = rawT(key, ...args);
|
|
77
|
+
if (typeof res === "string" && res.startsWith("key '") && res.endsWith("returned an object instead of string.")) {
|
|
78
|
+
if (typeof key === "string") {
|
|
79
|
+
const labelKey = `${key}.label`;
|
|
80
|
+
if (i18n.exists(labelKey)) {
|
|
81
|
+
return rawT(labelKey, ...args);
|
|
82
|
+
}
|
|
83
|
+
const titleKey = `${key}.title`;
|
|
84
|
+
if (i18n.exists(titleKey)) {
|
|
85
|
+
return rawT(titleKey, ...args);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return res;
|
|
90
|
+
};
|
|
91
|
+
if (typeof window !== "undefined") {
|
|
92
|
+
window.__i18n = i18n;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=i18n-IaT9E8wF.esm.js.map
|