@erpsquad/common 1.11.6 → 1.11.7

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 (615) hide show
  1. package/dist/api-client/index.esm.js +2 -2
  2. package/dist/chunks/{DynamicDependentField-C0XXmMlG.esm.js → DynamicDependentField-DOGY6cA_.esm.js} +2 -2
  3. package/dist/chunks/{DynamicDependentField-C0XXmMlG.esm.js.map → DynamicDependentField-DOGY6cA_.esm.js.map} +1 -1
  4. package/dist/chunks/{DynamicDependentField-CQIfDDqc.js → DynamicDependentField-GTIwrPfP.js} +2 -2
  5. package/dist/chunks/{DynamicDependentField-CQIfDDqc.js.map → DynamicDependentField-GTIwrPfP.js.map} +1 -1
  6. package/dist/chunks/{ERPUIProvider-I4j_X_SD.esm.js → ERPUIProvider-Dz0s77BR.esm.js} +3 -3
  7. package/dist/chunks/{ERPUIProvider-I4j_X_SD.esm.js.map → ERPUIProvider-Dz0s77BR.esm.js.map} +1 -1
  8. package/dist/chunks/EditorSection-BLGcgQFm.esm.js +849 -0
  9. package/dist/chunks/EditorSection-BLGcgQFm.esm.js.map +1 -0
  10. package/dist/chunks/EditorSection-D6yaBfjP.js +848 -0
  11. package/dist/chunks/EditorSection-D6yaBfjP.js.map +1 -0
  12. package/dist/chunks/{FORMS-B40NtUdz.esm.js → FORMS-CR_DlD1m.esm.js} +8 -8
  13. package/dist/chunks/{FORMS-B40NtUdz.esm.js.map → FORMS-CR_DlD1m.esm.js.map} +1 -1
  14. package/dist/chunks/{FORMS-K5QYZYJc.js → FORMS-EouVYay1.js} +5 -5
  15. package/dist/chunks/{FORMS-K5QYZYJc.js.map → FORMS-EouVYay1.js.map} +1 -1
  16. package/dist/chunks/{FlexibleReduxExample-lJRAIjmS.esm.js → FlexibleReduxExample-B2e7Wa_S.esm.js} +4 -4
  17. package/dist/chunks/{FlexibleReduxExample-lJRAIjmS.esm.js.map → FlexibleReduxExample-B2e7Wa_S.esm.js.map} +1 -1
  18. package/dist/chunks/{FlexibleReduxExample-WGpR03V0.js → FlexibleReduxExample-CMUylyy1.js} +3 -3
  19. package/dist/chunks/{FlexibleReduxExample-WGpR03V0.js.map → FlexibleReduxExample-CMUylyy1.js.map} +1 -1
  20. package/dist/chunks/SectionFlowEditor-Dp-mjWT9.esm.js +12543 -0
  21. package/dist/chunks/SectionFlowEditor-Dp-mjWT9.esm.js.map +1 -0
  22. package/dist/chunks/SectionFlowEditor-Dz1SuCm2.js +12542 -0
  23. package/dist/chunks/SectionFlowEditor-Dz1SuCm2.js.map +1 -0
  24. package/dist/chunks/{action-bar-C7Alva4T.esm.js → action-bar-Ci6RlMBM.esm.js} +6 -6
  25. package/dist/chunks/{action-bar-C7Alva4T.esm.js.map → action-bar-Ci6RlMBM.esm.js.map} +1 -1
  26. package/dist/chunks/{action-bar-DdtpxWNk.js → action-bar-jLqQTqU7.js} +3 -3
  27. package/dist/chunks/{action-bar-DdtpxWNk.js.map → action-bar-jLqQTqU7.js.map} +1 -1
  28. package/dist/chunks/{actionCreator-CpePNxQM.esm.js → actionCreator-B6lXR_k1.esm.js} +2 -2
  29. package/dist/chunks/{actionCreator-CpePNxQM.esm.js.map → actionCreator-B6lXR_k1.esm.js.map} +1 -1
  30. package/dist/chunks/{actionCreator-Cl8vPLVO.esm.js → actionCreator-D3uwEAua.esm.js} +3 -3
  31. package/dist/chunks/{actionCreator-Cl8vPLVO.esm.js.map → actionCreator-D3uwEAua.esm.js.map} +1 -1
  32. package/dist/chunks/{actionCreator-CL5ICuqZ.esm.js → actionCreator-DIdMRO9L.esm.js} +2 -2
  33. package/dist/chunks/{actionCreator-CL5ICuqZ.esm.js.map → actionCreator-DIdMRO9L.esm.js.map} +1 -1
  34. package/dist/chunks/{actionCreator-Cb3NxILP.esm.js → actionCreator-DKYufGAZ.esm.js} +2 -2
  35. package/dist/chunks/{actionCreator-Cb3NxILP.esm.js.map → actionCreator-DKYufGAZ.esm.js.map} +1 -1
  36. package/dist/chunks/{actionCreator-Dar9Z8_d.esm.js → actionCreator-DcdyGsIX.esm.js} +3 -3
  37. package/dist/chunks/{actionCreator-Dar9Z8_d.esm.js.map → actionCreator-DcdyGsIX.esm.js.map} +1 -1
  38. package/dist/chunks/add-template-CUPbU0z7.js +10 -0
  39. package/dist/chunks/add-template-CUPbU0z7.js.map +1 -0
  40. package/dist/chunks/add-template-CxvhzFMF.esm.js +11 -0
  41. package/dist/chunks/add-template-CxvhzFMF.esm.js.map +1 -0
  42. package/dist/chunks/{address-modal-CYhiC7ui.js → address-modal-DFd5sQtR.js} +2 -2
  43. package/dist/chunks/{address-modal-CYhiC7ui.js.map → address-modal-DFd5sQtR.js.map} +1 -1
  44. package/dist/chunks/{address-modal-CkDBjnye.esm.js → address-modal-DYGLjrqd.esm.js} +2 -2
  45. package/dist/chunks/{address-modal-CkDBjnye.esm.js.map → address-modal-DYGLjrqd.esm.js.map} +1 -1
  46. package/dist/chunks/{ai-summary-SKK5KN2s.esm.js → ai-summary-x2t8BZCx.esm.js} +2 -2
  47. package/dist/chunks/{ai-summary-SKK5KN2s.esm.js.map → ai-summary-x2t8BZCx.esm.js.map} +1 -1
  48. package/dist/chunks/{api-BIVCMSwW.esm.js → api-8jutPLh0.esm.js} +3 -3
  49. package/dist/chunks/{api-BIVCMSwW.esm.js.map → api-8jutPLh0.esm.js.map} +1 -1
  50. package/dist/chunks/{api-DBmWILBN.esm.js → api-yLpQ3k5s.esm.js} +9 -9
  51. package/dist/chunks/{api-DBmWILBN.esm.js.map → api-yLpQ3k5s.esm.js.map} +1 -1
  52. package/dist/chunks/{app-switcher-D-Bvz9uO.esm.js → app-switcher-B6eapuGG.esm.js} +2 -2
  53. package/dist/chunks/{app-switcher-D-Bvz9uO.esm.js.map → app-switcher-B6eapuGG.esm.js.map} +1 -1
  54. package/dist/chunks/{app-switcher-CyEQmYAN.js → app-switcher-VhH9z0Rd.js} +2 -2
  55. package/dist/chunks/{app-switcher-CyEQmYAN.js.map → app-switcher-VhH9z0Rd.js.map} +1 -1
  56. package/dist/chunks/{appbar-BdTp1k68.esm.js → appbar-B8EgZsrn.esm.js} +2 -2
  57. package/dist/chunks/{appbar-BdTp1k68.esm.js.map → appbar-B8EgZsrn.esm.js.map} +1 -1
  58. package/dist/chunks/{appbar-DyIptRTa.js → appbar-Is_7kfVo.js} +2 -2
  59. package/dist/chunks/{appbar-DyIptRTa.js.map → appbar-Is_7kfVo.js.map} +1 -1
  60. package/dist/chunks/{approval-wrapper-BTtmXMlk.esm.js → approval-wrapper-_kYfACQp.esm.js} +2 -2
  61. package/dist/chunks/{approval-wrapper-BTtmXMlk.esm.js.map → approval-wrapper-_kYfACQp.esm.js.map} +1 -1
  62. package/dist/chunks/{chat-bot-Dz8cR_uw.esm.js → chat-bot-DO3vAGxA.esm.js} +2 -2
  63. package/dist/chunks/{chat-bot-Dz8cR_uw.esm.js.map → chat-bot-DO3vAGxA.esm.js.map} +1 -1
  64. package/dist/chunks/common-BgXEAs_y.esm.js +851 -0
  65. package/dist/chunks/common-BgXEAs_y.esm.js.map +1 -0
  66. package/dist/chunks/{common-yORBIVv-.esm.js → common-Cl5oGXmX.esm.js} +2 -2
  67. package/dist/chunks/{common-yORBIVv-.esm.js.map → common-Cl5oGXmX.esm.js.map} +1 -1
  68. package/dist/chunks/common-D6T6NGWY.js +850 -0
  69. package/dist/chunks/common-D6T6NGWY.js.map +1 -0
  70. package/dist/chunks/{common-CS5L0Ld_.js → common-PH2uWkqL.js} +2 -2
  71. package/dist/chunks/{common-CS5L0Ld_.js.map → common-PH2uWkqL.js.map} +1 -1
  72. package/dist/chunks/common-utility-CA_Upser.js.map +1 -1
  73. package/dist/chunks/{common-utility-DGpbsf7S.esm.js → common-utility-CS_sNoAC.esm.js} +2 -2
  74. package/dist/chunks/common-utility-CS_sNoAC.esm.js.map +1 -0
  75. package/dist/chunks/company-selection-modal-B7jFVWWs.js.map +1 -1
  76. package/dist/chunks/company-selection-modal-Dn2L_skh.esm.js.map +1 -1
  77. package/dist/chunks/{constant-Bwg2s_Sn.esm.js → constant-BXPcBhJN.esm.js} +35 -5
  78. package/dist/chunks/constant-BXPcBhJN.esm.js.map +1 -0
  79. package/dist/chunks/{constant-ZYAN_teD.js → constant-BXeJD4Af.js} +35 -5
  80. package/dist/chunks/constant-BXeJD4Af.js.map +1 -0
  81. package/dist/chunks/{constants-nmkxkzps.esm.js → constants-BrmMAwu2.esm.js} +2 -2
  82. package/dist/chunks/{constants-nmkxkzps.esm.js.map → constants-BrmMAwu2.esm.js.map} +1 -1
  83. package/dist/chunks/{constants-06kIVUBw.js → constants-D_xuLHSu.js} +2 -2
  84. package/dist/chunks/{constants-06kIVUBw.js.map → constants-D_xuLHSu.js.map} +1 -1
  85. package/dist/chunks/{custom-editor-6-xqhKz6.esm.js → custom-editor-C-B5BK-H.esm.js} +3 -3
  86. package/dist/chunks/{custom-editor-6-xqhKz6.esm.js.map → custom-editor-C-B5BK-H.esm.js.map} +1 -1
  87. package/dist/chunks/{custom-form-DD7YOHMF.esm.js → custom-form-DNUpk0nq.esm.js} +7 -7
  88. package/dist/chunks/{custom-form-DD7YOHMF.esm.js.map → custom-form-DNUpk0nq.esm.js.map} +1 -1
  89. package/dist/chunks/{custom-form-CFU7NEVb.js → custom-form-T4yc_sE_.js} +4 -4
  90. package/dist/chunks/{custom-form-CFU7NEVb.js.map → custom-form-T4yc_sE_.js.map} +1 -1
  91. package/dist/chunks/{dashboard-B5qcT2Dt.esm.js → dashboard-B4xzJ1Xc.esm.js} +4 -4
  92. package/dist/chunks/{dashboard-B5qcT2Dt.esm.js.map → dashboard-B4xzJ1Xc.esm.js.map} +1 -1
  93. package/dist/chunks/{dashboard-Dzts5-X6.js → dashboard-eMHQayU_.js} +3 -3
  94. package/dist/chunks/{dashboard-Dzts5-X6.js.map → dashboard-eMHQayU_.js.map} +1 -1
  95. package/dist/chunks/default-data-6IxhqPTP.esm.js.map +1 -1
  96. package/dist/chunks/default-data-yreKVx_z.js.map +1 -1
  97. package/dist/chunks/{dynamic-report-tKn-KqAd.esm.js → dynamic-report-CMguvXj2.esm.js} +4 -4
  98. package/dist/chunks/{dynamic-report-tKn-KqAd.esm.js.map → dynamic-report-CMguvXj2.esm.js.map} +1 -1
  99. package/dist/chunks/{dynamic-rows-CTGETfcP.esm.js → dynamic-rows-CmAE9nbA.esm.js} +2 -2
  100. package/dist/chunks/{dynamic-rows-CTGETfcP.esm.js.map → dynamic-rows-CmAE9nbA.esm.js.map} +1 -1
  101. package/dist/chunks/{dynamic-text-editor-CPvlGcLK.esm.js → dynamic-text-editor-CSWdR1lK.esm.js} +2 -2
  102. package/dist/chunks/{dynamic-text-editor-CPvlGcLK.esm.js.map → dynamic-text-editor-CSWdR1lK.esm.js.map} +1 -1
  103. package/dist/chunks/edit-section-modal-Br2ITvLk.js.map +1 -1
  104. package/dist/chunks/{edit-section-modal-BW-aZmUv.esm.js → edit-section-modal-HihKbN6K.esm.js} +2 -2
  105. package/dist/chunks/edit-section-modal-HihKbN6K.esm.js.map +1 -0
  106. package/dist/chunks/{filter-COXKBEER.esm.js → filter-D9BHP_qc.esm.js} +5 -5
  107. package/dist/chunks/{filter-COXKBEER.esm.js.map → filter-D9BHP_qc.esm.js.map} +1 -1
  108. package/dist/chunks/{filter-Cr_OSIpb.js → filter-DtCrOG6W.js} +3 -3
  109. package/dist/chunks/{filter-Cr_OSIpb.js.map → filter-DtCrOG6W.js.map} +1 -1
  110. package/dist/chunks/{footer-m3_dlNl8.esm.js → footer-Bv5NOAf9.esm.js} +2 -2
  111. package/dist/chunks/{footer-m3_dlNl8.esm.js.map → footer-Bv5NOAf9.esm.js.map} +1 -1
  112. package/dist/chunks/{footer-CD3kMRdS.js → footer-DioOh69g.js} +2 -2
  113. package/dist/chunks/{footer-CD3kMRdS.js.map → footer-DioOh69g.js.map} +1 -1
  114. package/dist/chunks/{form-fields-yE9kwjvb.js → form-fields-BYDhbAgB.js} +2 -2
  115. package/dist/chunks/{form-fields-yE9kwjvb.js.map → form-fields-BYDhbAgB.js.map} +1 -1
  116. package/dist/chunks/{form-fields-hMMnB_wE.esm.js → form-fields-Di-p9XKG.esm.js} +2 -2
  117. package/dist/chunks/{form-fields-hMMnB_wE.esm.js.map → form-fields-Di-p9XKG.esm.js.map} +1 -1
  118. package/dist/chunks/{form-parser-m4fnw38a.js → form-parser-BnMdMDSb.js} +2 -2
  119. package/dist/chunks/{form-parser-m4fnw38a.js.map → form-parser-BnMdMDSb.js.map} +1 -1
  120. package/dist/chunks/{form-parser-DbnSn5eY.esm.js → form-parser-ZQpEVrzG.esm.js} +2 -2
  121. package/dist/chunks/{form-parser-DbnSn5eY.esm.js.map → form-parser-ZQpEVrzG.esm.js.map} +1 -1
  122. package/dist/chunks/{form-section-TMjdOVeW.esm.js → form-section-BJ7Iqb9R.esm.js} +5 -5
  123. package/dist/chunks/{form-section-TMjdOVeW.esm.js.map → form-section-BJ7Iqb9R.esm.js.map} +1 -1
  124. package/dist/chunks/{form-section-CPIyMdk2.js → form-section-CFeWD-tF.js} +5 -5
  125. package/dist/chunks/{form-section-CPIyMdk2.js.map → form-section-CFeWD-tF.js.map} +1 -1
  126. package/dist/chunks/{fullScreen-D-isf0wv.esm.js → fullScreen-Cz3FIdU4.esm.js} +3 -3
  127. package/dist/chunks/{fullScreen-D-isf0wv.esm.js.map → fullScreen-Cz3FIdU4.esm.js.map} +1 -1
  128. package/dist/chunks/{fullScreen-B5iqC1y0.js → fullScreen-h0JqBN4O.js} +2 -2
  129. package/dist/chunks/{fullScreen-B5iqC1y0.js.map → fullScreen-h0JqBN4O.js.map} +1 -1
  130. package/dist/chunks/{global-search-BjKPmzsQ.js → global-search-BTV5iL6-.js} +2 -2
  131. package/dist/chunks/{global-search-BjKPmzsQ.js.map → global-search-BTV5iL6-.js.map} +1 -1
  132. package/dist/chunks/{global-search-BOkxXiZ0.esm.js → global-search-CGmupYFQ.esm.js} +3 -3
  133. package/dist/chunks/{global-search-BOkxXiZ0.esm.js.map → global-search-CGmupYFQ.esm.js.map} +1 -1
  134. package/dist/chunks/{grid-view-Bo86x7YL.esm.js → grid-view-BMfleQMC.esm.js} +2 -2
  135. package/dist/chunks/{grid-view-Bo86x7YL.esm.js.map → grid-view-BMfleQMC.esm.js.map} +1 -1
  136. package/dist/chunks/{header-D_pPOjdz.esm.js → header-BnVzqpGs.esm.js} +6 -6
  137. package/dist/chunks/{header-D_pPOjdz.esm.js.map → header-BnVzqpGs.esm.js.map} +1 -1
  138. package/dist/chunks/{header-enhanced-OiKzLG4i.esm.js → header-enhanced-CkROCaOF.esm.js} +3 -3
  139. package/dist/chunks/{header-enhanced-OiKzLG4i.esm.js.map → header-enhanced-CkROCaOF.esm.js.map} +1 -1
  140. package/dist/chunks/{header-enhanced-DCDMljaN.js → header-enhanced-Dxdetx0I.js} +3 -3
  141. package/dist/chunks/{header-enhanced-DCDMljaN.js.map → header-enhanced-Dxdetx0I.js.map} +1 -1
  142. package/dist/chunks/{header-DQ_e75rt.js → header-jWPMgcy6.js} +6 -6
  143. package/dist/chunks/{header-DQ_e75rt.js.map → header-jWPMgcy6.js.map} +1 -1
  144. package/dist/chunks/{index-ALqg8b5U.esm.js → index-BCmGHdos.esm.js} +2 -2
  145. package/dist/chunks/{index-ALqg8b5U.esm.js.map → index-BCmGHdos.esm.js.map} +1 -1
  146. package/dist/chunks/{inline-edit-fields-atDP84QL.js → inline-edit-fields-Cd_qUOjU.js} +2 -2
  147. package/dist/chunks/{inline-edit-fields-atDP84QL.js.map → inline-edit-fields-Cd_qUOjU.js.map} +1 -1
  148. package/dist/chunks/{inline-edit-fields-BYhRpPcH.esm.js → inline-edit-fields-VOIx3qmC.esm.js} +2 -2
  149. package/dist/chunks/{inline-edit-fields-BYhRpPcH.esm.js.map → inline-edit-fields-VOIx3qmC.esm.js.map} +1 -1
  150. package/dist/chunks/{inventory-reports-title-bar-Bog2i0dr.js → inventory-reports-title-bar-BfUMM54c.js} +2 -2
  151. package/dist/chunks/{inventory-reports-title-bar-Bog2i0dr.js.map → inventory-reports-title-bar-BfUMM54c.js.map} +1 -1
  152. package/dist/chunks/{inventory-reports-title-bar-CP8FzW6A.esm.js → inventory-reports-title-bar-CZZFFqDc.esm.js} +3 -3
  153. package/dist/chunks/{inventory-reports-title-bar-CP8FzW6A.esm.js.map → inventory-reports-title-bar-CZZFFqDc.esm.js.map} +1 -1
  154. package/dist/chunks/{item-response-details-SHSD-nBh.esm.js → item-response-details-BTHf6ZvN.esm.js} +4 -4
  155. package/dist/chunks/{item-response-details-SHSD-nBh.esm.js.map → item-response-details-BTHf6ZvN.esm.js.map} +1 -1
  156. package/dist/chunks/{item-response-details-DsGQ7Dlc.js → item-response-details-BheThTTK.js} +2 -2
  157. package/dist/chunks/{item-response-details-DsGQ7Dlc.js.map → item-response-details-BheThTTK.js.map} +1 -1
  158. package/dist/chunks/{listing-DIuzQrzb.js → listing-Dr_1DDBr.js} +4 -4
  159. package/dist/chunks/{listing-DIuzQrzb.js.map → listing-Dr_1DDBr.js.map} +1 -1
  160. package/dist/chunks/{listing-C0Yb6MVq.esm.js → listing-ELQeM6S3.esm.js} +4 -4
  161. package/dist/chunks/{listing-C0Yb6MVq.esm.js.map → listing-ELQeM6S3.esm.js.map} +1 -1
  162. package/dist/chunks/{location-select-g5uczAUF.js → location-select-CLyRUilk.js} +2 -2
  163. package/dist/chunks/{location-select-g5uczAUF.js.map → location-select-CLyRUilk.js.map} +1 -1
  164. package/dist/chunks/{location-select-CFa00fy4.esm.js → location-select-z1C88kCy.esm.js} +2 -2
  165. package/dist/chunks/{location-select-CFa00fy4.esm.js.map → location-select-z1C88kCy.esm.js.map} +1 -1
  166. package/dist/chunks/{material-editable-table-BGLjrTzT.js → material-editable-table-DFGB0q-s.js} +3 -3
  167. package/dist/chunks/{material-editable-table-BGLjrTzT.js.map → material-editable-table-DFGB0q-s.js.map} +1 -1
  168. package/dist/chunks/{material-editable-table-pAyK7KYf.esm.js → material-editable-table-DyGdqNkX.esm.js} +4 -4
  169. package/dist/chunks/{material-editable-table-pAyK7KYf.esm.js.map → material-editable-table-DyGdqNkX.esm.js.map} +1 -1
  170. package/dist/chunks/{module-reducer-DMxxForv.esm.js → module-reducer-CEv3LZCX.esm.js} +2 -2
  171. package/dist/chunks/{module-reducer-DMxxForv.esm.js.map → module-reducer-CEv3LZCX.esm.js.map} +1 -1
  172. package/dist/chunks/{modules-BZNWOWrz.js → modules-DTRr7zwt.js} +2 -2
  173. package/dist/chunks/{modules-BZNWOWrz.js.map → modules-DTRr7zwt.js.map} +1 -1
  174. package/dist/chunks/{modules-CWV4WSHs.esm.js → modules-enwLrpfQ.esm.js} +2 -2
  175. package/dist/chunks/{modules-CWV4WSHs.esm.js.map → modules-enwLrpfQ.esm.js.map} +1 -1
  176. package/dist/chunks/{notification-menu-D7ASm-K1.js → notification-menu-B00hDUbn.js} +2 -2
  177. package/dist/chunks/{notification-menu-D7ASm-K1.js.map → notification-menu-B00hDUbn.js.map} +1 -1
  178. package/dist/chunks/{notification-menu-XAadkn-e.esm.js → notification-menu-CehCt5fA.esm.js} +4 -4
  179. package/dist/chunks/{notification-menu-XAadkn-e.esm.js.map → notification-menu-CehCt5fA.esm.js.map} +1 -1
  180. package/dist/chunks/{page-action-C07iGjvN.esm.js → page-action-RqVevciV.esm.js} +4 -4
  181. package/dist/chunks/{page-action-C07iGjvN.esm.js.map → page-action-RqVevciV.esm.js.map} +1 -1
  182. package/dist/chunks/{page-action-BPzaL2KJ.js → page-action-TMFOytDw.js} +2 -2
  183. package/dist/chunks/{page-action-BPzaL2KJ.js.map → page-action-TMFOytDw.js.map} +1 -1
  184. package/dist/chunks/{page-navigator-8gZpp9_P.esm.js → page-navigator-CuIJ0KGf.esm.js} +2 -2
  185. package/dist/chunks/{page-navigator-8gZpp9_P.esm.js.map → page-navigator-CuIJ0KGf.esm.js.map} +1 -1
  186. package/dist/chunks/{page-navigator-Cgbh3tTG.js → page-navigator-DdRsmtLy.js} +2 -2
  187. package/dist/chunks/{page-navigator-Cgbh3tTG.js.map → page-navigator-DdRsmtLy.js.map} +1 -1
  188. package/dist/chunks/{page-view-DJ6HS_dV.js → page-view-CvfqzV03.js} +3 -3
  189. package/dist/chunks/{page-view-DJ6HS_dV.js.map → page-view-CvfqzV03.js.map} +1 -1
  190. package/dist/chunks/{page-view-CokUNMBn.esm.js → page-view-Daz-OKd_.esm.js} +3 -3
  191. package/dist/chunks/{page-view-CokUNMBn.esm.js.map → page-view-Daz-OKd_.esm.js.map} +1 -1
  192. package/dist/chunks/{pathname.rental-qsAe3XFd.esm.js → pathname.rental-CqHO_l_D.esm.js} +76 -81
  193. package/dist/chunks/{pathname.rental-qsAe3XFd.esm.js.map → pathname.rental-CqHO_l_D.esm.js.map} +1 -1
  194. package/dist/chunks/{pathname.rental-DgH4LoG7.js → pathname.rental-CwK6JuID.js} +2 -7
  195. package/dist/chunks/{pathname.rental-DgH4LoG7.js.map → pathname.rental-CwK6JuID.js.map} +1 -1
  196. package/dist/chunks/{quick-approval-modal-CPWs8htH.esm.js → quick-approval-modal-B-jvkgue.esm.js} +2 -2
  197. package/dist/chunks/{quick-approval-modal-CPWs8htH.esm.js.map → quick-approval-modal-B-jvkgue.esm.js.map} +1 -1
  198. package/dist/chunks/{reducer-CdJ6znKF.esm.js → reducer-BMkh_0Py.esm.js} +3 -3
  199. package/dist/chunks/{reducer-CdJ6znKF.esm.js.map → reducer-BMkh_0Py.esm.js.map} +1 -1
  200. package/dist/chunks/{reducer-3tSO6RW6.esm.js → reducer-BOwyP0QZ.esm.js} +3 -3
  201. package/dist/chunks/{reducer-3tSO6RW6.esm.js.map → reducer-BOwyP0QZ.esm.js.map} +1 -1
  202. package/dist/chunks/{reducer-IsgN83rP.esm.js → reducer-BTfG9J4W.esm.js} +2 -2
  203. package/dist/chunks/{reducer-IsgN83rP.esm.js.map → reducer-BTfG9J4W.esm.js.map} +1 -1
  204. package/dist/chunks/{reducer-yyZtsg1A.esm.js → reducer-BWiX5vxL.esm.js} +2 -2
  205. package/dist/chunks/{reducer-yyZtsg1A.esm.js.map → reducer-BWiX5vxL.esm.js.map} +1 -1
  206. package/dist/chunks/{reducer-sgaK2vfW.esm.js → reducer-CD1VDqeT.esm.js} +2 -2
  207. package/dist/chunks/{reducer-sgaK2vfW.esm.js.map → reducer-CD1VDqeT.esm.js.map} +1 -1
  208. package/dist/chunks/{reports-title-bar-Kz6JjqsY.js → reports-title-bar-B1_IweEc.js} +2 -2
  209. package/dist/chunks/{reports-title-bar-Kz6JjqsY.js.map → reports-title-bar-B1_IweEc.js.map} +1 -1
  210. package/dist/chunks/{reports-title-bar-Cay4E8SQ.esm.js → reports-title-bar-Kl8XQe-K.esm.js} +4 -4
  211. package/dist/chunks/{reports-title-bar-Cay4E8SQ.esm.js.map → reports-title-bar-Kl8XQe-K.esm.js.map} +1 -1
  212. package/dist/chunks/{route-page-map-Dn-SAbdf.js → route-page-map-CzFUh-SC.js} +3 -60
  213. package/dist/chunks/{route-page-map-Dn-SAbdf.js.map → route-page-map-CzFUh-SC.js.map} +1 -1
  214. package/dist/chunks/{route-page-map-DkWoisiB.esm.js → route-page-map-D6-7jBQT.esm.js} +76 -133
  215. package/dist/chunks/{route-page-map-DkWoisiB.esm.js.map → route-page-map-D6-7jBQT.esm.js.map} +1 -1
  216. package/dist/chunks/{routes-Be8qxaVS.esm.js → routes-D9y_XQRu.esm.js} +4 -4
  217. package/dist/chunks/{routes-Be8qxaVS.esm.js.map → routes-D9y_XQRu.esm.js.map} +1 -1
  218. package/dist/chunks/{routes-Bi8lChPT.js → routes-Dsumzjw0.js} +4 -4
  219. package/dist/chunks/{routes-Bi8lChPT.js.map → routes-Dsumzjw0.js.map} +1 -1
  220. package/dist/chunks/{schedule-report-B4ZfEuiU.js → schedule-report-BwmZ5jea.js} +4 -4
  221. package/dist/chunks/{schedule-report-B4ZfEuiU.js.map → schedule-report-BwmZ5jea.js.map} +1 -1
  222. package/dist/chunks/{schedule-report-CLXjjfjc.esm.js → schedule-report-CJXHVZ68.esm.js} +6 -6
  223. package/dist/chunks/{schedule-report-CLXjjfjc.esm.js.map → schedule-report-CJXHVZ68.esm.js.map} +1 -1
  224. package/dist/chunks/{schedule-report-modal-CB3G9H7x.esm.js → schedule-report-modal-D8Y-TZ4u.esm.js} +3 -3
  225. package/dist/chunks/{schedule-report-modal-CB3G9H7x.esm.js.map → schedule-report-modal-D8Y-TZ4u.esm.js.map} +1 -1
  226. package/dist/chunks/{schedule-report-modal-iwoDI-sg.js → schedule-report-modal-iNnWP9s4.js} +2 -2
  227. package/dist/chunks/{schedule-report-modal-iwoDI-sg.js.map → schedule-report-modal-iNnWP9s4.js.map} +1 -1
  228. package/dist/chunks/{searchable-select-0F6E4XAr.esm.js → searchable-select-BQtcqBKV.esm.js} +6 -6
  229. package/dist/chunks/{searchable-select-0F6E4XAr.esm.js.map → searchable-select-BQtcqBKV.esm.js.map} +1 -1
  230. package/dist/chunks/{searchable-select-_DCkITfk.js → searchable-select-DVUCWWti.js} +2 -2
  231. package/dist/chunks/{searchable-select-_DCkITfk.js.map → searchable-select-DVUCWWti.js.map} +1 -1
  232. package/dist/chunks/{share-modal-BaEyZs2h.esm.js → share-modal-BOyLBawK.esm.js} +3 -3
  233. package/dist/chunks/{share-modal-BaEyZs2h.esm.js.map → share-modal-BOyLBawK.esm.js.map} +1 -1
  234. package/dist/chunks/{share-modal-DrXvh-fV.js → share-modal-CobK7BN7.js} +2 -2
  235. package/dist/chunks/{share-modal-DrXvh-fV.js.map → share-modal-CobK7BN7.js.map} +1 -1
  236. package/dist/chunks/{share-modal-enhanced-DnEdDBmu.esm.js → share-modal-enhanced-CTp-tQw8.esm.js} +2 -2
  237. package/dist/chunks/{share-modal-enhanced-DnEdDBmu.esm.js.map → share-modal-enhanced-CTp-tQw8.esm.js.map} +1 -1
  238. package/dist/chunks/{share-modal-enhanced-BTr0zRhF.js → share-modal-enhanced-DVarD-jt.js} +2 -2
  239. package/dist/chunks/{share-modal-enhanced-BTr0zRhF.js.map → share-modal-enhanced-DVarD-jt.js.map} +1 -1
  240. package/dist/chunks/{sidebarScreen-3iZYCAMn.js → sidebarScreen-K-dlM6NA.js} +2 -2
  241. package/dist/chunks/{sidebarScreen-3iZYCAMn.js.map → sidebarScreen-K-dlM6NA.js.map} +1 -1
  242. package/dist/chunks/{sidebarScreen-CYUn8OsB.esm.js → sidebarScreen-lR6rw8bW.esm.js} +4 -4
  243. package/dist/chunks/{sidebarScreen-CYUn8OsB.esm.js.map → sidebarScreen-lR6rw8bW.esm.js.map} +1 -1
  244. package/dist/chunks/{store-BL5VFPie.esm.js → store-DJh8C3Vv.esm.js} +6 -6
  245. package/dist/chunks/{store-BL5VFPie.esm.js.map → store-DJh8C3Vv.esm.js.map} +1 -1
  246. package/dist/chunks/{table-DWx7x8zw.js → table-Bpt6ggr3.js} +2 -2
  247. package/dist/chunks/{table-DWx7x8zw.js.map → table-Bpt6ggr3.js.map} +1 -1
  248. package/dist/chunks/{table-gxAlAeTq.esm.js → table-DI3MyTNm.esm.js} +3 -3
  249. package/dist/chunks/{table-gxAlAeTq.esm.js.map → table-DI3MyTNm.esm.js.map} +1 -1
  250. package/dist/chunks/{table-form-DsTwCUcs.esm.js → table-form-8_f3FwhX.esm.js} +2 -2
  251. package/dist/chunks/{table-form-DsTwCUcs.esm.js.map → table-form-8_f3FwhX.esm.js.map} +1 -1
  252. package/dist/chunks/{template-editor-router-BRxF8Dj_.js → template-editor-router-DugWbCh0.js} +2 -2
  253. package/dist/chunks/{template-editor-router-BRxF8Dj_.js.map → template-editor-router-DugWbCh0.js.map} +1 -1
  254. package/dist/chunks/{template-editor-router-BV5FrwJm.esm.js → template-editor-router-uzghBOap.esm.js} +2 -2
  255. package/dist/chunks/{template-editor-router-BV5FrwJm.esm.js.map → template-editor-router-uzghBOap.esm.js.map} +1 -1
  256. package/dist/chunks/{template-modal-B2VgotrF.esm.js → template-modal-D7aLacan.esm.js} +7 -6
  257. package/dist/chunks/template-modal-D7aLacan.esm.js.map +1 -0
  258. package/dist/chunks/{template-modal-X-iSmlki.js → template-modal-Df7gF4QI.js} +5 -4
  259. package/dist/chunks/template-modal-Df7gF4QI.js.map +1 -0
  260. package/dist/chunks/{template-name-modal-CeqxIE2r.js → template-name-modal-ClreVUaz.js} +12 -5
  261. package/dist/chunks/template-name-modal-ClreVUaz.js.map +1 -0
  262. package/dist/chunks/{template-name-modal-Dctn8t3t.esm.js → template-name-modal-Dwe7U72p.esm.js} +12 -5
  263. package/dist/chunks/template-name-modal-Dwe7U72p.esm.js.map +1 -0
  264. package/dist/chunks/{templates-DxvU4PQY.esm.js → templates-9ZMHwRR6.esm.js} +9 -9
  265. package/dist/chunks/templates-9ZMHwRR6.esm.js.map +1 -0
  266. package/dist/chunks/{templates-BY9HF32G.js → templates-DCXbeOtH.js} +6 -6
  267. package/dist/chunks/templates-DCXbeOtH.js.map +1 -0
  268. package/dist/chunks/{text-measurement-BCjauPbB.esm.js → text-measurement-DMVkqP6b.esm.js} +2 -2
  269. package/dist/chunks/{text-measurement-BCjauPbB.esm.js.map → text-measurement-DMVkqP6b.esm.js.map} +1 -1
  270. package/dist/chunks/{translations-BrwQcVN3.esm.js → translations-JcE6qyDJ.esm.js} +3 -3
  271. package/dist/chunks/{translations-BrwQcVN3.esm.js.map → translations-JcE6qyDJ.esm.js.map} +1 -1
  272. package/dist/chunks/{uom-field-wrapper-DXZgzOYB.js → uom-field-wrapper-CSqeiVPY.js} +2 -2
  273. package/dist/chunks/{uom-field-wrapper-DXZgzOYB.js.map → uom-field-wrapper-CSqeiVPY.js.map} +1 -1
  274. package/dist/chunks/{uom-field-wrapper-CTbEc-MB.esm.js → uom-field-wrapper-CWTsSsSi.esm.js} +2 -2
  275. package/dist/chunks/{uom-field-wrapper-CTbEc-MB.esm.js.map → uom-field-wrapper-CWTsSsSi.esm.js.map} +1 -1
  276. package/dist/chunks/{upload-excel-BZPP13tP.esm.js → upload-excel-CkEQqZW2.esm.js} +2 -2
  277. package/dist/chunks/{upload-excel-BZPP13tP.esm.js.map → upload-excel-CkEQqZW2.esm.js.map} +1 -1
  278. package/dist/chunks/{use-translations-BzykVZOP.esm.js → use-translations-BqBPN1DM.esm.js} +3 -3
  279. package/dist/chunks/{use-translations-BzykVZOP.esm.js.map → use-translations-BqBPN1DM.esm.js.map} +1 -1
  280. package/dist/chunks/{use-translations-CNI_xsIo.js → use-translations-Cn3b4Kqh.js} +2 -2
  281. package/dist/chunks/{use-translations-CNI_xsIo.js.map → use-translations-Cn3b4Kqh.js.map} +1 -1
  282. package/dist/chunks/{useAccountSetting-vAqgEiJB.esm.js → useAccountSetting-DsU5zsjb.esm.js} +2 -2
  283. package/dist/chunks/{useAccountSetting-vAqgEiJB.esm.js.map → useAccountSetting-DsU5zsjb.esm.js.map} +1 -1
  284. package/dist/chunks/{useCheckSkuAndName-Dl24wQO-.esm.js → useCheckSkuAndName-5ua30aZf.esm.js} +2 -2
  285. package/dist/chunks/{useCheckSkuAndName-Dl24wQO-.esm.js.map → useCheckSkuAndName-5ua30aZf.esm.js.map} +1 -1
  286. package/dist/chunks/{useReduxIntegration-DZBfKF7d.esm.js → useReduxIntegration-BlLpfwk6.esm.js} +2 -2
  287. package/dist/chunks/{useReduxIntegration-DZBfKF7d.esm.js.map → useReduxIntegration-BlLpfwk6.esm.js.map} +1 -1
  288. package/dist/chunks/{useUniquenessCheck-bYjnp_0P.esm.js → useUniquenessCheck-CiR2q5bM.esm.js} +2 -2
  289. package/dist/chunks/{useUniquenessCheck-bYjnp_0P.esm.js.map → useUniquenessCheck-CiR2q5bM.esm.js.map} +1 -1
  290. package/dist/chunks/{useVendorAICompare-DZRFDk4i.esm.js → useVendorAICompare-DMJvJJ3Y.esm.js} +2 -2
  291. package/dist/chunks/{useVendorAICompare-DZRFDk4i.esm.js.map → useVendorAICompare-DMJvJJ3Y.esm.js.map} +1 -1
  292. package/dist/chunks/{value-editor-BSS9Ns2T.js → value-editor-Br7X_wEB.js} +2 -2
  293. package/dist/chunks/{value-editor-BSS9Ns2T.js.map → value-editor-Br7X_wEB.js.map} +1 -1
  294. package/dist/chunks/{value-editor-DQ1qgZ2u.esm.js → value-editor-BxFdnUyM.esm.js} +4 -4
  295. package/dist/chunks/{value-editor-DQ1qgZ2u.esm.js.map → value-editor-BxFdnUyM.esm.js.map} +1 -1
  296. package/dist/chunks/{vendor-ai-summary-BA6m2dH9.esm.js → vendor-ai-summary-Cpx90QOx.esm.js} +2 -2
  297. package/dist/chunks/{vendor-ai-summary-BA6m2dH9.esm.js.map → vendor-ai-summary-Cpx90QOx.esm.js.map} +1 -1
  298. package/dist/chunks/{vendor-ai-summary-DWmAaQ_N.js → vendor-ai-summary-zranZkfk.js} +2 -2
  299. package/dist/chunks/{vendor-ai-summary-DWmAaQ_N.js.map → vendor-ai-summary-zranZkfk.js.map} +1 -1
  300. package/dist/components/action-bar/action-bar/index.esm.js +1 -1
  301. package/dist/components/action-bar/action-bar/index.js +1 -1
  302. package/dist/components/action-bar/index.esm.js +1 -1
  303. package/dist/components/action-bar/index.js +1 -1
  304. package/dist/components/address-modal/index.esm.js +1 -1
  305. package/dist/components/address-modal/index.js +1 -1
  306. package/dist/components/ai-summary/ai-summary/index.esm.js +1 -1
  307. package/dist/components/ai-summary/index.esm.js +1 -1
  308. package/dist/components/appbar/appbar/index.esm.js +1 -1
  309. package/dist/components/appbar/appbar/index.js +1 -1
  310. package/dist/components/appbar/index.esm.js +1 -1
  311. package/dist/components/appbar/index.js +1 -1
  312. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
  313. package/dist/components/approval-wrapper/index.esm.js +1 -1
  314. package/dist/components/chat-bot/index.esm.js +1 -1
  315. package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
  316. package/dist/components/custom-forms/FORMS/index.js +1 -1
  317. package/dist/components/custom-forms/grid-view/grid-view/index.esm.js +1 -1
  318. package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
  319. package/dist/components/custom-forms/index.esm.js +2 -2
  320. package/dist/components/custom-forms/index.js +1 -1
  321. package/dist/components/department-add-modal/index.esm.js +1 -1
  322. package/dist/components/department-add-modal/index.js +1 -1
  323. package/dist/components/designation-add-modal/index.esm.js +1 -1
  324. package/dist/components/designation-add-modal/index.js +1 -1
  325. package/dist/components/editor/custom-editor/index.esm.js +1 -1
  326. package/dist/components/editor/index.esm.js +1 -1
  327. package/dist/components/examples/FlexibleReduxExample/index.esm.js +1 -1
  328. package/dist/components/examples/FlexibleReduxExample/index.js +1 -1
  329. package/dist/components/examples/index.esm.js +1 -1
  330. package/dist/components/examples/index.js +1 -1
  331. package/dist/components/filter/components/index.esm.js +1 -1
  332. package/dist/components/filter/components/index.js +1 -1
  333. package/dist/components/filter/components/value-editor/index.esm.js +1 -1
  334. package/dist/components/filter/components/value-editor/index.js +1 -1
  335. package/dist/components/filter/filter/index.esm.js +1 -1
  336. package/dist/components/filter/filter/index.js +1 -1
  337. package/dist/components/filter/index.esm.js +2 -2
  338. package/dist/components/filter/index.js +2 -2
  339. package/dist/components/footer/footer/index.esm.js +1 -1
  340. package/dist/components/footer/footer/index.js +1 -1
  341. package/dist/components/footer/index.esm.js +1 -1
  342. package/dist/components/footer/index.js +1 -1
  343. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.esm.js +1 -1
  344. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.js +1 -1
  345. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +1 -1
  346. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +1 -1
  347. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.esm.js +1 -1
  348. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.esm.js +1 -1
  349. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
  350. package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +4 -4
  351. package/dist/components/form-control/form-builder/form-builder-element/index.js +3 -3
  352. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.esm.js +1 -1
  353. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.js +1 -1
  354. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
  355. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
  356. package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
  357. package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
  358. package/dist/components/form-control/form-builder/index.esm.js +4 -4
  359. package/dist/components/form-control/form-builder/index.js +3 -3
  360. package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
  361. package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
  362. package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
  363. package/dist/components/form-control/form-parser/form-section/index.js +1 -1
  364. package/dist/components/form-control/form-parser/index.esm.js +2 -2
  365. package/dist/components/form-control/form-parser/index.js +2 -2
  366. package/dist/components/form-control/index.esm.js +6 -6
  367. package/dist/components/form-control/index.js +5 -5
  368. package/dist/components/header/components/app-switcher/index.esm.js +1 -1
  369. package/dist/components/header/components/app-switcher/index.js +1 -1
  370. package/dist/components/header/components/global-search/index.esm.js +1 -1
  371. package/dist/components/header/components/global-search/index.js +1 -1
  372. package/dist/components/header/components/index.esm.js +1 -1
  373. package/dist/components/header/components/index.js +1 -1
  374. package/dist/components/header/components/notification-menu/index.esm.js +1 -1
  375. package/dist/components/header/components/notification-menu/index.js +1 -1
  376. package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
  377. package/dist/components/header/components/notification-menu/notification-menu/index.js +1 -1
  378. package/dist/components/header/header/index.esm.js +1 -1
  379. package/dist/components/header/header/index.js +1 -1
  380. package/dist/components/header/header-enhanced/index.esm.js +1 -1
  381. package/dist/components/header/header-enhanced/index.js +1 -1
  382. package/dist/components/header/index.esm.js +5 -5
  383. package/dist/components/header/index.js +3 -3
  384. package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
  385. package/dist/components/header/redux/index.esm.js +2 -2
  386. package/dist/components/header/redux/reducer/index.esm.js +1 -1
  387. package/dist/components/index.esm.js +36 -36
  388. package/dist/components/index.js +26 -26
  389. package/dist/components/inventory-reports-title-bar/index.esm.js +3 -3
  390. package/dist/components/inventory-reports-title-bar/index.js +1 -1
  391. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
  392. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
  393. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  394. package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
  395. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
  396. package/dist/components/listing/index.esm.js +1 -1
  397. package/dist/components/listing/index.js +1 -1
  398. package/dist/components/listing/listing/index.esm.js +1 -1
  399. package/dist/components/listing/listing/index.js +1 -1
  400. package/dist/components/location-select/index.esm.js +1 -1
  401. package/dist/components/location-select/index.js +1 -1
  402. package/dist/components/material-editable-table/components/index.esm.js +1 -1
  403. package/dist/components/material-editable-table/components/index.js +1 -1
  404. package/dist/components/material-editable-table/components/inline-edit-fields/index.esm.js +1 -1
  405. package/dist/components/material-editable-table/components/inline-edit-fields/index.js +1 -1
  406. package/dist/components/material-editable-table/index.esm.js +2 -2
  407. package/dist/components/material-editable-table/index.js +2 -2
  408. package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
  409. package/dist/components/material-editable-table/material-editable-table/index.js +1 -1
  410. package/dist/components/material-table/components/index.esm.js +1 -1
  411. package/dist/components/material-table/components/index.js +1 -1
  412. package/dist/components/material-table/components/inline-edit-fields/index.esm.js +1 -1
  413. package/dist/components/material-table/components/inline-edit-fields/index.js +1 -1
  414. package/dist/components/material-table/index.esm.js +1 -1
  415. package/dist/components/material-table/index.js +1 -1
  416. package/dist/components/material-table/material-table/index.esm.js +1 -1
  417. package/dist/components/material-table/material-table/index.js +1 -1
  418. package/dist/components/page-navigator/components/index.esm.js +1 -1
  419. package/dist/components/page-navigator/components/index.js +1 -1
  420. package/dist/components/page-navigator/components/page-action/index.esm.js +1 -1
  421. package/dist/components/page-navigator/components/page-action/index.js +1 -1
  422. package/dist/components/page-navigator/index.esm.js +2 -2
  423. package/dist/components/page-navigator/index.js +2 -2
  424. package/dist/components/page-navigator/page-navigator/index.esm.js +1 -1
  425. package/dist/components/page-navigator/page-navigator/index.js +1 -1
  426. package/dist/components/parties-modal/index.esm.js +1 -1
  427. package/dist/components/parties-modal/index.js +1 -1
  428. package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
  429. package/dist/components/parties-modal/parties-modal/index.js +1 -1
  430. package/dist/components/providers/ERPUIProvider/index.esm.js +1 -1
  431. package/dist/components/providers/index.esm.js +1 -1
  432. package/dist/components/quick-approval-modal/index.esm.js +1 -1
  433. package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
  434. package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
  435. package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
  436. package/dist/components/reports/dynamic-report/index.esm.js +2 -2
  437. package/dist/components/reports/index.esm.js +2 -2
  438. package/dist/components/reports-title-bar/index.esm.js +3 -3
  439. package/dist/components/reports-title-bar/index.js +1 -1
  440. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  441. package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
  442. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
  443. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  444. package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
  445. package/dist/components/rfq-response/index.esm.js +1 -1
  446. package/dist/components/rfq-response/index.js +1 -1
  447. package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
  448. package/dist/components/rfq-response/item-response-details/index.js +1 -1
  449. package/dist/components/schedule-report/index.esm.js +2 -2
  450. package/dist/components/schedule-report/index.js +2 -2
  451. package/dist/components/schedule-report/schedule-report/index.esm.js +1 -1
  452. package/dist/components/schedule-report/schedule-report/index.js +1 -1
  453. package/dist/components/schedule-report/schedule-report-modal/index.esm.js +1 -1
  454. package/dist/components/schedule-report/schedule-report-modal/index.js +1 -1
  455. package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
  456. package/dist/components/searchable-select/index.esm.js +1 -1
  457. package/dist/components/searchable-select/index.js +1 -1
  458. package/dist/components/share-modal/index.esm.js +4 -4
  459. package/dist/components/share-modal/index.js +2 -2
  460. package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
  461. package/dist/components/share-modal/redux/index.esm.js +2 -2
  462. package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
  463. package/dist/components/share-modal/share-modal/index.esm.js +1 -1
  464. package/dist/components/share-modal/share-modal/index.js +1 -1
  465. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +1 -1
  466. package/dist/components/share-modal/share-modal-enhanced/index.js +1 -1
  467. package/dist/components/team-add-modal/index.esm.js +1 -1
  468. package/dist/components/team-add-modal/index.js +1 -1
  469. package/dist/components/uom-field-wrapper/index.esm.js +1 -1
  470. package/dist/components/uom-field-wrapper/index.js +1 -1
  471. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
  472. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
  473. package/dist/components/upload-excel/index.esm.js +1 -1
  474. package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
  475. package/dist/components/vendor-ai-summary/index.esm.js +1 -1
  476. package/dist/components/vendor-ai-summary/index.js +1 -1
  477. package/dist/constants/index.esm.js +143 -145
  478. package/dist/constants/index.js +3 -5
  479. package/dist/constants/index.js.map +1 -1
  480. package/dist/hooks/index.esm.js +6 -6
  481. package/dist/hooks/index.js +1 -1
  482. package/dist/hooks/use-translations/index.esm.js +1 -1
  483. package/dist/hooks/use-translations/index.js +1 -1
  484. package/dist/hooks/useAccountSetting/index.esm.js +1 -1
  485. package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
  486. package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
  487. package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
  488. package/dist/index.esm.js +235 -232
  489. package/dist/index.esm.js.map +1 -1
  490. package/dist/index.js +66 -63
  491. package/dist/index.js.map +1 -1
  492. package/dist/layout/fullScreen/index.esm.js +1 -1
  493. package/dist/layout/fullScreen/index.js +1 -1
  494. package/dist/layout/index.esm.js +2 -2
  495. package/dist/layout/index.js +2 -2
  496. package/dist/layout/sidebarScreen/index.esm.js +1 -1
  497. package/dist/layout/sidebarScreen/index.js +1 -1
  498. package/dist/redux/index.esm.js +3 -3
  499. package/dist/runtime/index.esm.js +4 -4
  500. package/dist/runtime/index.js +2 -2
  501. package/dist/src/constants/defaultColumns.d.ts +0 -1
  502. package/dist/src/constants/pathnames/pathname.procurement.d.ts +0 -4
  503. package/dist/src/views/template-editor/components/EditorCanvas/FreeCanvas.d.ts +34 -0
  504. package/dist/src/views/template-editor/components/EditorCanvas/FreeElement.d.ts +30 -0
  505. package/dist/src/views/template-editor/components/EditorCanvas.d.ts +30 -12
  506. package/dist/src/views/template-editor/components/EditorHeader.d.ts +6 -0
  507. package/dist/src/views/template-editor/components/EditorSection.d.ts +1 -0
  508. package/dist/src/views/template-editor/components/SectionFlowEditor.d.ts +2 -3
  509. package/dist/src/views/template-editor/components/SectionFormatPanel.d.ts +2 -1
  510. package/dist/src/views/template-editor/components/controllers/TableControls.d.ts +23 -0
  511. package/dist/src/views/template-editor/components/controllers/TextControls.d.ts +3 -0
  512. package/dist/src/views/template-editor/components/stationery/StationeryPreview.d.ts +24 -0
  513. package/dist/src/views/template-editor/components/stationery/StationerySidebar.d.ts +9 -0
  514. package/dist/src/views/template-editor/engine/ai.d.ts +12 -0
  515. package/dist/src/views/template-editor/engine/app.d.ts +1 -0
  516. package/dist/src/views/template-editor/engine/controls.d.ts +4 -0
  517. package/dist/src/views/template-editor/engine/design-canvas.d.ts +24 -0
  518. package/dist/src/views/template-editor/engine/editor.d.ts +17 -0
  519. package/dist/src/views/template-editor/engine/engine.d.ts +18 -0
  520. package/dist/src/views/template-editor/engine/icons.d.ts +91 -0
  521. package/dist/src/views/template-editor/engine/letterpads.d.ts +1 -0
  522. package/dist/src/views/template-editor/engine/model.d.ts +20 -0
  523. package/dist/src/views/template-editor/engine/paginator.d.ts +30 -0
  524. package/dist/src/views/template-editor/engine/picker.d.ts +20 -0
  525. package/dist/src/views/template-editor/engine/schema.d.ts +647 -0
  526. package/dist/src/views/template-editor/engine/stationery-app.d.ts +10 -0
  527. package/dist/src/views/template-editor/engine/stationery-doc.d.ts +62 -0
  528. package/dist/src/views/template-editor/engine/stationery-free-element.d.ts +22 -0
  529. package/dist/src/views/template-editor/engine/stationery-store.d.ts +154 -0
  530. package/dist/src/views/template-editor/engine/templatebuilder.d.ts +51 -0
  531. package/dist/src/views/template-editor/engine/templates.d.ts +11 -0
  532. package/dist/src/views/template-editor/icons/custom-styled-icon.d.ts +7 -0
  533. package/dist/src/views/template-editor/icons/edit.d.ts +4 -0
  534. package/dist/src/views/template-editor/icons/trash.d.ts +4 -0
  535. package/dist/src/views/template-editor/types/editor.d.ts +20 -108
  536. package/dist/src/views/template-editor/types/stationery.d.ts +66 -0
  537. package/dist/src/views/template-editor/utils/common.d.ts +10 -1
  538. package/dist/src/views/template-editor/utils/compiler.d.ts +12 -0
  539. package/dist/src/views/template-editor/utils/constant.d.ts +4 -1
  540. package/dist/style.css +4619 -33
  541. package/dist/utils/api/index.esm.js +1 -1
  542. package/dist/utils/common/index.esm.js +1 -1
  543. package/dist/utils/common-utility/index.esm.js +1 -1
  544. package/dist/utils/export-filters/index.esm.js +0 -1
  545. package/dist/utils/export-filters/index.esm.js.map +1 -1
  546. package/dist/utils/export-filters/index.js +0 -1
  547. package/dist/utils/export-filters/index.js.map +1 -1
  548. package/dist/utils/index.esm.js +8 -8
  549. package/dist/utils/server/index.esm.js +2 -2
  550. package/dist/utils/text-measurement/index.esm.js +1 -1
  551. package/dist/views/afterAuth/dashboard/index.esm.js +1 -1
  552. package/dist/views/afterAuth/dashboard/index.js +1 -1
  553. package/dist/views/afterAuth/index.esm.js +2 -2
  554. package/dist/views/afterAuth/index.js +2 -2
  555. package/dist/views/afterAuth/page-view/index.esm.js +1 -1
  556. package/dist/views/afterAuth/page-view/index.js +1 -1
  557. package/dist/views/form-builder/custom-form/index.esm.js +1 -1
  558. package/dist/views/form-builder/custom-form/index.js +1 -1
  559. package/dist/views/form-builder/element-edit-forms/index.esm.js +1 -1
  560. package/dist/views/form-builder/form-fields/index.esm.js +1 -1
  561. package/dist/views/form-builder/form-fields/index.js +1 -1
  562. package/dist/views/form-builder/index.esm.js +5 -5
  563. package/dist/views/form-builder/index.js +3 -3
  564. package/dist/views/form-builder/redux/index.esm.js +1 -1
  565. package/dist/views/form-builder/utils/index.esm.js +1 -1
  566. package/dist/views/form-builder/utils/index.js +1 -1
  567. package/dist/views/index.esm.js +39 -34
  568. package/dist/views/index.esm.js.map +1 -1
  569. package/dist/views/index.js +36 -31
  570. package/dist/views/index.js.map +1 -1
  571. package/dist/views/template-editor/add-template/index.esm.js +1 -1
  572. package/dist/views/template-editor/add-template/index.js +1 -1
  573. package/dist/views/template-editor/components/index.esm.js +7 -6
  574. package/dist/views/template-editor/components/index.esm.js.map +1 -1
  575. package/dist/views/template-editor/components/index.js +4 -3
  576. package/dist/views/template-editor/components/index.js.map +1 -1
  577. package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
  578. package/dist/views/template-editor/index.esm.js +25 -20
  579. package/dist/views/template-editor/index.esm.js.map +1 -1
  580. package/dist/views/template-editor/index.js +16 -11
  581. package/dist/views/template-editor/index.js.map +1 -1
  582. package/dist/views/template-editor/routes/index.esm.js +1 -1
  583. package/dist/views/template-editor/routes/index.js +1 -1
  584. package/dist/views/template-editor/template-modal/index.esm.js +1 -1
  585. package/dist/views/template-editor/template-modal/index.js +1 -1
  586. package/dist/views/template-editor/template-name-modal/index.esm.js +1 -1
  587. package/dist/views/template-editor/template-name-modal/index.js +1 -1
  588. package/dist/views/template-editor/templates/index.esm.js +1 -1
  589. package/dist/views/template-editor/templates/index.js +1 -1
  590. package/dist/views/template-editor/utils/index.esm.js +10 -6
  591. package/dist/views/template-editor/utils/index.js +6 -2
  592. package/dist/views/template-editor/utils/index.js.map +1 -1
  593. package/package.json +1 -1
  594. package/dist/chunks/SectionFlowEditor-CFfJBYKx.esm.js +0 -5479
  595. package/dist/chunks/SectionFlowEditor-CFfJBYKx.esm.js.map +0 -1
  596. package/dist/chunks/SectionFlowEditor-sKsZ3oQo.js +0 -5478
  597. package/dist/chunks/SectionFlowEditor-sKsZ3oQo.js.map +0 -1
  598. package/dist/chunks/add-template-DVvbD9a4.esm.js +0 -11
  599. package/dist/chunks/add-template-DVvbD9a4.esm.js.map +0 -1
  600. package/dist/chunks/add-template-Dohg2bHJ.js +0 -10
  601. package/dist/chunks/add-template-Dohg2bHJ.js.map +0 -1
  602. package/dist/chunks/common-C5AokA7z.js +0 -368
  603. package/dist/chunks/common-C5AokA7z.js.map +0 -1
  604. package/dist/chunks/common-CaomnEjX.esm.js +0 -369
  605. package/dist/chunks/common-CaomnEjX.esm.js.map +0 -1
  606. package/dist/chunks/common-utility-DGpbsf7S.esm.js.map +0 -1
  607. package/dist/chunks/constant-Bwg2s_Sn.esm.js.map +0 -1
  608. package/dist/chunks/constant-ZYAN_teD.js.map +0 -1
  609. package/dist/chunks/edit-section-modal-BW-aZmUv.esm.js.map +0 -1
  610. package/dist/chunks/template-modal-B2VgotrF.esm.js.map +0 -1
  611. package/dist/chunks/template-modal-X-iSmlki.js.map +0 -1
  612. package/dist/chunks/template-name-modal-CeqxIE2r.js.map +0 -1
  613. package/dist/chunks/template-name-modal-Dctn8t3t.esm.js.map +0 -1
  614. package/dist/chunks/templates-BY9HF32G.js.map +0 -1
  615. package/dist/chunks/templates-DxvU4PQY.esm.js.map +0 -1
