@erpsquad/common 1.11.14 → 1.11.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (596) hide show
  1. package/dist/api-client/index.esm.js +2 -2
  2. package/dist/chunks/{DynamicDependentField-BwLdGBvh.esm.js → DynamicDependentField-3BIqZuEi.esm.js} +2 -2
  3. package/dist/chunks/{DynamicDependentField-BwLdGBvh.esm.js.map → DynamicDependentField-3BIqZuEi.esm.js.map} +1 -1
  4. package/dist/chunks/{DynamicDependentField-ZiLPczW8.js → DynamicDependentField-BNQloFOt.js} +2 -2
  5. package/dist/chunks/{DynamicDependentField-ZiLPczW8.js.map → DynamicDependentField-BNQloFOt.js.map} +1 -1
  6. package/dist/chunks/{ERPUIProvider-DXfZ8sB6.esm.js → ERPUIProvider-BvdsmytD.esm.js} +3 -3
  7. package/dist/chunks/{ERPUIProvider-DXfZ8sB6.esm.js.map → ERPUIProvider-BvdsmytD.esm.js.map} +1 -1
  8. package/dist/chunks/{FORMS-am5yxCdl.js → FORMS-Co5DzR2b.js} +4 -4
  9. package/dist/chunks/{FORMS-am5yxCdl.js.map → FORMS-Co5DzR2b.js.map} +1 -1
  10. package/dist/chunks/{FORMS-ZBLy1PtI.esm.js → FORMS-Cq5klFbL.esm.js} +8 -8
  11. package/dist/chunks/{FORMS-ZBLy1PtI.esm.js.map → FORMS-Cq5klFbL.esm.js.map} +1 -1
  12. package/dist/chunks/{FlexibleReduxExample-BSHPmnEV.esm.js → FlexibleReduxExample-BzEsEgg_.esm.js} +4 -4
  13. package/dist/chunks/{FlexibleReduxExample-BSHPmnEV.esm.js.map → FlexibleReduxExample-BzEsEgg_.esm.js.map} +1 -1
  14. package/dist/chunks/{FlexibleReduxExample-CZ2vLTGy.js → FlexibleReduxExample-CcL6mk5n.js} +2 -2
  15. package/dist/chunks/{FlexibleReduxExample-CZ2vLTGy.js.map → FlexibleReduxExample-CcL6mk5n.js.map} +1 -1
  16. package/dist/chunks/SectionFlowEditor-DEbWSklc.esm.js +5479 -0
  17. package/dist/chunks/SectionFlowEditor-DEbWSklc.esm.js.map +1 -0
  18. package/dist/chunks/SectionFlowEditor-DagOI5vV.js +5478 -0
  19. package/dist/chunks/SectionFlowEditor-DagOI5vV.js.map +1 -0
  20. package/dist/chunks/{action-bar-DZUhKVMM.esm.js → action-bar-CBNUSFDM.esm.js} +6 -6
  21. package/dist/chunks/{action-bar-DZUhKVMM.esm.js.map → action-bar-CBNUSFDM.esm.js.map} +1 -1
  22. package/dist/chunks/{action-bar-Chzs2wrL.js → action-bar-CkKLB98R.js} +3 -3
  23. package/dist/chunks/{action-bar-Chzs2wrL.js.map → action-bar-CkKLB98R.js.map} +1 -1
  24. package/dist/chunks/{actionCreator-Cvdfd9rk.esm.js → actionCreator-BeyzfogA.esm.js} +2 -2
  25. package/dist/chunks/{actionCreator-Cvdfd9rk.esm.js.map → actionCreator-BeyzfogA.esm.js.map} +1 -1
  26. package/dist/chunks/{actionCreator-zPFtOF5Q.esm.js → actionCreator-D3Ywxqko.esm.js} +2 -2
  27. package/dist/chunks/{actionCreator-zPFtOF5Q.esm.js.map → actionCreator-D3Ywxqko.esm.js.map} +1 -1
  28. package/dist/chunks/{actionCreator-4xU0-Q45.esm.js → actionCreator-D9o1yF_V.esm.js} +3 -3
  29. package/dist/chunks/{actionCreator-4xU0-Q45.esm.js.map → actionCreator-D9o1yF_V.esm.js.map} +1 -1
  30. package/dist/chunks/{actionCreator-CbYMftlq.esm.js → actionCreator-DGxoyGyk.esm.js} +3 -3
  31. package/dist/chunks/{actionCreator-CbYMftlq.esm.js.map → actionCreator-DGxoyGyk.esm.js.map} +1 -1
  32. package/dist/chunks/{actionCreator-BS4wKtzs.esm.js → actionCreator-upsoTf3q.esm.js} +2 -2
  33. package/dist/chunks/{actionCreator-BS4wKtzs.esm.js.map → actionCreator-upsoTf3q.esm.js.map} +1 -1
  34. package/dist/chunks/add-template-BCxn7OXM.esm.js +11 -0
  35. package/dist/chunks/add-template-BCxn7OXM.esm.js.map +1 -0
  36. package/dist/chunks/add-template-Cee6U_4N.js +10 -0
  37. package/dist/chunks/add-template-Cee6U_4N.js.map +1 -0
  38. package/dist/chunks/{address-modal-BHMulxKl.esm.js → address-modal-DBuj1ow2.esm.js} +2 -2
  39. package/dist/chunks/{address-modal-BHMulxKl.esm.js.map → address-modal-DBuj1ow2.esm.js.map} +1 -1
  40. package/dist/chunks/{address-modal-CLk4mppo.js → address-modal-DfP7AYCO.js} +2 -2
  41. package/dist/chunks/{address-modal-CLk4mppo.js.map → address-modal-DfP7AYCO.js.map} +1 -1
  42. package/dist/chunks/{ai-summary-BRGrVUW4.esm.js → ai-summary-mqP0clDC.esm.js} +2 -2
  43. package/dist/chunks/{ai-summary-BRGrVUW4.esm.js.map → ai-summary-mqP0clDC.esm.js.map} +1 -1
  44. package/dist/chunks/{api-CWWVUc7a.esm.js → api-C1kYZQ6G.esm.js} +9 -9
  45. package/dist/chunks/{api-CWWVUc7a.esm.js.map → api-C1kYZQ6G.esm.js.map} +1 -1
  46. package/dist/chunks/{api-Dx-X9Ldj.esm.js → api-D-Ups140.esm.js} +3 -3
  47. package/dist/chunks/{api-Dx-X9Ldj.esm.js.map → api-D-Ups140.esm.js.map} +1 -1
  48. package/dist/chunks/{appbar-7so1JFFV.js → appbar-B5B09cG8.js} +2 -2
  49. package/dist/chunks/{appbar-7so1JFFV.js.map → appbar-B5B09cG8.js.map} +1 -1
  50. package/dist/chunks/{appbar-CWQidHXA.esm.js → appbar-DqKmstO3.esm.js} +2 -2
  51. package/dist/chunks/{appbar-CWQidHXA.esm.js.map → appbar-DqKmstO3.esm.js.map} +1 -1
  52. package/dist/chunks/{approval-wrapper-BbINW2PS.esm.js → approval-wrapper-B75P0gcQ.esm.js} +2 -2
  53. package/dist/chunks/{approval-wrapper-BbINW2PS.esm.js.map → approval-wrapper-B75P0gcQ.esm.js.map} +1 -1
  54. package/dist/chunks/{chat-bot-D2YpccfL.esm.js → chat-bot-DpIhSCKc.esm.js} +2 -2
  55. package/dist/chunks/{chat-bot-D2YpccfL.esm.js.map → chat-bot-DpIhSCKc.esm.js.map} +1 -1
  56. package/dist/chunks/common-C5AokA7z.js +368 -0
  57. package/dist/chunks/common-C5AokA7z.js.map +1 -0
  58. package/dist/chunks/common-CaomnEjX.esm.js +369 -0
  59. package/dist/chunks/common-CaomnEjX.esm.js.map +1 -0
  60. package/dist/chunks/common-utility-DRKuh2H0.js.map +1 -1
  61. package/dist/chunks/{common-utility-CjDVS-hT.esm.js → common-utility-qSmp2In3.esm.js} +2 -2
  62. package/dist/chunks/common-utility-qSmp2In3.esm.js.map +1 -0
  63. package/dist/chunks/company-selection-modal-B7jFVWWs.js.map +1 -1
  64. package/dist/chunks/company-selection-modal-Dn2L_skh.esm.js.map +1 -1
  65. package/dist/chunks/{constant-BXPcBhJN.esm.js → constant-Bwg2s_Sn.esm.js} +5 -35
  66. package/dist/chunks/constant-Bwg2s_Sn.esm.js.map +1 -0
  67. package/dist/chunks/{constant-BXeJD4Af.js → constant-ZYAN_teD.js} +5 -35
  68. package/dist/chunks/constant-ZYAN_teD.js.map +1 -0
  69. package/dist/chunks/{custom-editor-C7z-wQTO.esm.js → custom-editor-CDIvDJ3E.esm.js} +3 -3
  70. package/dist/chunks/{custom-editor-C7z-wQTO.esm.js.map → custom-editor-CDIvDJ3E.esm.js.map} +1 -1
  71. package/dist/chunks/{custom-form-D35Wdpli.esm.js → custom-form-Bc3FhNpz.esm.js} +6 -6
  72. package/dist/chunks/{custom-form-D35Wdpli.esm.js.map → custom-form-Bc3FhNpz.esm.js.map} +1 -1
  73. package/dist/chunks/{custom-form-taIFQqpi.js → custom-form-CS2SL4Bf.js} +3 -3
  74. package/dist/chunks/{custom-form-taIFQqpi.js.map → custom-form-CS2SL4Bf.js.map} +1 -1
  75. package/dist/chunks/{dashboard-DjaJSt0T.esm.js → dashboard-BB35K2FP.esm.js} +3 -3
  76. package/dist/chunks/{dashboard-DjaJSt0T.esm.js.map → dashboard-BB35K2FP.esm.js.map} +1 -1
  77. package/dist/chunks/{dashboard-CiFDhaen.js → dashboard-BhnP9p8v.js} +2 -2
  78. package/dist/chunks/{dashboard-CiFDhaen.js.map → dashboard-BhnP9p8v.js.map} +1 -1
  79. package/dist/chunks/default-data-6IxhqPTP.esm.js.map +1 -1
  80. package/dist/chunks/default-data-yreKVx_z.js.map +1 -1
  81. package/dist/chunks/{dynamic-report-BpLx4dan.esm.js → dynamic-report-DqEqYFwB.esm.js} +4 -4
  82. package/dist/chunks/{dynamic-report-BpLx4dan.esm.js.map → dynamic-report-DqEqYFwB.esm.js.map} +1 -1
  83. package/dist/chunks/{dynamic-rows-bcDhQVUH.esm.js → dynamic-rows-aRfOvy43.esm.js} +2 -2
  84. package/dist/chunks/{dynamic-rows-bcDhQVUH.esm.js.map → dynamic-rows-aRfOvy43.esm.js.map} +1 -1
  85. package/dist/chunks/{dynamic-text-editor-RulcgEGu.esm.js → dynamic-text-editor-CdnVDWA3.esm.js} +2 -2
  86. package/dist/chunks/{dynamic-text-editor-RulcgEGu.esm.js.map → dynamic-text-editor-CdnVDWA3.esm.js.map} +1 -1
  87. package/dist/chunks/{edit-section-modal-DWROaARn.esm.js → edit-section-modal-CKzvbOam.esm.js} +2 -2
  88. package/dist/chunks/edit-section-modal-CKzvbOam.esm.js.map +1 -0
  89. package/dist/chunks/edit-section-modal-R-TdrVeI.js.map +1 -1
  90. package/dist/chunks/{filter-4Mw1FICb.esm.js → filter-BVY1nrjv.esm.js} +5 -5
  91. package/dist/chunks/{filter-4Mw1FICb.esm.js.map → filter-BVY1nrjv.esm.js.map} +1 -1
  92. package/dist/chunks/{filter-CuXTJGCb.js → filter-BXScmUKA.js} +3 -3
  93. package/dist/chunks/{filter-CuXTJGCb.js.map → filter-BXScmUKA.js.map} +1 -1
  94. package/dist/chunks/{footer-DSTT0FgX.esm.js → footer-BEt1R0BF.esm.js} +2 -2
  95. package/dist/chunks/{footer-DSTT0FgX.esm.js.map → footer-BEt1R0BF.esm.js.map} +1 -1
  96. package/dist/chunks/{footer-Dl1Ykqxv.js → footer-DJZ4K1n0.js} +2 -2
  97. package/dist/chunks/{footer-Dl1Ykqxv.js.map → footer-DJZ4K1n0.js.map} +1 -1
  98. package/dist/chunks/{form-fields-BvDB0wY0.js → form-fields-COjlUd_z.js} +3 -3
  99. package/dist/chunks/{form-fields-BvDB0wY0.js.map → form-fields-COjlUd_z.js.map} +1 -1
  100. package/dist/chunks/{form-fields-Ci4OvmUu.esm.js → form-fields-CwtBhyBW.esm.js} +3 -3
  101. package/dist/chunks/{form-fields-Ci4OvmUu.esm.js.map → form-fields-CwtBhyBW.esm.js.map} +1 -1
  102. package/dist/chunks/{form-parser-DS2hGFOW.js → form-parser-09IqF2B8.js} +2 -2
  103. package/dist/chunks/{form-parser-DS2hGFOW.js.map → form-parser-09IqF2B8.js.map} +1 -1
  104. package/dist/chunks/{form-parser-DcPAoaI6.esm.js → form-parser-DS9jYKXb.esm.js} +2 -2
  105. package/dist/chunks/{form-parser-DcPAoaI6.esm.js.map → form-parser-DS9jYKXb.esm.js.map} +1 -1
  106. package/dist/chunks/{form-section-CH3nvoyy.js → form-section-94yk-i7O.js} +6 -6
  107. package/dist/chunks/{form-section-CH3nvoyy.js.map → form-section-94yk-i7O.js.map} +1 -1
  108. package/dist/chunks/{form-section-DayjB4au.esm.js → form-section-Ce7gW7nw.esm.js} +6 -6
  109. package/dist/chunks/{form-section-DayjB4au.esm.js.map → form-section-Ce7gW7nw.esm.js.map} +1 -1
  110. package/dist/chunks/{fullScreen-qdL0hjMe.esm.js → fullScreen-BGLa_jyN.esm.js} +3 -3
  111. package/dist/chunks/{fullScreen-qdL0hjMe.esm.js.map → fullScreen-BGLa_jyN.esm.js.map} +1 -1
  112. package/dist/chunks/{fullScreen-DBPnd6AA.js → fullScreen-CeM0jO6X.js} +2 -2
  113. package/dist/chunks/{fullScreen-DBPnd6AA.js.map → fullScreen-CeM0jO6X.js.map} +1 -1
  114. package/dist/chunks/{global-search-CfMsZ-6E.esm.js → global-search-Da6V1hCw.esm.js} +2 -2
  115. package/dist/chunks/{global-search-CfMsZ-6E.esm.js.map → global-search-Da6V1hCw.esm.js.map} +1 -1
  116. package/dist/chunks/{grid-view-Wj0cWJhW.esm.js → grid-view-BFr24B5L.esm.js} +2 -2
  117. package/dist/chunks/{grid-view-Wj0cWJhW.esm.js.map → grid-view-BFr24B5L.esm.js.map} +1 -1
  118. package/dist/chunks/{header-GKYuNyw-.js → header-Crrg21ks.js} +2 -2
  119. package/dist/chunks/{header-GKYuNyw-.js.map → header-Crrg21ks.js.map} +1 -1
  120. package/dist/chunks/{header-DAP2CthE.esm.js → header-aasqgICS.esm.js} +4 -4
  121. package/dist/chunks/{header-DAP2CthE.esm.js.map → header-aasqgICS.esm.js.map} +1 -1
  122. package/dist/chunks/{header-enhanced-Dr4Tc_mF.esm.js → header-enhanced-CSAtP4BI.esm.js} +2 -2
  123. package/dist/chunks/{header-enhanced-Dr4Tc_mF.esm.js.map → header-enhanced-CSAtP4BI.esm.js.map} +1 -1
  124. package/dist/chunks/{index-sxk1LkzI.esm.js → index-rN4vc8IA.esm.js} +2 -2
  125. package/dist/chunks/{index-sxk1LkzI.esm.js.map → index-rN4vc8IA.esm.js.map} +1 -1
  126. package/dist/chunks/{inline-edit-fields-eSq3RRjR.js → inline-edit-fields-BNvosaTN.js} +3 -3
  127. package/dist/chunks/{inline-edit-fields-eSq3RRjR.js.map → inline-edit-fields-BNvosaTN.js.map} +1 -1
  128. package/dist/chunks/{inline-edit-fields-B1X4Axpt.esm.js → inline-edit-fields-CzTMCbzn.esm.js} +3 -3
  129. package/dist/chunks/{inline-edit-fields-B1X4Axpt.esm.js.map → inline-edit-fields-CzTMCbzn.esm.js.map} +1 -1
  130. package/dist/chunks/{inventory-reports-title-bar-DERFvWJE.js → inventory-reports-title-bar-BvhyLQ4V.js} +2 -2
  131. package/dist/chunks/{inventory-reports-title-bar-DERFvWJE.js.map → inventory-reports-title-bar-BvhyLQ4V.js.map} +1 -1
  132. package/dist/chunks/{inventory-reports-title-bar-D8XpVL1k.esm.js → inventory-reports-title-bar-pf_78LUZ.esm.js} +3 -3
  133. package/dist/chunks/{inventory-reports-title-bar-D8XpVL1k.esm.js.map → inventory-reports-title-bar-pf_78LUZ.esm.js.map} +1 -1
  134. package/dist/chunks/{item-response-details-DPZKqRug.js → item-response-details-7iAPYOTv.js} +2 -2
  135. package/dist/chunks/{item-response-details-DPZKqRug.js.map → item-response-details-7iAPYOTv.js.map} +1 -1
  136. package/dist/chunks/{item-response-details-DOyzieZp.esm.js → item-response-details-CSHehVMS.esm.js} +4 -4
  137. package/dist/chunks/{item-response-details-DOyzieZp.esm.js.map → item-response-details-CSHehVMS.esm.js.map} +1 -1
  138. package/dist/chunks/{listing-CLH5aLLT.js → listing-9zOaeEtm.js} +4 -4
  139. package/dist/chunks/{listing-CLH5aLLT.js.map → listing-9zOaeEtm.js.map} +1 -1
  140. package/dist/chunks/{listing-TXbvRzUP.esm.js → listing-CPGsuBMA.esm.js} +4 -4
  141. package/dist/chunks/{listing-TXbvRzUP.esm.js.map → listing-CPGsuBMA.esm.js.map} +1 -1
  142. package/dist/chunks/{location-select-DzqrknmO.js → location-select-BOYOUv3I.js} +2 -2
  143. package/dist/chunks/{location-select-DzqrknmO.js.map → location-select-BOYOUv3I.js.map} +1 -1
  144. package/dist/chunks/{location-select-Bj9aLxV0.esm.js → location-select-Dl7zUTHR.esm.js} +2 -2
  145. package/dist/chunks/{location-select-Bj9aLxV0.esm.js.map → location-select-Dl7zUTHR.esm.js.map} +1 -1
  146. package/dist/chunks/{material-editable-table-BKTGb4v1.esm.js → material-editable-table-B8ed5YX6.esm.js} +3 -3
  147. package/dist/chunks/{material-editable-table-BKTGb4v1.esm.js.map → material-editable-table-B8ed5YX6.esm.js.map} +1 -1
  148. package/dist/chunks/{material-editable-table-5tndaI0V.js → material-editable-table-Z_wQXpjN.js} +2 -2
  149. package/dist/chunks/{material-editable-table-5tndaI0V.js.map → material-editable-table-Z_wQXpjN.js.map} +1 -1
  150. package/dist/chunks/media-BWriA8Un.esm.js +45 -0
  151. package/dist/chunks/{media-BNHjErng.esm.js.map → media-BWriA8Un.esm.js.map} +1 -1
  152. package/dist/chunks/media-D5-I9adp.js +44 -0
  153. package/dist/chunks/media-D5-I9adp.js.map +1 -0
  154. package/dist/chunks/{module-reducer-BhnljAy1.esm.js → module-reducer-Bxu3--QK.esm.js} +2 -2
  155. package/dist/chunks/{module-reducer-BhnljAy1.esm.js.map → module-reducer-Bxu3--QK.esm.js.map} +1 -1
  156. package/dist/chunks/{notification-menu-B7Jh6wmO.esm.js → notification-menu-BNUazD23.esm.js} +3 -3
  157. package/dist/chunks/{notification-menu-B7Jh6wmO.esm.js.map → notification-menu-BNUazD23.esm.js.map} +1 -1
  158. package/dist/chunks/{page-action-A9jg4HH1.js → page-action-BvfLbawr.js} +2 -2
  159. package/dist/chunks/{page-action-A9jg4HH1.js.map → page-action-BvfLbawr.js.map} +1 -1
  160. package/dist/chunks/{page-action-3kxiffM3.esm.js → page-action-C8VxjK9c.esm.js} +4 -4
  161. package/dist/chunks/{page-action-3kxiffM3.esm.js.map → page-action-C8VxjK9c.esm.js.map} +1 -1
  162. package/dist/chunks/{page-navigator-DT5thk7T.esm.js → page-navigator-GoMH0fMw.esm.js} +2 -2
  163. package/dist/chunks/{page-navigator-DT5thk7T.esm.js.map → page-navigator-GoMH0fMw.esm.js.map} +1 -1
  164. package/dist/chunks/{page-navigator-D7ZlgvXV.js → page-navigator-SUYJqdnx.js} +2 -2
  165. package/dist/chunks/{page-navigator-D7ZlgvXV.js.map → page-navigator-SUYJqdnx.js.map} +1 -1
  166. package/dist/chunks/{page-view-BGFVKE0d.js → page-view-BortZKhR.js} +3 -3
  167. package/dist/chunks/{page-view-BGFVKE0d.js.map → page-view-BortZKhR.js.map} +1 -1
  168. package/dist/chunks/{page-view-BS6O37yz.esm.js → page-view-DRQ3PFJ7.esm.js} +3 -3
  169. package/dist/chunks/{page-view-BS6O37yz.esm.js.map → page-view-DRQ3PFJ7.esm.js.map} +1 -1
  170. package/dist/chunks/{quick-approval-modal-CAW-x6b5.esm.js → quick-approval-modal-DXAqjdcl.esm.js} +2 -2
  171. package/dist/chunks/{quick-approval-modal-CAW-x6b5.esm.js.map → quick-approval-modal-DXAqjdcl.esm.js.map} +1 -1
  172. package/dist/chunks/{reducer-D1pUeHvd.esm.js → reducer-BjHl_KLr.esm.js} +2 -2
  173. package/dist/chunks/{reducer-D1pUeHvd.esm.js.map → reducer-BjHl_KLr.esm.js.map} +1 -1
  174. package/dist/chunks/{reducer-wJ-3T9dQ.esm.js → reducer-BkCNzjBL.esm.js} +3 -3
  175. package/dist/chunks/{reducer-wJ-3T9dQ.esm.js.map → reducer-BkCNzjBL.esm.js.map} +1 -1
  176. package/dist/chunks/{reducer-B-_XPKUq.esm.js → reducer-CSKSBC88.esm.js} +3 -3
  177. package/dist/chunks/{reducer-B-_XPKUq.esm.js.map → reducer-CSKSBC88.esm.js.map} +1 -1
  178. package/dist/chunks/{reducer-SLdyZxfq.esm.js → reducer-CiLCj0Py.esm.js} +2 -2
  179. package/dist/chunks/{reducer-SLdyZxfq.esm.js.map → reducer-CiLCj0Py.esm.js.map} +1 -1
  180. package/dist/chunks/{reducer-B-ehhPul.esm.js → reducer-L9HIXcI1.esm.js} +2 -2
  181. package/dist/chunks/{reducer-B-ehhPul.esm.js.map → reducer-L9HIXcI1.esm.js.map} +1 -1
  182. package/dist/chunks/{reports-title-bar-Dd9esqeX.esm.js → reports-title-bar-BJ7NkV9U.esm.js} +4 -4
  183. package/dist/chunks/{reports-title-bar-Dd9esqeX.esm.js.map → reports-title-bar-BJ7NkV9U.esm.js.map} +1 -1
  184. package/dist/chunks/{reports-title-bar-BORLcY1u.js → reports-title-bar-CdO0ixSd.js} +2 -2
  185. package/dist/chunks/{reports-title-bar-BORLcY1u.js.map → reports-title-bar-CdO0ixSd.js.map} +1 -1
  186. package/dist/chunks/{route-page-map-Dx7Hv4ob.esm.js → route-page-map-DkWoisiB.esm.js} +2 -2
  187. package/dist/chunks/{route-page-map-Dx7Hv4ob.esm.js.map → route-page-map-DkWoisiB.esm.js.map} +1 -1
  188. package/dist/chunks/{route-page-map-BQuAxbji.js → route-page-map-Dn-SAbdf.js} +2 -2
  189. package/dist/chunks/{route-page-map-BQuAxbji.js.map → route-page-map-Dn-SAbdf.js.map} +1 -1
  190. package/dist/chunks/{routes-CT2ZJyoM.js → routes-CFCfCWmQ.js} +4 -4
  191. package/dist/chunks/{routes-CT2ZJyoM.js.map → routes-CFCfCWmQ.js.map} +1 -1
  192. package/dist/chunks/{routes-BxjZuAM7.esm.js → routes-CIaAl7t8.esm.js} +4 -4
  193. package/dist/chunks/{routes-BxjZuAM7.esm.js.map → routes-CIaAl7t8.esm.js.map} +1 -1
  194. package/dist/chunks/{schedule-report-C_CnIly0.js → schedule-report-BP_lF8CG.js} +4 -4
  195. package/dist/chunks/{schedule-report-C_CnIly0.js.map → schedule-report-BP_lF8CG.js.map} +1 -1
  196. package/dist/chunks/{schedule-report-DuV2sMAA.esm.js → schedule-report-Buvq9E-k.esm.js} +6 -6
  197. package/dist/chunks/{schedule-report-DuV2sMAA.esm.js.map → schedule-report-Buvq9E-k.esm.js.map} +1 -1
  198. package/dist/chunks/{schedule-report-modal-9Sww9CMi.js → schedule-report-modal-COImNOlJ.js} +2 -2
  199. package/dist/chunks/{schedule-report-modal-9Sww9CMi.js.map → schedule-report-modal-COImNOlJ.js.map} +1 -1
  200. package/dist/chunks/{schedule-report-modal-D46FqbKz.esm.js → schedule-report-modal-CvfPn4bO.esm.js} +3 -3
  201. package/dist/chunks/{schedule-report-modal-D46FqbKz.esm.js.map → schedule-report-modal-CvfPn4bO.esm.js.map} +1 -1
  202. package/dist/chunks/{searchable-select-UrarL3yl.esm.js → searchable-select-Bu17d6NI.esm.js} +6 -6
  203. package/dist/chunks/{searchable-select-UrarL3yl.esm.js.map → searchable-select-Bu17d6NI.esm.js.map} +1 -1
  204. package/dist/chunks/{searchable-select-CK7NDlC_.js → searchable-select-DWAOdcXD.js} +2 -2
  205. package/dist/chunks/{searchable-select-CK7NDlC_.js.map → searchable-select-DWAOdcXD.js.map} +1 -1
  206. package/dist/chunks/{share-modal-DQNABE5p.js → share-modal-C27qwY53.js} +2 -2
  207. package/dist/chunks/{share-modal-DQNABE5p.js.map → share-modal-C27qwY53.js.map} +1 -1
  208. package/dist/chunks/{share-modal-BbcQPTCp.esm.js → share-modal-e1Ln_EkF.esm.js} +3 -3
  209. package/dist/chunks/{share-modal-BbcQPTCp.esm.js.map → share-modal-e1Ln_EkF.esm.js.map} +1 -1
  210. package/dist/chunks/{share-modal-enhanced-CSK7xB98.js → share-modal-enhanced-AISjjeWC.js} +2 -2
  211. package/dist/chunks/{share-modal-enhanced-CSK7xB98.js.map → share-modal-enhanced-AISjjeWC.js.map} +1 -1
  212. package/dist/chunks/{share-modal-enhanced-BG_REa0g.esm.js → share-modal-enhanced-De3P9VK_.esm.js} +2 -2
  213. package/dist/chunks/{share-modal-enhanced-BG_REa0g.esm.js.map → share-modal-enhanced-De3P9VK_.esm.js.map} +1 -1
  214. package/dist/chunks/{sidebarScreen-CDJYW58B.esm.js → sidebarScreen-DrXQgFfD.esm.js} +4 -4
  215. package/dist/chunks/{sidebarScreen-CDJYW58B.esm.js.map → sidebarScreen-DrXQgFfD.esm.js.map} +1 -1
  216. package/dist/chunks/{sidebarScreen-CL8b4ZKO.js → sidebarScreen-fc0K8AIc.js} +2 -2
  217. package/dist/chunks/{sidebarScreen-CL8b4ZKO.js.map → sidebarScreen-fc0K8AIc.js.map} +1 -1
  218. package/dist/chunks/{store-Btf42rjc.esm.js → store-Fe4VwbF_.esm.js} +6 -6
  219. package/dist/chunks/{store-Btf42rjc.esm.js.map → store-Fe4VwbF_.esm.js.map} +1 -1
  220. package/dist/chunks/{table-3Rtk7bfw.esm.js → table-Co5_7CEc.esm.js} +3 -3
  221. package/dist/chunks/{table-3Rtk7bfw.esm.js.map → table-Co5_7CEc.esm.js.map} +1 -1
  222. package/dist/chunks/{table-form-Cj09aAhr.esm.js → table-form-CL8axzXB.esm.js} +2 -2
  223. package/dist/chunks/{table-form-Cj09aAhr.esm.js.map → table-form-CL8axzXB.esm.js.map} +1 -1
  224. package/dist/chunks/{table-JLBLtl-l.js → table-pSQQBEqC.js} +2 -2
  225. package/dist/chunks/{table-JLBLtl-l.js.map → table-pSQQBEqC.js.map} +1 -1
  226. package/dist/chunks/{template-editor-router-DSM9raJw.js → template-editor-router-BZbxO3bj.js} +2 -2
  227. package/dist/chunks/{template-editor-router-DSM9raJw.js.map → template-editor-router-BZbxO3bj.js.map} +1 -1
  228. package/dist/chunks/{template-editor-router-DQXyZXcp.esm.js → template-editor-router-DkSQldFD.esm.js} +2 -2
  229. package/dist/chunks/{template-editor-router-DQXyZXcp.esm.js.map → template-editor-router-DkSQldFD.esm.js.map} +1 -1
  230. package/dist/chunks/{template-modal-D3Y04F74.js → template-modal-CtcB5ZXg.js} +4 -5
  231. package/dist/chunks/template-modal-CtcB5ZXg.js.map +1 -0
  232. package/dist/chunks/{template-modal-CK2xKQKB.esm.js → template-modal-GAKNz6Ju.esm.js} +6 -7
  233. package/dist/chunks/template-modal-GAKNz6Ju.esm.js.map +1 -0
  234. package/dist/chunks/{template-name-modal-26pzkeXv.esm.js → template-name-modal-CLROXhxo.esm.js} +5 -12
  235. package/dist/chunks/template-name-modal-CLROXhxo.esm.js.map +1 -0
  236. package/dist/chunks/{template-name-modal-DRs3R4iy.js → template-name-modal-CeqxIE2r.js} +5 -12
  237. package/dist/chunks/template-name-modal-CeqxIE2r.js.map +1 -0
  238. package/dist/chunks/{templates-Df3djbmI.esm.js → templates-BWZsKOkq.esm.js} +9 -9
  239. package/dist/chunks/templates-BWZsKOkq.esm.js.map +1 -0
  240. package/dist/chunks/{templates-CpxORHHg.js → templates-CWeYr33-.js} +6 -6
  241. package/dist/chunks/templates-CWeYr33-.js.map +1 -0
  242. package/dist/chunks/{text-measurement-Bvw_viaS.esm.js → text-measurement-BDjRfcdG.esm.js} +2 -2
  243. package/dist/chunks/{text-measurement-Bvw_viaS.esm.js.map → text-measurement-BDjRfcdG.esm.js.map} +1 -1
  244. package/dist/chunks/{translations-DYY2KK4N.esm.js → translations-AfCWpvAq.esm.js} +3 -3
  245. package/dist/chunks/{translations-DYY2KK4N.esm.js.map → translations-AfCWpvAq.esm.js.map} +1 -1
  246. package/dist/chunks/{uom-field-wrapper-Cor3MpzB.esm.js → uom-field-wrapper-Ci2KCrFu.esm.js} +2 -2
  247. package/dist/chunks/{uom-field-wrapper-Cor3MpzB.esm.js.map → uom-field-wrapper-Ci2KCrFu.esm.js.map} +1 -1
  248. package/dist/chunks/{uom-field-wrapper-Cz7QX2a_.js → uom-field-wrapper-qe_kL90T.js} +2 -2
  249. package/dist/chunks/{uom-field-wrapper-Cz7QX2a_.js.map → uom-field-wrapper-qe_kL90T.js.map} +1 -1
  250. package/dist/chunks/{upload-excel-HPdSmJQk.esm.js → upload-excel-BgU9rR6Y.esm.js} +2 -2
  251. package/dist/chunks/{upload-excel-HPdSmJQk.esm.js.map → upload-excel-BgU9rR6Y.esm.js.map} +1 -1
  252. package/dist/chunks/upload-media-BE0tktWj.js +522 -0
  253. package/dist/chunks/upload-media-BE0tktWj.js.map +1 -0
  254. package/dist/chunks/upload-media-OmufgJmq.esm.js +523 -0
  255. package/dist/chunks/upload-media-OmufgJmq.esm.js.map +1 -0
  256. package/dist/chunks/{use-translations-DLuZZda6.esm.js → use-translations-lguGhn5S.esm.js} +2 -2
  257. package/dist/chunks/{use-translations-DLuZZda6.esm.js.map → use-translations-lguGhn5S.esm.js.map} +1 -1
  258. package/dist/chunks/{useAccountSetting-B-Fl9KZe.esm.js → useAccountSetting-DcGLpWby.esm.js} +2 -2
  259. package/dist/chunks/{useAccountSetting-B-Fl9KZe.esm.js.map → useAccountSetting-DcGLpWby.esm.js.map} +1 -1
  260. package/dist/chunks/{useCheckSkuAndName-Bu1OPPqo.esm.js → useCheckSkuAndName-Hd41btzY.esm.js} +2 -2
  261. package/dist/chunks/{useCheckSkuAndName-Bu1OPPqo.esm.js.map → useCheckSkuAndName-Hd41btzY.esm.js.map} +1 -1
  262. package/dist/chunks/{useReduxIntegration-C5Ijdb41.esm.js → useReduxIntegration-BL_5V7QV.esm.js} +2 -2
  263. package/dist/chunks/{useReduxIntegration-C5Ijdb41.esm.js.map → useReduxIntegration-BL_5V7QV.esm.js.map} +1 -1
  264. package/dist/chunks/{useUniquenessCheck-Bq2b6mKm.esm.js → useUniquenessCheck-DmKGritZ.esm.js} +2 -2
  265. package/dist/chunks/{useUniquenessCheck-Bq2b6mKm.esm.js.map → useUniquenessCheck-DmKGritZ.esm.js.map} +1 -1
  266. package/dist/chunks/{useVendorAICompare-q5O-KxvE.esm.js → useVendorAICompare-Bw0EuWHc.esm.js} +2 -2
  267. package/dist/chunks/{useVendorAICompare-q5O-KxvE.esm.js.map → useVendorAICompare-Bw0EuWHc.esm.js.map} +1 -1
  268. package/dist/chunks/{value-editor-CtTHzN7P.js → value-editor-DBBKG2TA.js} +2 -2
  269. package/dist/chunks/{value-editor-CtTHzN7P.js.map → value-editor-DBBKG2TA.js.map} +1 -1
  270. package/dist/chunks/{value-editor-BSTPNizm.esm.js → value-editor-DR1T0F4i.esm.js} +4 -4
  271. package/dist/chunks/{value-editor-BSTPNizm.esm.js.map → value-editor-DR1T0F4i.esm.js.map} +1 -1
  272. package/dist/chunks/{vendor-ai-summary-YK-kEok5.js → vendor-ai-summary-1wlm-nT1.js} +2 -2
  273. package/dist/chunks/{vendor-ai-summary-YK-kEok5.js.map → vendor-ai-summary-1wlm-nT1.js.map} +1 -1
  274. package/dist/chunks/{vendor-ai-summary-DESIWWfy.esm.js → vendor-ai-summary-YcXA_SEB.esm.js} +3 -3
  275. package/dist/chunks/{vendor-ai-summary-DESIWWfy.esm.js.map → vendor-ai-summary-YcXA_SEB.esm.js.map} +1 -1
  276. package/dist/components/action-bar/action-bar/index.esm.js +1 -1
  277. package/dist/components/action-bar/action-bar/index.js +1 -1
  278. package/dist/components/action-bar/index.esm.js +1 -1
  279. package/dist/components/action-bar/index.js +1 -1
  280. package/dist/components/address-modal/index.esm.js +1 -1
  281. package/dist/components/address-modal/index.js +1 -1
  282. package/dist/components/ai-summary/ai-summary/index.esm.js +1 -1
  283. package/dist/components/ai-summary/index.esm.js +1 -1
  284. package/dist/components/appbar/appbar/index.esm.js +1 -1
  285. package/dist/components/appbar/appbar/index.js +1 -1
  286. package/dist/components/appbar/index.esm.js +1 -1
  287. package/dist/components/appbar/index.js +1 -1
  288. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
  289. package/dist/components/approval-wrapper/index.esm.js +1 -1
  290. package/dist/components/chat-bot/index.esm.js +1 -1
  291. package/dist/components/custom-forms/FORMS/index.esm.js +1 -1
  292. package/dist/components/custom-forms/FORMS/index.js +1 -1
  293. package/dist/components/custom-forms/grid-view/grid-view/index.esm.js +1 -1
  294. package/dist/components/custom-forms/grid-view/index.esm.js +1 -1
  295. package/dist/components/custom-forms/index.esm.js +2 -2
  296. package/dist/components/custom-forms/index.js +1 -1
  297. package/dist/components/department-add-modal/index.esm.js +1 -1
  298. package/dist/components/department-add-modal/index.js +1 -1
  299. package/dist/components/designation-add-modal/index.esm.js +1 -1
  300. package/dist/components/designation-add-modal/index.js +1 -1
  301. package/dist/components/editor/custom-editor/index.esm.js +1 -1
  302. package/dist/components/editor/index.esm.js +1 -1
  303. package/dist/components/examples/FlexibleReduxExample/index.esm.js +1 -1
  304. package/dist/components/examples/FlexibleReduxExample/index.js +1 -1
  305. package/dist/components/examples/index.esm.js +1 -1
  306. package/dist/components/examples/index.js +1 -1
  307. package/dist/components/filter/components/index.esm.js +1 -1
  308. package/dist/components/filter/components/index.js +1 -1
  309. package/dist/components/filter/components/value-editor/index.esm.js +1 -1
  310. package/dist/components/filter/components/value-editor/index.js +1 -1
  311. package/dist/components/filter/filter/index.esm.js +1 -1
  312. package/dist/components/filter/filter/index.js +1 -1
  313. package/dist/components/filter/index.esm.js +2 -2
  314. package/dist/components/filter/index.js +2 -2
  315. package/dist/components/footer/footer/index.esm.js +1 -1
  316. package/dist/components/footer/footer/index.js +1 -1
  317. package/dist/components/footer/index.esm.js +1 -1
  318. package/dist/components/footer/index.js +1 -1
  319. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.esm.js +1 -1
  320. package/dist/components/form-control/form-builder/form-builder-element/dynamic-dependent-field/index.js +1 -1
  321. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.esm.js +1 -1
  322. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select/index.js +1 -1
  323. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor/index.esm.js +1 -1
  324. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.esm.js +1 -1
  325. package/dist/components/form-control/form-builder/form-builder-element/fixed-asset-item-add-modal/index.js +1 -1
  326. package/dist/components/form-control/form-builder/form-builder-element/index.esm.js +5 -5
  327. package/dist/components/form-control/form-builder/form-builder-element/index.js +4 -4
  328. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.esm.js +1 -1
  329. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.js +1 -1
  330. package/dist/components/form-control/form-builder/form-builder-element/media/index.esm.js +1 -1
  331. package/dist/components/form-control/form-builder/form-builder-element/media/index.js +1 -1
  332. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.esm.js +1 -1
  333. package/dist/components/form-control/form-builder/form-builder-element/select-configuration/index.js +1 -1
  334. package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
  335. package/dist/components/form-control/form-builder/form-builder-element/table/index.js +1 -1
  336. package/dist/components/form-control/form-builder/index.esm.js +5 -5
  337. package/dist/components/form-control/form-builder/index.js +4 -4
  338. package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
  339. package/dist/components/form-control/form-parser/form-parser/index.js +1 -1
  340. package/dist/components/form-control/form-parser/form-section/index.esm.js +1 -1
  341. package/dist/components/form-control/form-parser/form-section/index.js +1 -1
  342. package/dist/components/form-control/form-parser/index.esm.js +2 -2
  343. package/dist/components/form-control/form-parser/index.js +2 -2
  344. package/dist/components/form-control/index.esm.js +7 -7
  345. package/dist/components/form-control/index.js +6 -6
  346. package/dist/components/header/components/global-search/index.esm.js +1 -1
  347. package/dist/components/header/components/index.esm.js +1 -1
  348. package/dist/components/header/components/notification-menu/index.esm.js +1 -1
  349. package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
  350. package/dist/components/header/header/index.esm.js +1 -1
  351. package/dist/components/header/header/index.js +1 -1
  352. package/dist/components/header/header-enhanced/index.esm.js +1 -1
  353. package/dist/components/header/index.esm.js +5 -5
  354. package/dist/components/header/index.js +1 -1
  355. package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
  356. package/dist/components/header/redux/index.esm.js +2 -2
  357. package/dist/components/header/redux/reducer/index.esm.js +1 -1
  358. package/dist/components/index.esm.js +38 -38
  359. package/dist/components/index.js +28 -28
  360. package/dist/components/inventory-reports-title-bar/index.esm.js +3 -3
  361. package/dist/components/inventory-reports-title-bar/index.js +1 -1
  362. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
  363. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
  364. package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  365. package/dist/components/inventory-reports-title-bar/redux/index.esm.js +2 -2
  366. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +1 -1
  367. package/dist/components/listing/index.esm.js +1 -1
  368. package/dist/components/listing/index.js +1 -1
  369. package/dist/components/listing/listing/index.esm.js +1 -1
  370. package/dist/components/listing/listing/index.js +1 -1
  371. package/dist/components/location-select/index.esm.js +1 -1
  372. package/dist/components/location-select/index.js +1 -1
  373. package/dist/components/material-editable-table/components/index.esm.js +1 -1
  374. package/dist/components/material-editable-table/components/index.js +1 -1
  375. package/dist/components/material-editable-table/components/inline-edit-fields/index.esm.js +1 -1
  376. package/dist/components/material-editable-table/components/inline-edit-fields/index.js +1 -1
  377. package/dist/components/material-editable-table/index.esm.js +2 -2
  378. package/dist/components/material-editable-table/index.js +2 -2
  379. package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
  380. package/dist/components/material-editable-table/material-editable-table/index.js +1 -1
  381. package/dist/components/material-table/components/index.esm.js +1 -1
  382. package/dist/components/material-table/components/index.js +1 -1
  383. package/dist/components/material-table/components/inline-edit-fields/index.esm.js +1 -1
  384. package/dist/components/material-table/components/inline-edit-fields/index.js +1 -1
  385. package/dist/components/material-table/index.esm.js +1 -1
  386. package/dist/components/material-table/index.js +1 -1
  387. package/dist/components/material-table/material-table/index.esm.js +1 -1
  388. package/dist/components/material-table/material-table/index.js +1 -1
  389. package/dist/components/page-navigator/components/index.esm.js +1 -1
  390. package/dist/components/page-navigator/components/index.js +1 -1
  391. package/dist/components/page-navigator/components/page-action/index.esm.js +1 -1
  392. package/dist/components/page-navigator/components/page-action/index.js +1 -1
  393. package/dist/components/page-navigator/index.esm.js +2 -2
  394. package/dist/components/page-navigator/index.js +2 -2
  395. package/dist/components/page-navigator/page-navigator/index.esm.js +1 -1
  396. package/dist/components/page-navigator/page-navigator/index.js +1 -1
  397. package/dist/components/parties-modal/index.esm.js +1 -1
  398. package/dist/components/parties-modal/index.js +1 -1
  399. package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
  400. package/dist/components/parties-modal/parties-modal/index.js +1 -1
  401. package/dist/components/providers/ERPUIProvider/index.esm.js +1 -1
  402. package/dist/components/providers/index.esm.js +1 -1
  403. package/dist/components/quick-approval-modal/index.esm.js +1 -1
  404. package/dist/components/quick-approval-modal/quick-approval-modal/index.esm.js +1 -1
  405. package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +1 -1
  406. package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +1 -1
  407. package/dist/components/reports/dynamic-report/index.esm.js +2 -2
  408. package/dist/components/reports/index.esm.js +2 -2
  409. package/dist/components/reports-title-bar/index.esm.js +3 -3
  410. package/dist/components/reports-title-bar/index.js +1 -1
  411. package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
  412. package/dist/components/reports-title-bar/redux/index.esm.js +2 -2
  413. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +1 -1
  414. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  415. package/dist/components/reports-title-bar/reports-title-bar/index.js +1 -1
  416. package/dist/components/rfq-response/index.esm.js +1 -1
  417. package/dist/components/rfq-response/index.js +1 -1
  418. package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
  419. package/dist/components/rfq-response/item-response-details/index.js +1 -1
  420. package/dist/components/schedule-report/index.esm.js +2 -2
  421. package/dist/components/schedule-report/index.js +2 -2
  422. package/dist/components/schedule-report/schedule-report/index.esm.js +1 -1
  423. package/dist/components/schedule-report/schedule-report/index.js +1 -1
  424. package/dist/components/schedule-report/schedule-report-modal/index.esm.js +1 -1
  425. package/dist/components/schedule-report/schedule-report-modal/index.js +1 -1
  426. package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
  427. package/dist/components/searchable-select/index.esm.js +1 -1
  428. package/dist/components/searchable-select/index.js +1 -1
  429. package/dist/components/share-modal/index.esm.js +4 -4
  430. package/dist/components/share-modal/index.js +2 -2
  431. package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
  432. package/dist/components/share-modal/redux/index.esm.js +2 -2
  433. package/dist/components/share-modal/redux/reducer/index.esm.js +1 -1
  434. package/dist/components/share-modal/share-modal/index.esm.js +1 -1
  435. package/dist/components/share-modal/share-modal/index.js +1 -1
  436. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +1 -1
  437. package/dist/components/share-modal/share-modal-enhanced/index.js +1 -1
  438. package/dist/components/team-add-modal/index.esm.js +1 -1
  439. package/dist/components/team-add-modal/index.js +1 -1
  440. package/dist/components/uom-field-wrapper/index.esm.js +1 -1
  441. package/dist/components/uom-field-wrapper/index.js +1 -1
  442. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js +1 -1
  443. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js +1 -1
  444. package/dist/components/upload-excel/index.esm.js +1 -1
  445. package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
  446. package/dist/components/upload-media/index.esm.js +1 -1
  447. package/dist/components/upload-media/index.js +1 -1
  448. package/dist/components/upload-media/upload-media/index.esm.js +1 -1
  449. package/dist/components/upload-media/upload-media/index.js +1 -1
  450. package/dist/components/vendor-ai-summary/index.esm.js +1 -1
  451. package/dist/components/vendor-ai-summary/index.js +1 -1
  452. package/dist/constants/index.esm.js +1 -1
  453. package/dist/constants/index.js +1 -1
  454. package/dist/hooks/index.esm.js +6 -6
  455. package/dist/hooks/use-translations/index.esm.js +1 -1
  456. package/dist/hooks/useAccountSetting/index.esm.js +1 -1
  457. package/dist/hooks/useCheckSkuAndName/index.esm.js +1 -1
  458. package/dist/hooks/useReduxIntegration/index.esm.js +1 -1
  459. package/dist/hooks/useUniquenessCheck/index.esm.js +1 -1
  460. package/dist/index.esm.js +100 -108
  461. package/dist/index.esm.js.map +1 -1
  462. package/dist/index.js +72 -80
  463. package/dist/index.js.map +1 -1
  464. package/dist/layout/fullScreen/index.esm.js +1 -1
  465. package/dist/layout/fullScreen/index.js +1 -1
  466. package/dist/layout/index.esm.js +2 -2
  467. package/dist/layout/index.js +2 -2
  468. package/dist/layout/sidebarScreen/index.esm.js +1 -1
  469. package/dist/layout/sidebarScreen/index.js +1 -1
  470. package/dist/redux/index.esm.js +3 -3
  471. package/dist/runtime/index.esm.js +3 -3
  472. package/dist/runtime/index.esm.js.map +1 -1
  473. package/dist/runtime/index.js +1 -1
  474. package/dist/runtime/index.js.map +1 -1
  475. package/dist/src/components/upload-media/image-cropper.d.ts +12 -0
  476. package/dist/src/components/upload-media/upload-media.d.ts +6 -0
  477. package/dist/src/views/template-editor/components/EditorCanvas.d.ts +12 -48
  478. package/dist/src/views/template-editor/components/EditorHeader.d.ts +0 -6
  479. package/dist/src/views/template-editor/components/EditorSection.d.ts +0 -1
  480. package/dist/src/views/template-editor/components/SectionFlowEditor.d.ts +3 -2
  481. package/dist/src/views/template-editor/components/SectionFormatPanel.d.ts +1 -2
  482. package/dist/src/views/template-editor/components/controllers/TableControls.d.ts +0 -42
  483. package/dist/src/views/template-editor/components/controllers/TextControls.d.ts +0 -3
  484. package/dist/src/views/template-editor/types/editor.d.ts +108 -20
  485. package/dist/src/views/template-editor/utils/common.d.ts +1 -28
  486. package/dist/src/views/template-editor/utils/constant.d.ts +1 -4
  487. package/dist/style.css +33 -4619
  488. package/dist/utils/api/index.esm.js +1 -1
  489. package/dist/utils/common/index.esm.js +1 -1
  490. package/dist/utils/common-utility/index.esm.js +1 -1
  491. package/dist/utils/index.esm.js +8 -8
  492. package/dist/utils/server/index.esm.js +2 -2
  493. package/dist/utils/text-measurement/index.esm.js +1 -1
  494. package/dist/views/afterAuth/dashboard/index.esm.js +1 -1
  495. package/dist/views/afterAuth/dashboard/index.js +1 -1
  496. package/dist/views/afterAuth/index.esm.js +2 -2
  497. package/dist/views/afterAuth/index.js +2 -2
  498. package/dist/views/afterAuth/page-view/index.esm.js +1 -1
  499. package/dist/views/afterAuth/page-view/index.js +1 -1
  500. package/dist/views/form-builder/custom-form/index.esm.js +1 -1
  501. package/dist/views/form-builder/custom-form/index.js +1 -1
  502. package/dist/views/form-builder/element-edit-forms/index.esm.js +1 -1
  503. package/dist/views/form-builder/form-fields/index.esm.js +1 -1
  504. package/dist/views/form-builder/form-fields/index.js +1 -1
  505. package/dist/views/form-builder/index.esm.js +4 -4
  506. package/dist/views/form-builder/index.js +2 -2
  507. package/dist/views/form-builder/redux/index.esm.js +1 -1
  508. package/dist/views/index.esm.js +37 -45
  509. package/dist/views/index.esm.js.map +1 -1
  510. package/dist/views/index.js +31 -39
  511. package/dist/views/index.js.map +1 -1
  512. package/dist/views/template-editor/add-template/index.esm.js +1 -1
  513. package/dist/views/template-editor/add-template/index.js +1 -1
  514. package/dist/views/template-editor/components/index.esm.js +6 -7
  515. package/dist/views/template-editor/components/index.esm.js.map +1 -1
  516. package/dist/views/template-editor/components/index.js +3 -4
  517. package/dist/views/template-editor/components/index.js.map +1 -1
  518. package/dist/views/template-editor/edit-section-modal/index.esm.js +1 -1
  519. package/dist/views/template-editor/index.esm.js +20 -28
  520. package/dist/views/template-editor/index.esm.js.map +1 -1
  521. package/dist/views/template-editor/index.js +11 -19
  522. package/dist/views/template-editor/index.js.map +1 -1
  523. package/dist/views/template-editor/routes/index.esm.js +1 -1
  524. package/dist/views/template-editor/routes/index.js +1 -1
  525. package/dist/views/template-editor/template-modal/index.esm.js +1 -1
  526. package/dist/views/template-editor/template-modal/index.js +1 -1
  527. package/dist/views/template-editor/template-name-modal/index.esm.js +1 -1
  528. package/dist/views/template-editor/template-name-modal/index.js +1 -1
  529. package/dist/views/template-editor/templates/index.esm.js +1 -1
  530. package/dist/views/template-editor/templates/index.js +1 -1
  531. package/dist/views/template-editor/utils/index.esm.js +6 -13
  532. package/dist/views/template-editor/utils/index.js +2 -9
  533. package/dist/views/template-editor/utils/index.js.map +1 -1
  534. package/package.json +1 -1
  535. package/dist/chunks/EditorSection-64HiL7gY.js +0 -848
  536. package/dist/chunks/EditorSection-64HiL7gY.js.map +0 -1
  537. package/dist/chunks/EditorSection-BXLlzUSL.esm.js +0 -849
  538. package/dist/chunks/EditorSection-BXLlzUSL.esm.js.map +0 -1
  539. package/dist/chunks/SectionFlowEditor-0p4pKU_R.esm.js +0 -13132
  540. package/dist/chunks/SectionFlowEditor-0p4pKU_R.esm.js.map +0 -1
  541. package/dist/chunks/SectionFlowEditor-BvJgo0VH.js +0 -13131
  542. package/dist/chunks/SectionFlowEditor-BvJgo0VH.js.map +0 -1
  543. package/dist/chunks/add-template-BEXBctrZ.js +0 -10
  544. package/dist/chunks/add-template-BEXBctrZ.js.map +0 -1
  545. package/dist/chunks/add-template-KR3uQtQn.esm.js +0 -11
  546. package/dist/chunks/add-template-KR3uQtQn.esm.js.map +0 -1
  547. package/dist/chunks/common-DAuIvqzb.esm.js +0 -930
  548. package/dist/chunks/common-DAuIvqzb.esm.js.map +0 -1
  549. package/dist/chunks/common-bz4AeHEF.js +0 -929
  550. package/dist/chunks/common-bz4AeHEF.js.map +0 -1
  551. package/dist/chunks/common-utility-CjDVS-hT.esm.js.map +0 -1
  552. package/dist/chunks/constant-BXPcBhJN.esm.js.map +0 -1
  553. package/dist/chunks/constant-BXeJD4Af.js.map +0 -1
  554. package/dist/chunks/edit-section-modal-DWROaARn.esm.js.map +0 -1
  555. package/dist/chunks/media-BNHjErng.esm.js +0 -39
  556. package/dist/chunks/media-CDeMBdV7.js +0 -38
  557. package/dist/chunks/media-CDeMBdV7.js.map +0 -1
  558. package/dist/chunks/template-modal-CK2xKQKB.esm.js.map +0 -1
  559. package/dist/chunks/template-modal-D3Y04F74.js.map +0 -1
  560. package/dist/chunks/template-name-modal-26pzkeXv.esm.js.map +0 -1
  561. package/dist/chunks/template-name-modal-DRs3R4iy.js.map +0 -1
  562. package/dist/chunks/templates-CpxORHHg.js.map +0 -1
  563. package/dist/chunks/templates-Df3djbmI.esm.js.map +0 -1
  564. package/dist/chunks/upload-media-Bhiob8pM.js +0 -262
  565. package/dist/chunks/upload-media-Bhiob8pM.js.map +0 -1
  566. package/dist/chunks/upload-media-u_D3Fe_j.esm.js +0 -263
  567. package/dist/chunks/upload-media-u_D3Fe_j.esm.js.map +0 -1
  568. package/dist/src/views/template-editor/components/EditorCanvas/FreeCanvas.d.ts +0 -52
  569. package/dist/src/views/template-editor/components/EditorCanvas/FreeElement.d.ts +0 -48
  570. package/dist/src/views/template-editor/components/stationery/StationeryPreview.d.ts +0 -24
  571. package/dist/src/views/template-editor/components/stationery/StationerySidebar.d.ts +0 -9
  572. package/dist/src/views/template-editor/engine/ai.d.ts +0 -12
  573. package/dist/src/views/template-editor/engine/app.d.ts +0 -1
  574. package/dist/src/views/template-editor/engine/controls.d.ts +0 -4
  575. package/dist/src/views/template-editor/engine/design-canvas.d.ts +0 -24
  576. package/dist/src/views/template-editor/engine/editor.d.ts +0 -17
  577. package/dist/src/views/template-editor/engine/engine.d.ts +0 -18
  578. package/dist/src/views/template-editor/engine/icons.d.ts +0 -91
  579. package/dist/src/views/template-editor/engine/letterpads.d.ts +0 -1
  580. package/dist/src/views/template-editor/engine/model.d.ts +0 -20
  581. package/dist/src/views/template-editor/engine/paginator.d.ts +0 -30
  582. package/dist/src/views/template-editor/engine/picker.d.ts +0 -20
  583. package/dist/src/views/template-editor/engine/schema.d.ts +0 -647
  584. package/dist/src/views/template-editor/engine/stationery-app.d.ts +0 -10
  585. package/dist/src/views/template-editor/engine/stationery-doc.d.ts +0 -62
  586. package/dist/src/views/template-editor/engine/stationery-free-element.d.ts +0 -22
  587. package/dist/src/views/template-editor/engine/stationery-store.d.ts +0 -154
  588. package/dist/src/views/template-editor/engine/templatebuilder.d.ts +0 -51
  589. package/dist/src/views/template-editor/engine/templates.d.ts +0 -11
  590. package/dist/src/views/template-editor/icons/custom-styled-icon.d.ts +0 -7
  591. package/dist/src/views/template-editor/icons/edit.d.ts +0 -4
  592. package/dist/src/views/template-editor/icons/trash.d.ts +0 -4
  593. package/dist/src/views/template-editor/types/stationery.d.ts +0 -66
  594. package/dist/src/views/template-editor/utils/compiler.d.ts +0 -12
  595. package/dist/src/views/template-editor/utils/section-attrs.d.ts +0 -6
  596. package/dist/src/views/template-editor/utils/table-inline.d.ts +0 -43
