@erpsquad/common 1.11.13 → 1.11.15
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/{DynamicDependentField-CUQlRksh.esm.js → DynamicDependentField-3BIqZuEi.esm.js} +2 -2
- package/dist/chunks/{DynamicDependentField-CUQlRksh.esm.js.map → DynamicDependentField-3BIqZuEi.esm.js.map} +1 -1
- package/dist/chunks/{DynamicDependentField-De5hIa2G.js → DynamicDependentField-BNQloFOt.js} +2 -2
- package/dist/chunks/{DynamicDependentField-De5hIa2G.js.map → DynamicDependentField-BNQloFOt.js.map} +1 -1
- package/dist/chunks/{ERPUIProvider-CE2TFUwH.esm.js → ERPUIProvider-BvdsmytD.esm.js} +3 -3
- package/dist/chunks/{ERPUIProvider-CE2TFUwH.esm.js.map → ERPUIProvider-BvdsmytD.esm.js.map} +1 -1
- package/dist/chunks/{ERPUIProvider-a11UHlA2.js → ERPUIProvider-DOPwl5-1.js} +3 -3
- package/dist/chunks/{ERPUIProvider-a11UHlA2.js.map → ERPUIProvider-DOPwl5-1.js.map} +1 -1
- package/dist/chunks/{FORMS-BxycFROH.js → FORMS-Co5DzR2b.js} +7 -7
- package/dist/chunks/{FORMS-BxycFROH.js.map → FORMS-Co5DzR2b.js.map} +1 -1
- package/dist/chunks/{FORMS-BSkTeBm_.esm.js → FORMS-Cq5klFbL.esm.js} +8 -8
- package/dist/chunks/{FORMS-BSkTeBm_.esm.js.map → FORMS-Cq5klFbL.esm.js.map} +1 -1
- package/dist/chunks/{FlexibleReduxExample-D72G_SVm.esm.js → FlexibleReduxExample-BzEsEgg_.esm.js} +4 -4
- package/dist/chunks/{FlexibleReduxExample-D72G_SVm.esm.js.map → FlexibleReduxExample-BzEsEgg_.esm.js.map} +1 -1
- package/dist/chunks/{FlexibleReduxExample-BP0K3ZqC.js → FlexibleReduxExample-CcL6mk5n.js} +4 -4
- package/dist/chunks/{FlexibleReduxExample-BP0K3ZqC.js.map → FlexibleReduxExample-CcL6mk5n.js.map} +1 -1
- package/dist/chunks/{SectionFlowEditor-rpYvUYCA.esm.js → SectionFlowEditor-DEbWSklc.esm.js} +8 -8
- package/dist/chunks/{SectionFlowEditor-rpYvUYCA.esm.js.map → SectionFlowEditor-DEbWSklc.esm.js.map} +1 -1
- package/dist/chunks/{SectionFlowEditor-D_zGaLTv.js → SectionFlowEditor-DagOI5vV.js} +5 -5
- package/dist/chunks/{SectionFlowEditor-D_zGaLTv.js.map → SectionFlowEditor-DagOI5vV.js.map} +1 -1
- package/dist/chunks/{action-bar-B8EkHk4R.esm.js → action-bar-CBNUSFDM.esm.js} +9 -6
- package/dist/chunks/action-bar-CBNUSFDM.esm.js.map +1 -0
- package/dist/chunks/{action-bar-B_EUV2Bt.js → action-bar-CkKLB98R.js} +8 -5
- package/dist/chunks/action-bar-CkKLB98R.js.map +1 -0
- package/dist/chunks/{actionCreator-D2PZfYi7.js → actionCreator-B7XTLcC3.js} +2 -2
- package/dist/chunks/{actionCreator-D2PZfYi7.js.map → actionCreator-B7XTLcC3.js.map} +1 -1
- package/dist/chunks/{actionCreator-D68eU9au.esm.js → actionCreator-BeyzfogA.esm.js} +2 -2
- package/dist/chunks/{actionCreator-D68eU9au.esm.js.map → actionCreator-BeyzfogA.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-C1EgKt0Q.js → actionCreator-CsznY4jv.js} +2 -2
- package/dist/chunks/{actionCreator-C1EgKt0Q.js.map → actionCreator-CsznY4jv.js.map} +1 -1
- package/dist/chunks/{actionCreator-DEVJN_Xh.js → actionCreator-CxF0fSo3.js} +2 -2
- package/dist/chunks/{actionCreator-DEVJN_Xh.js.map → actionCreator-CxF0fSo3.js.map} +1 -1
- package/dist/chunks/{actionCreator-BwQrLjXs.esm.js → actionCreator-D3Ywxqko.esm.js} +2 -2
- package/dist/chunks/{actionCreator-BwQrLjXs.esm.js.map → actionCreator-D3Ywxqko.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-DW6F8f7X.esm.js → actionCreator-D9o1yF_V.esm.js} +3 -3
- package/dist/chunks/{actionCreator-DW6F8f7X.esm.js.map → actionCreator-D9o1yF_V.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-DyXbdzac.esm.js → actionCreator-DGxoyGyk.esm.js} +3 -3
- package/dist/chunks/{actionCreator-DyXbdzac.esm.js.map → actionCreator-DGxoyGyk.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-DhKsKoNK.js → actionCreator-DIPsxXwE.js} +2 -2
- package/dist/chunks/{actionCreator-DhKsKoNK.js.map → actionCreator-DIPsxXwE.js.map} +1 -1
- package/dist/chunks/{actionCreator-CLs2lr2h.js → actionCreator-DfnX-Cj5.js} +2 -2
- package/dist/chunks/{actionCreator-CLs2lr2h.js.map → actionCreator-DfnX-Cj5.js.map} +1 -1
- package/dist/chunks/{actionCreator-Cm77Rmfx.esm.js → actionCreator-upsoTf3q.esm.js} +2 -2
- package/dist/chunks/{actionCreator-Cm77Rmfx.esm.js.map → actionCreator-upsoTf3q.esm.js.map} +1 -1
- package/dist/chunks/{add-template-C880g-xF.esm.js → add-template-BCxn7OXM.esm.js} +2 -2
- package/dist/chunks/{add-template-C880g-xF.esm.js.map → add-template-BCxn7OXM.esm.js.map} +1 -1
- package/dist/chunks/{add-template-BK-2FnRj.js → add-template-Cee6U_4N.js} +2 -2
- package/dist/chunks/{add-template-BK-2FnRj.js.map → add-template-Cee6U_4N.js.map} +1 -1
- package/dist/chunks/{address-modal-BR-jph_I.esm.js → address-modal-DBuj1ow2.esm.js} +2 -2
- package/dist/chunks/{address-modal-BR-jph_I.esm.js.map → address-modal-DBuj1ow2.esm.js.map} +1 -1
- package/dist/chunks/{address-modal-BHIlP-pd.js → address-modal-DfP7AYCO.js} +2 -2
- package/dist/chunks/{address-modal-BHIlP-pd.js.map → address-modal-DfP7AYCO.js.map} +1 -1
- package/dist/chunks/{ai-summary-7COdbF1n.js → ai-summary-CEgn0zWt.js} +2 -2
- package/dist/chunks/{ai-summary-7COdbF1n.js.map → ai-summary-CEgn0zWt.js.map} +1 -1
- package/dist/chunks/{ai-summary-Cs2CC-P1.esm.js → ai-summary-mqP0clDC.esm.js} +2 -2
- package/dist/chunks/{ai-summary-Cs2CC-P1.esm.js.map → ai-summary-mqP0clDC.esm.js.map} +1 -1
- package/dist/chunks/{api-DBmWILBN.esm.js → api-C1kYZQ6G.esm.js} +11 -11
- package/dist/chunks/{api-DBmWILBN.esm.js.map → api-C1kYZQ6G.esm.js.map} +1 -1
- package/dist/chunks/{api-DcArDfpV.js → api-CfErA7gR.js} +12 -1
- package/dist/chunks/{api-DcArDfpV.js.map → api-CfErA7gR.js.map} +1 -1
- package/dist/chunks/{api-w8De9u1Z.esm.js → api-D-Ups140.esm.js} +14 -3
- package/dist/chunks/{api-w8De9u1Z.esm.js.map → api-D-Ups140.esm.js.map} +1 -1
- package/dist/chunks/{appbar-D9sgcNKx.js → appbar-B5B09cG8.js} +2 -2
- package/dist/chunks/{appbar-D9sgcNKx.js.map → appbar-B5B09cG8.js.map} +1 -1
- package/dist/chunks/{appbar-DhAOoNnx.esm.js → appbar-DqKmstO3.esm.js} +2 -2
- package/dist/chunks/{appbar-DhAOoNnx.esm.js.map → appbar-DqKmstO3.esm.js.map} +1 -1
- package/dist/chunks/{approval-wrapper-Da93X7F6.esm.js → approval-wrapper-B75P0gcQ.esm.js} +2 -2
- package/dist/chunks/{approval-wrapper-Da93X7F6.esm.js.map → approval-wrapper-B75P0gcQ.esm.js.map} +1 -1
- package/dist/chunks/{approval-wrapper-Ci-cW-m0.js → approval-wrapper-BrMP1u_K.js} +2 -2
- package/dist/chunks/{approval-wrapper-Ci-cW-m0.js.map → approval-wrapper-BrMP1u_K.js.map} +1 -1
- package/dist/chunks/{chat-bot-padqRWR_.js → chat-bot-BAYqYRHn.js} +2 -2
- package/dist/chunks/{chat-bot-padqRWR_.js.map → chat-bot-BAYqYRHn.js.map} +1 -1
- package/dist/chunks/{chat-bot-BByP2-kp.esm.js → chat-bot-DpIhSCKc.esm.js} +2 -2
- package/dist/chunks/{chat-bot-BByP2-kp.esm.js.map → chat-bot-DpIhSCKc.esm.js.map} +1 -1
- package/dist/chunks/{common-utility-CARAexqF.js → common-utility-DRKuh2H0.js} +2 -2
- package/dist/chunks/{common-utility-CARAexqF.js.map → common-utility-DRKuh2H0.js.map} +1 -1
- package/dist/chunks/{common-utility-DWsblyLc.esm.js → common-utility-qSmp2In3.esm.js} +2 -2
- package/dist/chunks/{common-utility-DWsblyLc.esm.js.map → common-utility-qSmp2In3.esm.js.map} +1 -1
- package/dist/chunks/{custom-editor-CDTvJeBu.js → custom-editor-BPQayjzn.js} +2 -2
- package/dist/chunks/{custom-editor-CDTvJeBu.js.map → custom-editor-BPQayjzn.js.map} +1 -1
- package/dist/chunks/{custom-editor-Bxyz1m2D.esm.js → custom-editor-CDIvDJ3E.esm.js} +3 -3
- package/dist/chunks/{custom-editor-Bxyz1m2D.esm.js.map → custom-editor-CDIvDJ3E.esm.js.map} +1 -1
- package/dist/chunks/{custom-form-Bpb9HiXs.esm.js → custom-form-Bc3FhNpz.esm.js} +6 -6
- package/dist/chunks/{custom-form-Bpb9HiXs.esm.js.map → custom-form-Bc3FhNpz.esm.js.map} +1 -1
- package/dist/chunks/{custom-form-CdvLAqkM.js → custom-form-CS2SL4Bf.js} +6 -6
- package/dist/chunks/{custom-form-CdvLAqkM.js.map → custom-form-CS2SL4Bf.js.map} +1 -1
- package/dist/chunks/{dashboard-IQPv8qb9.esm.js → dashboard-BB35K2FP.esm.js} +3 -3
- package/dist/chunks/{dashboard-IQPv8qb9.esm.js.map → dashboard-BB35K2FP.esm.js.map} +1 -1
- package/dist/chunks/{dashboard-Bm3qCxyp.js → dashboard-BhnP9p8v.js} +3 -3
- package/dist/chunks/{dashboard-Bm3qCxyp.js.map → dashboard-BhnP9p8v.js.map} +1 -1
- package/dist/chunks/{dynamic-report-CdpkTznt.esm.js → dynamic-report-DqEqYFwB.esm.js} +4 -4
- package/dist/chunks/{dynamic-report-CdpkTznt.esm.js.map → dynamic-report-DqEqYFwB.esm.js.map} +1 -1
- package/dist/chunks/{dynamic-report-Dfk4XuTh.js → dynamic-report-o7m1ueU6.js} +4 -4
- package/dist/chunks/{dynamic-report-Dfk4XuTh.js.map → dynamic-report-o7m1ueU6.js.map} +1 -1
- package/dist/chunks/{dynamic-rows-mkgzMFjL.js → dynamic-rows-BExLpMXN.js} +2 -2
- package/dist/chunks/{dynamic-rows-mkgzMFjL.js.map → dynamic-rows-BExLpMXN.js.map} +1 -1
- package/dist/chunks/{dynamic-rows-D64m-Z1j.esm.js → dynamic-rows-aRfOvy43.esm.js} +2 -2
- package/dist/chunks/{dynamic-rows-D64m-Z1j.esm.js.map → dynamic-rows-aRfOvy43.esm.js.map} +1 -1
- package/dist/chunks/{dynamic-text-editor-Bq0VZD_0.esm.js → dynamic-text-editor-CdnVDWA3.esm.js} +2 -2
- package/dist/chunks/{dynamic-text-editor-Bq0VZD_0.esm.js.map → dynamic-text-editor-CdnVDWA3.esm.js.map} +1 -1
- package/dist/chunks/{dynamic-text-editor-DvQu_USR.js → dynamic-text-editor-CgisZkH-.js} +2 -2
- package/dist/chunks/{dynamic-text-editor-DvQu_USR.js.map → dynamic-text-editor-CgisZkH-.js.map} +1 -1
- package/dist/chunks/{edit-section-modal-JhrBM1O-.esm.js → edit-section-modal-CKzvbOam.esm.js} +2 -2
- package/dist/chunks/{edit-section-modal-JhrBM1O-.esm.js.map → edit-section-modal-CKzvbOam.esm.js.map} +1 -1
- package/dist/chunks/{edit-section-modal-BptwBP9b.js → edit-section-modal-R-TdrVeI.js} +2 -2
- package/dist/chunks/{edit-section-modal-BptwBP9b.js.map → edit-section-modal-R-TdrVeI.js.map} +1 -1
- package/dist/chunks/{filter-DnQLBnHo.esm.js → filter-BVY1nrjv.esm.js} +11 -5
- package/dist/chunks/filter-BVY1nrjv.esm.js.map +1 -0
- package/dist/chunks/{filter-D9Cx0Qtl.js → filter-BXScmUKA.js} +10 -4
- package/dist/chunks/filter-BXScmUKA.js.map +1 -0
- package/dist/chunks/{footer-lIzpfeIl.esm.js → footer-BEt1R0BF.esm.js} +2 -2
- package/dist/chunks/{footer-lIzpfeIl.esm.js.map → footer-BEt1R0BF.esm.js.map} +1 -1
- package/dist/chunks/{footer-bayElP1z.js → footer-DJZ4K1n0.js} +2 -2
- package/dist/chunks/{footer-bayElP1z.js.map → footer-DJZ4K1n0.js.map} +1 -1
- package/dist/chunks/{form-fields-BwxsvB9F.js → form-fields-COjlUd_z.js} +3 -3
- package/dist/chunks/{form-fields-BwxsvB9F.js.map → form-fields-COjlUd_z.js.map} +1 -1
- package/dist/chunks/{form-fields-BrayYpMV.esm.js → form-fields-CwtBhyBW.esm.js} +3 -3
- package/dist/chunks/{form-fields-BrayYpMV.esm.js.map → form-fields-CwtBhyBW.esm.js.map} +1 -1
- package/dist/chunks/{form-parser-Bvj6Zc2Z.js → form-parser-09IqF2B8.js} +2 -2
- package/dist/chunks/{form-parser-Bvj6Zc2Z.js.map → form-parser-09IqF2B8.js.map} +1 -1
- package/dist/chunks/{form-parser-BJRyYk98.esm.js → form-parser-DS9jYKXb.esm.js} +2 -2
- package/dist/chunks/{form-parser-BJRyYk98.esm.js.map → form-parser-DS9jYKXb.esm.js.map} +1 -1
- package/dist/chunks/{form-section-rVAcKmDS.js → form-section-94yk-i7O.js} +6 -6
- package/dist/chunks/{form-section-rVAcKmDS.js.map → form-section-94yk-i7O.js.map} +1 -1
- package/dist/chunks/{form-section-ooB5n5n5.esm.js → form-section-Ce7gW7nw.esm.js} +6 -6
- package/dist/chunks/{form-section-ooB5n5n5.esm.js.map → form-section-Ce7gW7nw.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-DS2-TuVH.esm.js → fullScreen-BGLa_jyN.esm.js} +3 -3
- package/dist/chunks/{fullScreen-DS2-TuVH.esm.js.map → fullScreen-BGLa_jyN.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-B6c2INGa.js → fullScreen-CeM0jO6X.js} +3 -3
- package/dist/chunks/{fullScreen-B6c2INGa.js.map → fullScreen-CeM0jO6X.js.map} +1 -1
- package/dist/chunks/{global-search-D0pVrSP1.js → global-search-BXrlGacV.js} +2 -2
- package/dist/chunks/{global-search-D0pVrSP1.js.map → global-search-BXrlGacV.js.map} +1 -1
- package/dist/chunks/{global-search-C3ZxZGB8.esm.js → global-search-Da6V1hCw.esm.js} +2 -2
- package/dist/chunks/{global-search-C3ZxZGB8.esm.js.map → global-search-Da6V1hCw.esm.js.map} +1 -1
- package/dist/chunks/{grid-view-Br1N0sdf.esm.js → grid-view-BFr24B5L.esm.js} +2 -2
- package/dist/chunks/{grid-view-Br1N0sdf.esm.js.map → grid-view-BFr24B5L.esm.js.map} +1 -1
- package/dist/chunks/{grid-view-DhnSmYaa.js → grid-view-DZce2PjW.js} +2 -2
- package/dist/chunks/{grid-view-DhnSmYaa.js.map → grid-view-DZce2PjW.js.map} +1 -1
- package/dist/chunks/{header-Bv0VHJ6c.js → header-Crrg21ks.js} +3 -3
- package/dist/chunks/{header-Bv0VHJ6c.js.map → header-Crrg21ks.js.map} +1 -1
- package/dist/chunks/{header-Dob8vfUx.esm.js → header-aasqgICS.esm.js} +3 -3
- package/dist/chunks/{header-Dob8vfUx.esm.js.map → header-aasqgICS.esm.js.map} +1 -1
- package/dist/chunks/{header-enhanced-Donxzxfw.esm.js → header-enhanced-CSAtP4BI.esm.js} +2 -2
- package/dist/chunks/{header-enhanced-Donxzxfw.esm.js.map → header-enhanced-CSAtP4BI.esm.js.map} +1 -1
- package/dist/chunks/{header-enhanced-CTtr4Pe-.js → header-enhanced-Y4qTE0ff.js} +2 -2
- package/dist/chunks/{header-enhanced-CTtr4Pe-.js.map → header-enhanced-Y4qTE0ff.js.map} +1 -1
- package/dist/chunks/{index-ALqg8b5U.esm.js → index-rN4vc8IA.esm.js} +2 -2
- package/dist/chunks/{index-ALqg8b5U.esm.js.map → index-rN4vc8IA.esm.js.map} +1 -1
- package/dist/chunks/{inline-edit-fields-Betje5F6.js → inline-edit-fields-BNvosaTN.js} +3 -3
- package/dist/chunks/{inline-edit-fields-Betje5F6.js.map → inline-edit-fields-BNvosaTN.js.map} +1 -1
- package/dist/chunks/{inline-edit-fields-tkexTfJu.esm.js → inline-edit-fields-CzTMCbzn.esm.js} +3 -3
- package/dist/chunks/{inline-edit-fields-tkexTfJu.esm.js.map → inline-edit-fields-CzTMCbzn.esm.js.map} +1 -1
- package/dist/chunks/{inventory-reports-title-bar-BF7AuiaE.js → inventory-reports-title-bar-BvhyLQ4V.js} +3 -3
- package/dist/chunks/{inventory-reports-title-bar-BF7AuiaE.js.map → inventory-reports-title-bar-BvhyLQ4V.js.map} +1 -1
- package/dist/chunks/{inventory-reports-title-bar-C7sOZnCf.esm.js → inventory-reports-title-bar-pf_78LUZ.esm.js} +3 -3
- package/dist/chunks/{inventory-reports-title-bar-C7sOZnCf.esm.js.map → inventory-reports-title-bar-pf_78LUZ.esm.js.map} +1 -1
- package/dist/chunks/{item-response-details-Detcy-bT.js → item-response-details-7iAPYOTv.js} +4 -4
- package/dist/chunks/{item-response-details-Detcy-bT.js.map → item-response-details-7iAPYOTv.js.map} +1 -1
- package/dist/chunks/{item-response-details-oFDZqbwX.esm.js → item-response-details-CSHehVMS.esm.js} +4 -4
- package/dist/chunks/{item-response-details-oFDZqbwX.esm.js.map → item-response-details-CSHehVMS.esm.js.map} +1 -1
- package/dist/chunks/{listing-kWwVSCCH.js → listing-9zOaeEtm.js} +4 -4
- package/dist/chunks/{listing-kWwVSCCH.js.map → listing-9zOaeEtm.js.map} +1 -1
- package/dist/chunks/{listing-BIwPAwDj.esm.js → listing-CPGsuBMA.esm.js} +4 -4
- package/dist/chunks/{listing-BIwPAwDj.esm.js.map → listing-CPGsuBMA.esm.js.map} +1 -1
- package/dist/chunks/{location-select-CrTin8mq.js → location-select-BOYOUv3I.js} +2 -2
- package/dist/chunks/{location-select-CrTin8mq.js.map → location-select-BOYOUv3I.js.map} +1 -1
- package/dist/chunks/{location-select-Co3yS2Qn.esm.js → location-select-Dl7zUTHR.esm.js} +2 -2
- package/dist/chunks/{location-select-Co3yS2Qn.esm.js.map → location-select-Dl7zUTHR.esm.js.map} +1 -1
- package/dist/chunks/{material-editable-table-ChD0DhXw.esm.js → material-editable-table-B8ed5YX6.esm.js} +3 -3
- package/dist/chunks/{material-editable-table-ChD0DhXw.esm.js.map → material-editable-table-B8ed5YX6.esm.js.map} +1 -1
- package/dist/chunks/{material-editable-table-CjtgcYTA.js → material-editable-table-Z_wQXpjN.js} +3 -3
- package/dist/chunks/{material-editable-table-CjtgcYTA.js.map → material-editable-table-Z_wQXpjN.js.map} +1 -1
- package/dist/chunks/media-BWriA8Un.esm.js +45 -0
- package/dist/chunks/{media-BNHjErng.esm.js.map → media-BWriA8Un.esm.js.map} +1 -1
- package/dist/chunks/media-D5-I9adp.js +44 -0
- package/dist/chunks/media-D5-I9adp.js.map +1 -0
- package/dist/chunks/{module-reducer-wwGUCVCs.js → module-reducer-BFrec-43.js} +2 -2
- package/dist/chunks/{module-reducer-wwGUCVCs.js.map → module-reducer-BFrec-43.js.map} +1 -1
- package/dist/chunks/{module-reducer-DJnOQQeS.esm.js → module-reducer-Bxu3--QK.esm.js} +2 -2
- package/dist/chunks/{module-reducer-DJnOQQeS.esm.js.map → module-reducer-Bxu3--QK.esm.js.map} +1 -1
- package/dist/chunks/{notification-menu-D9NWAvoZ.js → notification-menu-B7Se4fO6.js} +2 -2
- package/dist/chunks/{notification-menu-D9NWAvoZ.js.map → notification-menu-B7Se4fO6.js.map} +1 -1
- package/dist/chunks/{notification-menu-Cm55sfoj.esm.js → notification-menu-BNUazD23.esm.js} +3 -3
- package/dist/chunks/{notification-menu-Cm55sfoj.esm.js.map → notification-menu-BNUazD23.esm.js.map} +1 -1
- package/dist/chunks/{page-action-Drb4HiNc.js → page-action-BvfLbawr.js} +4 -4
- package/dist/chunks/{page-action-Drb4HiNc.js.map → page-action-BvfLbawr.js.map} +1 -1
- package/dist/chunks/{page-action-B3Jh4ITW.esm.js → page-action-C8VxjK9c.esm.js} +4 -4
- package/dist/chunks/{page-action-B3Jh4ITW.esm.js.map → page-action-C8VxjK9c.esm.js.map} +1 -1
- package/dist/chunks/{page-navigator-Cp0hmfhW.esm.js → page-navigator-GoMH0fMw.esm.js} +2 -2
- package/dist/chunks/{page-navigator-Cp0hmfhW.esm.js.map → page-navigator-GoMH0fMw.esm.js.map} +1 -1
- package/dist/chunks/{page-navigator-Bt1ZX2Uf.js → page-navigator-SUYJqdnx.js} +2 -2
- package/dist/chunks/{page-navigator-Bt1ZX2Uf.js.map → page-navigator-SUYJqdnx.js.map} +1 -1
- package/dist/chunks/{page-view-BshoJwrs.js → page-view-BortZKhR.js} +3 -3
- package/dist/chunks/{page-view-BshoJwrs.js.map → page-view-BortZKhR.js.map} +1 -1
- package/dist/chunks/{page-view-DC-S9vtU.esm.js → page-view-DRQ3PFJ7.esm.js} +3 -3
- package/dist/chunks/{page-view-DC-S9vtU.esm.js.map → page-view-DRQ3PFJ7.esm.js.map} +1 -1
- package/dist/chunks/{quick-approval-modal-M4mOc3VS.esm.js → quick-approval-modal-DXAqjdcl.esm.js} +2 -2
- package/dist/chunks/{quick-approval-modal-M4mOc3VS.esm.js.map → quick-approval-modal-DXAqjdcl.esm.js.map} +1 -1
- package/dist/chunks/{quick-approval-modal-Ckrkmjkl.js → quick-approval-modal-dc5AaSxs.js} +2 -2
- package/dist/chunks/{quick-approval-modal-Ckrkmjkl.js.map → quick-approval-modal-dc5AaSxs.js.map} +1 -1
- package/dist/chunks/{reducer-BHyZsdtk.js → reducer-BEMhiGFQ.js} +2 -2
- package/dist/chunks/{reducer-BHyZsdtk.js.map → reducer-BEMhiGFQ.js.map} +1 -1
- package/dist/chunks/{reducer-CUXI9fY3.esm.js → reducer-BjHl_KLr.esm.js} +2 -2
- package/dist/chunks/{reducer-CUXI9fY3.esm.js.map → reducer-BjHl_KLr.esm.js.map} +1 -1
- package/dist/chunks/{reducer-sGv2FmSj.esm.js → reducer-BkCNzjBL.esm.js} +3 -3
- package/dist/chunks/{reducer-sGv2FmSj.esm.js.map → reducer-BkCNzjBL.esm.js.map} +1 -1
- package/dist/chunks/{reducer-CrtUk_W3.esm.js → reducer-CSKSBC88.esm.js} +3 -3
- package/dist/chunks/{reducer-CrtUk_W3.esm.js.map → reducer-CSKSBC88.esm.js.map} +1 -1
- package/dist/chunks/{reducer-rdfC4LIG.esm.js → reducer-CiLCj0Py.esm.js} +2 -2
- package/dist/chunks/{reducer-rdfC4LIG.esm.js.map → reducer-CiLCj0Py.esm.js.map} +1 -1
- package/dist/chunks/{reducer-DPXa1mB5.js → reducer-CkWclHbN.js} +2 -2
- package/dist/chunks/{reducer-DPXa1mB5.js.map → reducer-CkWclHbN.js.map} +1 -1
- package/dist/chunks/{reducer-Cwtyv5b4.js → reducer-EEoFGAVV.js} +3 -3
- package/dist/chunks/{reducer-Cwtyv5b4.js.map → reducer-EEoFGAVV.js.map} +1 -1
- package/dist/chunks/{reducer-BTBP8UD4.esm.js → reducer-L9HIXcI1.esm.js} +2 -2
- package/dist/chunks/{reducer-BTBP8UD4.esm.js.map → reducer-L9HIXcI1.esm.js.map} +1 -1
- package/dist/chunks/{reducer-CVG2dtjZ.js → reducer-RjoBDU1j.js} +2 -2
- package/dist/chunks/{reducer-CVG2dtjZ.js.map → reducer-RjoBDU1j.js.map} +1 -1
- package/dist/chunks/{reducer-ujMQ0L5_.js → reducer-yTOIeGFg.js} +2 -2
- package/dist/chunks/{reducer-ujMQ0L5_.js.map → reducer-yTOIeGFg.js.map} +1 -1
- package/dist/chunks/{reports-title-bar-B8JTn7Ul.esm.js → reports-title-bar-BJ7NkV9U.esm.js} +4 -4
- package/dist/chunks/{reports-title-bar-B8JTn7Ul.esm.js.map → reports-title-bar-BJ7NkV9U.esm.js.map} +1 -1
- package/dist/chunks/{reports-title-bar-BJ7A6SmB.js → reports-title-bar-CdO0ixSd.js} +4 -4
- package/dist/chunks/{reports-title-bar-BJ7A6SmB.js.map → reports-title-bar-CdO0ixSd.js.map} +1 -1
- package/dist/chunks/{routes-Cs2E7oAc.js → routes-CFCfCWmQ.js} +3 -3
- package/dist/chunks/{routes-Cs2E7oAc.js.map → routes-CFCfCWmQ.js.map} +1 -1
- package/dist/chunks/{routes-CoCmY90I.esm.js → routes-CIaAl7t8.esm.js} +3 -3
- package/dist/chunks/{routes-CoCmY90I.esm.js.map → routes-CIaAl7t8.esm.js.map} +1 -1
- package/dist/chunks/{schedule-report-xnMShSOU.js → schedule-report-BP_lF8CG.js} +6 -6
- package/dist/chunks/{schedule-report-xnMShSOU.js.map → schedule-report-BP_lF8CG.js.map} +1 -1
- package/dist/chunks/{schedule-report-B5nyK1uE.esm.js → schedule-report-Buvq9E-k.esm.js} +6 -6
- package/dist/chunks/{schedule-report-B5nyK1uE.esm.js.map → schedule-report-Buvq9E-k.esm.js.map} +1 -1
- package/dist/chunks/{schedule-report-modal-LKJLZBDX.js → schedule-report-modal-COImNOlJ.js} +3 -3
- package/dist/chunks/{schedule-report-modal-LKJLZBDX.js.map → schedule-report-modal-COImNOlJ.js.map} +1 -1
- package/dist/chunks/{schedule-report-modal-Dcld1u__.esm.js → schedule-report-modal-CvfPn4bO.esm.js} +3 -3
- package/dist/chunks/{schedule-report-modal-Dcld1u__.esm.js.map → schedule-report-modal-CvfPn4bO.esm.js.map} +1 -1
- package/dist/chunks/{searchable-select-BNErtrmc.esm.js → searchable-select-Bu17d6NI.esm.js} +6 -6
- package/dist/chunks/{searchable-select-BNErtrmc.esm.js.map → searchable-select-Bu17d6NI.esm.js.map} +1 -1
- package/dist/chunks/{searchable-select-CvmvzflO.js → searchable-select-DWAOdcXD.js} +6 -6
- package/dist/chunks/{searchable-select-CvmvzflO.js.map → searchable-select-DWAOdcXD.js.map} +1 -1
- package/dist/chunks/{share-modal-7-fMdfwB.js → share-modal-C27qwY53.js} +3 -3
- package/dist/chunks/{share-modal-7-fMdfwB.js.map → share-modal-C27qwY53.js.map} +1 -1
- package/dist/chunks/{share-modal-B7bmQDz6.esm.js → share-modal-e1Ln_EkF.esm.js} +3 -3
- package/dist/chunks/{share-modal-B7bmQDz6.esm.js.map → share-modal-e1Ln_EkF.esm.js.map} +1 -1
- package/dist/chunks/{share-modal-enhanced-K3F95FBr.js → share-modal-enhanced-AISjjeWC.js} +2 -2
- package/dist/chunks/{share-modal-enhanced-K3F95FBr.js.map → share-modal-enhanced-AISjjeWC.js.map} +1 -1
- package/dist/chunks/{share-modal-enhanced-LzvFBkw7.esm.js → share-modal-enhanced-De3P9VK_.esm.js} +2 -2
- package/dist/chunks/{share-modal-enhanced-LzvFBkw7.esm.js.map → share-modal-enhanced-De3P9VK_.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-Cu3so7yG.esm.js → sidebarScreen-DrXQgFfD.esm.js} +4 -4
- package/dist/chunks/{sidebarScreen-Cu3so7yG.esm.js.map → sidebarScreen-DrXQgFfD.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-D6RdJmE_.js → sidebarScreen-fc0K8AIc.js} +4 -4
- package/dist/chunks/{sidebarScreen-D6RdJmE_.js.map → sidebarScreen-fc0K8AIc.js.map} +1 -1
- package/dist/chunks/{store-dnWK9iUF.js → store-C2Jq1vUE.js} +6 -6
- package/dist/chunks/{store-dnWK9iUF.js.map → store-C2Jq1vUE.js.map} +1 -1
- package/dist/chunks/{store-BJ-oYaJ9.esm.js → store-Fe4VwbF_.esm.js} +6 -6
- package/dist/chunks/{store-BJ-oYaJ9.esm.js.map → store-Fe4VwbF_.esm.js.map} +1 -1
- package/dist/chunks/{table-pjhCRENP.esm.js → table-Co5_7CEc.esm.js} +3 -3
- package/dist/chunks/{table-pjhCRENP.esm.js.map → table-Co5_7CEc.esm.js.map} +1 -1
- package/dist/chunks/{table-form-7QGuKo_u.js → table-form-BDB6k6Ka.js} +2 -2
- package/dist/chunks/{table-form-7QGuKo_u.js.map → table-form-BDB6k6Ka.js.map} +1 -1
- package/dist/chunks/{table-form-CNutzib7.esm.js → table-form-CL8axzXB.esm.js} +2 -2
- package/dist/chunks/{table-form-CNutzib7.esm.js.map → table-form-CL8axzXB.esm.js.map} +1 -1
- package/dist/chunks/{table-yoFD3IYO.js → table-pSQQBEqC.js} +3 -3
- package/dist/chunks/{table-yoFD3IYO.js.map → table-pSQQBEqC.js.map} +1 -1
- package/dist/chunks/{template-editor-router-BSESCNID.js → template-editor-router-BZbxO3bj.js} +2 -2
- package/dist/chunks/{template-editor-router-BSESCNID.js.map → template-editor-router-BZbxO3bj.js.map} +1 -1
- package/dist/chunks/{template-editor-router-Blq_7tbC.esm.js → template-editor-router-DkSQldFD.esm.js} +2 -2
- package/dist/chunks/{template-editor-router-Blq_7tbC.esm.js.map → template-editor-router-DkSQldFD.esm.js.map} +1 -1
- package/dist/chunks/{template-modal-jF46oWQM.js → template-modal-CtcB5ZXg.js} +2 -2
- package/dist/chunks/{template-modal-jF46oWQM.js.map → template-modal-CtcB5ZXg.js.map} +1 -1
- package/dist/chunks/{template-modal-DP-8WrJA.esm.js → template-modal-GAKNz6Ju.esm.js} +3 -3
- package/dist/chunks/{template-modal-DP-8WrJA.esm.js.map → template-modal-GAKNz6Ju.esm.js.map} +1 -1
- package/dist/chunks/{template-name-modal-Dctn8t3t.esm.js → template-name-modal-CLROXhxo.esm.js} +2 -2
- package/dist/chunks/{template-name-modal-Dctn8t3t.esm.js.map → template-name-modal-CLROXhxo.esm.js.map} +1 -1
- package/dist/chunks/{templates-B9XdPGUq.esm.js → templates-BWZsKOkq.esm.js} +8 -8
- package/dist/chunks/{templates-B9XdPGUq.esm.js.map → templates-BWZsKOkq.esm.js.map} +1 -1
- package/dist/chunks/{templates-Cb8eycox.js → templates-CWeYr33-.js} +7 -7
- package/dist/chunks/{templates-Cb8eycox.js.map → templates-CWeYr33-.js.map} +1 -1
- package/dist/chunks/{text-measurement-Ds7tr1Kv.esm.js → text-measurement-BDjRfcdG.esm.js} +2 -2
- package/dist/chunks/{text-measurement-Ds7tr1Kv.esm.js.map → text-measurement-BDjRfcdG.esm.js.map} +1 -1
- package/dist/chunks/{text-measurement-7rGbhzLN.js → text-measurement-DRYlij2S.js} +2 -2
- package/dist/chunks/{text-measurement-7rGbhzLN.js.map → text-measurement-DRYlij2S.js.map} +1 -1
- package/dist/chunks/{translations-B1tUxNsa.esm.js → translations-AfCWpvAq.esm.js} +3 -3
- package/dist/chunks/{translations-B1tUxNsa.esm.js.map → translations-AfCWpvAq.esm.js.map} +1 -1
- package/dist/chunks/{translations-C8G8AtUJ.js → translations-BHuYJsWp.js} +2 -2
- package/dist/chunks/{translations-C8G8AtUJ.js.map → translations-BHuYJsWp.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-MYSrjipD.esm.js → uom-field-wrapper-Ci2KCrFu.esm.js} +2 -2
- package/dist/chunks/{uom-field-wrapper-MYSrjipD.esm.js.map → uom-field-wrapper-Ci2KCrFu.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-BHmSiaXi.js → uom-field-wrapper-qe_kL90T.js} +2 -2
- package/dist/chunks/{uom-field-wrapper-BHmSiaXi.js.map → uom-field-wrapper-qe_kL90T.js.map} +1 -1
- package/dist/chunks/{upload-excel-Bg-8pqKr.esm.js → upload-excel-BgU9rR6Y.esm.js} +2 -2
- package/dist/chunks/{upload-excel-Bg-8pqKr.esm.js.map → upload-excel-BgU9rR6Y.esm.js.map} +1 -1
- package/dist/chunks/{upload-excel-De5rbiL8.js → upload-excel-Dr6K-CAH.js} +2 -2
- package/dist/chunks/{upload-excel-De5rbiL8.js.map → upload-excel-Dr6K-CAH.js.map} +1 -1
- package/dist/chunks/upload-media-BE0tktWj.js +522 -0
- package/dist/chunks/upload-media-BE0tktWj.js.map +1 -0
- package/dist/chunks/upload-media-OmufgJmq.esm.js +523 -0
- package/dist/chunks/upload-media-OmufgJmq.esm.js.map +1 -0
- package/dist/chunks/{use-translations-CKS4yvGw.js → use-translations-C1Ggg0W6.js} +2 -2
- package/dist/chunks/{use-translations-CKS4yvGw.js.map → use-translations-C1Ggg0W6.js.map} +1 -1
- package/dist/chunks/{use-translations-CwqmNNF8.esm.js → use-translations-lguGhn5S.esm.js} +2 -2
- package/dist/chunks/{use-translations-CwqmNNF8.esm.js.map → use-translations-lguGhn5S.esm.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-CQKsZpDR.esm.js → useAccountSetting-DcGLpWby.esm.js} +2 -2
- package/dist/chunks/{useAccountSetting-CQKsZpDR.esm.js.map → useAccountSetting-DcGLpWby.esm.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-De-p6HcN.js → useAccountSetting-ouGcJ20y.js} +2 -2
- package/dist/chunks/{useAccountSetting-De-p6HcN.js.map → useAccountSetting-ouGcJ20y.js.map} +1 -1
- package/dist/chunks/{useCheckSkuAndName-vsjrM5X-.js → useCheckSkuAndName-CYsOfbJv.js} +2 -2
- package/dist/chunks/{useCheckSkuAndName-vsjrM5X-.js.map → useCheckSkuAndName-CYsOfbJv.js.map} +1 -1
- package/dist/chunks/{useCheckSkuAndName-DzRLmhaW.esm.js → useCheckSkuAndName-Hd41btzY.esm.js} +2 -2
- package/dist/chunks/{useCheckSkuAndName-DzRLmhaW.esm.js.map → useCheckSkuAndName-Hd41btzY.esm.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-B5pZYr9t.js → useReduxIntegration-4ziMWLT9.js} +2 -2
- package/dist/chunks/{useReduxIntegration-B5pZYr9t.js.map → useReduxIntegration-4ziMWLT9.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-D5y8PRkW.esm.js → useReduxIntegration-BL_5V7QV.esm.js} +2 -2
- package/dist/chunks/{useReduxIntegration-D5y8PRkW.esm.js.map → useReduxIntegration-BL_5V7QV.esm.js.map} +1 -1
- package/dist/chunks/{useUniquenessCheck-Pm-163jN.esm.js → useUniquenessCheck-DmKGritZ.esm.js} +2 -2
- package/dist/chunks/{useUniquenessCheck-Pm-163jN.esm.js.map → useUniquenessCheck-DmKGritZ.esm.js.map} +1 -1
- package/dist/chunks/{useUniquenessCheck-DZ3mosj1.js → useUniquenessCheck-L2KUVT1S.js} +2 -2
- package/dist/chunks/{useUniquenessCheck-DZ3mosj1.js.map → useUniquenessCheck-L2KUVT1S.js.map} +1 -1
- package/dist/chunks/{useVendorAICompare-BeU9KXTT.esm.js → useVendorAICompare-Bw0EuWHc.esm.js} +2 -2
- package/dist/chunks/{useVendorAICompare-BeU9KXTT.esm.js.map → useVendorAICompare-Bw0EuWHc.esm.js.map} +1 -1
- package/dist/chunks/{useVendorAICompare-DhZckL5o.js → useVendorAICompare-DWlQ7-7s.js} +2 -2
- package/dist/chunks/{useVendorAICompare-DhZckL5o.js.map → useVendorAICompare-DWlQ7-7s.js.map} +1 -1
- package/dist/chunks/value-editor-DBBKG2TA.js +261 -0
- package/dist/chunks/value-editor-DBBKG2TA.js.map +1 -0
- package/dist/chunks/value-editor-DR1T0F4i.esm.js +262 -0
- package/dist/chunks/value-editor-DR1T0F4i.esm.js.map +1 -0
- package/dist/chunks/{vendor-ai-summary-C-_Tmn05.js → vendor-ai-summary-1wlm-nT1.js} +3 -3
- package/dist/chunks/{vendor-ai-summary-C-_Tmn05.js.map → vendor-ai-summary-1wlm-nT1.js.map} +1 -1
- package/dist/chunks/{vendor-ai-summary-VtIIS5e1.esm.js → vendor-ai-summary-YcXA_SEB.esm.js} +3 -3
- package/dist/chunks/{vendor-ai-summary-VtIIS5e1.esm.js.map → vendor-ai-summary-YcXA_SEB.esm.js.map} +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/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/ai-summary/index.js +1 -1
- package/dist/components/ai-summary/index.esm.js +1 -1
- package/dist/components/ai-summary/index.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/chat-bot/index.esm.js +1 -1
- package/dist/components/chat-bot/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/grid-view/index.js +1 -1
- package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
- package/dist/components/custom-forms/grid-view/index.js +1 -1
- package/dist/components/custom-forms/index.esm.js +2 -2
- package/dist/components/custom-forms/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/editor/custom-editor/index.esm.js +1 -1
- package/dist/components/editor/custom-editor/index.js +1 -1
- package/dist/components/editor/index.esm.js +1 -1
- package/dist/components/editor/index.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/filter/components/index.esm.js +1 -1
- package/dist/components/filter/components/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/fields/index.esm.js +1 -0
- package/dist/components/filter/fields/index.esm.js.map +1 -1
- package/dist/components/filter/fields/index.js +1 -0
- package/dist/components/filter/fields/index.js.map +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 +2 -2
- package/dist/components/filter/index.js +2 -2
- 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-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/dynamic-text-editor/index.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 +5 -5
- package/dist/components/form-control/form-builder/form-builder-element/index.js +5 -5
- 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/media/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/media/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/index.esm.js +5 -5
- package/dist/components/form-control/form-builder/index.js +5 -5
- 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 +7 -7
- package/dist/components/form-control/index.js +7 -7
- package/dist/components/header/components/global-search/index.esm.js +1 -1
- package/dist/components/header/components/global-search/index.js +1 -1
- package/dist/components/header/components/index.esm.js +1 -1
- package/dist/components/header/components/index.js +1 -1
- package/dist/components/header/components/notification-menu/index.esm.js +1 -1
- package/dist/components/header/components/notification-menu/index.js +1 -1
- package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
- package/dist/components/header/components/notification-menu/notification-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 +5 -5
- package/dist/components/header/index.js +5 -5
- package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/header/redux/actionCreator/index.js +1 -1
- package/dist/components/header/redux/index.esm.js +2 -2
- package/dist/components/header/redux/index.js +2 -2
- package/dist/components/header/redux/reducer/index.esm.js +1 -1
- package/dist/components/header/redux/reducer/index.js +1 -1
- package/dist/components/index.esm.js +38 -38
- package/dist/components/index.js +38 -38
- package/dist/components/inventory-reports-title-bar/index.esm.js +3 -3
- 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/actionCreator/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
- package/dist/components/inventory-reports-title-bar/redux/index.js +2 -2
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/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/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/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/index.js +1 -1
- package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
- package/dist/components/quick-approval-modal/quick-approval-modal/index.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-report/index.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
- package/dist/components/reports/dynamic-report/dynamic-rows/index.js +1 -1
- package/dist/components/reports/dynamic-report/index.esm.js +2 -2
- package/dist/components/reports/dynamic-report/index.js +2 -2
- package/dist/components/reports/index.esm.js +2 -2
- package/dist/components/reports/index.js +2 -2
- package/dist/components/reports-title-bar/index.esm.js +3 -3
- package/dist/components/reports-title-bar/index.js +3 -3
- package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/reports-title-bar/redux/actionCreator/index.js +1 -1
- package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
- package/dist/components/reports-title-bar/redux/index.js +2 -2
- package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
- package/dist/components/reports-title-bar/redux/reducer/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/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/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 +4 -4
- package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/share-modal/redux/actionCreator/index.js +1 -1
- package/dist/components/share-modal/redux/index.esm.js +2 -2
- package/dist/components/share-modal/redux/index.js +2 -2
- package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
- package/dist/components/share-modal/redux/reducer/index.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/team-add-modal/index.esm.js +1 -1
- package/dist/components/team-add-modal/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/index.js +1 -1
- package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
- package/dist/components/upload-excel/upload-excel/index.js +1 -1
- package/dist/components/upload-media/index.esm.js +1 -1
- package/dist/components/upload-media/index.js +1 -1
- package/dist/components/upload-media/upload-media/index.esm.js +1 -1
- package/dist/components/upload-media/upload-media/index.js +1 -1
- package/dist/components/vendor-ai-summary/index.esm.js +1 -1
- package/dist/components/vendor-ai-summary/index.js +1 -1
- package/dist/hooks/index.esm.js +6 -6
- package/dist/hooks/index.js +6 -6
- 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/useAccountSetting/index.js +1 -1
- package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
- package/dist/hooks/useCheckSkuAndName/index.js +1 -1
- package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
- package/dist/hooks/useReduxIntegration/index.js +1 -1
- package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
- package/dist/hooks/useUniquenessCheck/index.js +1 -1
- package/dist/index.esm.js +68 -68
- package/dist/index.js +65 -65
- 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/redux/index.esm.js +3 -3
- package/dist/redux/index.js +3 -3
- package/dist/runtime/index.esm.js +2 -2
- package/dist/runtime/index.esm.js.map +1 -1
- package/dist/runtime/index.js +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/src/components/filter/components/date-range-value.d.ts +14 -0
- package/dist/src/components/upload-media/image-cropper.d.ts +12 -0
- package/dist/src/components/upload-media/upload-media.d.ts +6 -0
- package/dist/utils/api/index.esm.js +1 -1
- package/dist/utils/api/index.js +1 -1
- package/dist/utils/common/index.esm.js +1 -1
- package/dist/utils/common/index.js +1 -1
- package/dist/utils/common-utility/index.esm.js +1 -1
- package/dist/utils/common-utility/index.js +1 -1
- package/dist/utils/index.esm.js +8 -8
- package/dist/utils/index.js +4 -4
- package/dist/utils/server/index.esm.js +2 -2
- package/dist/utils/text-measurement/index.esm.js +1 -1
- package/dist/utils/text-measurement/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/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/element-edit-forms/index.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 +4 -4
- package/dist/views/form-builder/redux/index.esm.js +1 -1
- package/dist/views/form-builder/redux/index.js +1 -1
- package/dist/views/index.esm.js +14 -14
- package/dist/views/index.js +13 -13
- 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/edit-section-modal/index.js +1 -1
- package/dist/views/template-editor/index.esm.js +8 -8
- package/dist/views/template-editor/index.js +7 -7
- 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-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 +1 -1
- package/dist/chunks/action-bar-B8EkHk4R.esm.js.map +0 -1
- package/dist/chunks/action-bar-B_EUV2Bt.js.map +0 -1
- package/dist/chunks/filter-D9Cx0Qtl.js.map +0 -1
- package/dist/chunks/filter-DnQLBnHo.esm.js.map +0 -1
- package/dist/chunks/media-BNHjErng.esm.js +0 -39
- package/dist/chunks/media-CDeMBdV7.js +0 -38
- package/dist/chunks/media-CDeMBdV7.js.map +0 -1
- package/dist/chunks/upload-media-Bhiob8pM.js +0 -262
- package/dist/chunks/upload-media-Bhiob8pM.js.map +0 -1
- package/dist/chunks/upload-media-u_D3Fe_j.esm.js +0 -263
- package/dist/chunks/upload-media-u_D3Fe_j.esm.js.map +0 -1
- package/dist/chunks/value-editor-CbiP4U-V.js +0 -135
- package/dist/chunks/value-editor-CbiP4U-V.js.map +0 -1
- package/dist/chunks/value-editor-K2ox4TX9.esm.js +0 -136
- package/dist/chunks/value-editor-K2ox4TX9.esm.js.map +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const reactHookForm = require("react-hook-form");
|
|
5
|
+
;/* empty css */
|
|
6
|
+
const uploadMedia = require("./upload-media-BE0tktWj.js");
|
|
7
|
+
const typography = require("./typography-Bqfr1Ksf.js");
|
|
8
|
+
const DynamicMedia = React.memo((props) => {
|
|
9
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10
|
+
reactHookForm.Controller,
|
|
11
|
+
{
|
|
12
|
+
control: props.formControl,
|
|
13
|
+
name: `${props.fieldArrayName}.${props.name}`,
|
|
14
|
+
render: ({ field, fieldState: { error } }) => {
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
17
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18
|
+
uploadMedia.UploadMedia,
|
|
19
|
+
{
|
|
20
|
+
dataPosition: props.position,
|
|
21
|
+
dataName: `${props.fieldArrayName}.${props.name}`,
|
|
22
|
+
label: props.label,
|
|
23
|
+
required: props.formType === "builder" ? false : props.required,
|
|
24
|
+
type: props.field_type,
|
|
25
|
+
max_size: props == null ? void 0 : props.max_size,
|
|
26
|
+
disabled: props == null ? void 0 : props.disabled,
|
|
27
|
+
onChange: field == null ? void 0 : field.onChange,
|
|
28
|
+
name: props.name,
|
|
29
|
+
value: (field == null ? void 0 : field.value) || (props == null ? void 0 : props.value),
|
|
30
|
+
multiple: Boolean(props == null ? void 0 : props.is_multiple),
|
|
31
|
+
renderPreview: props == null ? void 0 : props.renderPreview,
|
|
32
|
+
crop: Boolean((_a = props == null ? void 0 : props.field_properties) == null ? void 0 : _a.crop),
|
|
33
|
+
cropAspect: (_b = props == null ? void 0 : props.field_properties) == null ? void 0 : _b.crop_aspect,
|
|
34
|
+
cropAspectOptions: Boolean((_c = props == null ? void 0 : props.field_properties) == null ? void 0 : _c.crop_aspect_options)
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { color: "theme.error.600", type: "s5", children: error.message })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
exports.DynamicMedia = DynamicMedia;
|
|
44
|
+
//# sourceMappingURL=media-D5-I9adp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-D5-I9adp.js","sources":["../../src/components/form-control/form-builder/form-builder-element/media.tsx"],"sourcesContent":["import React from \"react\";\nimport { Controller } from \"react-hook-form\";\nimport \"./element.scss\";\nimport UploadMedia from \"../../../upload-media/upload-media\";\nimport Typography from \"../../../typography/typography\";\n\n\ninterface DynamicMediaProps {\n formControl: any;\n fieldArrayName: string;\n name: string;\n label?: string;\n defaultValue?: any;\n required?: boolean;\n disabled?: boolean;\n hidden?: boolean;\n accept?: string;\n multiple?: boolean;\n maxSize?: number;\n}\n\nconst DynamicMedia = React.memo((props: DynamicMediaProps) => {\n\n return (\n <Controller\n control={props.formControl}\n name={`${props.fieldArrayName}.${props.name}`}\n render={({ field, fieldState: { error } }) => (\n <>\n <UploadMedia\n // {...field}\n dataPosition={props.position}\n dataName={`${props.fieldArrayName}.${props.name}`}\n label={props.label}\n required={props.formType === \"builder\" ? false : props.required}\n type={props.field_type}\n max_size={props?.max_size}\n disabled={props?.disabled}\n onChange={field?.onChange}\n name={props.name}\n value={field?.value || props?.value}\n multiple={Boolean(props?.is_multiple)}\n renderPreview={props?.renderPreview}\n crop={Boolean(props?.field_properties?.crop)}\n cropAspect={props?.field_properties?.crop_aspect}\n cropAspectOptions={Boolean(props?.field_properties?.crop_aspect_options)}\n />\n {error &&\n <Typography color=\"theme.error.600\" type=\"s5\">{error.message}</Typography>\n }\n </>\n )}\n />\n );\n});\nexport { DynamicMedia };\nexport default DynamicMedia;\n"],"names":["jsx","Controller","jsxs","Fragment","UploadMedia","Typography"],"mappings":";;;;;;;AAqBA,MAAM,eAAe,MAAM,KAAK,CAAC,UAA6B;AAE5D,SACEA,2BAAAA;AAAAA,IAACC,cAAAA;AAAAA,IAAA;AAAA,MACC,SAAS,MAAM;AAAA,MACf,MAAM,GAAG,MAAM,cAAc,IAAI,MAAM,IAAI;AAAA,MAC3C,QAAQ,CAAC,EAAE,OAAO,YAAY,EAAE,MAAA,EAAM;;AACpCC,0CAAAA,KAAAC,qBAAA,EACE,UAAA;AAAA,UAAAH,2BAAAA;AAAAA,YAACI,YAAAA;AAAAA,YAAA;AAAA,cAEC,cAAc,MAAM;AAAA,cACpB,UAAU,GAAG,MAAM,cAAc,IAAI,MAAM,IAAI;AAAA,cAC/C,OAAO,MAAM;AAAA,cACb,UAAU,MAAM,aAAa,YAAY,QAAQ,MAAM;AAAA,cACvD,MAAM,MAAM;AAAA,cACZ,UAAU,+BAAO;AAAA,cACjB,UAAU,+BAAO;AAAA,cACjB,UAAU,+BAAO;AAAA,cACjB,MAAM,MAAM;AAAA,cACZ,QAAO,+BAAO,WAAS,+BAAO;AAAA,cAC9B,UAAU,QAAQ,+BAAO,WAAW;AAAA,cACpC,eAAe,+BAAO;AAAA,cACtB,MAAM,SAAQ,oCAAO,qBAAP,mBAAyB,IAAI;AAAA,cAC3C,aAAY,oCAAO,qBAAP,mBAAyB;AAAA,cACrC,mBAAmB,SAAQ,oCAAO,qBAAP,mBAAyB,mBAAmB;AAAA,YAAA;AAAA,UAAA;AAAA,UAExE,wCACEC,uBAAA,EAAW,OAAM,mBAAkB,MAAK,MAAM,gBAAM,QAAA,CAAQ;AAAA,QAAA,EAAA,CAEjE;AAAA;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const toolkit = require("@reduxjs/toolkit");
|
|
3
|
-
const api = require("./api-
|
|
3
|
+
const api = require("./api-CfErA7gR.js");
|
|
4
4
|
const createConfiguredApiClient = (baseApiClient, getAuthToken) => {
|
|
5
5
|
const configuredClient = {};
|
|
6
6
|
Object.keys(baseApiClient).forEach((methodName) => {
|
|
@@ -88,4 +88,4 @@ const createModuleSlice = ({
|
|
|
88
88
|
};
|
|
89
89
|
exports.createConfiguredApiClient = createConfiguredApiClient;
|
|
90
90
|
exports.createModuleSlice = createModuleSlice;
|
|
91
|
-
//# sourceMappingURL=module-reducer-
|
|
91
|
+
//# sourceMappingURL=module-reducer-BFrec-43.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-reducer-
|
|
1
|
+
{"version":3,"file":"module-reducer-BFrec-43.js","sources":["../../src/redux/apiConfig.ts","../../src/redux/module-reducer.ts"],"sourcesContent":["// API configuration helper for Redux slices\n// This allows consuming applications to configure their API clients\n\nexport interface ApiClientConfig {\n // Share modal API methods\n getV1PagesUserList?: (params?: any) => Promise<any>;\n postV1PagesShare?: (data: any) => Promise<any>;\n \n // Header API methods\n getV1Languages?: (params?: any) => Promise<any>;\n \n // Reports title bar API methods\n getV1Company?: (params?: any) => Promise<any>;\n \n // Inventory reports title bar API methods\n getV1InventoryItems?: (params?: any) => Promise<any>;\n getV1WarehouseLocation?: (params?: any) => Promise<any>;\n getV1AssemblyItems?: (params?: any) => Promise<any>;\n getV1BillsOfMaterials?: (params?: any) => Promise<any>;\n}\n\n// Helper function to validate API client configuration\nexport const validateApiClient = (apiClient: ApiClientConfig, requiredMethods: string[]): boolean => {\n for (const method of requiredMethods) {\n if (typeof (apiClient as any)[method] !== 'function') {\n console.warn(`API client missing required method: ${method}`);\n return false;\n }\n }\n return true;\n};\n\n// Predefined method groups for different slices\nexport const API_METHOD_GROUPS = {\n share: ['getV1PagesUserList', 'postV1PagesShare'],\n header: ['getV1Languages'],\n reportsTitleBar: ['getV1Company'],\n inventoryReportsTitleBar: ['getV1InventoryItems', 'getV1WarehouseLocation', 'getV1AssemblyItems', 'getV1BillsOfMaterials'],\n} as const;\n\n// Helper to create a configured API client with authentication\nexport const createConfiguredApiClient = (\n baseApiClient: any,\n getAuthToken: () => any\n): ApiClientConfig => {\n const configuredClient: any = {};\n \n // Wrap each API method to include authentication\n Object.keys(baseApiClient).forEach(methodName => {\n if (typeof baseApiClient[methodName] === 'function') {\n configuredClient[methodName] = async (params: any = {}) => {\n const authToken = getAuthToken();\n return baseApiClient[methodName]({ ...authToken, ...params });\n };\n }\n });\n \n return configuredClient;\n};","/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable unused-imports/no-unused-vars */\nimport { createSlice, SliceCaseReducers, AnyAction, PayloadAction } from \"@reduxjs/toolkit\";\nimport { getErrorMessage } from \"../utils/common\";\n\ninterface SliceConfig<T extends StateSlice> {\n name: string;\n initialState: T;\n actions: Partial<Record<keyof T, ActionGroup<T>>>;\n}\n\n// Utility functions to handle loading and error state\nconst setLoadingState = <T extends StateSlice>(state: T, key: keyof T, isLoading = true) => {\n if (state[key] && typeof state[key] === \"object\") {\n state[key] = { ...state[key], isLoading, isError: false, error: \"\" };\n }\n};\n\nconst setErrorState = <T extends StateSlice>(state: T, key: keyof T, error: string) => {\n if (state[key] && typeof state[key] === \"object\") {\n state[key] = { ...state[key], isLoading: false, isError: true, error };\n }\n};\n\n// **Generic Redux Slice Factory**\nexport const createModuleSlice = <T extends StateSlice>({\n name,\n initialState,\n actions,\n reducers,\n extraReducers\n}: SliceConfig<T>) => {\n return createSlice<T, SliceCaseReducers<T>>({\n name,\n initialState,\n reducers: {\n setPaginationModel: (state, { payload }: PayloadAction<Partial<T[\"paginationModel\"]>>) => {\n if (\"paginationModel\" in state && typeof state.paginationModel === \"object\") {\n state.paginationModel = { ...state.paginationModel, ...payload };\n }\n },\n setOptionsData: (state, { payload }: PayloadAction<{ name: string; value: any }>) => {\n if (\"optionsData\" in state && typeof state.optionsData === \"object\") {\n state.optionsData = { ...state.optionsData, ...payload}\n }\n },\n setStaticOptions: (state, { payload }) => {\n state.staticOptions = {...state.staticOptions, ...payload}\n },\n resetState: () => initialState,\n ...reducers\n },\n extraReducers: (builder) => {\n Object.entries(actions).forEach(([stateKey, actionGroup]) => {\n if (actionGroup) {\n Object.entries(actionGroup).forEach(([actionName, action]) => {\n if (action && \"pending\" in action && \"fulfilled\" in action && \"rejected\" in action) {\n // Handle AsyncThunk Actions\n builder\n .addCase(action.pending, (state) => setLoadingState(state, stateKey as keyof T))\n .addCase(action.fulfilled, (state, { payload }: PayloadAction<any>) => {\n if (state[stateKey as keyof T] && typeof state[stateKey as keyof T] === \"object\") {\n state[stateKey as keyof T] = {\n ...state[stateKey as keyof T],\n isLoading: false,\n ...(payload?.rows ? { rows: payload.rows } : {}),\n ...(payload?.data ? { data: payload.data } : {}),\n ...(payload?.fields ? { fields: payload.fields } : {}),\n ...(payload?.activityLogs ? { activityLogs: payload.activityLogs } : {}),\n ...(payload?.pagination ? { pagination: payload.pagination } : {}),\n };\n if(payload?.pagination) {\n state.paginationModel = { ...state.paginationModel, ...payload.pagination }\n }\n }\n })\n .addCase(action.rejected, (state, { error }: AnyAction) =>{\n\n setErrorState(state, stateKey as keyof T, getErrorMessage(error?.message))\n }\n );\n }\n });\n }\n });\n if (extraReducers) {\n extraReducers(builder);\n }\n },\n \n });\n};\n"],"names":["createSlice","getErrorMessage"],"mappings":";;;AAyCO,MAAM,4BAA4B,CACvC,eACA,iBACoB;AACpB,QAAM,mBAAwB,CAAA;AAG9B,SAAO,KAAK,aAAa,EAAE,QAAQ,CAAA,eAAc;AA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O,OAAO,CAAC;AAAA,gBAC3E;AAAA,cAAA;AAAA,YAEJ;AAAA,UACF,CAAC;AAAA,QACH;AAAA,MACF,CAAC;AACD,UAAI,eAAe;AACjB,sBAAc,OAAO;AAAA,MACvB;AAAA,IACF;AAAA,EAAA,CAED;AACH;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createSlice } from "@reduxjs/toolkit";
|
|
2
|
-
import { W as getErrorMessage } from "./api-
|
|
2
|
+
import { W as getErrorMessage } from "./api-D-Ups140.esm.js";
|
|
3
3
|
const createConfiguredApiClient = (baseApiClient, getAuthToken) => {
|
|
4
4
|
const configuredClient = {};
|
|
5
5
|
Object.keys(baseApiClient).forEach((methodName) => {
|
|
@@ -89,4 +89,4 @@ export {
|
|
|
89
89
|
createModuleSlice as a,
|
|
90
90
|
createConfiguredApiClient as c
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=module-reducer-
|
|
92
|
+
//# sourceMappingURL=module-reducer-Bxu3--QK.esm.js.map
|
package/dist/chunks/{module-reducer-DJnOQQeS.esm.js.map → module-reducer-Bxu3--QK.esm.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-reducer-
|
|
1
|
+
{"version":3,"file":"module-reducer-Bxu3--QK.esm.js","sources":["../../src/redux/apiConfig.ts","../../src/redux/module-reducer.ts"],"sourcesContent":["// API configuration helper for Redux slices\n// This allows consuming applications to configure their API clients\n\nexport interface ApiClientConfig {\n // Share modal API methods\n getV1PagesUserList?: (params?: any) => Promise<any>;\n postV1PagesShare?: (data: any) => Promise<any>;\n \n // Header API methods\n getV1Languages?: (params?: any) => Promise<any>;\n \n // Reports title bar API methods\n getV1Company?: (params?: any) => Promise<any>;\n \n // Inventory reports title bar API methods\n getV1InventoryItems?: (params?: any) => Promise<any>;\n getV1WarehouseLocation?: (params?: any) => Promise<any>;\n getV1AssemblyItems?: (params?: any) => Promise<any>;\n getV1BillsOfMaterials?: (params?: any) => Promise<any>;\n}\n\n// Helper function to validate API client configuration\nexport const validateApiClient = (apiClient: ApiClientConfig, requiredMethods: string[]): boolean => {\n for (const method of requiredMethods) {\n if (typeof (apiClient as any)[method] !== 'function') {\n console.warn(`API client missing required method: ${method}`);\n return false;\n }\n }\n return true;\n};\n\n// Predefined method groups for different slices\nexport const API_METHOD_GROUPS = {\n share: ['getV1PagesUserList', 'postV1PagesShare'],\n header: ['getV1Languages'],\n reportsTitleBar: ['getV1Company'],\n inventoryReportsTitleBar: ['getV1InventoryItems', 'getV1WarehouseLocation', 'getV1AssemblyItems', 'getV1BillsOfMaterials'],\n} as const;\n\n// Helper to create a configured API client with authentication\nexport const createConfiguredApiClient = (\n baseApiClient: any,\n getAuthToken: () => any\n): ApiClientConfig => {\n const configuredClient: any = {};\n \n // Wrap each API method to include authentication\n Object.keys(baseApiClient).forEach(methodName => {\n if (typeof baseApiClient[methodName] === 'function') {\n configuredClient[methodName] = async (params: any = {}) => {\n const authToken = getAuthToken();\n return baseApiClient[methodName]({ ...authToken, ...params });\n };\n }\n });\n \n return configuredClient;\n};","/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable unused-imports/no-unused-vars */\nimport { createSlice, SliceCaseReducers, AnyAction, PayloadAction } from \"@reduxjs/toolkit\";\nimport { getErrorMessage } from \"../utils/common\";\n\ninterface SliceConfig<T extends StateSlice> {\n name: string;\n initialState: T;\n actions: Partial<Record<keyof T, ActionGroup<T>>>;\n}\n\n// Utility functions to handle loading and error state\nconst setLoadingState = <T extends StateSlice>(state: T, key: keyof T, isLoading = true) => {\n if (state[key] && typeof state[key] === \"object\") {\n state[key] = { ...state[key], isLoading, isError: false, error: \"\" };\n }\n};\n\nconst setErrorState = <T extends StateSlice>(state: T, key: keyof T, error: string) => {\n if (state[key] && typeof state[key] === \"object\") {\n state[key] = { ...state[key], isLoading: false, isError: true, error };\n }\n};\n\n// **Generic Redux Slice Factory**\nexport const createModuleSlice = <T extends StateSlice>({\n name,\n initialState,\n actions,\n reducers,\n extraReducers\n}: SliceConfig<T>) => {\n return createSlice<T, SliceCaseReducers<T>>({\n name,\n initialState,\n reducers: {\n setPaginationModel: (state, { payload }: PayloadAction<Partial<T[\"paginationModel\"]>>) => {\n if (\"paginationModel\" in state && typeof state.paginationModel === \"object\") {\n state.paginationModel = { ...state.paginationModel, ...payload };\n }\n },\n setOptionsData: (state, { payload }: PayloadAction<{ name: string; value: any }>) => {\n if (\"optionsData\" in state && typeof state.optionsData === \"object\") {\n state.optionsData = { ...state.optionsData, ...payload}\n }\n },\n setStaticOptions: (state, { payload }) => {\n state.staticOptions = {...state.staticOptions, ...payload}\n },\n resetState: () => initialState,\n ...reducers\n },\n extraReducers: (builder) => {\n Object.entries(actions).forEach(([stateKey, actionGroup]) => {\n if (actionGroup) {\n Object.entries(actionGroup).forEach(([actionName, action]) => {\n if (action && \"pending\" in action && \"fulfilled\" in action && \"rejected\" in action) {\n // Handle AsyncThunk Actions\n builder\n .addCase(action.pending, (state) => setLoadingState(state, stateKey as keyof T))\n .addCase(action.fulfilled, (state, { payload }: PayloadAction<any>) => {\n if (state[stateKey as keyof T] && typeof state[stateKey as keyof T] === \"object\") {\n state[stateKey as keyof T] = {\n ...state[stateKey as keyof T],\n isLoading: false,\n ...(payload?.rows ? { rows: payload.rows } : {}),\n ...(payload?.data ? { data: payload.data } : {}),\n ...(payload?.fields ? { fields: payload.fields } : {}),\n ...(payload?.activityLogs ? { activityLogs: payload.activityLogs } : {}),\n ...(payload?.pagination ? { pagination: payload.pagination } : {}),\n };\n if(payload?.pagination) {\n state.paginationModel = { ...state.paginationModel, ...payload.pagination }\n }\n }\n })\n .addCase(action.rejected, (state, { error }: AnyAction) =>{\n\n setErrorState(state, stateKey as keyof T, getErrorMessage(error?.message))\n }\n );\n }\n });\n }\n });\n if (extraReducers) {\n extraReducers(builder);\n }\n },\n \n });\n};\n"],"names":[],"mappings":";;AAyCO,MAAM,4BAA4B,CACvC,eACA,iBACoB;AACpB,QAAM,mBAAwB,CA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AAsB;AAExD,gCAAc,OAAO,UAAqB,gBAAgB,+BAAO,OAAO,CAAC;AAAA,gBAC3E;AAAA,cAAA;AAAA,YAEJ;AAAA,UACF,CAAC;AAAA,QACH;AAAA,MACF,CAAC;AACD,UAAI,eAAe;AACjB,sBAAc,OAAO;AAAA,MACvB;AAAA,IACF;AAAA,EAAA,CAED;AACH;"}
|
|
@@ -4,7 +4,7 @@ const React = require("react");
|
|
|
4
4
|
const material = require("@mui/material");
|
|
5
5
|
const iconsMaterial = require("@mui/icons-material");
|
|
6
6
|
const api = require("./api-D3c7E20L.js");
|
|
7
|
-
const api$1 = require("./api-
|
|
7
|
+
const api$1 = require("./api-CfErA7gR.js");
|
|
8
8
|
const utils_formatText = require("../utils/format-text/index.js");
|
|
9
9
|
const typography = require("./typography-Bqfr1Ksf.js");
|
|
10
10
|
const images = require("../images/index.js");
|
|
@@ -597,4 +597,4 @@ const NotificationMenu = () => {
|
|
|
597
597
|
] });
|
|
598
598
|
};
|
|
599
599
|
exports.NotificationMenu = NotificationMenu;
|
|
600
|
-
//# sourceMappingURL=notification-menu-
|
|
600
|
+
//# sourceMappingURL=notification-menu-B7Se4fO6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-menu-D9NWAvoZ.js","sources":["../../src/components/header/components/notification-menu/notification-menu.tsx"],"sourcesContent":["import React, { useState, useCallback, useRef, useEffect } from 'react'\nimport {\n\tIconButton,\n\tMenu,\n\tMenuItem,\n\tBadge,\n\tBox,\n\tCircularProgress,\n\tAvatar,\n\tListItemText,\n\tListItemAvatar,\n\tAlert,\n\tSkeleton,\n} from '@mui/material'\nimport {\n\tPerson as PersonIcon,\n\tEmail as EmailIcon,\n\tWarning as WarningIcon,\n\tCheckCircle as CheckCircleIcon,\n\tAssignment as AssignmentIcon,\n\tAccountBalance as AccountBalanceIcon,\n\tHourglassEmpty as HourglassEmptyIcon,\n\tCancel as CancelIcon,\n} from '@mui/icons-material'\nimport {\n\tgetV1Notification,\n\tgetV1NotificationMarkAllAsRead,\n\tpatchV1NotificationMarkAsReadId,\n} from '../../../../api-client/api.system-feature/api'\nimport { getErrorMessage, getToken } from '../../../../utils/common'\nimport formatText, { convertToUnderscore, formatLabel } from '../../../../utils/format-text'\nimport Typography from '../../../typography/typography'\nimport images from '../../../../assets/images'\nimport { generateRouteWithId } from '../../../../utils/route-utils'\nimport { PathnameGenerator, PathnameAccounting } from '../../../../constants/pathnames/pathname.accounting'\nimport { ROUTES as RENTALROUTES } from '../../../../constants/pathnames/pathname.rental'\n\nimport { PathnameInventory, PathnameGenerator as PathnameGeneratorInventory } from '../../../../constants/pathnames/pathname.inventory'\n\nimport {\n\tPathnameManufacturing,\n\tPathnameGenerator as PathnameGeneratorManufacuring,\n} from '../../../../constants/pathnames/pathname.manufacturing.ts'\n\nimport {\n\tPathnamePurchase,\n\tPathnameGenerator as PathnameGeneratorPurchase,\n} from '../../../../constants/pathnames/pathname.procurement.ts'\n\nimport { PathnameCrm, PathnameGenerator as PathnameGeneratorCrm } from '../../../../constants/pathnames/pathname.crm.ts'\n\nimport { PathnameRental, PathnameGenerator as PathnameGeneratorRental } from '../../../../constants/pathnames/pathname.rental.ts'\n\nimport { useNavigate } from 'react-router-dom'\nimport { Notification, Tick } from '../../../icons'\nimport Button from '../../../button/button'\nimport { enqueueSnackbar } from 'notistack'\n\nconst getNotificationUrl = (data: any) => {\n\tconst { moduleName = '', moduleId = '', notificationData = {} } = data\n\tconst key = convertToUnderscore(moduleName)\n\n\tconst routeMap: Record<string, () => string> = {\n\t\tsales_invoice: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_SALES_INVOICES), moduleId.toString()),\n\n\t\tasset_transfers: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_ASSET_TRANSFER), moduleId.toString()),\n\n\t\tbudgets: () => generateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_BUDGET), moduleId.toString()),\n\n\t\tcash_expense: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_CASH_EXPENSE), moduleId.toString()),\n\n\t\tcredit_notes: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_CREDIT_NOTE), moduleId.toString()),\n\n\t\tdebit_notes: () => generateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_DEBIT_NOTE), moduleId.toString()),\n\n\t\texpense_reimbursement: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_EXPENSE_REIMBURSEMENT), moduleId.toString()),\n\n\t\tjournal_entries: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_JOURNAL_ENTRY), moduleId.toString()),\n\n\t\tpayment_entries: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_PAYMENT_ENTRY), moduleId.toString()),\n\n\t\tpurchase_invoice: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_PURCHASE_INVOICE), moduleId.toString()),\n\n\t\tstock_transfer: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorInventory(PathnameInventory.VIEW_STOCK_TRANSFER), moduleId.toString()),\n\n\t\tbills_of_materials: () =>\n\t\t\tgenerateRouteWithId(\n\t\t\t\tPathnameGeneratorManufacuring(PathnameManufacturing.VIEW_BILL_OF_MATERIAL),\n\t\t\t\tmoduleId.toString()\n\t\t\t),\n\n\t\tpurchase_agreement: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_AGREEMENT), moduleId.toString()),\n\n\t\tpurchase_orders: () =>\n\t\t\tgenerateRouteWithId(\n\t\t\t\tnotificationData?.data?.is_rental == 1\n\t\t\t\t\t? RENTALROUTES.VIEW\n\t\t\t\t\t: PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_ORDER),\n\t\t\t\tmoduleId.toString()\n\t\t\t),\n\n\t\tpurchase_request: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_ORDER), moduleId.toString()),\n\n\t\tvra: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_VENDOR_RETURNS), moduleId.toString()),\n\n\t\tsales_customer_returns: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_CUSTOMER_RETURNS), moduleId.toString()),\n\n\t\tsales_order: () => generateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_SALES_ORDER), moduleId.toString()),\n\n\t\tquotation: () => generateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_QUOTATION), moduleId.toString()),\n\n\t\trental_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_RENTAL_ORDER), moduleId.toString()),\n\n\t\treplacement_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_RENTAL_ORDER), moduleId.toString()),\n\n\t\trental_agreement: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_AGREEMENT), moduleId.toString()),\n\n\t\tcross_hire_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_CROSS_HIRE_ORDER), moduleId.toString()),\n\n\t\tcross_hire_request: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_CROSS_HIRE_REQUEST), moduleId.toString()),\n\t}\n\n\treturn routeMap[key]?.() || '/dashboard'\n}\n\nconst mainModuleIcons = {\n\trbac: images.user,\n\tdocument: images.document,\n\t'accounts-and-finance': images.accounting,\n\tinventory: images.inventory,\n\tmanufacturing: images.manufacturing,\n\tsales: images.crm,\n\trental: images.rental,\n\tuser: images.user,\n\tpurchase: images.procurement,\n\thrms: images.hrms,\n}\nconst mainModuleBgColors = {\n\trbac: '#F3E5F5',\n\tdocument: '#FFF8E1',\n\t'accounts-and-finance': '#E8F5E8',\n\tinventory: '#E3F2FD',\n\tmanufacturing: '#FFF3E0',\n\tsales: '#F3E5F5',\n\trental: '#E8F5E8',\n\tuser: '#F3E5F5',\n\tpurchase: '#FCE4EC',\n\thrms: '#fcfcfc',\n}\n\nconst NotificationMenu = () => {\n\tconst [anchorEl, setAnchorEl] = useState(null)\n\tconst [notifications, setNotifications] = useState([])\n\tconst [loading, setLoading] = useState(false)\n\tconst [loadingMore, setLoadingMore] = useState(false)\n\tconst [error, setError] = useState(null)\n\tconst [unreadCount, setUnreadCount] = useState(0)\n\tconst [markingAllAsRead, setMarkingAllAsRead] = useState(false)\n\tconst [pagination, setPagination] = useState({\n\t\tskip: 0,\n\t\tlimit: 20,\n\t\ttotalCount: 0,\n\t\thasMore: true,\n\t})\n\n\tconst navigate = useNavigate()\n\n\tconst menuRef = useRef(null)\n\tconst isLoadingMoreRef = useRef(false)\n\tconst open = Boolean(anchorEl)\n\n\t// Transform API notification to display format\n\tconst transformNotification = (apiNotification) => {\n\t\tconst moduleIcons = {\n\t\t\t'accounts-and-finance': <AccountBalanceIcon color=\"primary\" />,\n\t\t\tuser: <PersonIcon color=\"action\" />,\n\t\t\tapproval: <AssignmentIcon color=\"warning\" />,\n\t\t}\n\n\t\tconst getInitials = (performedUser) => {\n\t\t\tif (!performedUser) return null\n\t\t\tconst firstName = performedUser.first_name || ''\n\t\t\tconst lastName = performedUser.last_name || ''\n\t\t\tif (!firstName && !lastName) return null\n\t\t\treturn (firstName.charAt(0) + lastName.charAt(0)).toUpperCase()\n\t\t}\n\n\t\tconst getFullName = (performedUser) => {\n\t\t\tif (!performedUser) return null\n\t\t\tconst firstName = performedUser.first_name || ''\n\t\t\tconst lastName = performedUser.last_name || ''\n\t\t\treturn `${firstName} ${lastName}`.trim() || null\n\t\t}\n\n\t\tconst formatTimestamp = (dateString) => {\n\t\t\tconst date = new Date(dateString)\n\t\t\tconst now = new Date()\n\t\t\tconst diffMs = now - date\n\t\t\tconst diffMins = Math.floor(diffMs / 60000)\n\t\t\tconst diffHours = Math.floor(diffMs / 3600000)\n\t\t\tconst diffDays = Math.floor(diffMs / 86400000)\n\n\t\t\tif (diffMins < 1) return 'Just now'\n\t\t\tif (diffMins < 60) return `${diffMins} minute${diffMins > 1 ? 's' : ''} ago`\n\t\t\tif (diffHours < 24) return `${diffHours} hour${diffHours > 1 ? 's' : ''} ago`\n\t\t\tif (diffDays < 7) return `${diffDays} day${diffDays > 1 ? 's' : ''} ago`\n\t\t\treturn date.toLocaleDateString()\n\t\t}\n\n\t\tconst subData = apiNotification.sub_module_data || {}\n\n\t\treturn {\n\t\t\tid: apiNotification.id,\n\t\t\ttype: apiNotification.action || apiNotification.notification_type || 'info',\n\t\t\ttitle: formatText(apiNotification.title),\n\t\t\tmessage: apiNotification.message,\n\t\t\ttimestamp: formatTimestamp(apiNotification.created_at),\n\t\t\tread: apiNotification.status === 'read',\n\t\t\tavatar: getInitials(apiNotification.performed_user),\n\t\t\tperformedByName: getFullName(apiNotification.performed_user),\n\t\t\tmodule: apiNotification.module,\n\t\t\tsubModule: apiNotification.sub_module,\n\t\t\tsubModuleId: apiNotification.sub_module_id,\n\t\t\tstatus: apiNotification.status,\n\t\t\tseriesNumber: subData.series_number || null,\n\t\t\tdocumentStatus: subData.status || null,\n\t\t\tcustomerName: subData.customer_name || null,\n\t\t\ticon: moduleIcons[apiNotification.module] || moduleIcons[apiNotification.action] || <PersonIcon color=\"action\" />,\n\t\t}\n\t}\n\n\t// Fetch notifications with pagination\n\tconst fetchNotifications = useCallback(async (isLoadMore = false) => {\n\t\t// Prevent multiple simultaneous load more requests\n\t\tif (isLoadMore && isLoadingMoreRef.current) {\n\t\t\treturn\n\t\t}\n\n\t\tif (isLoadMore) {\n\t\t\tisLoadingMoreRef.current = true\n\t\t\tsetLoadingMore(true)\n\t\t} else {\n\t\t\tsetLoading(true)\n\t\t\t// Reset pagination when loading fresh data\n\t\t\tsetPagination((prev) => ({\n\t\t\t\t...prev,\n\t\t\t\tskip: 0,\n\t\t\t\thasMore: true,\n\t\t\t}))\n\t\t}\n\t\tsetError(null)\n\n\t\ttry {\n\t\t\tconst currentSkip = isLoadMore ? pagination.skip : 0\n\t\t\tconst response = await getV1Notification({\n\t\t\t\tskip: currentSkip,\n\t\t\t\tlimit: pagination.limit,\n\t\t\t\t...getToken(),\n\t\t\t})\n\n\t\t\tif (response.success && response.data) {\n\t\t\t\tconst transformedNotifications = response.data.notifications.map(transformNotification)\n\n\t\t\t\tif (isLoadMore) {\n\t\t\t\t\tsetNotifications((prev) => [...prev, ...transformedNotifications])\n\t\t\t\t} else {\n\t\t\t\t\tsetNotifications(transformedNotifications)\n\t\t\t\t}\n\n\t\t\t\t// Update pagination\n\t\t\t\tconst newSkip = currentSkip + response.data.notifications.length\n\t\t\t\tconst hasMore = newSkip < response.data.pagination.totalCount\n\n\t\t\t\tsetPagination((prev) => ({\n\t\t\t\t\t...prev,\n\t\t\t\t\tskip: newSkip,\n\t\t\t\t\ttotalCount: response.data.pagination.totalCount,\n\t\t\t\t\thasMore,\n\t\t\t\t}))\n\n\t\t\t\t// Calculate unread count (assuming 'pending' status means unread)\n\t\t\t\tif (!isLoadMore) {\n\t\t\t\t\tconst unread = response.data.pagination.unreadCount\n\t\t\t\t\tsetUnreadCount(unread)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsetUnreadCount(0)\n\t\t\t\tthrow new Error(response.message || 'Failed to load notifications')\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tsetError('Failed to load notifications')\n\t\t} finally {\n\t\t\tsetLoading(false)\n\t\t\tsetLoadingMore(false)\n\t\t\tif (isLoadMore) {\n\t\t\t\tisLoadingMoreRef.current = false\n\t\t\t}\n\t\t}\n\t}, [pagination.limit, pagination.skip])\n\n\t// Handle scroll for infinite loading\n\tconst handleScroll = useCallback(\n\t\t(event) => {\n\t\t\tconst { scrollTop, scrollHeight, clientHeight } = event.target\n\t\t\tconst isNearBottom = scrollTop + clientHeight >= scrollHeight - 50 // Increased threshold\n\n\t\t\tif (isNearBottom && !isLoadingMoreRef.current && !loading && pagination.hasMore) {\n\t\t\t\tfetchNotifications(true)\n\t\t\t}\n\t\t},\n\t\t[fetchNotifications, loading, pagination.hasMore]\n\t)\n\n\tconst handleClick = (event) => {\n\t\tsetAnchorEl(event.currentTarget)\n\t\tif (notifications.length === 0) {\n\t\t\tfetchNotifications()\n\t\t}\n\t}\n\n\tconst handleClose = () => {\n\t\tsetAnchorEl(null)\n\n\t\t// Don't clear notifications immediately to avoid flickering\n\t\t// They will be refreshed when menu is opened again\n\t}\n\n\tconst handleNotificationClick = async (notificationId) => {\n\t\t// Mark notification as read\n\t\tconst n = notifications.find((n) => {\n\t\t\treturn n.id === notificationId\n\t\t})\n\t\tif (!n) return\n\n\t\thandleClose()\n\n\t\tif (n.status === 'pending') {\n\t\t\tawait patchV1NotificationMarkAsReadId({\n\t\t\t\tid: notificationId,\n\t\t\t\t...getToken(),\n\t\t\t})\n\t\t}\n\n\t\tsetNotifications((prev) => prev.map((n) => (n.id === notificationId ? { ...n, read: true } : n)))\n\t\tsetUnreadCount((prev) => Math.max(0, prev - 1))\n\t\tconst url = getNotificationUrl({\n\t\t\tmoduleName: n.subModule,\n\t\t\tmoduleId: n.subModuleId,\n\t\t\tnotificationData: n,\n\t\t})\n setTimeout(() => {\n navigate(url)\n }, 300)\n\t}\n\n\tconst getNotificationIcon = (notification) => {\n\t\tif (notification.icon) {\n\t\t\treturn notification.icon\n\t\t}\n\n\t\tswitch (notification.type) {\n\t\t\tcase 'approval':\n\t\t\t\treturn <AssignmentIcon color=\"warning\" />\n\t\t\tcase 'user':\n\t\t\t\treturn <PersonIcon color=\"action\" />\n\t\t\tcase 'message':\n\t\t\t\treturn <EmailIcon color=\"primary\" />\n\t\t\tcase 'warning':\n\t\t\t\treturn <WarningIcon color=\"warning\" />\n\t\t\tcase 'success':\n\t\t\t\treturn <CheckCircleIcon color=\"success\" />\n\t\t\tdefault:\n\t\t\t\treturn <PersonIcon color=\"action\" />\n\t\t}\n\t}\n\n\tconst handleMarkAllAsRead = useCallback(async () => {\n\t\tif (markingAllAsRead) return // Prevent multiple calls\n\n\t\tsetMarkingAllAsRead(true)\n\n\t\tif (!unreadCount) {\n\t\t\tenqueueSnackbar('No unread notifications!')\n\t\t\tsetMarkingAllAsRead(false)\n\t\t\treturn\n\t\t}\n\n\t\ttry {\n\t\t\tawait getV1NotificationMarkAllAsRead({ ...getToken() })\n\t\t\t// Update local state immediately for better UX\n\t\t\tsetNotifications((prev) => prev.map((n) => ({ ...n, read: true, status: 'read' })))\n\t\t\tsetUnreadCount(0)\n\t\t} catch (error) {\n\t\t\tconst m = getErrorMessage(error.message)\n\t\t\tenqueueSnackbar(m, { variant: 'error' })\n\t\t} finally {\n\t\t\tsetMarkingAllAsRead(false)\n\t\t}\n\t}, [markingAllAsRead, unreadCount])\n\n\t// Remove the problematic useEffect that was causing extra API calls\n\n useEffect(() => {\n if(!open) {\n setTimeout(() => {\n setNotifications([])\n }, 500)\n }\n }, [open])\n\n\tconst getPerformerLabel = (action: string) => {\n\t\tswitch (action?.toLowerCase()) {\n\t\t\tcase 'approved':\n\t\t\t\treturn 'Approved by'\n\t\t\tcase 'rejected':\n\t\t\tcase 'reject':\n\t\t\t\treturn 'Rejected by'\n\t\t\tdefault:\n\t\t\t\treturn 'Request to'\n\t\t}\n\t}\n\n\tconst getStatusIcon = (action: string) => {\n\t\tswitch (action?.toLowerCase()) {\n\t\t\tcase 'approved':\n\t\t\t\treturn <CheckCircleIcon sx={{ fontSize: '0.9rem', color: 'success.main' }} />\n\t\t\tcase 'rejected':\n\t\t\tcase 'reject':\n\t\t\t\treturn <CancelIcon sx={{ fontSize: '0.9rem', color: 'error.main' }} />\n\t\t\tdefault:\n\t\t\t\treturn <HourglassEmptyIcon sx={{ fontSize: '0.9rem', color: 'warning.main' }} />\n\t\t}\n\t}\n\n\treturn (\n\t\t<Box>\n\t\t\t<IconButton\n\t\t\t\t// size=\"small\"\n\t\t\t\taria-label=\"notifications\"\n\t\t\t\taria-controls={open ? 'notification-menu' : undefined}\n\t\t\t\taria-haspopup=\"true\"\n\t\t\t\taria-expanded={open ? 'true' : undefined}\n\t\t\t\tonClick={handleClick}\n\t\t\t>\n\t\t\t\t<Badge badgeContent={unreadCount} color=\"error\">\n\t\t\t\t\t<Notification fontSize=\"medium\" />\n\t\t\t\t</Badge>\n\t\t\t</IconButton>\n\n\t\t\t<Menu\n\t\t\t\tid=\"notification-menu\"\n\t\t\t\tanchorEl={anchorEl}\n\t\t\t\topen={open}\n\t\t\t\tonClose={handleClose}\n\t\t\t\tref={menuRef}\n\t\t\t\tslotProps={{\n\t\t\t\t\tpaper: {\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\toverflow: 'visible',\n\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\tmaxWidth: 450,\n\t\t\t\t\t\t\tmaxHeight: 520,\n\t\t\t\t\t\t\t'&:before': {\n\t\t\t\t\t\t\t\tcontent: '\"\"',\n\t\t\t\t\t\t\t\tdisplay: 'block',\n\t\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\t\tright: 13,\n\t\t\t\t\t\t\t\twidth: 10,\n\t\t\t\t\t\t\t\theight: 10,\n\t\t\t\t\t\t\t\tbgcolor: 'background.paper',\n\t\t\t\t\t\t\t\ttransform: 'translateY(-50%) rotate(45deg)',\n\t\t\t\t\t\t\t\tzIndex: 0,\n\t\t\t\t\t\t\t\tborder: '1px solid',\n\t\t\t\t\t\t\t\tborderColor: ({ palette }) => palette.grey[300],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t\tsx={{\n\t\t\t\t\t'& .MuiList-root': {\n\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\tmaxHeight: 520,\n\t\t\t\t\t\toverflowY: 'auto',\n\t\t\t\t\t\tpadding: 0,\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t\ttransformOrigin={{ horizontal: 'right', vertical: 'top' }}\n\t\t\t\tanchorOrigin={{ horizontal: 'right', vertical: 'bottom' }}\n\t\t\t\tonScroll={handleScroll}\n\t\t\t>\n\t\t\t\t{/* Header */}\n\t\t\t\t<Box sx={{ px: 2, py: 1, borderBottom: '1px solid #e0e0e0', backgroundColor: '#fafafa' }}>\n\t\t\t\t\t<Typography type=\"h5\" weight=\"bold\" color=\"grey.1000\">\n\t\t\t\t\t\tNotifications\n\t\t\t\t\t</Typography>\n\t\t\t\t\t{unreadCount > 0 && (\n\t\t\t\t\t\t<Box sx={{ display: 'flex', justifyContent: 'space-between', width: '100%', alignItems: 'center' }}>\n\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.800\">\n\t\t\t\t\t\t\t\tYou have {unreadCount} unread notification{unreadCount > 1 ? 's' : ''}\n\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\t\tstartIcon={\n\t\t\t\t\t\t\t\t\tmarkingAllAsRead ? (\n\t\t\t\t\t\t\t\t\t\t<CircularProgress size={15} color=\"inherit\" />\n\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t<Tick sx={{ fontSize: '0.75rem !important' }} color=\"grey.900\" />\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsx={{ p: 0 }}\n\t\t\t\t\t\t\t\tonClick={handleMarkAllAsRead}\n\t\t\t\t\t\t\t\tdisabled={unreadCount <= 0 || markingAllAsRead}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.900\">\n\t\t\t\t\t\t\t\t\tMark all as read\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t)}\n\t\t\t\t</Box>\n\n\t\t\t\t{/* Loading State */}\n\t\t\t\t{loading && notifications.length === 0 && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\n\t\t\t\t{/* Error State */}\n\t\t\t\t{error && (\n\t\t\t\t\t<Box sx={{ p: 2 }}>\n\t\t\t\t\t\t<Alert severity=\"error\">{error}</Alert>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\n\t\t\t\t{/* Notifications List */}\n\t\t\t\t{!loading && !error && notifications.length > 0 && (\n\t\t\t\t\t<Box sx={{ maxHeight: 420, overflowY: 'auto', p: 1 }} onScroll={handleScroll}>\n\t\t\t\t\t\t{notifications.map((notification) => (\n\t\t\t\t\t\t\t<div key={notification.id}>\n\t\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\t\tonClick={() => handleNotificationClick(notification.id)}\n\t\t\t\t\t\t\t\t\tsx={({ palette }) => ({\n\t\t\t\t\t\t\t\t\t\tpy: 1,\n\t\t\t\t\t\t\t\t\t\tpx: 1,\n\t\t\t\t\t\t\t\t\t\tbackgroundColor: !notification.read ? palette.theme.grey[200] : 'transparent',\n\t\t\t\t\t\t\t\t\t\tborder: `1px solid ${palette.grey[200]}`,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: '4px !important',\n\t\t\t\t\t\t\t\t\t\t'&:hover': {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundColor: palette.theme.grey[200],\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\talignItems: 'flex-start',\n\t\t\t\t\t\t\t\t\t\tminHeight: 'auto',\n\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<ListItemAvatar sx={{ minWidth: 48, mt: 0 }}>\n\t\t\t\t\t\t\t\t\t\t{mainModuleIcons?.[notification.module] ? (\n\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\theight: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize: '0.875rem',\n\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: mainModuleBgColors[notification.module] || 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'white',\n\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'& img': {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: '28px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: '28px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\tsrc={mainModuleIcons?.[notification.module]}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.avatar ? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize: '0.875rem',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'white',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.avatar}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Avatar>\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 36,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 36,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: 'grey.100',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'grey.600',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getNotificationIcon(notification)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Avatar>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</ListItemAvatar>\n\t\t\t\t\t\t\t\t\t<ListItemText\n\t\t\t\t\t\t\t\t\t\tsx={{ margin: 0, pr: 1 }}\n\t\t\t\t\t\t\t\t\t\tprimary={\n\t\t\t\t\t\t\t\t\t\t\t// Line 1: title seriesNumber statusIcon\n\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5, flexWrap: 'wrap', mb: 0.25 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s3\" weight=\"bold\" color=\"grey.1000\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.title}\n\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.seriesNumber && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s4\" sx={{ color: 'text.secondary', fontWeight: 500 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.seriesNumber}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t{getStatusIcon(notification.type)}\n\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tsecondary={\n\t\t\t\t\t\t\t\t\t\t\t<Box>\n\t\t\t\t\t\t\t\t\t\t\t\t{/* Line 2: Customer / Vendor label + name */}\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.customerName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.800\" sx={{ display: 'block', mb: 0.25 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography component=\"span\" type=\"s5\" sx={{ fontSize: '0.7rem !important', color: 'text.secondary', mr: 0.5 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.module === 'purchase' ? 'Vendor:' : 'Customer:'}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.customerName}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t{/* Line 3: Approved by {name} · timestamp */}\n\t\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5, flexWrap: 'wrap' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.performedByName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s5\" sx={{ fontSize: '0.7rem !important', color: 'text.secondary' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getPerformerLabel(notification.type)} {notification.performedByName}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.performedByName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ height: 4, width: 4, borderRadius: '100%', backgroundColor: 'grey.400', flexShrink: 0 }} />\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s5\" color=\"primary\" sx={{ fontSize: '0.65rem !important' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.timestamp}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t{!notification.read && (\n\t\t\t\t\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\twidth: 10,\n\t\t\t\t\t\t\t\t\t\t\t\theight: 10,\n\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '50%',\n\t\t\t\t\t\t\t\t\t\t\t\tbackgroundColor: 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\tflexShrink: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tmt: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t))}\n\n\t\t\t\t\t\t{/* Loading More Indicator */}\n\t\t\t\t\t\t{loadingMore && (\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', justifyContent: 'center', py: 2.5, px: 3 }}>\n\t\t\t\t\t\t\t\t<CircularProgress size={20} />\n\t\t\t\t\t\t\t\t<Typography variant=\"body2\" sx={{ ml: 1.5, color: 'text.secondary' }}>\n\t\t\t\t\t\t\t\t\tLoading more...\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{/* End of List Indicator */}\n\t\t\t\t\t\t{!pagination.hasMore && notifications.length > 0 && (\n\t\t\t\t\t\t\t<Box sx={{ textAlign: 'center', py: 1.5, px: 2 }}>\n\t\t\t\t\t\t\t\t<Typography type=\"s3\" color=\"grey.800\" textAlign=\"center\">\n\t\t\t\t\t\t\t\t\tNo more notifications\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\n\t\t\t\t{/* Empty State */}\n\t\t\t\t{!loading && !error && notifications.length === 0 && (\n\t\t\t\t\t<Box sx={{ p: 4, textAlign: 'center' }}>\n\t\t\t\t\t\t<Notification sx={{ fontSize: 56, color: 'text.secondary', mb: 2 }} />\n\t\t\t\t\t\t<Typography type=\"s1\" color=\"grey.800\" sx={{ mb: 1 }} textAlign=\"center\">\n\t\t\t\t\t\t\tNo notifications yet\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t</Menu>\n\t\t</Box>\n\t)\n}\n\nexport { NotificationMenu };\nexport default NotificationMenu\n"],"names":["convertToUnderscore","generateRouteWithId","PathnameGenerator","PathnameAccounting","PathnameGeneratorInventory","PathnameInventory","PathnameGeneratorManufacuring","PathnameManufacturing","PathnameGeneratorPurchase","PathnamePurchase","_a","RENTALROUTES","PathnameGeneratorCrm","PathnameCrm","PathnameGeneratorRental","PathnameRental","images","useState","useNavigate","useRef","jsx","AccountBalanceIcon","PersonIcon","AssignmentIcon","formatText","useCallback","getV1Notification","getToken","n","patchV1NotificationMarkAsReadId","notification","EmailIcon","WarningIcon","CheckCircleIcon","enqueueSnackbar","getV1NotificationMarkAllAsRead","error","getErrorMessage","useEffect","CancelIcon","HourglassEmptyIcon","Box","IconButton","Badge","Notification","jsxs","Menu","Typography","Button","CircularProgress","Tick","Fragment","Skeleton","Alert","MenuItem","ListItemAvatar","Avatar","ListItemText"],"mappings":";;;;;;;;;;;;;;;;;AA0DA,MAAM,qBAAqB,CAAC,SAAc;;AACzC,QAAM,EAAE,aAAa,IAAI,WAAW,IAAI,mBAAmB,CAAA,MAAO;AAClE,QAAM,MAAMA,iBAAAA,oBAAoB,UAAU;AAE1C,QAAM,WAAyC;AAAA,IAC9C,eAAe,MACdC,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,mBAAmB,GAAG,SAAS,UAAU;AAAA,IAEnG,iBAAiB,MAChBF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,mBAAmB,GAAG,SAAS,UAAU;AAAA,IAEnG,SAAS,MAAMF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,WAAW,GAAG,SAAS,UAAU;AAAA,IAEzG,cAAc,MACbF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,iBAAiB,GAAG,SAAS,UAAU;AAAA,IAEjG,cAAc,MACbF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,gBAAgB,GAAG,SAAS,UAAU;AAAA,IAEhG,aAAa,MAAMF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,eAAe,GAAG,SAAS,UAAU;AAAA,IAEjH,uBAAuB,MACtBF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,0BAA0B,GAAG,SAAS,UAAU;AAAA,IAE1G,iBAAiB,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A;AAAA,cAAArB,2BAAAA,IAAC6B,SAAAA,kBAAA,EAAiB,MAAM,GAAA,CAAI;AAAA,cAC5B7B,2BAAAA,IAAC2B,WAAAA,YAAA,EAAW,SAAQ,SAAQ,IAAI,EAAE,IAAI,KAAK,OAAO,oBAAoB,UAAA,kBAAA,CAEtE;AAAA,YAAA,GACD;AAAA,YAIA,CAAC,WAAW,WAAW,cAAc,SAAS,KAC9C3B,2BAAAA,IAACqB,cAAA,EAAI,IAAI,EAAE,WAAW,UAAU,IAAI,KAAK,IAAI,EAAA,GAC5C,UAAArB,2BAAAA,IAAC2B,WAAAA,YAAA,EAAW,MAAK,MAAK,OAAM,YAAW,WAAU,UAAS,UAAA,wBAAA,CAE1D,EAAA,CACD;AAAA,UAAA,GAEF;AAAA,UAIA,CAAC,WAAW,CAAC,SAAS,cAAc,WAAW,KAC/CF,gCAACJ,SAAAA,KAAA,EAAI,IAAI,EAAE,GAAG,GAAG,WAAW,YAC3B,UAAA;AAAA,YAAArB,2BAAAA,IAACwB,aAAAA,cAAA,EAAa,IAAI,EAAE,UAAU,IAAI,OAAO,kBAAkB,IAAI,EAAA,EAAE,CAAG;AAAA,YACpExB,2BAAAA,IAAC2B,WAAAA,YAAA,EAAW,MAAK,MAAK,OAAM,YAAW,IAAI,EAAE,IAAI,EAAA,GAAK,WAAU,UAAS,UAAA,uBAAA,CAEzE;AAAA,UAAA,EAAA,CACD;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEF,GACD;AAEF;;"}
|
|
1
|
+
{"version":3,"file":"notification-menu-B7Se4fO6.js","sources":["../../src/components/header/components/notification-menu/notification-menu.tsx"],"sourcesContent":["import React, { useState, useCallback, useRef, useEffect } from 'react'\nimport {\n\tIconButton,\n\tMenu,\n\tMenuItem,\n\tBadge,\n\tBox,\n\tCircularProgress,\n\tAvatar,\n\tListItemText,\n\tListItemAvatar,\n\tAlert,\n\tSkeleton,\n} from '@mui/material'\nimport {\n\tPerson as PersonIcon,\n\tEmail as EmailIcon,\n\tWarning as WarningIcon,\n\tCheckCircle as CheckCircleIcon,\n\tAssignment as AssignmentIcon,\n\tAccountBalance as AccountBalanceIcon,\n\tHourglassEmpty as HourglassEmptyIcon,\n\tCancel as CancelIcon,\n} from '@mui/icons-material'\nimport {\n\tgetV1Notification,\n\tgetV1NotificationMarkAllAsRead,\n\tpatchV1NotificationMarkAsReadId,\n} from '../../../../api-client/api.system-feature/api'\nimport { getErrorMessage, getToken } from '../../../../utils/common'\nimport formatText, { convertToUnderscore, formatLabel } from '../../../../utils/format-text'\nimport Typography from '../../../typography/typography'\nimport images from '../../../../assets/images'\nimport { generateRouteWithId } from '../../../../utils/route-utils'\nimport { PathnameGenerator, PathnameAccounting } from '../../../../constants/pathnames/pathname.accounting'\nimport { ROUTES as RENTALROUTES } from '../../../../constants/pathnames/pathname.rental'\n\nimport { PathnameInventory, PathnameGenerator as PathnameGeneratorInventory } from '../../../../constants/pathnames/pathname.inventory'\n\nimport {\n\tPathnameManufacturing,\n\tPathnameGenerator as PathnameGeneratorManufacuring,\n} from '../../../../constants/pathnames/pathname.manufacturing.ts'\n\nimport {\n\tPathnamePurchase,\n\tPathnameGenerator as PathnameGeneratorPurchase,\n} from '../../../../constants/pathnames/pathname.procurement.ts'\n\nimport { PathnameCrm, PathnameGenerator as PathnameGeneratorCrm } from '../../../../constants/pathnames/pathname.crm.ts'\n\nimport { PathnameRental, PathnameGenerator as PathnameGeneratorRental } from '../../../../constants/pathnames/pathname.rental.ts'\n\nimport { useNavigate } from 'react-router-dom'\nimport { Notification, Tick } from '../../../icons'\nimport Button from '../../../button/button'\nimport { enqueueSnackbar } from 'notistack'\n\nconst getNotificationUrl = (data: any) => {\n\tconst { moduleName = '', moduleId = '', notificationData = {} } = data\n\tconst key = convertToUnderscore(moduleName)\n\n\tconst routeMap: Record<string, () => string> = {\n\t\tsales_invoice: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_SALES_INVOICES), moduleId.toString()),\n\n\t\tasset_transfers: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_ASSET_TRANSFER), moduleId.toString()),\n\n\t\tbudgets: () => generateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_BUDGET), moduleId.toString()),\n\n\t\tcash_expense: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_CASH_EXPENSE), moduleId.toString()),\n\n\t\tcredit_notes: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_CREDIT_NOTE), moduleId.toString()),\n\n\t\tdebit_notes: () => generateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_DEBIT_NOTE), moduleId.toString()),\n\n\t\texpense_reimbursement: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_EXPENSE_REIMBURSEMENT), moduleId.toString()),\n\n\t\tjournal_entries: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_JOURNAL_ENTRY), moduleId.toString()),\n\n\t\tpayment_entries: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_PAYMENT_ENTRY), moduleId.toString()),\n\n\t\tpurchase_invoice: () =>\n\t\t\tgenerateRouteWithId(PathnameGenerator(PathnameAccounting.VIEW_PURCHASE_INVOICE), moduleId.toString()),\n\n\t\tstock_transfer: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorInventory(PathnameInventory.VIEW_STOCK_TRANSFER), moduleId.toString()),\n\n\t\tbills_of_materials: () =>\n\t\t\tgenerateRouteWithId(\n\t\t\t\tPathnameGeneratorManufacuring(PathnameManufacturing.VIEW_BILL_OF_MATERIAL),\n\t\t\t\tmoduleId.toString()\n\t\t\t),\n\n\t\tpurchase_agreement: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_AGREEMENT), moduleId.toString()),\n\n\t\tpurchase_orders: () =>\n\t\t\tgenerateRouteWithId(\n\t\t\t\tnotificationData?.data?.is_rental == 1\n\t\t\t\t\t? RENTALROUTES.VIEW\n\t\t\t\t\t: PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_ORDER),\n\t\t\t\tmoduleId.toString()\n\t\t\t),\n\n\t\tpurchase_request: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_PURCHASE_ORDER), moduleId.toString()),\n\n\t\tvra: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorPurchase(PathnamePurchase.VIEW_VENDOR_RETURNS), moduleId.toString()),\n\n\t\tsales_customer_returns: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_CUSTOMER_RETURNS), moduleId.toString()),\n\n\t\tsales_order: () => generateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_SALES_ORDER), moduleId.toString()),\n\n\t\tquotation: () => generateRouteWithId(PathnameGeneratorCrm(PathnameCrm.VIEW_QUOTATION), moduleId.toString()),\n\n\t\trental_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_RENTAL_ORDER), moduleId.toString()),\n\n\t\treplacement_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_RENTAL_ORDER), moduleId.toString()),\n\n\t\trental_agreement: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_AGREEMENT), moduleId.toString()),\n\n\t\tcross_hire_order: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_CROSS_HIRE_ORDER), moduleId.toString()),\n\n\t\tcross_hire_request: () =>\n\t\t\tgenerateRouteWithId(PathnameGeneratorRental(PathnameRental.VIEW_CROSS_HIRE_REQUEST), moduleId.toString()),\n\t}\n\n\treturn routeMap[key]?.() || '/dashboard'\n}\n\nconst mainModuleIcons = {\n\trbac: images.user,\n\tdocument: images.document,\n\t'accounts-and-finance': images.accounting,\n\tinventory: images.inventory,\n\tmanufacturing: images.manufacturing,\n\tsales: images.crm,\n\trental: images.rental,\n\tuser: images.user,\n\tpurchase: images.procurement,\n\thrms: images.hrms,\n}\nconst mainModuleBgColors = {\n\trbac: '#F3E5F5',\n\tdocument: '#FFF8E1',\n\t'accounts-and-finance': '#E8F5E8',\n\tinventory: '#E3F2FD',\n\tmanufacturing: '#FFF3E0',\n\tsales: '#F3E5F5',\n\trental: '#E8F5E8',\n\tuser: '#F3E5F5',\n\tpurchase: '#FCE4EC',\n\thrms: '#fcfcfc',\n}\n\nconst NotificationMenu = () => {\n\tconst [anchorEl, setAnchorEl] = useState(null)\n\tconst [notifications, setNotifications] = useState([])\n\tconst [loading, setLoading] = useState(false)\n\tconst [loadingMore, setLoadingMore] = useState(false)\n\tconst [error, setError] = useState(null)\n\tconst [unreadCount, setUnreadCount] = useState(0)\n\tconst [markingAllAsRead, setMarkingAllAsRead] = useState(false)\n\tconst [pagination, setPagination] = useState({\n\t\tskip: 0,\n\t\tlimit: 20,\n\t\ttotalCount: 0,\n\t\thasMore: true,\n\t})\n\n\tconst navigate = useNavigate()\n\n\tconst menuRef = useRef(null)\n\tconst isLoadingMoreRef = useRef(false)\n\tconst open = Boolean(anchorEl)\n\n\t// Transform API notification to display format\n\tconst transformNotification = (apiNotification) => {\n\t\tconst moduleIcons = {\n\t\t\t'accounts-and-finance': <AccountBalanceIcon color=\"primary\" />,\n\t\t\tuser: <PersonIcon color=\"action\" />,\n\t\t\tapproval: <AssignmentIcon color=\"warning\" />,\n\t\t}\n\n\t\tconst getInitials = (performedUser) => {\n\t\t\tif (!performedUser) return null\n\t\t\tconst firstName = performedUser.first_name || ''\n\t\t\tconst lastName = performedUser.last_name || ''\n\t\t\tif (!firstName && !lastName) return null\n\t\t\treturn (firstName.charAt(0) + lastName.charAt(0)).toUpperCase()\n\t\t}\n\n\t\tconst getFullName = (performedUser) => {\n\t\t\tif (!performedUser) return null\n\t\t\tconst firstName = performedUser.first_name || ''\n\t\t\tconst lastName = performedUser.last_name || ''\n\t\t\treturn `${firstName} ${lastName}`.trim() || null\n\t\t}\n\n\t\tconst formatTimestamp = (dateString) => {\n\t\t\tconst date = new Date(dateString)\n\t\t\tconst now = new Date()\n\t\t\tconst diffMs = now - date\n\t\t\tconst diffMins = Math.floor(diffMs / 60000)\n\t\t\tconst diffHours = Math.floor(diffMs / 3600000)\n\t\t\tconst diffDays = Math.floor(diffMs / 86400000)\n\n\t\t\tif (diffMins < 1) return 'Just now'\n\t\t\tif (diffMins < 60) return `${diffMins} minute${diffMins > 1 ? 's' : ''} ago`\n\t\t\tif (diffHours < 24) return `${diffHours} hour${diffHours > 1 ? 's' : ''} ago`\n\t\t\tif (diffDays < 7) return `${diffDays} day${diffDays > 1 ? 's' : ''} ago`\n\t\t\treturn date.toLocaleDateString()\n\t\t}\n\n\t\tconst subData = apiNotification.sub_module_data || {}\n\n\t\treturn {\n\t\t\tid: apiNotification.id,\n\t\t\ttype: apiNotification.action || apiNotification.notification_type || 'info',\n\t\t\ttitle: formatText(apiNotification.title),\n\t\t\tmessage: apiNotification.message,\n\t\t\ttimestamp: formatTimestamp(apiNotification.created_at),\n\t\t\tread: apiNotification.status === 'read',\n\t\t\tavatar: getInitials(apiNotification.performed_user),\n\t\t\tperformedByName: getFullName(apiNotification.performed_user),\n\t\t\tmodule: apiNotification.module,\n\t\t\tsubModule: apiNotification.sub_module,\n\t\t\tsubModuleId: apiNotification.sub_module_id,\n\t\t\tstatus: apiNotification.status,\n\t\t\tseriesNumber: subData.series_number || null,\n\t\t\tdocumentStatus: subData.status || null,\n\t\t\tcustomerName: subData.customer_name || null,\n\t\t\ticon: moduleIcons[apiNotification.module] || moduleIcons[apiNotification.action] || <PersonIcon color=\"action\" />,\n\t\t}\n\t}\n\n\t// Fetch notifications with pagination\n\tconst fetchNotifications = useCallback(async (isLoadMore = false) => {\n\t\t// Prevent multiple simultaneous load more requests\n\t\tif (isLoadMore && isLoadingMoreRef.current) {\n\t\t\treturn\n\t\t}\n\n\t\tif (isLoadMore) {\n\t\t\tisLoadingMoreRef.current = true\n\t\t\tsetLoadingMore(true)\n\t\t} else {\n\t\t\tsetLoading(true)\n\t\t\t// Reset pagination when loading fresh data\n\t\t\tsetPagination((prev) => ({\n\t\t\t\t...prev,\n\t\t\t\tskip: 0,\n\t\t\t\thasMore: true,\n\t\t\t}))\n\t\t}\n\t\tsetError(null)\n\n\t\ttry {\n\t\t\tconst currentSkip = isLoadMore ? pagination.skip : 0\n\t\t\tconst response = await getV1Notification({\n\t\t\t\tskip: currentSkip,\n\t\t\t\tlimit: pagination.limit,\n\t\t\t\t...getToken(),\n\t\t\t})\n\n\t\t\tif (response.success && response.data) {\n\t\t\t\tconst transformedNotifications = response.data.notifications.map(transformNotification)\n\n\t\t\t\tif (isLoadMore) {\n\t\t\t\t\tsetNotifications((prev) => [...prev, ...transformedNotifications])\n\t\t\t\t} else {\n\t\t\t\t\tsetNotifications(transformedNotifications)\n\t\t\t\t}\n\n\t\t\t\t// Update pagination\n\t\t\t\tconst newSkip = currentSkip + response.data.notifications.length\n\t\t\t\tconst hasMore = newSkip < response.data.pagination.totalCount\n\n\t\t\t\tsetPagination((prev) => ({\n\t\t\t\t\t...prev,\n\t\t\t\t\tskip: newSkip,\n\t\t\t\t\ttotalCount: response.data.pagination.totalCount,\n\t\t\t\t\thasMore,\n\t\t\t\t}))\n\n\t\t\t\t// Calculate unread count (assuming 'pending' status means unread)\n\t\t\t\tif (!isLoadMore) {\n\t\t\t\t\tconst unread = response.data.pagination.unreadCount\n\t\t\t\t\tsetUnreadCount(unread)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsetUnreadCount(0)\n\t\t\t\tthrow new Error(response.message || 'Failed to load notifications')\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tsetError('Failed to load notifications')\n\t\t} finally {\n\t\t\tsetLoading(false)\n\t\t\tsetLoadingMore(false)\n\t\t\tif (isLoadMore) {\n\t\t\t\tisLoadingMoreRef.current = false\n\t\t\t}\n\t\t}\n\t}, [pagination.limit, pagination.skip])\n\n\t// Handle scroll for infinite loading\n\tconst handleScroll = useCallback(\n\t\t(event) => {\n\t\t\tconst { scrollTop, scrollHeight, clientHeight } = event.target\n\t\t\tconst isNearBottom = scrollTop + clientHeight >= scrollHeight - 50 // Increased threshold\n\n\t\t\tif (isNearBottom && !isLoadingMoreRef.current && !loading && pagination.hasMore) {\n\t\t\t\tfetchNotifications(true)\n\t\t\t}\n\t\t},\n\t\t[fetchNotifications, loading, pagination.hasMore]\n\t)\n\n\tconst handleClick = (event) => {\n\t\tsetAnchorEl(event.currentTarget)\n\t\tif (notifications.length === 0) {\n\t\t\tfetchNotifications()\n\t\t}\n\t}\n\n\tconst handleClose = () => {\n\t\tsetAnchorEl(null)\n\n\t\t// Don't clear notifications immediately to avoid flickering\n\t\t// They will be refreshed when menu is opened again\n\t}\n\n\tconst handleNotificationClick = async (notificationId) => {\n\t\t// Mark notification as read\n\t\tconst n = notifications.find((n) => {\n\t\t\treturn n.id === notificationId\n\t\t})\n\t\tif (!n) return\n\n\t\thandleClose()\n\n\t\tif (n.status === 'pending') {\n\t\t\tawait patchV1NotificationMarkAsReadId({\n\t\t\t\tid: notificationId,\n\t\t\t\t...getToken(),\n\t\t\t})\n\t\t}\n\n\t\tsetNotifications((prev) => prev.map((n) => (n.id === notificationId ? { ...n, read: true } : n)))\n\t\tsetUnreadCount((prev) => Math.max(0, prev - 1))\n\t\tconst url = getNotificationUrl({\n\t\t\tmoduleName: n.subModule,\n\t\t\tmoduleId: n.subModuleId,\n\t\t\tnotificationData: n,\n\t\t})\n setTimeout(() => {\n navigate(url)\n }, 300)\n\t}\n\n\tconst getNotificationIcon = (notification) => {\n\t\tif (notification.icon) {\n\t\t\treturn notification.icon\n\t\t}\n\n\t\tswitch (notification.type) {\n\t\t\tcase 'approval':\n\t\t\t\treturn <AssignmentIcon color=\"warning\" />\n\t\t\tcase 'user':\n\t\t\t\treturn <PersonIcon color=\"action\" />\n\t\t\tcase 'message':\n\t\t\t\treturn <EmailIcon color=\"primary\" />\n\t\t\tcase 'warning':\n\t\t\t\treturn <WarningIcon color=\"warning\" />\n\t\t\tcase 'success':\n\t\t\t\treturn <CheckCircleIcon color=\"success\" />\n\t\t\tdefault:\n\t\t\t\treturn <PersonIcon color=\"action\" />\n\t\t}\n\t}\n\n\tconst handleMarkAllAsRead = useCallback(async () => {\n\t\tif (markingAllAsRead) return // Prevent multiple calls\n\n\t\tsetMarkingAllAsRead(true)\n\n\t\tif (!unreadCount) {\n\t\t\tenqueueSnackbar('No unread notifications!')\n\t\t\tsetMarkingAllAsRead(false)\n\t\t\treturn\n\t\t}\n\n\t\ttry {\n\t\t\tawait getV1NotificationMarkAllAsRead({ ...getToken() })\n\t\t\t// Update local state immediately for better UX\n\t\t\tsetNotifications((prev) => prev.map((n) => ({ ...n, read: true, status: 'read' })))\n\t\t\tsetUnreadCount(0)\n\t\t} catch (error) {\n\t\t\tconst m = getErrorMessage(error.message)\n\t\t\tenqueueSnackbar(m, { variant: 'error' })\n\t\t} finally {\n\t\t\tsetMarkingAllAsRead(false)\n\t\t}\n\t}, [markingAllAsRead, unreadCount])\n\n\t// Remove the problematic useEffect that was causing extra API calls\n\n useEffect(() => {\n if(!open) {\n setTimeout(() => {\n setNotifications([])\n }, 500)\n }\n }, [open])\n\n\tconst getPerformerLabel = (action: string) => {\n\t\tswitch (action?.toLowerCase()) {\n\t\t\tcase 'approved':\n\t\t\t\treturn 'Approved by'\n\t\t\tcase 'rejected':\n\t\t\tcase 'reject':\n\t\t\t\treturn 'Rejected by'\n\t\t\tdefault:\n\t\t\t\treturn 'Request to'\n\t\t}\n\t}\n\n\tconst getStatusIcon = (action: string) => {\n\t\tswitch (action?.toLowerCase()) {\n\t\t\tcase 'approved':\n\t\t\t\treturn <CheckCircleIcon sx={{ fontSize: '0.9rem', color: 'success.main' }} />\n\t\t\tcase 'rejected':\n\t\t\tcase 'reject':\n\t\t\t\treturn <CancelIcon sx={{ fontSize: '0.9rem', color: 'error.main' }} />\n\t\t\tdefault:\n\t\t\t\treturn <HourglassEmptyIcon sx={{ fontSize: '0.9rem', color: 'warning.main' }} />\n\t\t}\n\t}\n\n\treturn (\n\t\t<Box>\n\t\t\t<IconButton\n\t\t\t\t// size=\"small\"\n\t\t\t\taria-label=\"notifications\"\n\t\t\t\taria-controls={open ? 'notification-menu' : undefined}\n\t\t\t\taria-haspopup=\"true\"\n\t\t\t\taria-expanded={open ? 'true' : undefined}\n\t\t\t\tonClick={handleClick}\n\t\t\t>\n\t\t\t\t<Badge badgeContent={unreadCount} color=\"error\">\n\t\t\t\t\t<Notification fontSize=\"medium\" />\n\t\t\t\t</Badge>\n\t\t\t</IconButton>\n\n\t\t\t<Menu\n\t\t\t\tid=\"notification-menu\"\n\t\t\t\tanchorEl={anchorEl}\n\t\t\t\topen={open}\n\t\t\t\tonClose={handleClose}\n\t\t\t\tref={menuRef}\n\t\t\t\tslotProps={{\n\t\t\t\t\tpaper: {\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\toverflow: 'visible',\n\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\tmaxWidth: 450,\n\t\t\t\t\t\t\tmaxHeight: 520,\n\t\t\t\t\t\t\t'&:before': {\n\t\t\t\t\t\t\t\tcontent: '\"\"',\n\t\t\t\t\t\t\t\tdisplay: 'block',\n\t\t\t\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\t\tright: 13,\n\t\t\t\t\t\t\t\twidth: 10,\n\t\t\t\t\t\t\t\theight: 10,\n\t\t\t\t\t\t\t\tbgcolor: 'background.paper',\n\t\t\t\t\t\t\t\ttransform: 'translateY(-50%) rotate(45deg)',\n\t\t\t\t\t\t\t\tzIndex: 0,\n\t\t\t\t\t\t\t\tborder: '1px solid',\n\t\t\t\t\t\t\t\tborderColor: ({ palette }) => palette.grey[300],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t\tsx={{\n\t\t\t\t\t'& .MuiList-root': {\n\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\tmaxHeight: 520,\n\t\t\t\t\t\toverflowY: 'auto',\n\t\t\t\t\t\tpadding: 0,\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t\ttransformOrigin={{ horizontal: 'right', vertical: 'top' }}\n\t\t\t\tanchorOrigin={{ horizontal: 'right', vertical: 'bottom' }}\n\t\t\t\tonScroll={handleScroll}\n\t\t\t>\n\t\t\t\t{/* Header */}\n\t\t\t\t<Box sx={{ px: 2, py: 1, borderBottom: '1px solid #e0e0e0', backgroundColor: '#fafafa' }}>\n\t\t\t\t\t<Typography type=\"h5\" weight=\"bold\" color=\"grey.1000\">\n\t\t\t\t\t\tNotifications\n\t\t\t\t\t</Typography>\n\t\t\t\t\t{unreadCount > 0 && (\n\t\t\t\t\t\t<Box sx={{ display: 'flex', justifyContent: 'space-between', width: '100%', alignItems: 'center' }}>\n\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.800\">\n\t\t\t\t\t\t\t\tYou have {unreadCount} unread notification{unreadCount > 1 ? 's' : ''}\n\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\t\tstartIcon={\n\t\t\t\t\t\t\t\t\tmarkingAllAsRead ? (\n\t\t\t\t\t\t\t\t\t\t<CircularProgress size={15} color=\"inherit\" />\n\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t<Tick sx={{ fontSize: '0.75rem !important' }} color=\"grey.900\" />\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsx={{ p: 0 }}\n\t\t\t\t\t\t\t\tonClick={handleMarkAllAsRead}\n\t\t\t\t\t\t\t\tdisabled={unreadCount <= 0 || markingAllAsRead}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.900\">\n\t\t\t\t\t\t\t\t\tMark all as read\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t)}\n\t\t\t\t</Box>\n\n\t\t\t\t{/* Loading State */}\n\t\t\t\t{loading && notifications.length === 0 && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflexDirection: 'column',\n\t\t\t\t\t\t\t\tgap: 1,\n\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\tminWidth: 400,\n\t\t\t\t\t\t\t\tp: 1,\n\t\t\t\t\t\t\t\tm: 1,\n\t\t\t\t\t\t\t\tbackgroundColor: 'grey.200',\n\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', gap: 1 }}>\n\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={40} height={40} />\n\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', flexDirection: 'column', gap: 0.5 }}>\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={25} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={150} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t\t<Skeleton variant=\"rounded\" width={360} height={11} />\n\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t</Box>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\n\t\t\t\t{/* Error State */}\n\t\t\t\t{error && (\n\t\t\t\t\t<Box sx={{ p: 2 }}>\n\t\t\t\t\t\t<Alert severity=\"error\">{error}</Alert>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\n\t\t\t\t{/* Notifications List */}\n\t\t\t\t{!loading && !error && notifications.length > 0 && (\n\t\t\t\t\t<Box sx={{ maxHeight: 420, overflowY: 'auto', p: 1 }} onScroll={handleScroll}>\n\t\t\t\t\t\t{notifications.map((notification) => (\n\t\t\t\t\t\t\t<div key={notification.id}>\n\t\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\t\tonClick={() => handleNotificationClick(notification.id)}\n\t\t\t\t\t\t\t\t\tsx={({ palette }) => ({\n\t\t\t\t\t\t\t\t\t\tpy: 1,\n\t\t\t\t\t\t\t\t\t\tpx: 1,\n\t\t\t\t\t\t\t\t\t\tbackgroundColor: !notification.read ? palette.theme.grey[200] : 'transparent',\n\t\t\t\t\t\t\t\t\t\tborder: `1px solid ${palette.grey[200]}`,\n\t\t\t\t\t\t\t\t\t\tmarginBottom: '4px !important',\n\t\t\t\t\t\t\t\t\t\t'&:hover': {\n\t\t\t\t\t\t\t\t\t\t\tbackgroundColor: palette.theme.grey[200],\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\talignItems: 'flex-start',\n\t\t\t\t\t\t\t\t\t\tminHeight: 'auto',\n\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<ListItemAvatar sx={{ minWidth: 48, mt: 0 }}>\n\t\t\t\t\t\t\t\t\t\t{mainModuleIcons?.[notification.module] ? (\n\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\theight: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize: '0.875rem',\n\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: mainModuleBgColors[notification.module] || 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'white',\n\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'& img': {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: '28px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: '28px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tobjectFit: 'contain',\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\tsrc={mainModuleIcons?.[notification.module]}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.avatar ? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize: '0.875rem',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'white',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.avatar}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Avatar>\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Avatar\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 36,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 36,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbgcolor: 'grey.100',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: 'grey.600',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '8px',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: '0 2px 8px rgba(0,0,0,0.1)',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getNotificationIcon(notification)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Avatar>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</ListItemAvatar>\n\t\t\t\t\t\t\t\t\t<ListItemText\n\t\t\t\t\t\t\t\t\t\tsx={{ margin: 0, pr: 1 }}\n\t\t\t\t\t\t\t\t\t\tprimary={\n\t\t\t\t\t\t\t\t\t\t\t// Line 1: title seriesNumber statusIcon\n\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5, flexWrap: 'wrap', mb: 0.25 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s3\" weight=\"bold\" color=\"grey.1000\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.title}\n\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.seriesNumber && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s4\" sx={{ color: 'text.secondary', fontWeight: 500 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.seriesNumber}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t{getStatusIcon(notification.type)}\n\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tsecondary={\n\t\t\t\t\t\t\t\t\t\t\t<Box>\n\t\t\t\t\t\t\t\t\t\t\t\t{/* Line 2: Customer / Vendor label + name */}\n\t\t\t\t\t\t\t\t\t\t\t\t{notification.customerName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s4\" color=\"grey.800\" sx={{ display: 'block', mb: 0.25 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography component=\"span\" type=\"s5\" sx={{ fontSize: '0.7rem !important', color: 'text.secondary', mr: 0.5 }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.module === 'purchase' ? 'Vendor:' : 'Customer:'}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.customerName}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t{/* Line 3: Approved by {name} · timestamp */}\n\t\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5, flexWrap: 'wrap' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.performedByName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s5\" sx={{ fontSize: '0.7rem !important', color: 'text.secondary' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getPerformerLabel(notification.type)} {notification.performedByName}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.performedByName && (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Box sx={{ height: 4, width: 4, borderRadius: '100%', backgroundColor: 'grey.400', flexShrink: 0 }} />\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Typography type=\"s5\" color=\"primary\" sx={{ fontSize: '0.65rem !important' }}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{notification.timestamp}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t{!notification.read && (\n\t\t\t\t\t\t\t\t\t\t<Box\n\t\t\t\t\t\t\t\t\t\t\tsx={{\n\t\t\t\t\t\t\t\t\t\t\t\twidth: 10,\n\t\t\t\t\t\t\t\t\t\t\t\theight: 10,\n\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: '50%',\n\t\t\t\t\t\t\t\t\t\t\t\tbackgroundColor: 'primary.main',\n\t\t\t\t\t\t\t\t\t\t\t\tflexShrink: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tmt: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t))}\n\n\t\t\t\t\t\t{/* Loading More Indicator */}\n\t\t\t\t\t\t{loadingMore && (\n\t\t\t\t\t\t\t<Box sx={{ display: 'flex', justifyContent: 'center', py: 2.5, px: 3 }}>\n\t\t\t\t\t\t\t\t<CircularProgress size={20} />\n\t\t\t\t\t\t\t\t<Typography variant=\"body2\" sx={{ ml: 1.5, color: 'text.secondary' }}>\n\t\t\t\t\t\t\t\t\tLoading more...\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{/* End of List Indicator */}\n\t\t\t\t\t\t{!pagination.hasMore && notifications.length > 0 && (\n\t\t\t\t\t\t\t<Box sx={{ textAlign: 'center', py: 1.5, px: 2 }}>\n\t\t\t\t\t\t\t\t<Typography type=\"s3\" color=\"grey.800\" textAlign=\"center\">\n\t\t\t\t\t\t\t\t\tNo more notifications\n\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t</Box>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\n\t\t\t\t{/* Empty State */}\n\t\t\t\t{!loading && !error && notifications.length === 0 && (\n\t\t\t\t\t<Box sx={{ p: 4, textAlign: 'center' }}>\n\t\t\t\t\t\t<Notification sx={{ fontSize: 56, color: 'text.secondary', mb: 2 }} />\n\t\t\t\t\t\t<Typography type=\"s1\" color=\"grey.800\" sx={{ mb: 1 }} textAlign=\"center\">\n\t\t\t\t\t\t\tNo notifications yet\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t</Menu>\n\t\t</Box>\n\t)\n}\n\nexport { NotificationMenu };\nexport default NotificationMenu\n"],"names":["convertToUnderscore","generateRouteWithId","PathnameGenerator","PathnameAccounting","PathnameGeneratorInventory","PathnameInventory","PathnameGeneratorManufacuring","PathnameManufacturing","PathnameGeneratorPurchase","PathnamePurchase","_a","RENTALROUTES","PathnameGeneratorCrm","PathnameCrm","PathnameGeneratorRental","PathnameRental","images","useState","useNavigate","useRef","jsx","AccountBalanceIcon","PersonIcon","AssignmentIcon","formatText","useCallback","getV1Notification","getToken","n","patchV1NotificationMarkAsReadId","notification","EmailIcon","WarningIcon","CheckCircleIcon","enqueueSnackbar","getV1NotificationMarkAllAsRead","error","getErrorMessage","useEffect","CancelIcon","HourglassEmptyIcon","Box","IconButton","Badge","Notification","jsxs","Menu","Typography","Button","CircularProgress","Tick","Fragment","Skeleton","Alert","MenuItem","ListItemAvatar","Avatar","ListItemText"],"mappings":";;;;;;;;;;;;;;;;;AA0DA,MAAM,qBAAqB,CAAC,SAAc;;AACzC,QAAM,EAAE,aAAa,IAAI,WAAW,IAAI,mBAAmB,CAAA,MAAO;AAClE,QAAM,MAAMA,iBAAAA,oBAAoB,UAAU;AAE1C,QAAM,WAAyC;AAAA,IAC9C,eAAe,MACdC,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,mBAAmB,GAAG,SAAS,UAAU;AAAA,IAEnG,iBAAiB,MAChBF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,mBAAmB,GAAG,SAAS,UAAU;AAAA,IAEnG,SAAS,MAAMF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,WAAW,GAAG,SAAS,UAAU;AAAA,IAEzG,cAAc,MACbF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,iBAAiB,GAAG,SAAS,UAAU;AAAA,IAEjG,cAAc,MACbF,iBAAAA,oBAAoBC,oCAAkBC,gBAAAA,mBAAmB,gBAAgB,GAAG,SAAS,UAAU;AAAA,IAEhG,aAAa,MAAMF,i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|
3
3
|
import { Box, IconButton, Badge, Menu, CircularProgress, Skeleton, Alert, MenuItem, ListItemAvatar, Avatar, ListItemText } from "@mui/material";
|
|
4
4
|
import { Person, CheckCircle, Warning, Email, Assignment, HourglassEmpty, Cancel, AccountBalance } from "@mui/icons-material";
|
|
5
|
-
import {
|
|
6
|
-
import { ab as getToken, W as getErrorMessage } from "./api-
|
|
5
|
+
import { l as getV1Notification, m as getV1NotificationMarkAllAsRead, n as patchV1NotificationMarkAsReadId } from "./api-C1kYZQ6G.esm.js";
|
|
6
|
+
import { ab as getToken, W as getErrorMessage } from "./api-D-Ups140.esm.js";
|
|
7
7
|
import formatText, { convertToUnderscore } from "../utils/format-text/index.esm.js";
|
|
8
8
|
import { T as Typography } from "./typography-CG_A0iOJ.esm.js";
|
|
9
9
|
import images from "../images/index.esm.js";
|
|
@@ -598,4 +598,4 @@ const NotificationMenu = () => {
|
|
|
598
598
|
export {
|
|
599
599
|
NotificationMenu as N
|
|
600
600
|
};
|
|
601
|
-
//# sourceMappingURL=notification-menu-
|
|
601
|
+
//# sourceMappingURL=notification-menu-BNUazD23.esm.js.map
|