@erpsquad/common 1.11.22 → 1.11.23

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.
Files changed (673) hide show
  1. package/dist/api-client/index.esm.js +1 -1
  2. package/dist/api-client/index.js +1 -1
  3. package/dist/chunks/{DonutChart-C2Ery9_3.js → DonutChart-BO3Tcrqt.js} +2 -2
  4. package/dist/chunks/DonutChart-BO3Tcrqt.js.map +1 -0
  5. package/dist/chunks/{DonutChart-Clmcka3j.esm.js → DonutChart-DlH0dxzI.esm.js} +2 -2
  6. package/dist/chunks/DonutChart-DlH0dxzI.esm.js.map +1 -0
  7. package/dist/chunks/{DynamicDependentField-sz_Hr-cK.js → DynamicDependentField-DSDY70xk.js} +2 -2
  8. package/dist/chunks/{DynamicDependentField-sz_Hr-cK.js.map → DynamicDependentField-DSDY70xk.js.map} +1 -1
  9. package/dist/chunks/{DynamicDependentField-CG-EXkGN.esm.js → DynamicDependentField-DlpQnlDl.esm.js} +2 -2
  10. package/dist/chunks/{DynamicDependentField-CG-EXkGN.esm.js.map → DynamicDependentField-DlpQnlDl.esm.js.map} +1 -1
  11. package/dist/chunks/{ERPUIProvider-nseRtCYI.esm.js → ERPUIProvider-BoLZgYzQ.esm.js} +3 -3
  12. package/dist/chunks/{ERPUIProvider-nseRtCYI.esm.js.map → ERPUIProvider-BoLZgYzQ.esm.js.map} +1 -1
  13. package/dist/chunks/{ERPUIProvider-Cs9focbX.js → ERPUIProvider-BobdVP78.js} +3 -3
  14. package/dist/chunks/{ERPUIProvider-Cs9focbX.js.map → ERPUIProvider-BobdVP78.js.map} +1 -1
  15. package/dist/chunks/{FORMS-D7COXybc.esm.js → FORMS-CI-zqMWA.esm.js} +7 -7
  16. package/dist/chunks/{FORMS-D7COXybc.esm.js.map → FORMS-CI-zqMWA.esm.js.map} +1 -1
  17. package/dist/chunks/{FORMS-BiDIsq4x.js → FORMS-CTBBgZK6.js} +7 -7
  18. package/dist/chunks/{FORMS-BiDIsq4x.js.map → FORMS-CTBBgZK6.js.map} +1 -1
  19. package/dist/chunks/{FlexibleReduxExample-C9wtuevN.js → FlexibleReduxExample-C_HaMjPt.js} +4 -4
  20. package/dist/chunks/{FlexibleReduxExample-C9wtuevN.js.map → FlexibleReduxExample-C_HaMjPt.js.map} +1 -1
  21. package/dist/chunks/{FlexibleReduxExample-D5WZ0Y9q.esm.js → FlexibleReduxExample-Ko9r_9Sf.esm.js} +4 -4
  22. package/dist/chunks/{FlexibleReduxExample-D5WZ0Y9q.esm.js.map → FlexibleReduxExample-Ko9r_9Sf.esm.js.map} +1 -1
  23. package/dist/chunks/{GroupBarChart-ClbiQBtX.esm.js → GroupBarChart-DI7BmO6n.esm.js} +3 -5
  24. package/dist/chunks/GroupBarChart-DI7BmO6n.esm.js.map +1 -0
  25. package/dist/chunks/{GroupBarChart-Bn6y6VUI.js → GroupBarChart-DRUOlqZB.js} +3 -5
  26. package/dist/chunks/GroupBarChart-DRUOlqZB.js.map +1 -0
  27. package/dist/chunks/{SectionFlowEditor-CBQxTG-8.js → SectionFlowEditor-4FxOYWiy.js} +5 -5
  28. package/dist/chunks/{SectionFlowEditor-CBQxTG-8.js.map → SectionFlowEditor-4FxOYWiy.js.map} +1 -1
  29. package/dist/chunks/{SectionFlowEditor-CK7MsWqX.esm.js → SectionFlowEditor-Bfk9P1Yq.esm.js} +5 -5
  30. package/dist/chunks/{SectionFlowEditor-CK7MsWqX.esm.js.map → SectionFlowEditor-Bfk9P1Yq.esm.js.map} +1 -1
  31. package/dist/chunks/{action-bar-DRuOqMix.esm.js → action-bar-BWaIHSjo.esm.js} +21 -8
  32. package/dist/chunks/action-bar-BWaIHSjo.esm.js.map +1 -0
  33. package/dist/chunks/{action-bar-XuDGfw4M.js → action-bar-D1h_SV0y.js} +21 -8
  34. package/dist/chunks/action-bar-D1h_SV0y.js.map +1 -0
  35. package/dist/chunks/{actionCreator-8Pex09ux.js → actionCreator-BIYCa0QI.js} +2 -2
  36. package/dist/chunks/{actionCreator-8Pex09ux.js.map → actionCreator-BIYCa0QI.js.map} +1 -1
  37. package/dist/chunks/{actionCreator-DdOCvsYL.esm.js → actionCreator-Bfn_It6O.esm.js} +3 -3
  38. package/dist/chunks/{actionCreator-DdOCvsYL.esm.js.map → actionCreator-Bfn_It6O.esm.js.map} +1 -1
  39. package/dist/chunks/{actionCreator-BSTFE3gy.js → actionCreator-BpSfMBos.js} +3 -3
  40. package/dist/chunks/{actionCreator-BSTFE3gy.js.map → actionCreator-BpSfMBos.js.map} +1 -1
  41. package/dist/chunks/{actionCreator-BcTjEo2_.js → actionCreator-Ck-qUzQ2.js} +3 -3
  42. package/dist/chunks/{actionCreator-BcTjEo2_.js.map → actionCreator-Ck-qUzQ2.js.map} +1 -1
  43. package/dist/chunks/{actionCreator-vJCxC_mJ.js → actionCreator-DZReBE_y.js} +2 -2
  44. package/dist/chunks/{actionCreator-vJCxC_mJ.js.map → actionCreator-DZReBE_y.js.map} +1 -1
  45. package/dist/chunks/{actionCreator-BF4RHA5n.esm.js → actionCreator-DoIfUPQt.esm.js} +2 -2
  46. package/dist/chunks/{actionCreator-BF4RHA5n.esm.js.map → actionCreator-DoIfUPQt.esm.js.map} +1 -1
  47. package/dist/chunks/{actionCreator-Co7X6euT.esm.js → actionCreator-Dqh1x1Cw.esm.js} +3 -3
  48. package/dist/chunks/{actionCreator-Co7X6euT.esm.js.map → actionCreator-Dqh1x1Cw.esm.js.map} +1 -1
  49. package/dist/chunks/{actionCreator-crsJ9uyT.esm.js → actionCreator-Gpy5Tcjm.esm.js} +2 -2
  50. package/dist/chunks/{actionCreator-crsJ9uyT.esm.js.map → actionCreator-Gpy5Tcjm.esm.js.map} +1 -1
  51. package/dist/chunks/{actionCreator-DOWG4VBM.esm.js → actionCreator-HwOlTzpR.esm.js} +2 -2
  52. package/dist/chunks/{actionCreator-DOWG4VBM.esm.js.map → actionCreator-HwOlTzpR.esm.js.map} +1 -1
  53. package/dist/chunks/{actionCreator-C9b0TW5_.js → actionCreator-iy2CtIGK.js} +2 -2
  54. package/dist/chunks/{actionCreator-C9b0TW5_.js.map → actionCreator-iy2CtIGK.js.map} +1 -1
  55. package/dist/chunks/{add-template-BAdQTQG1.js → add-template-C29kVieq.js} +2 -2
  56. package/dist/chunks/{add-template-BAdQTQG1.js.map → add-template-C29kVieq.js.map} +1 -1
  57. package/dist/chunks/{add-template-Bz0erHyU.esm.js → add-template-DQHR4yX9.esm.js} +2 -2
  58. package/dist/chunks/{add-template-Bz0erHyU.esm.js.map → add-template-DQHR4yX9.esm.js.map} +1 -1
  59. package/dist/chunks/{address-modal-CjS855AI.js → address-modal-DcobvcVN.js} +2 -2
  60. package/dist/chunks/{address-modal-CjS855AI.js.map → address-modal-DcobvcVN.js.map} +1 -1
  61. package/dist/chunks/{address-modal-y6j5qqvH.esm.js → address-modal-JdbOy0LA.esm.js} +2 -2
  62. package/dist/chunks/{address-modal-y6j5qqvH.esm.js.map → address-modal-JdbOy0LA.esm.js.map} +1 -1
  63. package/dist/chunks/{ai-summary-DCA_Rajf.esm.js → ai-summary-BZg9bgfa.esm.js} +3 -3
  64. package/dist/chunks/{ai-summary-DCA_Rajf.esm.js.map → ai-summary-BZg9bgfa.esm.js.map} +1 -1
  65. package/dist/chunks/{ai-summary-CVL8UZjT.js → ai-summary-CTpzj_T7.js} +3 -3
  66. package/dist/chunks/{ai-summary-CVL8UZjT.js.map → ai-summary-CTpzj_T7.js.map} +1 -1
  67. package/dist/chunks/{api-MG1K-AQV.js → api-BE9Hlg3S.js} +10 -2
  68. package/dist/chunks/{api-MG1K-AQV.js.map → api-BE9Hlg3S.js.map} +1 -1
  69. package/dist/chunks/{api-Domfmhzk.esm.js → api-C2k6vopQ.esm.js} +10 -2
  70. package/dist/chunks/{api-Domfmhzk.esm.js.map → api-C2k6vopQ.esm.js.map} +1 -1
  71. package/dist/chunks/{api-_j4xpeBn.esm.js → api-DcBMYwxM.esm.js} +130 -47
  72. package/dist/chunks/{api-_j4xpeBn.esm.js.map → api-DcBMYwxM.esm.js.map} +1 -1
  73. package/dist/chunks/{api-D15gHaoJ.js → api-eLqkjqEz.js} +84 -1
  74. package/dist/chunks/{api-D15gHaoJ.js.map → api-eLqkjqEz.js.map} +1 -1
  75. package/dist/chunks/{appbar-CDRcCNb8.esm.js → appbar-CjJWzi-A.esm.js} +2 -2
  76. package/dist/chunks/{appbar-CDRcCNb8.esm.js.map → appbar-CjJWzi-A.esm.js.map} +1 -1
  77. package/dist/chunks/{appbar-BEzpjiZQ.js → appbar-DrQUtMwe.js} +2 -2
  78. package/dist/chunks/{appbar-BEzpjiZQ.js.map → appbar-DrQUtMwe.js.map} +1 -1
  79. package/dist/chunks/{approval-wrapper-BqlsRgw3.esm.js → approval-wrapper-CmxY6oBr.esm.js} +2 -2
  80. package/dist/chunks/{approval-wrapper-BqlsRgw3.esm.js.map → approval-wrapper-CmxY6oBr.esm.js.map} +1 -1
  81. package/dist/chunks/{approval-wrapper-DoRfaV7h.js → approval-wrapper-fhCyMPxY.js} +2 -2
  82. package/dist/chunks/{approval-wrapper-DoRfaV7h.js.map → approval-wrapper-fhCyMPxY.js.map} +1 -1
  83. package/dist/chunks/{bar-chart-BrGEfSw-.esm.js → bar-chart-2PcYMhD4.esm.js} +32 -27
  84. package/dist/chunks/bar-chart-2PcYMhD4.esm.js.map +1 -0
  85. package/dist/chunks/{bar-chart-fd78BXbm.js → bar-chart-CRGPzH-7.js} +30 -25
  86. package/dist/chunks/bar-chart-CRGPzH-7.js.map +1 -0
  87. package/dist/chunks/{barLinechart-BPBiF7aN.esm.js → barLinechart-Bs-30_d3.esm.js} +6 -11
  88. package/dist/chunks/barLinechart-Bs-30_d3.esm.js.map +1 -0
  89. package/dist/chunks/{barLinechart-BlANWhLn.js → barLinechart-Cr7Ng88M.js} +6 -11
  90. package/dist/chunks/barLinechart-Cr7Ng88M.js.map +1 -0
  91. package/dist/chunks/{chat-bot-Br1QjI1T.esm.js → chat-bot-Bz9K7n8P.esm.js} +5 -5
  92. package/dist/chunks/{chat-bot-Br1QjI1T.esm.js.map → chat-bot-Bz9K7n8P.esm.js.map} +1 -1
  93. package/dist/chunks/{chat-bot-Dd50e-f5.js → chat-bot-Hq_YKTyY.js} +5 -5
  94. package/dist/chunks/{chat-bot-Dd50e-f5.js.map → chat-bot-Hq_YKTyY.js.map} +1 -1
  95. package/dist/chunks/{common-utility-Cl_VSwXG.esm.js → common-utility-CloUXsNJ.esm.js} +2 -2
  96. package/dist/chunks/{common-utility-Cl_VSwXG.esm.js.map → common-utility-CloUXsNJ.esm.js.map} +1 -1
  97. package/dist/chunks/{common-utility-ygbBeR-r.js → common-utility-DHEVFw3W.js} +2 -2
  98. package/dist/chunks/{common-utility-ygbBeR-r.js.map → common-utility-DHEVFw3W.js.map} +1 -1
  99. package/dist/chunks/{custom-editor-BawEL84e.js → custom-editor-6S-Eqmmy.js} +2 -2
  100. package/dist/chunks/{custom-editor-BawEL84e.js.map → custom-editor-6S-Eqmmy.js.map} +1 -1
  101. package/dist/chunks/{custom-editor-BJLrUnxX.esm.js → custom-editor-B8h_FoME.esm.js} +2 -2
  102. package/dist/chunks/{custom-editor-BJLrUnxX.esm.js.map → custom-editor-B8h_FoME.esm.js.map} +1 -1
  103. package/dist/chunks/{custom-form-BKMSo_jT.js → custom-form-Bg6xJ9eQ.js} +6 -6
  104. package/dist/chunks/{custom-form-BKMSo_jT.js.map → custom-form-Bg6xJ9eQ.js.map} +1 -1
  105. package/dist/chunks/{custom-form-CHHsIUeS.esm.js → custom-form-Kig4DXiF.esm.js} +6 -6
  106. package/dist/chunks/{custom-form-CHHsIUeS.esm.js.map → custom-form-Kig4DXiF.esm.js.map} +1 -1
  107. package/dist/chunks/{dashboard-ESyPJnwX.esm.js → dashboard-BX-ElIsF.esm.js} +3 -3
  108. package/dist/chunks/{dashboard-ESyPJnwX.esm.js.map → dashboard-BX-ElIsF.esm.js.map} +1 -1
  109. package/dist/chunks/{dashboard-GTfdBYgZ.js → dashboard-UeTwMv0E.js} +3 -3
  110. package/dist/chunks/{dashboard-GTfdBYgZ.js.map → dashboard-UeTwMv0E.js.map} +1 -1
  111. package/dist/chunks/{dynamic-report-eYHCAWrz.esm.js → dynamic-report-BoTLK4pC.esm.js} +4 -4
  112. package/dist/chunks/{dynamic-report-eYHCAWrz.esm.js.map → dynamic-report-BoTLK4pC.esm.js.map} +1 -1
  113. package/dist/chunks/{dynamic-report-B65A4rXG.js → dynamic-report-NmuJlTnX.js} +4 -4
  114. package/dist/chunks/{dynamic-report-B65A4rXG.js.map → dynamic-report-NmuJlTnX.js.map} +1 -1
  115. package/dist/chunks/{dynamic-rows-_N1EdYHV.esm.js → dynamic-rows-DJj9XRxu.esm.js} +2 -2
  116. package/dist/chunks/{dynamic-rows-_N1EdYHV.esm.js.map → dynamic-rows-DJj9XRxu.esm.js.map} +1 -1
  117. package/dist/chunks/{dynamic-rows-CO8KEdwU.js → dynamic-rows-uxJErC3r.js} +2 -2
  118. package/dist/chunks/{dynamic-rows-CO8KEdwU.js.map → dynamic-rows-uxJErC3r.js.map} +1 -1
  119. package/dist/chunks/{dynamic-text-editor-DFZ5KA0c.js → dynamic-text-editor-BHLn026L.js} +2 -2
  120. package/dist/chunks/{dynamic-text-editor-DFZ5KA0c.js.map → dynamic-text-editor-BHLn026L.js.map} +1 -1
  121. package/dist/chunks/{dynamic-text-editor-CVOHJNxS.esm.js → dynamic-text-editor-bxekXJJe.esm.js} +2 -2
  122. package/dist/chunks/{dynamic-text-editor-CVOHJNxS.esm.js.map → dynamic-text-editor-bxekXJJe.esm.js.map} +1 -1
  123. package/dist/chunks/{edit-section-modal-DlMsnHJa.js → edit-section-modal-BW1NMqNR.js} +2 -2
  124. package/dist/chunks/{edit-section-modal-DlMsnHJa.js.map → edit-section-modal-BW1NMqNR.js.map} +1 -1
  125. package/dist/chunks/{edit-section-modal-CE6Y9zOM.esm.js → edit-section-modal-CnIfSH2a.esm.js} +2 -2
  126. package/dist/chunks/{edit-section-modal-CE6Y9zOM.esm.js.map → edit-section-modal-CnIfSH2a.esm.js.map} +1 -1
  127. package/dist/chunks/{filter-CaJvWwQc.js → filter-ePmryxqI.js} +4 -4
  128. package/dist/chunks/{filter-CaJvWwQc.js.map → filter-ePmryxqI.js.map} +1 -1
  129. package/dist/chunks/{filter-Dkmaf59Y.esm.js → filter-oDXD82cE.esm.js} +4 -4
  130. package/dist/chunks/{filter-Dkmaf59Y.esm.js.map → filter-oDXD82cE.esm.js.map} +1 -1
  131. package/dist/chunks/{footer-DqAo-pAx.js → footer-CGAxRTA4.js} +2 -2
  132. package/dist/chunks/{footer-DqAo-pAx.js.map → footer-CGAxRTA4.js.map} +1 -1
  133. package/dist/chunks/{footer-CNGgHaTU.esm.js → footer-CmafctPd.esm.js} +2 -2
  134. package/dist/chunks/{footer-CNGgHaTU.esm.js.map → footer-CmafctPd.esm.js.map} +1 -1
  135. package/dist/chunks/{form-fields-7kOa4Egl.esm.js → form-fields-BUuJXRRA.esm.js} +2 -2
  136. package/dist/chunks/{form-fields-7kOa4Egl.esm.js.map → form-fields-BUuJXRRA.esm.js.map} +1 -1
  137. package/dist/chunks/{form-fields-mOkSb3UT.js → form-fields-BjnFhypP.js} +2 -2
  138. package/dist/chunks/{form-fields-mOkSb3UT.js.map → form-fields-BjnFhypP.js.map} +1 -1
  139. package/dist/chunks/{form-parser-DxsY9lf3.esm.js → form-parser-DPn2qwtV.esm.js} +2 -2
  140. package/dist/chunks/{form-parser-DxsY9lf3.esm.js.map → form-parser-DPn2qwtV.esm.js.map} +1 -1
  141. package/dist/chunks/{form-parser-DQ4-UHSV.js → form-parser-Z_UhIezZ.js} +2 -2
  142. package/dist/chunks/{form-parser-DQ4-UHSV.js.map → form-parser-Z_UhIezZ.js.map} +1 -1
  143. package/dist/chunks/{form-section-C8qJlB2E.js → form-section-B6_iJHvN.js} +5 -5
  144. package/dist/chunks/{form-section-C8qJlB2E.js.map → form-section-B6_iJHvN.js.map} +1 -1
  145. package/dist/chunks/{form-section-D2KJvpiD.esm.js → form-section-CenlJYBD.esm.js} +5 -5
  146. package/dist/chunks/{form-section-D2KJvpiD.esm.js.map → form-section-CenlJYBD.esm.js.map} +1 -1
  147. package/dist/chunks/format-chart-value-CFTk-n_C.js +18 -0
  148. package/dist/chunks/format-chart-value-CFTk-n_C.js.map +1 -0
  149. package/dist/chunks/format-chart-value-CWTJUVFw.esm.js +19 -0
  150. package/dist/chunks/format-chart-value-CWTJUVFw.esm.js.map +1 -0
  151. package/dist/chunks/{fullScreen-C1WpXKLw.js → fullScreen-QqBm7e5Y.js} +3 -3
  152. package/dist/chunks/{fullScreen-C1WpXKLw.js.map → fullScreen-QqBm7e5Y.js.map} +1 -1
  153. package/dist/chunks/{fullScreen-Cz8DRpX8.esm.js → fullScreen-jx9kfYrr.esm.js} +3 -3
  154. package/dist/chunks/{fullScreen-Cz8DRpX8.esm.js.map → fullScreen-jx9kfYrr.esm.js.map} +1 -1
  155. package/dist/chunks/{global-search-BYLcWVO3.js → global-search-CEDSZqxp.js} +3 -3
  156. package/dist/chunks/{global-search-BYLcWVO3.js.map → global-search-CEDSZqxp.js.map} +1 -1
  157. package/dist/chunks/{global-search-DUn9W2cd.esm.js → global-search-CNiqE_fN.esm.js} +3 -3
  158. package/dist/chunks/{global-search-DUn9W2cd.esm.js.map → global-search-CNiqE_fN.esm.js.map} +1 -1
  159. package/dist/chunks/{grid-view-CggOiNUz.js → grid-view-BCzIg2iP.js} +2 -2
  160. package/dist/chunks/{grid-view-CggOiNUz.js.map → grid-view-BCzIg2iP.js.map} +1 -1
  161. package/dist/chunks/{grid-view-C1-aXr9W.esm.js → grid-view-D1M5hN_d.esm.js} +2 -2
  162. package/dist/chunks/{grid-view-C1-aXr9W.esm.js.map → grid-view-D1M5hN_d.esm.js.map} +1 -1
  163. package/dist/chunks/{header-B6YeONLk.js → header-CEqDre8Z.js} +4 -4
  164. package/dist/chunks/{header-B6YeONLk.js.map → header-CEqDre8Z.js.map} +1 -1
  165. package/dist/chunks/{header-BTUsO8LY.esm.js → header-CmMwGHO_.esm.js} +4 -4
  166. package/dist/chunks/{header-BTUsO8LY.esm.js.map → header-CmMwGHO_.esm.js.map} +1 -1
  167. package/dist/chunks/{header-enhanced-H3zshDZy.js → header-enhanced-BC-D09h9.js} +2 -2
  168. package/dist/chunks/{header-enhanced-H3zshDZy.js.map → header-enhanced-BC-D09h9.js.map} +1 -1
  169. package/dist/chunks/{header-enhanced-BdOZF4OO.esm.js → header-enhanced-BI1I247Z.esm.js} +2 -2
  170. package/dist/chunks/{header-enhanced-BdOZF4OO.esm.js.map → header-enhanced-BI1I247Z.esm.js.map} +1 -1
  171. package/dist/chunks/{inline-edit-fields-BOmXBAAs.esm.js → inline-edit-fields-BRXpjHjq.esm.js} +2 -2
  172. package/dist/chunks/{inline-edit-fields-BOmXBAAs.esm.js.map → inline-edit-fields-BRXpjHjq.esm.js.map} +1 -1
  173. package/dist/chunks/{inline-edit-fields-iZ5YnWJT.js → inline-edit-fields-DMjyEyGo.js} +2 -2
  174. package/dist/chunks/{inline-edit-fields-iZ5YnWJT.js.map → inline-edit-fields-DMjyEyGo.js.map} +1 -1
  175. package/dist/chunks/{inventory-reports-title-bar-Pxyl5ZA1.esm.js → inventory-reports-title-bar-0oeq-jQe.esm.js} +3 -3
  176. package/dist/chunks/{inventory-reports-title-bar-Pxyl5ZA1.esm.js.map → inventory-reports-title-bar-0oeq-jQe.esm.js.map} +1 -1
  177. package/dist/chunks/{inventory-reports-title-bar-CV-f32oB.js → inventory-reports-title-bar-usC7tUN1.js} +3 -3
  178. package/dist/chunks/{inventory-reports-title-bar-CV-f32oB.js.map → inventory-reports-title-bar-usC7tUN1.js.map} +1 -1
  179. package/dist/chunks/{item-response-details-YLVXycU5.esm.js → item-response-details-BvgPMZmy.esm.js} +4 -4
  180. package/dist/chunks/{item-response-details-YLVXycU5.esm.js.map → item-response-details-BvgPMZmy.esm.js.map} +1 -1
  181. package/dist/chunks/{item-response-details-K4oajGMK.js → item-response-details-RffhC7b0.js} +4 -4
  182. package/dist/chunks/{item-response-details-K4oajGMK.js.map → item-response-details-RffhC7b0.js.map} +1 -1
  183. package/dist/chunks/{listing-DN1f2q_E.js → listing-BdXKXx3_.js} +4 -4
  184. package/dist/chunks/{listing-DN1f2q_E.js.map → listing-BdXKXx3_.js.map} +1 -1
  185. package/dist/chunks/{listing-DE6oeK4A.esm.js → listing-CexVTqTa.esm.js} +4 -4
  186. package/dist/chunks/{listing-DE6oeK4A.esm.js.map → listing-CexVTqTa.esm.js.map} +1 -1
  187. package/dist/chunks/{location-select-Bso6XRSH.js → location-select-DC0YqFtg.js} +2 -2
  188. package/dist/chunks/{location-select-Bso6XRSH.js.map → location-select-DC0YqFtg.js.map} +1 -1
  189. package/dist/chunks/{location-select-ixAHByae.esm.js → location-select-GaAeD1Lx.esm.js} +2 -2
  190. package/dist/chunks/{location-select-ixAHByae.esm.js.map → location-select-GaAeD1Lx.esm.js.map} +1 -1
  191. package/dist/chunks/{material-editable-table-C0D6e0u0.esm.js → material-editable-table-DmOFLVoO.esm.js} +3 -3
  192. package/dist/chunks/{material-editable-table-C0D6e0u0.esm.js.map → material-editable-table-DmOFLVoO.esm.js.map} +1 -1
  193. package/dist/chunks/{material-editable-table-ryJGALfJ.js → material-editable-table-DxPH4Sor.js} +3 -3
  194. package/dist/chunks/{material-editable-table-ryJGALfJ.js.map → material-editable-table-DxPH4Sor.js.map} +1 -1
  195. package/dist/chunks/{module-reducer-CrWXc79c.esm.js → module-reducer-BuPNKjGW.esm.js} +2 -2
  196. package/dist/chunks/{module-reducer-CrWXc79c.esm.js.map → module-reducer-BuPNKjGW.esm.js.map} +1 -1
  197. package/dist/chunks/{module-reducer-CCoEsD1r.js → module-reducer-EG_Lk6GQ.js} +2 -2
  198. package/dist/chunks/{module-reducer-CCoEsD1r.js.map → module-reducer-EG_Lk6GQ.js.map} +1 -1
  199. package/dist/chunks/{notification-menu-DUvKFSDa.esm.js → notification-menu-BxIipL9Z.esm.js} +2 -2
  200. package/dist/chunks/{notification-menu-DUvKFSDa.esm.js.map → notification-menu-BxIipL9Z.esm.js.map} +1 -1
  201. package/dist/chunks/{notification-menu-jR8RPFT5.js → notification-menu-bPkVGx9C.js} +2 -2
  202. package/dist/chunks/{notification-menu-jR8RPFT5.js.map → notification-menu-bPkVGx9C.js.map} +1 -1
  203. package/dist/chunks/{page-action-qZmh4cFt.js → page-action-C74QLcQC.js} +4 -4
  204. package/dist/chunks/{page-action-qZmh4cFt.js.map → page-action-C74QLcQC.js.map} +1 -1
  205. package/dist/chunks/{page-action-C5qzfXYJ.esm.js → page-action-utU6s_vf.esm.js} +4 -4
  206. package/dist/chunks/{page-action-C5qzfXYJ.esm.js.map → page-action-utU6s_vf.esm.js.map} +1 -1
  207. package/dist/chunks/{page-navigator-CFw4pm5n.esm.js → page-navigator-BXpdVzdK.esm.js} +2 -2
  208. package/dist/chunks/{page-navigator-CFw4pm5n.esm.js.map → page-navigator-BXpdVzdK.esm.js.map} +1 -1
  209. package/dist/chunks/{page-navigator-jwtLV7rt.js → page-navigator-DJ5Wnl72.js} +2 -2
  210. package/dist/chunks/{page-navigator-jwtLV7rt.js.map → page-navigator-DJ5Wnl72.js.map} +1 -1
  211. package/dist/chunks/{page-view-DLegwvgH.esm.js → page-view-DZFQMdcM.esm.js} +3 -3
  212. package/dist/chunks/{page-view-DLegwvgH.esm.js.map → page-view-DZFQMdcM.esm.js.map} +1 -1
  213. package/dist/chunks/{page-view-Dbp1Smfw.js → page-view-DteiEWt8.js} +3 -3
  214. package/dist/chunks/{page-view-Dbp1Smfw.js.map → page-view-DteiEWt8.js.map} +1 -1
  215. package/dist/chunks/{quick-approval-modal-C5ZpuQBQ.js → quick-approval-modal-Dxbm78nC.js} +2 -2
  216. package/dist/chunks/{quick-approval-modal-C5ZpuQBQ.js.map → quick-approval-modal-Dxbm78nC.js.map} +1 -1
  217. package/dist/chunks/{quick-approval-modal-D85m66S1.esm.js → quick-approval-modal-bJ4qAij7.esm.js} +2 -2
  218. package/dist/chunks/{quick-approval-modal-D85m66S1.esm.js.map → quick-approval-modal-bJ4qAij7.esm.js.map} +1 -1
  219. package/dist/chunks/{reducer-DAT1HZtM.esm.js → reducer-1Jzb6bkJ.esm.js} +2 -2
  220. package/dist/chunks/{reducer-DAT1HZtM.esm.js.map → reducer-1Jzb6bkJ.esm.js.map} +1 -1
  221. package/dist/chunks/{reducer-DezP6uHD.esm.js → reducer-3oSrNttL.esm.js} +2 -2
  222. package/dist/chunks/{reducer-DezP6uHD.esm.js.map → reducer-3oSrNttL.esm.js.map} +1 -1
  223. package/dist/chunks/{reducer-7oj6epEz.js → reducer-BQ-QvaqL.js} +3 -3
  224. package/dist/chunks/{reducer-7oj6epEz.js.map → reducer-BQ-QvaqL.js.map} +1 -1
  225. package/dist/chunks/{reducer-DHUiuTR9.js → reducer-BTWwq035.js} +2 -2
  226. package/dist/chunks/{reducer-DHUiuTR9.js.map → reducer-BTWwq035.js.map} +1 -1
  227. package/dist/chunks/{reducer-De0xpE1m.js → reducer-CnFU7DBe.js} +2 -2
  228. package/dist/chunks/{reducer-De0xpE1m.js.map → reducer-CnFU7DBe.js.map} +1 -1
  229. package/dist/chunks/{reducer-BwuHnsU2.esm.js → reducer-CpcBcg71.esm.js} +2 -2
  230. package/dist/chunks/{reducer-BwuHnsU2.esm.js.map → reducer-CpcBcg71.esm.js.map} +1 -1
  231. package/dist/chunks/{reducer-C6yg9COh.esm.js → reducer-CxmesE1_.esm.js} +2 -2
  232. package/dist/chunks/{reducer-C6yg9COh.esm.js.map → reducer-CxmesE1_.esm.js.map} +1 -1
  233. package/dist/chunks/{reducer-BxSO0oQv.esm.js → reducer-DFjvx6s7.esm.js} +3 -3
  234. package/dist/chunks/{reducer-BxSO0oQv.esm.js.map → reducer-DFjvx6s7.esm.js.map} +1 -1
  235. package/dist/chunks/{reducer-CngGN-hd.js → reducer-DUvIlpKw.js} +2 -2
  236. package/dist/chunks/{reducer-CngGN-hd.js.map → reducer-DUvIlpKw.js.map} +1 -1
  237. package/dist/chunks/{reducer-Dc6AdoMV.js → reducer-Qv9hVrkd.js} +2 -2
  238. package/dist/chunks/{reducer-Dc6AdoMV.js.map → reducer-Qv9hVrkd.js.map} +1 -1
  239. package/dist/chunks/{reports-title-bar-iEbMcqPk.js → reports-title-bar-BuiyDFPu.js} +4 -4
  240. package/dist/chunks/{reports-title-bar-iEbMcqPk.js.map → reports-title-bar-BuiyDFPu.js.map} +1 -1
  241. package/dist/chunks/{reports-title-bar--SXPe6-K.esm.js → reports-title-bar-DHWI4oHB.esm.js} +4 -4
  242. package/dist/chunks/{reports-title-bar--SXPe6-K.esm.js.map → reports-title-bar-DHWI4oHB.esm.js.map} +1 -1
  243. package/dist/chunks/{route-page-map-uWQ7kZ82.esm.js → route-page-map-5OOsmEZ7.esm.js} +21 -21
  244. package/dist/chunks/{route-page-map-uWQ7kZ82.esm.js.map → route-page-map-5OOsmEZ7.esm.js.map} +1 -1
  245. package/dist/chunks/{route-page-map-BhE5UpMe.js → route-page-map-CmBPKYzH.js} +21 -21
  246. package/dist/chunks/{route-page-map-BhE5UpMe.js.map → route-page-map-CmBPKYzH.js.map} +1 -1
  247. package/dist/chunks/{routes-tfQOYz0s.esm.js → routes-CWD7d4za.esm.js} +3 -3
  248. package/dist/chunks/{routes-tfQOYz0s.esm.js.map → routes-CWD7d4za.esm.js.map} +1 -1
  249. package/dist/chunks/{routes-BvL-J5lu.js → routes-Dd4UP7Yl.js} +3 -3
  250. package/dist/chunks/{routes-BvL-J5lu.js.map → routes-Dd4UP7Yl.js.map} +1 -1
  251. package/dist/chunks/{schedule-report-DjBUU_Vy.esm.js → schedule-report-C1pnMI-Z.esm.js} +6 -6
  252. package/dist/chunks/{schedule-report-DjBUU_Vy.esm.js.map → schedule-report-C1pnMI-Z.esm.js.map} +1 -1
  253. package/dist/chunks/{schedule-report-D_HMrcFG.js → schedule-report-lRoF3YHD.js} +6 -6
  254. package/dist/chunks/{schedule-report-D_HMrcFG.js.map → schedule-report-lRoF3YHD.js.map} +1 -1
  255. package/dist/chunks/{schedule-report-modal-U4lXahF4.esm.js → schedule-report-modal-B5_cN5F-.esm.js} +3 -3
  256. package/dist/chunks/{schedule-report-modal-U4lXahF4.esm.js.map → schedule-report-modal-B5_cN5F-.esm.js.map} +1 -1
  257. package/dist/chunks/{schedule-report-modal-DI60FFx4.js → schedule-report-modal-eNnks0xZ.js} +3 -3
  258. package/dist/chunks/{schedule-report-modal-DI60FFx4.js.map → schedule-report-modal-eNnks0xZ.js.map} +1 -1
  259. package/dist/chunks/{searchable-select-COCrnMEI.js → searchable-select-BkQ4rwEr.js} +6 -6
  260. package/dist/chunks/{searchable-select-COCrnMEI.js.map → searchable-select-BkQ4rwEr.js.map} +1 -1
  261. package/dist/chunks/{searchable-select-CZ-u0Q3a.esm.js → searchable-select-BvAs_Lfm.esm.js} +6 -6
  262. package/dist/chunks/{searchable-select-CZ-u0Q3a.esm.js.map → searchable-select-BvAs_Lfm.esm.js.map} +1 -1
  263. package/dist/chunks/{share-modal-CNJSBswM.esm.js → share-modal-CZPSuCGE.esm.js} +3 -3
  264. package/dist/chunks/{share-modal-CNJSBswM.esm.js.map → share-modal-CZPSuCGE.esm.js.map} +1 -1
  265. package/dist/chunks/{share-modal-BEKpgefl.js → share-modal-Cs42nX9b.js} +3 -3
  266. package/dist/chunks/{share-modal-BEKpgefl.js.map → share-modal-Cs42nX9b.js.map} +1 -1
  267. package/dist/chunks/{share-modal-enhanced-WXMsExh-.js → share-modal-enhanced-6YMJ2LpK.js} +2 -2
  268. package/dist/chunks/{share-modal-enhanced-WXMsExh-.js.map → share-modal-enhanced-6YMJ2LpK.js.map} +1 -1
  269. package/dist/chunks/{share-modal-enhanced-CH3ekK9b.esm.js → share-modal-enhanced-D-bPlUAr.esm.js} +2 -2
  270. package/dist/chunks/{share-modal-enhanced-CH3ekK9b.esm.js.map → share-modal-enhanced-D-bPlUAr.esm.js.map} +1 -1
  271. package/dist/chunks/{sidebarScreen-CST8aVak.js → sidebarScreen-B-jRFbIA.js} +5 -5
  272. package/dist/chunks/{sidebarScreen-CST8aVak.js.map → sidebarScreen-B-jRFbIA.js.map} +1 -1
  273. package/dist/chunks/{sidebarScreen-CobRLihT.esm.js → sidebarScreen-BCtcmPPN.esm.js} +5 -5
  274. package/dist/chunks/{sidebarScreen-CobRLihT.esm.js.map → sidebarScreen-BCtcmPPN.esm.js.map} +1 -1
  275. package/dist/chunks/{store-C6a35xm2.js → store-BmPcgLnj.js} +6 -6
  276. package/dist/chunks/{store-C6a35xm2.js.map → store-BmPcgLnj.js.map} +1 -1
  277. package/dist/chunks/{store-DdsmwenB.esm.js → store-C_ePt__e.esm.js} +6 -6
  278. package/dist/chunks/{store-DdsmwenB.esm.js.map → store-C_ePt__e.esm.js.map} +1 -1
  279. package/dist/chunks/{table-BgFi89s7.esm.js → table-BaNG2wsh.esm.js} +3 -3
  280. package/dist/chunks/{table-BgFi89s7.esm.js.map → table-BaNG2wsh.esm.js.map} +1 -1
  281. package/dist/chunks/{table-CWEp3Zcb.js → table-DzGF_OwB.js} +3 -3
  282. package/dist/chunks/{table-CWEp3Zcb.js.map → table-DzGF_OwB.js.map} +1 -1
  283. package/dist/chunks/{table-form-B3bt46aU.js → table-form-BdVSFcEb.js} +2 -2
  284. package/dist/chunks/{table-form-B3bt46aU.js.map → table-form-BdVSFcEb.js.map} +1 -1
  285. package/dist/chunks/{table-form-CUgkJdcb.esm.js → table-form-CXgadnKE.esm.js} +2 -2
  286. package/dist/chunks/{table-form-CUgkJdcb.esm.js.map → table-form-CXgadnKE.esm.js.map} +1 -1
  287. package/dist/chunks/{template-editor-router-DzeXuIJB.js → template-editor-router-Cz7KZ9qS.js} +2 -2
  288. package/dist/chunks/{template-editor-router-DzeXuIJB.js.map → template-editor-router-Cz7KZ9qS.js.map} +1 -1
  289. package/dist/chunks/{template-editor-router-rnmTl1Lu.esm.js → template-editor-router-oZpfsb5c.esm.js} +2 -2
  290. package/dist/chunks/{template-editor-router-rnmTl1Lu.esm.js.map → template-editor-router-oZpfsb5c.esm.js.map} +1 -1
  291. package/dist/chunks/{template-modal-BsITIhnO.js → template-modal-DIrktczc.js} +2 -2
  292. package/dist/chunks/{template-modal-BsITIhnO.js.map → template-modal-DIrktczc.js.map} +1 -1
  293. package/dist/chunks/{template-modal-DxNihxZG.esm.js → template-modal-Dr5zxMUA.esm.js} +2 -2
  294. package/dist/chunks/{template-modal-DxNihxZG.esm.js.map → template-modal-Dr5zxMUA.esm.js.map} +1 -1
  295. package/dist/chunks/{templates-Bn2nE13v.js → templates-CB39ZofL.js} +7 -7
  296. package/dist/chunks/{templates-Bn2nE13v.js.map → templates-CB39ZofL.js.map} +1 -1
  297. package/dist/chunks/{templates-p2WT7wPJ.esm.js → templates-DCKESWfs.esm.js} +7 -7
  298. package/dist/chunks/{templates-p2WT7wPJ.esm.js.map → templates-DCKESWfs.esm.js.map} +1 -1
  299. package/dist/chunks/{text-measurement-CgQusKii.js → text-measurement-CcRWIhbP.js} +2 -2
  300. package/dist/chunks/{text-measurement-CgQusKii.js.map → text-measurement-CcRWIhbP.js.map} +1 -1
  301. package/dist/chunks/{text-measurement-CoarY9cF.esm.js → text-measurement-Dg0lnC42.esm.js} +2 -2
  302. package/dist/chunks/{text-measurement-CoarY9cF.esm.js.map → text-measurement-Dg0lnC42.esm.js.map} +1 -1
  303. package/dist/chunks/{translations-CgBoFTPK.js → translations-CfHnsxrK.js} +2 -2
  304. package/dist/chunks/{translations-CgBoFTPK.js.map → translations-CfHnsxrK.js.map} +1 -1
  305. package/dist/chunks/{translations-DN_sHGk3.esm.js → translations-DAzjYX47.esm.js} +2 -2
  306. package/dist/chunks/{translations-DN_sHGk3.esm.js.map → translations-DAzjYX47.esm.js.map} +1 -1
  307. package/dist/chunks/{uom-field-wrapper-udgtMGHZ.js → uom-field-wrapper-CBMgq9yU.js} +2 -2
  308. package/dist/chunks/{uom-field-wrapper-udgtMGHZ.js.map → uom-field-wrapper-CBMgq9yU.js.map} +1 -1
  309. package/dist/chunks/{uom-field-wrapper-DCzxtEjZ.esm.js → uom-field-wrapper-uiY5lWv9.esm.js} +2 -2
  310. package/dist/chunks/{uom-field-wrapper-DCzxtEjZ.esm.js.map → uom-field-wrapper-uiY5lWv9.esm.js.map} +1 -1
  311. package/dist/chunks/{upload-excel-CICJQVL_.js → upload-excel-B1YdOM2d.js} +2 -2
  312. package/dist/chunks/{upload-excel-CICJQVL_.js.map → upload-excel-B1YdOM2d.js.map} +1 -1
  313. package/dist/chunks/{upload-excel-BwZLIqRb.esm.js → upload-excel-BTc8xB3h.esm.js} +2 -2
  314. package/dist/chunks/{upload-excel-BwZLIqRb.esm.js.map → upload-excel-BTc8xB3h.esm.js.map} +1 -1
  315. package/dist/chunks/{use-translations-BU4FqfbX.js → use-translations-C0siUMKu.js} +2 -2
  316. package/dist/chunks/{use-translations-BU4FqfbX.js.map → use-translations-C0siUMKu.js.map} +1 -1
  317. package/dist/chunks/{use-translations-C1mZbgk8.esm.js → use-translations-D9vCiqOL.esm.js} +2 -2
  318. package/dist/chunks/{use-translations-C1mZbgk8.esm.js.map → use-translations-D9vCiqOL.esm.js.map} +1 -1
  319. package/dist/chunks/{useAccountSetting-CGvA6VSI.esm.js → useAccountSetting-DAFkhiF-.esm.js} +3 -3
  320. package/dist/chunks/{useAccountSetting-CGvA6VSI.esm.js.map → useAccountSetting-DAFkhiF-.esm.js.map} +1 -1
  321. package/dist/chunks/{useAccountSetting-BqInpLPK.js → useAccountSetting-lNVhUxRV.js} +3 -3
  322. package/dist/chunks/{useAccountSetting-BqInpLPK.js.map → useAccountSetting-lNVhUxRV.js.map} +1 -1
  323. package/dist/chunks/{useCheckSkuAndName-DIJ1elGA.esm.js → useCheckSkuAndName-Bfl6jUbp.esm.js} +2 -2
  324. package/dist/chunks/{useCheckSkuAndName-DIJ1elGA.esm.js.map → useCheckSkuAndName-Bfl6jUbp.esm.js.map} +1 -1
  325. package/dist/chunks/{useCheckSkuAndName-DG1Hc-ZR.js → useCheckSkuAndName-Buv41D-a.js} +2 -2
  326. package/dist/chunks/{useCheckSkuAndName-DG1Hc-ZR.js.map → useCheckSkuAndName-Buv41D-a.js.map} +1 -1
  327. package/dist/chunks/{useReduxIntegration-BjSb4UjW.esm.js → useReduxIntegration-CyWFIlxU.esm.js} +2 -2
  328. package/dist/chunks/{useReduxIntegration-BjSb4UjW.esm.js.map → useReduxIntegration-CyWFIlxU.esm.js.map} +1 -1
  329. package/dist/chunks/{useReduxIntegration-ewOOh6HS.js → useReduxIntegration-CzAT9dF_.js} +2 -2
  330. package/dist/chunks/{useReduxIntegration-ewOOh6HS.js.map → useReduxIntegration-CzAT9dF_.js.map} +1 -1
  331. package/dist/chunks/{useUniquenessCheck-B34cYubq.js → useUniquenessCheck-BzR2cX-f.js} +2 -2
  332. package/dist/chunks/{useUniquenessCheck-B34cYubq.js.map → useUniquenessCheck-BzR2cX-f.js.map} +1 -1
  333. package/dist/chunks/{useUniquenessCheck-WbJw4imC.esm.js → useUniquenessCheck-C0moXbNP.esm.js} +2 -2
  334. package/dist/chunks/{useUniquenessCheck-WbJw4imC.esm.js.map → useUniquenessCheck-C0moXbNP.esm.js.map} +1 -1
  335. package/dist/chunks/{useVendorAICompare-DZZ3IBCW.js → useVendorAICompare-BvfXbxJW.js} +3 -3
  336. package/dist/chunks/{useVendorAICompare-DZZ3IBCW.js.map → useVendorAICompare-BvfXbxJW.js.map} +1 -1
  337. package/dist/chunks/{useVendorAICompare-jpTD7uYf.esm.js → useVendorAICompare-CbdGVPk9.esm.js} +3 -3
  338. package/dist/chunks/{useVendorAICompare-jpTD7uYf.esm.js.map → useVendorAICompare-CbdGVPk9.esm.js.map} +1 -1
  339. package/dist/chunks/{value-editor-zoA-kR6C.js → value-editor-B9xCz-9o.js} +3 -3
  340. package/dist/chunks/{value-editor-zoA-kR6C.js.map → value-editor-B9xCz-9o.js.map} +1 -1
  341. package/dist/chunks/{value-editor-uNFBgZXW.esm.js → value-editor-Df67wcyQ.esm.js} +3 -3
  342. package/dist/chunks/{value-editor-uNFBgZXW.esm.js.map → value-editor-Df67wcyQ.esm.js.map} +1 -1
  343. package/dist/chunks/{vendor-ai-summary-CoOJHS8l.js → vendor-ai-summary-D_3cFqgu.js} +3 -3
  344. package/dist/chunks/{vendor-ai-summary-CoOJHS8l.js.map → vendor-ai-summary-D_3cFqgu.js.map} +1 -1
  345. package/dist/chunks/{vendor-ai-summary-Bj6yUbzu.esm.js → vendor-ai-summary-DkMqW2Lg.esm.js} +3 -3
  346. package/dist/chunks/{vendor-ai-summary-Bj6yUbzu.esm.js.map → vendor-ai-summary-DkMqW2Lg.esm.js.map} +1 -1
  347. package/dist/components/action-bar/action-bar/index.esm.js +1 -1
  348. package/dist/components/action-bar/action-bar/index.js +1 -1
  349. package/dist/components/action-bar/index.esm.js +1 -1
  350. package/dist/components/action-bar/index.js +1 -1
  351. package/dist/components/address-modal/index.esm.js +1 -1
  352. package/dist/components/address-modal/index.js +1 -1
  353. package/dist/components/ai-summary/ai-summary/index.esm.js +1 -1
  354. package/dist/components/ai-summary/ai-summary/index.js +1 -1
  355. package/dist/components/ai-summary/index.esm.js +1 -1
  356. package/dist/components/ai-summary/index.js +1 -1
  357. package/dist/components/appbar/appbar/index.esm.js +1 -1
  358. package/dist/components/appbar/appbar/index.js +1 -1
  359. package/dist/components/appbar/index.esm.js +1 -1
  360. package/dist/components/appbar/index.js +1 -1
  361. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
  362. package/dist/components/approval-wrapper/approval-wrapper/index.js +1 -1
  363. package/dist/components/approval-wrapper/index.esm.js +1 -1
  364. package/dist/components/approval-wrapper/index.js +1 -1
  365. package/dist/components/charts/bar-chart/bar-chart/index.esm.js +1 -1
  366. package/dist/components/charts/bar-chart/bar-chart/index.js +1 -1
  367. package/dist/components/charts/bar-chart/index.esm.js +1 -1
  368. package/dist/components/charts/bar-chart/index.js +1 -1
  369. package/dist/components/charts/barLineChart/barLinechart/index.esm.js +1 -1
  370. package/dist/components/charts/barLineChart/barLinechart/index.js +1 -1
  371. package/dist/components/charts/barLineChart/index.esm.js +1 -1
  372. package/dist/components/charts/barLineChart/index.js +1 -1
  373. package/dist/components/charts/donutChart/DonutChart/index.esm.js +1 -1
  374. package/dist/components/charts/donutChart/DonutChart/index.js +1 -1
  375. package/dist/components/charts/donutChart/index.esm.js +1 -1
  376. package/dist/components/charts/donutChart/index.js +1 -1
  377. package/dist/components/charts/groupBarChart/GroupBarChart/index.esm.js +1 -1
  378. package/dist/components/charts/groupBarChart/GroupBarChart/index.js +1 -1
  379. package/dist/components/charts/groupBarChart/index.esm.js +1 -1
  380. package/dist/components/charts/groupBarChart/index.js +1 -1
  381. package/dist/components/charts/index.esm.js +4 -4
  382. package/dist/components/charts/index.js +4 -4
  383. package/dist/components/chat-bot/index.esm.js +1 -1
  384. package/dist/components/chat-bot/index.js +1 -1
  385. package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
  386. package/dist/components/custom-forms/FORMS/index.js +1 -1
  387. package/dist/components/custom-forms/grid-view/grid-view/index.esm.js +1 -1
  388. package/dist/components/custom-forms/grid-view/grid-view/index.js +1 -1
  389. package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
  390. package/dist/components/custom-forms/grid-view/index.js +1 -1
  391. package/dist/components/custom-forms/index.esm.js +2 -2
  392. package/dist/components/custom-forms/index.js +2 -2
  393. package/dist/components/customer-ai-summary/index.esm.js +720 -0
  394. package/dist/components/customer-ai-summary/index.esm.js.map +1 -0
  395. package/dist/components/customer-ai-summary/index.js +720 -0
  396. package/dist/components/customer-ai-summary/index.js.map +1 -0
  397. package/dist/components/customer-ai-summary.d.ts +3 -0
  398. package/dist/components/department-add-modal/index.esm.js +1 -1
  399. package/dist/components/department-add-modal/index.js +1 -1
  400. package/dist/components/designation-add-modal/index.esm.js +1 -1
  401. package/dist/components/designation-add-modal/index.js +1 -1
  402. package/dist/components/editor/custom-editor/index.esm.js +1 -1
  403. package/dist/components/editor/custom-editor/index.js +1 -1
  404. package/dist/components/editor/index.esm.js +1 -1
  405. package/dist/components/editor/index.js +1 -1
  406. package/dist/components/examples/FlexibleReduxExample/index.esm.js +1 -1
  407. package/dist/components/examples/FlexibleReduxExample/index.js +1 -1
  408. package/dist/components/examples/index.esm.js +1 -1
  409. package/dist/components/examples/index.js +1 -1
  410. package/dist/components/filter/components/index.esm.js +1 -1
  411. package/dist/components/filter/components/index.js +1 -1
  412. package/dist/components/filter/components/value-editor/index.esm.js +1 -1
  413. package/dist/components/filter/components/value-editor/index.js +1 -1
  414. package/dist/components/filter/filter/index.esm.js +1 -1
  415. package/dist/components/filter/filter/index.js +1 -1
  416. package/dist/components/filter/index.esm.js +2 -2
  417. package/dist/components/filter/index.js +2 -2
  418. package/dist/components/footer/footer/index.esm.js +1 -1
  419. package/dist/components/footer/footer/index.js +1 -1
  420. package/dist/components/footer/index.esm.js +1 -1
  421. package/dist/components/footer/index.js +1 -1
  422. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.esm.js +1 -1
  423. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.js +1 -1
  424. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +1 -1
  425. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +1 -1
  426. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.esm.js +1 -1
  427. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.js +1 -1
  428. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.esm.js +1 -1
  429. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
  430. package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +4 -4
  431. package/dist/components/form-control/form-builder/form-builder-element/index.js +4 -4
  432. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.esm.js +1 -1
  433. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.js +1 -1
  434. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
  435. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
  436. package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
  437. package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
  438. package/dist/components/form-control/form-builder/index.esm.js +4 -4
  439. package/dist/components/form-control/form-builder/index.js +4 -4
  440. package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
  441. package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
  442. package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
  443. package/dist/components/form-control/form-parser/form-section/index.js +1 -1
  444. package/dist/components/form-control/form-parser/index.esm.js +2 -2
  445. package/dist/components/form-control/form-parser/index.js +2 -2
  446. package/dist/components/form-control/index.esm.js +6 -6
  447. package/dist/components/form-control/index.js +6 -6
  448. package/dist/components/header/components/global-search/index.esm.js +1 -1
  449. package/dist/components/header/components/global-search/index.js +1 -1
  450. package/dist/components/header/components/index.esm.js +1 -1
  451. package/dist/components/header/components/index.js +1 -1
  452. package/dist/components/header/components/notification-menu/index.esm.js +1 -1
  453. package/dist/components/header/components/notification-menu/index.js +1 -1
  454. package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
  455. package/dist/components/header/components/notification-menu/notification-menu/index.js +1 -1
  456. package/dist/components/header/header/index.esm.js +1 -1
  457. package/dist/components/header/header/index.js +1 -1
  458. package/dist/components/header/header-enhanced/index.esm.js +1 -1
  459. package/dist/components/header/header-enhanced/index.js +1 -1
  460. package/dist/components/header/index.esm.js +5 -5
  461. package/dist/components/header/index.js +5 -5
  462. package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
  463. package/dist/components/header/redux/actionCreator/index.js +1 -1
  464. package/dist/components/header/redux/index.esm.js +2 -2
  465. package/dist/components/header/redux/index.js +2 -2
  466. package/dist/components/header/redux/reducer/index.esm.js +1 -1
  467. package/dist/components/header/redux/reducer/index.js +1 -1
  468. package/dist/components/index.esm.js +40 -40
  469. package/dist/components/index.js +40 -40
  470. package/dist/components/inventory-reports-title-bar/index.esm.js +3 -3
  471. package/dist/components/inventory-reports-title-bar/index.js +3 -3
  472. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
  473. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
  474. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  475. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js +1 -1
  476. package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
  477. package/dist/components/inventory-reports-title-bar/redux/index.js +2 -2
  478. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
  479. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
  480. package/dist/components/listing/index.esm.js +1 -1
  481. package/dist/components/listing/index.js +1 -1
  482. package/dist/components/listing/listing/index.esm.js +1 -1
  483. package/dist/components/listing/listing/index.js +1 -1
  484. package/dist/components/location-select/index.esm.js +1 -1
  485. package/dist/components/location-select/index.js +1 -1
  486. package/dist/components/material-editable-table/components/index.esm.js +1 -1
  487. package/dist/components/material-editable-table/components/index.js +1 -1
  488. package/dist/components/material-editable-table/components/inline-edit-fields/index.esm.js +1 -1
  489. package/dist/components/material-editable-table/components/inline-edit-fields/index.js +1 -1
  490. package/dist/components/material-editable-table/index.esm.js +2 -2
  491. package/dist/components/material-editable-table/index.js +2 -2
  492. package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
  493. package/dist/components/material-editable-table/material-editable-table/index.js +1 -1
  494. package/dist/components/material-table/components/index.esm.js +1 -1
  495. package/dist/components/material-table/components/index.js +1 -1
  496. package/dist/components/material-table/components/inline-edit-fields/index.esm.js +1 -1
  497. package/dist/components/material-table/components/inline-edit-fields/index.js +1 -1
  498. package/dist/components/material-table/index.esm.js +1 -1
  499. package/dist/components/material-table/index.js +1 -1
  500. package/dist/components/material-table/material-table/index.esm.js +1 -1
  501. package/dist/components/material-table/material-table/index.js +1 -1
  502. package/dist/components/page-navigator/components/index.esm.js +1 -1
  503. package/dist/components/page-navigator/components/index.js +1 -1
  504. package/dist/components/page-navigator/components/page-action/index.esm.js +1 -1
  505. package/dist/components/page-navigator/components/page-action/index.js +1 -1
  506. package/dist/components/page-navigator/index.esm.js +2 -2
  507. package/dist/components/page-navigator/index.js +2 -2
  508. package/dist/components/page-navigator/page-navigator/index.esm.js +1 -1
  509. package/dist/components/page-navigator/page-navigator/index.js +1 -1
  510. package/dist/components/parties-modal/index.esm.js +1 -1
  511. package/dist/components/parties-modal/index.js +1 -1
  512. package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
  513. package/dist/components/parties-modal/parties-modal/index.js +1 -1
  514. package/dist/components/providers/ERPUIProvider/index.esm.js +1 -1
  515. package/dist/components/providers/ERPUIProvider/index.js +1 -1
  516. package/dist/components/providers/index.esm.js +1 -1
  517. package/dist/components/providers/index.js +1 -1
  518. package/dist/components/quick-approval-modal/index.esm.js +1 -1
  519. package/dist/components/quick-approval-modal/index.js +1 -1
  520. package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
  521. package/dist/components/quick-approval-modal/quick-approval-modal/index.js +1 -1
  522. package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
  523. package/dist/components/reports/dynamic-report/dynamic-report/index.js +1 -1
  524. package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
  525. package/dist/components/reports/dynamic-report/dynamic-rows/index.js +1 -1
  526. package/dist/components/reports/dynamic-report/index.esm.js +2 -2
  527. package/dist/components/reports/dynamic-report/index.js +2 -2
  528. package/dist/components/reports/index.esm.js +2 -2
  529. package/dist/components/reports/index.js +2 -2
  530. package/dist/components/reports-title-bar/index.esm.js +3 -3
  531. package/dist/components/reports-title-bar/index.js +3 -3
  532. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  533. package/dist/components/reports-title-bar/redux/actionCreator/index.js +1 -1
  534. package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
  535. package/dist/components/reports-title-bar/redux/index.js +2 -2
  536. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
  537. package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
  538. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  539. package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
  540. package/dist/components/rfq-response/index.esm.js +1 -1
  541. package/dist/components/rfq-response/index.js +1 -1
  542. package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
  543. package/dist/components/rfq-response/item-response-details/index.js +1 -1
  544. package/dist/components/schedule-report/index.esm.js +2 -2
  545. package/dist/components/schedule-report/index.js +2 -2
  546. package/dist/components/schedule-report/schedule-report/index.esm.js +1 -1
  547. package/dist/components/schedule-report/schedule-report/index.js +1 -1
  548. package/dist/components/schedule-report/schedule-report-modal/index.esm.js +1 -1
  549. package/dist/components/schedule-report/schedule-report-modal/index.js +1 -1
  550. package/dist/components/searchable-select/index.esm.js +1 -1
  551. package/dist/components/searchable-select/index.js +1 -1
  552. package/dist/components/share-modal/index.esm.js +4 -4
  553. package/dist/components/share-modal/index.js +4 -4
  554. package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
  555. package/dist/components/share-modal/redux/actionCreator/index.js +1 -1
  556. package/dist/components/share-modal/redux/index.esm.js +2 -2
  557. package/dist/components/share-modal/redux/index.js +2 -2
  558. package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
  559. package/dist/components/share-modal/redux/reducer/index.js +1 -1
  560. package/dist/components/share-modal/share-modal/index.esm.js +1 -1
  561. package/dist/components/share-modal/share-modal/index.js +1 -1
  562. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +1 -1
  563. package/dist/components/share-modal/share-modal-enhanced/index.js +1 -1
  564. package/dist/components/team-add-modal/index.esm.js +1 -1
  565. package/dist/components/team-add-modal/index.js +1 -1
  566. package/dist/components/uom-field-wrapper/index.esm.js +1 -1
  567. package/dist/components/uom-field-wrapper/index.js +1 -1
  568. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
  569. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
  570. package/dist/components/upload-excel/index.esm.js +1 -1
  571. package/dist/components/upload-excel/index.js +1 -1
  572. package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
  573. package/dist/components/upload-excel/upload-excel/index.js +1 -1
  574. package/dist/components/vendor-ai-summary/index.esm.js +1 -1
  575. package/dist/components/vendor-ai-summary/index.js +1 -1
  576. package/dist/constants/index.esm.js +1 -1
  577. package/dist/constants/index.js +1 -1
  578. package/dist/hooks/index.esm.js +6 -6
  579. package/dist/hooks/index.js +6 -6
  580. package/dist/hooks/use-translations/index.esm.js +1 -1
  581. package/dist/hooks/use-translations/index.js +1 -1
  582. package/dist/hooks/useAccountSetting/index.esm.js +1 -1
  583. package/dist/hooks/useAccountSetting/index.js +1 -1
  584. package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
  585. package/dist/hooks/useCheckSkuAndName/index.js +1 -1
  586. package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
  587. package/dist/hooks/useReduxIntegration/index.js +1 -1
  588. package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
  589. package/dist/hooks/useUniquenessCheck/index.js +1 -1
  590. package/dist/index.esm.js +69 -69
  591. package/dist/index.js +69 -69
  592. package/dist/layout/fullScreen/index.esm.js +1 -1
  593. package/dist/layout/fullScreen/index.js +1 -1
  594. package/dist/layout/index.esm.js +2 -2
  595. package/dist/layout/index.js +2 -2
  596. package/dist/layout/sidebarScreen/index.esm.js +1 -1
  597. package/dist/layout/sidebarScreen/index.js +1 -1
  598. package/dist/redux/index.esm.js +3 -3
  599. package/dist/redux/index.js +3 -3
  600. package/dist/runtime/index.esm.js +2 -2
  601. package/dist/runtime/index.js +2 -2
  602. package/dist/src/api-client/api.accounting/api.d.ts +1 -0
  603. package/dist/src/api-client/api.ai-feature/api.d.ts +52 -0
  604. package/dist/src/components/action-bar/action-bar.d.ts +11 -0
  605. package/dist/src/components/charts/format-chart-value.d.ts +2 -0
  606. package/dist/src/components/customer-ai-summary/ai-error-state.d.ts +16 -0
  607. package/dist/src/components/customer-ai-summary/ai-summary-skeleton.d.ts +10 -0
  608. package/dist/src/components/customer-ai-summary/compare-customers-button.d.ts +9 -0
  609. package/dist/src/components/customer-ai-summary/customer-ai-profile.d.ts +12 -0
  610. package/dist/src/components/customer-ai-summary/customer-ai-summary.d.ts +15 -0
  611. package/dist/src/components/customer-ai-summary/customer-ai-tab-label.d.ts +4 -0
  612. package/dist/src/components/customer-ai-summary/customer-analysis.constants.d.ts +19 -0
  613. package/dist/src/components/customer-ai-summary/customer-analysis.types.d.ts +1 -0
  614. package/dist/src/components/customer-ai-summary/customer-compare-drawer.d.ts +16 -0
  615. package/dist/src/components/customer-ai-summary/customer-profiling-access.d.ts +10 -0
  616. package/dist/src/components/customer-ai-summary/index.d.ts +13 -0
  617. package/dist/src/components/customer-ai-summary/use-customer-analysis.d.ts +14 -0
  618. package/dist/src/components/customer-ai-summary/use-customer-profiling-access.d.ts +2 -0
  619. package/dist/src/utils/api.d.ts +10 -0
  620. package/dist/style.css +1070 -0
  621. package/dist/utils/api/index.esm.js +1 -1
  622. package/dist/utils/api/index.js +1 -1
  623. package/dist/utils/common/index.esm.js +1 -1
  624. package/dist/utils/common/index.js +1 -1
  625. package/dist/utils/common-utility/index.esm.js +1 -1
  626. package/dist/utils/common-utility/index.js +1 -1
  627. package/dist/utils/index.esm.js +5 -5
  628. package/dist/utils/index.js +4 -4
  629. package/dist/utils/text-measurement/index.esm.js +1 -1
  630. package/dist/utils/text-measurement/index.js +1 -1
  631. package/dist/views/afterAuth/dashboard/index.esm.js +1 -1
  632. package/dist/views/afterAuth/dashboard/index.js +1 -1
  633. package/dist/views/afterAuth/index.esm.js +2 -2
  634. package/dist/views/afterAuth/index.js +2 -2
  635. package/dist/views/afterAuth/page-view/index.esm.js +1 -1
  636. package/dist/views/afterAuth/page-view/index.js +1 -1
  637. package/dist/views/form-builder/custom-form/index.esm.js +1 -1
  638. package/dist/views/form-builder/custom-form/index.js +1 -1
  639. package/dist/views/form-builder/element-edit-forms/index.esm.js +1 -1
  640. package/dist/views/form-builder/element-edit-forms/index.js +1 -1
  641. package/dist/views/form-builder/form-fields/index.esm.js +1 -1
  642. package/dist/views/form-builder/form-fields/index.js +1 -1
  643. package/dist/views/form-builder/index.esm.js +4 -4
  644. package/dist/views/form-builder/index.js +4 -4
  645. package/dist/views/form-builder/redux/index.esm.js +1 -1
  646. package/dist/views/form-builder/redux/index.js +1 -1
  647. package/dist/views/index.esm.js +13 -13
  648. package/dist/views/index.js +13 -13
  649. package/dist/views/template-editor/add-template/index.esm.js +1 -1
  650. package/dist/views/template-editor/add-template/index.js +1 -1
  651. package/dist/views/template-editor/components/index.esm.js +1 -1
  652. package/dist/views/template-editor/components/index.js +1 -1
  653. package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
  654. package/dist/views/template-editor/edit-section-modal/index.js +1 -1
  655. package/dist/views/template-editor/index.esm.js +7 -7
  656. package/dist/views/template-editor/index.js +7 -7
  657. package/dist/views/template-editor/routes/index.esm.js +1 -1
  658. package/dist/views/template-editor/routes/index.js +1 -1
  659. package/dist/views/template-editor/template-modal/index.esm.js +1 -1
  660. package/dist/views/template-editor/template-modal/index.js +1 -1
  661. package/dist/views/template-editor/templates/index.esm.js +1 -1
  662. package/dist/views/template-editor/templates/index.js +1 -1
  663. package/package.json +1 -1
  664. package/dist/chunks/DonutChart-C2Ery9_3.js.map +0 -1
  665. package/dist/chunks/DonutChart-Clmcka3j.esm.js.map +0 -1
  666. package/dist/chunks/GroupBarChart-Bn6y6VUI.js.map +0 -1
  667. package/dist/chunks/GroupBarChart-ClbiQBtX.esm.js.map +0 -1
  668. package/dist/chunks/action-bar-DRuOqMix.esm.js.map +0 -1
  669. package/dist/chunks/action-bar-XuDGfw4M.js.map +0 -1
  670. package/dist/chunks/bar-chart-BrGEfSw-.esm.js.map +0 -1
  671. package/dist/chunks/bar-chart-fd78BXbm.js.map +0 -1
  672. package/dist/chunks/barLinechart-BPBiF7aN.esm.js.map +0 -1
  673. package/dist/chunks/barLinechart-BlANWhLn.js.map +0 -1
