@erpsquad/common 1.11.8 → 1.11.10

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