@@ -0,0 +1,848 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const material = require("@mui/material");
4
+ const iconsMaterial = require("@mui/icons-material");
5
+ const typography = require("./typography-Bqfr1Ksf.js");
6
+ const edit = require("./edit-ChL0mRgz.js");
7
+ const eye = require("./eye-BM7Zd78y.js");
8
+ const CodeOutlinedIcon = require("@mui/icons-material/CodeOutlined");
9
+ const DescriptionOutlinedIcon = require("@mui/icons-material/DescriptionOutlined");
10
+ const ReceiptOutlinedIcon = require("@mui/icons-material/ReceiptOutlined");
11
+ const LocalShippingOutlinedIcon = require("@mui/icons-material/LocalShippingOutlined");
12
+ const FileCopyOutlinedIcon = require("@mui/icons-material/FileCopyOutlined");
13
+ const reactRouterDom = require("react-router-dom");
14
+ const common = require("./common-D6T6NGWY.js");
15
+ const React = require("react");
16
+ const core = require("@dnd-kit/core");
17
+ const DragIndicatorIcon = require("@mui/icons-material/DragIndicator");
18
+ const SplitIcon = require("@mui/icons-material/CallSplit");
19
+ const save = require("./save-omAUfbkE.js");
20
+ const trash = require("./trash-DWY4lso3.js");
21
+ const select = require("./select-xEdBPnWK.js");
22
+ const editSectionModal = require("./edit-section-modal-Br2ITvLk.js");
23
+ const checkbox = require("./checkbox-Bk957RvH.js");
24
+ const chip = require("./chip-CPZBkY1x.js");
25
+ const Close = require("@mui/icons-material/Close");
26
+ const styleExtractor = require("./style-extractor-BdLIJmVO.js");
27
+ const useDebouncedUpdate = require("./useDebouncedUpdate-jTw4M_Nx.js");
28
+ const EditorHeader = ({
29
+ onSave,
30
+ onPreview,
31
+ preview,
32
+ editHtml,
33
+ onEditHtml,
34
+ sections,
35
+ isEditingHeaderFooter,
36
+ onEditModeChange,
37
+ setIsEditingHeaderFooter,
38
+ onSaveHeaderFooter,
39
+ showSample,
40
+ setShowSample,
41
+ sampleType,
42
+ setSampleType,
43
+ samplePages,
44
+ setSamplePages,
45
+ modulePath,
46
+ type,
47
+ mode = "add",
48
+ templateData,
49
+ isSaving = false,
50
+ editMode,
51
+ fromPreview = false,
52
+ zoom,
53
+ onZoomIn,
54
+ onZoomOut,
55
+ onResetZoom
56
+ }) => {
57
+ const ROUTES = common.templateRoutes(modulePath, type);
58
+ return /* @__PURE__ */ jsxRuntime.jsx(
59
+ material.AppBar,
60
+ {
61
+ position: "static",
62
+ color: "default",
63
+ elevation: 0,
64
+ sx: {
65
+ borderColor: "divider",
66
+ bgcolor: "background.paper"
67
+ },
68
+ children: /* @__PURE__ */ jsxRuntime.jsxs(material.Toolbar, { variant: "dense", sx: { justifyContent: "space-between", p: 3 }, children: [
69
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
70
+ /* @__PURE__ */ jsxRuntime.jsx(
71
+ material.Link,
72
+ {
73
+ component: reactRouterDom.Link,
74
+ to: ROUTES.LIST,
75
+ underline: "hover",
76
+ color: "text.secondary",
77
+ sx: { fontSize: "0.875rem" },
78
+ children: /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s5", color: "theme.secondary.800", children: type === "email" ? "Emails" : "PDF" })
79
+ }
80
+ ),
81
+ /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s5", weight: "medium", color: "theme.secondary.1000", children: "/" }),
82
+ /* @__PURE__ */ jsxRuntime.jsxs(typography.Typography, { type: "s5", weight: "medium", color: "theme.secondary.1000", children: [
83
+ mode === "add" ? "Add New" : editMode ? "Edit" : "Preview",
84
+ " Template"
85
+ ] }),
86
+ templateData && (templateData == null ? void 0 : templateData.name) && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
87
+ /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s5", weight: "medium", color: "theme.secondary.1000", children: "/" }),
88
+ /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s5", weight: "medium", color: "theme.secondary.1000", children: templateData == null ? void 0 : templateData.name })
89
+ ] })
90
+ ] }),
91
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", spacing: 1, alignItems: "center", className: "editorHeader--Buttons", children: [
92
+ preview && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
93
+ /* @__PURE__ */ jsxRuntime.jsxs(
94
+ material.Box,
95
+ {
96
+ sx: {
97
+ display: "flex",
98
+ alignItems: "center",
99
+ gap: 1,
100
+ borderRadius: 1,
101
+ bgcolor: "rgba(74, 192, 140, 0.08)",
102
+ border: "1px solid rgba(74, 192, 140, 0.2)"
103
+ },
104
+ children: [
105
+ /* @__PURE__ */ jsxRuntime.jsx(
106
+ material.IconButton,
107
+ {
108
+ size: "small",
109
+ onClick: onZoomOut,
110
+ disabled: zoom <= 50,
111
+ color: "#4AC08C",
112
+ sx: {
113
+ color: "#4AC08C",
114
+ "&:hover": {
115
+ bgcolor: "rgba(74, 192, 140, 0.15)"
116
+ },
117
+ "&.Mui-disabled": {
118
+ opacity: 0.3,
119
+ color: "#4AC08C"
120
+ }
121
+ },
122
+ children: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ZoomOut, { fontSize: "small" })
123
+ }
124
+ ),
125
+ /* @__PURE__ */ jsxRuntime.jsxs(
126
+ typography.Typography,
127
+ {
128
+ type: "s5",
129
+ weight: "medium",
130
+ sx: {
131
+ minWidth: "50px",
132
+ textAlign: "center",
133
+ color: "#4AC08C"
134
+ },
135
+ children: [
136
+ zoom,
137
+ "%"
138
+ ]
139
+ }
140
+ ),
141
+ /* @__PURE__ */ jsxRuntime.jsx(
142
+ material.IconButton,
143
+ {
144
+ size: "small",
145
+ onClick: onZoomIn,
146
+ disabled: zoom >= 150,
147
+ sx: {
148
+ color: "#4AC08C",
149
+ "&:hover": {
150
+ bgcolor: "rgba(74, 192, 140, 0.15)"
151
+ },
152
+ "&.Mui-disabled": {
153
+ opacity: 0.3,
154
+ color: "#4AC08C"
155
+ }
156
+ },
157
+ children: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ZoomIn, { fontSize: "small" })
158
+ }
159
+ ),
160
+ /* @__PURE__ */ jsxRuntime.jsx(
161
+ material.Divider,
162
+ {
163
+ orientation: "vertical",
164
+ flexItem: true,
165
+ sx: {
166
+ mx: 0.5,
167
+ bgcolor: "rgba(74, 192, 140, 0.3)"
168
+ }
169
+ }
170
+ ),
171
+ /* @__PURE__ */ jsxRuntime.jsx(
172
+ material.IconButton,
173
+ {
174
+ size: "small",
175
+ onClick: onResetZoom,
176
+ disabled: zoom === 100,
177
+ title: "Reset Zoom",
178
+ sx: {
179
+ color: "#4AC08C",
180
+ "&:hover": {
181
+ bgcolor: "rgba(74, 192, 140, 0.15)"
182
+ },
183
+ "&.Mui-disabled": {
184
+ opacity: 0.3,
185
+ color: "#4AC08C"
186
+ }
187
+ },
188
+ children: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ZoomOutMap, { fontSize: "small" })
189
+ }
190
+ )
191
+ ]
192
+ }
193
+ ),
194
+ /* @__PURE__ */ jsxRuntime.jsx(material.Divider, { orientation: "vertical", flexItem: true, sx: { mx: 1 } })
195
+ ] }),
196
+ !fromPreview ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
197
+ /* @__PURE__ */ jsxRuntime.jsxs(
198
+ "button",
199
+ {
200
+ onClick: () => setIsEditingHeaderFooter(true),
201
+ className: "pbtn",
202
+ disabled: preview,
203
+ children: [
204
+ /* @__PURE__ */ jsxRuntime.jsx(edit.Edit, { fontSize: "small" }),
205
+ "Edit Header/Footer"
206
+ ]
207
+ }
208
+ ),
209
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pb-lens", children: [
210
+ /* @__PURE__ */ jsxRuntime.jsxs(
211
+ "button",
212
+ {
213
+ className: !preview ? "is-active" : "",
214
+ onClick: () => preview && onPreview(),
215
+ disabled: !(sections == null ? void 0 : sections.length),
216
+ children: [
217
+ /* @__PURE__ */ jsxRuntime.jsx(edit.Edit, { fontSize: "small" }),
218
+ " Edit"
219
+ ]
220
+ }
221
+ ),
222
+ /* @__PURE__ */ jsxRuntime.jsxs(
223
+ "button",
224
+ {
225
+ className: preview ? "is-active" : "",
226
+ onClick: () => !preview && onPreview(),
227
+ disabled: !(sections == null ? void 0 : sections.length),
228
+ children: [
229
+ /* @__PURE__ */ jsxRuntime.jsx(eye.Eye, { fontSize: "small" }),
230
+ " Preview"
231
+ ]
232
+ }
233
+ )
234
+ ] }),
235
+ /* @__PURE__ */ jsxRuntime.jsxs(
236
+ "button",
237
+ {
238
+ onClick: onEditHtml,
239
+ className: `pbtn ${editHtml ? "pbtn--primary" : ""}`,
240
+ disabled: !(sections == null ? void 0 : sections.length) || preview,
241
+ children: [
242
+ /* @__PURE__ */ jsxRuntime.jsx(CodeOutlinedIcon, { fontSize: "small" }),
243
+ editHtml ? "Exit HTML Edit" : "Edit HTML"
244
+ ]
245
+ }
246
+ ),
247
+ !isSaving && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pb-bar-stat is-dirty", children: [
248
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pb-bar-dirty", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "6", fill: "currentColor" }) }) }),
249
+ "Unsaved"
250
+ ] }),
251
+ /* @__PURE__ */ jsxRuntime.jsx(
252
+ "button",
253
+ {
254
+ onClick: onSave,
255
+ className: "pbtn pbtn--primary",
256
+ disabled: !(sections == null ? void 0 : sections.length) || isSaving,
257
+ children: isSaving ? "Saving..." : "Save"
258
+ }
259
+ )
260
+ ] }) : editMode ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: isEditingHeaderFooter ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
261
+ setShowSample && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
262
+ /* @__PURE__ */ jsxRuntime.jsxs(
263
+ "button",
264
+ {
265
+ className: "st-sample-tg",
266
+ onClick: () => setShowSample((v) => !v),
267
+ title: "Preview the master wrapped around a real document",
268
+ children: [
269
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `cx-switch ${showSample ? "is-on" : ""}`, "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cx-switch-dot" }) }),
270
+ "Sample content"
271
+ ]
272
+ }
273
+ ),
274
+ showSample && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "st-docchips", children: [
275
+ ["quotation", "invoice", "delivery"].map((d) => /* @__PURE__ */ jsxRuntime.jsxs("button", { className: `st-docchip ${sampleType === d ? "is-active" : ""}`, onClick: () => setSampleType && setSampleType(d), children: [
276
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "st-docchip-dot", style: { background: d === "quotation" ? "#1A8A56" : d === "invoice" ? "#1B2C6E" : "#8a540b" } }),
277
+ d === "quotation" && /* @__PURE__ */ jsxRuntime.jsx(DescriptionOutlinedIcon, { sx: { width: 12, height: 12 } }),
278
+ d === "invoice" && /* @__PURE__ */ jsxRuntime.jsx(ReceiptOutlinedIcon, { sx: { width: 12, height: 12 } }),
279
+ d === "delivery" && /* @__PURE__ */ jsxRuntime.jsx(LocalShippingOutlinedIcon, { sx: { width: 12, height: 12 } }),
280
+ d === "quotation" ? "Quotation" : d === "invoice" ? "Tax Invoice" : "Delivery Note"
281
+ ] }, d)),
282
+ /* @__PURE__ */ jsxRuntime.jsxs("button", { className: `st-docchip ${samplePages === 2 ? "is-active" : ""}`, onClick: () => setSamplePages && setSamplePages(samplePages === 1 ? 2 : 1), title: "Add a continuation page to test header/footer repeat", children: [
283
+ /* @__PURE__ */ jsxRuntime.jsx(FileCopyOutlinedIcon, { sx: { width: 12, height: 12 } }),
284
+ samplePages === 2 ? "2 pages" : "1 page"
285
+ ] })
286
+ ] }),
287
+ /* @__PURE__ */ jsxRuntime.jsx(material.Divider, { orientation: "vertical", flexItem: true, sx: { mx: 1 } })
288
+ ] }),
289
+ /* @__PURE__ */ jsxRuntime.jsx(
290
+ "button",
291
+ {
292
+ onClick: () => setIsEditingHeaderFooter(false),
293
+ className: "pbtn pbtn--ghost",
294
+ children: "Cancel Editing"
295
+ }
296
+ ),
297
+ /* @__PURE__ */ jsxRuntime.jsx(
298
+ "button",
299
+ {
300
+ onClick: () => onSaveHeaderFooter(true),
301
+ className: "pbtn pbtn--primary",
302
+ children: "Save Changes"
303
+ }
304
+ )
305
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
306
+ /* @__PURE__ */ jsxRuntime.jsxs(
307
+ "button",
308
+ {
309
+ onClick: () => setIsEditingHeaderFooter(true),
310
+ className: "pbtn",
311
+ disabled: preview,
312
+ children: [
313
+ /* @__PURE__ */ jsxRuntime.jsx(edit.Edit, { fontSize: "small" }),
314
+ "Edit Header/Footer"
315
+ ]
316
+ }
317
+ ),
318
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pb-lens", children: [
319
+ /* @__PURE__ */ jsxRuntime.jsxs(
320
+ "button",
321
+ {
322
+ className: !preview ? "is-active" : "",
323
+ onClick: () => preview && onPreview(),
324
+ disabled: !(sections == null ? void 0 : sections.length),
325
+ children: [
326
+ /* @__PURE__ */ jsxRuntime.jsx(edit.Edit, { fontSize: "small" }),
327
+ " Edit"
328
+ ]
329
+ }
330
+ ),
331
+ /* @__PURE__ */ jsxRuntime.jsxs(
332
+ "button",
333
+ {
334
+ className: preview ? "is-active" : "",
335
+ onClick: () => !preview && onPreview(),
336
+ disabled: !(sections == null ? void 0 : sections.length),
337
+ children: [
338
+ /* @__PURE__ */ jsxRuntime.jsx(eye.Eye, { fontSize: "small" }),
339
+ " Preview"
340
+ ]
341
+ }
342
+ )
343
+ ] }),
344
+ !isSaving && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pb-bar-stat is-dirty", children: [
345
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pb-bar-dirty", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "6", fill: "currentColor" }) }) }),
346
+ "Unsaved"
347
+ ] }),
348
+ /* @__PURE__ */ jsxRuntime.jsx(
349
+ "button",
350
+ {
351
+ onClick: onSave,
352
+ className: "pbtn pbtn--primary",
353
+ disabled: !(sections == null ? void 0 : sections.length),
354
+ children: "Save"
355
+ }
356
+ ),
357
+ /* @__PURE__ */ jsxRuntime.jsx(
358
+ "button",
359
+ {
360
+ onClick: () => onEditModeChange && onEditModeChange(),
361
+ className: "pbtn pbtn--ghost",
362
+ children: "Cancel"
363
+ }
364
+ )
365
+ ] }) }) : /* @__PURE__ */ jsxRuntime.jsxs(
366
+ "button",
367
+ {
368
+ onClick: () => onEditModeChange && onEditModeChange(),
369
+ className: "pbtn pbtn--primary",
370
+ disabled: !(sections == null ? void 0 : sections.length),
371
+ children: [
372
+ /* @__PURE__ */ jsxRuntime.jsx(edit.Edit, { fontSize: "small" }),
373
+ "Edit"
374
+ ]
375
+ }
376
+ )
377
+ ] })
378
+ ] })
379
+ }
380
+ );
381
+ };
382
+ const CustomEditor = React.lazy(() => Promise.resolve().then(() => require("./custom-editor-BeLYFfpv.js")));
383
+ const editableSections = ["text", "text-block", "heading", "heading-1", "heading-2", "heading-3", "heading-4"];
384
+ const EditorSection = ({
385
+ section,
386
+ isSelected,
387
+ isDragging,
388
+ isOver,
389
+ onSelect,
390
+ onUpdate,
391
+ onSplit,
392
+ onDelete,
393
+ placeholders,
394
+ setIsSectionEditing,
395
+ isPreview = false
396
+ }) => {
397
+ const { extractStyles, getSingleStyles } = styleExtractor.useCKEditorStyleExtractor();
398
+ const {
399
+ attributes,
400
+ listeners,
401
+ setNodeRef: setDraggableRef,
402
+ transform
403
+ } = core.useDraggable({ id: section.id });
404
+ const { setNodeRef: setDroppableRef } = core.useDroppable({ id: section.id });
405
+ const [isEditing, setIsEditing] = React.useState(false);
406
+ const [isHovered, setIsHovered] = React.useState(false);
407
+ const [isOpenEditSectionModal, setIsOpenEditSectionModal] = React.useState(false);
408
+ const [isEditedFromSource, setIsEditedFromSource] = React.useState(Boolean(section == null ? void 0 : section.is_edited_from_source));
409
+ const [localContent, setLocalContent] = React.useState(section.content);
410
+ const [hasUserEdited, setHasUserEdited] = React.useState(false);
411
+ const editorRef = React.useRef(null);
412
+ const mouseHoverTimeoutRef = React.useRef(null);
413
+ const cursorPositionRef = React.useRef(null);
414
+ const isRestoringCursorRef = React.useRef(false);
415
+ const contentRef = React.useRef(section.content);
416
+ const originalContentRef = React.useRef(section.content);
417
+ const debouncedUpdate = useDebouncedUpdate.useDebouncedUpdate(onUpdate, 300);
418
+ const style = React.useMemo(() => {
419
+ return transform ? {
420
+ transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,
421
+ transition: "none"
422
+ } : { transition: "all 0.2s ease" };
423
+ }, [transform]);
424
+ const paperSx = React.useMemo(() => ({
425
+ position: "relative",
426
+ height: "100%",
427
+ display: "flex",
428
+ flexDirection: "column",
429
+ overflowX: "auto",
430
+ border: isPreview ? "none" : "1px dashed",
431
+ borderColor: isPreview ? "transparent" : isSelected ? "primary.main" : isOver ? "primary.main" : "grey.400",
432
+ borderRadius: 1,
433
+ bgcolor: "white",
434
+ opacity: isDragging ? 0.7 : 1,
435
+ boxShadow: "none",
436
+ transition: "all 0.2s ease",
437
+ "&:hover": {
438
+ boxShadow: "none"
439
+ },
440
+ "& table:not(.pbd-items)": {
441
+ minWidth: "max-content"
442
+ },
443
+ ...!isPreview && isOver && { borderColor: "primary.main", boxShadow: "none" }
444
+ }), [isSelected, isOver, isDragging, isPreview]);
445
+ const mergedRef = React.useCallback((node) => {
446
+ setDraggableRef(node);
447
+ setDroppableRef(node);
448
+ }, [setDraggableRef, setDroppableRef]);
449
+ const handleDblClick = React.useCallback(() => {
450
+ if (editableSections.includes(section.type)) {
451
+ handleEditing();
452
+ }
453
+ }, [section.type]);
454
+ const handleEditing = React.useCallback(() => {
455
+ originalContentRef.current = section.content;
456
+ setHasUserEdited(false);
457
+ if (section == null ? void 0 : section.isSplitPair) {
458
+ setIsOpenEditSectionModal(true);
459
+ } else {
460
+ setIsEditing(true);
461
+ setIsSectionEditing(true);
462
+ }
463
+ }, [section == null ? void 0 : section.isSplitPair, section.content, setIsSectionEditing]);
464
+ const handleEditorReady = React.useCallback((editor) => {
465
+ editorRef.current = editor;
466
+ if (editor == null ? void 0 : editor._tiptap) {
467
+ editor._tiptap.on("selectionUpdate", () => {
468
+ if (!isRestoringCursorRef.current && editor._tiptap) {
469
+ const { from, to } = editor._tiptap.state.selection;
470
+ cursorPositionRef.current = { from, to };
471
+ }
472
+ });
473
+ editor._tiptap.on("update", ({ transaction }) => {
474
+ if (transaction.docChanged) {
475
+ setHasUserEdited(true);
476
+ }
477
+ });
478
+ }
479
+ }, []);
480
+ const handleSave = React.useCallback((e) => {
481
+ var _a;
482
+ e.stopPropagation();
483
+ if (editorRef.current) {
484
+ if (editorRef.current._tiptap) {
485
+ const { from, to } = editorRef.current._tiptap.state.selection;
486
+ cursorPositionRef.current = { from, to };
487
+ }
488
+ const content = editorRef.current.getData();
489
+ contentRef.current = content;
490
+ setLocalContent(content);
491
+ const styles = extractStyles(section.content, {
492
+ includeTagStyles: true,
493
+ includeInlineStyles: true,
494
+ mergeNestedStyles: true,
495
+ filterEmptyStyles: true
496
+ });
497
+ const single = getSingleStyles(styles);
498
+ const mergedStyles = {
499
+ ...((_a = section.attributes) == null ? void 0 : _a.styles) || {},
500
+ ...single
501
+ };
502
+ const mergedAttributes = {
503
+ ...section.attributes || {},
504
+ styles: mergedStyles
505
+ };
506
+ debouncedUpdate(content, { is_edited_from_source: isEditedFromSource, attributes: mergedAttributes });
507
+ }
508
+ setIsEditing(false);
509
+ setIsSectionEditing(false);
510
+ setIsOpenEditSectionModal(false);
511
+ setHasUserEdited(false);
512
+ }, [debouncedUpdate, isEditedFromSource, extractStyles, getSingleStyles, section.content, section.attributes, setIsSectionEditing, hasUserEdited]);
513
+ const handleSplit = React.useCallback(() => {
514
+ const content = section.content || "";
515
+ const firstHalf = content;
516
+ const secondHalf = "";
517
+ onSplit(firstHalf, secondHalf);
518
+ }, [section.content, onSplit]);
519
+ const handleAddPlaceholder = React.useCallback((placeholder) => {
520
+ if (editorRef.current) {
521
+ const viewFragment = editorRef.current.data.processor.toView(
522
+ `{{${placeholder}}}`
523
+ );
524
+ const modelFragment = editorRef.current.data.toModel(viewFragment);
525
+ editorRef.current.model.insertContent(modelFragment);
526
+ }
527
+ }, []);
528
+ const handleMouseEnter = React.useCallback(() => {
529
+ if (mouseHoverTimeoutRef.current !== null) {
530
+ window.clearTimeout(mouseHoverTimeoutRef.current);
531
+ }
532
+ mouseHoverTimeoutRef.current = window.setTimeout(() => {
533
+ setIsHovered(true);
534
+ }, 50);
535
+ }, []);
536
+ const handleMouseLeave = React.useCallback(() => {
537
+ if (mouseHoverTimeoutRef.current !== null) {
538
+ window.clearTimeout(mouseHoverTimeoutRef.current);
539
+ }
540
+ mouseHoverTimeoutRef.current = window.setTimeout(() => {
541
+ setIsHovered(false);
542
+ }, 50);
543
+ }, []);
544
+ const handleClick = React.useCallback((e) => {
545
+ e.stopPropagation();
546
+ onSelect();
547
+ }, [onSelect]);
548
+ const handleDeleteClick = React.useCallback((e) => {
549
+ e.stopPropagation();
550
+ onDelete();
551
+ }, [onDelete]);
552
+ const handleCancelEdit = React.useCallback(() => {
553
+ setIsEditing(false);
554
+ setIsSectionEditing(false);
555
+ }, [setIsSectionEditing]);
556
+ const handleCheckboxChange = React.useCallback((e) => {
557
+ setIsEditedFromSource(e.target.checked);
558
+ }, []);
559
+ const handleSelectChange = React.useCallback((e) => {
560
+ if (e.target.value) {
561
+ handleAddPlaceholder(e.target.value);
562
+ e.target.value = "";
563
+ }
564
+ }, [handleAddPlaceholder]);
565
+ React.useEffect(() => {
566
+ return () => {
567
+ if (mouseHoverTimeoutRef.current !== null) {
568
+ window.clearTimeout(mouseHoverTimeoutRef.current);
569
+ }
570
+ };
571
+ }, []);
572
+ React.useEffect(() => {
573
+ var _a;
574
+ if (contentRef.current === section.content) {
575
+ return;
576
+ }
577
+ contentRef.current = section.content;
578
+ setLocalContent(section.content);
579
+ if (isEditing && ((_a = editorRef.current) == null ? void 0 : _a._tiptap) && cursorPositionRef.current && !isRestoringCursorRef.current) {
580
+ const editor = editorRef.current._tiptap;
581
+ const { from, to } = cursorPositionRef.current;
582
+ requestAnimationFrame(() => {
583
+ try {
584
+ isRestoringCursorRef.current = true;
585
+ const docSize = editor.state.doc.content.size;
586
+ const validFrom = Math.min(from, docSize);
587
+ const validTo = Math.min(to, docSize);
588
+ editor.commands.setTextSelection({ from: validFrom, to: validTo });
589
+ if (!editor.isFocused) {
590
+ editor.commands.focus();
591
+ }
592
+ } catch (error) {
593
+ console.warn("Failed to restore cursor position:", error);
594
+ } finally {
595
+ isRestoringCursorRef.current = false;
596
+ }
597
+ });
598
+ }
599
+ }, [section.content, isEditing]);
600
+ const contentRenderer = React.useMemo(() => {
601
+ if (isEditing) {
602
+ return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(material.Skeleton, {}), children: /* @__PURE__ */ jsxRuntime.jsx(
603
+ CustomEditor,
604
+ {
605
+ editorRef,
606
+ handleEditorReady,
607
+ data: localContent,
608
+ onError: (error) => console.error("Editor error:", error)
609
+ },
610
+ `editor-${section.id}`
611
+ ) });
612
+ }
613
+ return /* @__PURE__ */ jsxRuntime.jsx(
614
+ material.Box,
615
+ {
616
+ dangerouslySetInnerHTML: { __html: localContent },
617
+ sx: {
618
+ position: "relative",
619
+ py: section.type === "divider" ? 1 : 0,
620
+ lineHeight: 1.6,
621
+ flex: 1,
622
+ minHeight: !localContent || localContent === '<p style="font-size: 16px; color: #333333; line-height: 1.5;">New section</p>' ? "60px" : "auto",
623
+ "& p": { margin: 0 }
624
+ }
625
+ }
626
+ );
627
+ }, [isEditing, localContent, section.type, section.id]);
628
+ const placeholderOptions = React.useMemo(
629
+ () => placeholders.map((option) => /* @__PURE__ */ jsxRuntime.jsx(material.MenuItem, { value: option.value, children: /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s4", color: "theme.secondary.1000", children: option.label }) }, option.value)),
630
+ [placeholders]
631
+ );
632
+ return /* @__PURE__ */ jsxRuntime.jsxs(
633
+ material.Paper,
634
+ {
635
+ ref: mergedRef,
636
+ style,
637
+ elevation: isHovered || isSelected ? 3 : 1,
638
+ sx: paperSx,
639
+ onClick: handleClick,
640
+ onDoubleClick: handleDblClick,
641
+ onMouseEnter: handleMouseEnter,
642
+ onMouseLeave: handleMouseLeave,
643
+ children: [
644
+ !isPreview && isOver && !isDragging && /* @__PURE__ */ jsxRuntime.jsx(
645
+ material.Box,
646
+ {
647
+ sx: {
648
+ position: "absolute",
649
+ top: 0,
650
+ left: 0,
651
+ right: 0,
652
+ bottom: 0,
653
+ border: "2px dashed",
654
+ borderColor: "primary.main",
655
+ borderRadius: 1,
656
+ bgcolor: "rgba(25, 118, 210, 0.04)",
657
+ zIndex: 10,
658
+ display: "flex",
659
+ alignItems: "center",
660
+ justifyContent: "center",
661
+ pointerEvents: "none"
662
+ },
663
+ children: /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s2", color: "primary", weight: "medium", children: "Drop here" })
664
+ }
665
+ ),
666
+ !isPreview && /* @__PURE__ */ jsxRuntime.jsxs(
667
+ material.Box,
668
+ {
669
+ sx: {
670
+ bgcolor: "grey.50",
671
+ p: 1,
672
+ display: "flex",
673
+ alignItems: "center",
674
+ justifyContent: "space-between",
675
+ borderBottom: "1px solid",
676
+ borderColor: "grey.200"
677
+ },
678
+ children: [
679
+ /* @__PURE__ */ jsxRuntime.jsxs(
680
+ material.Box,
681
+ {
682
+ ...listeners,
683
+ ...attributes,
684
+ sx: {
685
+ display: "flex",
686
+ alignItems: "center",
687
+ cursor: "grab",
688
+ px: 1,
689
+ py: 0.5,
690
+ borderRadius: 1,
691
+ transition: "background-color 0.2s ease",
692
+ "&:hover": { bgcolor: "grey.100" },
693
+ "&:active": { cursor: "grabbing" }
694
+ },
695
+ children: [
696
+ /* @__PURE__ */ jsxRuntime.jsx(
697
+ DragIndicatorIcon,
698
+ {
699
+ sx: { color: "grey.600", fontSize: "1.2rem", mr: 0.5 }
700
+ }
701
+ ),
702
+ /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s3", color: "theme.secondary.600", weight: "medium", children: "Move" })
703
+ ]
704
+ }
705
+ ),
706
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: isEditing ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
707
+ /* @__PURE__ */ jsxRuntime.jsx(
708
+ material.FormControlLabel,
709
+ {
710
+ control: /* @__PURE__ */ jsxRuntime.jsx(
711
+ checkbox.Checkbox,
712
+ {
713
+ onChange: handleCheckboxChange,
714
+ defaultChecked: isEditedFromSource
715
+ }
716
+ ),
717
+ label: /* @__PURE__ */ jsxRuntime.jsx(typography.Typography, { type: "s2", color: "theme.secondary.1000", children: "Edited from source" })
718
+ }
719
+ ),
720
+ /* @__PURE__ */ jsxRuntime.jsx(material.FormControl, { size: "small", sx: { minWidth: 160 }, children: /* @__PURE__ */ jsxRuntime.jsx(
721
+ select.Select,
722
+ {
723
+ displayEmpty: true,
724
+ value: "",
725
+ size: "small",
726
+ renderValue: () => "Add placeholder...",
727
+ sx: {
728
+ bgcolor: "white",
729
+ borderRadius: 1,
730
+ "& .MuiSelect-select": { py: 0.75 }
731
+ },
732
+ onChange: handleSelectChange,
733
+ children: placeholderOptions
734
+ }
735
+ ) }),
736
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { children: [
737
+ /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size: "small", onClick: handleSave, children: /* @__PURE__ */ jsxRuntime.jsx(save.Save, { fontSize: "small", color: "inherit" }) }),
738
+ /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size: "small", onClick: handleCancelEdit, color: "error", children: /* @__PURE__ */ jsxRuntime.jsx(Close, { fontSize: "small", color: "inherit" }) })
739
+ ] })
740
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(material.Fade, { in: isHovered || isSelected, timeout: 200, children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { display: "flex", gap: 0.5 }, children: [
741
+ (section == null ? void 0 : section.is_edited_from_source) && /* @__PURE__ */ jsxRuntime.jsx(
742
+ chip.Chip,
743
+ {
744
+ label: "Edited From Source",
745
+ size: "small",
746
+ sx: (theme) => {
747
+ var _a, _b, _c, _d;
748
+ return {
749
+ textTransform: "capitalize",
750
+ backgroundColor: (_b = (_a = theme.palette.theme) == null ? void 0 : _a.tertiary1) == null ? void 0 : _b[200],
751
+ color: (_d = (_c = theme.palette.theme) == null ? void 0 : _c.tertiary1) == null ? void 0 : _d[900]
752
+ };
753
+ }
754
+ }
755
+ ),
756
+ editableSections.includes(section.type) && /* @__PURE__ */ jsxRuntime.jsx(
757
+ material.IconButton,
758
+ {
759
+ size: "small",
760
+ onClick: handleEditing,
761
+ sx: {
762
+ bgcolor: "grey.100",
763
+ "&:hover": { bgcolor: "grey.200" }
764
+ },
765
+ children: /* @__PURE__ */ jsxRuntime.jsx(edit.Edit, { fontSize: "small", sx: { color: "theme.secondary.1000" } })
766
+ }
767
+ ),
768
+ /* @__PURE__ */ jsxRuntime.jsx(
769
+ material.IconButton,
770
+ {
771
+ size: "small",
772
+ onClick: handleSplit,
773
+ sx: {
774
+ bgcolor: "grey.100",
775
+ "&:hover": { bgcolor: "grey.200" },
776
+ opacity: (section == null ? void 0 : section.splitWidth) === 25 ? 0.5 : 1
777
+ },
778
+ disabled: (section == null ? void 0 : section.splitWidth) === 25,
779
+ children: /* @__PURE__ */ jsxRuntime.jsx(SplitIcon, { fontSize: "small", color: "primary" })
780
+ }
781
+ ),
782
+ /* @__PURE__ */ jsxRuntime.jsx(
783
+ material.IconButton,
784
+ {
785
+ size: "small",
786
+ onClick: handleDeleteClick,
787
+ sx: {
788
+ bgcolor: "grey.100",
789
+ "&:hover": { bgcolor: "grey.200" }
790
+ },
791
+ children: /* @__PURE__ */ jsxRuntime.jsx(trash.Trash, { fontSize: "small", sx: { color: "theme.error.500" } })
792
+ }
793
+ )
794
+ ] }) }) })
795
+ ]
796
+ }
797
+ ),
798
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { p: 3, bgcolor: "white" }, children: [
799
+ /* @__PURE__ */ jsxRuntime.jsx("style", { children: `
800
+ a {
801
+ color: #007bff !important;
802
+ text-decoration: none !important;
803
+ }
804
+ a:hover {
805
+ text-decoration: underline;
806
+ }
807
+ ` }),
808
+ contentRenderer
809
+ ] }),
810
+ isOpenEditSectionModal && /* @__PURE__ */ jsxRuntime.jsx(
811
+ editSectionModal.EditSectionModal,
812
+ {
813
+ isOpen: isOpenEditSectionModal,
814
+ setIsOpen: setIsOpenEditSectionModal,
815
+ modalProps: { open: isOpenEditSectionModal },
816
+ placeholders,
817
+ handleSave,
818
+ handleAddPlaceholder,
819
+ handleEditorReady,
820
+ section
821
+ }
822
+ )
823
+ ]
824
+ }
825
+ );
826
+ };
827
+ const arePropsEqual = (prevProps, nextProps) => {
828
+ if (prevProps.section.id !== nextProps.section.id) return false;
829
+ if (prevProps.section.content !== nextProps.section.content) return false;
830
+ if (prevProps.section.type !== nextProps.section.type) return false;
831
+ if (prevProps.section.is_edited_from_source !== nextProps.section.is_edited_from_source) return false;
832
+ if (prevProps.section.isSplitPair !== nextProps.section.isSplitPair) return false;
833
+ if (prevProps.section.splitWidth !== nextProps.section.splitWidth) return false;
834
+ if (prevProps.isSelected !== nextProps.isSelected) return false;
835
+ if (prevProps.isDragging !== nextProps.isDragging) return false;
836
+ if (prevProps.isOver !== nextProps.isOver) return false;
837
+ if (prevProps.isPreview !== nextProps.isPreview) return false;
838
+ if (prevProps.placeholders !== nextProps.placeholders) return false;
839
+ const prevAttrs = JSON.stringify(prevProps.section.attributes);
840
+ const nextAttrs = JSON.stringify(nextProps.section.attributes);
841
+ if (prevAttrs !== nextAttrs) return false;
842
+ return true;
843
+ };
844
+ const MemoizedEditorSection = React.memo(EditorSection, arePropsEqual);
845
+ MemoizedEditorSection.displayName = "EditorSection";
846
+ exports.EditorHeader = EditorHeader;
847
+ exports.MemoizedEditorSection = MemoizedEditorSection;
848
+ //# sourceMappingURL=EditorSection-D6yaBfjP.js.map