@erpsquad/common 1.11.13 → 1.11.14

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