@@ -1,929 +0,0 @@
1
- "use strict";
2
- const constant = require("./constant-BXeJD4Af.js");
3
- const views_templateEditor_services = require("../views/template-editor/services/index.js");
4
- const editableTypes = /* @__PURE__ */ new Set(["text", "text-block", "heading", "heading-2", "heading-3", "heading-4"]);
5
- const generateSectionsHTML = (sections, yOffset = 0, isCompiler = false) => {
6
- const visibleSections = sections.filter((s) => !s.hidden);
7
- const hasPositionData = visibleSections.some((s) => s.x !== void 0 && s.y !== void 0);
8
- if (hasPositionData) {
9
- const maxBottom = Math.max(...visibleSections.map((s) => (s.y ?? 0) + (s.height ?? 60)));
10
- const wrapperHeight = Math.max(maxBottom + 20, 100);
11
- let html2 = `<div style="position:relative;width:100%;min-height:${wrapperHeight}px;height:auto;">`;
12
- for (const section of visibleSections) {
13
- const x = section.x ?? 0;
14
- const y = (section.y ?? 0) + yOffset;
15
- const w = section.width ?? 200;
16
- const h = section.height ?? 60;
17
- const rot = section.rotation ?? 0;
18
- const z = section.zIndex ?? 1;
19
- const rotStyle = rot !== 0 ? `transform:rotate(${rot}deg);transform-origin:center center;` : "";
20
- const isTextType = editableTypes.has(section.type) || !section.type && !["image", "table", "buttons", "divider", "signature", "qr-code", "bar-code"].includes(section.type);
21
- const isTableType = section.type === "table";
22
- const isButtonOrSig = section.type === "buttons" || section.type === "signature";
23
- let cleanContent = (section.content || "").replace(/<span class="cx-ph-tag">([\s\S]*?)<\/span>/g, "$1");
24
- if (isTableType && !cleanContent && section.attributes) {
25
- cleanContent = generateContentHTML("table", "", section.attributes, [], isCompiler);
26
- }
27
- const overflowStyle = isButtonOrSig || isTableType || isTextType ? "visible" : "hidden";
28
- const hasExplicitLineBreak = cleanContent.includes("<br") || cleanContent.includes("\n") || (cleanContent.match(/<\/p>/gi) || []).length > 1;
29
- const isMultiLineParagraph = !hasExplicitLineBreak && h > 45 && cleanContent.length > 80;
30
- const whiteSpaceStyle = isTableType ? "normal" : hasExplicitLineBreak || isMultiLineParagraph ? "pre-wrap" : "nowrap";
31
- const widthStyle = isTextType && !hasExplicitLineBreak && !isMultiLineParagraph ? `width:max-content;min-width:${w}px;max-width:${Math.max(w, 1200 - x - 10)}px;` : `width:${w}px;`;
32
- const wordBreakStyle = isTextType && !hasExplicitLineBreak && !isMultiLineParagraph ? "word-break:normal;" : "word-break:break-word;";
33
- let innerDisplayStyles = "";
34
- if (isTextType) {
35
- innerDisplayStyles = "display:block;";
36
- } else if (isTableType) {
37
- innerDisplayStyles = "display:block;";
38
- } else {
39
- innerDisplayStyles = "display:flex;flex-direction:column;justify-content:center;align-items:center;";
40
- }
41
- const wrapperHeightStyle = isTableType ? `height:auto;min-height:${h}px;` : `height:${h}px;`;
42
- html2 += `<div style="position:absolute;left:${x}px;top:${y}px;${widthStyle}${wrapperHeightStyle}${rotStyle}z-index:${z};overflow:${overflowStyle};${innerDisplayStyles}${wordBreakStyle}white-space:${whiteSpaceStyle};box-sizing:border-box;">${cleanContent}</div>`;
43
- }
44
- html2 += "</div>";
45
- return html2;
46
- }
47
- let html = "";
48
- const groups = [];
49
- const visited = /* @__PURE__ */ new Set();
50
- for (const section of visibleSections) {
51
- if (visited.has(section.id)) continue;
52
- visited.add(section.id);
53
- groups.push([section]);
54
- }
55
- for (const group of groups) {
56
- const cleanContent = (group[0].content || "").replace(/<span class="cx-ph-tag">([\s\S]*?)<\/span>/g, "$1");
57
- html += `<div style="padding: 10px;">${cleanContent}</div>`;
58
- }
59
- return html;
60
- };
61
- const templateRoutes = (modulePath, type) => {
62
- const list = `${modulePath}${constant.TEMPLATE_EDITOR_PATHS.TEMPLATES_LIST(type)}`;
63
- const add = `${modulePath}${constant.TEMPLATE_EDITOR_PATHS.TEMPLATES_ADD(type)}`;
64
- const edit = `${modulePath}${constant.TEMPLATE_EDITOR_PATHS.TEMPLATES_EDIT(type)}`;
65
- return {
66
- LIST: list,
67
- ADD_TEMPLATE: (id) => add.replace(":id", id),
68
- EDIT_TEMPLATE: (id, templateId) => edit.replace(":id", id).replace(":template_id", templateId)
69
- };
70
- };
71
- const generateEmailPreview = (sections, headerSections = [], footerSections = [], isSaving = false, scopeId, stationeryHeaderHtml = "", stationeryFooterHtml = "", paper = "A4", orient = "portrait", watermark) => {
72
- let pW = paper === "Letter" ? 816 : 794;
73
- let pH = paper === "Letter" ? 1056 : 1123;
74
- if (orient === "landscape") {
75
- const t = pW;
76
- pW = pH;
77
- pH = t;
78
- }
79
- const headerHtml = headerSections && (headerSections == null ? void 0 : headerSections.length) ? generateHeaderFooterPreview(headerSections, "header") : "";
80
- const footerHtml = footerSections && (footerSections == null ? void 0 : footerSections.length) ? generateHeaderFooterPreview(footerSections, "footer") : "";
81
- const templateScopeId = scopeId || views_templateEditor_services.cssScopingService.generateScopeId();
82
- const watermarkHtml = (watermark == null ? void 0 : watermark.show) && (watermark == null ? void 0 : watermark.image) ? `
83
- <div class="st-wm" style="position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 0; pointer-events: none;">
84
- <img src="${watermark.image}" alt="Watermark" style="opacity: ${(watermark.opacity ?? 15) / 100}; width: ${watermark.size ?? 50}%; transform: rotate(${watermark.rotation ?? 0}deg); object-fit: contain; pointer-events: none; user-select: none;" />
85
- </div>
86
- ` : "";
87
- const styleBlock = `
88
- <style>
89
- .email-container {
90
- margin: 0 auto;
91
- margin-bottom: 20px;
92
- background-color: #fff;
93
- border-radius: 8px;
94
- width: ${isSaving ? "65%" : `${pW}px`};
95
- max-width: ${isSaving ? "65%" : `${pW}px`};
96
- display: flex;
97
- flex-direction: column;
98
- height: ${pH}px;
99
- min-height: ${pH}px;
100
- }
101
- .email-content {
102
- flex: 1;
103
- display: flex;
104
- flex-direction: column;
105
- padding: 0;
106
- }
107
- a {
108
- color: #007bff;
109
- text-decoration: none;
110
- }
111
- a:hover {
112
- text-decoration: underline;
113
- }
114
- * {
115
- margin: 0;
116
- padding: 0;
117
- box-sizing: border-box;
118
- }
119
-
120
- body {
121
- font-family: "Inter", sans-serif !important;
122
- font-size: 16px;
123
- font-weight: 400;
124
- color: #00011c;
125
- font-style: normal;
126
- }
127
-
128
- img {
129
- display: block;
130
- height: auto;
131
- }
132
-
133
- /* Minimal reset — border-collapse is scoped to specific table classes */
134
-
135
- a {
136
- text-decoration: none;
137
- }
138
-
139
- table.our-details,
140
- .our-details td,
141
- .our-details th {
142
- border: 1px solid #d3d3d4;
143
- }
144
-
145
- table.amount-word-table,
146
- table.amount-word-table td,
147
- table.amount-word-table th {
148
- border: 1px solid #d6d6d6;
149
- }
150
-
151
- .amount-word-table thead th {
152
- background-color: #f5f6f5;
153
- }
154
-
155
- .amount-word-table thead td {
156
- background-color: #f5f6f5;
157
- }
158
-
159
- .amount-word-table tbody tr:nth-child(even) {
160
- background-color: #f5f6f5;
161
- }
162
-
163
- .amount-word-table tbody tr td {
164
- border-top: 0;
165
- border-bottom: 0;
166
- }
167
-
168
- .deliver-table thead th {
169
- background-color: transparent;
170
- }
171
-
172
- .email-container table {
173
- background-color: transparent !important;
174
- border-collapse: collapse !important;
175
- }
176
- .email-content p,
177
- .email-content h1,
178
- .email-content h2,
179
- .email-content h3,
180
- .email-content h4,
181
- .email-content h5,
182
- .email-content h6 {
183
- margin: 0 !important;
184
- padding: 0 !important;
185
- width: 100% !important;
186
- box-sizing: border-box !important;
187
- }
188
- .email-content hr {
189
- width: 100% !important;
190
- margin: 0 !important;
191
- }
192
- .email-content a {
193
- width: 100% !important;
194
- height: 100% !important;
195
- box-sizing: border-box !important;
196
- }
197
- .email-content img {
198
- max-width: 100% !important;
199
- max-height: 100% !important;
200
- box-sizing: border-box !important;
201
- }
202
- /* Table rules to exactly match FreeElement's sx */
203
- .email-content table {
204
- width: 100% !important;
205
- min-width: 0 !important; /* Override doc.css min-width: max-content */
206
- height: auto !important;
207
- border-collapse: collapse !important;
208
- white-space: normal !important;
209
- table-layout: fixed !important;
210
- margin: 0 !important;
211
- background-color: transparent !important;
212
- }
213
- .email-content table tr {
214
- box-sizing: border-box !important;
215
- }
216
- .email-content table td {
217
- box-sizing: border-box !important;
218
- overflow: hidden !important;
219
- text-overflow: ellipsis !important;
220
- vertical-align: middle !important;
221
- }
222
- .email-content table th {
223
- box-sizing: border-box !important;
224
- overflow: hidden !important;
225
- text-overflow: ellipsis !important;
226
- vertical-align: middle !important;
227
- }
228
- .email-content div {
229
- box-sizing: border-box !important;
230
- }
231
- </style>
232
- `;
233
- let html = isSaving ? `<html><head>${styleBlock}</head><body>` : `<div>${styleBlock}`;
234
- html += `
235
- <div class="email-container st pbd-page pb-tpl-view ${templateScopeId}" style="position: relative; width: ${isSaving ? "65%" : `${pW}px`} !important; min-width: ${isSaving ? "65%" : `${pW}px`} !important; max-width: ${isSaving ? "65%" : `${pW}px`} !important; height: ${pH}px !important; min-height: ${pH}px !important; overflow: hidden;">
236
- ${watermarkHtml}
237
- <div style="width: 100%; z-index: 0; flex-shrink: 0; pointer-events: none;">
238
- ${stationeryHeaderHtml}
239
- ${headerHtml}
240
- ${headerHtml ? "<hr/>" : ""}
241
- </div>
242
- <div class="email-content pbd-page-inner" style="position: relative; z-index: 1; padding: 0 !important;">
243
- `;
244
- html += generateSectionsHTML(sections);
245
- html += `
246
- </div>
247
- <div style="width: 100%; z-index: 0; flex-shrink: 0; margin-top: auto; pointer-events: none;">
248
- ${footerHtml ? "<hr/>" : ""}
249
- ${footerHtml}
250
- ${stationeryFooterHtml}
251
- </div>
252
- </div>
253
- `;
254
- html += isSaving ? `</body></html>` : `</div>`;
255
- return html;
256
- };
257
- const generateHeaderFooterPreview = (sections, type = "header", scopeId) => {
258
- const scopeClass = scopeId ? ` ${scopeId}` : "";
259
- let html = `<${type} class="${type}${scopeClass}">`;
260
- html += generateSectionsHTML(sections);
261
- html += `</${type}>`;
262
- return html;
263
- };
264
- const extractStyles = (html, sectionType) => {
265
- const tempDiv = document.createElement("div");
266
- tempDiv.innerHTML = html;
267
- const element = tempDiv.firstChild;
268
- if (!element) return {};
269
- if ((element == null ? void 0 : element.getAttribute) instanceof Function === false) {
270
- return {};
271
- }
272
- const styleAttr = element == null ? void 0 : element.getAttribute("style");
273
- const allAttributes = (element == null ? void 0 : element.attributes) || [];
274
- const attrObj = Array.from(allAttributes).reduce((obj, attr) => {
275
- obj[attr.name] = attr.value;
276
- return obj;
277
- }, {});
278
- if (!styleAttr) return {};
279
- const styleObj = {};
280
- const stylePairs = styleAttr.split(";").filter((pair) => pair.trim() !== "");
281
- stylePairs.forEach((pair) => {
282
- const [prop, value] = pair.split(":").map((part) => part.trim());
283
- if (prop && value) {
284
- const propName = prop.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
285
- if ((propName === "width" || propName === "height" || propName === "maxWidth" || propName === "maxHeight") && value === "100% !important") {
286
- return;
287
- }
288
- styleObj[propName] = value;
289
- }
290
- });
291
- attrObj.styles = styleObj;
292
- return attrObj;
293
- };
294
- const EMAIL_SAFE_PROPERTIES = /* @__PURE__ */ new Set([
295
- "background",
296
- "background-color",
297
- "border",
298
- "border-style",
299
- "border-collapse",
300
- "border-top",
301
- "border-right",
302
- "border-bottom",
303
- "border-left",
304
- "border-color",
305
- "border-radius",
306
- "color",
307
- "display",
308
- "font",
309
- "font-family",
310
- "font-size",
311
- "font-style",
312
- "font-weight",
313
- "height",
314
- "line-height",
315
- "margin",
316
- "margin-top",
317
- "margin-right",
318
- "margin-bottom",
319
- "margin-left",
320
- "padding",
321
- "padding-top",
322
- "padding-right",
323
- "padding-bottom",
324
- "padding-left",
325
- "text-align",
326
- "text-decoration",
327
- "vertical-align",
328
- "width",
329
- "max-width",
330
- "min-width",
331
- "max-height",
332
- "min-height",
333
- "object-fit",
334
- "opacity"
335
- ]);
336
- const applyOpacityToColor = (color, opacity) => {
337
- if (!color || color === "transparent") return "transparent";
338
- if (typeof opacity !== "number" || opacity >= 1) return color;
339
- if (opacity <= 0) return "transparent";
340
- const trimmed = color.trim();
341
- if (trimmed.startsWith("#")) {
342
- const hex = trimmed.slice(1);
343
- let r = 0, g = 0, b = 0, a = 1;
344
- if (hex.length === 3) {
345
- r = parseInt(hex[0] + hex[0], 16);
346
- g = parseInt(hex[1] + hex[1], 16);
347
- b = parseInt(hex[2] + hex[2], 16);
348
- } else if (hex.length === 4) {
349
- r = parseInt(hex[0] + hex[0], 16);
350
- g = parseInt(hex[1] + hex[1], 16);
351
- b = parseInt(hex[2] + hex[2], 16);
352
- a = parseInt(hex[3] + hex[3], 16) / 255;
353
- } else if (hex.length === 6) {
354
- r = parseInt(hex.slice(0, 2), 16);
355
- g = parseInt(hex.slice(2, 4), 16);
356
- b = parseInt(hex.slice(4, 6), 16);
357
- } else if (hex.length === 8) {
358
- r = parseInt(hex.slice(0, 2), 16);
359
- g = parseInt(hex.slice(2, 4), 16);
360
- b = parseInt(hex.slice(4, 6), 16);
361
- a = parseInt(hex.slice(6, 8), 16) / 255;
362
- } else {
363
- return color;
364
- }
365
- const finalAlpha = Math.max(0, Math.min(1, Math.round(a * opacity * 1e3) / 1e3));
366
- return `rgba(${r}, ${g}, ${b}, ${finalAlpha})`;
367
- }
368
- const rgbaMatch = trimmed.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/i);
369
- if (rgbaMatch) {
370
- const r = parseInt(rgbaMatch[1], 10);
371
- const g = parseInt(rgbaMatch[2], 10);
372
- const b = parseInt(rgbaMatch[3], 10);
373
- const existingA = parseFloat(rgbaMatch[4]);
374
- const finalAlpha = Math.max(0, Math.min(1, Math.round(existingA * opacity * 1e3) / 1e3));
375
- return `rgba(${r}, ${g}, ${b}, ${finalAlpha})`;
376
- }
377
- const rgbMatch = trimmed.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);
378
- if (rgbMatch) {
379
- const r = parseInt(rgbMatch[1], 10);
380
- const g = parseInt(rgbMatch[2], 10);
381
- const b = parseInt(rgbMatch[3], 10);
382
- const finalAlpha = Math.max(0, Math.min(1, Math.round(opacity * 1e3) / 1e3));
383
- return `rgba(${r}, ${g}, ${b}, ${finalAlpha})`;
384
- }
385
- const namedColors = {
386
- white: [255, 255, 255],
387
- black: [0, 0, 0],
388
- red: [255, 0, 0],
389
- green: [0, 128, 0],
390
- blue: [0, 0, 255],
391
- gray: [128, 128, 128],
392
- grey: [128, 128, 128],
393
- lightgray: [211, 211, 211],
394
- lightgrey: [211, 211, 211]
395
- };
396
- const lower = trimmed.toLowerCase();
397
- if (namedColors[lower]) {
398
- const [r, g, b] = namedColors[lower];
399
- const finalAlpha = Math.max(0, Math.min(1, Math.round(opacity * 1e3) / 1e3));
400
- return `rgba(${r}, ${g}, ${b}, ${finalAlpha})`;
401
- }
402
- return color;
403
- };
404
- const generateInlineStyles = (styles, parentKey = "") => {
405
- if (!styles || typeof styles !== "object") return "";
406
- const styleEntries = Object.entries(styles).reduce((acc, [key, value]) => {
407
- if (value === void 0 || value === null) return acc;
408
- const fullKey = parentKey ? `${parentKey}-${key}` : key;
409
- if (typeof value === "object" && !Array.isArray(value)) {
410
- acc.push(generateInlineStyles(value, fullKey));
411
- return acc;
412
- }
413
- const cssKey = fullKey.replace(/([A-Z])/g, "-$1").toLowerCase();
414
- if (!EMAIL_SAFE_PROPERTIES.has(cssKey) && key !== "fullWidth" && key !== "alignment") {
415
- return acc;
416
- }
417
- if (key === "fullWidth" && value === true) {
418
- acc.push("width: 100%");
419
- return acc;
420
- }
421
- if (key === "alignment" && typeof value === "string") {
422
- acc.push(`text-align: ${value}`);
423
- return acc;
424
- }
425
- if (typeof value === "boolean") return acc;
426
- const cssValue = typeof value === "number" && !["z-index", "opacity", "line-height", "font-weight"].includes(cssKey) ? `${value}px` : value;
427
- acc.push(`${cssKey}: ${cssValue}`);
428
- return acc;
429
- }, []);
430
- return styleEntries.filter(Boolean).join("; ");
431
- };
432
- const getInitialSectionData = (type, attrs = {}) => {
433
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
434
- let content = "";
435
- const styles = constant.initialStyles[type] || {};
436
- const inlineStyles = generateInlineStyles(styles);
437
- switch (type) {
438
- case "heading":
439
- content = `<h1 style="${inlineStyles}">Heading 1</h1>`;
440
- break;
441
- case "heading-2":
442
- content = `<h2 style="${inlineStyles}">Heading 2</h2>`;
443
- break;
444
- case "heading-3":
445
- content = `<h3 style="${inlineStyles}">Heading 3</h3>`;
446
- break;
447
- case "heading-4":
448
- content = `<h4 style="${inlineStyles}">Heading 4</h4>`;
449
- break;
450
- case "text":
451
- content = `<p style="${inlineStyles}">Hello, enter your text here...</p>`;
452
- break;
453
- case "image":
454
- content = `<img src="${(attrs == null ? void 0 : attrs.src) || ""}" alt="${(attrs == null ? void 0 : attrs.alt) || "Image"}" style="${inlineStyles};" />`;
455
- break;
456
- case "buttons":
457
- attrs.text = (attrs == null ? void 0 : attrs.text) || "Button text";
458
- content = `<a href="${(attrs == null ? void 0 : attrs.href) || "#"}" target="_blank" style="${inlineStyles}; display: flex !important; text-decoration: none !important; box-sizing: border-box !important; justify-content: center !important; align-items: center !important; width: 100% !important; height: 100% !important; text-align: center !important; word-break: break-word !important; white-space: normal !important;">${attrs.text}</a>`;
459
- break;
460
- case "divider":
461
- content = `<hr style="border: none !important; border-top: ${(styles == null ? void 0 : styles.borderWidth) || 1}px ${(styles == null ? void 0 : styles.borderStyle) || "solid"} ${(styles == null ? void 0 : styles.borderColor) || "#000000"} !important; width: 100% !important; margin: 0 !important; height: 0 !important;" />`;
462
- break;
463
- case "table": {
464
- const { border, borderStyle, borderColor, borderRadius, height, opacity, ...rest } = styles;
465
- const tableOpacity = typeof opacity === "number" ? opacity : 1;
466
- const useWrapperTrick = borderRadius && styles.borderCollapse !== "separate" && styles.is_bordered;
467
- const tInlineStyles = generateInlineStyles({
468
- ...rest,
469
- ...useWrapperTrick ? { borderStyle: "hidden" } : styles.is_bordered ? { border, borderStyle, borderColor } : {},
470
- ...useWrapperTrick ? {} : { borderRadius }
471
- });
472
- const wrapperStyles = useWrapperTrick ? `border: ${border || 1}px ${borderStyle || "solid"} ${borderColor || "#000000"}; border-radius: ${borderRadius}px; overflow: hidden; box-sizing: border-box; width: 100%;` : "";
473
- const tHeadRowHeight = Number((_a = styles.tHead) == null ? void 0 : _a.rowHeight) || 38;
474
- const tBodyRowHeight = Number((_b = styles.tBody) == null ? void 0 : _b.rowHeight) || 38;
475
- const rawHeadBg = ((_c = styles.tHead) == null ? void 0 : _c.backgroundColor) || "rgba(245, 245, 245, 0.75)";
476
- const headBgColor = applyOpacityToColor(rawHeadBg, tableOpacity);
477
- const rawBodyBg = ((_d = styles.tBody) == null ? void 0 : _d.backgroundColor) || "rgba(255, 255, 255, 0.75)";
478
- const bodyBgColor = applyOpacityToColor(rawBodyBg, tableOpacity);
479
- const thUserFontSize = Number((_e = styles.tHead) == null ? void 0 : _e.fontSize) || 14;
480
- const thBasePadding = typeof ((_f = styles.thCells) == null ? void 0 : _f.padding) === "number" ? styles.thCells.padding : 8;
481
- const thAvailH = Math.max(4, tHeadRowHeight - 1);
482
- const effectiveThFontSize = Math.min(thUserFontSize, Math.max(8, thAvailH - 2));
483
- const thRemainingV = Math.max(0, thAvailH - effectiveThFontSize);
484
- const thVPadding = Math.max(0, Math.min(thBasePadding, Math.floor(thRemainingV / 2)));
485
- const thHPadding = thBasePadding;
486
- const thWhiteSpace = tHeadRowHeight < 36 ? "nowrap" : "normal";
487
- const tbUserFontSize = Number((_g = styles.tBody) == null ? void 0 : _g.fontSize) || 14;
488
- const tbBasePadding = typeof ((_h = styles.tbCells) == null ? void 0 : _h.padding) === "number" ? styles.tbCells.padding : 8;
489
- const tbAvailH = Math.max(4, tBodyRowHeight - 1);
490
- const effectiveTbFontSize = Math.min(tbUserFontSize, Math.max(8, tbAvailH - 2));
491
- const tbRemainingV = Math.max(0, tbAvailH - effectiveTbFontSize);
492
- const tbVPadding = Math.max(0, Math.min(tbBasePadding, Math.floor(tbRemainingV / 2)));
493
- const tbHPadding = tbBasePadding;
494
- const tbWhiteSpace = tBodyRowHeight < 36 ? "nowrap" : "normal";
495
- const { padding: _thPad, ...thCellsRest } = styles.thCells || {};
496
- const { padding: _tbPad, ...tbCellsRest } = styles.tbCells || {};
497
- const { rowHeight: _thRH, backgroundColor: _thBg, ...tHeadRest } = styles.tHead || {};
498
- const { rowHeight: _tbRH, backgroundColor: _tbBg, ...tBodyRest } = styles.tBody || {};
499
- const tHeadInlineStyles = generateInlineStyles(tHeadRest);
500
- const tBodyInlineStyles = generateInlineStyles(tBodyRest);
501
- const thCellInlineStyles = generateInlineStyles({ ...tHeadRest, ...thCellsRest, border, borderStyle, borderColor });
502
- const tbCellInlineStyles = generateInlineStyles({ ...tBodyRest, ...tbCellsRest, border, borderStyle, borderColor });
503
- content = `${useWrapperTrick ? `<div style="${wrapperStyles}">` : ""}<table style="${tInlineStyles}; width: 100%; border-collapse: collapse; height: auto !important; table-layout: fixed; margin: 0 !important;"><thead style="${tHeadInlineStyles}"><tr style="background-color: ${headBgColor} !important; height: ${tHeadRowHeight}px; max-height: ${tHeadRowHeight}px; line-height: 1;"><th style="${thCellInlineStyles}; vertical-align: middle; height: ${tHeadRowHeight}px; max-height: ${tHeadRowHeight}px; box-sizing: border-box; padding: ${thVPadding}px ${thHPadding}px !important; font-size: ${effectiveThFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${thWhiteSpace}; background-color: ${headBgColor} !important;">Column 1</th><th style="${thCellInlineStyles}; vertical-align: middle; height: ${tHeadRowHeight}px; max-height: ${tHeadRowHeight}px; box-sizing: border-box; padding: ${thVPadding}px ${thHPadding}px !important; font-size: ${effectiveThFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${thWhiteSpace}; background-color: ${headBgColor} !important;">Column 2</th><th style="${thCellInlineStyles}; vertical-align: middle; height: ${tHeadRowHeight}px; max-height: ${tHeadRowHeight}px; box-sizing: border-box; padding: ${thVPadding}px ${thHPadding}px !important; font-size: ${effectiveThFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${thWhiteSpace}; background-color: ${headBgColor} !important;">Column 3</th></tr></thead><tbody style="${tBodyInlineStyles}"><tr style="height: ${tBodyRowHeight}px; max-height: ${tBodyRowHeight}px; line-height: 1;"><td style="${tbCellInlineStyles}; vertical-align: middle; height: ${tBodyRowHeight}px; max-height: ${tBodyRowHeight}px; box-sizing: border-box; padding: ${tbVPadding}px ${tbHPadding}px !important; font-size: ${effectiveTbFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${tbWhiteSpace}; background-color: ${bodyBgColor} !important;"></td><td style="${tbCellInlineStyles}; vertical-align: middle; height: ${tBodyRowHeight}px; max-height: ${tBodyRowHeight}px; box-sizing: border-box; padding: ${tbVPadding}px ${tbHPadding}px !important; font-size: ${effectiveTbFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${tbWhiteSpace}; background-color: ${bodyBgColor} !important;"></td><td style="${tbCellInlineStyles}; vertical-align: middle; height: ${tBodyRowHeight}px; max-height: ${tBodyRowHeight}px; box-sizing: border-box; padding: ${tbVPadding}px ${tbHPadding}px !important; font-size: ${effectiveTbFontSize}px !important; line-height: 1 !important; overflow: hidden; text-overflow: ellipsis; white-space: ${tbWhiteSpace}; background-color: ${bodyBgColor} !important;"></td></tr></tbody></table>${useWrapperTrick ? `</div>` : ""}`.trim();
504
- break;
505
- }
506
- case "signature": {
507
- const signatureText = (attrs == null ? void 0 : attrs.signatureText) || "Signature";
508
- content = `<svg viewBox="0 0 300 80" width="100%" height="100%" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg"><text x="50%" y="55%" dominant-baseline="middle" text-anchor="middle" fill="${((_i = attrs == null ? void 0 : attrs.styles) == null ? void 0 : _i.color) || "#333333"}" style="${inlineStyles}">${signatureText}</text></svg>`;
509
- break;
510
- }
511
- case "qr-code":
512
- attrs.placeholder = (attrs == null ? void 0 : attrs.placeholder) || "{{qr_data}}";
513
- content = `<div style="background-color: #f5f5f5; padding: 16px; text-align: center; color: #666666;">${attrs.placeholder}</div>`;
514
- break;
515
- case "bar-code":
516
- attrs.placeholder = (attrs == null ? void 0 : attrs.placeholder) || "{{barcode_data}}";
517
- content = `<div style="background-color: #f5f5f5; padding: 16px; text-align: center; color: #666666;">${attrs.placeholder}</div>`;
518
- break;
519
- default:
520
- content = '<p style="font-size: 16px; color: #333333; line-height: 1.5;">New section</p>';
521
- }
522
- extractStyles(content);
523
- const baseAttrs = { ...attrs || {}, styles };
524
- if (type === "table" && !baseAttrs.tableData) {
525
- baseAttrs.tableData = {
526
- name: "",
527
- columns: [
528
- { id: "col1", header: "Column 1", align: "l" },
529
- { id: "col2", header: "Column 2", align: "l" },
530
- { id: "col3", header: "Column 3", align: "l" }
531
- ],
532
- rows: [
533
- { col1: "", col2: "", col3: "" }
534
- ],
535
- border: true,
536
- mergedCells: []
537
- };
538
- content = generateContentHTML(type, content, baseAttrs, []);
539
- }
540
- return {
541
- content,
542
- type,
543
- attributes: baseAttrs,
544
- // Default free-positioning fields (caller overrides x/y with drop position)
545
- x: 52,
546
- y: 52,
547
- width: 300,
548
- height: 78,
549
- rotation: 0,
550
- zIndex: 1
551
- };
552
- };
553
- const EDIT_VIEW_CSS = `
554
- .tbl-ed{display:inline-block;min-width:24px;min-height:1em;outline:none;cursor:text;user-select:text;-webkit-user-select:text;border-radius:3px;padding:0 2px;margin:0 -2px}
555
- .tbl-ed:hover{background:rgba(46,178,115,.10);box-shadow:0 0 0 2px rgba(46,178,115,.16)}
556
- .tbl-ed:focus{background:#fff;box-shadow:0 0 0 2px #2EB273}
557
- .tbl-ed:empty::before{content:'Type\\2026';opacity:.45}
558
- .tbl-ed-t:empty::before{content:'Text\\2026'}
559
- .tbl-cell{display:block;min-width:0;max-width:100%;text-align:inherit;line-height:1.4}
560
- .tbl-cell>*{vertical-align:middle}
561
- .tbl-ed-m{min-width:6px}
562
- th,td{position:relative}
563
- .tbl-cell-edit{position:absolute;top:2px;right:2px;width:18px;height:18px;display:none;align-items:center;justify-content:center;background:#000;color:#fff;border-radius:4px;cursor:pointer;z-index:3;line-height:0}
564
- .tbl-cell-edit:hover{background:#333}
565
- th:hover>.tbl-cell-edit,td:hover>.tbl-cell-edit{display:flex}
566
- .tbl-ed-m:empty::before{content:''}
567
- .tbl-ed-t{display:inline-block;max-width:100%;min-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px}
568
- .tbl-ed:empty::before{white-space:nowrap}
569
- .tbl-chip{font-family:inherit;font-size:.92em;cursor:pointer;display:inline-flex;align-items:center;gap:3px;padding:0 4px 0 6px;color:#4b2fa6;background:#efe9fc;border:1px solid #ddd0f8;border-radius:4px;white-space:nowrap;max-width:100%;min-width:0;box-sizing:border-box}
570
- .tbl-chip-l{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
571
- .tbl-chip::after{content:'\\25BE';font-size:.72em;opacity:.55;flex-shrink:0}
572
- .tbl-chip.is-empty{color:#7c6bb5;background:#faf8ff;border-style:dashed;font-style:italic}
573
- .tbl-chip:hover{background:#e6dcff;box-shadow:0 0 0 2px rgba(110,86,207,.30)}
574
- `;
575
- const splitMergedValue = (value) => {
576
- const str = String(value ?? "");
577
- const re = /\{\{\s*([A-Za-z0-9_.\[\]-]+)\s*\}\}/g;
578
- const parts = [];
579
- let last = 0;
580
- let m;
581
- while ((m = re.exec(str)) !== null) {
582
- if (m[1] === "else") continue;
583
- parts.push({ t: "text", v: str.slice(last, m.index) });
584
- parts.push({ t: "token", key: m[1] });
585
- last = m.index + m[0].length;
586
- }
587
- parts.push({ t: "text", v: str.slice(last) });
588
- return parts;
589
- };
590
- const joinMergedValue = (parts) => parts.map((p) => p.t === "text" ? p.v : `{{${p.key}}}`).join("");
591
- const generateContentHTML = (sectionType, content, attrs, placeholders = [], isCompiler = false, editView) => {
592
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
593
- const { src, alt, styles: eStyles, text, placeholder, tableData } = attrs || {};
594
- const styles = {
595
- ...constant.initialStyles[sectionType],
596
- ...eStyles
597
- };
598
- const inlineStyles = generateInlineStyles(styles);
599
- if (sectionType === "buttons") {
600
- return `<a href="${(attrs == null ? void 0 : attrs.href) || "#"}" target="_blank" style="${inlineStyles}; display: flex !important; text-decoration: none !important; box-sizing: border-box !important; justify-content: center !important; align-items: center !important; width: 100% !important; height: 100% !important; text-align: center !important; word-break: break-word !important; white-space: normal !important;">${text || "Button Text"}</a>`;
601
- } else if (sectionType === "image") {
602
- let imgInlineStyles = inlineStyles;
603
- if (styles == null ? void 0 : styles.is_bordered) {
604
- styles.padding = "10px";
605
- imgInlineStyles = generateInlineStyles(styles);
606
- } else {
607
- styles.padding = "0";
608
- imgInlineStyles = generateInlineStyles(styles);
609
- }
610
- const objectFit = (styles == null ? void 0 : styles.objectFit) || "contain";
611
- let objectPosition = "center";
612
- if ((styles == null ? void 0 : styles.alignment) === "left") objectPosition = "left";
613
- if ((styles == null ? void 0 : styles.alignment) === "right") objectPosition = "right";
614
- return `<img src="${src || ""}" alt="${alt || "Image"}" style="${imgInlineStyles}; box-sizing: border-box !important; object-fit: ${objectFit} !important; object-position: ${objectPosition} !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important;" />`;
615
- } else if (sectionType === "divider") {
616
- return `<hr style="border: none !important; border-top: ${(styles == null ? void 0 : styles.borderWidth) || 1}px ${(styles == null ? void 0 : styles.borderStyle) || "solid"} ${(styles == null ? void 0 : styles.borderColor) || "#000000"} !important; width: 100% !important; margin: 0 !important; height: 0 !important;" />`;
617
- } else if (sectionType === "table") {
618
- const { border, borderStyle, borderColor, borderRadius, height, opacity, ...rest } = styles;
619
- const tableOpacity = typeof opacity === "number" ? opacity : 1;
620
- const useWrapperTrick = borderRadius && styles.borderCollapse !== "separate" && styles.is_bordered;
621
- const tInlineStyles = generateInlineStyles({
622
- ...rest,
623
- ...useWrapperTrick ? { borderStyle: "hidden" } : styles.is_bordered ? { border, borderStyle, borderColor } : {},
624
- ...useWrapperTrick ? {} : { borderRadius }
625
- });
626
- const wrapperStyles = useWrapperTrick ? `border: ${border || 1}px ${borderStyle || "solid"} ${borderColor || "#000000"}; border-radius: ${borderRadius}px; overflow: hidden; box-sizing: border-box; width: 100%;` : "";
627
- const tHeadRowHeight = Number((_a = styles.tHead) == null ? void 0 : _a.rowHeight) || 38;
628
- const tBodyRowHeight = Number((_b = styles.tBody) == null ? void 0 : _b.rowHeight) || 38;
629
- const rawHeadBg = ((_c = styles.tHead) == null ? void 0 : _c.backgroundColor) || "rgba(245, 245, 245, 0.75)";
630
- const headBgColor = applyOpacityToColor(rawHeadBg, tableOpacity);
631
- const hasZebra = !!((_d = styles.tBody) == null ? void 0 : _d.zebraStriping);
632
- const rawAltColor = ((_e = styles.tBody) == null ? void 0 : _e.alternateRowColor) || "#f9f9f9";
633
- const altColor = applyOpacityToColor(rawAltColor, tableOpacity);
634
- const rawMainBg = ((_f = styles.tBody) == null ? void 0 : _f.backgroundColor) || "#ffffff";
635
- const mainBgColor = applyOpacityToColor(rawMainBg, tableOpacity);
636
- const thUserFontSize = Number((_g = styles.tHead) == null ? void 0 : _g.fontSize) || 14;
637
- const thBasePadding = typeof ((_h = styles.thCells) == null ? void 0 : _h.padding) === "number" ? styles.thCells.padding : 8;
638
- const thAvailH = Math.max(4, tHeadRowHeight - 1);
639
- const effectiveThFontSize = Math.min(thUserFontSize, Math.max(8, thAvailH - 2));
640
- const thRemainingV = Math.max(0, thAvailH - effectiveThFontSize);
641
- const thVPadding = Math.max(0, Math.min(thBasePadding, Math.floor(thRemainingV / 2)));
642
- const thHPadding = thBasePadding;
643
- const thWhiteSpace = tHeadRowHeight < 36 ? "nowrap" : "normal";
644
- const tbUserFontSize = Number((_i = styles.tBody) == null ? void 0 : _i.fontSize) || 14;
645
- const tbBasePadding = typeof ((_j = styles.tbCells) == null ? void 0 : _j.padding) === "number" ? styles.tbCells.padding : 8;
646
- const tbAvailH = Math.max(4, tBodyRowHeight - 1);
647
- const effectiveTbFontSize = Math.min(tbUserFontSize, Math.max(8, tbAvailH - 2));
648
- const tbRemainingV = Math.max(0, tbAvailH - effectiveTbFontSize);
649
- const tbVPadding = Math.max(0, Math.min(tbBasePadding, Math.floor(tbRemainingV / 2)));
650
- const tbHPadding = tbBasePadding;
651
- const tbWhiteSpace = tBodyRowHeight < 36 ? "nowrap" : "normal";
652
- const { padding: _thPad, ...thCellsRest } = styles.thCells || {};
653
- const { padding: _tbPad, ...tbCellsRest } = styles.tbCells || {};
654
- const { rowHeight: _thRH, backgroundColor: _thBg, ...tHeadRest } = styles.tHead || {};
655
- const { rowHeight: _tbRH, fixedRowHeight: _tbFix, backgroundColor: _tbBg, ...tBodyRest } = styles.tBody || {};
656
- const tbFixedH = Number((_k = styles.tBody) == null ? void 0 : _k.fixedRowHeight) || 0;
657
- const tbFixedStyle = tbFixedH > 0 ? ` height: ${tbFixedH}px !important;` : "";
658
- const tHeadInlineStyles = generateInlineStyles(tHeadRest);
659
- const tBodyInlineStyles = generateInlineStyles(tBodyRest);
660
- const thCellInlineStyles = generateInlineStyles({
661
- ...tHeadRest,
662
- ...thCellsRest,
663
- ...styles.is_bordered ? { border, borderStyle, borderColor } : {}
664
- });
665
- const { backgroundColor: _tbBg2, ...tBodyRestNoBg } = tBodyRest;
666
- const tbCellInlineStyles = generateInlineStyles({
667
- ...tBodyRestNoBg,
668
- ...tbCellsRest,
669
- ...styles.is_bordered ? { border, borderStyle, borderColor } : {}
670
- });
671
- const getCellMergeInfo = (section, rowIndex, colIndex) => {
672
- var _a2;
673
- return (_a2 = tableData == null ? void 0 : tableData.mergedCells) == null ? void 0 : _a2.find(
674
- (m) => m.section === section && rowIndex >= m.rowStart && rowIndex <= m.rowEnd && colIndex >= m.colStart && colIndex <= m.colEnd
675
- );
676
- };
677
- const getPlaceholderValue = (placeholderKey) => {
678
- const placeholder2 = placeholders.find((p) => p.value === placeholderKey || p.id === placeholderKey || p.field === placeholderKey);
679
- if (!placeholder2) return "";
680
- if (typeof placeholder2.actualValue !== "undefined") return String(placeholder2.actualValue);
681
- switch (placeholder2.type) {
682
- case "date":
683
- return (/* @__PURE__ */ new Date()).toLocaleDateString();
684
- case "datetime":
685
- return (/* @__PURE__ */ new Date()).toLocaleString();
686
- case "number":
687
- return "123";
688
- case "currency":
689
- return "$1,234.56";
690
- case "email":
691
- return "example@domain.com";
692
- case "phone":
693
- return "+1 (555) 123-4567";
694
- case "url":
695
- return "https://example.com";
696
- default:
697
- return placeholder2.label || placeholder2.value || placeholderKey;
698
- }
699
- };
700
- const escHtml = (v) => String(v ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
701
- const keyOf = (v) => {
702
- const m = typeof v === "string" ? v.match(/^\s*\{\{\s*([^{}]+?)\s*\}\}\s*$/) : null;
703
- return m ? m[1] : "";
704
- };
705
- const hInner = (value, r, c) => editView ? `<span data-control="true" data-tbl-h="${r}:${c}" class="tbl-ed" contenteditable="true" spellcheck="false">${value ?? ""}</span>` : value;
706
- const chipHTML = (key, colId, r) => {
707
- const label = key ? escHtml(editView.labelFor(key)) : "Select value";
708
- return `<span data-control="true" data-tbl-chip="${escHtml(colId)}" data-tbl-row="${r}" class="pbd-ph tbl-chip${key ? "" : " is-empty"}"><span class="tbl-chip-l">${label}</span></span>`;
709
- };
710
- const mergedInner = (merge) => {
711
- const idx = ((tableData == null ? void 0 : tableData.mergedCells) || []).indexOf(merge);
712
- let tok = 0;
713
- const parts = splitMergedValue(merge.value);
714
- const hasField = parts.some((p) => p.t === "token");
715
- const pieces = parts.map((p, i) => p.t === "text" ? `<span data-control="true" data-tbl-ms="${idx}:${i}" class="tbl-ed tbl-ed-m" contenteditable="true" spellcheck="false">${p.v}</span>` : `<span data-control="true" data-tbl-mchip="${idx}:${tok++}" class="pbd-ph tbl-chip"><span class="tbl-chip-l">${escHtml((editView.mergedLabelFor || editView.labelFor)(p.key))}</span></span>`).join("");
716
- const addChip = hasField ? "" : `<span data-control="true" data-tbl-madd="${idx}" class="pbd-ph tbl-chip is-empty"><span class="tbl-chip-l">+ Add value</span></span>`;
717
- return `<span class="tbl-cell">${pieces}${addChip}</span>`;
718
- };
719
- const headCellInner = (value, r, c, _merge) => hInner(value, r, c);
720
- const editBtn = (section, r, c) => editView ? `<span data-control="true" data-tbl-edit="${section}:${r}:${escHtml(c)}" class="tbl-cell-edit" title="Edit cell style"><svg viewBox="0 0 24 24" width="12" height="12" fill="currentColor" aria-hidden="true"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 000-1.41l-2.34-2.34a1 1 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg></span>` : "";
721
- const bInner = (value, row, column, r, merged) => {
722
- var _a2;
723
- if (!editView) return value;
724
- if (merged) return mergedInner(merged);
725
- if (!editView.mode) return value;
726
- if (editView.mode === "column") {
727
- return chipHTML(((_a2 = attrs == null ? void 0 : attrs.placeholders) == null ? void 0 : _a2[column.id]) || keyOf(row[column.id]), column.id, r);
728
- }
729
- const stat = row[`${column.id}_static`];
730
- const cur = row[column.id] || "";
731
- const text2 = typeof stat === "string" ? (cur && stat.endsWith(cur) ? stat.slice(0, stat.length - cur.length) : stat).trim() : "";
732
- return `<span class="tbl-cell"><span data-control="true" data-tbl-t="${r}:${escHtml(column.id)}" class="tbl-ed tbl-ed-t" contenteditable="true" spellcheck="false">${escHtml(text2)}</span>${chipHTML(keyOf(cur), column.id, r)}</span>`;
733
- };
734
- const editStyleTag = editView ? `<style>${EDIT_VIEW_CSS}</style>` : "";
735
- let theadRowsHTML = "";
736
- if ((tableData == null ? void 0 : tableData.headerRows) && tableData.headerRows.length > 0) {
737
- theadRowsHTML = tableData.headerRows.map((hRow, rowIndex) => {
738
- const rowCellsHTML = hRow.cells.map((hCell, colIndex) => {
739
- var _a2, _b2, _c2;
740
- const mergeInfo = getCellMergeInfo("thead", rowIndex, colIndex);
741
- if (mergeInfo && (rowIndex !== mergeInfo.rowStart || colIndex !== mergeInfo.colStart)) return "";
742
- const mergeAttributes = mergeInfo ? ` rowspan="${mergeInfo.rowEnd - mergeInfo.rowStart + 1}" colspan="${mergeInfo.colEnd - mergeInfo.colStart + 1}"` : "";
743
- const cellValue = mergeInfo ? mergeInfo.value : hCell.value;
744
- const cellStyleObj = ((_c2 = (_b2 = (_a2 = tableData.cellStyles) == null ? void 0 : _a2.thead) == null ? void 0 : _b2[rowIndex]) == null ? void 0 : _c2[colIndex]) || {};
745
- const customCellStyles = Object.keys(cellStyleObj).map((k) => `${k.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${cellStyleObj[k]} !important;`).join(" ");
746
- return `<th style="${thCellInlineStyles}; vertical-align: middle; min-height: ${tHeadRowHeight}px; box-sizing: border-box; padding: ${thVPadding}px ${thHPadding}px !important; font-size: ${effectiveThFontSize}px !important; line-height: 1 !important; overflow: visible; word-break: break-word; white-space: ${thWhiteSpace === "nowrap" ? "normal" : thWhiteSpace}; background-color: ${headBgColor} !important; ${customCellStyles}"${mergeAttributes}>${headCellInner(cellValue, rowIndex, colIndex)}${editBtn("thead", rowIndex, colIndex)}</th>`;
747
- }).filter((cell) => cell !== "").join("");
748
- return `<tr style="${tHeadInlineStyles}; background-color: ${headBgColor} !important; min-height: ${tHeadRowHeight}px; line-height: 1;">${rowCellsHTML}</tr>`;
749
- }).join("");
750
- } else {
751
- const headerCellsHTML = ((tableData == null ? void 0 : tableData.columns) || []).map((column, colIndex) => {
752
- var _a2, _b2, _c2;
753
- const mergeInfo = getCellMergeInfo("thead", 0, colIndex);
754
- if (mergeInfo && colIndex !== mergeInfo.colStart) return "";
755
- const mergeAttributes = mergeInfo ? ` rowspan="${mergeInfo.rowEnd - mergeInfo.rowStart + 1}" colspan="${mergeInfo.colEnd - mergeInfo.colStart + 1}"` : "";
756
- const cellValue = mergeInfo ? mergeInfo.value : column.header;
757
- const alignStyle = column.align === "r" ? "text-align: right;" : column.align === "l" ? "text-align: left;" : "";
758
- const cellStyleObj = ((_c2 = (_b2 = (_a2 = tableData == null ? void 0 : tableData.cellStyles) == null ? void 0 : _a2.thead) == null ? void 0 : _b2[0]) == null ? void 0 : _c2[colIndex]) || {};
759
- const customCellStyles = Object.keys(cellStyleObj).map((k) => `${k.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${cellStyleObj[k]} !important;`).join(" ");
760
- return `<th style="${alignStyle}${alignStyle && !alignStyle.endsWith(";") ? ";" : ""}${thCellInlineStyles}; vertical-align: middle; min-height: ${tHeadRowHeight}px; box-sizing: border-box; padding: ${thVPadding}px ${thHPadding}px !important; font-size: ${effectiveThFontSize}px !important; line-height: 1 !important; overflow: visible; word-break: break-word; white-space: ${thWhiteSpace === "nowrap" ? "normal" : thWhiteSpace}; background-color: ${headBgColor} !important; ${customCellStyles}"${mergeAttributes}>${headCellInner(cellValue, 0, colIndex)}${editBtn("thead", 0, colIndex)}</th>`;
761
- }).filter((cell) => cell !== "").join("");
762
- theadRowsHTML = `<tr style="${tHeadInlineStyles}; background-color: ${headBgColor} !important; min-height: ${tHeadRowHeight}px; line-height: 1;">${headerCellsHTML}</tr>`;
763
- }
764
- let tableRowsHTML = "";
765
- const tPlaceholders = attrs == null ? void 0 : attrs.placeholders;
766
- const allRows = (tableData == null ? void 0 : tableData.rows) && tableData.rows.length > 0 ? tableData.rows : [{}];
767
- const rowsToRender = (editView == null ? void 0 : editView.mode) === "column" ? allRows.slice(0, 1) : allRows;
768
- const staticRowsHTML = rowsToRender.map((row, rowIndex) => {
769
- const rowBgColor = hasZebra && rowIndex % 2 === 1 ? altColor : mainBgColor;
770
- const rowStyleAddition = `; background-color: ${rowBgColor} !important;`;
771
- const cellsHTML = ((tableData == null ? void 0 : tableData.columns) || []).map((column, colIndex) => {
772
- var _a2, _b2, _c2;
773
- const mergeInfo = getCellMergeInfo("tbody", rowIndex, colIndex);
774
- if (mergeInfo && (rowIndex !== mergeInfo.rowStart || colIndex !== mergeInfo.colStart)) return "";
775
- let cellValue = row[column.id] || "";
776
- const keys = Object.keys(row || {});
777
- if (keys.includes(`${column.id}_static`)) {
778
- cellValue = row[`${column.id}_static`] || "";
779
- }
780
- if (!cellValue && (tPlaceholders == null ? void 0 : tPlaceholders[column.id])) {
781
- cellValue = getPlaceholderValue(tPlaceholders[column.id]);
782
- }
783
- const mergeAttributes = mergeInfo ? ` rowspan="${mergeInfo.rowEnd - mergeInfo.rowStart + 1}" colspan="${mergeInfo.colEnd - mergeInfo.colStart + 1}"` : "";
784
- const finalCellValue = mergeInfo ? mergeInfo.value : cellValue;
785
- const alignStyle = column.align === "r" ? "text-align: right;" : column.align === "l" ? "text-align: left;" : "";
786
- const cellStyleObj = ((_c2 = (_b2 = (_a2 = tableData == null ? void 0 : tableData.cellStyles) == null ? void 0 : _a2.tbody) == null ? void 0 : _b2[rowIndex]) == null ? void 0 : _c2[column.id]) || {};
787
- const customCellStyles = Object.keys(cellStyleObj).map((k) => `${k.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${cellStyleObj[k]} !important;`).join(" ");
788
- return `<td style="${alignStyle}${alignStyle && !alignStyle.endsWith(";") ? ";" : ""}${tbCellInlineStyles}; vertical-align: middle;${tbFixedStyle} min-height: ${tBodyRowHeight}px; box-sizing: border-box; padding: ${tbVPadding}px ${tbHPadding}px !important; font-size: ${effectiveTbFontSize}px !important; line-height: 1 !important; overflow: visible; word-break: break-word; white-space: ${tbWhiteSpace === "nowrap" ? "normal" : tbWhiteSpace}; background-color: ${rowBgColor} !important;${rowStyleAddition} ${customCellStyles}"${mergeAttributes}>${bInner(finalCellValue, row, column, rowIndex, mergeInfo)}${editBtn("tbody", rowIndex, column.id)}</td>`;
789
- }).filter((cell) => cell !== "").join("");
790
- return `<tr style="${tBodyInlineStyles}; min-height: ${tBodyRowHeight}px; line-height: 1;${rowStyleAddition}">${cellsHTML}</tr>`;
791
- }).join("");
792
- const hasDynamicHandlebars = rowsToRender.some(
793
- (r) => Object.values(r).some((v) => typeof v === "string" && v.includes("{{"))
794
- ) || ((tableData == null ? void 0 : tableData.columns) || []).some((c) => tPlaceholders == null ? void 0 : tPlaceholders[c.id]);
795
- if (isCompiler && hasDynamicHandlebars) {
796
- const cellsForLoopHTML = ((tableData == null ? void 0 : tableData.columns) || []).map((column) => {
797
- var _a2, _b2, _c2, _d2;
798
- const alignStyle = column.align === "r" ? "text-align: right;" : column.align === "l" ? "text-align: left;" : "";
799
- let cellValue = ((_a2 = rowsToRender[0]) == null ? void 0 : _a2[column.id]) || "";
800
- const keys = Object.keys(rowsToRender[0] || {});
801
- if (keys.includes(`${column.id}_static`)) {
802
- cellValue = rowsToRender[0][`${column.id}_static`] || "";
803
- }
804
- if (!cellValue && (tPlaceholders == null ? void 0 : tPlaceholders[column.id])) {
805
- cellValue = `{{${tPlaceholders[column.id]}}}`;
806
- }
807
- if (cellValue.includes("{{items}}") || cellValue.includes("{{item}}")) {
808
- cellValue = `{{#if items}}{{items}}{{else if item_data.name}}{{item_data.name}}{{else if item}}{{item}}{{else if description}}{{description}}{{else}}{{items}}{{/if}}`;
809
- } else if (cellValue.includes("{{quantity}}") || cellValue.includes("{{qty}}")) {
810
- cellValue = `{{#if quantity}}{{quantity}}{{else if qty}}{{qty}}{{else}}0{{/if}}`;
811
- } else if (cellValue.includes("{{rate}}") || cellValue.includes("{{price}}")) {
812
- cellValue = `{{#if rate}}{{rate}}{{else if price}}{{price}}{{else if unit_price}}{{unit_price}}{{else}}0{{/if}}`;
813
- } else if (cellValue.includes("{{discount_rate}}")) {
814
- cellValue = `{{#if discount_rate}}{{discount_rate}}{{else}}0{{/if}}`;
815
- } else if (cellValue.includes("{{discount_amount}}")) {
816
- cellValue = `{{#if discount_amount}}{{discount_amount}}{{else}}0{{/if}}`;
817
- }
818
- const cellStyleObj = ((_d2 = (_c2 = (_b2 = tableData == null ? void 0 : tableData.cellStyles) == null ? void 0 : _b2.tbody) == null ? void 0 : _c2[0]) == null ? void 0 : _d2[column.id]) || {};
819
- const customCellStyles = Object.keys(cellStyleObj).map((k) => `${k.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${cellStyleObj[k]} !important;`).join(" ");
820
- return `<td style="${alignStyle}${alignStyle && !alignStyle.endsWith(";") ? ";" : ""}${tbCellInlineStyles}; vertical-align: middle;${tbFixedStyle} min-height: ${tBodyRowHeight}px; box-sizing: border-box; padding: ${tbVPadding}px ${tbHPadding}px !important; font-size: ${effectiveTbFontSize}px !important; line-height: 1 !important; overflow: visible; word-break: break-word; white-space: ${tbWhiteSpace === "nowrap" ? "normal" : tbWhiteSpace}; background-color: ${mainBgColor} !important; ${customCellStyles}">${cellValue}</td>`;
821
- }).join("");
822
- tableRowsHTML = `{{#if sales_item_entries}}
823
- {{#each sales_item_entries}}
824
- <tr style="${tBodyInlineStyles}; min-height: ${tBodyRowHeight}px; line-height: 1;">${cellsForLoopHTML}</tr>
825
- {{/each}}
826
- {{else if item_entries}}
827
- {{#each item_entries}}
828
- <tr style="${tBodyInlineStyles}; min-height: ${tBodyRowHeight}px; line-height: 1;">${cellsForLoopHTML}</tr>
829
- {{/each}}
830
- {{else if items}}
831
- {{#each items}}
832
- <tr style="${tBodyInlineStyles}; min-height: ${tBodyRowHeight}px; line-height: 1;">${cellsForLoopHTML}</tr>
833
- {{/each}}
834
- {{else}}
835
- ${staticRowsHTML}
836
- {{/if}}`;
837
- } else {
838
- tableRowsHTML = staticRowsHTML;
839
- }
840
- const zebraClass = hasZebra ? "pbd-table-zebra" : "";
841
- const zebraStyleTag = hasZebra ? `<style>
842
- .pbd-table-zebra tbody tr:nth-child(even) { background-color: ${altColor} !important; }
843
- .pbd-table-zebra tbody tr:nth-child(even) td { background-color: ${altColor} !important; }
844
- .pbd-table-zebra tbody tr:nth-child(odd) { background-color: ${mainBgColor} !important; }
845
- .pbd-table-zebra tbody tr:nth-child(odd) td { background-color: ${mainBgColor} !important; }
846
- </style>` : "";
847
- const colgroupHTML = ((_l = tableData == null ? void 0 : tableData.columns) == null ? void 0 : _l.length) > 0 ? `<colgroup>${tableData.columns.map((col, colIndex) => {
848
- var _a2, _b2, _c2, _d2;
849
- return `<col style="width: ${((_d2 = (_c2 = (_b2 = (_a2 = tableData == null ? void 0 : tableData.cellStyles) == null ? void 0 : _a2.thead) == null ? void 0 : _b2[0]) == null ? void 0 : _c2[colIndex]) == null ? void 0 : _d2.width) || "auto"};">`;
850
- }).join("")}</colgroup>` : "";
851
- return `${editStyleTag}${zebraStyleTag}${useWrapperTrick ? `<div style="${wrapperStyles}">` : ""}<table class="${zebraClass}" style="${tInlineStyles}; width: 100%; border-collapse: collapse; height: auto !important; table-layout: fixed; margin: 0 !important; background-color: transparent !important;">${colgroupHTML}<thead>${theadRowsHTML}</thead><tbody>${tableRowsHTML}</tbody></table>${useWrapperTrick ? `</div>` : ""}`.trim();
852
- } else if (sectionType === "qr-code" || sectionType === "bar-code") {
853
- return `<div style="${inlineStyles}">${placeholder || "{{data}}"}</div>`;
854
- } else if (sectionType === "signature") {
855
- const signatureText = (attrs == null ? void 0 : attrs.signatureText) || "Signature";
856
- return `<svg viewBox="0 0 300 80" width="100%" height="100%" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg"><text x="50%" y="55%" dominant-baseline="middle" text-anchor="middle" fill="${((_m = attrs == null ? void 0 : attrs.styles) == null ? void 0 : _m.color) || "#333333"}" style="${inlineStyles}">${signatureText}</text></svg>`;
857
- }
858
- const hasHtmlTags = /<\/?[a-z][\s\S]*>/i.test(content);
859
- if (!hasHtmlTags) {
860
- switch (sectionType) {
861
- case "text":
862
- case "text-block":
863
- return `<p style="${inlineStyles}">${content}</p>`;
864
- case "heading":
865
- return `<h1 style="${inlineStyles}">${content}</h1>`;
866
- case "heading-2":
867
- return `<h2 style="${inlineStyles}">${content}</h2>`;
868
- case "heading-3":
869
- return `<h3 style="${inlineStyles}">${content}</h3>`;
870
- case "heading-4":
871
- return `<h4 style="${inlineStyles}">${content}</h4>`;
872
- default:
873
- return `<p style="${inlineStyles}">${content}</p>`;
874
- }
875
- } else {
876
- try {
877
- const parser = new DOMParser();
878
- const doc = parser.parseFromString(`<div>${content}</div>`, "text/html");
879
- const container = doc.body.firstChild;
880
- if (container && container.nodeType === Node.ELEMENT_NODE) {
881
- const elements = container.querySelectorAll("*");
882
- elements.forEach((element) => {
883
- if (element.tagName === "SCRIPT" || element.tagName === "STYLE") return;
884
- const existingStyle = element.getAttribute("style") || "";
885
- const existingProps = {};
886
- existingStyle.split(";").forEach((prop) => {
887
- const [key, value] = prop.split(":").map((item) => item.trim());
888
- if (key && value) existingProps[key] = value;
889
- });
890
- const newStyleProps = {};
891
- inlineStyles.split(";").forEach((prop) => {
892
- const [key, value] = prop.split(":").map((item) => item.trim());
893
- if (key && value) newStyleProps[key] = value;
894
- });
895
- if (element.tagName === "P" || element.tagName === "DIV") {
896
- if (!newStyleProps["line-height"] && !existingProps["line-height"]) newStyleProps["line-height"] = "1.5";
897
- } else if (["H1", "H2", "H3", "H4", "H5", "H6"].includes(element.tagName)) {
898
- if (!newStyleProps["line-height"] && !existingProps["line-height"]) newStyleProps["line-height"] = "1.2";
899
- if (!newStyleProps["margin"] && !existingProps["margin"]) newStyleProps["margin"] = "0.5em 0";
900
- }
901
- const mergedProps = { ...existingProps, ...newStyleProps };
902
- const mergedStyle = Object.entries(mergedProps).filter(([key, value]) => key && value).map(([key, value]) => `${key}: ${value}`).join("; ");
903
- element.setAttribute("style", mergedStyle);
904
- });
905
- let wrapperTag = "div";
906
- if (sectionType === "heading") wrapperTag = "h1";
907
- else if (sectionType === "heading-2") wrapperTag = "h2";
908
- else if (sectionType === "heading-3") wrapperTag = "h3";
909
- else if (sectionType === "heading-4") wrapperTag = "h4";
910
- return `<${wrapperTag} style="${inlineStyles}">${container.innerHTML}</${wrapperTag}>`;
911
- }
912
- } catch (e) {
913
- }
914
- return content;
915
- }
916
- };
917
- exports.EDIT_VIEW_CSS = EDIT_VIEW_CSS;
918
- exports.applyOpacityToColor = applyOpacityToColor;
919
- exports.extractStyles = extractStyles;
920
- exports.generateContentHTML = generateContentHTML;
921
- exports.generateEmailPreview = generateEmailPreview;
922
- exports.generateHeaderFooterPreview = generateHeaderFooterPreview;
923
- exports.generateInlineStyles = generateInlineStyles;
924
- exports.generateSectionsHTML = generateSectionsHTML;
925
- exports.getInitialSectionData = getInitialSectionData;
926
- exports.joinMergedValue = joinMergedValue;
927
- exports.splitMergedValue = splitMergedValue;
928
- exports.templateRoutes = templateRoutes;
929
- //# sourceMappingURL=common-bz4AeHEF.js.map