@@ -0,0 +1,720 @@
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import { Box, Button, CircularProgress, IconButton, Drawer, Collapse, Tooltip } from "@mui/material";
3
+ import { AlertTriangle, RotateCw, Building2, Sparkles, RefreshCw, Trophy, Flag, Info, AlertCircle, CheckCircle2, ListChecks, Receipt, ShieldCheck, Clock, TrendingUp, FileText, Award, Undo2, XCircle, ListOrdered, BarChart3, X, SlidersHorizontal, Table2, ChevronUp, ChevronDown } from "lucide-react";
4
+ import { A as AIDisclaimer } from "../../chunks/ai-disclaimer-kOtXrSve.esm.js";
5
+ import { useState, useRef, useEffect, useCallback, useMemo } from "react";
6
+ import { ab as getToken } from "../../chunks/api-C2k6vopQ.esm.js";
7
+ import { aK as postV1CustomerAnalysis } from "../../chunks/api-DcBMYwxM.esm.js";
8
+ import { Typography } from "@erpsquad/common/components/typography";
9
+ import AutoAwesomeIcon from "@mui/icons-material/AutoAwesome";
10
+ import { B as Button$1 } from "../../chunks/button-BtdpXmjA.esm.js";
11
+ import { usePermissions } from "@erpsquad/common/runtime";
12
+ const AISummarySkeleton = ({
13
+ blocks = [170, 90, 170],
14
+ message = "Analysing payments, credit, orders and quotes…",
15
+ animated = true,
16
+ className = ""
17
+ }) => /* @__PURE__ */ jsxs(
18
+ Box,
19
+ {
20
+ className: `ai-skeleton ${animated ? "ai-skeleton--animated" : ""} ${className}`,
21
+ role: "status",
22
+ "aria-live": "polite",
23
+ "aria-busy": "true",
24
+ children: [
25
+ blocks.map((h, i) => /* @__PURE__ */ jsx(Box, { className: "ai-skeleton__block", style: { height: h } }, i)),
26
+ message && /* @__PURE__ */ jsx("span", { className: "ai-skeleton__message", children: message })
27
+ ]
28
+ }
29
+ );
30
+ const AIErrorState = ({
31
+ title = "Couldn't load the analysis",
32
+ message = "The AI service is temporarily unavailable. It's safe to retry, and nothing you've entered is affected.",
33
+ onRetry,
34
+ isRetrying,
35
+ retryLabel = "Try again",
36
+ className = ""
37
+ }) => /* @__PURE__ */ jsxs(Box, { className: `ai-error ${className}`, role: "alert", children: [
38
+ /* @__PURE__ */ jsxs(Box, { className: "ai-error__row", children: [
39
+ /* @__PURE__ */ jsx("span", { className: "ai-error__icon", children: /* @__PURE__ */ jsx(AlertTriangle, { size: 13 }) }),
40
+ /* @__PURE__ */ jsxs(Box, { className: "ai-error__text", children: [
41
+ /* @__PURE__ */ jsx("span", { className: "ai-error__title", children: title }),
42
+ /* @__PURE__ */ jsx("span", { className: "ai-error__msg", children: message })
43
+ ] })
44
+ ] }),
45
+ onRetry && /* @__PURE__ */ jsx(
46
+ Button,
47
+ {
48
+ className: "ai-error__btn",
49
+ variant: "contained",
50
+ disableElevation: true,
51
+ onClick: onRetry,
52
+ disabled: isRetrying,
53
+ startIcon: isRetrying ? /* @__PURE__ */ jsx(CircularProgress, { size: 12, sx: { color: "#fff" } }) : /* @__PURE__ */ jsx(RotateCw, { size: 13 }),
54
+ children: isRetrying ? "Retrying…" : retryLabel
55
+ }
56
+ )
57
+ ] });
58
+ const getAnalysisError = (status) => {
59
+ switch (status) {
60
+ case 403:
61
+ return { message: "You don't have access to this company's data.", retryable: false };
62
+ case 404:
63
+ return { message: "This customer couldn't be found, or isn't set up as a Customer.", retryable: false };
64
+ case 409:
65
+ return { message: "This analysis is already running. Try again in a few seconds.", retryable: true };
66
+ case 422:
67
+ return { message: "The request wasn't valid. Check the selected customer and try again.", retryable: false };
68
+ case 429:
69
+ return { message: "Too many requests right now. Wait a moment, then try again.", retryable: true };
70
+ default:
71
+ return { message: "The AI service is temporarily unavailable. It's safe to retry, and nothing you've entered is affected.", retryable: true };
72
+ }
73
+ };
74
+ const RATING_META = {
75
+ Strong: { tone: "strong", lead: "Great relationship. Safe to transact freely." },
76
+ Healthy: { tone: "healthy", lead: "Solid relationship. No concerns." },
77
+ Watch: { tone: "watch", lead: "Warning signs. Caution advised." },
78
+ "At-risk": { tone: "risk", lead: "Real problems. Review before committing." },
79
+ New: { tone: "new", lead: "No order history yet, so there is no score." },
80
+ "Limited data": { tone: "new", lead: "Too little history yet, so there is no score." }
81
+ };
82
+ const METRICS$1 = [
83
+ { key: "payment", label: "Payment", Icon: Receipt },
84
+ { key: "credit", label: "Credit", Icon: ShieldCheck },
85
+ { key: "engagement", label: "Engagement", Icon: Clock },
86
+ { key: "purchase_trend", label: "Purchase trend", Icon: TrendingUp },
87
+ { key: "quote_conversion", label: "Quote conversion", Icon: FileText },
88
+ { key: "loyalty", label: "Loyalty", Icon: Award },
89
+ { key: "returns", label: "Returns", Icon: Undo2 },
90
+ { key: "rejected", label: "Rejected orders", Icon: XCircle }
91
+ ];
92
+ const SEVERITY_META$1 = {
93
+ critical: { label: "Critical", Icon: AlertCircle, order: 0 },
94
+ warning: { label: "Warning", Icon: AlertTriangle, order: 1 },
95
+ info: { label: "Note", Icon: Info, order: 2 }
96
+ };
97
+ const sortFlags = (flags) => [...flags].sort((a, b) => SEVERITY_META$1[a.severity].order - SEVERITY_META$1[b.severity].order);
98
+ const RatingChip$1 = ({ rating }) => /* @__PURE__ */ jsx("span", { className: `cai__chip cai__chip--${RATING_META[rating].tone}`, children: rating });
99
+ const SectionHeader = ({
100
+ Icon,
101
+ title,
102
+ right,
103
+ tone = "neutral"
104
+ }) => /* @__PURE__ */ jsxs(Box, { className: "cai__section-head", children: [
105
+ /* @__PURE__ */ jsx("span", { className: `cai__section-icon cai__section-icon--${tone}`, children: /* @__PURE__ */ jsx(Icon, { size: 12 }) }),
106
+ /* @__PURE__ */ jsx("span", { className: "cai__section-title", children: title }),
107
+ right && /* @__PURE__ */ jsx("span", { className: "cai__section-right", children: right })
108
+ ] });
109
+ const FlagsSection = ({ flags }) => /* @__PURE__ */ jsxs(Box, { className: "cai__card", children: [
110
+ /* @__PURE__ */ jsx(SectionHeader, { Icon: Flag, tone: "danger", title: "Flags", right: "Most severe first" }),
111
+ /* @__PURE__ */ jsx(Box, { className: "cai__flags", children: sortFlags(flags).map((f, i) => {
112
+ const { Icon, label } = SEVERITY_META$1[f.severity];
113
+ return /* @__PURE__ */ jsxs(Box, { className: `cai__flag cai__flag--${f.severity}`, children: [
114
+ /* @__PURE__ */ jsx("span", { className: "cai__flag-icon", children: /* @__PURE__ */ jsx(Icon, { size: 14 }) }),
115
+ /* @__PURE__ */ jsx("span", { className: "cai__flag-msg", children: f.message }),
116
+ /* @__PURE__ */ jsx("span", { className: `cai__pill cai__pill--${f.severity}`, children: label })
117
+ ] }, i);
118
+ }) })
119
+ ] });
120
+ const NoRisks = () => /* @__PURE__ */ jsxs(Box, { className: "cai__no-risk", children: [
121
+ /* @__PURE__ */ jsx(CheckCircle2, { size: 14 }),
122
+ /* @__PURE__ */ jsx("span", { children: "No risks flagged. Nothing to review before you save." })
123
+ ] });
124
+ const ActionsSection = ({ actions }) => /* @__PURE__ */ jsxs(Box, { className: "cai__card", children: [
125
+ /* @__PURE__ */ jsx(SectionHeader, { Icon: ListChecks, title: "Recommended actions" }),
126
+ /* @__PURE__ */ jsx(Box, { className: "cai__actions", children: actions.map((a, i) => /* @__PURE__ */ jsxs(Box, { className: "cai__action", children: [
127
+ /* @__PURE__ */ jsx("span", { className: "cai__action-num", children: i + 1 }),
128
+ /* @__PURE__ */ jsx("span", { className: "cai__action-text", children: a })
129
+ ] }, i)) })
130
+ ] });
131
+ const FactorsSection = ({ factors }) => /* @__PURE__ */ jsxs(Box, { className: "cai__card", children: [
132
+ /* @__PURE__ */ jsx(SectionHeader, { Icon: ListOrdered, title: "How the score was reached", right: `${METRICS$1.length} metrics` }),
133
+ /* @__PURE__ */ jsx(Box, { className: "cai__factors", children: METRICS$1.map(({ key, label, Icon }) => /* @__PURE__ */ jsxs(Box, { className: "cai__factor", children: [
134
+ /* @__PURE__ */ jsx("span", { className: "cai__factor-icon", children: /* @__PURE__ */ jsx(Icon, { size: 12 }) }),
135
+ /* @__PURE__ */ jsxs(Box, { className: "cai__factor-body", children: [
136
+ /* @__PURE__ */ jsx("span", { className: "cai__factor-label", children: label }),
137
+ /* @__PURE__ */ jsx("span", { className: "cai__factor-value", children: (factors == null ? void 0 : factors[key]) ?? "—" })
138
+ ] })
139
+ ] }, key)) })
140
+ ] });
141
+ const Footer = () => /* @__PURE__ */ jsx(Box, { className: "cai__footer", children: /* @__PURE__ */ jsx(AIDisclaimer, { showIcon: false, sx: { mt: 0 } }) });
142
+ const CustomerAISummary = ({
143
+ data,
144
+ isLoading,
145
+ isError,
146
+ errorStatus,
147
+ onRefresh,
148
+ isRefreshing,
149
+ customerId,
150
+ customerName
151
+ }) => {
152
+ var _a;
153
+ if (isLoading) return /* @__PURE__ */ jsx(Box, { className: "cai", children: /* @__PURE__ */ jsx(AISummarySkeleton, {}) });
154
+ if (isError) {
155
+ const { message, retryable } = getAnalysisError(errorStatus);
156
+ return /* @__PURE__ */ jsx(Box, { className: "cai", children: /* @__PURE__ */ jsx(
157
+ AIErrorState,
158
+ {
159
+ message,
160
+ onRetry: retryable ? onRefresh : void 0,
161
+ isRetrying: isRefreshing
162
+ }
163
+ ) });
164
+ }
165
+ if (!data) {
166
+ return /* @__PURE__ */ jsx(Box, { className: "cai__state", children: /* @__PURE__ */ jsx("span", { children: "No customer data available." }) });
167
+ }
168
+ if (data.mode === "recommendation") {
169
+ return /* @__PURE__ */ jsx(CustomerRecommendation, { data, onRefresh, isRefreshing });
170
+ }
171
+ const assessment = data.customer_assessments[0];
172
+ const firstFlag = data.flags[0];
173
+ const rating = (assessment == null ? void 0 : assessment.rating) ?? (/limited/i.test((firstFlag == null ? void 0 : firstFlag.message) ?? "") ? "Limited data" : "New");
174
+ const name = (assessment == null ? void 0 : assessment.customer_name) ?? (firstFlag == null ? void 0 : firstFlag.customer_name) ?? customerName ?? "Customer";
175
+ const id = (assessment == null ? void 0 : assessment.customer_id) ?? (firstFlag == null ? void 0 : firstFlag.customer_id) ?? customerId;
176
+ const score = (assessment == null ? void 0 : assessment.score) ?? null;
177
+ const tone = RATING_META[rating].tone;
178
+ const scored = !!assessment && score !== null;
179
+ return /* @__PURE__ */ jsxs(Box, { className: "cai", children: [
180
+ /* @__PURE__ */ jsxs(Box, { className: "cai__card cai__card--hero", children: [
181
+ /* @__PURE__ */ jsxs(Box, { className: "cai__head", children: [
182
+ /* @__PURE__ */ jsx("span", { className: "cai__avatar", children: /* @__PURE__ */ jsx(Building2, { size: 18, strokeWidth: 2, fill: "none" }) }),
183
+ /* @__PURE__ */ jsxs(Box, { className: "cai__head-text", children: [
184
+ /* @__PURE__ */ jsx("span", { className: "cai__name", title: name, children: name }),
185
+ /* @__PURE__ */ jsxs(Box, { className: "cai__chips", children: [
186
+ id !== void 0 && /* @__PURE__ */ jsxs("span", { className: "cai__chip cai__chip--id", children: [
187
+ "#",
188
+ id
189
+ ] }),
190
+ /* @__PURE__ */ jsx(RatingChip$1, { rating }),
191
+ /* @__PURE__ */ jsxs("span", { className: "cai__chip cai__chip--ai", children: [
192
+ /* @__PURE__ */ jsx(Sparkles, { size: 10 }),
193
+ "AI analysis"
194
+ ] })
195
+ ] })
196
+ ] }),
197
+ onRefresh && /* @__PURE__ */ jsx(IconButton, { size: "small", className: "cai__refresh", onClick: onRefresh, disabled: isRefreshing, "aria-label": "Refresh analysis", children: isRefreshing ? /* @__PURE__ */ jsx(CircularProgress, { size: 12 }) : /* @__PURE__ */ jsx(RefreshCw, { size: 13 }) })
198
+ ] }),
199
+ /* @__PURE__ */ jsxs(Box, { className: "cai__stats", children: [
200
+ /* @__PURE__ */ jsxs(Box, { className: "cai__stat", children: [
201
+ /* @__PURE__ */ jsx("span", { className: "cai__stat-label", children: "Score" }),
202
+ /* @__PURE__ */ jsx("span", { className: `cai__stat-value cai__text--${tone}`, children: scored ? /* @__PURE__ */ jsxs(Fragment, { children: [
203
+ score,
204
+ /* @__PURE__ */ jsx("small", { children: "/100" })
205
+ ] }) : "—" })
206
+ ] }),
207
+ /* @__PURE__ */ jsxs(Box, { className: "cai__stat", children: [
208
+ /* @__PURE__ */ jsx("span", { className: "cai__stat-label", children: "Rating" }),
209
+ /* @__PURE__ */ jsx("span", { className: `cai__stat-value cai__stat-value--sm cai__text--${tone}`, children: rating })
210
+ ] }),
211
+ /* @__PURE__ */ jsxs(Box, { className: "cai__stat", children: [
212
+ /* @__PURE__ */ jsx("span", { className: "cai__stat-label", children: "Flags raised" }),
213
+ /* @__PURE__ */ jsx("span", { className: `cai__stat-value ${data.flags.length ? "cai__text--risk" : ""}`, children: data.flags.length })
214
+ ] })
215
+ ] }),
216
+ scored && /* @__PURE__ */ jsx(Box, { className: "cai__bar", children: /* @__PURE__ */ jsx(Box, { className: `cai__bar-fill cai__bar-fill--${tone}`, style: { width: `${Math.max(0, Math.min(100, score))}%` } }) }),
217
+ /* @__PURE__ */ jsxs(Box, { className: "cai__summary", children: [
218
+ /* @__PURE__ */ jsxs("span", { className: "cai__summary-label", children: [
219
+ /* @__PURE__ */ jsx(Sparkles, { size: 11 }),
220
+ "Summary"
221
+ ] }),
222
+ /* @__PURE__ */ jsxs("p", { className: "cai__summary-text", children: [
223
+ RATING_META[rating].lead,
224
+ " ",
225
+ data.summary
226
+ ] })
227
+ ] })
228
+ ] }),
229
+ data.flags.length > 0 ? /* @__PURE__ */ jsx(FlagsSection, { flags: data.flags }) : scored && /* @__PURE__ */ jsx(NoRisks, {}),
230
+ ((_a = assessment == null ? void 0 : assessment.recommended_actions) == null ? void 0 : _a.length) ? /* @__PURE__ */ jsx(ActionsSection, { actions: assessment.recommended_actions }) : null,
231
+ assessment && /* @__PURE__ */ jsx(FactorsSection, { factors: assessment.factors }),
232
+ /* @__PURE__ */ jsx(Footer, {})
233
+ ] });
234
+ };
235
+ const CustomerRecommendation = ({ data, onRefresh, isRefreshing }) => /* @__PURE__ */ jsxs(Box, { className: "cai", children: [
236
+ /* @__PURE__ */ jsxs(Box, { className: "cai__card cai__card--hero", children: [
237
+ /* @__PURE__ */ jsxs(Box, { className: "cai__head", children: [
238
+ /* @__PURE__ */ jsx("span", { className: "cai__avatar", children: /* @__PURE__ */ jsx(Trophy, { size: 18 }) }),
239
+ /* @__PURE__ */ jsxs(Box, { className: "cai__head-text", children: [
240
+ /* @__PURE__ */ jsx("span", { className: "cai__name", children: "Top recommendations" }),
241
+ /* @__PURE__ */ jsxs(Box, { className: "cai__chips", children: [
242
+ /* @__PURE__ */ jsxs("span", { className: "cai__chip cai__chip--id", children: [
243
+ data.customer_assessments.length,
244
+ " ranked"
245
+ ] }),
246
+ /* @__PURE__ */ jsxs("span", { className: "cai__chip cai__chip--ai", children: [
247
+ /* @__PURE__ */ jsx(Sparkles, { size: 10 }),
248
+ "AI analysis"
249
+ ] })
250
+ ] })
251
+ ] }),
252
+ onRefresh && /* @__PURE__ */ jsx(IconButton, { size: "small", className: "cai__refresh", onClick: onRefresh, disabled: isRefreshing, "aria-label": "Refresh analysis", children: isRefreshing ? /* @__PURE__ */ jsx(CircularProgress, { size: 12 }) : /* @__PURE__ */ jsx(RefreshCw, { size: 13 }) })
253
+ ] }),
254
+ /* @__PURE__ */ jsxs(Box, { className: "cai__summary", children: [
255
+ /* @__PURE__ */ jsxs("span", { className: "cai__summary-label", children: [
256
+ /* @__PURE__ */ jsx(Sparkles, { size: 11 }),
257
+ "Summary"
258
+ ] }),
259
+ /* @__PURE__ */ jsx("p", { className: "cai__summary-text", children: data.summary })
260
+ ] })
261
+ ] }),
262
+ data.customer_assessments.map((a) => {
263
+ const tone = RATING_META[a.rating].tone;
264
+ return /* @__PURE__ */ jsxs(Box, { className: "cai__card cai__rank-card", children: [
265
+ /* @__PURE__ */ jsxs(Box, { className: "cai__rank-head", children: [
266
+ /* @__PURE__ */ jsx("span", { className: `cai__rank ${a.rank === 1 ? "cai__rank--first" : ""}`, children: a.rank }),
267
+ /* @__PURE__ */ jsx("span", { className: "cai__rank-name", children: a.customer_name ?? `#${a.customer_id}` }),
268
+ /* @__PURE__ */ jsx(RatingChip$1, { rating: a.rating }),
269
+ /* @__PURE__ */ jsx("span", { className: `cai__rank-score cai__text--${tone}`, children: a.score ?? "—" })
270
+ ] }),
271
+ a.score !== null && /* @__PURE__ */ jsx(Box, { className: "cai__bar", children: /* @__PURE__ */ jsx(Box, { className: `cai__bar-fill cai__bar-fill--${tone}`, style: { width: `${a.score}%` } }) }),
272
+ a.ranking_note && /* @__PURE__ */ jsx("p", { className: "cai__rank-note", children: a.ranking_note })
273
+ ] }, a.customer_id);
274
+ }),
275
+ data.flags.length > 0 ? /* @__PURE__ */ jsxs(Box, { className: "cai__card", children: [
276
+ /* @__PURE__ */ jsx(SectionHeader, { Icon: Flag, tone: "danger", title: "Flags", right: "Most severe first" }),
277
+ /* @__PURE__ */ jsx(Box, { className: "cai__flags", children: sortFlags(data.flags).map((f, i) => {
278
+ const { Icon, label } = SEVERITY_META$1[f.severity];
279
+ return /* @__PURE__ */ jsxs(Box, { className: `cai__flag cai__flag--${f.severity}`, children: [
280
+ /* @__PURE__ */ jsx("span", { className: "cai__flag-icon", children: /* @__PURE__ */ jsx(Icon, { size: 14 }) }),
281
+ /* @__PURE__ */ jsxs("span", { className: "cai__flag-msg", children: [
282
+ f.customer_name && /* @__PURE__ */ jsxs("strong", { children: [
283
+ f.customer_name,
284
+ ": "
285
+ ] }),
286
+ f.message
287
+ ] }),
288
+ /* @__PURE__ */ jsx("span", { className: `cai__pill cai__pill--${f.severity}`, children: label })
289
+ ] }, i);
290
+ }) })
291
+ ] }) : /* @__PURE__ */ jsx(NoRisks, {}),
292
+ /* @__PURE__ */ jsx(Footer, {})
293
+ ] });
294
+ const uuid = () => {
295
+ var _a, _b;
296
+ return ((_b = (_a = globalThis.crypto) == null ? void 0 : _a.randomUUID) == null ? void 0 : _b.call(_a)) ?? "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
297
+ const r = Math.random() * 16 | 0;
298
+ return (c === "x" ? r : r & 3 | 8).toString(16);
299
+ });
300
+ };
301
+ const MAX_CACHED = 50;
302
+ const cache = /* @__PURE__ */ new Map();
303
+ const inflight = /* @__PURE__ */ new Map();
304
+ const remember = (key, data) => {
305
+ const entry = { data, computedAt: /* @__PURE__ */ new Date() };
306
+ cache.delete(key);
307
+ cache.set(key, entry);
308
+ if (cache.size > MAX_CACHED) cache.delete(cache.keys().next().value);
309
+ return entry;
310
+ };
311
+ const useCustomerAnalysis = (request) => {
312
+ const reqKey = request ? JSON.stringify(request) : "";
313
+ const [data, setData] = useState(() => {
314
+ var _a;
315
+ return ((_a = cache.get(reqKey)) == null ? void 0 : _a.data) ?? null;
316
+ });
317
+ const [isLoading, setIsLoading] = useState(false);
318
+ const [isRefreshing, setIsRefreshing] = useState(false);
319
+ const [error, setError] = useState(null);
320
+ const [computedAt, setComputedAt] = useState(() => {
321
+ var _a;
322
+ return (_a = cache.get(reqKey)) == null ? void 0 : _a.computedAt;
323
+ });
324
+ const idemKey = useRef(uuid());
325
+ const mounted = useRef(true);
326
+ useEffect(() => () => {
327
+ mounted.current = false;
328
+ }, []);
329
+ const run = useCallback(async (refresh = false) => {
330
+ if (!request) return;
331
+ if (!refresh && cache.has(reqKey)) return;
332
+ refresh ? setIsRefreshing(true) : setIsLoading(true);
333
+ setError(null);
334
+ if (refresh) idemKey.current = uuid();
335
+ let pending = !refresh ? inflight.get(reqKey) : void 0;
336
+ if (!pending) {
337
+ pending = postV1CustomerAnalysis({
338
+ companyId: request.company_id,
339
+ customerIds: request.customer_ids,
340
+ metricRanking: request.metric_ranking,
341
+ idempotencyKey: idemKey.current,
342
+ ...getToken()
343
+ }).finally(() => inflight.delete(reqKey));
344
+ inflight.set(reqKey, pending);
345
+ }
346
+ try {
347
+ const result = await pending;
348
+ const entry = remember(reqKey, result);
349
+ if (!mounted.current) return;
350
+ setData(entry.data);
351
+ setComputedAt(entry.computedAt);
352
+ } catch (e) {
353
+ if (mounted.current) setError({ status: e == null ? void 0 : e.status, message: (e == null ? void 0 : e.message) || "Something went wrong" });
354
+ } finally {
355
+ if (mounted.current) {
356
+ setIsLoading(false);
357
+ setIsRefreshing(false);
358
+ }
359
+ }
360
+ }, [reqKey]);
361
+ useEffect(() => {
362
+ idemKey.current = uuid();
363
+ const cached = cache.get(reqKey);
364
+ setData((cached == null ? void 0 : cached.data) ?? null);
365
+ setComputedAt(cached == null ? void 0 : cached.computedAt);
366
+ run(false);
367
+ }, [run]);
368
+ return { data, isLoading, isRefreshing, error, computedAt, refresh: () => run(true) };
369
+ };
370
+ const CustomerAIProfile = ({
371
+ companyId,
372
+ customerId,
373
+ customerName,
374
+ metricRanking
375
+ }) => {
376
+ const request = useMemo(
377
+ () => customerId && companyId ? { company_id: companyId, customer_ids: [Number(customerId)], ...metricRanking ? { metric_ranking: metricRanking } : {} } : null,
378
+ [companyId, customerId, metricRanking]
379
+ );
380
+ const { data, isLoading, isRefreshing, error, refresh } = useCustomerAnalysis(request);
381
+ if (!customerId) {
382
+ return /* @__PURE__ */ jsx(Box, { className: "cai__state", children: /* @__PURE__ */ jsx("span", { children: "Select a customer to see the AI profile." }) });
383
+ }
384
+ if (!companyId) {
385
+ return /* @__PURE__ */ jsx(Box, { className: "cai__state", children: /* @__PURE__ */ jsx("span", { children: "Company details aren't available, so the AI profile can't be loaded." }) });
386
+ }
387
+ return /* @__PURE__ */ jsx(Box, { sx: { width: "100%" }, children: /* @__PURE__ */ jsx(
388
+ CustomerAISummary,
389
+ {
390
+ data,
391
+ isLoading: isLoading || !data && !error,
392
+ isError: !!error,
393
+ errorStatus: error == null ? void 0 : error.status,
394
+ onRefresh: refresh,
395
+ isRefreshing,
396
+ customerId: Number(customerId),
397
+ customerName
398
+ }
399
+ ) });
400
+ };
401
+ const CustomerAITabLabel = () => {
402
+ return /* @__PURE__ */ jsxs(Box, { sx: {
403
+ display: "flex",
404
+ alignItems: "center",
405
+ gap: 1,
406
+ color: "#7b3bf2"
407
+ }, children: [
408
+ /* @__PURE__ */ jsx(AutoAwesomeIcon, { sx: { fontSize: 18 } }),
409
+ /* @__PURE__ */ jsx(Typography, { type: "s3", weight: "medium", color: "inherit", children: "Customer Profile" })
410
+ ] });
411
+ };
412
+ const METRICS = [
413
+ { key: "payment", label: "Payment", Icon: Receipt },
414
+ { key: "engagement", label: "Engagement", Icon: Clock },
415
+ { key: "credit", label: "Credit", Icon: ShieldCheck },
416
+ { key: "purchase_trend", label: "Purchase trend", Icon: TrendingUp },
417
+ { key: "quote_conversion", label: "Quote conversion", Icon: FileText },
418
+ { key: "loyalty", label: "Loyalty", Icon: Award },
419
+ { key: "returns", label: "Returns", Icon: Undo2 },
420
+ { key: "rejected", label: "Rejected orders", Icon: XCircle }
421
+ ];
422
+ const DEFAULT_WEIGHTS = {
423
+ payment: 5,
424
+ credit: 4,
425
+ engagement: 5,
426
+ purchase_trend: 4,
427
+ quote_conversion: 3,
428
+ loyalty: 3,
429
+ returns: 2,
430
+ rejected: 2
431
+ };
432
+ const CUSTOMER_AI_METRIC_RANKING = {
433
+ opportunity: { payment: 3, credit: 3, engagement: 5, purchase_trend: 4, quote_conversion: 5, loyalty: 4, returns: 1, rejected: 1 },
434
+ quotation: { payment: 4, credit: 4, engagement: 3, purchase_trend: 3, quote_conversion: 5, loyalty: 3, returns: 2, rejected: 2 },
435
+ salesOrder: { payment: 5, credit: 5, engagement: 2, purchase_trend: 2, loyalty: 3, returns: 3, rejected: 4 },
436
+ salesInvoice: { payment: 5, credit: 5, engagement: 2, purchase_trend: 3, loyalty: 3, returns: 3, rejected: 1 },
437
+ deliveryOrder: { payment: 5, credit: 5, engagement: 2, purchase_trend: 2, loyalty: 3, returns: 4, rejected: 2 }
438
+ };
439
+ const toMetricRanking = (w) => Object.fromEntries(Object.entries(w).filter(([, v]) => v > 0));
440
+ const RATING_TONE = {
441
+ Strong: "strong",
442
+ Healthy: "healthy",
443
+ Watch: "watch",
444
+ "At-risk": "risk",
445
+ New: "new",
446
+ "Limited data": "new"
447
+ };
448
+ const SEVERITY_META = {
449
+ critical: { label: "Critical", Icon: AlertCircle, order: 0 },
450
+ warning: { label: "Warning", Icon: AlertTriangle, order: 1 },
451
+ info: { label: "Note", Icon: Info, order: 2 }
452
+ };
453
+ const timeAgo = (date) => {
454
+ if (!date) return "just now";
455
+ const s = Math.floor((Date.now() - new Date(date).getTime()) / 1e3);
456
+ if (s < 60) return "just now";
457
+ if (s < 3600) return `${Math.floor(s / 60)} min ago`;
458
+ if (s < 86400) return `${Math.floor(s / 3600)} hr ago`;
459
+ return new Date(date).toLocaleDateString();
460
+ };
461
+ const RatingChip = ({ rating }) => /* @__PURE__ */ jsx("span", { className: `ccd__chip ccd__chip--${RATING_TONE[rating]}`, children: rating });
462
+ const CardHead = ({
463
+ Icon,
464
+ title,
465
+ right,
466
+ tone = "neutral",
467
+ onToggle,
468
+ expanded
469
+ }) => /* @__PURE__ */ jsxs(Box, { className: `ccd__card-head ${onToggle ? "ccd__card-head--click" : ""}`, onClick: onToggle, children: [
470
+ /* @__PURE__ */ jsx("span", { className: `ccd__head-icon ccd__head-icon--${tone}`, children: /* @__PURE__ */ jsx(Icon, { size: 12 }) }),
471
+ /* @__PURE__ */ jsx("span", { className: "ccd__card-title", children: title }),
472
+ right && /* @__PURE__ */ jsx("span", { className: "ccd__card-right", children: right }),
473
+ onToggle && (expanded ? /* @__PURE__ */ jsx(ChevronUp, { size: 14, className: "ccd__chev" }) : /* @__PURE__ */ jsx(ChevronDown, { size: 14, className: "ccd__chev" }))
474
+ ] });
475
+ const WeightDots = ({ value, onChange }) => /* @__PURE__ */ jsx("span", { className: "ccd__dots", children: [1, 2, 3, 4, 5].map((n) => /* @__PURE__ */ jsx(
476
+ "button",
477
+ {
478
+ type: "button",
479
+ className: `ccd__dot ${n <= value ? "ccd__dot--on" : ""}`,
480
+ onClick: () => onChange(n === value ? 0 : n),
481
+ "aria-label": `Set importance to ${n}`
482
+ },
483
+ n
484
+ )) });
485
+ const CustomerCompareDrawer = ({
486
+ open,
487
+ onClose,
488
+ companyId,
489
+ customers
490
+ }) => {
491
+ const [focusOpen, setFocusOpen] = useState(false);
492
+ const [draft, setDraft] = useState({ ...DEFAULT_WEIGHTS });
493
+ const [applied, setApplied] = useState({ ...DEFAULT_WEIGHTS });
494
+ const customerIds = useMemo(
495
+ () => Array.from(new Set(customers.map((c) => Number(c.id)).filter(Boolean))).slice(0, 10),
496
+ [customers]
497
+ );
498
+ const idsKey = customerIds.join(",");
499
+ const request = useMemo(
500
+ () => open && companyId && customerIds.length >= 2 ? { company_id: companyId, customer_ids: customerIds, metric_ranking: toMetricRanking(applied) } : null,
501
+ // eslint-disable-next-line react-hooks/exhaustive-deps
502
+ [open, idsKey, companyId, applied]
503
+ );
504
+ const { data, isLoading, isRefreshing, error, refresh } = useCustomerAnalysis(request);
505
+ const dirty = JSON.stringify(draft) !== JSON.stringify(applied);
506
+ const allOff = Object.values(draft).every((v) => v === 0);
507
+ const busy = isLoading || isRefreshing || !!request && !data && !error;
508
+ const rerun = () => dirty ? setApplied({ ...draft }) : refresh();
509
+ const assessments = [...(data == null ? void 0 : data.customer_assessments) ?? []].sort((a, b) => (a.rank ?? 99) - (b.rank ?? 99));
510
+ const assessedIds = new Set(assessments.map((a) => a.customer_id));
511
+ const nameOf = (id) => {
512
+ var _a, _b, _c;
513
+ return ((_a = assessments.find((a) => a.customer_id === id)) == null ? void 0 : _a.customer_name) ?? ((_b = data == null ? void 0 : data.flags.find((f) => f.customer_id === id && f.customer_name)) == null ? void 0 : _b.customer_name) ?? ((_c = customers.find((c) => Number(c.id) === id)) == null ? void 0 : _c.name) ?? `#${id}`;
514
+ };
515
+ const unscored = useMemo(() => {
516
+ const seen = /* @__PURE__ */ new Set();
517
+ return ((data == null ? void 0 : data.flags) ?? []).filter((f) => !assessedIds.has(f.customer_id) && !seen.has(f.customer_id) && seen.add(f.customer_id)).map((f) => ({
518
+ id: f.customer_id,
519
+ rating: f.severity === "info" ? /limited/i.test(f.message) ? "Limited data" : "New" : null
520
+ }));
521
+ }, [data]);
522
+ const flags = [...(data == null ? void 0 : data.flags) ?? []].sort((a, b) => SEVERITY_META[a.severity].order - SEVERITY_META[b.severity].order);
523
+ const trimmed = customerIds.length > 3;
524
+ return /* @__PURE__ */ jsx(
525
+ Drawer,
526
+ {
527
+ anchor: "right",
528
+ open,
529
+ onClose,
530
+ PaperProps: { className: "ccd__paper" },
531
+ ModalProps: { keepMounted: false },
532
+ sx: { zIndex: 2e3 },
533
+ children: /* @__PURE__ */ jsxs(Box, { className: "ccd", children: [
534
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__header", children: [
535
+ /* @__PURE__ */ jsx("span", { className: "ccd__avatar", children: /* @__PURE__ */ jsx(BarChart3, { size: 18 }) }),
536
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__header-text", children: [
537
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__title-row", children: [
538
+ /* @__PURE__ */ jsx("span", { className: "ccd__title", children: "Compare customers" }),
539
+ /* @__PURE__ */ jsxs("span", { className: "ccd__chip ccd__chip--ai", children: [
540
+ /* @__PURE__ */ jsx(Sparkles, { size: 10 }),
541
+ "AI analysis"
542
+ ] })
543
+ ] }),
544
+ /* @__PURE__ */ jsxs("span", { className: "ccd__subtitle", children: [
545
+ customerIds.length,
546
+ " customers compared · ranked best to worst",
547
+ trimmed ? " · top 3 shown" : ""
548
+ ] })
549
+ ] }),
550
+ /* @__PURE__ */ jsx(IconButton, { size: "small", className: "ccd__close", onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ jsx(X, { size: 15 }) })
551
+ ] }),
552
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__body", children: [
553
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__card ccd__card--focus", children: [
554
+ /* @__PURE__ */ jsx(
555
+ CardHead,
556
+ {
557
+ Icon: SlidersHorizontal,
558
+ title: "Scoring focus",
559
+ right: "Importance from 1 (low) to 5 (high)",
560
+ onToggle: () => setFocusOpen((v) => !v),
561
+ expanded: focusOpen
562
+ }
563
+ ),
564
+ /* @__PURE__ */ jsxs(Collapse, { in: focusOpen, children: [
565
+ /* @__PURE__ */ jsx(Box, { className: "ccd__weights", children: METRICS.map(({ key, label }) => /* @__PURE__ */ jsxs(Box, { className: `ccd__weight ${draft[key] === 0 ? "ccd__weight--off" : ""}`, children: [
566
+ /* @__PURE__ */ jsx("span", { className: "ccd__weight-label", children: label }),
567
+ /* @__PURE__ */ jsx(WeightDots, { value: draft[key], onChange: (v) => setDraft((d) => ({ ...d, [key]: v })) }),
568
+ /* @__PURE__ */ jsx("span", { className: "ccd__weight-num", children: draft[key] || "Off" })
569
+ ] }, key)) }),
570
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__weight-actions", children: [
571
+ /* @__PURE__ */ jsx(Button, { className: "ccd__btn ccd__btn--ghost", onClick: () => setDraft({ ...DEFAULT_WEIGHTS }), children: "Reset to default weights" }),
572
+ /* @__PURE__ */ jsx(
573
+ Button,
574
+ {
575
+ className: "ccd__btn ccd__btn--primary",
576
+ onClick: rerun,
577
+ disabled: busy || allOff,
578
+ startIcon: busy ? /* @__PURE__ */ jsx(CircularProgress, { size: 11, sx: { color: "#7c3aed" } }) : /* @__PURE__ */ jsx(Sparkles, { size: 12 }),
579
+ children: "Re-run comparison"
580
+ }
581
+ )
582
+ ] })
583
+ ] })
584
+ ] }),
585
+ busy ? /* @__PURE__ */ jsx(AISummarySkeleton, { blocks: [90, 150, 90, 240], message: "Comparing payments, credit, orders and quotes…" }) : error ? (() => {
586
+ const { message, retryable } = getAnalysisError(error.status);
587
+ return /* @__PURE__ */ jsx(AIErrorState, { message, onRetry: retryable ? refresh : void 0, isRetrying: isRefreshing });
588
+ })() : data ? /* @__PURE__ */ jsxs(Fragment, { children: [
589
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__card", children: [
590
+ /* @__PURE__ */ jsxs("span", { className: "ccd__summary-label", children: [
591
+ /* @__PURE__ */ jsx(Sparkles, { size: 11 }),
592
+ "Summary"
593
+ ] }),
594
+ /* @__PURE__ */ jsx("p", { className: "ccd__summary-text", children: data.summary })
595
+ ] }),
596
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__card", children: [
597
+ /* @__PURE__ */ jsx(CardHead, { Icon: Trophy, tone: "green", title: "Ranking", right: "Scored on all selected metrics" }),
598
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__ranking", children: [
599
+ assessments.map((a) => {
600
+ const tone = RATING_TONE[a.rating];
601
+ return /* @__PURE__ */ jsxs(Box, { className: "ccd__rank-row", children: [
602
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__rank-top", children: [
603
+ /* @__PURE__ */ jsx("span", { className: `ccd__rank-badge ${a.rank === 1 ? "ccd__rank-badge--first" : ""}`, children: a.rank }),
604
+ /* @__PURE__ */ jsx("span", { className: "ccd__rank-name", title: nameOf(a.customer_id), children: nameOf(a.customer_id) }),
605
+ /* @__PURE__ */ jsx(RatingChip, { rating: a.rating }),
606
+ /* @__PURE__ */ jsxs("span", { className: "ccd__rank-score", children: [
607
+ /* @__PURE__ */ jsx("small", { children: "Score" }),
608
+ /* @__PURE__ */ jsxs("b", { className: `ccd__text--${tone}`, children: [
609
+ a.score ?? "—",
610
+ /* @__PURE__ */ jsx("em", { children: "/100" })
611
+ ] })
612
+ ] })
613
+ ] }),
614
+ a.score !== null && /* @__PURE__ */ jsx(Box, { className: "ccd__bar", children: /* @__PURE__ */ jsx(Box, { className: `ccd__bar-fill ccd__bar-fill--${tone}`, style: { width: `${a.score}%` } }) }),
615
+ a.ranking_note && /* @__PURE__ */ jsx("span", { className: "ccd__rank-note", children: a.ranking_note })
616
+ ] }, a.customer_id);
617
+ }),
618
+ unscored.map((u) => /* @__PURE__ */ jsx(Box, { className: "ccd__rank-row ccd__rank-row--unscored", children: /* @__PURE__ */ jsxs(Box, { className: "ccd__rank-top", children: [
619
+ /* @__PURE__ */ jsx("span", { className: "ccd__rank-badge", children: "–" }),
620
+ /* @__PURE__ */ jsx("span", { className: "ccd__rank-name", children: nameOf(u.id) }),
621
+ u.rating && /* @__PURE__ */ jsx(RatingChip, { rating: u.rating }),
622
+ /* @__PURE__ */ jsxs("span", { className: "ccd__rank-score", children: [
623
+ /* @__PURE__ */ jsx("small", { children: "Score" }),
624
+ /* @__PURE__ */ jsx("b", { children: "—" })
625
+ ] })
626
+ ] }) }, u.id))
627
+ ] })
628
+ ] }),
629
+ flags.length > 0 && /* @__PURE__ */ jsxs(Box, { className: "ccd__card", children: [
630
+ /* @__PURE__ */ jsx(CardHead, { Icon: Flag, tone: "danger", title: "Flags", right: "Most severe first" }),
631
+ /* @__PURE__ */ jsx(Box, { className: "ccd__flags", children: flags.map((f, i) => {
632
+ const { Icon, label } = SEVERITY_META[f.severity];
633
+ return /* @__PURE__ */ jsxs(Box, { className: `ccd__flag ccd__flag--${f.severity}`, children: [
634
+ /* @__PURE__ */ jsx("span", { className: "ccd__flag-icon", children: /* @__PURE__ */ jsx(Icon, { size: 13 }) }),
635
+ /* @__PURE__ */ jsxs(Box, { className: "ccd__flag-body", children: [
636
+ /* @__PURE__ */ jsx("span", { className: "ccd__flag-who", children: f.customer_name ?? nameOf(f.customer_id) }),
637
+ /* @__PURE__ */ jsx("span", { className: "ccd__flag-msg", children: f.message })
638
+ ] }),
639
+ /* @__PURE__ */ jsx("span", { className: `ccd__pill ccd__pill--${f.severity}`, children: label })
640
+ ] }, i);
641
+ }) })
642
+ ] }),
643
+ assessments.length > 0 && /* @__PURE__ */ jsxs(Box, { className: "ccd__card", children: [
644
+ /* @__PURE__ */ jsx(CardHead, { Icon: Table2, title: "Metric by metric", right: "Text exactly as returned by the API" }),
645
+ /* @__PURE__ */ jsx(Box, { className: "ccd__table-wrap", children: /* @__PURE__ */ jsxs("table", { className: "ccd__table", children: [
646
+ /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
647
+ /* @__PURE__ */ jsx("th", { children: "Metric" }),
648
+ assessments.map((a) => /* @__PURE__ */ jsxs("th", { children: [
649
+ a.rank,
650
+ ". ",
651
+ nameOf(a.customer_id)
652
+ ] }, a.customer_id))
653
+ ] }) }),
654
+ /* @__PURE__ */ jsx("tbody", { children: METRICS.map(({ key, label, Icon }) => /* @__PURE__ */ jsxs("tr", { className: applied[key] === 0 ? "ccd__tr--off" : "", children: [
655
+ /* @__PURE__ */ jsxs("td", { className: "ccd__metric-cell", children: [
656
+ /* @__PURE__ */ jsx("span", { className: "ccd__metric-icon", children: /* @__PURE__ */ jsx(Icon, { size: 12 }) }),
657
+ /* @__PURE__ */ jsxs("span", { className: "ccd__metric-text", children: [
658
+ /* @__PURE__ */ jsx("b", { children: label }),
659
+ /* @__PURE__ */ jsx("small", { children: applied[key] ? `Focus ${applied[key]} of 5` : "Not scored" })
660
+ ] })
661
+ ] }),
662
+ assessments.map((a) => {
663
+ var _a;
664
+ return /* @__PURE__ */ jsx("td", { children: ((_a = a.factors) == null ? void 0 : _a[key]) ?? "—" }, a.customer_id);
665
+ })
666
+ ] }, key)) })
667
+ ] }) })
668
+ ] }),
669
+ /* @__PURE__ */ jsx(AIDisclaimer, { showIcon: false, sx: { mt: 0 } })
670
+ ] }) : null
671
+ ] })
672
+ ] })
673
+ }
674
+ );
675
+ };
676
+ const getCustomerProfilingAccess = (permissions) => {
677
+ var _a, _b;
678
+ return Boolean((_b = (_a = permissions == null ? void 0 : permissions.CustomerProfiling) == null ? void 0 : _a.customeranalysis) == null ? void 0 : _b.canAdd);
679
+ };
680
+ const useCustomerProfilingAccess = () => getCustomerProfilingAccess(usePermissions());
681
+ const AI_BUTTON_SX = {
682
+ color: "#7b3bf2 !important",
683
+ borderColor: "#7b3bf2 !important",
684
+ bgcolor: "#f3ecfe !important",
685
+ whiteSpace: "nowrap",
686
+ "&:hover": { bgcolor: "#ebdffc !important" }
687
+ };
688
+ const CompareCustomersButton = ({ count, onClick, max = 10 }) => {
689
+ const canUseCustomerProfiling = useCustomerProfilingAccess();
690
+ if (!canUseCustomerProfiling || count < 2) return null;
691
+ const disabled = count > max;
692
+ const btn = /* @__PURE__ */ jsxs(Button$1, { variant: "outlined", startIcon: /* @__PURE__ */ jsx(AutoAwesomeIcon, {}), onClick, disabled, sx: AI_BUTTON_SX, children: [
693
+ "Compare ",
694
+ count,
695
+ " customers"
696
+ ] });
697
+ return disabled ? /* @__PURE__ */ jsx(Tooltip, { title: `You can compare up to ${max} customers at a time`, children: /* @__PURE__ */ jsx("span", { children: btn }) }) : btn;
698
+ };
699
+ export {
700
+ AIErrorState,
701
+ AISummarySkeleton,
702
+ CUSTOMER_AI_METRIC_RANKING,
703
+ CompareCustomersButton,
704
+ CustomerAIProfile,
705
+ CustomerAISummary,
706
+ CustomerAITabLabel,
707
+ CustomerCompareDrawer,
708
+ DEFAULT_WEIGHTS,
709
+ METRICS,
710
+ RATING_TONE,
711
+ SEVERITY_META,
712
+ CustomerAISummary as default,
713
+ getAnalysisError,
714
+ getCustomerProfilingAccess,
715
+ timeAgo,
716
+ toMetricRanking,
717
+ useCustomerAnalysis,
718
+ useCustomerProfilingAccess
719
+ };
720
+ //# sourceMappingURL=index.esm.js.map