@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
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const material = require("@mui/material");
5
+ const lucideReact = require("lucide-react");
6
+ const aiDisclaimer = require("../../chunks/ai-disclaimer-DAecPGGI.js");
7
+ const React = require("react");
8
+ const api$1 = require("../../chunks/api-BE9Hlg3S.js");
9
+ const api = require("../../chunks/api-eLqkjqEz.js");
10
+ const typography = require("@erpsquad/common/components/typography");
11
+ const AutoAwesomeIcon = require("@mui/icons-material/AutoAwesome");
12
+ const button = require("../../chunks/button-CYiSRppg.js");
13
+ const runtime = require("@erpsquad/common/runtime");
14
+ const AISummarySkeleton = ({
15
+ blocks = [170, 90, 170],
16
+ message = "Analysing payments, credit, orders and quotes…",
17
+ animated = true,
18
+ className = ""
19
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(
20
+ material.Box,
21
+ {
22
+ className: `ai-skeleton ${animated ? "ai-skeleton--animated" : ""} ${className}`,
23
+ role: "status",
24
+ "aria-live": "polite",
25
+ "aria-busy": "true",
26
+ children: [
27
+ blocks.map((h, i) => /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "ai-skeleton__block", style: { height: h } }, i)),
28
+ message && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ai-skeleton__message", children: message })
29
+ ]
30
+ }
31
+ );
32
+ const AIErrorState = ({
33
+ title = "Couldn't load the analysis",
34
+ message = "The AI service is temporarily unavailable. It's safe to retry, and nothing you've entered is affected.",
35
+ onRetry,
36
+ isRetrying,
37
+ retryLabel = "Try again",
38
+ className = ""
39
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: `ai-error ${className}`, role: "alert", children: [
40
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ai-error__row", children: [
41
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ai-error__icon", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertTriangle, { size: 13 }) }),
42
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ai-error__text", children: [
43
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ai-error__title", children: title }),
44
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ai-error__msg", children: message })
45
+ ] })
46
+ ] }),
47
+ onRetry && /* @__PURE__ */ jsxRuntime.jsx(
48
+ material.Button,
49
+ {
50
+ className: "ai-error__btn",
51
+ variant: "contained",
52
+ disableElevation: true,
53
+ onClick: onRetry,
54
+ disabled: isRetrying,
55
+ startIcon: isRetrying ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 12, sx: { color: "#fff" } }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCw, { size: 13 }),
56
+ children: isRetrying ? "Retrying…" : retryLabel
57
+ }
58
+ )
59
+ ] });
60
+ const getAnalysisError = (status) => {
61
+ switch (status) {
62
+ case 403:
63
+ return { message: "You don't have access to this company's data.", retryable: false };
64
+ case 404:
65
+ return { message: "This customer couldn't be found, or isn't set up as a Customer.", retryable: false };
66
+ case 409:
67
+ return { message: "This analysis is already running. Try again in a few seconds.", retryable: true };
68
+ case 422:
69
+ return { message: "The request wasn't valid. Check the selected customer and try again.", retryable: false };
70
+ case 429:
71
+ return { message: "Too many requests right now. Wait a moment, then try again.", retryable: true };
72
+ default:
73
+ return { message: "The AI service is temporarily unavailable. It's safe to retry, and nothing you've entered is affected.", retryable: true };
74
+ }
75
+ };
76
+ const RATING_META = {
77
+ Strong: { tone: "strong", lead: "Great relationship. Safe to transact freely." },
78
+ Healthy: { tone: "healthy", lead: "Solid relationship. No concerns." },
79
+ Watch: { tone: "watch", lead: "Warning signs. Caution advised." },
80
+ "At-risk": { tone: "risk", lead: "Real problems. Review before committing." },
81
+ New: { tone: "new", lead: "No order history yet, so there is no score." },
82
+ "Limited data": { tone: "new", lead: "Too little history yet, so there is no score." }
83
+ };
84
+ const METRICS$1 = [
85
+ { key: "payment", label: "Payment", Icon: lucideReact.Receipt },
86
+ { key: "credit", label: "Credit", Icon: lucideReact.ShieldCheck },
87
+ { key: "engagement", label: "Engagement", Icon: lucideReact.Clock },
88
+ { key: "purchase_trend", label: "Purchase trend", Icon: lucideReact.TrendingUp },
89
+ { key: "quote_conversion", label: "Quote conversion", Icon: lucideReact.FileText },
90
+ { key: "loyalty", label: "Loyalty", Icon: lucideReact.Award },
91
+ { key: "returns", label: "Returns", Icon: lucideReact.Undo2 },
92
+ { key: "rejected", label: "Rejected orders", Icon: lucideReact.XCircle }
93
+ ];
94
+ const SEVERITY_META$1 = {
95
+ critical: { label: "Critical", Icon: lucideReact.AlertCircle, order: 0 },
96
+ warning: { label: "Warning", Icon: lucideReact.AlertTriangle, order: 1 },
97
+ info: { label: "Note", Icon: lucideReact.Info, order: 2 }
98
+ };
99
+ const sortFlags = (flags) => [...flags].sort((a, b) => SEVERITY_META$1[a.severity].order - SEVERITY_META$1[b.severity].order);
100
+ const RatingChip$1 = ({ rating }) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: `cai__chip cai__chip--${RATING_META[rating].tone}`, children: rating });
101
+ const SectionHeader = ({
102
+ Icon,
103
+ title,
104
+ right,
105
+ tone = "neutral"
106
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__section-head", children: [
107
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `cai__section-icon cai__section-icon--${tone}`, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 12 }) }),
108
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__section-title", children: title }),
109
+ right && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__section-right", children: right })
110
+ ] });
111
+ const FlagsSection = ({ flags }) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__card", children: [
112
+ /* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { Icon: lucideReact.Flag, tone: "danger", title: "Flags", right: "Most severe first" }),
113
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai__flags", children: sortFlags(flags).map((f, i) => {
114
+ const { Icon, label } = SEVERITY_META$1[f.severity];
115
+ return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: `cai__flag cai__flag--${f.severity}`, children: [
116
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__flag-icon", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 14 }) }),
117
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__flag-msg", children: f.message }),
118
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `cai__pill cai__pill--${f.severity}`, children: label })
119
+ ] }, i);
120
+ }) })
121
+ ] });
122
+ const NoRisks = () => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__no-risk", children: [
123
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { size: 14 }),
124
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "No risks flagged. Nothing to review before you save." })
125
+ ] });
126
+ const ActionsSection = ({ actions }) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__card", children: [
127
+ /* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { Icon: lucideReact.ListChecks, title: "Recommended actions" }),
128
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai__actions", children: actions.map((a, i) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__action", children: [
129
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__action-num", children: i + 1 }),
130
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__action-text", children: a })
131
+ ] }, i)) })
132
+ ] });
133
+ const FactorsSection = ({ factors }) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__card", children: [
134
+ /* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { Icon: lucideReact.ListOrdered, title: "How the score was reached", right: `${METRICS$1.length} metrics` }),
135
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai__factors", children: METRICS$1.map(({ key, label, Icon }) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__factor", children: [
136
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__factor-icon", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 12 }) }),
137
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__factor-body", children: [
138
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__factor-label", children: label }),
139
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__factor-value", children: (factors == null ? void 0 : factors[key]) ?? "—" })
140
+ ] })
141
+ ] }, key)) })
142
+ ] });
143
+ const Footer = () => /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai__footer", children: /* @__PURE__ */ jsxRuntime.jsx(aiDisclaimer.AIDisclaimer, { showIcon: false, sx: { mt: 0 } }) });
144
+ const CustomerAISummary = ({
145
+ data,
146
+ isLoading,
147
+ isError,
148
+ errorStatus,
149
+ onRefresh,
150
+ isRefreshing,
151
+ customerId,
152
+ customerName
153
+ }) => {
154
+ var _a;
155
+ if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai", children: /* @__PURE__ */ jsxRuntime.jsx(AISummarySkeleton, {}) });
156
+ if (isError) {
157
+ const { message, retryable } = getAnalysisError(errorStatus);
158
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai", children: /* @__PURE__ */ jsxRuntime.jsx(
159
+ AIErrorState,
160
+ {
161
+ message,
162
+ onRetry: retryable ? onRefresh : void 0,
163
+ isRetrying: isRefreshing
164
+ }
165
+ ) });
166
+ }
167
+ if (!data) {
168
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai__state", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: "No customer data available." }) });
169
+ }
170
+ if (data.mode === "recommendation") {
171
+ return /* @__PURE__ */ jsxRuntime.jsx(CustomerRecommendation, { data, onRefresh, isRefreshing });
172
+ }
173
+ const assessment = data.customer_assessments[0];
174
+ const firstFlag = data.flags[0];
175
+ const rating = (assessment == null ? void 0 : assessment.rating) ?? (/limited/i.test((firstFlag == null ? void 0 : firstFlag.message) ?? "") ? "Limited data" : "New");
176
+ const name = (assessment == null ? void 0 : assessment.customer_name) ?? (firstFlag == null ? void 0 : firstFlag.customer_name) ?? customerName ?? "Customer";
177
+ const id = (assessment == null ? void 0 : assessment.customer_id) ?? (firstFlag == null ? void 0 : firstFlag.customer_id) ?? customerId;
178
+ const score = (assessment == null ? void 0 : assessment.score) ?? null;
179
+ const tone = RATING_META[rating].tone;
180
+ const scored = !!assessment && score !== null;
181
+ return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai", children: [
182
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__card cai__card--hero", children: [
183
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__head", children: [
184
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__avatar", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Building2, { size: 18, strokeWidth: 2, fill: "none" }) }),
185
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__head-text", children: [
186
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__name", title: name, children: name }),
187
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__chips", children: [
188
+ id !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "cai__chip cai__chip--id", children: [
189
+ "#",
190
+ id
191
+ ] }),
192
+ /* @__PURE__ */ jsxRuntime.jsx(RatingChip$1, { rating }),
193
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "cai__chip cai__chip--ai", children: [
194
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { size: 10 }),
195
+ "AI analysis"
196
+ ] })
197
+ ] })
198
+ ] }),
199
+ onRefresh && /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size: "small", className: "cai__refresh", onClick: onRefresh, disabled: isRefreshing, "aria-label": "Refresh analysis", children: isRefreshing ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 12 }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { size: 13 }) })
200
+ ] }),
201
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__stats", children: [
202
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__stat", children: [
203
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__stat-label", children: "Score" }),
204
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `cai__stat-value cai__text--${tone}`, children: scored ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
205
+ score,
206
+ /* @__PURE__ */ jsxRuntime.jsx("small", { children: "/100" })
207
+ ] }) : "—" })
208
+ ] }),
209
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__stat", children: [
210
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__stat-label", children: "Rating" }),
211
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `cai__stat-value cai__stat-value--sm cai__text--${tone}`, children: rating })
212
+ ] }),
213
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__stat", children: [
214
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__stat-label", children: "Flags raised" }),
215
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `cai__stat-value ${data.flags.length ? "cai__text--risk" : ""}`, children: data.flags.length })
216
+ ] })
217
+ ] }),
218
+ scored && /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai__bar", children: /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: `cai__bar-fill cai__bar-fill--${tone}`, style: { width: `${Math.max(0, Math.min(100, score))}%` } }) }),
219
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__summary", children: [
220
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "cai__summary-label", children: [
221
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { size: 11 }),
222
+ "Summary"
223
+ ] }),
224
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "cai__summary-text", children: [
225
+ RATING_META[rating].lead,
226
+ " ",
227
+ data.summary
228
+ ] })
229
+ ] })
230
+ ] }),
231
+ data.flags.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(FlagsSection, { flags: data.flags }) : scored && /* @__PURE__ */ jsxRuntime.jsx(NoRisks, {}),
232
+ ((_a = assessment == null ? void 0 : assessment.recommended_actions) == null ? void 0 : _a.length) ? /* @__PURE__ */ jsxRuntime.jsx(ActionsSection, { actions: assessment.recommended_actions }) : null,
233
+ assessment && /* @__PURE__ */ jsxRuntime.jsx(FactorsSection, { factors: assessment.factors }),
234
+ /* @__PURE__ */ jsxRuntime.jsx(Footer, {})
235
+ ] });
236
+ };
237
+ const CustomerRecommendation = ({ data, onRefresh, isRefreshing }) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai", children: [
238
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__card cai__card--hero", children: [
239
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__head", children: [
240
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__avatar", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trophy, { size: 18 }) }),
241
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__head-text", children: [
242
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__name", children: "Top recommendations" }),
243
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__chips", children: [
244
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "cai__chip cai__chip--id", children: [
245
+ data.customer_assessments.length,
246
+ " ranked"
247
+ ] }),
248
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "cai__chip cai__chip--ai", children: [
249
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { size: 10 }),
250
+ "AI analysis"
251
+ ] })
252
+ ] })
253
+ ] }),
254
+ onRefresh && /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size: "small", className: "cai__refresh", onClick: onRefresh, disabled: isRefreshing, "aria-label": "Refresh analysis", children: isRefreshing ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 12 }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { size: 13 }) })
255
+ ] }),
256
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__summary", children: [
257
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "cai__summary-label", children: [
258
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { size: 11 }),
259
+ "Summary"
260
+ ] }),
261
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "cai__summary-text", children: data.summary })
262
+ ] })
263
+ ] }),
264
+ data.customer_assessments.map((a) => {
265
+ const tone = RATING_META[a.rating].tone;
266
+ return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__card cai__rank-card", children: [
267
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__rank-head", children: [
268
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `cai__rank ${a.rank === 1 ? "cai__rank--first" : ""}`, children: a.rank }),
269
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__rank-name", children: a.customer_name ?? `#${a.customer_id}` }),
270
+ /* @__PURE__ */ jsxRuntime.jsx(RatingChip$1, { rating: a.rating }),
271
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `cai__rank-score cai__text--${tone}`, children: a.score ?? "—" })
272
+ ] }),
273
+ a.score !== null && /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai__bar", children: /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: `cai__bar-fill cai__bar-fill--${tone}`, style: { width: `${a.score}%` } }) }),
274
+ a.ranking_note && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "cai__rank-note", children: a.ranking_note })
275
+ ] }, a.customer_id);
276
+ }),
277
+ data.flags.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "cai__card", children: [
278
+ /* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { Icon: lucideReact.Flag, tone: "danger", title: "Flags", right: "Most severe first" }),
279
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai__flags", children: sortFlags(data.flags).map((f, i) => {
280
+ const { Icon, label } = SEVERITY_META$1[f.severity];
281
+ return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: `cai__flag cai__flag--${f.severity}`, children: [
282
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cai__flag-icon", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 14 }) }),
283
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "cai__flag-msg", children: [
284
+ f.customer_name && /* @__PURE__ */ jsxRuntime.jsxs("strong", { children: [
285
+ f.customer_name,
286
+ ": "
287
+ ] }),
288
+ f.message
289
+ ] }),
290
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `cai__pill cai__pill--${f.severity}`, children: label })
291
+ ] }, i);
292
+ }) })
293
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(NoRisks, {}),
294
+ /* @__PURE__ */ jsxRuntime.jsx(Footer, {})
295
+ ] });
296
+ const uuid = () => {
297
+ var _a, _b;
298
+ 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) => {
299
+ const r = Math.random() * 16 | 0;
300
+ return (c === "x" ? r : r & 3 | 8).toString(16);
301
+ });
302
+ };
303
+ const MAX_CACHED = 50;
304
+ const cache = /* @__PURE__ */ new Map();
305
+ const inflight = /* @__PURE__ */ new Map();
306
+ const remember = (key, data) => {
307
+ const entry = { data, computedAt: /* @__PURE__ */ new Date() };
308
+ cache.delete(key);
309
+ cache.set(key, entry);
310
+ if (cache.size > MAX_CACHED) cache.delete(cache.keys().next().value);
311
+ return entry;
312
+ };
313
+ const useCustomerAnalysis = (request) => {
314
+ const reqKey = request ? JSON.stringify(request) : "";
315
+ const [data, setData] = React.useState(() => {
316
+ var _a;
317
+ return ((_a = cache.get(reqKey)) == null ? void 0 : _a.data) ?? null;
318
+ });
319
+ const [isLoading, setIsLoading] = React.useState(false);
320
+ const [isRefreshing, setIsRefreshing] = React.useState(false);
321
+ const [error, setError] = React.useState(null);
322
+ const [computedAt, setComputedAt] = React.useState(() => {
323
+ var _a;
324
+ return (_a = cache.get(reqKey)) == null ? void 0 : _a.computedAt;
325
+ });
326
+ const idemKey = React.useRef(uuid());
327
+ const mounted = React.useRef(true);
328
+ React.useEffect(() => () => {
329
+ mounted.current = false;
330
+ }, []);
331
+ const run = React.useCallback(async (refresh = false) => {
332
+ if (!request) return;
333
+ if (!refresh && cache.has(reqKey)) return;
334
+ refresh ? setIsRefreshing(true) : setIsLoading(true);
335
+ setError(null);
336
+ if (refresh) idemKey.current = uuid();
337
+ let pending = !refresh ? inflight.get(reqKey) : void 0;
338
+ if (!pending) {
339
+ pending = api.postV1CustomerAnalysis({
340
+ companyId: request.company_id,
341
+ customerIds: request.customer_ids,
342
+ metricRanking: request.metric_ranking,
343
+ idempotencyKey: idemKey.current,
344
+ ...api$1.getToken()
345
+ }).finally(() => inflight.delete(reqKey));
346
+ inflight.set(reqKey, pending);
347
+ }
348
+ try {
349
+ const result = await pending;
350
+ const entry = remember(reqKey, result);
351
+ if (!mounted.current) return;
352
+ setData(entry.data);
353
+ setComputedAt(entry.computedAt);
354
+ } catch (e) {
355
+ if (mounted.current) setError({ status: e == null ? void 0 : e.status, message: (e == null ? void 0 : e.message) || "Something went wrong" });
356
+ } finally {
357
+ if (mounted.current) {
358
+ setIsLoading(false);
359
+ setIsRefreshing(false);
360
+ }
361
+ }
362
+ }, [reqKey]);
363
+ React.useEffect(() => {
364
+ idemKey.current = uuid();
365
+ const cached = cache.get(reqKey);
366
+ setData((cached == null ? void 0 : cached.data) ?? null);
367
+ setComputedAt(cached == null ? void 0 : cached.computedAt);
368
+ run(false);
369
+ }, [run]);
370
+ return { data, isLoading, isRefreshing, error, computedAt, refresh: () => run(true) };
371
+ };
372
+ const CustomerAIProfile = ({
373
+ companyId,
374
+ customerId,
375
+ customerName,
376
+ metricRanking
377
+ }) => {
378
+ const request = React.useMemo(
379
+ () => customerId && companyId ? { company_id: companyId, customer_ids: [Number(customerId)], ...metricRanking ? { metric_ranking: metricRanking } : {} } : null,
380
+ [companyId, customerId, metricRanking]
381
+ );
382
+ const { data, isLoading, isRefreshing, error, refresh } = useCustomerAnalysis(request);
383
+ if (!customerId) {
384
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai__state", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Select a customer to see the AI profile." }) });
385
+ }
386
+ if (!companyId) {
387
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "cai__state", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Company details aren't available, so the AI profile can't be loaded." }) });
388
+ }
389
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { width: "100%" }, children: /* @__PURE__ */ jsxRuntime.jsx(
390
+ CustomerAISummary,
391
+ {
392
+ data,
393
+ isLoading: isLoading || !data && !error,
394
+ isError: !!error,
395
+ errorStatus: error == null ? void 0 : error.status,
396
+ onRefresh: refresh,
397
+ isRefreshing,
398
+ customerId: Number(customerId),
399
+ customerName
400
+ }
401
+ ) });
402
+ };
403
+ const CustomerAITabLabel = () => {
404
+ return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: {
405
+ display: "flex",
406
+ alignItems: "center",
407
+ gap: 1,
408
+ color: "#7b3bf2"
409
+ }, children: [
410
+ /* @__PURE__ */ jsxRuntime.jsx(AutoAwesomeIcon, { sx: { fontSize: 18 } }),
411
+ /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s3", weight: "medium", color: "inherit", children: "Customer Profile" })
412
+ ] });
413
+ };
414
+ const METRICS = [
415
+ { key: "payment", label: "Payment", Icon: lucideReact.Receipt },
416
+ { key: "engagement", label: "Engagement", Icon: lucideReact.Clock },
417
+ { key: "credit", label: "Credit", Icon: lucideReact.ShieldCheck },
418
+ { key: "purchase_trend", label: "Purchase trend", Icon: lucideReact.TrendingUp },
419
+ { key: "quote_conversion", label: "Quote conversion", Icon: lucideReact.FileText },
420
+ { key: "loyalty", label: "Loyalty", Icon: lucideReact.Award },
421
+ { key: "returns", label: "Returns", Icon: lucideReact.Undo2 },
422
+ { key: "rejected", label: "Rejected orders", Icon: lucideReact.XCircle }
423
+ ];
424
+ const DEFAULT_WEIGHTS = {
425
+ payment: 5,
426
+ credit: 4,
427
+ engagement: 5,
428
+ purchase_trend: 4,
429
+ quote_conversion: 3,
430
+ loyalty: 3,
431
+ returns: 2,
432
+ rejected: 2
433
+ };
434
+ const CUSTOMER_AI_METRIC_RANKING = {
435
+ opportunity: { payment: 3, credit: 3, engagement: 5, purchase_trend: 4, quote_conversion: 5, loyalty: 4, returns: 1, rejected: 1 },
436
+ quotation: { payment: 4, credit: 4, engagement: 3, purchase_trend: 3, quote_conversion: 5, loyalty: 3, returns: 2, rejected: 2 },
437
+ salesOrder: { payment: 5, credit: 5, engagement: 2, purchase_trend: 2, loyalty: 3, returns: 3, rejected: 4 },
438
+ salesInvoice: { payment: 5, credit: 5, engagement: 2, purchase_trend: 3, loyalty: 3, returns: 3, rejected: 1 },
439
+ deliveryOrder: { payment: 5, credit: 5, engagement: 2, purchase_trend: 2, loyalty: 3, returns: 4, rejected: 2 }
440
+ };
441
+ const toMetricRanking = (w) => Object.fromEntries(Object.entries(w).filter(([, v]) => v > 0));
442
+ const RATING_TONE = {
443
+ Strong: "strong",
444
+ Healthy: "healthy",
445
+ Watch: "watch",
446
+ "At-risk": "risk",
447
+ New: "new",
448
+ "Limited data": "new"
449
+ };
450
+ const SEVERITY_META = {
451
+ critical: { label: "Critical", Icon: lucideReact.AlertCircle, order: 0 },
452
+ warning: { label: "Warning", Icon: lucideReact.AlertTriangle, order: 1 },
453
+ info: { label: "Note", Icon: lucideReact.Info, order: 2 }
454
+ };
455
+ const timeAgo = (date) => {
456
+ if (!date) return "just now";
457
+ const s = Math.floor((Date.now() - new Date(date).getTime()) / 1e3);
458
+ if (s < 60) return "just now";
459
+ if (s < 3600) return `${Math.floor(s / 60)} min ago`;
460
+ if (s < 86400) return `${Math.floor(s / 3600)} hr ago`;
461
+ return new Date(date).toLocaleDateString();
462
+ };
463
+ const RatingChip = ({ rating }) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: `ccd__chip ccd__chip--${RATING_TONE[rating]}`, children: rating });
464
+ const CardHead = ({
465
+ Icon,
466
+ title,
467
+ right,
468
+ tone = "neutral",
469
+ onToggle,
470
+ expanded
471
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: `ccd__card-head ${onToggle ? "ccd__card-head--click" : ""}`, onClick: onToggle, children: [
472
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `ccd__head-icon ccd__head-icon--${tone}`, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 12 }) }),
473
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__card-title", children: title }),
474
+ right && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__card-right", children: right }),
475
+ onToggle && (expanded ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { size: 14, className: "ccd__chev" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { size: 14, className: "ccd__chev" }))
476
+ ] });
477
+ const WeightDots = ({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__dots", children: [1, 2, 3, 4, 5].map((n) => /* @__PURE__ */ jsxRuntime.jsx(
478
+ "button",
479
+ {
480
+ type: "button",
481
+ className: `ccd__dot ${n <= value ? "ccd__dot--on" : ""}`,
482
+ onClick: () => onChange(n === value ? 0 : n),
483
+ "aria-label": `Set importance to ${n}`
484
+ },
485
+ n
486
+ )) });
487
+ const CustomerCompareDrawer = ({
488
+ open,
489
+ onClose,
490
+ companyId,
491
+ customers
492
+ }) => {
493
+ const [focusOpen, setFocusOpen] = React.useState(false);
494
+ const [draft, setDraft] = React.useState({ ...DEFAULT_WEIGHTS });
495
+ const [applied, setApplied] = React.useState({ ...DEFAULT_WEIGHTS });
496
+ const customerIds = React.useMemo(
497
+ () => Array.from(new Set(customers.map((c) => Number(c.id)).filter(Boolean))).slice(0, 10),
498
+ [customers]
499
+ );
500
+ const idsKey = customerIds.join(",");
501
+ const request = React.useMemo(
502
+ () => open && companyId && customerIds.length >= 2 ? { company_id: companyId, customer_ids: customerIds, metric_ranking: toMetricRanking(applied) } : null,
503
+ // eslint-disable-next-line react-hooks/exhaustive-deps
504
+ [open, idsKey, companyId, applied]
505
+ );
506
+ const { data, isLoading, isRefreshing, error, refresh } = useCustomerAnalysis(request);
507
+ const dirty = JSON.stringify(draft) !== JSON.stringify(applied);
508
+ const allOff = Object.values(draft).every((v) => v === 0);
509
+ const busy = isLoading || isRefreshing || !!request && !data && !error;
510
+ const rerun = () => dirty ? setApplied({ ...draft }) : refresh();
511
+ const assessments = [...(data == null ? void 0 : data.customer_assessments) ?? []].sort((a, b) => (a.rank ?? 99) - (b.rank ?? 99));
512
+ const assessedIds = new Set(assessments.map((a) => a.customer_id));
513
+ const nameOf = (id) => {
514
+ var _a, _b, _c;
515
+ 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}`;
516
+ };
517
+ const unscored = React.useMemo(() => {
518
+ const seen = /* @__PURE__ */ new Set();
519
+ 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) => ({
520
+ id: f.customer_id,
521
+ rating: f.severity === "info" ? /limited/i.test(f.message) ? "Limited data" : "New" : null
522
+ }));
523
+ }, [data]);
524
+ const flags = [...(data == null ? void 0 : data.flags) ?? []].sort((a, b) => SEVERITY_META[a.severity].order - SEVERITY_META[b.severity].order);
525
+ const trimmed = customerIds.length > 3;
526
+ return /* @__PURE__ */ jsxRuntime.jsx(
527
+ material.Drawer,
528
+ {
529
+ anchor: "right",
530
+ open,
531
+ onClose,
532
+ PaperProps: { className: "ccd__paper" },
533
+ ModalProps: { keepMounted: false },
534
+ sx: { zIndex: 2e3 },
535
+ children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd", children: [
536
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__header", children: [
537
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__avatar", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.BarChart3, { size: 18 }) }),
538
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__header-text", children: [
539
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__title-row", children: [
540
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__title", children: "Compare customers" }),
541
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ccd__chip ccd__chip--ai", children: [
542
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { size: 10 }),
543
+ "AI analysis"
544
+ ] })
545
+ ] }),
546
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ccd__subtitle", children: [
547
+ customerIds.length,
548
+ " customers compared · ranked best to worst",
549
+ trimmed ? " · top 3 shown" : ""
550
+ ] })
551
+ ] }),
552
+ /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size: "small", className: "ccd__close", onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 15 }) })
553
+ ] }),
554
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__body", children: [
555
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__card ccd__card--focus", children: [
556
+ /* @__PURE__ */ jsxRuntime.jsx(
557
+ CardHead,
558
+ {
559
+ Icon: lucideReact.SlidersHorizontal,
560
+ title: "Scoring focus",
561
+ right: "Importance from 1 (low) to 5 (high)",
562
+ onToggle: () => setFocusOpen((v) => !v),
563
+ expanded: focusOpen
564
+ }
565
+ ),
566
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Collapse, { in: focusOpen, children: [
567
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "ccd__weights", children: METRICS.map(({ key, label }) => /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: `ccd__weight ${draft[key] === 0 ? "ccd__weight--off" : ""}`, children: [
568
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__weight-label", children: label }),
569
+ /* @__PURE__ */ jsxRuntime.jsx(WeightDots, { value: draft[key], onChange: (v) => setDraft((d) => ({ ...d, [key]: v })) }),
570
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__weight-num", children: draft[key] || "Off" })
571
+ ] }, key)) }),
572
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__weight-actions", children: [
573
+ /* @__PURE__ */ jsxRuntime.jsx(material.Button, { className: "ccd__btn ccd__btn--ghost", onClick: () => setDraft({ ...DEFAULT_WEIGHTS }), children: "Reset to default weights" }),
574
+ /* @__PURE__ */ jsxRuntime.jsx(
575
+ material.Button,
576
+ {
577
+ className: "ccd__btn ccd__btn--primary",
578
+ onClick: rerun,
579
+ disabled: busy || allOff,
580
+ startIcon: busy ? /* @__PURE__ */ jsxRuntime.jsx(material.CircularProgress, { size: 11, sx: { color: "#7c3aed" } }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { size: 12 }),
581
+ children: "Re-run comparison"
582
+ }
583
+ )
584
+ ] })
585
+ ] })
586
+ ] }),
587
+ busy ? /* @__PURE__ */ jsxRuntime.jsx(AISummarySkeleton, { blocks: [90, 150, 90, 240], message: "Comparing payments, credit, orders and quotes…" }) : error ? (() => {
588
+ const { message, retryable } = getAnalysisError(error.status);
589
+ return /* @__PURE__ */ jsxRuntime.jsx(AIErrorState, { message, onRetry: retryable ? refresh : void 0, isRetrying: isRefreshing });
590
+ })() : data ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
591
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__card", children: [
592
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ccd__summary-label", children: [
593
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { size: 11 }),
594
+ "Summary"
595
+ ] }),
596
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "ccd__summary-text", children: data.summary })
597
+ ] }),
598
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__card", children: [
599
+ /* @__PURE__ */ jsxRuntime.jsx(CardHead, { Icon: lucideReact.Trophy, tone: "green", title: "Ranking", right: "Scored on all selected metrics" }),
600
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__ranking", children: [
601
+ assessments.map((a) => {
602
+ const tone = RATING_TONE[a.rating];
603
+ return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__rank-row", children: [
604
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__rank-top", children: [
605
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `ccd__rank-badge ${a.rank === 1 ? "ccd__rank-badge--first" : ""}`, children: a.rank }),
606
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__rank-name", title: nameOf(a.customer_id), children: nameOf(a.customer_id) }),
607
+ /* @__PURE__ */ jsxRuntime.jsx(RatingChip, { rating: a.rating }),
608
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ccd__rank-score", children: [
609
+ /* @__PURE__ */ jsxRuntime.jsx("small", { children: "Score" }),
610
+ /* @__PURE__ */ jsxRuntime.jsxs("b", { className: `ccd__text--${tone}`, children: [
611
+ a.score ?? "—",
612
+ /* @__PURE__ */ jsxRuntime.jsx("em", { children: "/100" })
613
+ ] })
614
+ ] })
615
+ ] }),
616
+ a.score !== null && /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "ccd__bar", children: /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: `ccd__bar-fill ccd__bar-fill--${tone}`, style: { width: `${a.score}%` } }) }),
617
+ a.ranking_note && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__rank-note", children: a.ranking_note })
618
+ ] }, a.customer_id);
619
+ }),
620
+ unscored.map((u) => /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "ccd__rank-row ccd__rank-row--unscored", children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__rank-top", children: [
621
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__rank-badge", children: "–" }),
622
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__rank-name", children: nameOf(u.id) }),
623
+ u.rating && /* @__PURE__ */ jsxRuntime.jsx(RatingChip, { rating: u.rating }),
624
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ccd__rank-score", children: [
625
+ /* @__PURE__ */ jsxRuntime.jsx("small", { children: "Score" }),
626
+ /* @__PURE__ */ jsxRuntime.jsx("b", { children: "—" })
627
+ ] })
628
+ ] }) }, u.id))
629
+ ] })
630
+ ] }),
631
+ flags.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__card", children: [
632
+ /* @__PURE__ */ jsxRuntime.jsx(CardHead, { Icon: lucideReact.Flag, tone: "danger", title: "Flags", right: "Most severe first" }),
633
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "ccd__flags", children: flags.map((f, i) => {
634
+ const { Icon, label } = SEVERITY_META[f.severity];
635
+ return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: `ccd__flag ccd__flag--${f.severity}`, children: [
636
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__flag-icon", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 13 }) }),
637
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__flag-body", children: [
638
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__flag-who", children: f.customer_name ?? nameOf(f.customer_id) }),
639
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__flag-msg", children: f.message })
640
+ ] }),
641
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `ccd__pill ccd__pill--${f.severity}`, children: label })
642
+ ] }, i);
643
+ }) })
644
+ ] }),
645
+ assessments.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "ccd__card", children: [
646
+ /* @__PURE__ */ jsxRuntime.jsx(CardHead, { Icon: lucideReact.Table2, title: "Metric by metric", right: "Text exactly as returned by the API" }),
647
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "ccd__table-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "ccd__table", children: [
648
+ /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
649
+ /* @__PURE__ */ jsxRuntime.jsx("th", { children: "Metric" }),
650
+ assessments.map((a) => /* @__PURE__ */ jsxRuntime.jsxs("th", { children: [
651
+ a.rank,
652
+ ". ",
653
+ nameOf(a.customer_id)
654
+ ] }, a.customer_id))
655
+ ] }) }),
656
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: METRICS.map(({ key, label, Icon }) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: applied[key] === 0 ? "ccd__tr--off" : "", children: [
657
+ /* @__PURE__ */ jsxRuntime.jsxs("td", { className: "ccd__metric-cell", children: [
658
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ccd__metric-icon", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 12 }) }),
659
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ccd__metric-text", children: [
660
+ /* @__PURE__ */ jsxRuntime.jsx("b", { children: label }),
661
+ /* @__PURE__ */ jsxRuntime.jsx("small", { children: applied[key] ? `Focus ${applied[key]} of 5` : "Not scored" })
662
+ ] })
663
+ ] }),
664
+ assessments.map((a) => {
665
+ var _a;
666
+ return /* @__PURE__ */ jsxRuntime.jsx("td", { children: ((_a = a.factors) == null ? void 0 : _a[key]) ?? "—" }, a.customer_id);
667
+ })
668
+ ] }, key)) })
669
+ ] }) })
670
+ ] }),
671
+ /* @__PURE__ */ jsxRuntime.jsx(aiDisclaimer.AIDisclaimer, { showIcon: false, sx: { mt: 0 } })
672
+ ] }) : null
673
+ ] })
674
+ ] })
675
+ }
676
+ );
677
+ };
678
+ const getCustomerProfilingAccess = (permissions) => {
679
+ var _a, _b;
680
+ return Boolean((_b = (_a = permissions == null ? void 0 : permissions.CustomerProfiling) == null ? void 0 : _a.customeranalysis) == null ? void 0 : _b.canAdd);
681
+ };
682
+ const useCustomerProfilingAccess = () => getCustomerProfilingAccess(runtime.usePermissions());
683
+ const AI_BUTTON_SX = {
684
+ color: "#7b3bf2 !important",
685
+ borderColor: "#7b3bf2 !important",
686
+ bgcolor: "#f3ecfe !important",
687
+ whiteSpace: "nowrap",
688
+ "&:hover": { bgcolor: "#ebdffc !important" }
689
+ };
690
+ const CompareCustomersButton = ({ count, onClick, max = 10 }) => {
691
+ const canUseCustomerProfiling = useCustomerProfilingAccess();
692
+ if (!canUseCustomerProfiling || count < 2) return null;
693
+ const disabled = count > max;
694
+ const btn = /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { variant: "outlined", startIcon: /* @__PURE__ */ jsxRuntime.jsx(AutoAwesomeIcon, {}), onClick, disabled, sx: AI_BUTTON_SX, children: [
695
+ "Compare ",
696
+ count,
697
+ " customers"
698
+ ] });
699
+ return disabled ? /* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { title: `You can compare up to ${max} customers at a time`, children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: btn }) }) : btn;
700
+ };
701
+ exports.AIErrorState = AIErrorState;
702
+ exports.AISummarySkeleton = AISummarySkeleton;
703
+ exports.CUSTOMER_AI_METRIC_RANKING = CUSTOMER_AI_METRIC_RANKING;
704
+ exports.CompareCustomersButton = CompareCustomersButton;
705
+ exports.CustomerAIProfile = CustomerAIProfile;
706
+ exports.CustomerAISummary = CustomerAISummary;
707
+ exports.CustomerAITabLabel = CustomerAITabLabel;
708
+ exports.CustomerCompareDrawer = CustomerCompareDrawer;
709
+ exports.DEFAULT_WEIGHTS = DEFAULT_WEIGHTS;
710
+ exports.METRICS = METRICS;
711
+ exports.RATING_TONE = RATING_TONE;
712
+ exports.SEVERITY_META = SEVERITY_META;
713
+ exports.default = CustomerAISummary;
714
+ exports.getAnalysisError = getAnalysisError;
715
+ exports.getCustomerProfilingAccess = getCustomerProfilingAccess;
716
+ exports.timeAgo = timeAgo;
717
+ exports.toMetricRanking = toMetricRanking;
718
+ exports.useCustomerAnalysis = useCustomerAnalysis;
719
+ exports.useCustomerProfilingAccess = useCustomerProfilingAccess;
720
+ //# sourceMappingURL=index.js.map